version 1.5, 2011/10/05 13:14:17
|
version 1.7, 2011/10/14 08:27:40
|
Line 164 fi
|
Line 164 fi
|
|
|
LDFLAGS="$LDFLAGS $ABI" |
LDFLAGS="$LDFLAGS $ABI" |
|
|
|
AC_ARG_ENABLE(recursive, |
|
[ --enable-recursive recursive configuration (default=yes)],[ |
|
if test "$enableval" = "yes"; then |
|
RECURSIVE=yes |
|
else |
|
RECURSIVE=no |
|
fi],[ |
|
RECURSIVE=yes |
|
] |
|
) |
|
|
AC_ARG_WITH(rpltools, |
AC_ARG_WITH(rpltools, |
[ --with-rpltools specify rpltools path used for cross compilation],[ |
[ --with-rpltools specify rpltools path used for cross compilation],[ |
if test "$with_rpltools" = "no" -o "$with_rpltools" = yes; then |
if test "$with_rpltools" = "no" -o "$with_rpltools" = yes; then |
Line 196 AC_SUBST(ABI)
|
Line 207 AC_SUBST(ABI)
|
AC_SUBST(RPLCAS) |
AC_SUBST(RPLCAS) |
AC_SUBST(LIBRPLCAS) |
AC_SUBST(LIBRPLCAS) |
|
|
AC_ARG_ENABLE(shared-memory, |
|
[ --enable-shared-memory enable shared memory [[default=yes]]], [ |
|
if test "$enableval" = "no"; then |
|
SHARED_MEMORY="-USHARED_MEMORY" |
|
else |
|
SHARED_MEMORY="-DSHARED_MEMORY" |
|
fi],[ |
|
SHARED_MEMORY="-USHARED_MEMORY"]) |
|
|
|
AC_SUBST(SHARED_MEMORY) |
|
|
|
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]]], [ |
Line 228 fi],[
|
Line 228 fi],[
|
] |
] |
) |
) |
|
|
|
AC_MSG_CHECKING([for usable shared memory]) |
|
AC_COMPILE_IFELSE( |
|
[AC_LANG_PROGRAM([#include <sys/shm.h> |
|
], |
|
[ return(0); ])], |
|
[SHARED_MEMORY=-DSHARED_MEMORY; AC_MSG_RESULT(yes)], |
|
[SHARED_MEMORY=-USHARED_MEMORY; AC_MSG_RESULT(no)] |
|
) |
|
AC_SUBST(SHARED_MEMORY) |
|
|
|
AC_MSG_CHECKING([for pselect]) |
|
AC_COMPILE_IFELSE( |
|
[AC_LANG_PROGRAM([#include <sys/select.h> |
|
#include <unistd.h> |
|
#include <sys/time.h> |
|
#include <sys/types.h> |
|
], |
|
[ |
|
struct timespec tv; |
|
fd_set s1, s2, s3; |
|
tv.tv_sec=1; |
|
tv.tv_nsec=0; |
|
FD_SET(1, &s1); FD_SET(2, &s2); FD_SET(3, &s3); |
|
pselect(5, &s1, &s2, &s3, &tv, NULL); |
|
return(0); |
|
])], |
|
[PSELECT=-DPSELECT; AC_MSG_RESULT(yes)], |
|
[PSELECT=-UPSELECT; AC_MSG_RESULT(no)] |
|
) |
|
AC_SUBST(PSELECT) |
|
|
AC_ARG_ENABLE(sysv-ipcs, |
AC_ARG_ENABLE(sysv-ipcs, |
[ --enable-sysv-ipcs use SystemV IPC functions [[default=guessed]]], [ |
[ --enable-sysv-ipcs use SystemV IPC functions [[default=guessed]]], [ |
if test "$enableval" = "no"; then |
if test "$enableval" = "no"; then |
Line 377 if test "$MOTIF_SUPPORT" = "-DMOTIF_SUPP
|
Line 408 if test "$MOTIF_SUPPORT" = "-DMOTIF_SUPP
|
-I\$(top_builddir)/tools/$OPENMOTIF/lib \ |
-I\$(top_builddir)/tools/$OPENMOTIF/lib \ |
-I\$(top_builddir)/tools/$LIBXPM/include" |
-I\$(top_builddir)/tools/$LIBXPM/include" |
BUILD_OPENMOTIF="$LIBXPM $OPENMOTIF" |
BUILD_OPENMOTIF="$LIBXPM $OPENMOTIF" |
AC_CONFIG_SUBDIRS(tools/$LIBXPM) |
|
AC_CONFIG_SUBDIRS(tools/$OPENMOTIF) |
if test $RECURSIVE = yes; then |
|
AC_CONFIG_SUBDIRS(tools/$LIBXPM) |
|
AC_CONFIG_SUBDIRS(tools/$OPENMOTIF) |
|
fi; |
fi |
fi |
|
|
AC_ARG_ENABLE(experimental, |
AC_ARG_ENABLE(experimental, |
Line 1030 if test "$MYGNUPLOT" = "yes"; then
|
Line 1064 if test "$MYGNUPLOT" = "yes"; then
|
gunzip -c "$srcdir"/tools/$GNUPLOT.tar.gz | \ |
gunzip -c "$srcdir"/tools/$GNUPLOT.tar.gz | \ |
(cd "$srcdir/tools" && tar -xf -) |
(cd "$srcdir/tools" && tar -xf -) |
fi |
fi |
AC_CONFIG_SUBDIRS(tools/$GNUPLOT) |
|
|
if test $RECURSIVE = yes; then |
|
AC_CONFIG_SUBDIRS(tools/$GNUPLOT) |
|
fi |
|
|
GNUPLOT_COMPILATION=$GNUPLOT |
GNUPLOT_COMPILATION=$GNUPLOT |
else |
else |
GNUPLOT_COMPILATION= |
GNUPLOT_COMPILATION= |
Line 1217 case $OS in
|
Line 1255 case $OS in
|
OS2) |
OS2) |
WHOLE_LIB1="" |
WHOLE_LIB1="" |
WHOLE_LIB2="" |
WHOLE_LIB2="" |
|
LIB_PREFIX="" |
break ;; |
break ;; |
|
|
*) |
*) |
WHOLE_LIB1="-Wl,-whole-archive" |
WHOLE_LIB1="-Wl,-whole-archive" |
WHOLE_LIB2="-Wl,-no-whole-archive" |
WHOLE_LIB2="-Wl,-no-whole-archive" |
|
LIB_PREFIX="lib" |
break ;; |
break ;; |
esac |
esac |
|
|
AC_SUBST(WHOLE_LIB1) |
AC_SUBST(WHOLE_LIB1) |
AC_SUBST(WHOLE_LIB2) |
AC_SUBST(WHOLE_LIB2) |
|
AC_SUBST(LIB_PREFIX) |
|
|
AC_SUBST(C_STANDARD) |
AC_SUBST(C_STANDARD) |
AC_SUBST(EXPORT_DYNAMIC) |
AC_SUBST(EXPORT_DYNAMIC) |
Line 1272 AC_SUBST(FFLAGS)
|
Line 1313 AC_SUBST(FFLAGS)
|
AC_SUBST(FCFLAGS) |
AC_SUBST(FCFLAGS) |
AC_SUBST(LDFLAGS) |
AC_SUBST(LDFLAGS) |
|
|
AC_CONFIG_SUBDIRS(tools/$NCURSES) |
if test $RECURSIVE = yes; then |
AC_CONFIG_SUBDIRS(tools/$READLINE) |
AC_CONFIG_SUBDIRS(tools/$NCURSES) |
AC_CONFIG_SUBDIRS(tools/$GSL) |
AC_CONFIG_SUBDIRS(tools/$READLINE) |
AC_CONFIG_SUBDIRS(tools/$GPP) |
AC_CONFIG_SUBDIRS(tools/$GSL) |
AC_CONFIG_SUBDIRS(tools/$FILE) |
AC_CONFIG_SUBDIRS(tools/$GPP) |
AC_CONFIG_SUBDIRS(tools/$ICONV) |
AC_CONFIG_SUBDIRS(tools/$FILE) |
AC_CONFIG_SUBDIRS(tools/$SQLITE) |
AC_CONFIG_SUBDIRS(tools/$ICONV) |
AC_CONFIG_SUBDIRS(tools/$UNITS) |
AC_CONFIG_SUBDIRS(tools/$SQLITE) |
AC_CONFIG_SUBDIRS(tools/$SIGSEGV) |
AC_CONFIG_SUBDIRS(tools/$UNITS) |
|
AC_CONFIG_SUBDIRS(tools/$SIGSEGV) |
|
fi |
|
|
AC_CONFIG_FILES(Makefile) |
AC_CONFIG_FILES(Makefile) |
AC_CONFIG_FILES(COPYING) |
AC_CONFIG_FILES(COPYING) |