psblas-2.2-maint:

configure.ac
 configure

Fix for flags selection on compilers.
psblas3-type-indexed
Salvatore Filippone 17 years ago
parent 9073517c90
commit fdc0eb7980

76
configure vendored

@ -1,6 +1,6 @@
#! /bin/sh #! /bin/sh
# Guess values for system-dependent variables and create Makefiles. # Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.61 for PSBLAS 0.0. # Generated by GNU Autoconf 2.61 for PSBLAS 2.2.
# #
# Report bugs to <salvatore.filippone@uniroma2.it>. # Report bugs to <salvatore.filippone@uniroma2.it>.
# #
@ -574,8 +574,8 @@ SHELL=${CONFIG_SHELL-/bin/sh}
# Identity of this package. # Identity of this package.
PACKAGE_NAME='PSBLAS' PACKAGE_NAME='PSBLAS'
PACKAGE_TARNAME='psblas' PACKAGE_TARNAME='psblas'
PACKAGE_VERSION='0.0' PACKAGE_VERSION='2.2'
PACKAGE_STRING='PSBLAS 0.0' PACKAGE_STRING='PSBLAS 2.2'
PACKAGE_BUGREPORT='salvatore.filippone@uniroma2.it' PACKAGE_BUGREPORT='salvatore.filippone@uniroma2.it'
ac_unique_file="base/modules/psb_base_mod.f90" ac_unique_file="base/modules/psb_base_mod.f90"
@ -1253,7 +1253,7 @@ if test "$ac_init_help" = "long"; then
# Omit some internal or obsolete options to make the list less imposing. # Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh. # This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF cat <<_ACEOF
\`configure' configures PSBLAS 0.0 to adapt to many kinds of systems. \`configure' configures PSBLAS 2.2 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]... Usage: $0 [OPTION]... [VAR=VALUE]...
@ -1319,7 +1319,7 @@ fi
if test -n "$ac_init_help"; then if test -n "$ac_init_help"; then
case $ac_init_help in case $ac_init_help in
short | recursive ) echo "Configuration of PSBLAS 0.0:";; short | recursive ) echo "Configuration of PSBLAS 2.2:";;
esac esac
cat <<\_ACEOF cat <<\_ACEOF
@ -1438,7 +1438,7 @@ fi
test -n "$ac_init_help" && exit $ac_status test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then if $ac_init_version; then
cat <<\_ACEOF cat <<\_ACEOF
PSBLAS configure 0.0 PSBLAS configure 2.2
generated by GNU Autoconf 2.61 generated by GNU Autoconf 2.61
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
@ -1452,7 +1452,7 @@ cat >config.log <<_ACEOF
This file contains any messages produced by compilers while This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake. running configure, to aid debugging if configure makes a mistake.
It was created by PSBLAS $as_me 0.0, which was It was created by PSBLAS $as_me 2.2, which was
generated by GNU Autoconf 2.61. Invocation command line was generated by GNU Autoconf 2.61. Invocation command line was
$ $0 $@ $ $0 $@
@ -5006,7 +5006,7 @@ fi
# Define the identity of the package. # Define the identity of the package.
PACKAGE='psblas' PACKAGE='psblas'
VERSION='0.0' VERSION='2.2'
cat >>confdefs.h <<_ACEOF cat >>confdefs.h <<_ACEOF
@ -6764,57 +6764,65 @@ if test "X$CFLAGS" == "X" ; then
# note that no space should be placed around the equality symbol in assignations # note that no space should be placed around the equality symbol in assignations
# Note : 'native' is valid _only_ on GCC/x86 (32/64 bits) # Note : 'native' is valid _only_ on GCC/x86 (32/64 bits)
CCOPT="-O3 $CCOPT" CCOPT="-O3 $CCOPT"
else elif test "X$psblas_cv_fc" == X"xlf" ; then
if test "X$psblas_cv_fc" == X"xlf" ; then
# XL compiler : consider using -qarch=auto # XL compiler : consider using -qarch=auto
CCOPT="-O3 $CCOPT" CCOPT="-O3 -qarch=auto $CCOPT"
else elif test "X$psblas_cv_fc" == X"pg" ; then
# other compilers .. # other compilers ..
CCOPT="-O3 $CCOPT" CCOPT="-fast $CCOPT"
# NOTE : PG & Sun use -fast instead -O3
elif test "X$psblas_cv_fc" == X"sun" ; then
# other compilers ..
CCOPT="-fast $CCOPT"
# NOTE : PG & Sun use -fast instead -O3 # NOTE : PG & Sun use -fast instead -O3
fi
fi
else else
CCOPT="-fast $CCOPT"
fi
else
CCOPT="${CFLAGS}" CCOPT="${CFLAGS}"
fi fi
CFLAGS="${CCOPT}" CFLAGS="${CCOPT}"
if test "X$FFLAGS" == "X" ; then if test "X$FFLAGS" == "X" ; then
if test "X$psblas_cv_fc" == "Xgcc" ; then if test "X$psblas_cv_fc" == "Xgcc" ; then
# note that no space should be placed around the equality symbol in assignations # note that no space should be placed around the equality symbol in assignations
# Note : 'native' is valid _only_ on GCC/x86 (32/64 bits) # Note : 'native' is valid _only_ on GCC/x86 (32/64 bits)
FCOPT="-O3 $FCOPT" FCOPT="-O3 $FCOPT"
else elif test "X$psblas_cv_fc" == X"xlf" ; then
if test "X$psblas_cv_fc" == X"xlf" ; then
# XL compiler : consider using -qarch=auto # XL compiler : consider using -qarch=auto
FCOPT="-O3 $FCOPT" FCOPT="-O3 -qarch=auto $FCOPT"
else elif test "X$psblas_cv_fc" == X"pg" ; then
# other compilers .. # other compilers ..
FCOPT="-O3 $FCOPT" FCOPT="-fast $FCOPT"
# NOTE : PG & Sun use -fast instead -O3
elif test "X$psblas_cv_fc" == X"sun" ; then
# other compilers ..
FCOPT="-fast $FCOPT"
# NOTE : PG & Sun use -fast instead -O3 # NOTE : PG & Sun use -fast instead -O3
fi
fi
else else
FCOPT="-fast $FCOPT"
fi
else
FCOPT="${FFLAGS}" FCOPT="${FFLAGS}"
fi fi
FFLAGS="${FCOPT}" FFLAGS="${FCOPT}"
if test "X$FCFLAGS" == "X" ; then if test "X$FCFLAGS" == "X" ; then
if test "X$psblas_cv_fc" == "Xgcc" ; then if test "X$psblas_cv_fc" == "Xgcc" ; then
# note that no space should be placed around the equality symbol in assignations # note that no space should be placed around the equality symbol in assignations
# Note : 'native' is valid _only_ on GCC/x86 (32/64 bits) # Note : 'native' is valid _only_ on GCC/x86 (32/64 bits)
F90COPT="-O3 $F90COPT" F90COPT="-O3 $F90COPT"
else elif test "X$psblas_cv_fc" == X"xlf" ; then
if test "X$psblas_cv_fc" == X"xlf" ; then
# XL compiler : consider using -qarch=auto # XL compiler : consider using -qarch=auto
F90COPT="-O3 $F90COPT" F90COPT="-O3 -qarch=auto $F90COPT"
else elif test "X$psblas_cv_fc" == X"pgf77" ; then
# other compilers .. # other compilers ..
F90COPT="-O3 $F90COPT" F90COPT="-fast $F90COPT"
# NOTE : PG & Sun use -fast instead -O3 # NOTE : PG & Sun use -fast instead -O3
fi
fi
else else
F90COPT="-fast $F90COPT"
fi
else
F90COPT="${FCFLAGS}" F90COPT="${FCFLAGS}"
fi fi
FCFLAGS="${F90COPT}" FCFLAGS="${F90COPT}"
@ -10696,7 +10704,7 @@ exec 6>&1
# report actual input values of CONFIG_FILES etc. instead of their # report actual input values of CONFIG_FILES etc. instead of their
# values after options handling. # values after options handling.
ac_log=" ac_log="
This file was extended by PSBLAS $as_me 0.0, which was This file was extended by PSBLAS $as_me 2.2, which was
generated by GNU Autoconf 2.61. Invocation command line was generated by GNU Autoconf 2.61. Invocation command line was
CONFIG_FILES = $CONFIG_FILES CONFIG_FILES = $CONFIG_FILES
@ -10743,7 +10751,7 @@ Report bugs to <bug-autoconf@gnu.org>."
_ACEOF _ACEOF
cat >>$CONFIG_STATUS <<_ACEOF cat >>$CONFIG_STATUS <<_ACEOF
ac_cs_version="\\ ac_cs_version="\\
PSBLAS config.status 0.0 PSBLAS config.status 2.2
configured by $0, generated by GNU Autoconf 2.61, configured by $0, generated by GNU Autoconf 2.61,
with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"

@ -17,8 +17,7 @@ dnl then : ./configure VAR=VAL
dnl then : ./configure --help=short dnl then : ./configure --help=short
dnl then : ./configure --help dnl then : ./configure --help
dnl OPEN QUESTIONS: dnl the PSBLAS modules get this task difficult to accomplish!
dnl To detect an installed instance of PSBLAS in order for MLD2P4 to be installed: the PSBLAS modules get this task difficult to accomplish!
dnl SEE : --module-path --include-path dnl SEE : --module-path --include-path
dnl NOTE : There is no cross compilation support. dnl NOTE : There is no cross compilation support.
@ -39,7 +38,7 @@ dnl NOTE : odd configurations like ifc + gcc still await in the mist of the unkn
############################################################################### ###############################################################################
# NOTE: the literal for version (the second argument to AC_INIT should be a literal!) # NOTE: the literal for version (the second argument to AC_INIT should be a literal!)
AC_INIT([PSBLAS],0.0, salvatore.filippone@uniroma2.it) AC_INIT([PSBLAS],2.2, salvatore.filippone@uniroma2.it)
# VERSION is the file containing the PSBLAS version code # VERSION is the file containing the PSBLAS version code
# FIXME # FIXME
@ -310,58 +309,66 @@ dnl if true ; then
if test "X$psblas_cv_fc" == "Xgcc" ; then if test "X$psblas_cv_fc" == "Xgcc" ; then
# note that no space should be placed around the equality symbol in assignations # note that no space should be placed around the equality symbol in assignations
# Note : 'native' is valid _only_ on GCC/x86 (32/64 bits) # Note : 'native' is valid _only_ on GCC/x86 (32/64 bits)
CCOPT="-O3 $CCOPT" CCOPT="-O3 $CCOPT"
else elif test "X$psblas_cv_fc" == X"xlf" ; then
if test "X$psblas_cv_fc" == X"xlf" ; then
# XL compiler : consider using -qarch=auto # XL compiler : consider using -qarch=auto
CCOPT="-O3 $CCOPT" CCOPT="-O3 -qarch=auto $CCOPT"
else elif test "X$psblas_cv_fc" == X"pg" ; then
# other compilers .. # other compilers ..
CCOPT="-O3 $CCOPT" CCOPT="-fast $CCOPT"
# NOTE : PG & Sun use -fast instead -O3 # NOTE : PG & Sun use -fast instead -O3
fi elif test "X$psblas_cv_fc" == X"sun" ; then
# other compilers ..
CCOPT="-fast $CCOPT"
# NOTE : PG & Sun use -fast instead -O3
else
CCOPT="-fast $CCOPT"
fi fi
else else
CCOPT="${CFLAGS}" CCOPT="${CFLAGS}"
fi fi
CFLAGS="${CCOPT}" CFLAGS="${CCOPT}"
if test "X$FFLAGS" == "X" ; then if test "X$FFLAGS" == "X" ; then
if test "X$psblas_cv_fc" == "Xgcc" ; then if test "X$psblas_cv_fc" == "Xgcc" ; then
# note that no space should be placed around the equality symbol in assignations # note that no space should be placed around the equality symbol in assignations
# Note : 'native' is valid _only_ on GCC/x86 (32/64 bits) # Note : 'native' is valid _only_ on GCC/x86 (32/64 bits)
FCOPT="-O3 $FCOPT" FCOPT="-O3 $FCOPT"
else elif test "X$psblas_cv_fc" == X"xlf" ; then
if test "X$psblas_cv_fc" == X"xlf" ; then
# XL compiler : consider using -qarch=auto # XL compiler : consider using -qarch=auto
FCOPT="-O3 $FCOPT" FCOPT="-O3 -qarch=auto $FCOPT"
else elif test "X$psblas_cv_fc" == X"pg" ; then
# other compilers .. # other compilers ..
FCOPT="-O3 $FCOPT" FCOPT="-fast $FCOPT"
# NOTE : PG & Sun use -fast instead -O3 # NOTE : PG & Sun use -fast instead -O3
fi elif test "X$psblas_cv_fc" == X"sun" ; then
# other compilers ..
FCOPT="-fast $FCOPT"
# NOTE : PG & Sun use -fast instead -O3
else
FCOPT="-fast $FCOPT"
fi fi
else else
FCOPT="${FFLAGS}" FCOPT="${FFLAGS}"
fi fi
FFLAGS="${FCOPT}" FFLAGS="${FCOPT}"
if test "X$FCFLAGS" == "X" ; then if test "X$FCFLAGS" == "X" ; then
if test "X$psblas_cv_fc" == "Xgcc" ; then if test "X$psblas_cv_fc" == "Xgcc" ; then
# note that no space should be placed around the equality symbol in assignations # note that no space should be placed around the equality symbol in assignations
# Note : 'native' is valid _only_ on GCC/x86 (32/64 bits) # Note : 'native' is valid _only_ on GCC/x86 (32/64 bits)
F90COPT="-O3 $F90COPT" F90COPT="-O3 $F90COPT"
else elif test "X$psblas_cv_fc" == X"xlf" ; then
if test "X$psblas_cv_fc" == X"xlf" ; then
# XL compiler : consider using -qarch=auto # XL compiler : consider using -qarch=auto
F90COPT="-O3 $F90COPT" F90COPT="-O3 -qarch=auto $F90COPT"
else elif test "X$psblas_cv_fc" == X"pgf77" ; then
# other compilers .. # other compilers ..
F90COPT="-O3 $F90COPT" F90COPT="-fast $F90COPT"
# NOTE : PG & Sun use -fast instead -O3 # NOTE : PG & Sun use -fast instead -O3
fi else
F90COPT="-fast $F90COPT"
fi fi
else else
F90COPT="${FCFLAGS}" F90COPT="${FCFLAGS}"
fi fi
FCFLAGS="${F90COPT}" FCFLAGS="${F90COPT}"

Loading…
Cancel
Save