version 1.31, 2010/07/31 10:34:15
|
version 1.44, 2010/09/13 11:58:42
|
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.0.18]) |
AC_INIT([rpl],[4.0.19]) |
AC_CANONICAL_TARGET |
AC_CANONICAL_TARGET |
AC_CANONICAL_TARGET |
AC_CANONICAL_TARGET |
AM_INIT_AUTOMAKE |
AM_INIT_AUTOMAKE |
Line 12 READLINE=readline-6.1
|
Line 12 READLINE=readline-6.1
|
UNITS=units-1.88 |
UNITS=units-1.88 |
GSL=gsl-1.14 |
GSL=gsl-1.14 |
GPP=gpp-2.24 |
GPP=gpp-2.24 |
GNUPLOT=gnuplot-4.4.0 |
GNUPLOT=gnuplot-4.4.1 |
FILE=file-5.03 |
FILE=file-5.03 |
ICONV=libiconv-1.13.1 |
ICONV=libiconv-1.13.1 |
SQLITE=sqlite-3.7.0 |
SQLITE=sqlite-3.7.2 |
OPENSSL=openssl-1.0.0a |
OPENSSL=openssl-1.0.0a |
|
|
dnl Checks for C compiler |
dnl Checks for C compiler |
Line 126 fi],[
|
Line 126 fi],[
|
] |
] |
) |
) |
|
|
|
AC_ARG_ENABLE(sysv-semaphores, |
|
[ --enable-sysv-ipcs use SystemV IPC functions [[default=no]]], [ |
|
if test "$enableval" = "no"; then |
|
IPCS_SYSV=no |
|
else |
|
IPCS_SYSV=yes |
|
fi], |
|
IPCS_SYSV=no) |
|
|
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]]], [ |
if test "$enableval" = "no"; then |
if test "$enableval" = "no"; then |
Line 140 AC_ARG_ENABLE(final-encoding,
|
Line 149 AC_ARG_ENABLE(final-encoding,
|
if test "$enableval" = "no"; then |
if test "$enableval" = "no"; then |
FINAL_ENCODING="\$(shell locale charmap | \ |
FINAL_ENCODING="\$(shell locale charmap | \ |
\$(AWK) '/\=/ { print \$\$3;} !/\=/ { print \$\$1;}')" |
\$(AWK) '/\=/ { print \$\$3;} !/\=/ { print \$\$1;}')" |
|
FORCED_FINAL_ENCODING=0 |
else |
else |
FINAL_ENCODING="$enable_final_encoding" |
FINAL_ENCODING="$enable_final_encoding" |
fi], |
FORCED_FINAL_ENCODING=1 |
|
fi], [ |
|
FORCED_FINAL_ENCODING=0 |
FINAL_ENCODING="\$(shell locale charmap | \ |
FINAL_ENCODING="\$(shell locale charmap | \ |
\$(AWK) '/\=/ { print \$\$3;} !/\=/ { print \$\$1;}')") |
\$(AWK) '/\=/ { print \$\$3;} !/\=/ { print \$\$1;}')"]) |
|
|
AC_ARG_ENABLE(tex, |
AC_ARG_ENABLE(tex, |
[ --enable-tex provide the TeX support [[default=guessed]]], [ |
[ --enable-tex provide the TeX support [[default=guessed]]], [ |
Line 260 fi
|
Line 272 fi
|
if test ! -d "$srcdir"/tools/$GSL; then |
if test ! -d "$srcdir"/tools/$GSL; then |
gunzip -c "$srcdir"/tools/$GSL.tar.gz | \ |
gunzip -c "$srcdir"/tools/$GSL.tar.gz | \ |
(cd "$srcdir/tools" && tar -xf -) |
(cd "$srcdir/tools" && tar -xf -) |
|
if test $(uname) = "OS/2"; then |
|
(cd "$srcdir"/tools/$GSL; \ |
|
TMP=$(mktemp tmp.XXXXXXXXXX); \ |
|
sed -e '1,$s/\${1+"\$@"}/"\$@"/g' ltmain.sh > $TMP; \ |
|
\mv -f $TMP ltmain.sh) |
|
fi |
fi |
fi |
if test ! -d "$srcdir"/tools/$GPP; then |
if test ! -d "$srcdir"/tools/$GPP; then |
gunzip -c "$srcdir"/tools/$GPP.tar.gz | \ |
gunzip -c "$srcdir"/tools/$GPP.tar.gz | \ |
Line 277 fi
|
Line 295 fi
|
if test ! -d "$srcdir"/tools/$SQLITE; then |
if test ! -d "$srcdir"/tools/$SQLITE; then |
gunzip -c "$srcdir"/tools/$SQLITE.tar.gz | \ |
gunzip -c "$srcdir"/tools/$SQLITE.tar.gz | \ |
(cd "$srcdir/tools" && tar -xf -) |
(cd "$srcdir/tools" && tar -xf -) |
|
(cd "$srcdir/tools"/$SQLITE && gunzip -c ../$SQLITE.diff.gz | patch -p1) |
fi |
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 | \ |
Line 309 AC_PROG_RANLIB
|
Line 328 AC_PROG_RANLIB
|
dnl Checks for nawk |
dnl Checks for nawk |
AC_CHECK_PROG(AWK, nawk, yes, no) |
AC_CHECK_PROG(AWK, nawk, yes, no) |
if test "$AWK" = no; then |
if test "$AWK" = no; then |
AC_MSG_ERROR([Can not find nawk !]) |
AC_CHECK_PROG(AWK, gawk, yes, no) |
|
if test "$AWK" = no; then |
|
AC_MSG_ERROR([Can not find nawk !]) |
|
fi |
fi |
fi |
|
|
dnl Checks for sed |
dnl Checks for sed |
Line 459 dnl Checks for libraries
|
Line 481 dnl Checks for libraries
|
AC_CHECK_LIB(m, main,, AC_MSG_ERROR([Can not find libm !])) |
AC_CHECK_LIB(m, main,, AC_MSG_ERROR([Can not find libm !])) |
AC_CHECK_LIB(pthread, main,, AC_MSG_ERROR([Can not find libpthread !])) |
AC_CHECK_LIB(pthread, main,, AC_MSG_ERROR([Can not find libpthread !])) |
|
|
|
dnl Check for union semun |
|
AC_CHECK_TYPE([union semun], SEMUN=-DUNION_SEMUN, SEMUN=-UUNION_SEMUN, [[ |
|
#include <sys/sem.h> |
|
]]) |
|
|
|
dnl Check for IPv6 support |
|
AC_CHECK_TYPE([struct sockaddr_in6], IPV6=-DIPV6, IPV6=-UIPV6, [[ |
|
#include <sys/types.h> |
|
#include <netinet/in.h> |
|
]]) |
|
|
dnl Do we need to use -ldl? |
dnl Do we need to use -ldl? |
if test "$CYGWIN" != yes; then |
if test "$CYGWIN" != yes; then |
AC_CHECK_LIB(dl, dlopen, LIBS="$LIBS -ldl", |
AC_CHECK_LIB(dl, dlopen, LIBS="$LIBS -ldl", |
Line 728 AC_SUBST(POSTGRESQL_SUPPORT)
|
Line 761 AC_SUBST(POSTGRESQL_SUPPORT)
|
AC_SUBST(libPgSQLinc) |
AC_SUBST(libPgSQLinc) |
AC_SUBST(libPgSQLlib) |
AC_SUBST(libPgSQLlib) |
|
|
|
# with_postgresql : check [pas défini], yes [uniquement --with], |
|
# no [--without], valeur [--with=valeur]. |
|
AC_ARG_WITH(bourne_shell, |
|
[ --with-bourne-shell=PATH specify path for OS/2 bourne shell], |
|
[], [with_bourne_shell=no]) |
|
|
|
if test "x$with_bourne_shell" = xyes; then |
|
AC_MSG_ERROR([You have to specify a valide shell path !]) |
|
fi |
|
|
|
if test "x$with_bourne_shell" = xno; then |
|
if test $(uname) = "OS/2"; then |
|
AC_MSG_ERROR([With OS/2 or eComstation, you have to specify a valide shell path !]) |
|
fi |
|
|
|
BSH_PATH= |
|
else |
|
if test ! -x $with_bourne_shell; then |
|
AC_MSG_ERROR([$with_bourne_shell is not executable !]) |
|
fi |
|
|
|
if test $(uname) = "OS/2"; then |
|
with_os2_bourne_shell=$(echo $with_bourne_shell | \ |
|
sed -e '1,$s/\//\\\\\\\\/g') |
|
BSH_PATH=-DBOURNE_SHELL=\"\\\"$with_os2_bourne_shell\\\"\" |
|
else |
|
AC_MSG_WARN([--with-bourne-shell ignored]) |
|
BSH_PATH= |
|
fi |
|
fi |
|
|
dnl Checks for sizes |
dnl Checks for sizes |
AC_CHECK_SIZEOF(void *, 4) |
AC_CHECK_SIZEOF(void *, 4) |
AC_CHECK_SIZEOF(char, 1) |
AC_CHECK_SIZEOF(char, 1) |
Line 768 AC_CACHE_CHECK([return type of signal ha
|
Line 832 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 |
AC_CHECK_FUNCS(ftime getcwd putenv select strcspn strdup \ |
AC_CHECK_FUNCS(ftime getcwd putenv select strcspn strdup \ |
strerror strspn strstr strtod) |
strerror strspn strstr strtod) |
|
|
ac_configure_args="$ac_configure_args --with-readline=builtin --disable-shared --enable-static" |
dnl Check for OpenSSL os/comp |
|
AC_ARG_WITH(openssl_arch, |
|
[ --with-openssl-arch=ARCH specify os and compiler for openssl (ARCH or list)], |
|
[], [with_openssl_arch=none]) |
|
|
|
if test $(uname) = "OS/2"; then |
|
bash -c "cd tools/$OPENSSL && os2/OS2-EMX.cmd" |
|
else |
|
if test "x$with_openssl_arch" = xnone; then |
|
(cd tools/$OPENSSL && ./config) |
|
elif test "x$with_openssl_arch" = xyes -o "x$with_openssl_arch" = xno; then |
|
(cd tools/$OPENSSL && ./Configure) |
|
AC_MSG_ERROR([OS/COMP informations are required!]) |
|
elif test "x$with_openssl_arch" = xlist; then |
|
(cd tools/$OPENSSL && ./Configure) |
|
AC_MSG_ERROR([Please specify OS and Architecture]) |
|
else |
|
(cd tools/$OPENSSL && ./Configure $with_openssl_arch) |
|
fi |
|
fi |
|
|
AC_CONFIG_SUBDIRS(tools/$NCURSES) |
AC_CONFIG_SUBDIRS(tools/$NCURSES) |
AC_CONFIG_SUBDIRS(tools/$READLINE) |
AC_CONFIG_SUBDIRS(tools/$READLINE) |
Line 785 AC_CONFIG_SUBDIRS(tools/$ICONV)
|
Line 884 AC_CONFIG_SUBDIRS(tools/$ICONV)
|
AC_CONFIG_SUBDIRS(tools/$SQLITE) |
AC_CONFIG_SUBDIRS(tools/$SQLITE) |
AC_CONFIG_SUBDIRS(tools/$UNITS) |
AC_CONFIG_SUBDIRS(tools/$UNITS) |
|
|
dnl Check for OpenSSL os/comp |
|
AC_ARG_WITH(openssl_arch, |
|
[ --with-openssl-arch=ARCH specify os and compiler for openssl (ARCH or list)], |
|
[], [with_openssl_arch=none]) |
|
|
|
if test "x$with_openssl_arch" = xnone; then |
|
(cd tools/$OPENSSL && ./config) |
|
elif test "x$with_openssl_arch" = xyes -o "x$with_openssl_arch" = xno; then |
|
(cd tools/$OPENSSL && ./Configure) |
|
AC_MSG_ERROR([OS/COMP informations are required!]) |
|
elif test "x$with_openssl_arch" = xlist; then |
|
(cd tools/$OPENSSL && ./Configure) |
|
AC_MSG_ERROR([Please specify OS and Architecture]) |
|
else |
|
(cd tools/$OPENSSL && ./Configure $with_openssl_arch) |
|
fi |
|
|
|
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 871 DATE=$(env LC_ALL=C date +'%A %x, %X %Z'
|
Line 953 DATE=$(env LC_ALL=C date +'%A %x, %X %Z'
|
case $OS in |
case $OS in |
|
|
Darwin) |
Darwin) |
EXPORT_DYNAMIC=-flat_namespace |
EXPORT_DYNAMIC=-Wl,-flat_namespace |
NESTED_FUNCTIONS=-fnested-functions |
NESTED_FUNCTIONS=-fnested-functions |
SEMAPHORES_NOMMES=-DSEMAPHORES_NOMMES |
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 \ |
|
--disable-shared --enable-static" |
|
C_STANDARD=-std=gnu99 |
break ;; |
break ;; |
|
|
Cygwin) |
Cygwin) |
EXPORT_DYNAMIC=--export-all-symbols |
EXPORT_DYNAMIC=-Wl,--export-all-symbols |
NESTED_FUNCTIONS= |
NESTED_FUNCTIONS= |
SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES |
SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES |
|
IPCS_SYSV=-UIPCS_SYSV |
|
ac_configure_args="$ac_configure_args --with-readline=builtin \ |
|
--disable-shared --enable-static" |
|
C_STANDARD=-std=gnu99 |
break ;; |
break ;; |
|
|
AIX) |
Interix) |
EXPORT_DYNAMIC=--export-dynamic |
EXPORT_DYNAMIC=-Wl,--export-all-symbols |
|
NESTED_FUNCTIONS= |
|
SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES |
|
IPCS_SYSV=-UIPCS_SYSV |
|
ac_configure_args="$ac_configure_args --with-readline=builtin \ |
|
--disable-shared --enable-static" |
|
C_STANDARD=-std=gnu99 |
|
break;; |
|
|
|
AIX) |
|
EXPORT_DYNAMIC=-Wl,--export-dynamic |
NESTED_FUNCTIONS= |
NESTED_FUNCTIONS= |
SEMAPHORES_NOMMES=-DSEMAPHORES_NOMMES |
SEMAPHORES_NOMMES=-DSEMAPHORES_NOMMES |
|
IPCS_SYSV=-UIPCS_SYSV |
|
ac_configure_args="$ac_configure_args --with-readline=builtin \ |
|
--disable-shared --enable-static" |
|
C_STANDARD=-std=gnu99 |
break ;; |
break ;; |
|
|
|
OS/2) |
|
MALLOC= |
|
if test $FORCED_FINAL_ENCODING -eq 0; then \ |
|
FINAL_ENCODING=CP850; \ |
|
fi; |
|
OS=OS2 |
|
NESTED_FUNCTIONS= |
|
EXPORT_DYNAMIC=-Zmap |
|
SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES |
|
IPCS_SYSV=-DIPCS_SYSV |
|
ac_configure_args="$ac_configure_args --without-readline \ |
|
--without-cairo --disable-shared --enable-static" |
|
C_STANDARD= |
|
break;; |
|
|
|
OpenBSD) |
|
if test $FORCED_FINAL_ENCODING -eq 0; then \ |
|
FINAL_ENCODING=UTF-8; \ |
|
fi; |
|
EXPORT_DYNAMIC=-Wl,--export-dynamic |
|
NESTED_FUNCTIONS= |
|
SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES |
|
IPCS_SYSV=-DIPCS_SYSV |
|
ac_configure_args="$ac_configure_args --with-readline=builtin \ |
|
--disable-shared --enable-static" |
|
C_STANDARD=-std=gnu99 |
|
break;; |
|
|
*) |
*) |
EXPORT_DYNAMIC=--export-dynamic |
EXPORT_DYNAMIC=-Wl,--export-dynamic |
NESTED_FUNCTIONS= |
NESTED_FUNCTIONS= |
SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES |
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 \ |
|
--disable-shared --enable-static" |
|
C_STANDARD=-std=gnu99 |
break ;; |
break ;; |
|
|
esac |
esac |
|
|
|
AC_SUBST(C_STANDARD) |
AC_SUBST(EXPORT_DYNAMIC) |
AC_SUBST(EXPORT_DYNAMIC) |
AC_SUBST(NESTED_FUNCTIONS) |
AC_SUBST(NESTED_FUNCTIONS) |
AC_SUBST(SEMAPHORES_NOMMES) |
AC_SUBST(SEMAPHORES_NOMMES) |
|
AC_SUBST(IPCS_SYSV) |
|
AC_SUBST(SEMUN) |
|
AC_SUBST(IPV6) |
|
AC_SUBST(BROKEN_SIGINFO) |
|
AC_SUBST(BSH_PATH) |
|
|
AC_SUBST(NCURSES) |
AC_SUBST(NCURSES) |
AC_SUBST(READLINE) |
AC_SUBST(READLINE) |
Line 936 AC_CONFIG_FILES(scripts/rpllink)
|
Line 1084 AC_CONFIG_FILES(scripts/rpllink)
|
AC_CONFIG_FILES(rpltags/Makefile) |
AC_CONFIG_FILES(rpltags/Makefile) |
AC_CONFIG_FILES(rpliconv/Makefile) |
AC_CONFIG_FILES(rpliconv/Makefile) |
AC_CONFIG_FILES(rplsums/Makefile) |
AC_CONFIG_FILES(rplsums/Makefile) |
|
AC_CONFIG_FILES(rplawk/Makefile) |
AC_CONFIG_FILES(lapack/lapack/Makefile) |
AC_CONFIG_FILES(lapack/lapack/Makefile) |
AC_CONFIG_FILES(lapack/blas/Makefile) |
AC_CONFIG_FILES(lapack/blas/Makefile) |
AC_CONFIG_FILES(ptmalloc3/Makefile) |
AC_CONFIG_FILES(ptmalloc3/Makefile) |