The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
# The Solaris f77 FORTRAN compiler and Solaris cc ANSI C compiler.
#-----------------------------------------------------------------------

# Optional: Needed by XWDRIV (/xwindow and /xserve) and
#           X2DRIV (/xdisp and /figdisp).
# The arguments needed by the C compiler to locate X-window include files.
 
   XINCL="-I/usr/openwin/include"

# Optional: Needed by XMDRIV (/xmotif).
# The arguments needed by the C compiler to locate Motif, Xt and
# X-window include files.
 
   MOTIF_INCL="-I/usr/dt/include $XINCL"

# Optional: Needed by XADRIV (/xathena).
# The arguments needed by the C compiler to locate Xaw, Xt and
# X-window include files.
 
   ATHENA_INCL="$XINCL"

# Optional: Needed by TKDRIV (/xtk).
# The arguments needed by the C compiler to locate Tcl, Tk and
# X-window include files.
 
   TK_INCL="$XINCL -I/usr/local/include"

# Optional: Needed by RVDRIV (/xrv).
# The arguments needed by the C compiler to locate Rivet, Tcl, Tk and
# X-window include files.
 
   RV_INCL="-I/usr/local/rivet/tcl -I/usr/local/rivet/tk -I/usr/local/rivet/rivet $XINCL"

# Optional: Needed by PTKDRIV (/ptk).
# The arguments needed by the C compiler to locate pTk. If the
# following does not seem to find the correct include directory for
# pTk, set the path explicitly
# * NOTE * perlTK MUST be installed to compile perl TK driver !!!
# Direct method
#  PTK_INCL="-I/some/direct/path"
# 
# Check perl is installed - This doesn't work on Solaris. Edit by hand
#if [ X`which perl 2>/dev/null` != "X" ]; then
   PTK_INCL=`perl -e 'print "-I",((grep(-d "$_/Tk/pTk", @INC))[0]),"/Tk/pTk"'`
#else 
#   PTK_INCL=
#fi

# Mandatory.
# The FORTRAN compiler to use.
 
   FCOMPL="f77"

# Mandatory.
# The FORTRAN compiler flags to use when compiling the pgplot library.
# (NB. makemake prepends -c to $FFLAGC where needed)
 
   FFLAGC="-u -PIC -O"

# Mandatory.
# The FORTRAN compiler flags to use when compiling fortran demo programs.
# This may need to include a flag to tell the compiler not to treat
# backslash characters as C-style escape sequences
 
   FFLAGD="-xl -u -O"

# Mandatory.
# The C compiler to use.
 
   CCOMPL="cc"

# Mandatory.
# The C compiler flags to use when compiling the pgplot library.
 
   CFLAGC="-DPG_PPU -KPIC -O -Dsolaris"

# Mandatory.
# The C compiler flags to use when compiling C demo programs.
 
   CFLAGD="-O"

# Optional: Only needed if the cpgplot library is to be compiled.
# The flags to use when running pgbind to create the C pgplot wrapper
# library. (See pgplot/cpg/pgbind.usage)
 
   PGBIND_FLAGS="bsd"

# Mandatory.
# The library-specification flags to use when linking normal pgplot
# demo programs.
 
   LIBS="-L/usr/openwin/lib -lX11 -lnsl -lsocket -lm -R\`pwd\`:/usr/openwin/lib:/opt/SUNWspro/lib"

# Optional: Needed by XMDRIV (/xmotif).
# The library-specification flags to use when linking motif
# demo programs.
 
   MOTIF_LIBS="-L/usr/dt/lib -lXm -L/usr/openwin/lib -lXt $LIBS -R/usr/dt/lib"

# Optional: Needed by XADRIV (/xathena).
# The library-specification flags to use when linking athena
# demo programs.
 
   ATHENA_LIBS="-lXaw -lXt -lXmu -lXext $LIBS"

# Optional: Needed by TKDRIV (/xtk).
# The library-specification flags to use when linking Tk demo programs.
# Note that you may need to append version numbers to -R/usr/local/lib -ltk and -ltcl.
 
   TK_LIBS="-L/usr/openwin/lib -L/usr/local/lib -R/usr/local/lib -ltk8.3 -ltcl8.3 $LIBS -ldl"

# Mandatory.
# On systems that have a ranlib utility, put "ranlib" here. On other
# systems put ":" here (Colon is the Bourne-shell do-nothing command).
 
   RANLIB=":"

# Optional: Needed on systems that support shared libraries.
# The name to give the shared pgplot library.
 
   SHARED_LIB="libpgplot.so"

# Optional: Needed if SHARED_LIB is set.
# How to create a shared library from a trailing list of object files.
 
   SHARED_LD="ld -o $SHARED_LIB -z text -G -i"

# Optional:
# On systems such as Solaris 2.x, that allow specification of the
# libraries that a shared library needs to be linked with when a
# program that uses it is run, this variable should contain the
# library-specification flags used to specify these libraries to
# $SHARED_LD
 
   SHARED_LIB_LIBS="$LIBS -lc -lm"

# Optional:
# Compiler name used on Next systems to compile objective-C files.
 
   MCOMPL=""

# Optional:
# Compiler flags used with MCOMPL when compiling objective-C files.
 
   MFLAGC=""

# Optional: (Actually mandatory, but already defined by makemake).
# Where to look for any system-specific versions of the files in
# pgplot/sys. Before evaluating this script, makemake sets SYSDIR to
# /wherever/pgplot/sys_$OS, where $OS is the operating-system name
# given by the second command-line argument of makemake. If the
# present configuration is one of many for this OS, and it needs
# different modifications to files in pgplot/sys than the other
# configurations, then you should create a subdirectory of SYSDIR,
# place the modified files in it and change the following line to
# $SYSDIR="$SYSDIR/subdirectory_name".
 
   SYSDIR="$SYSDIR"