#! /bin/sh
# GWXLIBS build script for building on SCO UnixWare 7.
# (C) Copyright 2004 The SCO Group Inc. All rights reserved.

# GWXLIBS_NM
#  The version of nm to use for libtool
GWXLIBS_NM='nm -p'

# DEFAULT_PREFIX
#  This sets the default value of PREFIX, if none is specified on the
#  command line.
DEFAULT_PREFIX="/usr"

# AUTOCONF_HOST
#  This is the host name to pass to the various autoconf scripts
AUTOCONF_HOST="i586-pc-sysv5"

# GWXLIBS_CONF
#  The actual GWXLIBS source package uses an OS-specific header file
#  to control much of its configuration. If your host does not have
#  special needs with regards to library names, set this to the string
#  "generic". Otherwise, specify the host specific file name.
GWXLIBS_CONF=osr5

# GWXLIBS_AUTOCONF
#  Set of extra options to pass to the GWXLIBS propper configure script
GWXLIBS_AUTOCONF='--sysconfdir=/etc --sbindir=/usr/sbin --datadir=${PREFIX}/lib --with-localeprefix=/usr/gnu --infodir=/usr/gnu/info --with-aclocaldir=/usr/gnu/share/aclocal --x-includes=/usr/X11R6/include --x-libraries=/usr/X11R6/lib --disable-static --with-db-mutex-type=UI/threads'

# OPENLDAP_AUTOCONF
#  Set of extra options to pass to the OpenLDAP configure script
OPENLDAP_AUTOCONF='--localstatedir=${PREFIX}/lib/openldap --sysconfdir=/etc --infodir=/usr/gnu/info --libexecdir=${PREFIX}/lib --datadir=${PREFIX}/lib --sbindir=${PREFIX}/sbin --disable-static'

# ICU_AUTOCONF
#  Set of extra options to pass to the ICU configure script
ICU_AUTOCONF='--enable-threads --disable-64bit-libs --infodir=/usr/gnu/info --sbindir=${PREFIX}/sbin --sysconfdir=/etc --datadir=${PREFIX}/lib --enable-rpath'

# OPENSSL_CONF
#  The name of the OpenSSL configuration to use
OPENSSL096_CONF="OpenUNIX-8-shared-hpath -Kpentium"
OPENSSL097_CONF="OpenUNIX-8-hpath -Kpentium"

# GPGERROR_AUTOCONF
#  Set of extra options to pass the libgpg-error configure script
GPGERROR_AUTOCONF='--datadir=/usr/gnu/share --disable-static'

# GCRYPT_AUTOCONF
#  Set of extra options to pass the libgcrypt configure script
GCRYPT_AUTOCONF='-disable-static --datadir=${PREFIX}/gnu/share --disable-dependency-tracking --infodir=/usr/gnu/info --with-gpg-error-prefix=${GWXDIST}${PREFIX}'

# GNUPG_AUTOCONF
#  Set of extra options to pass the GNU PG configure script
GNUPG_AUTOCONF='--without-included-gettext --libexecdir=${PREFIX}/lib --datadir=${PREFIX}/lib --infodir=/usr/gnu/info --disable-asm'

#
# Xalan and Xerces use their own weird front-end to configure. These
# are the arguments that must be passed to 'runConfigure'.
XERCES_CONF='-p unixware -c cc -x CC -t icu -r pthread -l "-L${GWXDIST}/usr/lib" -z "-I${GWXDIST}/usr/include" -P ${PREFIX} -n socket -m inmem -C "--host=$AUTOCONF_HOST"'
XALAN_CONF='-p unixware -c cc -x CC -t icu -r pthread -l "-L${GWXDIST}/usr/lib" -z "-I${GWXDIST}/usr/include" -P ${PREFIX} -C "--host=$AUTOCONF_HOST"'

# TCL_AUTOCONF
#  Set of extra options to pass to the Tk configure script
TCL_AUTOCONF='--sysconfdir=${PREFIX}/gnu/etc --sbindir=${PREFIX}/gnu/etc --datadir=${PREFIX}/gnu/lib --infodir=/usr/gnu/info --x-includes=/usr/X11R6/include --x-libraries=/usr/X11R6/lib -enable-shared --mandir=${PREFIX}/gnu/man --enable-man-symlinks'

# TCLX_AUTOCONF
#  Set of extra options to pass to the Tk configure script
TCLX_AUTOCONF='--sysconfdir=${PREFIX}/gnu/etc --sbindir=${PREFIX}/gnu/etc --datadir=${PREFIX}/gnu/lib --infodir=/usr/gnu/info --x-includes=/usr/X11R6/include --x-libraries=/usr/X11R6/lib -enable-shared --mandir=${PREFIX}/gnu/man --enable-man-symlinks'

# TK_AUTOCONF
#  Set of extra options to pass to the Tk configure script
TK_AUTOCONF='--sysconfdir=${PREFIX}/gnu/etc --sbindir=${PREFIX}/gnu/etc --datadir=${PREFIX}/gnu/lib --infodir=/usr/gnu/info --x-includes=/usr/X11R6/include --x-libraries=/usr/X11R6/lib -enable-shared --mandir=${PREFIX}/gnu/man --enable-man-symlinks'

