version 1.21, 2010/05/05 08:36:24
|
version 1.29, 2010/06/24 10:10:39
|
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.15]) |
AC_INIT([rpl],[4.0.17]) |
AC_CANONICAL_TARGET |
AC_CANONICAL_TARGET |
AC_CANONICAL_TARGET |
AC_CANONICAL_TARGET |
AM_INIT_AUTOMAKE |
AM_INIT_AUTOMAKE |
Line 7 AC_SUBST(target_cpu)
|
Line 7 AC_SUBST(target_cpu)
|
AC_CONFIG_HEADERS([rplconfig.h]) |
AC_CONFIG_HEADERS([rplconfig.h]) |
|
|
dnl Libraries |
dnl Libraries |
NCURSES=ncurses-5.7-20100206 |
NCURSES=ncurses-5.7-20100619 |
READLINE=readline-6.1 |
READLINE=readline-6.1 |
UNITS=units-1.87 |
UNITS=units-1.87 |
GSL=gsl-1.14 |
GSL=gsl-1.14 |
Line 16 GNUPLOT=gnuplot-4.4.0
|
Line 16 GNUPLOT=gnuplot-4.4.0
|
FILE=file-5.03 |
FILE=file-5.03 |
ICONV=libiconv-1.13.1 |
ICONV=libiconv-1.13.1 |
SQLITE=sqlite-3.6.23.1 |
SQLITE=sqlite-3.6.23.1 |
OPENSSL=openssl-1.0.0 |
OPENSSL=openssl-1.0.0a |
|
|
dnl Checks for C compiler |
dnl Checks for C compiler |
AC_PROG_CC(gcc-4.4 gcc) |
AC_PROG_CC(gcc) |
|
|
if test x"$CC" != x""; then |
if test x"$CC" != x""; then |
GCC_VERSION_MAJEURE=`$CC -v 2>&1 | awk '/^gcc/ { print $3; }' | \ |
GCC_VERSION_MAJEURE=`$CC -v 2>&1 | awk '/^gcc/ { print $3; }' | \ |
awk -F. '{ printf("%s", $1);}'` |
awk -F. '{ printf("%s", $1);}'` |
GCC_VERSION_MINEURE=`$CC -v 2>&1 | awk '/^gcc/ { print $3; }' | \ |
GCC_VERSION_MINEURE=`$CC -v 2>&1 | awk '/^gcc/ { print $3; }' | \ |
awk -F. '{ printf("%s", $2);}'` |
awk -F. '{ printf("%s", $2);}'` |
if test $GCC_VERSION_MAJEURE -ge 4 -a $GCC_VERSION_MINEURE -ge 4; then |
if test $GCC_VERSION_MAJEURE -ge 5; then |
OPTIMISATION_C=-O3 |
OPTIMISATION_C=-O3 |
else |
else |
if test $GCC_VERSION_MAJEURE -ge 5; then |
if test $GCC_VERSION_MAJEURE -ge 4 -a $GCC_VERSION_MINEURE -ge 4; \ |
|
then |
OPTIMISATION_C=-O3 |
OPTIMISATION_C=-O3 |
else |
else |
OPTIMISATION_C=-O2 |
if test $GCC_VERSION_MAJEURE -ge 2; then |
|
OPTIMISATION_C=-O2 |
|
else |
|
AC_MSG_ERROR([Cannot find decent or recent gcc (gcc-4.2 or better)!]) |
|
fi |
fi |
fi |
fi |
fi |
fi |
fi |
Line 44 if test "$GCC" != yes; then
|
Line 49 if test "$GCC" != yes; then
|
fi |
fi |
|
|
dnl Checks for C++ compiler |
dnl Checks for C++ compiler |
AC_PROG_CXX(g++-4.4 g++) |
AC_PROG_CXX(g++) |
|
|
if test "$GXX" != yes; then |
if test "$GXX" != yes; 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 |
|
|
dnl Checks for Fortran 77 compiler |
dnl Checks for Fortran 77 compiler |
AC_PROG_F77(gfortran-4.4 gfortran) |
AC_PROG_F77(gfortran) |
|
|
if test "$F77" != gfortran -a "$F77" != gfortran-4.4; then |
if test "$F77" != gfortran -a "$F77" != gfortran-4.4; then |
AC_MSG_ERROR([Cannot find gfortran! You have to install it.]) |
AC_MSG_ERROR([Cannot find gfortran! You have to install it.]) |
fi |
fi |
|
|
dnl Check for Fortran 9* compiler |
dnl Check for Fortran 9* compiler |
AC_PROG_FC(gfortran-4.4 gfortran) |
AC_PROG_FC(gfortran) |
|
|
if test "$FC" != gfortran -a "$FC" != gfortran-4.4; then |
if test "$FC" != gfortran -a "$FC" != gfortran-4.4; then |
AC_MSG_ERROR([Cannot find gfortran! You have to install it.]) |
AC_MSG_ERROR([Cannot find gfortran! You have to install it.]) |
Line 69 if test x"$FC" != x""; then
|
Line 74 if test x"$FC" != x""; then
|
awk -F. '{ printf("%s", $1);}'` |
awk -F. '{ printf("%s", $1);}'` |
GCC_VERSION_MINEURE=`$FC -v 2>&1 | awk '/^gcc/ { print $3; }' | \ |
GCC_VERSION_MINEURE=`$FC -v 2>&1 | awk '/^gcc/ { print $3; }' | \ |
awk -F. '{ printf("%s", $2);}'` |
awk -F. '{ printf("%s", $2);}'` |
if test $GCC_VERSION_MAJEURE -ge 4 -a $GCC_VERSION_MINEURE -ge 4; then |
if test $GCC_VERSION_MAJEURE -ge 5; then |
OPTIMISATION_F=-O3 |
OPTIMISATION_F=-O3 |
else |
else |
if test $GCC_VERSION_MAJEURE -ge 5; then |
if test $GCC_VERSION_MAJEURE -ge 4 -a $GCC_VERSION_MINEURE -ge 4; then |
OPTIMISATION_F=-O3 |
OPTIMISATION_F=-O3 |
else |
else |
OPTIMISATION_F=-O2 |
if test $GCC_VERSION_MAJEURE -ge 3; then |
|
OPTIMISATION_F=-O2 |
|
else |
|
AC_MSG_ERROR([Cannot find decent or recent gfortran (gfortran-4.3 or better)!]) |
|
fi |
fi |
fi |
fi |
fi |
fi |
fi |
Line 204 EXPERIMENTAL_CODE="-UEXPERIMENTAL_CODE")
|
Line 213 EXPERIMENTAL_CODE="-UEXPERIMENTAL_CODE")
|
AC_ARG_ENABLE(debug, |
AC_ARG_ENABLE(debug, |
[ --enable-debug enable debug code [[default=no]]], [ |
[ --enable-debug enable debug code [[default=no]]], [ |
if test "$enableval" = "no"; then |
if test "$enableval" = "no"; then |
DEBUG="" |
DEBUG="-UDEBUG_MEMOIRE -UDEBUG_ERREURS" |
|
MALLOC="\$(top_builddir)/ptmalloc3/libptmalloc3.a" |
else |
else |
DEBUG="-DDEBUG_MEMOIRE" |
DEBUG="-DDEBUG_MEMOIRE -UDEBUG_ERREURS" |
fi], [DEBUG=""]) |
MALLOC="" |
|
fi], [DEBUG="-UDEBUG_MEMOIRE -UDEBUG_ERREURS" |
|
MALLOC="\$(top_builddir)/ptmalloc3/libptmalloc3.a"]) |
|
|
AC_ARG_ENABLE(profile, |
AC_ARG_ENABLE(profile, |
[ --enable-profile enable profile code [[default=no]]], [ |
[ --enable-profile enable profile code [[default=no]]], [ |
Line 827 AC_SUBST(OS)
|
Line 839 AC_SUBST(OS)
|
DATE_FR=$(env LC_ALL=fr_FR date +'%A %x, %X %Z') |
DATE_FR=$(env LC_ALL=fr_FR date +'%A %x, %X %Z') |
DATE=$(env LC_ALL=C date +'%A %x, %X %Z') |
DATE=$(env LC_ALL=C date +'%A %x, %X %Z') |
|
|
case $(OS) in |
case $OS in |
|
|
Darwin) |
Darwin) |
EXPORT_DYNAMIC=-flat_namespace |
EXPORT_DYNAMIC=-flat_namespace |
NESTED_FUNCTIONS=-fnested-functions |
NESTED_FUNCTIONS=-fnested-functions |
SEMAPHORES_NOMMES=-DSEMAPHORES_NOMMES |
SEMAPHORES_NOMMES=-DSEMAPHORES_NOMMES |
|
CXXFLAGS="$CXXFLAGS -D_GLIBCXX_FULLY_DYNAMIC_STRING" |
break ;; |
break ;; |
|
|
Cygwin) |
Cygwin) |
Line 872 AC_SUBST(OPENSSL)
|
Line 885 AC_SUBST(OPENSSL)
|
AC_SUBST(FINAL_ENCODING) |
AC_SUBST(FINAL_ENCODING) |
AC_SUBST(DATE) |
AC_SUBST(DATE) |
AC_SUBST(DATE_FR) |
AC_SUBST(DATE_FR) |
|
AC_SUBST(MALLOC) |
|
|
AC_SUBST(CFLAGS) |
AC_SUBST(CFLAGS) |
AC_SUBST(CXXFLAGS) |
AC_SUBST(CXXFLAGS) |