mirror of
https://github.com/sfilippone/psblas3.git
synced 2026-10-16 02:49:03 +00:00
psblas-2.2-maint:
configure.ac configure Fix for flags selection on compilers.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#! /bin/sh
|
||||
# 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>.
|
||||
#
|
||||
@@ -574,8 +574,8 @@ SHELL=${CONFIG_SHELL-/bin/sh}
|
||||
# Identity of this package.
|
||||
PACKAGE_NAME='PSBLAS'
|
||||
PACKAGE_TARNAME='psblas'
|
||||
PACKAGE_VERSION='0.0'
|
||||
PACKAGE_STRING='PSBLAS 0.0'
|
||||
PACKAGE_VERSION='2.2'
|
||||
PACKAGE_STRING='PSBLAS 2.2'
|
||||
PACKAGE_BUGREPORT='salvatore.filippone@uniroma2.it'
|
||||
|
||||
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.
|
||||
# This message is too long to be a string in the A/UX 3.1 sh.
|
||||
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]...
|
||||
|
||||
@@ -1319,7 +1319,7 @@ fi
|
||||
|
||||
if test -n "$ac_init_help"; then
|
||||
case $ac_init_help in
|
||||
short | recursive ) echo "Configuration of PSBLAS 0.0:";;
|
||||
short | recursive ) echo "Configuration of PSBLAS 2.2:";;
|
||||
esac
|
||||
cat <<\_ACEOF
|
||||
|
||||
@@ -1438,7 +1438,7 @@ fi
|
||||
test -n "$ac_init_help" && exit $ac_status
|
||||
if $ac_init_version; then
|
||||
cat <<\_ACEOF
|
||||
PSBLAS configure 0.0
|
||||
PSBLAS configure 2.2
|
||||
generated by GNU Autoconf 2.61
|
||||
|
||||
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
|
||||
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
|
||||
|
||||
$ $0 $@
|
||||
@@ -5006,7 +5006,7 @@ fi
|
||||
|
||||
# Define the identity of the package.
|
||||
PACKAGE='psblas'
|
||||
VERSION='0.0'
|
||||
VERSION='2.2'
|
||||
|
||||
|
||||
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 : 'native' is valid _only_ on GCC/x86 (32/64 bits)
|
||||
CCOPT="-O3 $CCOPT"
|
||||
else
|
||||
if test "X$psblas_cv_fc" == X"xlf" ; then
|
||||
elif test "X$psblas_cv_fc" == X"xlf" ; then
|
||||
# XL compiler : consider using -qarch=auto
|
||||
CCOPT="-O3 $CCOPT"
|
||||
else
|
||||
CCOPT="-O3 -qarch=auto $CCOPT"
|
||||
elif test "X$psblas_cv_fc" == X"pg" ; then
|
||||
# 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
|
||||
fi
|
||||
fi
|
||||
else
|
||||
CCOPT="-fast $CCOPT"
|
||||
fi
|
||||
else
|
||||
CCOPT="${CFLAGS}"
|
||||
fi
|
||||
CFLAGS="${CCOPT}"
|
||||
CFLAGS="${CCOPT}"
|
||||
|
||||
if test "X$FFLAGS" == "X" ; then
|
||||
if test "X$psblas_cv_fc" == "Xgcc" ; then
|
||||
# note that no space should be placed around the equality symbol in assignations
|
||||
# Note : 'native' is valid _only_ on GCC/x86 (32/64 bits)
|
||||
FCOPT="-O3 $FCOPT"
|
||||
else
|
||||
if test "X$psblas_cv_fc" == X"xlf" ; then
|
||||
elif test "X$psblas_cv_fc" == X"xlf" ; then
|
||||
# XL compiler : consider using -qarch=auto
|
||||
FCOPT="-O3 $FCOPT"
|
||||
else
|
||||
FCOPT="-O3 -qarch=auto $FCOPT"
|
||||
elif test "X$psblas_cv_fc" == X"pg" ; then
|
||||
# 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
|
||||
fi
|
||||
fi
|
||||
else
|
||||
FCOPT="-fast $FCOPT"
|
||||
fi
|
||||
else
|
||||
FCOPT="${FFLAGS}"
|
||||
fi
|
||||
FFLAGS="${FCOPT}"
|
||||
FFLAGS="${FCOPT}"
|
||||
|
||||
if test "X$FCFLAGS" == "X" ; then
|
||||
if test "X$psblas_cv_fc" == "Xgcc" ; then
|
||||
# note that no space should be placed around the equality symbol in assignations
|
||||
# Note : 'native' is valid _only_ on GCC/x86 (32/64 bits)
|
||||
F90COPT="-O3 $F90COPT"
|
||||
else
|
||||
if test "X$psblas_cv_fc" == X"xlf" ; then
|
||||
F90COPT="-O3 $F90COPT"
|
||||
elif test "X$psblas_cv_fc" == X"xlf" ; then
|
||||
# XL compiler : consider using -qarch=auto
|
||||
F90COPT="-O3 $F90COPT"
|
||||
else
|
||||
F90COPT="-O3 -qarch=auto $F90COPT"
|
||||
elif test "X$psblas_cv_fc" == X"pgf77" ; then
|
||||
# other compilers ..
|
||||
F90COPT="-O3 $F90COPT"
|
||||
F90COPT="-fast $F90COPT"
|
||||
# NOTE : PG & Sun use -fast instead -O3
|
||||
fi
|
||||
fi
|
||||
else
|
||||
F90COPT="-fast $F90COPT"
|
||||
fi
|
||||
else
|
||||
F90COPT="${FCFLAGS}"
|
||||
fi
|
||||
FCFLAGS="${F90COPT}"
|
||||
@@ -10696,7 +10704,7 @@ exec 6>&1
|
||||
# report actual input values of CONFIG_FILES etc. instead of their
|
||||
# values after options handling.
|
||||
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
|
||||
|
||||
CONFIG_FILES = $CONFIG_FILES
|
||||
@@ -10743,7 +10751,7 @@ Report bugs to <bug-autoconf@gnu.org>."
|
||||
_ACEOF
|
||||
cat >>$CONFIG_STATUS <<_ACEOF
|
||||
ac_cs_version="\\
|
||||
PSBLAS config.status 0.0
|
||||
PSBLAS config.status 2.2
|
||||
configured by $0, generated by GNU Autoconf 2.61,
|
||||
with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
|
||||
|
||||
|
||||
+35
-28
@@ -17,8 +17,7 @@ dnl then : ./configure VAR=VAL
|
||||
dnl then : ./configure --help=short
|
||||
dnl then : ./configure --help
|
||||
|
||||
dnl OPEN QUESTIONS:
|
||||
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 the PSBLAS modules get this task difficult to accomplish!
|
||||
dnl SEE : --module-path --include-path
|
||||
|
||||
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!)
|
||||
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
|
||||
# FIXME
|
||||
@@ -310,58 +309,66 @@ dnl if true ; then
|
||||
if test "X$psblas_cv_fc" == "Xgcc" ; then
|
||||
# note that no space should be placed around the equality symbol in assignations
|
||||
# Note : 'native' is valid _only_ on GCC/x86 (32/64 bits)
|
||||
CCOPT="-O3 $CCOPT"
|
||||
else
|
||||
if test "X$psblas_cv_fc" == X"xlf" ; then
|
||||
CCOPT="-O3 $CCOPT"
|
||||
elif test "X$psblas_cv_fc" == X"xlf" ; then
|
||||
# XL compiler : consider using -qarch=auto
|
||||
CCOPT="-O3 $CCOPT"
|
||||
else
|
||||
CCOPT="-O3 -qarch=auto $CCOPT"
|
||||
elif test "X$psblas_cv_fc" == X"pg" ; then
|
||||
# other compilers ..
|
||||
CCOPT="-O3 $CCOPT"
|
||||
CCOPT="-fast $CCOPT"
|
||||
# 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
|
||||
else
|
||||
else
|
||||
CCOPT="${CFLAGS}"
|
||||
fi
|
||||
CFLAGS="${CCOPT}"
|
||||
CFLAGS="${CCOPT}"
|
||||
|
||||
if test "X$FFLAGS" == "X" ; then
|
||||
if test "X$psblas_cv_fc" == "Xgcc" ; then
|
||||
# note that no space should be placed around the equality symbol in assignations
|
||||
# Note : 'native' is valid _only_ on GCC/x86 (32/64 bits)
|
||||
FCOPT="-O3 $FCOPT"
|
||||
else
|
||||
if test "X$psblas_cv_fc" == X"xlf" ; then
|
||||
elif test "X$psblas_cv_fc" == X"xlf" ; then
|
||||
# XL compiler : consider using -qarch=auto
|
||||
FCOPT="-O3 $FCOPT"
|
||||
else
|
||||
FCOPT="-O3 -qarch=auto $FCOPT"
|
||||
elif test "X$psblas_cv_fc" == X"pg" ; then
|
||||
# other compilers ..
|
||||
FCOPT="-O3 $FCOPT"
|
||||
FCOPT="-fast $FCOPT"
|
||||
# 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
|
||||
else
|
||||
else
|
||||
FCOPT="${FFLAGS}"
|
||||
fi
|
||||
FFLAGS="${FCOPT}"
|
||||
FFLAGS="${FCOPT}"
|
||||
|
||||
if test "X$FCFLAGS" == "X" ; then
|
||||
if test "X$psblas_cv_fc" == "Xgcc" ; then
|
||||
# note that no space should be placed around the equality symbol in assignations
|
||||
# Note : 'native' is valid _only_ on GCC/x86 (32/64 bits)
|
||||
F90COPT="-O3 $F90COPT"
|
||||
else
|
||||
if test "X$psblas_cv_fc" == X"xlf" ; then
|
||||
F90COPT="-O3 $F90COPT"
|
||||
elif test "X$psblas_cv_fc" == X"xlf" ; then
|
||||
# XL compiler : consider using -qarch=auto
|
||||
F90COPT="-O3 $F90COPT"
|
||||
else
|
||||
F90COPT="-O3 -qarch=auto $F90COPT"
|
||||
elif test "X$psblas_cv_fc" == X"pgf77" ; then
|
||||
# other compilers ..
|
||||
F90COPT="-O3 $F90COPT"
|
||||
F90COPT="-fast $F90COPT"
|
||||
# NOTE : PG & Sun use -fast instead -O3
|
||||
fi
|
||||
else
|
||||
F90COPT="-fast $F90COPT"
|
||||
fi
|
||||
else
|
||||
else
|
||||
F90COPT="${FCFLAGS}"
|
||||
fi
|
||||
FCFLAGS="${F90COPT}"
|
||||
|
||||
Reference in New Issue
Block a user