# EXPECT_AUTOCONF
#  Set of extra options to pass to the expect configure script
EXPECT_AUTOCONF='--sysconfdir=${PREFIX}/gnu/etc --sbindir=${PREFIX}/gnu/etc --datadir=${PREFIX}/gnu/lib --infodir=/usr/gnu/info --x-includes=/usr/X11R6/include --x-libraries=/usr/X11R6/lib -enable-shared --mandir=${PREFIX}/gnu/man'

# CC
#  The C compiler to use. This is just the compiler name, and any flags
#  required for the platform. It does not include normals CFLAGS, which
#  are set below.
GWXCC="cc -L/usr/X11R6/lib -I/usr/X11R6/include"

# CXX
#  The C++ compiler to use. As with CC, this is just the compuler and
#  architecture flags, not the full list of compiler flags.
GWXCXX="CC -L/usr/X11R6/lib -I/usr/X11R6/include"

# ARCHFLAGS
#  Architecture specific flags that are added to each invocation of CC or CXX
GWXARCHFLAGS="-Kalloca -Kpentium -D_REENTRANT -DFD_SETSIZE=16384"

# CFLAGS
#  The list of compiler flags to pass to CC, in addition to any extra
#  flags the build system adds for library and include paths.
GWXCFLAGS="-O"

# CXXFLAGS
#  The list of compiler flags to pass to CXX
GWXCXXFLAGS="-O"

# CCPIC
#  Flag to CC to produce PIC code
GWXCCPIC="-KPIC"

# CXXPIC
#  Flags to CXX to produce PIC code
GWXCXXPIC="-KPIC"

# LDR
#  The command to use to combine several object files into a composite
#  object file (recombine).
GWXLDR="/usr/ccs/bin/ld -r"

# LD
#  How to link programs and shared libraries, for C programs only.
GWXLD="cc"

# LDXX
#  How to link programs and shared libraries, for C++ programs.
GWXLDXX="CC"

# LDSHFLAG
#  Command line option to LD or LDXX to indicate that a shared library is
#  being created.
GWXLDSHFLAG="-G"

# LDSONAME
#  Command line option that takes a single argument that is the name of
#  the shared library to create. On ELF systems, this is the DT_SONAME
#  name. This is passed to LD or LDXX.
GWXLDSONAME="-h"

# LDEXP
#  Command line option to LD or LDXX that indicates that this executable
#  needs to have its symbols exported so that shared libraries can access
#  them.  Note that this option is used to make all symbols visible. See
#  LDEXPLIST below for the option (which may be the same) that takes a
#  file name with a list of symbols to export.
GWXLDEXP="-Bexport"

# LDEXPLIST
#  Command line option to LD or LDXX that takes a single argument that is
#  a text file with one symbol per line of the symbols to export from the
#  executable.
GWXLDEXPLIST="-Bexport:"

# LDRPATH
#  Command line option to LD or LDXX that takes as a single argument a
#  colon-separated list of directories to search for shared library
#  dependencies. This is used when creating both executables and shared
#  libraries. When creating executables, it is the list of all library
#  paths needed to resolve the shared library dependency of the executable
#  itself, but just the actual libraries linked in, not the directories
#  that those libraries themselves may require.
GWXLDRPATH="-R"

# LDRPATHENV
#  If there is no support for LDRPATH as described above, this is the name
#  of an environment variable that should be set to the library search path.
#  Only set one of either LDRPATH or LDRPATHENV, not both.
#LDRPATHENV="LD_RUN_PATH"

# RTLDPATH
#  This is the name of an environment variable that should be set to a
#  colon-separated list of paths if the build process needs to invoke
#  executables created during the build.  This will typically be set to
#  the installation prefix with the name /usr/lib appended to it (i.e
#  to the value $(DESTDIR)$(PREFIX)/usr/lib.
GWXRTLDPATH="LD_LIBRARY_PATH"

# DEFAULT_CONFARGS
#  A list of additional arguments to pass to each configure script
DEFAULT_CONFARGS=""

# GWXLIBS_POSTCONF
#  A string of commands to execute after the GWXLIBS configure script
#  has run, but before the build begins
GWXLIBS_POSTCONF=

# OPENLDAP_POSTCONF
#  A string of commands to execute after the OpenLDAP configure script
#  has run, but before the build begins
OPENLDAP_POSTCONF=

# GPGERROR_POSTCONF
#  A string of commands to execute after the libgpg-error configure script
#  has run, but before the build begins
GPGERROR_POSTCONF=

# GCRYPT_POSTCONF
#  A string of commands to execute after the libgcrypt configure script
#  has run, but before the build begins
GCRYPT_POSTCONF=

# GPG_POSTCONF
#  A string of commands to execute after the GPG configure script
#  has run, but before the build begins
GNUPG_POSTCONF="sed -e 's,/usr/lib/locale,/usr/gnu/share/locale,g' g10defs.h > foo; mv foo g10defs.h"

# ICU_POSTCONF
#  A string of commands to execute after the ICU configure script has run,
#  but before the build begins
ICU_POSTCONF=

# XERCES_POSTCONF
#  A string of commands to be executed after the Xerces configure script
#  has run but before the build starts
XERCES_POSTCONF=

# XALAN_POSTCONF
#  A string of commands to be executed after the Xalan configure script
#  has run but before the build starts
XALAN_POSTCONF=
