The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
# The Portland Group pgf77 FORTRAN compiler and pgcc C compiler on Linux.
# From A. Heger 24 May 1999
#-----------------------------------------------------------------------


# 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/X11R6/include"

# Optional: Needed by XMDRIV (/xmotif).
# The arguments needed by the C compiler to locate Motif, Xt and
# X-window include files.
 
   MOTIF_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="-I/usr/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=""

# 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
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="pgf77"

# Mandatory.
# The FORTRAN compiler flags to use when compiling the pgplot library.
# (NB. makemake prepends -c to $FFLAGC where needed)
 
   FFLAGC="-Minform,inform -fPIC -fast -pc 64 -Kieee"

# 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="-Minform,inform -Mbackslash -fast -pc 64 -Kieee"

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

# Mandatory.
# The C compiler flags to use when compiling the pgplot library.
 
   CFLAGC="-Minform,inform -fPIC -DPG_PPU -fast -pc 64 -Kieee"

# Mandatory.
# The C compiler flags to use when compiling C demo programs.
 
   CFLAGD="-Minform,inform -fast -pc 64 -Kieee"

# 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/X11R6/lib -lX11"

# Optional: Needed by XMDRIV (/xmotif).
# The library-specification flags to use when linking motif
# demo programs.
 
   MOTIF_LIBS="-lXm -lXt -lX11"

# 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 -ltk and -ltcl.
 
   TK_LIBS="-L/usr/lib -ltk -ltcl -ldl -L/usr/X11R6/lib -lX11 -Mnomain"

# 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="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="pgf77 -shared  -o $SHARED_LIB"

# 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=""

# 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"