version 1.58, 2011/04/21 15:59:42
|
version 1.87, 2011/09/16 17:56:04
|
Line 1
|
Line 1
|
dnl Process this file with autoconf to produce a configure script. |
dnl Process this file with autoconf to produce a configure script. |
AC_INIT([rpl],[4.1.0.prerelease.0]) |
AC_INIT([rpl],[4.1.3]) |
AC_CANONICAL_TARGET |
AC_CANONICAL_TARGET |
AC_CANONICAL_TARGET |
AC_CANONICAL_TARGET |
AM_INIT_AUTOMAKE |
AM_INIT_AUTOMAKE |
Line 10 dnl Libraries
|
Line 10 dnl Libraries
|
NCURSES=ncurses-5.9 |
NCURSES=ncurses-5.9 |
READLINE=readline-6.2 |
READLINE=readline-6.2 |
UNITS=units-1.88 |
UNITS=units-1.88 |
GSL=gsl-1.14 |
GSL=gsl-1.15 |
GPP=gpp-2.24 |
GPP=gpp-3.0 |
GNUPLOT=gnuplot-4.4.3 |
GNUPLOT=gnuplot-4.4.3 |
FILE=file-5.03 |
FILE=file-5.03 |
ICONV=libiconv-1.13.1 |
ICONV=libiconv-1.13.1 |
SQLITE=sqlite-3.7.5 |
SQLITE=sqlite-3.7.7.1 |
OPENSSL=openssl-1.0.0d |
OPENSSL=openssl-1.0.0e |
|
OPENMOTIF=openmotif-2.3.3 |
|
LIBXPM=libXpm-3.5.9 |
|
SIGSEGV=libsigsegv-2.6 |
|
|
GMP=gmp-5.0.1 |
GMP=gmp-5.0.2 |
MPFR=mpfr-3.0.1 |
MPFR=mpfr-3.0.1 |
NTL=ntl-5.5.2 |
NTL=ntl-5.5.2 |
COCOA=CoCoALib-0.9943 |
COCOA=CoCoALib-0.9943 |
PARI=pari-2.3.5 |
PARI=pari-2.5.0 |
GIAC=giac-0.9.2 |
GIAC=giac-0.9.3 |
|
|
dnl Checks for C compiler |
dnl Checks for C compiler |
AC_PROG_CC(gcc) |
AC_PROG_CC(gcc) |
Line 60 fi
|
Line 63 fi
|
dnl Checks for C++ compiler |
dnl Checks for C++ compiler |
AC_PROG_CXX(g++) |
AC_PROG_CXX(g++) |
|
|
if test "$GXX" != yes; then |
if test "$CXX" != "g++"; then |
AC_MSG_ERROR([Cannot find g++! You have to install it.]) |
AC_MSG_ERROR([Cannot find g++! You have to install it.]) |
fi |
fi |
|
|
|
if test x"$CXX" != x""; then |
|
GCC_VERSION_MAJEURE=`$CXX -v 2>&1 | awk '/^gcc/ { print $3; }' | \ |
|
awk -F. '{ printf("%s", $1);}'` |
|
GCC_VERSION_MINEURE=`$CXX -v 2>&1 | awk '/^gcc/ { print $3; }' | \ |
|
awk -F. '{ printf("%s", $2);}'` |
|
if test $GCC_VERSION_MAJEURE -ge 5; then |
|
OPTIMISATION_GXX=-O3 |
|
else |
|
if test $GCC_VERSION_MAJEURE -ge 4 -a $GCC_VERSION_MINEURE -ge 4; then |
|
OPTIMISATION_GXX=-O3 |
|
else |
|
if test $GCC_VERSION_MAJEURE -ge 3; then |
|
OPTIMISATION_GXX=-O2 |
|
else |
|
AC_MSG_ERROR([Cannot find decent or recent g++ (g++-4.3 or better)!]) |
|
fi |
|
fi |
|
fi |
|
fi |
|
|
dnl Checks for Fortran 77 compiler |
dnl Checks for Fortran 77 compiler |
AC_PROG_F77(gfortran) |
AC_PROG_F77(gfortran) |
|
|
Line 114 if test "$ac_x_libraries" != "no"; then
|
Line 137 if test "$ac_x_libraries" != "no"; then
|
fi |
fi |
fi |
fi |
|
|
|
dnl 32 bits ABI |
|
AC_ARG_WITH(32bits-abi, |
|
[ --with-32bits-abi force 32bits ABI (multilib)],[ |
|
if test "$with-32bits-abi" = "no"; then |
|
ABI= |
|
else |
|
ABI=-m32 |
|
fi],[ |
|
ABI= |
|
] |
|
) |
|
|
|
if test x$ABI = x; then |
|
AC_ARG_WITH(64bits-abi, |
|
[ --with-64bits-abi force 64bits ABI (multilib)],[ |
|
if test "$with-64bits-abi" = "no"; then |
|
ABI= |
|
else |
|
ABI=-m64 |
|
fi],[ |
|
ABI= |
|
] |
|
) |
|
fi |
|
|
|
LDFLAGS="$LDFLAGS $ABI" |
|
|
|
dnl RPL/CAS support |
|
AC_ARG_WITH(rplcas, |
|
[ --with-rplcas compile rplcas (default=no)],[ |
|
if test "$with-rplcas" = "no"; then |
|
RPLCAS=-URPLCAS |
|
LIBRPLCAS= |
|
else |
|
RPLCAS=-DRPLCAS |
|
LIBRPLCAS=\$\(top_builddir\)/rplcas/lib/librplcas.a |
|
fi],[ |
|
RPLCAS=-URPLCAS |
|
LIBRPLCAS= |
|
] |
|
) |
|
|
|
AC_SUBST(ABI) |
|
AC_SUBST(RPLCAS) |
|
AC_SUBST(LIBRPLCAS) |
|
|
dnl Options |
dnl Options |
AC_ARG_ENABLE(optimization, |
AC_ARG_ENABLE(optimization, |
[ --enable-optimization set compiler flags [[default=environment variables -O3]]], [ |
[ --enable-optimization set compiler flags [[default=environment variables -O3]]], [ |
if test "$enableval" = "no"; then |
if test "$enableval" = "no"; then |
CFLAGS= |
CFLAGS=$ABI |
FFLAGS= |
FFLAGS=$ABI |
CXXFLAGS= |
CXXFLAGS=$ABI |
FCFLAGS= |
FCFLAGS=$ABI |
else |
else |
CFLAGS="$CFLAGS $enable_optimization" |
CFLAGS="$CFLAGS $ABI $enable_optimization" |
FFLAGS="$FFLAGS $enable_optimization" |
FFLAGS="$FFLAGS $ABI $enable_optimization" |
FCFLAGS="$FCFLAGS $enable_optimization" |
CXXFLAGS="$CXXFLAGS $ABI $enable_optimization" |
|
FCFLAGS="$FCFLAGS $ABI $enable_optimization" |
fi],[ |
fi],[ |
CFLAGS="$CFLAGS $OPTIMISATION_C" |
CFLAGS="$CFLAGS $ABI $OPTIMISATION_C" |
FFLAGS="$FFLAGS $OPTIMISATION_F" |
FFLAGS="$FFLAGS $ABI $OPTIMISATION_F" |
FCFLAGS="$FCFLAGS $OPTIMISATION_F" |
CXXFLAGS="$CXXFLAGS $ABI $OPTIMISATION_CXX" |
|
FCFLAGS="$FCFLAGS $ABI $OPTIMISATION_F" |
] |
] |
) |
) |
|
|
AC_ARG_ENABLE(sysv-semaphores, |
AC_ARG_ENABLE(sysv-semaphores, |
[ --enable-sysv-ipcs use SystemV IPC functions [[default=no]]], [ |
[ --enable-sysv-ipcs use SystemV IPC functions [[default=guessed]]], [ |
if test "$enableval" = "no"; then |
if test "$enableval" = "no"; then |
IPCS_SYSV=no |
IPCS_SYSV=no |
else |
else |
IPCS_SYSV=yes |
IPCS_SYSV=yes |
fi], |
fi], |
IPCS_SYSV=no) |
[AC_MSG_CHECKING([for POSIX semaphores]) |
|
AC_COMPILE_IFELSE( |
|
[AC_LANG_PROGRAM([#include <sys/mman.h> |
|
#include <sys/stat.h> |
|
#include <fcntl.h> |
|
], |
|
[ int fd; char *sem = "/sem.test"; |
|
fd = shm_open(sem , O_CREAT | O_RDWR, S_IRUSR | S_IWUSR); |
|
close(fd); |
|
shm_unlink(sem); |
|
return(0); |
|
])], |
|
[IPCS_SYSV=-UIPCS_SYSV; AC_MSG_RESULT(yes)], |
|
[IPCS_SYSV=-DIPCS_SYSV; AC_MSG_RESULT(no)] |
|
)] |
|
) |
|
|
|
if test "$IPCS_SYSV" = "-UIPCS_SYSV"; then |
|
REG=$LDFLAGS |
|
LDFLAGS=-pthread |
|
[AC_MSG_CHECKING([for POSIX anonymous semaphores]) |
|
AC_RUN_IFELSE( |
|
[AC_LANG_PROGRAM([#include <semaphore.h> |
|
], |
|
[ sem_t sem; |
|
if (sem_init(&sem, 1, 0) != 0) return(1); |
|
sem_destroy(&sem); |
|
return(0); |
|
])], |
|
[SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES; AC_MSG_RESULT(yes)], |
|
[SEMAPHORES_NOMMES=-DSEMAPHORES_NOMMES; AC_MSG_RESULT(no)], |
|
)] |
|
LDFLAGS=$REG |
|
REG="" |
|
else |
|
SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES |
|
fi |
|
|
AC_ARG_ENABLE(full-static, |
AC_ARG_ENABLE(full-static, |
[ --enable-full-static build static RPL/2 engine [[default=shared]]], [ |
[ --enable-full-static build static RPL/2 engine [[default=shared]]], [ |
Line 211 else
|
Line 318 else
|
FORCE_GNUPLOT_PATH=-UFORCE_GNUPLOT_PATH |
FORCE_GNUPLOT_PATH=-UFORCE_GNUPLOT_PATH |
fi]) |
fi]) |
|
|
|
libX="" |
|
LIBMOTIF="" |
|
INCMOTIF="" |
|
BUILD_OPENMOTIF="" |
|
|
AC_ARG_ENABLE(motif, |
AC_ARG_ENABLE(motif, |
[ --enable-motif provide the Motif support [[default=guessed]]], [ |
[ --enable-motif provide the Motif support [[default=guessed]]], [ |
if test "$enableval" = "no"; then |
if test "$enableval" = "no"; then |
MOTIF_SUPPORT="-UMOTIF_SUPPORT" |
MOTIF_SUPPORT="-UMOTIF_SUPPORT" |
else |
else |
CFLAGS_ORIG=$CFLAGS |
MOTIF_SUPPORT="-DMOTIF_SUPPORT" |
LIBS_ORIG=$LIBS |
|
CFLAGS="$CFLAGS $X_CFLAGS" |
|
LIBS="$LIB $X_LIBS" |
|
AC_CHECK_LIB(Xm, main, MOTIF_SUPPORT="-DMOTIF_SUPPORT", MOTIF_SUPPORT="-UMOTIF_SUPPORT") |
|
if test "$MOTIF_SUPPORT" = "-UMOTIF_SUPPORT"; then |
|
AC_MSG_WARN([Can not find Motif! You may install it. |
|
Motif flag is disabled. |
|
]) |
|
fi |
|
LIBS=$LIBS_ORIG |
|
CFLAGS=$CFLAGS_ORIG |
|
fi], |
fi], |
MOTIF_SUPPORT=guessed) |
if test "$have_x" == "yes"; then |
|
MOTIF_SUPPORT="-DMOTIF_SUPPORT" |
|
else |
|
MOTIF_SUPPORT="-UMOTIF_SUPPORT" |
|
fi) |
|
|
|
if test "$MOTIF_SUPPORT" = "-DMOTIF_SUPPORT"; then |
|
libX="$X_LIBS -lXt -lX11" |
|
LIBMOTIF="\$(top_builddir)/tools/$OPENMOTIF/lib/Xm/.libs/libXm.a \ |
|
\$(top_builddir)/tools/$LIBXPM/src/.libs/libXpm.a" |
|
INCMOTIF="-I\$(top_srcdir)/tools/$OPENMOTIF/lib \ |
|
-I\$(top_builddir)/tools/$OPENMOTIF/lib \ |
|
-I\$(top_builddir)/tools/$LIBXPM/include" |
|
BUILD_OPENMOTIF="$LIBXPM $OPENMOTIF" |
|
AC_CONFIG_SUBDIRS(tools/$LIBXPM) |
|
AC_CONFIG_SUBDIRS(tools/$OPENMOTIF) |
|
fi |
|
|
AC_ARG_ENABLE(experimental, |
AC_ARG_ENABLE(experimental, |
[ --enable-experimental enable experimental code [[default=no]]], [ |
[ --enable-experimental enable experimental code [[default=no]]], [ |
Line 304 if test ! -d "$srcdir"/tools/$SQLITE; th
|
Line 421 if test ! -d "$srcdir"/tools/$SQLITE; th
|
gunzip -c "$srcdir"/tools/$SQLITE.tar.gz | \ |
gunzip -c "$srcdir"/tools/$SQLITE.tar.gz | \ |
(cd "$srcdir/tools" && tar -xf -) |
(cd "$srcdir/tools" && tar -xf -) |
fi |
fi |
|
if test ! -d "$srcdir"/tools/$SIGSEGV; then |
|
gunzip -c "$srcdir"/tools/$SIGSEGV.tar.gz | \ |
|
(cd "$srcdir/tools" && tar -xf -) |
|
fi |
|
if test ! -d "$srcdir"/tools/$OPENMOTIF; then |
|
gunzip -c "$srcdir"/tools/$OPENMOTIF.tar.gz | \ |
|
(cd "$srcdir/tools" && tar -xf -) |
|
fi |
|
if test ! -d "$srcdir"/tools/$LIBXPM; then |
|
gunzip -c "$srcdir"/tools/$LIBXPM.tar.gz | \ |
|
(cd "$srcdir/tools" && tar -xf -) |
|
fi |
if test ! -d tools/$OPENSSL; then |
if test ! -d tools/$OPENSSL; then |
gunzip -c "$srcdir"/tools/$OPENSSL.tar.gz | \ |
gunzip -c "$srcdir"/tools/$OPENSSL.tar.gz | \ |
(cd tools && tar -xf -) |
(cd tools && tar -xf -) |
Line 461 else
|
Line 590 else
|
fi |
fi |
fi |
fi |
|
|
if test "$MOTIF_SUPPORT" = guessed; then |
|
CFLAGS_ORIG=$CFLAGS |
|
LIBS_ORIG=$LIBS |
|
CFLAGS="$CFLAGS $X_CFLAGS" |
|
LIBS="$LIB $X_LIBS" |
|
AC_CHECK_LIB(Xm, main, MOTIF_SUPPORT="-DMOTIF_SUPPORT", MOTIF_SUPPORT="-UMOTIF_SUPPORT") |
|
if test "$MOTIF_SUPPORT" = "-UMOTIF_SUPPORT"; then |
|
AC_MSG_WARN([Cannot find Motif! You may install it. |
|
Motif flag is disabled. |
|
]) |
|
fi |
|
LIBS=$LIBS_ORIG |
|
CFLAGS=$CFLAGS_ORIG |
|
fi |
|
|
|
if test "$MOTIF_SUPPORT" = "-DMOTIF_SUPPORT"; then |
|
CFLAGS_ORIG=$CFLAGS |
|
LIBS_ORIG=$LIBS |
|
CFLAGS="$CFLAGS $X_CFLAGS" |
|
LIBS="$LIB $X_LIBS" |
|
AC_CHECK_LIB(Xpm, main, MOTIF_SUPPORT="-DMOTIF_SUPPORT", MOTIF_SUPPORT="-UMOTIF_SUPPORT") |
|
if test "$MOTIF_SUPPORT" = "-DMOTIF_SUPPORT"; then |
|
libX="$X_LIBS -lXm -lXpm -lXt -lX11" |
|
else |
|
libX="" |
|
AC_MSG_WARN([Cannot find libXpm! You may install it. |
|
Motif flag is disabled. |
|
]) |
|
fi |
|
LIBS=$LIBS_ORIG |
|
CFLAGS=$CFLAGS_ORIG |
|
else |
|
libX="" |
|
fi |
|
|
|
dnl Substitutions |
dnl Substitutions |
AC_SUBST(GNUPLOT_SUPPORT) |
AC_SUBST(GNUPLOT_SUPPORT) |
AC_SUBST(FORCE_GNUPLOT_PATH) |
AC_SUBST(FORCE_GNUPLOT_PATH) |
Line 866 AC_CACHE_CHECK([return type of signal ha
|
Line 960 AC_CACHE_CHECK([return type of signal ha
|
AC_DEFINE_UNQUOTED([RETSIGTYPE],[$ac_cv_type_signal],[Define as the return type of signal handlers |
AC_DEFINE_UNQUOTED([RETSIGTYPE],[$ac_cv_type_signal],[Define as the return type of signal handlers |
(`int' or `void').]) |
(`int' or `void').]) |
|
|
dnl Checks for broken siginfo structure |
|
AC_MSG_CHECKING([for broken siginfo->si_pid]) |
|
AC_RUN_IFELSE([AC_LANG_PROGRAM([#include <unistd.h> |
|
#include <signal.h> |
|
int flag; |
|
void handler(int signal, siginfo_t *siginfo, void *context) |
|
{ flag = ((*siginfo).si_pid == getpid()) ? 0 : 1; }], |
|
[struct sigaction action; |
|
action.sa_sigaction = handler; |
|
action.sa_flags = SA_SIGINFO; |
|
sigaction(SIGUSR1, &action, NULL); |
|
raise(SIGUSR1); |
|
return(flag);])], |
|
[BROKEN_SIGINFO=-U_BROKEN_SIGINFO; AC_MSG_RESULT(no)], |
|
[BROKEN_SIGINFO=-D_BROKEN_SIGINFO; AC_MSG_RESULT(yes)]) |
|
|
|
AC_FUNC_STRCOLL |
AC_FUNC_STRCOLL |
AC_FUNC_STRFTIME |
AC_FUNC_STRFTIME |
AC_FUNC_VPRINTF |
AC_FUNC_VPRINTF |
Line 897 if test $(uname) = "OS/2"; then
|
Line 975 if test $(uname) = "OS/2"; then
|
bash -c "cd tools/$OPENSSL && os2/OS2-EMX.cmd" |
bash -c "cd tools/$OPENSSL && os2/OS2-EMX.cmd" |
else |
else |
if test "x$with_openssl_arch" = xnone; then |
if test "x$with_openssl_arch" = xnone; then |
(cd tools/$OPENSSL && ./config) |
(cd tools/$OPENSSL && ./config no-asm) |
elif test "x$with_openssl_arch" = xyes -o "x$with_openssl_arch" = xno; then |
elif test "x$with_openssl_arch" = xyes -o "x$with_openssl_arch" = xno; then |
(cd tools/$OPENSSL && ./Configure) |
(cd tools/$OPENSSL && ./Configure) |
AC_MSG_ERROR([OS/COMP informations are required!]) |
AC_MSG_ERROR([OS/COMP informations are required!]) |
Line 905 else
|
Line 983 else
|
(cd tools/$OPENSSL && ./Configure) |
(cd tools/$OPENSSL && ./Configure) |
AC_MSG_ERROR([Please specify OS and Architecture]) |
AC_MSG_ERROR([Please specify OS and Architecture]) |
else |
else |
(cd tools/$OPENSSL && ./Configure $with_openssl_arch) |
(cd tools/$OPENSSL && ./Configure no-asm $with_openssl_arch) |
fi |
fi |
fi |
fi |
|
|
AC_CONFIG_SUBDIRS(tools/$NCURSES) |
|
AC_CONFIG_SUBDIRS(tools/$READLINE) |
|
AC_CONFIG_SUBDIRS(tools/$GSL) |
|
AC_CONFIG_SUBDIRS(tools/$GPP) |
|
AC_CONFIG_SUBDIRS(tools/$FILE) |
|
AC_CONFIG_SUBDIRS(tools/$ICONV) |
|
AC_CONFIG_SUBDIRS(tools/$SQLITE) |
|
AC_CONFIG_SUBDIRS(tools/$UNITS) |
|
|
|
if test "$MYGNUPLOT" = "yes"; then |
if test "$MYGNUPLOT" = "yes"; then |
if test ! -d "$srcdir"/tools/$GNUPLOT; then |
if test ! -d "$srcdir"/tools/$GNUPLOT; then |
gunzip -c "$srcdir"/tools/$GNUPLOT.tar.gz | \ |
gunzip -c "$srcdir"/tools/$GNUPLOT.tar.gz | \ |
Line 931 fi
|
Line 1000 fi
|
|
|
AC_SUBST(GNUPLOT_COMPILATION) |
AC_SUBST(GNUPLOT_COMPILATION) |
|
|
|
HOST=$host |
|
AC_SUBST(HOST) |
|
|
case $host_cpu in |
case $host_cpu in |
|
|
i?86) |
i?86) |
Line 990 case $OS in
|
Line 1062 case $OS in
|
Darwin) |
Darwin) |
EXPORT_DYNAMIC=-Wl,-flat_namespace |
EXPORT_DYNAMIC=-Wl,-flat_namespace |
NESTED_FUNCTIONS=-fnested-functions |
NESTED_FUNCTIONS=-fnested-functions |
SEMAPHORES_NOMMES=-DSEMAPHORES_NOMMES |
|
IPCS_SYSV=-UIPCS_SYSV |
|
CXXFLAGS="$CXXFLAGS -D_GLIBCXX_FULLY_DYNAMIC_STRING" |
CXXFLAGS="$CXXFLAGS -D_GLIBCXX_FULLY_DYNAMIC_STRING" |
ac_configure_args="$ac_configure_args --with-readline=builtin \ |
ac_configure_args="$ac_configure_args --with-readline=builtin \ |
--disable-shared --enable-static --enable-threads" |
--disable-shared --enable-static --enable-threads \ |
|
CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \ |
|
FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \ |
|
LDFLAGS=\"$LDFLAGS\"" |
C_STANDARD=-std=gnu99 |
C_STANDARD=-std=gnu99 |
|
ELF= |
break ;; |
break ;; |
|
|
Cygwin) |
Cygwin) |
EXPORT_DYNAMIC=-Wl,--export-all-symbols |
EXPORT_DYNAMIC=-Wl,--export-all-symbols |
NESTED_FUNCTIONS= |
NESTED_FUNCTIONS= |
SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES |
|
IPCS_SYSV=-UIPCS_SYSV |
|
ac_configure_args="$ac_configure_args --with-readline=builtin \ |
ac_configure_args="$ac_configure_args --with-readline=builtin \ |
--disable-shared --enable-static --enable-threads" |
--disable-shared --enable-static --enable-threads \ |
|
CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \ |
|
FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \ |
|
LDFLAGS=\"$LDFLAGS\"" |
C_STANDARD=-std=gnu99 |
C_STANDARD=-std=gnu99 |
|
ELF= |
break ;; |
break ;; |
|
|
Interix) |
Interix) |
EXPORT_DYNAMIC=-Wl,--export-all-symbols |
EXPORT_DYNAMIC=-Wl,--export-all-symbols |
NESTED_FUNCTIONS= |
NESTED_FUNCTIONS= |
SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES |
|
IPCS_SYSV=-UIPCS_SYSV |
|
ac_configure_args="$ac_configure_args --with-readline=builtin \ |
ac_configure_args="$ac_configure_args --with-readline=builtin \ |
--disable-shared --enable-static --enable-threads" |
--disable-shared --enable-static --enable-threads \ |
|
CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \ |
|
FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \ |
|
LDFLAGS=\"$LDFLAGS\"" |
C_STANDARD=-std=gnu99 |
C_STANDARD=-std=gnu99 |
|
ELF= |
break;; |
break;; |
|
|
AIX) |
AIX) |
EXPORT_DYNAMIC=-Wl,--export-dynamic |
EXPORT_DYNAMIC=-Wl,--export-dynamic |
NESTED_FUNCTIONS= |
NESTED_FUNCTIONS= |
SEMAPHORES_NOMMES=-DSEMAPHORES_NOMMES |
|
IPCS_SYSV=-UIPCS_SYSV |
|
ac_configure_args="$ac_configure_args --with-readline=builtin \ |
ac_configure_args="$ac_configure_args --with-readline=builtin \ |
--disable-shared --enable-static --enable-threads" |
--disable-shared --enable-static --enable-threads \ |
|
CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \ |
|
FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \ |
|
LDFLAGS=\"$LDFLAGS\"" |
C_STANDARD=-std=gnu99 |
C_STANDARD=-std=gnu99 |
|
ELF= |
break ;; |
break ;; |
|
|
OS/2) |
OS/2) |
Line 1035 case $OS in
|
Line 1115 case $OS in
|
OS=OS2 |
OS=OS2 |
NESTED_FUNCTIONS= |
NESTED_FUNCTIONS= |
EXPORT_DYNAMIC=-Zmap |
EXPORT_DYNAMIC=-Zmap |
SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES |
|
IPCS_SYSV=-DIPCS_SYSV |
|
ac_configure_args="$ac_configure_args --without-readline \ |
ac_configure_args="$ac_configure_args --without-readline \ |
--without-cairo --disable-shared --enable-static \ |
--without-cairo --disable-shared --enable-static \ |
--enable-threads" |
--enable-threads \ |
|
CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \ |
|
FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \ |
|
LDFLAGS=\"$LDFLAGS\"" |
C_STANDARD= |
C_STANDARD= |
|
ELF= |
break;; |
break;; |
|
|
OpenBSD) |
OpenBSD) |
Line 1049 case $OS in
|
Line 1131 case $OS in
|
fi; |
fi; |
EXPORT_DYNAMIC=-Wl,--export-dynamic |
EXPORT_DYNAMIC=-Wl,--export-dynamic |
NESTED_FUNCTIONS= |
NESTED_FUNCTIONS= |
SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES |
|
IPCS_SYSV=-DIPCS_SYSV |
|
ac_configure_args="$ac_configure_args --with-readline=builtin \ |
ac_configure_args="$ac_configure_args --with-readline=builtin \ |
--disable-shared --enable-static --enable-threads" |
--disable-shared --enable-static --enable-threads \ |
|
CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \ |
|
FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \ |
|
LDFLAGS=\"$LDFLAGS\"" |
C_STANDARD=-std=gnu99 |
C_STANDARD=-std=gnu99 |
|
ELF= |
break;; |
break;; |
|
|
SunOS) |
SunOS) |
EXPORT_DYNAMIC=-Wl,--export-dynamic |
EXPORT_DYNAMIC=-Wl,--export-dynamic |
NESTED_FUNCTIONS= |
NESTED_FUNCTIONS= |
SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES |
|
|
|
if test $IPCS_SYSV = no; then |
|
IPCS_SYSV=-UIPCS_SYSV |
|
else |
|
IPCS_SYSV=-DIPCS_SYSV |
|
fi |
|
|
|
ac_configure_args="$ac_configure_args --with-readline=builtin \ |
ac_configure_args="$ac_configure_args --with-readline=builtin \ |
--disable-shared --enable-static --enable-threads" |
--disable-shared --enable-static --enable-threads \ |
|
CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \ |
|
FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \ |
|
LDFLAGS=\"$LDFLAGS\"" |
C_STANDARD=-std=gnu99 |
C_STANDARD=-std=gnu99 |
MALLOC=-lumem |
MALLOC=-lumem |
|
ELF= |
break ;; |
break ;; |
|
|
*) |
NetBSD) |
EXPORT_DYNAMIC=-Wl,--export-dynamic |
EXPORT_DYNAMIC=-Wl,--export-dynamic |
NESTED_FUNCTIONS= |
NESTED_FUNCTIONS= |
SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES |
|
|
|
if test $IPCS_SYSV = no; then |
ac_configure_args="$ac_configure_args --with-readline=builtin \ |
IPCS_SYSV=-UIPCS_SYSV |
--disable-shared --enable-static --enable-threads \ |
else |
CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \ |
IPCS_SYSV=-DIPCS_SYSV |
FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \ |
fi |
LDFLAGS=\"$LDFLAGS\"" |
|
C_STANDARD=-std=gnu99 |
|
GCCBIN=`which gcc` |
|
GCCLIB=`dirname $GCCBIN`/../lib |
|
ELF="-Wl,-R/usr/pkg/lib -Wl,-R$GCCLIB" |
|
break ;; |
|
|
|
*) |
|
EXPORT_DYNAMIC=-Wl,--export-dynamic |
|
NESTED_FUNCTIONS= |
|
|
ac_configure_args="$ac_configure_args --with-readline=builtin \ |
ac_configure_args="$ac_configure_args --with-readline=builtin \ |
--disable-shared --enable-static --enable-threads" |
--disable-shared --enable-static --enable-threads \ |
|
CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \ |
|
FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \ |
|
LDFLAGS=\"$LDFLAGS\"" |
C_STANDARD=-std=gnu99 |
C_STANDARD=-std=gnu99 |
|
ELF= |
break ;; |
break ;; |
|
|
esac |
esac |
Line 1098 AC_SUBST(SEMAPHORES_NOMMES)
|
Line 1191 AC_SUBST(SEMAPHORES_NOMMES)
|
AC_SUBST(IPCS_SYSV) |
AC_SUBST(IPCS_SYSV) |
AC_SUBST(SEMUN) |
AC_SUBST(SEMUN) |
AC_SUBST(IPV6) |
AC_SUBST(IPV6) |
AC_SUBST(BROKEN_SIGINFO) |
|
AC_SUBST(BSH_PATH) |
AC_SUBST(BSH_PATH) |
|
AC_SUBST(ELF) |
|
|
AC_SUBST(NCURSES) |
AC_SUBST(NCURSES) |
AC_SUBST(READLINE) |
AC_SUBST(READLINE) |
Line 1111 AC_SUBST(FILE)
|
Line 1204 AC_SUBST(FILE)
|
AC_SUBST(ICONV) |
AC_SUBST(ICONV) |
AC_SUBST(SQLITE) |
AC_SUBST(SQLITE) |
AC_SUBST(OPENSSL) |
AC_SUBST(OPENSSL) |
|
AC_SUBST(LIBXPM) |
|
AC_SUBST(OPENMOTIF) |
|
AC_SUBST(BUILD_OPENMOTIF) |
|
AC_SUBST(SIGSEGV) |
AC_SUBST(FINAL_ENCODING) |
AC_SUBST(FINAL_ENCODING) |
AC_SUBST(DATE) |
AC_SUBST(DATE) |
AC_SUBST(DATE_FR) |
AC_SUBST(DATE_FR) |
Line 1122 AC_SUBST(NTL)
|
Line 1219 AC_SUBST(NTL)
|
AC_SUBST(COCOA) |
AC_SUBST(COCOA) |
AC_SUBST(PARI) |
AC_SUBST(PARI) |
AC_SUBST(GIAC) |
AC_SUBST(GIAC) |
|
AC_SUBST(INCMOTIF) |
|
AC_SUBST(LIBMOTIF) |
|
|
AC_SUBST(CFLAGS) |
AC_SUBST(CFLAGS) |
AC_SUBST(CXXFLAGS) |
AC_SUBST(CXXFLAGS) |
AC_SUBST(FFLAGS) |
AC_SUBST(FFLAGS) |
AC_SUBST(FCFLAGS) |
AC_SUBST(FCFLAGS) |
|
AC_SUBST(LDFLAGS) |
|
|
|
AC_CONFIG_SUBDIRS(tools/$NCURSES) |
|
AC_CONFIG_SUBDIRS(tools/$READLINE) |
|
AC_CONFIG_SUBDIRS(tools/$GSL) |
|
AC_CONFIG_SUBDIRS(tools/$GPP) |
|
AC_CONFIG_SUBDIRS(tools/$FILE) |
|
AC_CONFIG_SUBDIRS(tools/$ICONV) |
|
AC_CONFIG_SUBDIRS(tools/$SQLITE) |
|
AC_CONFIG_SUBDIRS(tools/$UNITS) |
|
AC_CONFIG_SUBDIRS(tools/$SIGSEGV) |
|
|
AC_CONFIG_FILES(Makefile) |
AC_CONFIG_FILES(Makefile) |
AC_CONFIG_FILES(COPYING) |
AC_CONFIG_FILES(COPYING) |