version 1.54, 2011/03/19 13:50:35
|
version 1.70, 2011/07/22 07:38:00
|
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.21]) |
AC_INIT([rpl],[4.1.1]) |
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.8 |
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-2.24 |
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.6.3 |
OPENSSL=openssl-1.0.0d |
OPENSSL=openssl-1.0.0d |
|
|
|
GMP=gmp-5.0.1 |
|
MPFR=mpfr-3.0.1 |
|
NTL=ntl-5.5.2 |
|
COCOA=CoCoALib-0.9943 |
|
PARI=pari-2.3.5 |
|
GIAC=giac-0.9.3 |
|
|
dnl Checks for C compiler |
dnl Checks for C compiler |
AC_PROG_CC(gcc) |
AC_PROG_CC(gcc) |
|
|
Line 107 if test "$ac_x_libraries" != "no"; then
|
Line 114 if test "$ac_x_libraries" != "no"; then
|
fi |
fi |
fi |
fi |
|
|
|
dnl 32 bits ABI |
|
AC_ARG_WITH(32bits, |
|
[ --with-32bits-abi force 32bits ABI (multilib)],[ |
|
if test "$with-32bits-abi" = "no"; then |
|
ABI= |
|
else |
|
ABI=-m32 |
|
fi],[ |
|
ABI=-m32 |
|
] |
|
) |
|
|
|
AC_ARG_WITH(64bits, |
|
[ --with-64bits-abi force 64bits ABI (multilib)],[ |
|
if test "$with-64bits-abi" = "no"; then |
|
ABI= |
|
else |
|
ABI=-m64 |
|
fi],[ |
|
ABI=-m64 |
|
] |
|
) |
|
|
|
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]]], [ |
Line 301 if test ! -d tools/$OPENSSL; then
|
Line 350 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 -) |
fi |
fi |
|
if test ! -d rplcas; then |
|
mkdir rplcas |
|
fi |
|
if test ! -d "$srcdir"/rplcas/$GMP; then |
|
gunzip -c "$srcdir"/rplcas/$GMP.tar.gz | \ |
|
(cd "$srcdir/rplcas" && tar -xf -) |
|
fi |
|
if test ! -d "$srcdir"/rplcas/$MPFR; then |
|
gunzip -c "$srcdir"/rplcas/$MPFR.tar.gz | \ |
|
(cd "$srcdir/rplcas" && tar -xf -) |
|
fi |
|
if test ! -d rplcas/$NTL; then |
|
gunzip -c "$srcdir"/rplcas/$NTL.tar.gz | \ |
|
(cd rplcas && tar -xf -) |
|
fi |
|
if test ! -d rplcas/$COCOA; then |
|
gunzip -c "$srcdir"/rplcas/$COCOA.tar.gz | \ |
|
(cd rplcas && tar -xf -) |
|
fi |
|
if test ! -d rplcas/$PARI; then |
|
gunzip -c "$srcdir"/rplcas/$PARI.tar.gz | \ |
|
(cd rplcas && tar -xf -) |
|
fi |
|
if test ! -d "$srcdir"/rplcas/$GIAC; then |
|
gunzip -c "$srcdir"/rplcas/$GIAC.tar.gz | \ |
|
(cd "$srcdir/rplcas" && tar -xf -) |
|
fi |
|
|
dnl Default installation directory |
dnl Default installation directory |
AC_PREFIX_DEFAULT(/usr/local) |
AC_PREFIX_DEFAULT(/usr/local) |
Line 863 if test $(uname) = "OS/2"; then
|
Line 939 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 871 else
|
Line 947 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 |
|
|
Line 1082 AC_SUBST(DATE)
|
Line 1158 AC_SUBST(DATE)
|
AC_SUBST(DATE_FR) |
AC_SUBST(DATE_FR) |
AC_SUBST(EXT_SQL) |
AC_SUBST(EXT_SQL) |
AC_SUBST(MALLOC) |
AC_SUBST(MALLOC) |
|
AC_SUBST(GMP) |
|
AC_SUBST(MPFR) |
|
AC_SUBST(NTL) |
|
AC_SUBST(COCOA) |
|
AC_SUBST(PARI) |
|
AC_SUBST(GIAC) |
|
|
AC_SUBST(CFLAGS) |
AC_SUBST(CFLAGS) |
AC_SUBST(CXXFLAGS) |
AC_SUBST(CXXFLAGS) |
Line 1102 AC_CONFIG_FILES(scripts/rpllink)
|
Line 1184 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(rplcas/Makefile) |
AC_CONFIG_FILES(rplawk/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) |