version 1.81, 2011/09/15 19:23:54
|
version 1.91, 2011/09/21 09:09:21
|
Line 17 FILE=file-5.03
|
Line 17 FILE=file-5.03
|
ICONV=libiconv-1.13.1 |
ICONV=libiconv-1.13.1 |
SQLITE=sqlite-3.7.7.1 |
SQLITE=sqlite-3.7.7.1 |
OPENSSL=openssl-1.0.0e |
OPENSSL=openssl-1.0.0e |
OPENMOTIF=openmotif-2.2.3 |
OPENMOTIF=openmotif-2.3.3 |
|
LIBXPM=libXpm-3.5.9 |
SIGSEGV=libsigsegv-2.6 |
SIGSEGV=libsigsegv-2.6 |
|
|
GMP=gmp-5.0.2 |
GMP=gmp-5.0.2 |
Line 204 fi],[
|
Line 205 fi],[
|
) |
) |
|
|
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) |
REG=$LDFLAGS |
|
LDFLAGS=-lrt |
|
[AC_MSG_CHECKING([for POSIX semaphores and shared objects]) |
|
AC_RUN_IFELSE( |
|
[AC_LANG_PROGRAM([#include <sys/mman.h> |
|
#include <sys/stat.h> |
|
#include <fcntl.h> |
|
], |
|
[ int fd; char *sem = "/test"; |
|
fd = shm_open(sem , O_CREAT | O_RDWR, S_IRUSR | S_IWUSR); |
|
close(fd); |
|
shm_unlink(sem); |
|
fd = sem_open(sem, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, 0); |
|
close(fd); |
|
sem_unlink(sem); |
|
return(0); |
|
])], |
|
[IPCS_SYSV=-UIPCS_SYSV; AC_MSG_RESULT(yes)], |
|
[IPCS_SYSV=-DIPCS_SYSV; AC_MSG_RESULT(no)] |
|
)] |
|
LDFLAGS=$REG |
|
) |
|
|
|
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 281 else
|
Line 324 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 378 if test ! -d "$srcdir"/tools/$SIGSEGV; t
|
Line 431 if test ! -d "$srcdir"/tools/$SIGSEGV; t
|
gunzip -c "$srcdir"/tools/$SIGSEGV.tar.gz | \ |
gunzip -c "$srcdir"/tools/$SIGSEGV.tar.gz | \ |
(cd "$srcdir/tools" && tar -xf -) |
(cd "$srcdir/tools" && tar -xf -) |
fi |
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 410 if test ! -d "$srcdir"/rplcas/$GIAC; the
|
Line 471 if test ! -d "$srcdir"/rplcas/$GIAC; the
|
(cd "$srcdir/rplcas" && tar -xf -) |
(cd "$srcdir/rplcas" && tar -xf -) |
fi |
fi |
|
|
|
touch tools/openmotif.lib |
|
|
dnl Default installation directory |
dnl Default installation directory |
AC_PREFIX_DEFAULT(/usr/local) |
AC_PREFIX_DEFAULT(/usr/local) |
|
|
Line 535 else
|
Line 598 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 1042 case $OS in
|
Line 1070 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 \ |
Line 1057 case $OS in
|
Line 1083 case $OS in
|
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\" \ |
CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \ |
Line 1071 case $OS in
|
Line 1095 case $OS in
|
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\" \ |
CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \ |
Line 1085 case $OS in
|
Line 1107 case $OS in
|
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\" \ |
CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \ |
Line 1103 case $OS in
|
Line 1123 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 \ |
Line 1121 case $OS in
|
Line 1139 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\" \ |
CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \ |
Line 1135 case $OS in
|
Line 1151 case $OS in
|
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 \ |
Line 1156 case $OS in
|
Line 1165 case $OS in
|
NetBSD) |
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 |
|
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 \ |
Line 1178 case $OS in
|
Line 1180 case $OS in
|
*) |
*) |
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 \ |
Line 1217 AC_SUBST(FILE)
|
Line 1212 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(SIGSEGV) |
AC_SUBST(FINAL_ENCODING) |
AC_SUBST(FINAL_ENCODING) |
AC_SUBST(DATE) |
AC_SUBST(DATE) |
Line 1229 AC_SUBST(NTL)
|
Line 1227 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) |