Commit 3eec6ee1 authored by Peter Eisentraut's avatar Peter Eisentraut

Rename templates to match names in makefiles/Makefile.* and include/port.

Read templates after compiler is detected. Convert all templates to real
shell scripts. Rename bsd->openbsd, alpha->osf.
parent 739a0566
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -27,206 +27,134 @@ AC_DEFINE_UNQUOTED(PG_VERSION, "$VERSION") ...@@ -27,206 +27,134 @@ AC_DEFINE_UNQUOTED(PG_VERSION, "$VERSION")
AC_CANONICAL_HOST AC_CANONICAL_HOST
tas_file=dummy.s template=
case "$host_os" in AC_MSG_CHECKING([which template to use])
# check if --with-template was given
if test x"${with_template+set}" = xset ; then
case $with_template in
yes|no) AC_MSG_ERROR([You must supply an argument to the --with-template option.]);;
list) echo; ls "$srcdir/src/template"; exit;;
*) if test -f "$srcdir/src/template/$with_template" ; then
template=$with_template
else
AC_MSG_ERROR([\`$with_template' is not a valid template name. Use \`list' for a list.])
fi;;
esac
else # --with-template not given
case $host_os in
aix*) template=aix ;;
bsdi*) template=bsdi ;;
cygwin*) template=win ;;
dgux*) template=dgux ;;
freebsd*) template=freebsd ;;
hpux*) template=hpux ;;
irix*) template=irix5 ;;
linux*) template=linux ;;
netbsd*) template=netbsd ;;
nextstep*) template=nextstep ;;
openbsd*) template=openbsd ;;
osf*) template=osf ;;
qnx*) template=qnx4 ;;
sco*) template=sco ;;
solaris*) solaris*)
case "$host_cpu" in case $host_cpu in
sparc) os=solaris_sparc need_tas=yes tas_file=solaris_sparc.s ;; sparc) template=solaris_sparc ;;
i386) os=solaris_i386 need_tas=yes tas_file=solaris_i386.s ;; i?86) template=solaris_i386 ;;
esac ;; esac ;;
sunos*) os=sunos4 need_tas=no ;; sunos*) template=sunos4 ;;
beos) os=beos need_tas=no ;;
aux*) os=aux need_tas=no ;;
linux*) os=linux need_tas=no ;;
bsdi*) os=bsdi need_tas=no ;;
freebsd1*|freebsd2*) os=freebsd need_tas=no ;;
freebsd*) os=freebsd need_tas=no elf=yes ;;
netbsd*) os=netbsd need_tas=no ;;
openbsd*) os=bsd need_tas=no ;;
dgux*) os=dgux need_tas=no ;;
aix*) os=aix need_tas=no ;;
nextstep*) os=nextstep need_tas=no ;;
ultrix*) os=ultrix4 need_tas=no ;;
irix*) os=irix5 need_tas=no ;;
hpux*) os=hpux need_tas=yes tas_file=hpux.s ;;
osf*) os=alpha need_tas=no ;;
sco*) os=sco need_tas=no ;;
machten*) os=machten need_tas=no ;;
cygwin*) os=win need_tas=no ;;
sysv4.2*) sysv4.2*)
case "$host_vendor" in case $host_vendor in
univel) os=univel need_tas=no ;; univel) template=univel ;;
*) os=unknown need_tas=no ;; esac ;;
esac ;; sysv4*) template=svr4 ;;
sysv4*) os=svr4 need_tas=no ;; sysv5uw*) template=unixware ;;
sysv5uw*) os=unixware need_tas=no ;; ultrix*) template=ultrix4 ;;
unixware*) os=unixware need_tas=no ;;
qnx*) os=qnx4 need_tas=no ;;
*) echo ""
echo "*************************************************************"
echo "configure does not currently recognize your operating system,"
echo "therefore you must do a manual configuration of:"
echo "$host_os"
echo "Please contact scrappy@hub.org to see about rectifying this, "
echo "including the above 'checking host system type...' line "
echo "*************************************************************"
echo ""
exit;;
esac esac
PORTNAME=${os} if test x"$template" = x"" ; then
CPU=${host_cpu} AC_MSG_ERROR([
AC_LINK_FILES(src/backend/port/dynloader/${os}.c, src/backend/port/dynloader.c) *******************************************************************
AC_LINK_FILES(src/backend/port/dynloader/${os}.h, src/include/dynloader.h) PostgreSQL has apparently not been ported to your platform yet.
AC_LINK_FILES(src/include/port/${os}.h, src/include/os.h) To try a manual configuration, look info the src/template directory
AC_LINK_FILES(src/makefiles/Makefile.${os}, src/Makefile.port) for a similar platform and use the \`--with-template=' option.
Please also contact <pgsql-ports@postgresql.org> to see about
rectifying this. Include the above \`checking host system type...'
line.
*******************************************************************
])
fi
if test "X$need_tas" = "Xyes" fi # --with-template not given
then
AC_LINK_FILES(src/backend/port/tas/${tas_file}, src/backend/port/tas.s)
TAS=tas.o
AC_SUBST(TAS)
fi
dnl this part selects the template from the ones in the template directory. AC_MSG_RESULT([$template])
AC_MSG_CHECKING(setting template to) PORTNAME=$template
AC_ARG_WITH(template, CPU=$host_cpu
[ --with-template=TEMPLATE AC_SUBST(PORTNAME)
use operating system template file AC_SUBST(CPU)
see template directory],
[ TEMPLATE=$withval ],
[
# lowercase $host AC_LINK_FILES([src/backend/port/dynloader/${template}.c], [src/backend/port/dynloader.c])
host="`echo $host | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`" AC_LINK_FILES([src/backend/port/dynloader/${template}.h], [src/include/dynloader.h])
AC_LINK_FILES([src/include/port/${template}.h], [src/include/os.h])
AC_LINK_FILES([src/makefiles/Makefile.${template}], [src/Makefile.port])
# First, try for a template exactly matching $host # Pick right test-and-set (TAS) code. Most platforms have inline
if test -f "src/template/$host" # assembler code in their port include file, so we just use a dummy
then TEMPLATE="$host" # file here.
else tas_file=dummy.s
# Scan template/.similar for a rule that tells us which template to use. need_tas=no
# The format of each line of the file is case $template in
# hostnamepattern=templatefilename hpux) need_tas=yes; tas_file=hpux.s ;;
# where the hostnamepattern is evaluated per the rules of expr(1) --- solaris_sparc) need_tas=yes; tas_file=solaris_sparc.s ;;
# namely, it is a standard regular expression with an implicit ^ at the solaris_i386) need_tas=yes; tas_file=solaris_i386.s ;;
# start. If multiple lines match, we will end up using the last match. esac
#
# The tempfile hackery is needed because some shells will run the loop if test "$need_tas" = yes ; then
# inside a subshell, whereupon shell variables set therein aren't seen AC_LINK_FILES([src/backend/port/tas/${tas_file}], [src/backend/port/tas.s])
# outside the loop :-( TAS=tas.o
TMPFILE="guesses.$$"
cat /dev/null > $TMPFILE
while read LINE
do
SIMHOST=`expr "$LINE" : '\(.*\)='`
MATCH=`expr "$host" : "$SIMHOST"`
if test "$MATCH" != 0
then
echo "$LINE" | sed 's/^.*=//' > $TMPFILE
fi
done <src/template/.similar
GUESS=`cat $TMPFILE`
rm -f $TMPFILE
if test "$GUESS"
then TEMPLATE="$GUESS"
else
# Last chance ... maybe uname -s will match an entry.
TEMPLATE=`uname -s | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
fi
fi
])
AC_MSG_RESULT($TEMPLATE)
export TEMPLATE
if test ! -f "src/template/$TEMPLATE"; then
echo ""
echo "$TEMPLATE does not exist"
echo ""
echo "Available Templates (select one using --with-template):"
echo ""
ls src/template
echo ""
exit
fi fi
AC_SUBST(TAS)
dnl Read the selected template file.
dnl For reasons of backwards compatibility, lines of the form
dnl IDENTIFIER: something
dnl should be treated as variable assignments. However, we also want to
dnl allow other shell commands in the template file (in case the file
dnl needs to make conditional tests, etc). So, generate a temp file with
dnl the IDENTIFIER: lines translated, then source it.
[
rm -f conftest.sh
sed 's/^\([A-Za-z_]*\):\(.*\)$/\1="\2"/' "src/template/$TEMPLATE" >conftest.sh
. ./conftest.sh
rm -f conftest.sh
]
dnl ##
dnl Add non-standard directories to the include path ## Command line options
dnl ##
AC_ARG_WITH(includes, [ --with-includes=DIRS add non-standard include paths],
[if test x"$withval" = x"yes" || test x"$withval" = x"no" ; then
AC_MSG_ERROR([You must supply an argument to the --with-includes option.])
fi])
# SRCH_INC comes from the template file
ac_save_IFS=$IFS
IFS=':'
for dir in $with_includes $SRCH_INC; do
if test -d "$dir"; then
INCLUDES="$INCLUDES -I$dir"
else
AC_MSG_WARN([*** Include directory $dir does not exist.])
fi
done
IFS=$ac_save_IFS
AC_SUBST(INCLUDES)
#
# Add non-standard directories to the include path
#
AC_ARG_WITH(includes, [ --with-includes=DIRS look for additional header files in DIRS],
[
case $withval in
yes | no) AC_MSG_ERROR([You must supply an argument to the --with-includes option.]);;
esac
])
dnl
dnl Add non-standard directories to the library search path
dnl
AC_ARG_WITH(libraries,
[ --with-libraries=DIRS look for additional libraries in DIRS],
[
case "$withval" in
"" | y | ye | yes | n | no)
AC_MSG_ERROR([*** You must supply an argument to the --with-libraries option.])
;;
esac
LIBRARY_DIRS="$withval"
])
AC_ARG_WITH(libs, #
[ --with-libs=DIRS alternate spelling of --with-libraries], # Add non-standard directories to the library search path
[ #
case "$withval" in AC_ARG_WITH(libraries, [ --with-libraries=DIRS look for additional libraries in DIRS],
"" | y | ye | yes | n | no) [
AC_MSG_ERROR([*** You must supply an argument to the --with-libs option.]) case $withval in
;; yes | no) AC_MSG_ERROR([You must supply an argument to the --with-libraries option.]);;
esac esac
LIBRARY_DIRS="$withval" LIBRARY_DIRS=$withval
]) ])
dnl LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
dnl Each can name one or more directories.
if test "$LIBRARY_DIRS" -o "$SRCH_LIB"; then
for dir in $LIBRARY_DIRS $SRCH_LIB; do
if test -d "$dir"; then
PGSQL_LDFLAGS="$PGSQL_LDFLAGS -L$dir"
else
AC_MSG_WARN([*** Library directory $dir does not exist.])
fi
done
fi
## AC_ARG_WITH(libs, [ --with-libs=DIRS alternative spelling of --with-libraries],
## Command line options [
## case $withval in
yes | no) AC_MSG_ERROR([You must supply an argument to the --with-libs option.]);;
esac
LIBRARY_DIRS=$withval
])
# #
...@@ -236,7 +164,7 @@ AC_MSG_CHECKING([whether to build with locale support]) ...@@ -236,7 +164,7 @@ AC_MSG_CHECKING([whether to build with locale support])
AC_ARG_ENABLE(locale, [ --enable-locale enable locale support], AC_ARG_ENABLE(locale, [ --enable-locale enable locale support],
[if test x"$enable_locale" != x"no" ; then [if test x"$enable_locale" != x"no" ; then
enable_locale=yes enable_locale=yes
AC_DEFINE(USE_LOCALE, [], [Set to 1 if you want LOCALE support (--enable-locale)]) AC_DEFINE(USE_LOCALE, 1, [Set to 1 if you want LOCALE support (--enable-locale)])
fi], fi],
[enable_locale=no]) [enable_locale=no])
AC_MSG_RESULT([$enable_locale]) AC_MSG_RESULT([$enable_locale])
...@@ -249,7 +177,7 @@ AC_MSG_CHECKING([whether to build with Cyrillic recode support]) ...@@ -249,7 +177,7 @@ AC_MSG_CHECKING([whether to build with Cyrillic recode support])
AC_ARG_ENABLE(recode, [ --enable-recode enable cyrillic recode support], AC_ARG_ENABLE(recode, [ --enable-recode enable cyrillic recode support],
[if test x"$enable_recode" != x"no" ; then [if test x"$enable_recode" != x"no" ; then
enable_recode=yes enable_recode=yes
AC_DEFINE(CYR_RECODE, [], [Set to 1 if you want cyrillic recode support (--enable-recode)]) AC_DEFINE(CYR_RECODE, 1, [Set to 1 if you want cyrillic recode support (--enable-recode)])
fi], fi],
[enable_recode=no]) [enable_recode=no])
AC_MSG_RESULT([$enable_recode]) AC_MSG_RESULT([$enable_recode])
...@@ -281,7 +209,7 @@ Or do not specify an argument to the option to use the default.]) ;; ...@@ -281,7 +209,7 @@ Or do not specify an argument to the option to use the default.]) ;;
AC_SUBST(MULTIBYTE) AC_SUBST(MULTIBYTE)
if test "$enable_multibyte" = yes ; then if test "$enable_multibyte" = yes ; then
AC_DEFINE(MULTIBYTE, [], [Set to 1 if you want to use multibyte characters (--enable-multibyte)]) AC_DEFINE(MULTIBYTE, 1, [Set to 1 if you want to use multibyte characters (--enable-multibyte)])
AC_MSG_RESULT([yes, default $MULTIBYTE]) AC_MSG_RESULT([yes, default $MULTIBYTE])
else else
AC_MSG_RESULT(no) AC_MSG_RESULT(no)
...@@ -319,10 +247,12 @@ AC_DEFINE_UNQUOTED(DEF_MAXBACKENDS, [$with_maxbackends], [The default soft limit ...@@ -319,10 +247,12 @@ AC_DEFINE_UNQUOTED(DEF_MAXBACKENDS, [$with_maxbackends], [The default soft limit
# #
# C compiler
#
# For historical reasons you can also use --with-CC to specify the C compiler # For historical reasons you can also use --with-CC to specify the C compiler
# to use, although the standard way to do this is to set the CC environment # to use, although the standard way to do this is to set the CC environment
# variable. # variable.
#
if test "${with_CC+set}" = set; then if test "${with_CC+set}" = set; then
case $with_CC in case $with_CC in
yes | no) AC_MSG_ERROR([You must supply an argument to the --with-CC option.]);; yes | no) AC_MSG_ERROR([You must supply an argument to the --with-CC option.]);;
...@@ -330,18 +260,25 @@ if test "${with_CC+set}" = set; then ...@@ -330,18 +260,25 @@ if test "${with_CC+set}" = set; then
esac esac
fi fi
# On AIX, default compiler to xlc.
if test "$template" = aix && test -z "$CC" ; then CC=xlc; fi
#
# C compiler
#
AC_PROG_CC AC_PROG_CC
# Read the template
. "$srcdir/src/template/$template" || exit
echo "using CFLAGS=$CFLAGS"
# Check if the compiler still works with the template settings
AC_PROG_CC_WORKS
AC_PROG_CPP AC_PROG_CPP
AC_PROG_GCC_TRADITIONAL AC_PROG_GCC_TRADITIONAL
AC_SUBST(GCC) AC_SUBST(GCC)
AC_SUBST(AROPT)
AC_SUBST(SHARED_LIB)
AC_SUBST(DLSUFFIX)
AC_SUBST(DL_LIB)
#
# Create compiler version string # Create compiler version string
#
if test x"$GCC" = x"yes" ; then if test x"$GCC" = x"yes" ; then
cc_string="GCC `${CC} --version`" cc_string="GCC `${CC} --version`"
else else
...@@ -350,6 +287,56 @@ fi ...@@ -350,6 +287,56 @@ fi
AC_DEFINE_UNQUOTED(PG_VERSION_STR, ["PostgreSQL $VERSION on $host, compiled by $cc_string"], [A canonical string containing the version number, platform, and C compiler]) AC_DEFINE_UNQUOTED(PG_VERSION_STR, ["PostgreSQL $VERSION on $host, compiled by $cc_string"], [A canonical string containing the version number, platform, and C compiler])
# --enable-debug adds -g to compiler flags
# --disable-debug will forcefully remove it
AC_MSG_CHECKING(setting debug compiler flag)
AC_ARG_ENABLE(debug, [ --enable-debug build with debugging symbols (-g)],
[
case $enableval in
yes) CFLAGS="$CFLAGS -g"
AC_MSG_RESULT(yes)
;;
*) CFLAGS=`echo "$CFLAGS" | sed -e 's/ -g/ /g' -e 's/^-g//'`
AC_MSG_RESULT(no)
;;
esac
],
[AC_MSG_RESULT(using default)])
#
# Include directories
#
ac_save_IFS=$IFS
IFS=':'
# SRCH_INC comes from the template file
for dir in $with_includes $SRCH_INC; do
if test -d "$dir"; then
INCLUDES="$INCLUDES -I$dir"
else
AC_MSG_WARN([*** Include directory $dir does not exist.])
fi
done
IFS=$ac_save_IFS
AC_SUBST(INCLUDES)
#
# Library directories
#
ac_save_IFS=$IFS
IFS=':'
# LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
for dir in $LIBRARY_DIRS $SRCH_LIB; do
if test -d "$dir"; then
PGSQL_LDFLAGS="$PGSQL_LDFLAGS -L$dir"
else
AC_MSG_WARN([*** Library directory $dir does not exist.])
fi
done
IFS=$ac_save_IFS
dnl We exclude tcl support unless user says --with-tcl dnl We exclude tcl support unless user says --with-tcl
AC_MSG_CHECKING(setting USE_TCL) AC_MSG_CHECKING(setting USE_TCL)
...@@ -364,9 +351,9 @@ AC_ARG_WITH( ...@@ -364,9 +351,9 @@ AC_ARG_WITH(
], ],
[ USE_TCL=; USE_TK=; AC_MSG_RESULT(disabled) ] [ USE_TCL=; USE_TK=; AC_MSG_RESULT(disabled) ]
) )
AC_SUBST(USE_TCL)
AC_SUBST(USE_TK)
export USE_TCL
export USE_TK
dnl We see if the path to the TCL/TK configuration scripts is specified. dnl We see if the path to the TCL/TK configuration scripts is specified.
dnl This will override the use of tclsh to find the paths to search. dnl This will override the use of tclsh to find the paths to search.
...@@ -632,62 +619,26 @@ AC_ARG_ENABLE( ...@@ -632,62 +619,26 @@ AC_ARG_ENABLE(
AC_MSG_RESULT(disabled) AC_MSG_RESULT(disabled)
) )
CPPFLAGS="$CPPFLAGS $INCLUDES"
echo "- setting CPPFLAGS=$CPPFLAGS"
LDFLAGS="$LDFLAGS $PGSQL_LDFLAGS"
echo "- setting LDFLAGS=$LDFLAGS"
dnl --enable-debug adds -g to compiler flags
dnl --disable-debug will forcefully remove it
AC_MSG_CHECKING(setting debug compiler flag)
AC_ARG_ENABLE(
debug,
[ --enable-debug build with debugging symbols (-g) ],
[
case "$enableval" in
y | ye | yes)
CFLAGS="$CFLAGS -g"
AC_MSG_RESULT(enabled)
;;
*)
CFLAGS=`echo "$CFLAGS" | sed -e 's/ -g/ /g' | sed -e 's/^-g//'`
AC_MSG_RESULT(disabled)
;;
esac
],
AC_MSG_RESULT(using default)
)
# Assume system is ELF if it predefines __ELF__ as 1, # Assume system is ELF if it predefines __ELF__ as 1,
# otherwise believe "elf" setting from check of host_os above. # otherwise believe host_os based default.
case $host_os in
freebsd1*|freebsd2*) elf=yes;;
esac
AC_EGREP_CPP(yes, AC_EGREP_CPP(yes,
[#if __ELF__ [#if __ELF__
yes yes
#endif #endif
], ],
ELF_SYS=true, [ELF_SYS=true],
[if test "X$elf" = "Xyes" [if test "X$elf" = "Xyes" ; then
then ELF_SYS=true
ELF_SYS=true
else else
ELF_SYS= ELF_SYS=
fi fi])
])
AC_SUBST(ELF_SYS) AC_SUBST(ELF_SYS)
AC_SUBST(PORTNAME)
AC_SUBST(CPU)
AC_SUBST(SRCDIR)
AC_SUBST(LDFLAGS)
AC_SUBST(AROPT)
AC_SUBST(SHARED_LIB)
AC_SUBST(CFLAGS)
AC_SUBST(DLSUFFIX)
AC_SUBST(DL_LIB)
AC_SUBST(USE_TCL)
AC_SUBST(USE_TK)
AC_SUBST(WISH)
dnl dnl
...@@ -711,6 +662,13 @@ fi], ...@@ -711,6 +662,13 @@ fi],
AC_SUBST(with_CXX) AC_SUBST(with_CXX)
CPPFLAGS="$CPPFLAGS $INCLUDES"
LDFLAGS="$LDFLAGS $PGSQL_LDFLAGS"
echo "using CPPFLAGS=$CPPFLAGS"
echo "using LDFLAGS=$LDFLAGS"
# Figure out how to invoke "install" and what install options to use. # Figure out how to invoke "install" and what install options to use.
AC_PROG_INSTALL AC_PROG_INSTALL
...@@ -858,19 +816,22 @@ PGAC_VAR_INT_TIMEZONE ...@@ -858,19 +816,22 @@ PGAC_VAR_INT_TIMEZONE
AC_FUNC_ACCEPT_ARGTYPES AC_FUNC_ACCEPT_ARGTYPES
PGAC_FUNC_GETTIMEOFDAY_1ARG PGAC_FUNC_GETTIMEOFDAY_1ARG
AC_MSG_CHECKING(for fcntl(F_SETLK)) AC_MSG_CHECKING([for fcntl(F_SETLK)])
if test "$os" != linux ; then case $host_os in
AC_TRY_LINK([#include <stdio.h> linux*) AC_MSG_RESULT([broken on Linux]) ;;
#include <fcntl.h>], *)
[struct flock lck; AC_TRY_LINK(
lck.l_whence = SEEK_SET; lck.l_start = lck.l_len = 0; [#include <stdio.h>
lck.l_type = F_WRLCK; #include <fcntl.h>
fcntl(0, F_SETLK, &lck);], ],
[AC_DEFINE(HAVE_FCNTL_SETLK) AC_MSG_RESULT(yes)], [struct flock lck;
AC_MSG_RESULT(no)) lck.l_whence = SEEK_SET; lck.l_start = lck.l_len = 0;
else lck.l_type = F_WRLCK;
AC_MSG_RESULT([broken on Linux]) fcntl(0, F_SETLK, &lck);],
fi [AC_DEFINE(HAVE_FCNTL_SETLK) AC_MSG_RESULT(yes)],
[AC_MSG_RESULT(no)])
;;
esac
AC_CHECK_FUNCS([fcvt getopt_long memmove pstat setproctitle setsid sigprocmask sysconf waitpid]) AC_CHECK_FUNCS([fcvt getopt_long memmove pstat setproctitle setsid sigprocmask sysconf waitpid])
...@@ -976,7 +937,7 @@ AC_CHECK_FUNC(cbrt, ...@@ -976,7 +937,7 @@ AC_CHECK_FUNC(cbrt,
# On HPUX 9, rint() is not in regular libm.a but in /lib/pa1.1/libm.a; # On HPUX 9, rint() is not in regular libm.a but in /lib/pa1.1/libm.a;
# this hackery with HPUXMATHLIB allows us to cope. # this hackery with HPUXMATHLIB allows us to cope.
HPUXMATHLIB="" HPUXMATHLIB=""
case "$host_cpu" in case $host_cpu in
hppa1.1) hppa1.1)
if [[ -r /lib/pa1.1/libm.a ]] ; then if [[ -r /lib/pa1.1/libm.a ]] ; then
HPUXMATHLIB="-L /lib/pa1.1 -lm" HPUXMATHLIB="-L /lib/pa1.1 -lm"
...@@ -1244,6 +1205,7 @@ then ...@@ -1244,6 +1205,7 @@ then
AC_PATH_PROG(WISH, wish) AC_PATH_PROG(WISH, wish)
fi fi
fi fi
AC_SUBST(WISH)
USE_X=$USE_TK USE_X=$USE_TK
......
# Format of this file is expr-style-regular-expression=templatefilename
alpha[a-z0-9]*-unknown-linux-gnu=linux_alpha
alpha[a-z0-9]*-dec-osf=alpha_cc
arm-unknown-linux-gnu=linux_arm
hppa[0-9.]*-hp-hpux=hpux_cc
hppa1.1-stratus-sysv4=svr4
i.86-next-nextstep3=nextstep
i.86-pc-bsdi2.0=bsdi_2.0
i.86-pc-bsdi2.1=bsdi_2.1
i.86-pc-bsdi3=bsdi_2.1
i.86-pc-bsdi4=bsdi_4.0
i.86-pc-cygwin=cygwin32
i.86-pc-linux-gnu=linux_i386
i.86-pc-sco3.2v=sco
i.86-pc-solaris=solaris_i386_gcc
i.86-pc-sunos5=solaris_i386_gcc
i.86-unknown-freebsd=freebsd
i.86-unknown-netbsd=netbsd
m68k-unknown-linux=linux_m68k
mips-pc-linux-gnu=linux_mips
mips-sgi-irix=irix5
mipsel-unknown-linux-gnu=linux_mips
powerpc-ibm-aix3.2.5=aix_325
powerpc-ibm-aix4.1=aix_41
powerpc-ibm-aix4.2=aix_42
powerpc-ibm-aix4.3=aix_42
powerpc-unknown-linux-gnu=linux_ppc
rs6000-ibm-aix4.2=aix_42
rs6000-ibm-aix4.3=aix_42
sparc-sun-solaris=solaris_sparc_gcc
sparc-sun-sunos4=sunos4_gcc
sparc-sun-sunos5=solaris_sparc_gcc
sparc-unknown-bsdi4=bsdi_4.0_sparc
sparc-unknown-linux-gnu=linux_sparc
AROPT=crs
DLSUFFIX=.so
if test "$GCC" = yes ; then
CFLAGS=-pipe
CXXFLAGS=-pipe
SHARED_LIB=-lc
else # not GCC
case $host_os in
aix3.2.5)
CFLAGS='-qchars=signed -qmaxmem=8192 -qhalt=w -qsrcmsg'
SHARED_LIB='-e _nostart -lc'
;;
aix4.1)
CFLAGS='-qchars=signed -qmaxmem=8192 -qhalt=w -qsrcmsg -qcheck=divzero'
SHARED_LIB='-bnoentry -lc'
;;
aix4.2 | aix4.3)
CFLAGS='-qmaxmem=16384 -qhalt=w -qsrcmsg -qlanglvl=extended -qlonglong'
SHARED_LIB='-lc'
;;
esac
fi # not GCC
AROPT:crs
CFLAGS:-qchars=signed -qmaxmem=8192 -qhalt=w -qsrcmsg
SHARED_LIB:-e _nostart -lc
ALL:
SRCH_INC:
SRCH_LIB:
DLSUFFIX:.so
CC:xlc
AROPT:crs
CFLAGS:-qchars=signed -qmaxmem=8192 -qhalt=w -qsrcmsg -qcheck=divzero
SHARED_LIB:-bnoentry -lc
ALL:
SRCH_INC:
SRCH_LIB:
DLSUFFIX:.so
CC:xlc
AROPT:crs
CFLAGS:-qmaxmem=16384 -qhalt=w -qsrcmsg -qlanglvl=extended -qlonglong
SHARED_LIB:-lc
ALL:
SRCH_INC:
SRCH_LIB:
DLSUFFIX:.so
CC:xlc
AROPT:crs
CFLAGS:-pipe
CXXFLAGS:-pipe
SHARED_LIB:-lc
ALL:
SRCH_INC:
SRCH_LIB:
DLSUFFIX:.so
CC:gcc
AROPT:crs
# NOFIXADE disallows unaligned access.
# on Ultrix and OSF/1 it invokes an explicit syscall.
# on HP-UX it turns off certain compiler options.
# This is defined here because a bunch of clients include tmp/c.h,
# which is where the work is done on HP-UX. It only affects the
# backend on Ultrix and OSF/1.
CC:cc
CFLAGS:-D__alpha__ -DNOFIXADE -std -O4 -Olimit 2000
LDFLAGS='-rpath $(LIBDIR)'
SHARED_LIB:
ALL:
SRCH_INC:
SRCH_LIB:
DLSUFFIX:.so
CCC:cxx
CXXFLAGS:-D__alpha__ -DNOFIXADE -O4 -Olimit 2000
AROPT=cq
CFLAGS='-O2 -pipe'
case $host_cpu in
i?86) CFLAGS="$CFLAGS -m486";;
esac
case $host_os in
bsdi2.0) CFLAGS="$CFLAGS -DPRE_BSDI_2_1";;
esac
case $host_os in
bsdi2.0 | bsdi2.1 | bsdi3)
SHARED_LIB=
DLSUFFIX=.o
CC=gcc2
;;
bsdi4)
SHARED_LIB=-fpic
DLSUFFIX=.so
;;
esac
AROPT:cq
CFLAGS:-O2 -m486 -pipe -DPRE_BSDI_2_1
SHARED_LIB:
ALL:
SRCH_INC:
SRCH_LIB:
DLSUFFIX:.o
CC:gcc2
AROPT:cq
CFLAGS:-O2 -m486 -pipe
SHARED_LIB:
ALL:
SRCH_INC:
SRCH_LIB:
DLSUFFIX:.o
CC:gcc2
AROPT:cq
CFLAGS:-O2 -m486 -pipe
SHARED_LIB:-fpic
ALL:
SRCH_INC:
SRCH_LIB:
DLSUFFIX:.so
CC:gcc
AROPT:cq
CFLAGS:-O2 -pipe
SHARED_LIB:-fpic
ALL:
SRCH_INC:
SRCH_LIB:
DLSUFFIX:.so
CC:gcc
AROPT:crs
CFLAGS:-O2
SHARED_LIB:
ALL:
SRCH_INC:/usr/local/include
SRCH_LIB:/usr/local/lib
DLSUFFIX:.dll
LIBS:-lcygipc
AROPT:crs AROPT=crs
CFLAGS: CFLAGS=
LIBS:-lsocket -lnsl SHARED_LIB=-fpic
SHARED_LIB:-fpic DLSUFFIX=.so
ALL:
SRCH_INC:
SRCH_LIB:
DLSUFFIX:.so
AROPT:cq AROPT=cq
SHARED_LIB:-fpic -DPIC SHARED_LIB='-fpic -DPIC'
CFLAGS:-O2 -m486 -pipe CFLAGS='-O2 -m486 -pipe'
SRCH_INC: DLSUFFIX=.so
SRCH_LIB:
DLSUFFIX:.so
AROPT:crs
CFLAGS:
SHARED_LIB:
ALL:
SRCH_INC:
SRCH_LIB:
DLSUFFIX:.so
AROPT=crs
DLSUFFIX=.sl
if test "$GCC" = yes ; then
CFLAGS=-O2
SHARED_LIB=-fPIC
DL_LIB=/usr/lib/libdld.sl
CCC=g++
else
CFLAGS='-Wl,-E -Ae'
SHARED_LIB=+z
CPP='cc -E -Ae'
CCC=aCC
fi
AROPT:crs
CFLAGS:-Wl,-E -Ae
SHARED_LIB:+z
ALL:
SRCH_INC:
SRCH_LIB:
DLSUFFIX:.sl
CC:cc
CPP:cc -E -Ae
# Make aCC be first C++ compiler name tried...
CCC:aCC
AROPT:crs
CFLAGS:-O2
SHARED_LIB:-fPIC
ALL:
SRCH_INC:
SRCH_LIB:
DL_LIB:/usr/lib/libdld.sl
DLSUFFIX:.sl
CC:gcc
CCC:g++
AROPT:crs AROPT=crs
CFLAGS: CFLAGS=
SHARED_LIB: SHARED_LIB=
ALL: DLSUFFIX=.so
SRCH_INC:
SRCH_LIB:
DLSUFFIX:.so
AROPT=crs
CFLAGS=-O2
SHARED_LIB=-fpic
DLSUFFIX=.so
case $host_cpu in
mips*) CFLAGS="$CFLAGS -mips2";;
alpha*) CPU=alpha;;
esac
AROPT:crs
CFLAGS:-O2
SHARED_LIB:-fpic
ALL:
SRCH_INC:
SRCH_LIB:
DLSUFFIX:.so
CPU:alpha
AROPT:crs
CFLAGS:-O2
SHARED_LIB:-fpic
ALL:
SRCH_INC:
SRCH_LIB:
DLSUFFIX:.so
AROPT:crs
CFLAGS:-O2
SHARED_LIB:-fpic
ALL:
SRCH_INC:
SRCH_LIB:
DLSUFFIX:.so
AROPT:crs
CFLAGS:-O2
SHARED_LIB:-fpic
ALL:
SRCH_INC:
SRCH_LIB:
DLSUFFIX:.so
AROPT:crs
CFLAGS:-O2 -mips2
SHARED_LIB:-fpic
ALL:
SRCH_INC:
SRCH_LIB:
DLSUFFIX:.so
AROPT:crs
CFLAGS:-O2
SHARED_LIB:-fpic
ALL:
SRCH_INC:
SRCH_LIB:
DLSUFFIX:.so
AROPT:crs
CFLAGS:-O2
SHARED_LIB:-fpic
ALL:
SRCH_INC:
SRCH_LIB:
DLSUFFIX:.so
AROPT:cq AROPT=cq
SHARED_LIB:-fpic -DPIC SHARED_LIB='-fpic -DPIC'
CFLAGS:-O2 -pipe CFLAGS='-O2 -pipe'
SRCH_INC: DLSUFFIX=.so
SRCH_LIB:
DLSUFFIX:.so
AROPT:rc AROPT=rc
CFLAGS: CFLAGS=
SHARED_LIB: SHARED_LIB=
ALL: DLSUFFIX=.o
SRCH_INC:
SRCH_LIB:
DLSUFFIX:.o
AROPT:cq AROPT=cq
SHARED_LIB:-fpic -DPIC SHARED_LIB='-fpic -DPIC'
CFLAGS:-O2 -pipe CFLAGS='-O2 -pipe'
SRCH_INC: DLSUFFIX=.so
SRCH_LIB:
DLSUFFIX:.so
AROPT:crs AROPT=crs
# NOFIXADE disallows unaligned access. # NOFIXADE disallows unaligned access.
# on Ultrix and OSF/1 it invokes an explicit syscall. # on Ultrix and OSF/1 it invokes an explicit syscall.
# on HP-UX it turns off certain compiler options. # on HP-UX it turns off certain compiler options.
# This is defined here because a bunch of clients include tmp/c.h, # This is defined here because a bunch of clients include tmp/c.h,
# which is where the work is done on HP-UX. It only affects the # which is where the work is done on HP-UX. It only affects the
# backend on Ultrix and OSF/1. # backend on Ultrix and OSF/1.
CC:gcc
CFLAGS:-D__alpha__ -DNOFIXADE if test "$GCC" = yes ; then
SHARED_LIB: CFLAGS='-D__alpha__ -DNOFIXADE'
ALL: CCC=g++
SRCH_INC: else
SRCH_LIB: CFLAGS='-D__alpha__ -DNOFIXADE -std -O4 -Olimit 2000'
DLSUFFIX:.so LDFLAGS='-rpath $(libdir)'
CCC=cxx
CXXFLAGS='-D__alpha__ -DNOFIXADE -O4 -Olimit 2000'
fi
DLSUFFIX=.so
SHARED_LIB=
AROPT:cr
CFLAGS:
LIBS:-lunix
SHARED_LIB:
ALL:
SRCH_INC:
SRCH_LIB:
DLSUFFIX:.so
CXXFLAGS:-I/usr/local/lib/gcc-lib/i386-pc-qnx4/egcs-2.91.60/include/g++
AROPT=cr
CFLAGS=
LIBS=-lunix
SHARED_LIB=
DLSUFFIX=.so
CXXFLAGS=-I/usr/local/lib/gcc-lib/i386-pc-qnx4/egcs-2.91.60/include/g++
AROPT:cq AROPT=cq
CFLAGS: CFLAGS=
SHARED_LIB:-K PIC SHARED_LIB='-K PIC'
ALL: DLSUFFIX=.so
SRCH_INC: CC="$CC -b elf"
SRCH_LIB:
DLSUFFIX:.so
CC:cc -b elf
DLSUFFIX=.so
if test "$GCC" = yes ; then
AROPT=crs
CFLAGS=
SHARED_LIB=-fPIC
else
AROPT=cq
CFLAGS=
SHARED_LIB=-KPIC
fi
AROPT:cq
CFLAGS:
SHARED_LIB:-KPIC
ALL:
SRCH_INC:
SRCH_LIB:
DLSUFFIX:.so
CC:cc
AROPT:crs
CFLAGS:
SHARED_LIB:-fPIC
ALL:
SRCH_INC:
SRCH_LIB:
DLSUFFIX:.so
AROPT=crs
DLSUFFIX=.so
if test "$GCC" = yes ; then
CFLAGS=
SHARED_LIB=-fPIC
else
CFLAGS='-Xa -v -D__sparc__ -D__sun__'
SHARED_LIB=-KPIC
fi
AROPT:crs
CFLAGS:-Xa -v -D__sparc__ -D__sun__
SHARED_LIB:-KPIC
ALL:
SRCH_INC:
SRCH_LIB:
DLSUFFIX:.so
CC:cc
AROPT:crs
CFLAGS:
SHARED_LIB:-fPIC
ALL:
SRCH_INC:
SRCH_LIB:
DLSUFFIX:.so
AROPT=cr
DLSUFFIX=.so
if test "$GCC" = yes ; then
CFLAGS=
SHARED_LIB=-fPIC
else
CFLAGS=
SHARED_LIB=-PIC
fi
AROPT:cr
CFLAGS:
SHARED_LIB:-PIC
ALL:
SRCH_INC:
SRCH_LIB:
DLSUFFIX:.so
CC:cc
AROPT:cr
CFLAGS:
SHARED_LIB:-fPIC
ALL:
SRCH_INC:
SRCH_LIB:
DLSUFFIX:.so
AROPT:crs AROPT=crs
CFLAGS: CFLAGS=
SHARED_LIB: SHARED_LIB=
ALL:+W0 DLSUFFIX=.so
SRCH_INC:
SRCH_LIB:
DLSUFFIX:.so
AROPT:crs AROPT=crs
CFLAGS:-DNOFIXADE CFLAGS=-DNOFIXADE
SHARED_LIB:-G 0 SHARED_LIB='-G 0'
ALL: DLSUFFIX=.so
SRCH_INC:
SRCH_LIB:
DLSUFFIX:.so
AROPT:crs AROPT=crs
CFLAGS:-v -O -K i486,host,inline,loop_unroll -Dsvr4 CFLAGS='-v -O -K i486,host,inline,loop_unroll -Dsvr4'
SHARED_LIB:-K PIC SHARED_LIB='-K PIC'
SRCH_INC: DLSUFFIX=.so
SRCH_LIB: LIBS=-lc89
DLSUFFIX:.so
CC:cc
LIBS:-lc89
AROPT:crs AROPT=crs
CFLAGS:-O -K i486,host,inline,loop_unroll,alloca -Dsvr4 CFLAGS='-O -K i486,host,inline,loop_unroll,alloca -Dsvr4'
SHARED_LIB:-K PIC SHARED_LIB='-K PIC'
SRCH_INC:/opt/include SRCH_INC='/opt/include'
SRCH_LIB:/opt/lib SRCH_LIB='/opt/lib'
DLSUFFIX:.so DLSUFFIX=.so
CC:cc
AROPT=crs
CFLAGS=-O2
SRCH_INC=/usr/local/include
SRCH_LIB=/usr/local/lib
DLSUFFIX=.dll
LIBS=-lcygipc
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment