version 1.52, 2011/02/18 09:50:17
|
version 1.71, 2011/07/22 21:04:37
|
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.20]) |
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.7-20101204 |
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.2 |
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= |
|
] |
|
) |
|
|
|
if test x$ABI = x; then |
|
AC_ARG_WITH(64bits, |
|
[ --with-64bits-abi force 64bits ABI (multilib)],[ |
|
if test "$with-64bits-abi" = "no"; then |
|
ABI= |
|
else |
|
ABI=-m64 |
|
fi],[ |
|
ABI= |
|
] |
|
) |
|
fi |
|
|
|
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 257 fi
|
Line 308 fi
|
if test ! -d "$srcdir"/tools/$NCURSES; then |
if test ! -d "$srcdir"/tools/$NCURSES; then |
gunzip -c "$srcdir"/tools/$NCURSES.tar.gz | \ |
gunzip -c "$srcdir"/tools/$NCURSES.tar.gz | \ |
(cd "$srcdir/tools" && tar -xf -) |
(cd "$srcdir/tools" && tar -xf -) |
|
(cd "$srcdir/tools/"$NCURSES && \ |
|
for i in ../$NCURSES*.patch.gz; |
|
do gunzip -c $i | patch -p1; |
|
done); |
fi |
fi |
if test ! -d "$srcdir"/tools/$READLINE; then |
if test ! -d "$srcdir"/tools/$READLINE; then |
gunzip -c "$srcdir"/tools/$READLINE.tar.gz | \ |
gunzip -c "$srcdir"/tools/$READLINE.tar.gz | \ |
Line 297 if test ! -d tools/$OPENSSL; then
|
Line 352 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 859 if test $(uname) = "OS/2"; then
|
Line 941 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 867 else
|
Line 949 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 1078 AC_SUBST(DATE)
|
Line 1160 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 1098 AC_CONFIG_FILES(scripts/rpllink)
|
Line 1186 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) |