From d52fb8ed43928f485272759875ea710baf223a99 Mon Sep 17 00:00:00 2001 From: Salvatore Filippone Date: Mon, 30 Jan 2012 14:53:03 +0000 Subject: [PATCH] psblas3: config/pac.m4 configure.ac configure Work on long integers: defined configure stuff. --- config/pac.m4 | 34 +++++++++++++++++++++++++++++++++- configure | 26 ++++++++++++++++++++++++++ configure.ac | 4 ++++ 3 files changed, 63 insertions(+), 1 deletion(-) diff --git a/config/pac.m4 b/config/pac.m4 index 12b7dd4e..9884a9de 100644 --- a/config/pac.m4 +++ b/config/pac.m4 @@ -329,7 +329,7 @@ AC_MSG_RESULT(no) dnl @synopsis PAC_ARG_SERIAL_MPI dnl -dnl Test for --with-serial-mpi={yes|no} +dnl Test for --enable-serial dnl dnl dnl @@ -359,6 +359,38 @@ fi ] ) +dnl @synopsis PAC_ARG_LONG_INTEGERS +dnl +dnl Test for --enable-long-integers +dnl +dnl +dnl +dnl Example use: +dnl +dnl +dnl @author Salvatore Filippone +dnl +AC_DEFUN([PAC_ARG_LONG_INTEGERS], +[ +AC_MSG_CHECKING([whether we want long (8 bytes) integers]) +AC_ARG_ENABLE(long-integers, +AC_HELP_STRING([--enable-long-integers], +[Specify usage of 64 bits integers. ]), +[ +pac_cv_long_integers="yes"; +] +dnl , +dnl [pac_cv_long_integers="no";] +) +if test x"$pac_cv_long_integers" == x"yes" ; then + AC_MSG_RESULT([yes.]) +else + pac_cv_long_integers="no"; + AC_MSG_RESULT([no.]) +fi +] +) + dnl @synopsis PAC_FORTRAN_HAVE_PSBLAS( [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]) dnl dnl Will try to compile and link a program using the PSBLAS library diff --git a/configure b/configure index ae96d071..6efc2d91 100755 --- a/configure +++ b/configure @@ -752,6 +752,7 @@ with_library_path with_include_path with_module_path enable_dependency_tracking +enable_long_integers with_blas with_lapack with_rsb @@ -1397,6 +1398,7 @@ Optional Features: in serial mode. --disable-dependency-tracking speeds up one-time build --enable-dependency-tracking do not reject slow dependency extractors + --enable-long-integers Specify usage of 64 bits integers. Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] @@ -6588,6 +6590,30 @@ rm -f conftest* fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we want long (8 bytes) integers" >&5 +$as_echo_n "checking whether we want long (8 bytes) integers... " >&6; } +# Check whether --enable-long-integers was given. +if test "${enable_long_integers+set}" = set; then : + enableval=$enable_long_integers; +pac_cv_long_integers="yes"; + + +fi + +if test x"$pac_cv_long_integers" == x"yes" ; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes." >&5 +$as_echo "yes." >&6; } +else + pac_cv_long_integers="no"; + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no." >&5 +$as_echo "no." >&6; } +fi + + +if test x"$pac_cv_long_integers" == x"yes" ; then + FDEFINES="$psblas_cv_define_prepend-DLONG_INTEGERS $FDEFINES"; +fi + # # Tests for support of various Fortran features; some of them are critical, # some optional diff --git a/configure.ac b/configure.ac index 8207becc..ab92e0c9 100755 --- a/configure.ac +++ b/configure.ac @@ -516,6 +516,10 @@ else ) fi +PAC_ARG_LONG_INTEGERS +if test x"$pac_cv_long_integers" == x"yes" ; then + FDEFINES="$psblas_cv_define_prepend-DLONG_INTEGERS $FDEFINES"; +fi # # Tests for support of various Fortran features; some of them are critical,