1998-04-03 11:29:38 +08:00
|
|
|
# -*- shell-script -*-
|
2005-10-21 22:54:41 +08:00
|
|
|
#
|
2007-02-15 06:29:52 +08:00
|
|
|
# Copyright by The HDF Group.
|
2005-10-21 22:54:41 +08:00
|
|
|
# All rights reserved.
|
|
|
|
#
|
|
|
|
# This file is part of HDF5. The full HDF5 copyright notice, including
|
|
|
|
# terms governing use, modification, and redistribution, is contained in
|
2024-10-19 12:13:04 +08:00
|
|
|
# the LICENSE file, which can be found at the root of the source code
|
2021-02-17 22:52:36 +08:00
|
|
|
# distribution tree, or in https://www.hdfgroup.org/licenses.
|
2017-04-18 03:32:16 +08:00
|
|
|
# If you do not have access to either file, you may request a copy from
|
|
|
|
# help@hdfgroup.org.
|
2005-10-21 22:54:41 +08:00
|
|
|
|
|
|
|
|
1998-04-03 11:29:38 +08:00
|
|
|
# This file is part of the HDF5 build script. It is processed shortly
|
|
|
|
# after configure starts and defines, among other things, flags for
|
|
|
|
# the various compile modes.
|
1998-11-13 23:06:06 +08:00
|
|
|
#
|
|
|
|
# See BlankForm in this directory for details.
|
1997-08-16 00:40:24 +08:00
|
|
|
|
2020-11-30 12:44:47 +08:00
|
|
|
# The default compiler is 'cc'
|
1999-03-05 04:22:42 +08:00
|
|
|
if test "X-" = "X-$CC"; then
|
2020-11-30 12:44:47 +08:00
|
|
|
CC=cc
|
|
|
|
CC_BASENAME=cc
|
1999-03-05 04:22:42 +08:00
|
|
|
fi
|
|
|
|
|
2020-11-30 12:44:47 +08:00
|
|
|
# Figure out clang C compiler flags
|
|
|
|
. $srcdir/config/clang-flags
|
|
|
|
|
|
|
|
# Figure out GNU C compiler flags
|
2005-02-10 21:30:36 +08:00
|
|
|
. $srcdir/config/gnu-flags
|
|
|
|
|
2023-10-24 03:50:15 +08:00
|
|
|
# Figure out Intel oneAPI C compiler flags
|
|
|
|
. $srcdir/config/oneapi-flags
|
|
|
|
|
|
|
|
# Figure out Intel classic C compiler flags
|
2005-02-10 21:30:36 +08:00
|
|
|
. $srcdir/config/intel-flags
|
|
|
|
|
|
|
|
# The default Fortran 90 compiler
|
2020-11-30 12:44:47 +08:00
|
|
|
# No default Fortran compiler for clang. flang exists on
|
|
|
|
# FreeBSD as a port, but this is tied to an ancient LLVM
|
|
|
|
# and lacks Fortran 2003 features which causes configure
|
|
|
|
# to fail.
|
[svn-r10158] Purpose:
Automake version upgrade
Description:
Upgraded automake version from 1.6.2 to 1.9.5.
Changed bin/reconfigure script to use automake 1.9.5.
Changed configure.in and Makefiles to use new FCFLAGS and FC variables
instead of FFLAGS and F9X.
Automake and configure should now do the lion's share of the work
supporting Fortran 9X; macros in acsite.m4 are now mostly unused (will
be cleaned later).
Altered how configure handles pmake; now root-level Makefile.in is
processed by bin/reconfigure to have a .MAKEFLAGS target, since
automake no longer allows us to define unused variables.
Configure now always checks for C++ compiler even if it is not
used, since automake thinks this is the Right Thing To Do and
will break otherwise.
Platforms tested:
Sol, copper, heping, mir, sleipnir, eirene, pommier, kelgia, modi4.
2005-03-08 01:57:27 +08:00
|
|
|
if test "X-" = "X-$FC"; then
|
2005-02-10 21:30:36 +08:00
|
|
|
case $CC_BASENAME in
|
|
|
|
gcc*|pgcc*)
|
2017-05-27 02:56:23 +08:00
|
|
|
FC=gfortran
|
|
|
|
FC_BASENAME=gfortran
|
2005-02-10 21:30:36 +08:00
|
|
|
;;
|
2023-10-24 03:50:15 +08:00
|
|
|
icx*)
|
|
|
|
FC=ifx
|
|
|
|
FC_BASENAME=ifx
|
|
|
|
;;
|
2005-02-10 21:30:36 +08:00
|
|
|
icc*)
|
[svn-r10158] Purpose:
Automake version upgrade
Description:
Upgraded automake version from 1.6.2 to 1.9.5.
Changed bin/reconfigure script to use automake 1.9.5.
Changed configure.in and Makefiles to use new FCFLAGS and FC variables
instead of FFLAGS and F9X.
Automake and configure should now do the lion's share of the work
supporting Fortran 9X; macros in acsite.m4 are now mostly unused (will
be cleaned later).
Altered how configure handles pmake; now root-level Makefile.in is
processed by bin/reconfigure to have a .MAKEFLAGS target, since
automake no longer allows us to define unused variables.
Configure now always checks for C++ compiler even if it is not
used, since automake thinks this is the Right Thing To Do and
will break otherwise.
Platforms tested:
Sol, copper, heping, mir, sleipnir, eirene, pommier, kelgia, modi4.
2005-03-08 01:57:27 +08:00
|
|
|
FC=ifort
|
|
|
|
FC_BASENAME=ifort
|
2005-02-10 21:30:36 +08:00
|
|
|
;;
|
|
|
|
mpicc*)
|
[svn-r10158] Purpose:
Automake version upgrade
Description:
Upgraded automake version from 1.6.2 to 1.9.5.
Changed bin/reconfigure script to use automake 1.9.5.
Changed configure.in and Makefiles to use new FCFLAGS and FC variables
instead of FFLAGS and F9X.
Automake and configure should now do the lion's share of the work
supporting Fortran 9X; macros in acsite.m4 are now mostly unused (will
be cleaned later).
Altered how configure handles pmake; now root-level Makefile.in is
processed by bin/reconfigure to have a .MAKEFLAGS target, since
automake no longer allows us to define unused variables.
Configure now always checks for C++ compiler even if it is not
used, since automake thinks this is the Right Thing To Do and
will break otherwise.
Platforms tested:
Sol, copper, heping, mir, sleipnir, eirene, pommier, kelgia, modi4.
2005-03-08 01:57:27 +08:00
|
|
|
FC=mpif90
|
|
|
|
FC_BASENAME=mpif90
|
2005-02-10 21:30:36 +08:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
fi
|
|
|
|
|
2004-12-17 10:27:41 +08:00
|
|
|
# Figure out FORTRAN compiler flags
|
|
|
|
. $srcdir/config/gnu-fflags
|
|
|
|
|
2023-10-24 03:50:15 +08:00
|
|
|
# Figure out Intel oneAPI FC compiler flags
|
|
|
|
. $srcdir/config/oneapi-fflags
|
|
|
|
|
|
|
|
# Figure out Intel classic FC compiler flags
|
2023-12-08 00:12:25 +08:00
|
|
|
. $srcdir/config/intel-fflags
|
2005-02-10 21:30:36 +08:00
|
|
|
|
2020-11-30 12:44:47 +08:00
|
|
|
# The default C++ compiler
|
|
|
|
|
|
|
|
# The default compiler is 'c++'.
|
|
|
|
if test -z "$CXX"; then
|
|
|
|
CXX=c++
|
|
|
|
CXX_BASENAME=c++
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Figure out Clang CXX compiler flags
|
|
|
|
. $srcdir/config/clang-cxxflags
|
|
|
|
|
|
|
|
# Figure out GNU CXX compiler flags
|
|
|
|
. $srcdir/config/gnu-cxxflags
|