configure (netcdf-fortran-4.4.4) | : | configure (netcdf-fortran-4.4.5) |
---|---|---|
#! /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.69 for netCDF-Fortran 4.4.4. | # Generated by GNU Autoconf 2.69 for netCDF-Fortran 4.4.5. | |
# | # | |
# Report bugs to <support-netcdf@unidata.ucar.edu>. | # Report bugs to <support-netcdf@unidata.ucar.edu>. | |
# | # | |
# | # | |
# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. | |
# | # | |
# | # | |
# This configure script is free software; the Free Software Foundation | # This configure script is free software; the Free Software Foundation | |
# gives unlimited permission to copy, distribute and modify it. | # gives unlimited permission to copy, distribute and modify it. | |
## -------------------- ## | ## -------------------- ## | |
skipping to change at line 586 | skipping to change at line 586 | |
ac_config_libobj_dir=. | ac_config_libobj_dir=. | |
LIBOBJS= | LIBOBJS= | |
cross_compiling=no | cross_compiling=no | |
subdirs= | subdirs= | |
MFLAGS= | MFLAGS= | |
MAKEFLAGS= | MAKEFLAGS= | |
# Identity of this package. | # Identity of this package. | |
PACKAGE_NAME='netCDF-Fortran' | PACKAGE_NAME='netCDF-Fortran' | |
PACKAGE_TARNAME='netcdf-fortran' | PACKAGE_TARNAME='netcdf-fortran' | |
PACKAGE_VERSION='4.4.4' | PACKAGE_VERSION='4.4.5' | |
PACKAGE_STRING='netCDF-Fortran 4.4.4' | PACKAGE_STRING='netCDF-Fortran 4.4.5' | |
PACKAGE_BUGREPORT='support-netcdf@unidata.ucar.edu' | PACKAGE_BUGREPORT='support-netcdf@unidata.ucar.edu' | |
PACKAGE_URL='' | PACKAGE_URL='' | |
ac_unique_file="libsrc/fort-attio.c" | ac_unique_file="libsrc/fort-attio.c" | |
# Factoring default headers for most tests. | # Factoring default headers for most tests. | |
ac_includes_default="\ | ac_includes_default="\ | |
#include <stdio.h> | #include <stdio.h> | |
#ifdef HAVE_SYS_TYPES_H | #ifdef HAVE_SYS_TYPES_H | |
# include <sys/types.h> | # include <sys/types.h> | |
#endif | #endif | |
skipping to change at line 644 | skipping to change at line 644 | |
HAS_DAP | HAS_DAP | |
HAS_F03 | HAS_F03 | |
HAS_F90 | HAS_F90 | |
NC_FLIBS | NC_FLIBS | |
NC_LIBS | NC_LIBS | |
USE_VALGRIND_TESTS_FALSE | USE_VALGRIND_TESTS_FALSE | |
USE_VALGRIND_TESTS_TRUE | USE_VALGRIND_TESTS_TRUE | |
TEST_PARALLEL_FALSE | TEST_PARALLEL_FALSE | |
TEST_PARALLEL_TRUE | TEST_PARALLEL_TRUE | |
ALLOCA | ALLOCA | |
TEST_FILTERS_FALSE | ||
TEST_FILTERS_TRUE | ||
BUILD_PARALLEL_FALSE | BUILD_PARALLEL_FALSE | |
BUILD_PARALLEL_TRUE | BUILD_PARALLEL_TRUE | |
BUILD_PARALLEL4_FALSE | ||
BUILD_PARALLEL4_TRUE | ||
BUILD_PNETCDF_FALSE | ||
BUILD_PNETCDF_TRUE | ||
BUILD_DAP_FALSE | BUILD_DAP_FALSE | |
BUILD_DAP_TRUE | BUILD_DAP_TRUE | |
USE_LOGGING_FALSE | USE_LOGGING_FALSE | |
USE_LOGGING_TRUE | USE_LOGGING_TRUE | |
BUILD_V2_FALSE | BUILD_V2_FALSE | |
BUILD_V2_TRUE | BUILD_V2_TRUE | |
USE_NETCDF4_FALSE | USE_NETCDF4_FALSE | |
USE_NETCDF4_TRUE | USE_NETCDF4_TRUE | |
BUILD_DLL_FALSE | BUILD_DLL_FALSE | |
BUILD_DLL_TRUE | BUILD_DLL_TRUE | |
EXTRA_EXAMPLE_TESTS_FALSE | EXTRA_EXAMPLE_TESTS_FALSE | |
EXTRA_EXAMPLE_TESTS_TRUE | EXTRA_EXAMPLE_TESTS_TRUE | |
UPPER_CASE_MOD_FALSE | UPPER_CASE_MOD_FALSE | |
UPPER_CASE_MOD_TRUE | UPPER_CASE_MOD_TRUE | |
NMFLAGS | NMFLAGS | |
CPP | CPP | |
LT_SYS_LIBRARY_PATH | ||
OTOOL64 | OTOOL64 | |
OTOOL | OTOOL | |
LIPO | LIPO | |
NMEDIT | NMEDIT | |
DSYMUTIL | DSYMUTIL | |
MANIFEST_TOOL | MANIFEST_TOOL | |
RANLIB | RANLIB | |
ac_ct_AR | ac_ct_AR | |
AR | AR | |
DLLTOOL | DLLTOOL | |
skipping to change at line 697 | skipping to change at line 704 | |
LARGE_FILE_TESTS_FALSE | LARGE_FILE_TESTS_FALSE | |
LARGE_FILE_TESTS_TRUE | LARGE_FILE_TESTS_TRUE | |
MOD_FLAG | MOD_FLAG | |
FCFLAGS_f90 | FCFLAGS_f90 | |
ac_ct_F77 | ac_ct_F77 | |
FFLAGS | FFLAGS | |
F77 | F77 | |
ac_ct_FC | ac_ct_FC | |
FCFLAGS | FCFLAGS | |
FC | FC | |
HAVE_DOT | ||
DOT | ||
DOXYGEN | ||
BUILD_INTERNAL_DOCS | ||
BUILD_DOCS_FALSE | ||
BUILD_DOCS_TRUE | ||
EXTRA_TESTS_FALSE | ||
EXTRA_TESTS_TRUE | ||
am__fastdepCC_FALSE | am__fastdepCC_FALSE | |
am__fastdepCC_TRUE | am__fastdepCC_TRUE | |
CCDEPMODE | CCDEPMODE | |
am__nodep | am__nodep | |
AMDEPBACKSLASH | AMDEPBACKSLASH | |
AMDEP_FALSE | AMDEP_FALSE | |
AMDEP_TRUE | AMDEP_TRUE | |
am__quote | am__quote | |
am__include | am__include | |
DEPDIR | DEPDIR | |
OBJEXT | OBJEXT | |
EXEEXT | EXEEXT | |
ac_ct_CC | ac_ct_CC | |
CPPFLAGS | CPPFLAGS | |
LDFLAGS | LDFLAGS | |
CFLAGS | CFLAGS | |
CC | CC | |
HAVE_DOT | ||
DOT | ||
DOXYGEN | ||
BUILD_INTERNAL_DOCS | ||
BUILD_DOCS_FALSE | ||
BUILD_DOCS_TRUE | ||
EXTRA_TESTS_FALSE | ||
EXTRA_TESTS_TRUE | ||
MAINT | MAINT | |
MAINTAINER_MODE_FALSE | MAINTAINER_MODE_FALSE | |
MAINTAINER_MODE_TRUE | MAINTAINER_MODE_TRUE | |
AM_BACKSLASH | AM_BACKSLASH | |
AM_DEFAULT_VERBOSITY | AM_DEFAULT_VERBOSITY | |
AM_DEFAULT_V | AM_DEFAULT_V | |
AM_V | AM_V | |
am__untar | am__untar | |
am__tar | am__tar | |
AMTAR | AMTAR | |
skipping to change at line 783 | skipping to change at line 790 | |
localedir | localedir | |
libdir | libdir | |
psdir | psdir | |
pdfdir | pdfdir | |
dvidir | dvidir | |
htmldir | htmldir | |
infodir | infodir | |
docdir | docdir | |
oldincludedir | oldincludedir | |
includedir | includedir | |
runstatedir | ||
localstatedir | localstatedir | |
sharedstatedir | sharedstatedir | |
sysconfdir | sysconfdir | |
datadir | datadir | |
datarootdir | datarootdir | |
libexecdir | libexecdir | |
sbindir | sbindir | |
bindir | bindir | |
program_transform_name | program_transform_name | |
prefix | prefix | |
skipping to change at line 807 | skipping to change at line 815 | |
PACKAGE_VERSION | PACKAGE_VERSION | |
PACKAGE_TARNAME | PACKAGE_TARNAME | |
PACKAGE_NAME | PACKAGE_NAME | |
PATH_SEPARATOR | PATH_SEPARATOR | |
SHELL' | SHELL' | |
ac_subst_files='' | ac_subst_files='' | |
ac_user_opts=' | ac_user_opts=' | |
enable_option_checking | enable_option_checking | |
enable_silent_rules | enable_silent_rules | |
enable_maintainer_mode | enable_maintainer_mode | |
enable_dependency_tracking | ||
enable_valgrind_tests | enable_valgrind_tests | |
enable_parallel_tests | enable_parallel_tests | |
enable_extra_tests | enable_extra_tests | |
enable_doxygen | enable_doxygen | |
enable_dot | enable_dot | |
enable_internal_docs | enable_internal_docs | |
enable_dependency_tracking | ||
enable_f03_compiler_check | enable_f03_compiler_check | |
enable_f03 | enable_f03 | |
enable_fortran_type_check | enable_fortran_type_check | |
enable_large_file_tests | enable_large_file_tests | |
enable_benchmarks | enable_benchmarks | |
with_temp_large | with_temp_large | |
enable_shared | enable_shared | |
enable_static | enable_static | |
with_pic | with_pic | |
enable_fast_install | enable_fast_install | |
with_aix_soname | ||
with_gnu_ld | with_gnu_ld | |
with_sysroot | with_sysroot | |
enable_libtool_lock | enable_libtool_lock | |
enable_largefile | enable_largefile | |
enable_extra_example_tests | enable_extra_example_tests | |
enable_dll | enable_dll | |
enable_filter_test | ||
' | ' | |
ac_precious_vars='build_alias | ac_precious_vars='build_alias | |
host_alias | host_alias | |
target_alias | target_alias | |
CC | CC | |
CFLAGS | CFLAGS | |
LDFLAGS | LDFLAGS | |
LIBS | LIBS | |
CPPFLAGS | CPPFLAGS | |
FC | FC | |
FCFLAGS | FCFLAGS | |
F77 | F77 | |
FFLAGS | FFLAGS | |
LT_SYS_LIBRARY_PATH | ||
CPP' | CPP' | |
# Initialize some variables set by options. | # Initialize some variables set by options. | |
ac_init_help= | ac_init_help= | |
ac_init_version=false | ac_init_version=false | |
ac_unrecognized_opts= | ac_unrecognized_opts= | |
ac_unrecognized_sep= | ac_unrecognized_sep= | |
# The variables have the same names as the options, with | # The variables have the same names as the options, with | |
# dashes changed to underlines. | # dashes changed to underlines. | |
cache_file=/dev/null | cache_file=/dev/null | |
skipping to change at line 881 | skipping to change at line 892 | |
# Use braces instead of parens because sh, perl, etc. also accept them. | # Use braces instead of parens because sh, perl, etc. also accept them. | |
# (The list follows the same order as the GNU Coding Standards.) | # (The list follows the same order as the GNU Coding Standards.) | |
bindir='${exec_prefix}/bin' | bindir='${exec_prefix}/bin' | |
sbindir='${exec_prefix}/sbin' | sbindir='${exec_prefix}/sbin' | |
libexecdir='${exec_prefix}/libexec' | libexecdir='${exec_prefix}/libexec' | |
datarootdir='${prefix}/share' | datarootdir='${prefix}/share' | |
datadir='${datarootdir}' | datadir='${datarootdir}' | |
sysconfdir='${prefix}/etc' | sysconfdir='${prefix}/etc' | |
sharedstatedir='${prefix}/com' | sharedstatedir='${prefix}/com' | |
localstatedir='${prefix}/var' | localstatedir='${prefix}/var' | |
runstatedir='${localstatedir}/run' | ||
includedir='${prefix}/include' | includedir='${prefix}/include' | |
oldincludedir='/usr/include' | oldincludedir='/usr/include' | |
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | |
infodir='${datarootdir}/info' | infodir='${datarootdir}/info' | |
htmldir='${docdir}' | htmldir='${docdir}' | |
dvidir='${docdir}' | dvidir='${docdir}' | |
pdfdir='${docdir}' | pdfdir='${docdir}' | |
psdir='${docdir}' | psdir='${docdir}' | |
libdir='${exec_prefix}/lib' | libdir='${exec_prefix}/lib' | |
localedir='${datarootdir}/locale' | localedir='${datarootdir}/locale' | |
skipping to change at line 1133 | skipping to change at line 1145 | |
-psdir | --psdir | --psdi | --psd | --ps) | -psdir | --psdir | --psdi | --psd | --ps) | |
ac_prev=psdir ;; | ac_prev=psdir ;; | |
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
psdir=$ac_optarg ;; | psdir=$ac_optarg ;; | |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
| -silent | --silent | --silen | --sile | --sil) | | -silent | --silent | --silen | --sile | --sil) | |
silent=yes ;; | silent=yes ;; | |
-runstatedir | --runstatedir | --runstatedi | --runstated \ | ||
| --runstate | --runstat | --runsta | --runst | --runs \ | ||
| --run | --ru | --r) | ||
ac_prev=runstatedir ;; | ||
-runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ | ||
| --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ | ||
| --run=* | --ru=* | --r=*) | ||
runstatedir=$ac_optarg ;; | ||
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
ac_prev=sbindir ;; | ac_prev=sbindir ;; | |
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
| --sbi=* | --sb=*) | | --sbi=* | --sb=*) | |
sbindir=$ac_optarg ;; | sbindir=$ac_optarg ;; | |
-sharedstatedir | --sharedstatedir | --sharedstatedi \ | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
| --sharedst | --shareds | --shared | --share | --shar \ | | --sharedst | --shareds | --shared | --share | --shar \ | |
| --sha | --sh) | | --sha | --sh) | |
skipping to change at line 1270 | skipping to change at line 1291 | |
no) ;; | no) ;; | |
fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; | |
*) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opt s" >&2 ;; | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opt s" >&2 ;; | |
esac | esac | |
fi | fi | |
# Check all directory arguments for consistency. | # Check all directory arguments for consistency. | |
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
datadir sysconfdir sharedstatedir localstatedir includedir \ | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
libdir localedir mandir | libdir localedir mandir runstatedir | |
do | do | |
eval ac_val=\$$ac_var | eval ac_val=\$$ac_var | |
# Remove trailing slashes. | # Remove trailing slashes. | |
case $ac_val in | case $ac_val in | |
*/ ) | */ ) | |
ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
eval $ac_var=\$ac_val;; | eval $ac_var=\$ac_val;; | |
esac | esac | |
# Be sure to have absolute directory names. | # Be sure to have absolute directory names. | |
case $ac_val in | case $ac_val in | |
skipping to change at line 1381 | skipping to change at line 1402 | |
eval ac_cv_env_${ac_var}_value=\$${ac_var} | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
done | done | |
# | # | |
# Report the --help message. | # Report the --help message. | |
# | # | |
if test "$ac_init_help" = "long"; then | 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 netCDF-Fortran 4.4.4 to adapt to many kinds of systems. | \`configure' configures netCDF-Fortran 4.4.5 to adapt to many kinds of systems. | |
Usage: $0 [OPTION]... [VAR=VALUE]... | Usage: $0 [OPTION]... [VAR=VALUE]... | |
To assign environment variables (e.g., CC, CFLAGS...), specify them as | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
VAR=VALUE. See below for descriptions of some of the useful variables. | VAR=VALUE. See below for descriptions of some of the useful variables. | |
Defaults for the options are specified in brackets. | Defaults for the options are specified in brackets. | |
Configuration: | Configuration: | |
-h, --help display this help and exit | -h, --help display this help and exit | |
skipping to change at line 1421 | skipping to change at line 1442 | |
For better control, use the options below. | For better control, use the options below. | |
Fine tuning of the installation directories: | Fine tuning of the installation directories: | |
--bindir=DIR user executables [EPREFIX/bin] | --bindir=DIR user executables [EPREFIX/bin] | |
--sbindir=DIR system admin executables [EPREFIX/sbin] | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
--libexecdir=DIR program executables [EPREFIX/libexec] | --libexecdir=DIR program executables [EPREFIX/libexec] | |
--sysconfdir=DIR read-only single-machine data [PREFIX/etc] | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
--localstatedir=DIR modifiable single-machine data [PREFIX/var] | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
--runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] | ||
--libdir=DIR object code libraries [EPREFIX/lib] | --libdir=DIR object code libraries [EPREFIX/lib] | |
--includedir=DIR C header files [PREFIX/include] | --includedir=DIR C header files [PREFIX/include] | |
--oldincludedir=DIR C header files for non-gcc [/usr/include] | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
--datadir=DIR read-only architecture-independent data [DATAROOTDIR] | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
--infodir=DIR info documentation [DATAROOTDIR/info] | --infodir=DIR info documentation [DATAROOTDIR/info] | |
--localedir=DIR locale-dependent data [DATAROOTDIR/locale] | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
--mandir=DIR man documentation [DATAROOTDIR/man] | --mandir=DIR man documentation [DATAROOTDIR/man] | |
--docdir=DIR documentation root [DATAROOTDIR/doc/netcdf-fortran] | --docdir=DIR documentation root [DATAROOTDIR/doc/netcdf-fortran] | |
--htmldir=DIR html documentation [DOCDIR] | --htmldir=DIR html documentation [DOCDIR] | |
skipping to change at line 1452 | skipping to change at line 1474 | |
System types: | System types: | |
--build=BUILD configure for building on BUILD [guessed] | --build=BUILD configure for building on BUILD [guessed] | |
--host=HOST cross-compile to build programs to run on HOST [BUILD] | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
--target=TARGET configure for building compilers for TARGET [HOST] | --target=TARGET configure for building compilers for TARGET [HOST] | |
_ACEOF | _ACEOF | |
fi | 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 netCDF-Fortran 4.4.4:";; | short | recursive ) echo "Configuration of netCDF-Fortran 4.4.5:";; | |
esac | esac | |
cat <<\_ACEOF | cat <<\_ACEOF | |
Optional Features: | Optional Features: | |
--disable-option-checking ignore unrecognized --enable/--with options | --disable-option-checking ignore unrecognized --enable/--with options | |
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
--enable-FEATURE[=ARG] include FEATURE [ARG=yes] | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
--enable-silent-rules less verbose build output (undo: "make V=1") | --enable-silent-rules less verbose build output (undo: "make V=1") | |
--disable-silent-rules verbose build output (undo: "make V=0") | --disable-silent-rules verbose build output (undo: "make V=0") | |
--enable-maintainer-mode | --enable-maintainer-mode | |
enable make rules and dependencies not useful (and | enable make rules and dependencies not useful (and | |
sometimes confusing) to the casual installer | sometimes confusing) to the casual installer | |
--enable-dependency-tracking | ||
do not reject slow dependency extractors | ||
--disable-dependency-tracking | ||
speeds up one-time build | ||
--enable-valgrind-tests build with valgrind-tests (valgrind is required, | --enable-valgrind-tests build with valgrind-tests (valgrind is required, | |
static builds only) | static builds only) | |
--enable-parallel-tests Run extra parallel IO tests. Ignored if netCDF-4 is | --enable-parallel-tests Run extra parallel IO tests. Ignored if netCDF-4 is | |
not enabled, or built on a system without parallel | not enabled, or built on a system without parallel | |
I/O support. | I/O support. | |
--enable-extra-tests run some extra tests that may not pass because of | --enable-extra-tests run some extra tests that may not pass because of | |
known issues | known issues | |
--enable-doxygen Enable generation of documentation with doxygen. | --enable-doxygen Enable generation of documentation with doxygen. | |
--enable-dot Use dot (provided by graphviz) to generate charts | --enable-dot Use dot (provided by graphviz) to generate charts | |
and graphs in the doxygen-based documentation. | and graphs in the doxygen-based documentation. | |
--enable-internal-docs Include documentation of library internals. This is | --enable-internal-docs Include documentation of library internals. This is | |
of interest only to those developing the netCDF | of interest only to those developing the netCDF | |
library. | library. | |
--enable-dependency-tracking | ||
do not reject slow dependency extractors | ||
--disable-dependency-tracking | ||
speeds up one-time build | ||
--disable-f03-compiler-check | --disable-f03-compiler-check | |
disable check of ISO_C_BINDING support in Fortran | disable check of ISO_C_BINDING support in Fortran | |
compiler | compiler | |
--disable-f03 suppress netCDF Fortran 2003 native code | --disable-f03 suppress netCDF Fortran 2003 native code | |
--disable-fortran-type-check | --disable-fortran-type-check | |
cause the Fortran type sizes checks to be skipped | cause the Fortran type sizes checks to be skipped | |
--enable-large-file-tests | --enable-large-file-tests | |
Run tests which create very large data files (~13 GB | Run tests which create very large data files (~13 GB | |
disk space required, but it will be recovered when | disk space required, but it will be recovered when | |
tests are complete). See option --with-temp-large to | tests are complete). See option --with-temp-large to | |
skipping to change at line 1504 | skipping to change at line 1526 | |
--enable-shared[=PKGS] build shared libraries [default=yes] | --enable-shared[=PKGS] build shared libraries [default=yes] | |
--enable-static[=PKGS] build static libraries [default=yes] | --enable-static[=PKGS] build static libraries [default=yes] | |
--enable-fast-install[=PKGS] | --enable-fast-install[=PKGS] | |
optimize for fast installation [default=yes] | optimize for fast installation [default=yes] | |
--disable-libtool-lock avoid locking (might break parallel builds) | --disable-libtool-lock avoid locking (might break parallel builds) | |
--disable-largefile omit support for large files | --disable-largefile omit support for large files | |
--enable-extra-example-tests | --enable-extra-example-tests | |
Run extra example tests; requires GNU sed. Ignored | Run extra example tests; requires GNU sed. Ignored | |
if netCDF-4 is not enabled. | if netCDF-4 is not enabled. | |
--enable-dll build a win32 DLL (only works on mingw) | --enable-dll build a win32 DLL (only works on mingw) | |
--enable-filter-test Run filter tests: requires access to the plugins | ||
directory in a netcdf-c build. | ||
Optional Packages: | Optional Packages: | |
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
--with-temp-large=<directory> | --with-temp-large=<directory> | |
specify directory where large files (i.e. >2 GB) | specify directory where large files (i.e. >2 GB) | |
will be written, if large files tests are run with | will be written, if large files tests are run with | |
--enable-large-file-tests | --enable-large-file-tests | |
--with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use | --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use | |
both] | both] | |
--with-aix-soname=aix|svr4|both | ||
shared library versioning (aka "SONAME") variant to | ||
provide on AIX, [default=aix]. | ||
--with-gnu-ld assume the C compiler uses GNU ld [default=no] | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
--with-sysroot=DIR Search for dependent libraries within DIR | --with-sysroot[=DIR] Search for dependent libraries within DIR (or the | |
(or the compiler's sysroot if not specified). | compiler's sysroot if not specified). | |
Some influential environment variables: | Some influential environment variables: | |
CC C compiler command | CC C compiler command | |
CFLAGS C compiler flags | CFLAGS C compiler flags | |
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
nonstandard directory <lib dir> | nonstandard directory <lib dir> | |
LIBS libraries to pass to the linker, e.g. -l<library> | LIBS libraries to pass to the linker, e.g. -l<library> | |
CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if | |
you have headers in a nonstandard directory <include dir> | you have headers in a nonstandard directory <include dir> | |
FC Fortran compiler command | FC Fortran compiler command | |
FCFLAGS Fortran compiler flags | FCFLAGS Fortran compiler flags | |
F77 Fortran 77 compiler command | F77 Fortran 77 compiler command | |
FFLAGS Fortran 77 compiler flags | FFLAGS Fortran 77 compiler flags | |
LT_SYS_LIBRARY_PATH | ||
User-defined run-time library search path. | ||
CPP C preprocessor | CPP C preprocessor | |
Use these variables to override the choices made by `configure' or to help | Use these variables to override the choices made by `configure' or to help | |
it to find libraries and programs with nonstandard names/locations. | it to find libraries and programs with nonstandard names/locations. | |
Report bugs to <support-netcdf@unidata.ucar.edu>. | Report bugs to <support-netcdf@unidata.ucar.edu>. | |
_ACEOF | _ACEOF | |
ac_status=$? | ac_status=$? | |
fi | fi | |
skipping to change at line 1598 | skipping to change at line 1627 | |
else | else | |
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
fi || ac_status=$? | fi || ac_status=$? | |
cd "$ac_pwd" || { ac_status=$?; break; } | cd "$ac_pwd" || { ac_status=$?; break; } | |
done | done | |
fi | 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 | |
netCDF-Fortran configure 4.4.4 | netCDF-Fortran configure 4.4.5 | |
generated by GNU Autoconf 2.69 | generated by GNU Autoconf 2.69 | |
Copyright (C) 2012 Free Software Foundation, Inc. | Copyright (C) 2012 Free Software Foundation, Inc. | |
This configure script is free software; the Free Software Foundation | This configure script is free software; the Free Software Foundation | |
gives unlimited permission to copy, distribute and modify it. | gives unlimited permission to copy, distribute and modify it. | |
_ACEOF | _ACEOF | |
exit | exit | |
fi | fi | |
## ------------------------ ## | ## ------------------------ ## | |
skipping to change at line 2372 | skipping to change at line 2401 | |
fi | fi | |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
as_fn_set_status $ac_retval | as_fn_set_status $ac_retval | |
} # ac_fn_c_compute_int | } # ac_fn_c_compute_int | |
cat >config.log <<_ACEOF | 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 netCDF-Fortran $as_me 4.4.4, which was | It was created by netCDF-Fortran $as_me 4.4.5, which was | |
generated by GNU Autoconf 2.69. Invocation command line was | generated by GNU Autoconf 2.69. Invocation command line was | |
$ $0 $@ | $ $0 $@ | |
_ACEOF | _ACEOF | |
exec 5>>config.log | exec 5>>config.log | |
{ | { | |
cat <<_ASUNAME | cat <<_ASUNAME | |
## --------- ## | ## --------- ## | |
## Platform. ## | ## Platform. ## | |
skipping to change at line 2718 | skipping to change at line 2747 | |
## -------------------- ## | ## -------------------- ## | |
ac_ext=c | ac_ext=c | |
ac_cpp='$CPP $CPPFLAGS' | ac_cpp='$CPP $CPPFLAGS' | |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ LIBS >&5' | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ LIBS >&5' | |
ac_compiler_gnu=$ac_cv_c_compiler_gnu | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
# Create the VERSION file, which contains the package version from | # Create the VERSION file, which contains the package version from | |
# AC_INIT. | # AC_INIT. | |
echo -n 4.4.4>VERSION | echo -n 4.4.5>VERSION | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: netCDF-Fortran 4.4.4" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: netCDF-Fortran 4.4.5" >&5 | |
$as_echo "$as_me: netCDF-Fortran 4.4.4" >&6;} | $as_echo "$as_me: netCDF-Fortran 4.4.5" >&6;} | |
# Keep libtool macros in an m4 directory. | # Keep libtool macros in an m4 directory. | |
# Find out about the host we're building on. | # Find out about the host we're building on. | |
ac_aux_dir= | ac_aux_dir= | |
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | |
if test -f "$ac_dir/install-sh"; then | if test -f "$ac_dir/install-sh"; then | |
ac_aux_dir=$ac_dir | ac_aux_dir=$ac_dir | |
ac_install_sh="$ac_aux_dir/install-sh -c" | ac_install_sh="$ac_aux_dir/install-sh -c" | |
break | break | |
skipping to change at line 2864 | skipping to change at line 2893 | |
case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
# The aliases save the names the user supplied, while $host etc. | # The aliases save the names the user supplied, while $host etc. | |
# will get canonicalized. | # will get canonicalized. | |
test -n "$target_alias" && | test -n "$target_alias" && | |
test "$program_prefix$program_suffix$program_transform_name" = \ | test "$program_prefix$program_suffix$program_transform_name" = \ | |
NONENONEs,x,x, && | NONENONEs,x,x, && | |
program_prefix=${target_alias}- | program_prefix=${target_alias}- | |
# This call is required by automake. | # This call is required by automake. | |
am__api_version='1.14' | am__api_version='1.15' | |
# Find a good install program. We prefer a C program (faster), | # Find a good install program. We prefer a C program (faster), | |
# so one script is as good as another. But avoid the broken or | # so one script is as good as another. But avoid the broken or | |
# incompatible versions: | # incompatible versions: | |
# SysV /etc/install, /usr/sbin/install | # SysV /etc/install, /usr/sbin/install | |
# SunOS /usr/etc/install | # SunOS /usr/etc/install | |
# IRIX /sbin/install | # IRIX /sbin/install | |
# AIX /bin/install | # AIX /bin/install | |
# AmigaOS /C/install, which installs bootblocks on floppy discs | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
skipping to change at line 3036 | skipping to change at line 3065 | |
test "$program_prefix" != NONE && | test "$program_prefix" != NONE && | |
program_transform_name="s&^&$program_prefix&;$program_transform_name" | program_transform_name="s&^&$program_prefix&;$program_transform_name" | |
# Use a double $ so make ignores it. | # Use a double $ so make ignores it. | |
test "$program_suffix" != NONE && | test "$program_suffix" != NONE && | |
program_transform_name="s&\$&$program_suffix&;$program_transform_name" | program_transform_name="s&\$&$program_suffix&;$program_transform_name" | |
# Double any \ or $. | # Double any \ or $. | |
# By default was `s,x,x', remove it if useless. | # By default was `s,x,x', remove it if useless. | |
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' | |
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
# expand $ac_aux_dir to an absolute path | # Expand $ac_aux_dir to an absolute path. | |
am_aux_dir=`cd $ac_aux_dir && pwd` | am_aux_dir=`cd "$ac_aux_dir" && pwd` | |
if test x"${MISSING+set}" != xset; then | if test x"${MISSING+set}" != xset; then | |
case $am_aux_dir in | case $am_aux_dir in | |
*\ * | *\ *) | *\ * | *\ *) | |
MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
*) | *) | |
MISSING="\${SHELL} $am_aux_dir/missing" ;; | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
esac | esac | |
fi | fi | |
# Use eval to expand $SHELL | # Use eval to expand $SHELL | |
if eval "$MISSING --is-lightweight"; then | if eval "$MISSING --is-lightweight"; then | |
am_missing_run="$MISSING " | am_missing_run="$MISSING " | |
else | else | |
am_missing_run= | am_missing_run= | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 | |
$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} | |
fi | fi | |
if test x"${install_sh}" != xset; then | if test x"${install_sh+set}" != xset; then | |
case $am_aux_dir in | case $am_aux_dir in | |
*\ * | *\ *) | *\ * | *\ *) | |
install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
*) | *) | |
install_sh="\${SHELL} $am_aux_dir/install-sh" | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
esac | esac | |
fi | fi | |
# Installed binaries are usually stripped using 'strip' when the user | # Installed binaries are usually stripped using 'strip' when the user | |
# run "make install-strip". However 'strip' might not be the right | # run "make install-strip". However 'strip' might not be the right | |
skipping to change at line 3347 | skipping to change at line 3376 | |
if test -z "$CYGPATH_W"; then | if test -z "$CYGPATH_W"; then | |
if (cygpath --version) >/dev/null 2>/dev/null; then | if (cygpath --version) >/dev/null 2>/dev/null; then | |
CYGPATH_W='cygpath -w' | CYGPATH_W='cygpath -w' | |
else | else | |
CYGPATH_W=echo | CYGPATH_W=echo | |
fi | fi | |
fi | fi | |
# Define the identity of the package. | # Define the identity of the package. | |
PACKAGE='netcdf-fortran' | PACKAGE='netcdf-fortran' | |
VERSION='4.4.4' | VERSION='4.4.5' | |
cat >>confdefs.h <<_ACEOF | cat >>confdefs.h <<_ACEOF | |
#define PACKAGE "$PACKAGE" | #define PACKAGE "$PACKAGE" | |
_ACEOF | _ACEOF | |
cat >>confdefs.h <<_ACEOF | cat >>confdefs.h <<_ACEOF | |
#define VERSION "$VERSION" | #define VERSION "$VERSION" | |
_ACEOF | _ACEOF | |
# Some tools Automake needs. | # Some tools Automake needs. | |
skipping to change at line 3375 | skipping to change at line 3404 | |
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
# For better backward compatibility. To be removed once Automake 1.9.x | # For better backward compatibility. To be removed once Automake 1.9.x | |
# dies out for good. For more background, see: | # dies out for good. For more background, see: | |
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> | |
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> | |
mkdir_p='$(MKDIR_P)' | mkdir_p='$(MKDIR_P)' | |
# We need awk for the "check" target. The system "awk" is bad on | # We need awk for the "check" target (and possibly the TAP driver). The | |
# some platforms. | # system "awk" is bad on some platforms. | |
# Always define AMTAR for backward compatibility. Yes, it's still used | # Always define AMTAR for backward compatibility. Yes, it's still used | |
# in the wild :-( We should find a proper way to deprecate it ... | # in the wild :-( We should find a proper way to deprecate it ... | |
AMTAR='$${TAR-tar}' | AMTAR='$${TAR-tar}' | |
# We'll loop over all known methods to create a tar archive until one works. | # We'll loop over all known methods to create a tar archive until one works. | |
_am_tools='gnutar pax cpio none' | _am_tools='gnutar pax cpio none' | |
am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' | |
# POSIX will say in a future version that running "rm -f" with no argument | # POSIX will say in a future version that running "rm -f" with no argument | |
skipping to change at line 3454 | skipping to change at line 3483 | |
MAINTAINER_MODE_FALSE= | MAINTAINER_MODE_FALSE= | |
fi | fi | |
MAINT=$MAINTAINER_MODE_TRUE | MAINT=$MAINTAINER_MODE_TRUE | |
# Check for the existence of this file before proceeding. | # Check for the existence of this file before proceeding. | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking user options" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking user options" >&5 | |
$as_echo "$as_me: checking user options" >&6;} | $as_echo "$as_me: checking user options" >&6;} | |
# Does the user want to run extra tests with valgrind? | DEPDIR="${am__leading_dot}deps" | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether extra valgrind tests s | ||
hould be run" >&5 | ||
$as_echo_n "checking whether extra valgrind tests should be run... " >&6; } | ||
# Check whether --enable-valgrind-tests was given. | ||
if test "${enable_valgrind_tests+set}" = set; then : | ||
enableval=$enable_valgrind_tests; | ||
fi | ||
test "x$enable_valgrind_tests" = xyes || enable_valgrind_tests=no | ac_config_commands="$ac_config_commands depfiles" | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_valgrind_tests" >&5 | ||
$as_echo "$enable_valgrind_tests" >&6; } | ||
# Does the user want to run extra parallel tests when parallel netCDF-4 is built | am_make=${MAKE-make} | |
? | cat > confinc << 'END' | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether parallel IO tests shou | am__doit: | |
ld be run" >&5 | @echo this is the am__doit target | |
$as_echo_n "checking whether parallel IO tests should be run... " >&6; } | .PHONY: am__doit | |
# Check whether --enable-parallel-tests was given. | END | |
if test "${enable_parallel_tests+set}" = set; then : | # If we don't find an include directive, just comment out the code. | |
enableval=$enable_parallel_tests; | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $ | |
am_make" >&5 | ||
$as_echo_n "checking for style of include used by $am_make... " >&6; } | ||
am__include="#" | ||
am__quote= | ||
_am_result=none | ||
# First try GNU make style include. | ||
echo "include confinc" > confmf | ||
# Ignore all kinds of additional output from 'make'. | ||
case `$am_make -s -f confmf 2> /dev/null` in #( | ||
*the\ am__doit\ target*) | ||
am__include=include | ||
am__quote= | ||
_am_result=GNU | ||
;; | ||
esac | ||
# Now try BSD make style include. | ||
if test "$am__include" = "#"; then | ||
echo '.include "confinc"' > confmf | ||
case `$am_make -s -f confmf 2> /dev/null` in #( | ||
*the\ am__doit\ target*) | ||
am__include=.include | ||
am__quote="\"" | ||
_am_result=BSD | ||
;; | ||
esac | ||
fi | fi | |
test "x$enable_parallel_tests" = xyes || enable_parallel_tests=no | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_parallel_tests" >&5 | $as_echo "$_am_result" >&6; } | |
$as_echo "$enable_parallel_tests" >&6; } | rm -f confinc confmf | |
# Does the user want to do some extra tests? | # Check whether --enable-dependency-tracking was given. | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netCDF extra tests sho | if test "${enable_dependency_tracking+set}" = set; then : | |
uld be run (developers only)" >&5 | enableval=$enable_dependency_tracking; | |
$as_echo_n "checking whether netCDF extra tests should be run (developers only). | ||
.. " >&6; } | ||
# Check whether --enable-extra-tests was given. | ||
if test "${enable_extra_tests+set}" = set; then : | ||
enableval=$enable_extra_tests; | ||
fi | fi | |
test "x$enable_extra_tests" = xyes || enable_extra_tests=no | if test "x$enable_dependency_tracking" != xno; then | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_extra_tests" >&5 | am_depcomp="$ac_aux_dir/depcomp" | |
$as_echo "$enable_extra_tests" >&6; } | AMDEPBACKSLASH='\' | |
if test "x$enable_extra_tests" = xyes; then | am__nodep='_no' | |
$as_echo "#define EXTRA_TESTS 1" >>confdefs.h | ||
fi | fi | |
if test x$enable_extra_tests = xyes; then | if test "x$enable_dependency_tracking" != xno; then | |
EXTRA_TESTS_TRUE= | AMDEP_TRUE= | |
EXTRA_TESTS_FALSE='#' | AMDEP_FALSE='#' | |
else | else | |
EXTRA_TESTS_TRUE='#' | AMDEP_TRUE='#' | |
EXTRA_TESTS_FALSE= | AMDEP_FALSE= | |
fi | ||
##### | ||
# Determine if we want to enable doxygen-generated documentation. | ||
##### | ||
# Check whether --enable-doxygen was given. | ||
if test "${enable_doxygen+set}" = set; then : | ||
enableval=$enable_doxygen; | ||
fi | fi | |
test "x$enable_doxygen" = xyes || enable_doxygen=no | ac_ext=c | |
if test "x$enable_doxygen" = xyes; then | ac_cpp='$CPP $CPPFLAGS' | |
BUILD_DOCS_TRUE= | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
BUILD_DOCS_FALSE='#' | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ | |
LIBS >&5' | ||
ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
if test -n "$ac_tool_prefix"; then | ||
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program nam | ||
e with args. | ||
set dummy ${ac_tool_prefix}gcc; ac_word=$2 | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
$as_echo_n "checking for $ac_word... " >&6; } | ||
if ${ac_cv_prog_CC+:} false; then : | ||
$as_echo_n "(cached) " >&6 | ||
else | else | |
BUILD_DOCS_TRUE='#' | if test -n "$CC"; then | |
BUILD_DOCS_FALSE= | ac_cv_prog_CC="$CC" # Let the user override the test. | |
fi | else | |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
for as_dir in $PATH | ||
do | ||
IFS=$as_save_IFS | ||
test -z "$as_dir" && as_dir=. | ||
for ac_exec_ext in '' $ac_executable_extensions; do | ||
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
ac_cv_prog_CC="${ac_tool_prefix}gcc" | ||
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > | ||
&5 | ||
break 2 | ||
fi | ||
done | ||
done | ||
IFS=$as_save_IFS | ||
# Does the user want to generate dot-based documentation? | ||
# Check whether --enable-dot was given. | ||
if test "${enable_dot+set}" = set; then : | ||
enableval=$enable_dot; | ||
fi | fi | |
fi | ||
test "x$enable_dot" = xyes || enable_dot=no | CC=$ac_cv_prog_CC | |
if test -n "$CC"; then | ||
# Does the user want to generate internal documentation? | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
# Check whether --enable-internal-docs was given. | $as_echo "$CC" >&6; } | |
if test "${enable_internal_docs+set}" = set; then : | else | |
enableval=$enable_internal_docs; | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
$as_echo "no" >&6; } | ||
fi | fi | |
test "x$enable_internal_docs" = xyes || enable_internal_docs=no | fi | |
BUILD_INTERNAL_DOCS=$enable_internal_docs | if test -z "$ac_cv_prog_CC"; then | |
ac_ct_CC=$CC | ||
# Is doxygen installed? If so, have configure construct the Doxyfile. | # Extract the first word of "gcc", so it can be a program name with args. | |
for ac_prog in doxygen | set dummy gcc; ac_word=$2 | |
do | ||
# Extract the first word of "$ac_prog", so it can be a program name with args. | ||
set dummy $ac_prog; ac_word=$2 | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
$as_echo_n "checking for $ac_word... " >&6; } | $as_echo_n "checking for $ac_word... " >&6; } | |
if ${ac_cv_prog_DOXYGEN+:} false; then : | if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |
else | else | |
if test -n "$DOXYGEN"; then | if test -n "$ac_ct_CC"; then | |
ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test. | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
else | else | |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
for as_dir in $PATH | for as_dir in $PATH | |
do | do | |
IFS=$as_save_IFS | IFS=$as_save_IFS | |
test -z "$as_dir" && as_dir=. | test -z "$as_dir" && as_dir=. | |
for ac_exec_ext in '' $ac_executable_extensions; do | for ac_exec_ext in '' $ac_executable_extensions; do | |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
ac_cv_prog_DOXYGEN="$ac_prog" | ac_cv_prog_ac_ct_CC="gcc" | |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5 | |
break 2 | break 2 | |
fi | fi | |
done | done | |
done | done | |
IFS=$as_save_IFS | IFS=$as_save_IFS | |
fi | fi | |
fi | fi | |
DOXYGEN=$ac_cv_prog_DOXYGEN | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
if test -n "$DOXYGEN"; then | if test -n "$ac_ct_CC"; then | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
$as_echo "$DOXYGEN" >&6; } | $as_echo "$ac_ct_CC" >&6; } | |
else | else | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
$as_echo "no" >&6; } | $as_echo "no" >&6; } | |
fi | fi | |
test -n "$DOXYGEN" && break | if test "x$ac_ct_CC" = x; then | |
done | CC="" | |
else | ||
if test -z "$DOXYGEN"; then | case $cross_compiling:$ac_tool_warned in | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Doxygen not found - documen | yes:) | |
tation will not be built" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed | |
$as_echo "$as_me: WARNING: Doxygen not found - documentation will not be built" | with host triplet" >&5 | |
>&2;} | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2 | |
;} | ||
ac_tool_warned=yes ;; | ||
esac | ||
CC=$ac_ct_CC | ||
fi | ||
else | ||
CC="$ac_cv_prog_CC" | ||
fi | fi | |
# Is graphviz/dot installed? If so, we'll use dot to create | if test -z "$CC"; then | |
# graphs in the documentation. | if test -n "$ac_tool_prefix"; then | |
for ac_prog in dot | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program na | |
do | me with args. | |
# Extract the first word of "$ac_prog", so it can be a program name with args. | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
set dummy $ac_prog; ac_word=$2 | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
$as_echo_n "checking for $ac_word... " >&6; } | $as_echo_n "checking for $ac_word... " >&6; } | |
if ${ac_cv_prog_DOT+:} false; then : | if ${ac_cv_prog_CC+:} false; then : | |
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |
else | else | |
if test -n "$DOT"; then | if test -n "$CC"; then | |
ac_cv_prog_DOT="$DOT" # Let the user override the test. | ac_cv_prog_CC="$CC" # Let the user override the test. | |
else | else | |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
for as_dir in $PATH | for as_dir in $PATH | |
do | do | |
IFS=$as_save_IFS | IFS=$as_save_IFS | |
test -z "$as_dir" && as_dir=. | test -z "$as_dir" && as_dir=. | |
for ac_exec_ext in '' $ac_executable_extensions; do | for ac_exec_ext in '' $ac_executable_extensions; do | |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
ac_cv_prog_DOT="$ac_prog" | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5 | |
break 2 | break 2 | |
fi | fi | |
done | done | |
done | done | |
IFS=$as_save_IFS | IFS=$as_save_IFS | |
fi | fi | |
fi | fi | |
DOT=$ac_cv_prog_DOT | CC=$ac_cv_prog_CC | |
if test -n "$DOT"; then | if test -n "$CC"; then | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
$as_echo "$DOT" >&6; } | $as_echo "$CC" >&6; } | |
else | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
$as_echo "no" >&6; } | ||
fi | ||
test -n "$DOT" && break | ||
done | ||
if test -z "$DOT"; then | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dot not found - will use si | ||
mple charts in documentation" >&5 | ||
$as_echo "$as_me: WARNING: dot not found - will use simple charts in documentati | ||
on" >&2;} | ||
HAVE_DOT=NO | ||
elif test "x$enable_dot" = xno; then | ||
HAVE_DOT=NO | ||
else | ||
HAVE_DOT=YES | ||
fi | ||
# If we have doxygen, and it's enabled, then process the file. | ||
if test "x$enable_doxygen" != xno; then | ||
if test -n "$DOXYGEN"; then | ||
ac_config_files="$ac_config_files docs/Doxyfile" | ||
fi | ||
# Note: the list of files to input to doxygen | ||
# has been moved to docs/Doxyfile.in so | ||
# that make distcheck works correctly. | ||
# Any new inputs should be inserted into | ||
# docs/Doxyfile.in and possibley docs/Makefile.am | ||
fi | ||
##### | ||
# End doxygen-related documentation block. | ||
##### | ||
# Find the C compiler. | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: finding C compiler" >&5 | ||
$as_echo "$as_me: finding C compiler" >&6;} | ||
ac_ext=c | ||
ac_cpp='$CPP $CPPFLAGS' | ||
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ | ||
LIBS >&5' | ||
ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
if test -n "$ac_tool_prefix"; then | ||
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program nam | ||
e with args. | ||
set dummy ${ac_tool_prefix}gcc; ac_word=$2 | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
$as_echo_n "checking for $ac_word... " >&6; } | ||
if ${ac_cv_prog_CC+:} false; then : | ||
$as_echo_n "(cached) " >&6 | ||
else | ||
if test -n "$CC"; then | ||
ac_cv_prog_CC="$CC" # Let the user override the test. | ||
else | ||
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
for as_dir in $PATH | ||
do | ||
IFS=$as_save_IFS | ||
test -z "$as_dir" && as_dir=. | ||
for ac_exec_ext in '' $ac_executable_extensions; do | ||
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
ac_cv_prog_CC="${ac_tool_prefix}gcc" | ||
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > | ||
&5 | ||
break 2 | ||
fi | ||
done | ||
done | ||
IFS=$as_save_IFS | ||
fi | ||
fi | ||
CC=$ac_cv_prog_CC | ||
if test -n "$CC"; then | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
$as_echo "$CC" >&6; } | ||
else | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
$as_echo "no" >&6; } | ||
fi | ||
fi | ||
if test -z "$ac_cv_prog_CC"; then | ||
ac_ct_CC=$CC | ||
# Extract the first word of "gcc", so it can be a program name with args. | ||
set dummy gcc; ac_word=$2 | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
$as_echo_n "checking for $ac_word... " >&6; } | ||
if ${ac_cv_prog_ac_ct_CC+:} false; then : | ||
$as_echo_n "(cached) " >&6 | ||
else | ||
if test -n "$ac_ct_CC"; then | ||
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
else | ||
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
for as_dir in $PATH | ||
do | ||
IFS=$as_save_IFS | ||
test -z "$as_dir" && as_dir=. | ||
for ac_exec_ext in '' $ac_executable_extensions; do | ||
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
ac_cv_prog_ac_ct_CC="gcc" | ||
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > | ||
&5 | ||
break 2 | ||
fi | ||
done | ||
done | ||
IFS=$as_save_IFS | ||
fi | ||
fi | ||
ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
if test -n "$ac_ct_CC"; then | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | ||
$as_echo "$ac_ct_CC" >&6; } | ||
else | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
$as_echo "no" >&6; } | ||
fi | ||
if test "x$ac_ct_CC" = x; then | ||
CC="" | ||
else | ||
case $cross_compiling:$ac_tool_warned in | ||
yes:) | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed | ||
with host triplet" >&5 | ||
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2 | ||
;} | ||
ac_tool_warned=yes ;; | ||
esac | ||
CC=$ac_ct_CC | ||
fi | ||
else | ||
CC="$ac_cv_prog_CC" | ||
fi | ||
if test -z "$CC"; then | ||
if test -n "$ac_tool_prefix"; then | ||
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program na | ||
me with args. | ||
set dummy ${ac_tool_prefix}cc; ac_word=$2 | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
$as_echo_n "checking for $ac_word... " >&6; } | ||
if ${ac_cv_prog_CC+:} false; then : | ||
$as_echo_n "(cached) " >&6 | ||
else | ||
if test -n "$CC"; then | ||
ac_cv_prog_CC="$CC" # Let the user override the test. | ||
else | ||
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
for as_dir in $PATH | ||
do | ||
IFS=$as_save_IFS | ||
test -z "$as_dir" && as_dir=. | ||
for ac_exec_ext in '' $ac_executable_extensions; do | ||
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
ac_cv_prog_CC="${ac_tool_prefix}cc" | ||
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > | ||
&5 | ||
break 2 | ||
fi | ||
done | ||
done | ||
IFS=$as_save_IFS | ||
fi | ||
fi | ||
CC=$ac_cv_prog_CC | ||
if test -n "$CC"; then | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
$as_echo "$CC" >&6; } | ||
else | else | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
$as_echo "no" >&6; } | $as_echo "no" >&6; } | |
fi | fi | |
fi | fi | |
fi | fi | |
if test -z "$CC"; then | if test -z "$CC"; then | |
# Extract the first word of "cc", so it can be a program name with args. | # Extract the first word of "cc", so it can be a program name with args. | |
set dummy cc; ac_word=$2 | set dummy cc; ac_word=$2 | |
skipping to change at line 4498 | skipping to change at line 4384 | |
# A longer-term fix would be to have automake use am__CC in this case, | # A longer-term fix would be to have automake use am__CC in this case, | |
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
CC="$am_aux_dir/compile $CC" | CC="$am_aux_dir/compile $CC" | |
fi | fi | |
ac_ext=c | ac_ext=c | |
ac_cpp='$CPP $CPPFLAGS' | ac_cpp='$CPP $CPPFLAGS' | |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ LIBS >&5' | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ LIBS >&5' | |
ac_compiler_gnu=$ac_cv_c_compiler_gnu | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
DEPDIR="${am__leading_dot}deps" | ||
ac_config_commands="$ac_config_commands depfiles" | ||
am_make=${MAKE-make} | ||
cat > confinc << 'END' | ||
am__doit: | ||
@echo this is the am__doit target | ||
.PHONY: am__doit | ||
END | ||
# If we don't find an include directive, just comment out the code. | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $ | ||
am_make" >&5 | ||
$as_echo_n "checking for style of include used by $am_make... " >&6; } | ||
am__include="#" | ||
am__quote= | ||
_am_result=none | ||
# First try GNU make style include. | ||
echo "include confinc" > confmf | ||
# Ignore all kinds of additional output from 'make'. | ||
case `$am_make -s -f confmf 2> /dev/null` in #( | ||
*the\ am__doit\ target*) | ||
am__include=include | ||
am__quote= | ||
_am_result=GNU | ||
;; | ||
esac | ||
# Now try BSD make style include. | ||
if test "$am__include" = "#"; then | ||
echo '.include "confinc"' > confmf | ||
case `$am_make -s -f confmf 2> /dev/null` in #( | ||
*the\ am__doit\ target*) | ||
am__include=.include | ||
am__quote="\"" | ||
_am_result=BSD | ||
;; | ||
esac | ||
fi | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 | ||
$as_echo "$_am_result" >&6; } | ||
rm -f confinc confmf | ||
# Check whether --enable-dependency-tracking was given. | ||
if test "${enable_dependency_tracking+set}" = set; then : | ||
enableval=$enable_dependency_tracking; | ||
fi | ||
if test "x$enable_dependency_tracking" != xno; then | ||
am_depcomp="$ac_aux_dir/depcomp" | ||
AMDEPBACKSLASH='\' | ||
am__nodep='_no' | ||
fi | ||
if test "x$enable_dependency_tracking" != xno; then | ||
AMDEP_TRUE= | ||
AMDEP_FALSE='#' | ||
else | ||
AMDEP_TRUE='#' | ||
AMDEP_FALSE= | ||
fi | ||
depcc="$CC" am_compiler_list= | depcc="$CC" am_compiler_list= | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >& 5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >& 5 | |
$as_echo_n "checking dependency style of $depcc... " >&6; } | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
if ${am_cv_CC_dependencies_compiler_type+:} false; then : | if ${am_cv_CC_dependencies_compiler_type+:} false; then : | |
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |
else | else | |
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
# We make a subdir and do the tests there. Otherwise we can end up | # We make a subdir and do the tests there. Otherwise we can end up | |
# making bogus files that we don't know about and never remove. For | # making bogus files that we don't know about and never remove. For | |
skipping to change at line 4685 | skipping to change at line 4511 | |
if | if | |
test "x$enable_dependency_tracking" != xno \ | test "x$enable_dependency_tracking" != xno \ | |
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
am__fastdepCC_TRUE= | am__fastdepCC_TRUE= | |
am__fastdepCC_FALSE='#' | am__fastdepCC_FALSE='#' | |
else | else | |
am__fastdepCC_TRUE='#' | am__fastdepCC_TRUE='#' | |
am__fastdepCC_FALSE= | am__fastdepCC_FALSE= | |
fi | fi | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
" >&5 | /* end confdefs.h. */ | |
$as_echo_n "checking for an ANSI C-conforming const... " >&6; } | ||
if ${ac_cv_c_const+:} false; then : | int | |
$as_echo_n "(cached) " >&6 | main () | |
{ | ||
#include <netcdf_meta.h> | ||
#if !defined(NC_RELAX_COORD_BOUND) || NC_RELAX_COORD_BOUND == 0 | ||
choke me | ||
#endif | ||
; | ||
return 0; | ||
} | ||
_ACEOF | ||
if ac_fn_c_try_compile "$LINENO"; then : | ||
nc_relax_coord_bound=yes | ||
else | else | |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | nc_relax_coord_bound=no | |
fi | ||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
if test "x$nc_relax_coord_bound" = xyes; then | ||
$as_echo "#define NF_RELAX_COORD_BOUND 1" >>confdefs.h | ||
fi | ||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
/* end confdefs.h. */ | /* end confdefs.h. */ | |
int | int | |
main () | main () | |
{ | { | |
#ifndef __cplusplus | #include <netcdf_meta.h> | |
/* Ultrix mips cc rejects this sort of thing. */ | #if !defined(NC_HAS_CDF5) || NC_HAS_CDF5 == 0 | |
typedef int charset[2]; | choke me | |
const charset cs = { 0, 0 }; | #endif | |
/* SunOS 4.1.1 cc rejects this. */ | ; | |
char const *const *pcpcc; | return 0; | |
char **ppc; | } | |
/* NEC SVR4.0.2 mips cc rejects this. */ | _ACEOF | |
struct point {int x, y;}; | if ac_fn_c_try_compile "$LINENO"; then : | |
static struct point const zero = {0,0}; | nc_has_cdf5=yes | |
/* AIX XL C 1.02.0.0 rejects this. | else | |
It does not let you subtract one const X* pointer from another in | nc_has_cdf5=no | |
an arm of an if-expression whose if-part is not a constant | fi | |
expression */ | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
const char *g = "string"; | if test "x$nc_has_cdf5" = xyes; then | |
pcpcc = &g + (g ? g-g : 0); | ||
/* HPUX 7.0 cc rejects these. */ | ||
++pcpcc; | ||
ppc = (char**) pcpcc; | ||
pcpcc = (char const *const *) ppc; | ||
{ /* SCO 3.2v4 cc rejects this sort of thing. */ | ||
char tx; | ||
char *t = &tx; | ||
char const *s = 0 ? (char *) 0 : (char const *) 0; | ||
*t++ = 0; | $as_echo "#define ENABLE_CDF5 1" >>confdefs.h | |
if (s) return 0; | ||
} | fi | |
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | ||
int x[] = {25, 17}; | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
const int *foo = &x[0]; | /* end confdefs.h. */ | |
++foo; | ||
} | int | |
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | main () | |
typedef const int *iptr; | { | |
iptr p = 0; | ||
++p; | #include <netcdf_meta.h> | |
} | #if !defined(NC_HAS_PNETCDF) || NC_HAS_PNETCDF == 0 | |
{ /* AIX XL C 1.02.0.0 rejects this sort of thing, saying | choke me | |
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | ||
struct s { int j; const int *ap[3]; } bx; | ||
struct s *b = &bx; b->j = 5; | ||
} | ||
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | ||
const int foo = 10; | ||
if (!foo) return 0; | ||
} | ||
return !cs[0] && !zero.x; | ||
#endif | #endif | |
; | ||
return 0; | ||
} | ||
_ACEOF | ||
if ac_fn_c_try_compile "$LINENO"; then : | ||
nc_has_pnetcdf=yes | ||
else | ||
nc_has_pnetcdf=no | ||
fi | ||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
if test "x$nc_has_pnetcdf" = xyes; then | ||
$as_echo "#define NF_HAS_PNETCDF 1" >>confdefs.h | ||
fi | ||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
/* end confdefs.h. */ | ||
int | ||
main () | ||
{ | ||
#include <netcdf_meta.h> | ||
#if !defined(NC_HAS_PARALLEL4) || NC_HAS_PARALLEL4 == 0 | ||
choke me | ||
#endif | ||
; | ; | |
return 0; | return 0; | |
} | } | |
_ACEOF | _ACEOF | |
if ac_fn_c_try_compile "$LINENO"; then : | if ac_fn_c_try_compile "$LINENO"; then : | |
ac_cv_c_const=yes | nc_has_parallel4=yes | |
else | else | |
ac_cv_c_const=no | nc_has_parallel4=no | |
fi | fi | |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
if test "x$nc_has_parallel4" = xyes; then | ||
$as_echo "#define NF_HAS_PARALLEL4 1" >>confdefs.h | ||
fi | fi | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 | ||
$as_echo "$ac_cv_c_const" >&6; } | ||
if test $ac_cv_c_const = no; then | ||
$as_echo "#define const /**/" >>confdefs.h | # Does the user want to run extra tests with valgrind? | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether extra valgrind tests s | ||
hould be run" >&5 | ||
$as_echo_n "checking whether extra valgrind tests should be run... " >&6; } | ||
# Check whether --enable-valgrind-tests was given. | ||
if test "${enable_valgrind_tests+set}" = set; then : | ||
enableval=$enable_valgrind_tests; | ||
fi | ||
test "x$enable_valgrind_tests" = xyes || enable_valgrind_tests=no | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_valgrind_tests" >&5 | ||
$as_echo "$enable_valgrind_tests" >&6; } | ||
# Does the user want to run extra parallel tests when parallel netCDF-4 is built | ||
? | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether parallel IO tests shou | ||
ld be run" >&5 | ||
$as_echo_n "checking whether parallel IO tests should be run... " >&6; } | ||
# Check whether --enable-parallel-tests was given. | ||
if test "${enable_parallel_tests+set}" = set; then : | ||
enableval=$enable_parallel_tests; | ||
fi | fi | |
# If F03 is set, FC isn't, then set FC to whatever F03 was set | test "x$enable_parallel_tests" = xyes || enable_parallel_tests=no | |
if test "${F03+set}" = set -a "${FC+set}" != set; then | if test "x$nc_has_pnetcdf" = xno -a "x$nc_has_parallel4" = xno ; then | |
FC=$F03 | # paralle I/O is not enabled | |
enable_parallel_tests=no | ||
fi | fi | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_parallel_tests" >&5 | ||
$as_echo "$enable_parallel_tests" >&6; } | ||
# If F90 is set, FC isn't, then set FC to whatever F90 was set to. | # Does the user want to do some extra tests? | |
if test "${F90+set}" = set -a "${FC+set}" != set; then | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netCDF extra tests sho | |
FC=$F90 | uld be run (developers only)" >&5 | |
$as_echo_n "checking whether netCDF extra tests should be run (developers only). | ||
.. " >&6; } | ||
# Check whether --enable-extra-tests was given. | ||
if test "${enable_extra_tests+set}" = set; then : | ||
enableval=$enable_extra_tests; | ||
fi | fi | |
# Find fortran compiler. If FC isn't set after AC_PROG_FC, we couldn't | test "x$enable_extra_tests" = xyes || enable_extra_tests=no | |
# find a fortran compiler. If the user requested the fortran API, and | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_extra_tests" >&5 | |
# has told us not to recover from a missing compiler, then bail out | $as_echo "$enable_extra_tests" >&6; } | |
# right here. | if test "x$enable_extra_tests" = xyes; then | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: finding Fortran compiler" >&5 | ||
$as_echo "$as_me: finding Fortran compiler" >&6;} | $as_echo "#define EXTRA_TESTS 1" >>confdefs.h | |
ac_ext=${ac_fc_srcext-f} | ||
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' | fi | |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest | if test x$enable_extra_tests = xyes; then | |
.$ac_ext $LIBS >&5' | EXTRA_TESTS_TRUE= | |
ac_compiler_gnu=$ac_cv_fc_compiler_gnu | EXTRA_TESTS_FALSE='#' | |
if test -n "$ac_tool_prefix"; then | else | |
for ac_prog in gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 | EXTRA_TESTS_TRUE='#' | |
ftn nagfor xlf90 f90 pgf90 pghpf epcf90 g77 xlf f77 frt pgf77 cf77 fort77 fl32 a | EXTRA_TESTS_FALSE= | |
f77 | fi | |
do | ||
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a progra | ##### | |
m name with args. | # Determine if we want to enable doxygen-generated documentation. | |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ##### | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netCDF documentation s | ||
hould be generated)" >&5 | ||
$as_echo_n "checking whether netCDF documentation should be generated)... " >&6; | ||
} | ||
# Check whether --enable-doxygen was given. | ||
if test "${enable_doxygen+set}" = set; then : | ||
enableval=$enable_doxygen; | ||
fi | ||
test "x$enable_doxygen" = xyes || enable_doxygen=no | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_doxygen" >&5 | ||
$as_echo "$enable_doxygen" >&6; } | ||
if test "x$enable_doxygen" = xyes; then | ||
BUILD_DOCS_TRUE= | ||
BUILD_DOCS_FALSE='#' | ||
else | ||
BUILD_DOCS_TRUE='#' | ||
BUILD_DOCS_FALSE= | ||
fi | ||
# Does the user want to generate dot-based documentation? | ||
# Check whether --enable-dot was given. | ||
if test "${enable_dot+set}" = set; then : | ||
enableval=$enable_dot; | ||
fi | ||
test "x$enable_dot" = xyes || enable_dot=no | ||
# Does the user want to generate internal documentation? | ||
# Check whether --enable-internal-docs was given. | ||
if test "${enable_internal_docs+set}" = set; then : | ||
enableval=$enable_internal_docs; | ||
fi | ||
test "x$enable_internal_docs" = xyes || enable_internal_docs=no | ||
BUILD_INTERNAL_DOCS=$enable_internal_docs | ||
# Is doxygen installed? If so, have configure construct the Doxyfile. | ||
for ac_prog in doxygen | ||
do | ||
# Extract the first word of "$ac_prog", so it can be a program name with args. | ||
set dummy $ac_prog; ac_word=$2 | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
$as_echo_n "checking for $ac_word... " >&6; } | $as_echo_n "checking for $ac_word... " >&6; } | |
if ${ac_cv_prog_FC+:} false; then : | if ${ac_cv_prog_DOXYGEN+:} false; then : | |
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |
else | else | |
if test -n "$FC"; then | if test -n "$DOXYGEN"; then | |
ac_cv_prog_FC="$FC" # Let the user override the test. | ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test. | |
else | else | |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
for as_dir in $PATH | for as_dir in $PATH | |
do | do | |
IFS=$as_save_IFS | IFS=$as_save_IFS | |
test -z "$as_dir" && as_dir=. | test -z "$as_dir" && as_dir=. | |
for ac_exec_ext in '' $ac_executable_extensions; do | for ac_exec_ext in '' $ac_executable_extensions; do | |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
ac_cv_prog_FC="$ac_tool_prefix$ac_prog" | ac_cv_prog_DOXYGEN="$ac_prog" | |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5 | |
break 2 | break 2 | |
fi | fi | |
done | done | |
done | done | |
IFS=$as_save_IFS | IFS=$as_save_IFS | |
fi | fi | |
fi | fi | |
FC=$ac_cv_prog_FC | DOXYGEN=$ac_cv_prog_DOXYGEN | |
if test -n "$FC"; then | if test -n "$DOXYGEN"; then | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5 | |
$as_echo "$FC" >&6; } | $as_echo "$DOXYGEN" >&6; } | |
else | else | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
$as_echo "no" >&6; } | $as_echo "no" >&6; } | |
fi | fi | |
test -n "$FC" && break | test -n "$DOXYGEN" && break | |
done | done | |
if test -z "$DOXYGEN"; then | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Doxygen not found - documen | ||
tation will not be built" >&5 | ||
$as_echo "$as_me: WARNING: Doxygen not found - documentation will not be built" | ||
>&2;} | ||
fi | fi | |
if test -z "$FC"; then | ||
ac_ct_FC=$FC | # Is graphviz/dot installed? If so, we'll use dot to create | |
for ac_prog in gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 | # graphs in the documentation. | |
ftn nagfor xlf90 f90 pgf90 pghpf epcf90 g77 xlf f77 frt pgf77 cf77 fort77 fl32 a | for ac_prog in dot | |
f77 | ||
do | do | |
# Extract the first word of "$ac_prog", so it can be a program name with args. | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
set dummy $ac_prog; ac_word=$2 | set dummy $ac_prog; ac_word=$2 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
$as_echo_n "checking for $ac_word... " >&6; } | $as_echo_n "checking for $ac_word... " >&6; } | |
if ${ac_cv_prog_ac_ct_FC+:} false; then : | if ${ac_cv_prog_DOT+:} false; then : | |
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |
else | else | |
if test -n "$ac_ct_FC"; then | if test -n "$DOT"; then | |
ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test. | ac_cv_prog_DOT="$DOT" # Let the user override the test. | |
else | else | |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
for as_dir in $PATH | for as_dir in $PATH | |
do | do | |
IFS=$as_save_IFS | IFS=$as_save_IFS | |
test -z "$as_dir" && as_dir=. | test -z "$as_dir" && as_dir=. | |
for ac_exec_ext in '' $ac_executable_extensions; do | for ac_exec_ext in '' $ac_executable_extensions; do | |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
ac_cv_prog_ac_ct_FC="$ac_prog" | ac_cv_prog_DOT="$ac_prog" | |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5 | |
break 2 | break 2 | |
fi | fi | |
done | done | |
done | done | |
IFS=$as_save_IFS | IFS=$as_save_IFS | |
fi | fi | |
fi | fi | |
ac_ct_FC=$ac_cv_prog_ac_ct_FC | DOT=$ac_cv_prog_DOT | |
if test -n "$ac_ct_FC"; then | if test -n "$DOT"; then | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5 | |
$as_echo "$ac_ct_FC" >&6; } | $as_echo "$DOT" >&6; } | |
else | else | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
$as_echo "no" >&6; } | $as_echo "no" >&6; } | |
fi | fi | |
test -n "$ac_ct_FC" && break | test -n "$DOT" && break | |
done | done | |
if test "x$ac_ct_FC" = x; then | if test -z "$DOT"; then | |
FC="" | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dot not found - will use si | |
else | mple charts in documentation" >&5 | |
case $cross_compiling:$ac_tool_warned in | $as_echo "$as_me: WARNING: dot not found - will use simple charts in documentati | |
yes:) | on" >&2;} | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed | HAVE_DOT=NO | |
with host triplet" >&5 | elif test "x$enable_dot" = xno; then | |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2 | HAVE_DOT=NO | |
;} | else | |
ac_tool_warned=yes ;; | HAVE_DOT=YES | |
esac | ||
FC=$ac_ct_FC | ||
fi | ||
fi | fi | |
# If we have doxygen, and it's enabled, then process the file. | ||
if test "x$enable_doxygen" != xno; then | ||
if test -n "$DOXYGEN"; then | ||
# Provide some information about the compiler. | ac_config_files="$ac_config_files docs/Doxyfile" | |
$as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >& | ||
5 | ||
set X $ac_compile | ||
ac_compiler=$2 | ||
for ac_option in --version -v -V -qversion; do | ||
{ { ac_try="$ac_compiler $ac_option >&5" | ||
case "(($ac_try" in | ||
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
*) ac_try_echo=$ac_try;; | ||
esac | ||
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
$as_echo "$ac_try_echo"; } >&5 | ||
(eval "$ac_compiler $ac_option >&5") 2>conftest.err | ||
ac_status=$? | ||
if test -s conftest.err; then | ||
sed '10a\ | ||
... rest of stderr output deleted ... | ||
10q' conftest.err >conftest.er1 | ||
cat conftest.er1 >&5 | ||
fi | ||
rm -f conftest.er1 conftest.err | ||
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
test $ac_status = 0; } | ||
done | ||
rm -f a.out | ||
# If we don't use `.F' as extension, the preprocessor is not run on the | ||
# input file. (Note that this only needs to work for GNU compilers.) | ||
ac_save_ext=$ac_ext | ||
ac_ext=F | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU F | ||
ortran compiler" >&5 | ||
$as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; } | ||
if ${ac_cv_fc_compiler_gnu+:} false; then : | ||
$as_echo_n "(cached) " >&6 | ||
else | ||
cat > conftest.$ac_ext <<_ACEOF | ||
program main | ||
#ifndef __GNUC__ | ||
choke me | ||
#endif | ||
end | ||
_ACEOF | ||
if ac_fn_fc_try_compile "$LINENO"; then : | ||
ac_compiler_gnu=yes | ||
else | ||
ac_compiler_gnu=no | ||
fi | ||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
ac_cv_fc_compiler_gnu=$ac_compiler_gnu | ||
fi | ||
# Note: the list of files to input to doxygen | ||
# has been moved to docs/Doxyfile.in so | ||
# that make distcheck works correctly. | ||
# Any new inputs should be inserted into | ||
# docs/Doxyfile.in and possibley docs/Makefile.am | ||
fi | fi | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5 | ||
$as_echo "$ac_cv_fc_compiler_gnu" >&6; } | ||
ac_ext=$ac_save_ext | ||
ac_test_FCFLAGS=${FCFLAGS+set} | ||
ac_save_FCFLAGS=$FCFLAGS | ||
FCFLAGS= | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5 | ||
$as_echo_n "checking whether $FC accepts -g... " >&6; } | ||
if ${ac_cv_prog_fc_g+:} false; then : | ||
$as_echo_n "(cached) " >&6 | ||
else | ||
FCFLAGS=-g | ||
cat > conftest.$ac_ext <<_ACEOF | ||
program main | ||
end | ##### | |
_ACEOF | # End doxygen-related documentation block. | |
if ac_fn_fc_try_compile "$LINENO"; then : | ##### | |
ac_cv_prog_fc_g=yes | ||
else | ||
ac_cv_prog_fc_g=no | ||
fi | ||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
fi | # Find the C compiler. | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: finding C compiler" >&5 | |
$as_echo "$ac_cv_prog_fc_g" >&6; } | $as_echo "$as_me: finding C compiler" >&6;} | |
if test "$ac_test_FCFLAGS" = set; then | ||
FCFLAGS=$ac_save_FCFLAGS | ||
elif test $ac_cv_prog_fc_g = yes; then | ||
if test "x$ac_cv_fc_compiler_gnu" = xyes; then | ||
FCFLAGS="-g -O2" | ||
else | ||
FCFLAGS="-g" | ||
fi | ||
else | ||
if test "x$ac_cv_fc_compiler_gnu" = xyes; then | ||
FCFLAGS="-O2" | ||
else | ||
FCFLAGS= | ||
fi | ||
fi | ||
if test $ac_compiler_gnu = yes; then | ||
GFC=yes | ||
else | ||
GFC= | ||
fi | ||
ac_ext=c | ac_ext=c | |
ac_cpp='$CPP $CPPFLAGS' | ac_cpp='$CPP $CPPFLAGS' | |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ LIBS >&5' | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ LIBS >&5' | |
ac_compiler_gnu=$ac_cv_c_compiler_gnu | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ac_ext=f | ||
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' | ||
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
ac_compiler_gnu=$ac_cv_f77_compiler_gnu | ||
if test -n "$ac_tool_prefix"; then | if test -n "$ac_tool_prefix"; then | |
for ac_prog in $FC | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program nam | |
do | e with args. | |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a progra | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
m name with args. | ||
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
$as_echo_n "checking for $ac_word... " >&6; } | $as_echo_n "checking for $ac_word... " >&6; } | |
if ${ac_cv_prog_F77+:} false; then : | if ${ac_cv_prog_CC+:} false; then : | |
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |
else | else | |
if test -n "$F77"; then | if test -n "$CC"; then | |
ac_cv_prog_F77="$F77" # Let the user override the test. | ac_cv_prog_CC="$CC" # Let the user override the test. | |
else | else | |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
for as_dir in $PATH | for as_dir in $PATH | |
do | do | |
IFS=$as_save_IFS | IFS=$as_save_IFS | |
test -z "$as_dir" && as_dir=. | test -z "$as_dir" && as_dir=. | |
for ac_exec_ext in '' $ac_executable_extensions; do | for ac_exec_ext in '' $ac_executable_extensions; do | |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
ac_cv_prog_F77="$ac_tool_prefix$ac_prog" | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5 | |
break 2 | break 2 | |
fi | fi | |
done | done | |
done | done | |
IFS=$as_save_IFS | IFS=$as_save_IFS | |
fi | fi | |
fi | fi | |
F77=$ac_cv_prog_F77 | CC=$ac_cv_prog_CC | |
if test -n "$F77"; then | if test -n "$CC"; then | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
$as_echo "$F77" >&6; } | $as_echo "$CC" >&6; } | |
else | else | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
$as_echo "no" >&6; } | $as_echo "no" >&6; } | |
fi | fi | |
test -n "$F77" && break | ||
done | ||
fi | fi | |
if test -z "$F77"; then | if test -z "$ac_cv_prog_CC"; then | |
ac_ct_F77=$F77 | ac_ct_CC=$CC | |
for ac_prog in $FC | # Extract the first word of "gcc", so it can be a program name with args. | |
do | set dummy gcc; ac_word=$2 | |
# Extract the first word of "$ac_prog", so it can be a program name with args. | ||
set dummy $ac_prog; ac_word=$2 | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
$as_echo_n "checking for $ac_word... " >&6; } | $as_echo_n "checking for $ac_word... " >&6; } | |
if ${ac_cv_prog_ac_ct_F77+:} false; then : | if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |
else | else | |
if test -n "$ac_ct_F77"; then | if test -n "$ac_ct_CC"; then | |
ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
else | else | |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
for as_dir in $PATH | for as_dir in $PATH | |
do | do | |
IFS=$as_save_IFS | IFS=$as_save_IFS | |
test -z "$as_dir" && as_dir=. | test -z "$as_dir" && as_dir=. | |
for ac_exec_ext in '' $ac_executable_extensions; do | for ac_exec_ext in '' $ac_executable_extensions; do | |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
ac_cv_prog_ac_ct_F77="$ac_prog" | ac_cv_prog_ac_ct_CC="gcc" | |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5 | |
break 2 | break 2 | |
fi | fi | |
done | done | |
done | done | |
IFS=$as_save_IFS | IFS=$as_save_IFS | |
fi | fi | |
fi | fi | |
ac_ct_F77=$ac_cv_prog_ac_ct_F77 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
if test -n "$ac_ct_F77"; then | if test -n "$ac_ct_CC"; then | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
$as_echo "$ac_ct_F77" >&6; } | $as_echo "$ac_ct_CC" >&6; } | |
else | else | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
$as_echo "no" >&6; } | $as_echo "no" >&6; } | |
fi | fi | |
test -n "$ac_ct_F77" && break | if test "x$ac_ct_CC" = x; then | |
done | CC="" | |
if test "x$ac_ct_F77" = x; then | ||
F77="" | ||
else | else | |
case $cross_compiling:$ac_tool_warned in | case $cross_compiling:$ac_tool_warned in | |
yes:) | yes:) | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2 ;} | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2 ;} | |
ac_tool_warned=yes ;; | ac_tool_warned=yes ;; | |
esac | esac | |
F77=$ac_ct_F77 | CC=$ac_ct_CC | |
fi | fi | |
else | ||
CC="$ac_cv_prog_CC" | ||
fi | fi | |
# Provide some information about the compiler. | if test -z "$CC"; then | |
$as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" | if test -n "$ac_tool_prefix"; then | |
>&5 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program na | |
set X $ac_compile | me with args. | |
ac_compiler=$2 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
for ac_option in --version -v -V -qversion; do | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
{ { ac_try="$ac_compiler $ac_option >&5" | $as_echo_n "checking for $ac_word... " >&6; } | |
case "(($ac_try" in | if ${ac_cv_prog_CC+:} false; then : | |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
*) ac_try_echo=$ac_try;; | ||
esac | ||
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
$as_echo "$ac_try_echo"; } >&5 | ||
(eval "$ac_compiler $ac_option >&5") 2>conftest.err | ||
ac_status=$? | ||
if test -s conftest.err; then | ||
sed '10a\ | ||
... rest of stderr output deleted ... | ||
10q' conftest.err >conftest.er1 | ||
cat conftest.er1 >&5 | ||
fi | ||
rm -f conftest.er1 conftest.err | ||
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
test $ac_status = 0; } | ||
done | ||
rm -f a.out | ||
# If we don't use `.F' as extension, the preprocessor is not run on the | ||
# input file. (Note that this only needs to work for GNU compilers.) | ||
ac_save_ext=$ac_ext | ||
ac_ext=F | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU F | ||
ortran 77 compiler" >&5 | ||
$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; | ||
} | ||
if ${ac_cv_f77_compiler_gnu+:} false; then : | ||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |
else | else | |
cat > conftest.$ac_ext <<_ACEOF | if test -n "$CC"; then | |
program main | ac_cv_prog_CC="$CC" # Let the user override the test. | |
#ifndef __GNUC__ | else | |
choke me | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
#endif | for as_dir in $PATH | |
do | ||
IFS=$as_save_IFS | ||
test -z "$as_dir" && as_dir=. | ||
for ac_exec_ext in '' $ac_executable_extensions; do | ||
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
ac_cv_prog_CC="${ac_tool_prefix}cc" | ||
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > | ||
&5 | ||
break 2 | ||
fi | ||
done | ||
done | ||
IFS=$as_save_IFS | ||
end | fi | |
_ACEOF | fi | |
if ac_fn_f77_try_compile "$LINENO"; then : | CC=$ac_cv_prog_CC | |
ac_compiler_gnu=yes | if test -n "$CC"; then | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
$as_echo "$CC" >&6; } | ||
else | else | |
ac_compiler_gnu=no | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
$as_echo "no" >&6; } | ||
fi | fi | |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
ac_cv_f77_compiler_gnu=$ac_compiler_gnu | ||
fi | ||
fi | fi | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5 | if test -z "$CC"; then | |
$as_echo "$ac_cv_f77_compiler_gnu" >&6; } | # Extract the first word of "cc", so it can be a program name with args. | |
ac_ext=$ac_save_ext | set dummy cc; ac_word=$2 | |
ac_test_FFLAGS=${FFLAGS+set} | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
ac_save_FFLAGS=$FFLAGS | $as_echo_n "checking for $ac_word... " >&6; } | |
FFLAGS= | if ${ac_cv_prog_CC+:} false; then : | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5 | ||
$as_echo_n "checking whether $F77 accepts -g... " >&6; } | ||
if ${ac_cv_prog_f77_g+:} false; then : | ||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |
else | else | |
FFLAGS=-g | if test -n "$CC"; then | |
cat > conftest.$ac_ext <<_ACEOF | ac_cv_prog_CC="$CC" # Let the user override the test. | |
program main | else | |
ac_prog_rejected=no | ||
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
for as_dir in $PATH | ||
do | ||
IFS=$as_save_IFS | ||
test -z "$as_dir" && as_dir=. | ||
for ac_exec_ext in '' $ac_executable_extensions; do | ||
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | ||
ac_prog_rejected=yes | ||
continue | ||
fi | ||
ac_cv_prog_CC="cc" | ||
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > | ||
&5 | ||
break 2 | ||
fi | ||
done | ||
done | ||
IFS=$as_save_IFS | ||
end | if test $ac_prog_rejected = yes; then | |
_ACEOF | # We found a bogon in the path, so make sure we never use it. | |
if ac_fn_f77_try_compile "$LINENO"; then : | set dummy $ac_cv_prog_CC | |
ac_cv_prog_f77_g=yes | shift | |
if test $# != 0; then | ||
# We chose a different compiler from the bogus one. | ||
# However, it has the same basename, so the bogon will be chosen | ||
# first if we set CC to just the basename; use the full file name. | ||
shift | ||
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | ||
fi | ||
fi | ||
fi | ||
fi | ||
CC=$ac_cv_prog_CC | ||
if test -n "$CC"; then | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
$as_echo "$CC" >&6; } | ||
else | else | |
ac_cv_prog_f77_g=no | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
$as_echo "no" >&6; } | ||
fi | fi | |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
fi | fi | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5 | if test -z "$CC"; then | |
$as_echo "$ac_cv_prog_f77_g" >&6; } | if test -n "$ac_tool_prefix"; then | |
if test "$ac_test_FFLAGS" = set; then | for ac_prog in cl.exe | |
FFLAGS=$ac_save_FFLAGS | do | |
elif test $ac_cv_prog_f77_g = yes; then | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a progra | |
if test "x$ac_cv_f77_compiler_gnu" = xyes; then | m name with args. | |
FFLAGS="-g -O2" | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
else | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
FFLAGS="-g" | $as_echo_n "checking for $ac_word... " >&6; } | |
fi | if ${ac_cv_prog_CC+:} false; then : | |
$as_echo_n "(cached) " >&6 | ||
else | else | |
if test "x$ac_cv_f77_compiler_gnu" = xyes; then | if test -n "$CC"; then | |
FFLAGS="-O2" | ac_cv_prog_CC="$CC" # Let the user override the test. | |
else | else | |
FFLAGS= | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
for as_dir in $PATH | ||
do | ||
IFS=$as_save_IFS | ||
test -z "$as_dir" && as_dir=. | ||
for ac_exec_ext in '' $ac_executable_extensions; do | ||
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | ||
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > | ||
&5 | ||
break 2 | ||
fi | fi | |
fi | done | |
done | ||
IFS=$as_save_IFS | ||
if test $ac_compiler_gnu = yes; then | ||
G77=yes | ||
else | ||
G77= | ||
fi | fi | |
ac_ext=c | ||
ac_cpp='$CPP $CPPFLAGS' | ||
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ | ||
LIBS >&5' | ||
ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
# If we couldn't find an F90 compiler, deal with it. | ||
if test "${FC+set}" = set && test "x$FC" = x; then | ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
as_fn_error $? "Can't find F90 compiler. | ||
See \`config.log' for more details" "$LINENO" 5; } | ||
fi | fi | |
CC=$ac_cv_prog_CC | ||
# Set the default fortran builds; default is to build f03 | if test -n "$CC"; then | |
nc_build_f90=no | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
nc_build_f03=yes | $as_echo "$CC" >&6; } | |
else | ||
# Does the user want to test for Fortran 2003 compiler. | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
# Added to get around NAG evaluation compiler error turning off F03 | $as_echo "no" >&6; } | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Fortran compiler is ch | ||
ecked for ISO_C_BINDING support" >&5 | ||
$as_echo_n "checking whether Fortran compiler is checked for ISO_C_BINDING suppo | ||
rt... " >&6; } | ||
# Check whether --enable-f03-compiler-check was given. | ||
if test "${enable_f03_compiler_check+set}" = set; then : | ||
enableval=$enable_f03_compiler_check; | ||
fi | fi | |
test "x$enable_f03_compiler_check" = xno || enable_f03_compiler_check=yes | test -n "$CC" && break | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_f03_compiler_check" >&5 | done | |
$as_echo "$enable_f03_compiler_check" >&6; } | fi | |
if test -z "$CC"; then | ||
# next check to see if the Fortran compiler will support | ac_ct_CC=$CC | |
# ISO_C_BINDING | for ac_prog in cl.exe | |
nc_iso_c_binding=yes | do | |
# Extract the first word of "$ac_prog", so it can be a program name with args. | ||
# Some f90 compilers change the case of the mod file names. Others | set dummy $ac_prog; ac_word=$2 | |
# require special flags to be set to deal with .f90 files. Find out | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
# about this compiler. | $as_echo_n "checking for $ac_word... " >&6; } | |
ac_ext=${ac_fc_srcext-f} | if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' | ||
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest | ||
.$ac_ext $LIBS >&5' | ||
ac_compiler_gnu=$ac_cv_fc_compiler_gnu | ||
ac_ext=${ac_fc_srcext-f} | ||
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' | ||
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest | ||
.$ac_ext $LIBS >&5' | ||
ac_compiler_gnu=$ac_cv_fc_compiler_gnu | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran flag to compile .f | ||
90 files" >&5 | ||
$as_echo_n "checking for Fortran flag to compile .f90 files... " >&6; } | ||
if ${ac_cv_fc_srcext_f90+:} false; then : | ||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |
else | else | |
ac_ext=f90 | if test -n "$ac_ct_CC"; then | |
ac_fcflags_srcext_save=$ac_fcflags_srcext | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
ac_fcflags_srcext= | else | |
ac_cv_fc_srcext_f90=unknown | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
case $ac_ext in #( | for as_dir in $PATH | |
[fF]77) ac_try=f77;; #( | do | |
*) ac_try=f95;; | IFS=$as_save_IFS | |
esac | test -z "$as_dir" && as_dir=. | |
for ac_flag in none -qsuffix=f=f90 -Tf "-x $ac_try"; do | for ac_exec_ext in '' $ac_executable_extensions; do | |
test "x$ac_flag" != xnone && ac_fcflags_srcext="$ac_flag" | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
cat > conftest.$ac_ext <<_ACEOF | ac_cv_prog_ac_ct_CC="$ac_prog" | |
program main | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > | |
&5 | ||
end | break 2 | |
_ACEOF | fi | |
if ac_fn_fc_try_compile "$LINENO"; then : | ||
ac_cv_fc_srcext_f90=$ac_flag; break | ||
fi | ||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
done | done | |
rm -f conftest.$ac_objext conftest.f90 | done | |
ac_fcflags_srcext=$ac_fcflags_srcext_save | IFS=$as_save_IFS | |
fi | fi | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_srcext_f90" >&5 | fi | |
$as_echo "$ac_cv_fc_srcext_f90" >&6; } | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
if test "x$ac_cv_fc_srcext_f90" = xunknown; then | if test -n "$ac_ct_CC"; then | |
as_fn_error $? "Fortran could not compile .f90 files" "$LINENO" 5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
$as_echo "$ac_ct_CC" >&6; } | ||
else | else | |
ac_fc_srcext=f90 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
if test "x$ac_cv_fc_srcext_f90" = xnone; then | $as_echo "no" >&6; } | |
ac_fcflags_srcext="" | fi | |
FCFLAGS_f90="" | ||
test -n "$ac_ct_CC" && break | ||
done | ||
if test "x$ac_ct_CC" = x; then | ||
CC="" | ||
else | else | |
ac_fcflags_srcext=$ac_cv_fc_srcext_f90 | case $cross_compiling:$ac_tool_warned in | |
FCFLAGS_f90=$ac_cv_fc_srcext_f90 | yes:) | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed | ||
with host triplet" >&5 | ||
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2 | ||
;} | ||
ac_tool_warned=yes ;; | ||
esac | ||
CC=$ac_ct_CC | ||
fi | fi | |
fi | ||
fi | fi | |
ac_ext=${ac_fc_srcext-f} | ||
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' | ||
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest | ||
.$ac_ext $LIBS >&5' | ||
ac_compiler_gnu=$ac_cv_fc_compiler_gnu | ||
ac_ext=c | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd' | |
ac_cpp='$CPP $CPPFLAGS' | :" >&5 | |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ | as_fn_error $? "no acceptable C compiler found in \$PATH | |
LIBS >&5' | See \`config.log' for more details" "$LINENO" 5; } | |
ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking fortran 90 modules inclusion f | # Provide some information about the compiler. | |
lag" >&5 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
$as_echo_n "checking fortran 90 modules inclusion flag... " >&6; } | set X $ac_compile | |
if ${ax_cv_f90_modflag+:} false; then : | ac_compiler=$2 | |
for ac_option in --version -v -V -qversion; do | ||
{ { ac_try="$ac_compiler $ac_option >&5" | ||
case "(($ac_try" in | ||
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
*) ac_try_echo=$ac_try;; | ||
esac | ||
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
$as_echo "$ac_try_echo"; } >&5 | ||
(eval "$ac_compiler $ac_option >&5") 2>conftest.err | ||
ac_status=$? | ||
if test -s conftest.err; then | ||
sed '10a\ | ||
... rest of stderr output deleted ... | ||
10q' conftest.err >conftest.er1 | ||
cat conftest.er1 >&5 | ||
fi | ||
rm -f conftest.er1 conftest.err | ||
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
test $ac_status = 0; } | ||
done | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C | ||
compiler" >&5 | ||
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | ||
if ${ac_cv_c_compiler_gnu+:} false; then : | ||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |
else | else | |
ac_ext=${ac_fc_srcext-f} | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' | /* end confdefs.h. */ | |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest | ||
.$ac_ext $LIBS >&5' | ||
ac_compiler_gnu=$ac_cv_fc_compiler_gnu | ||
i=0 | int | |
while test \( -f tmpdir_$i \) -o \( -d tmpdir_$i \) ; do | main () | |
i=`expr $i + 1` | { | |
done | #ifndef __GNUC__ | |
mkdir tmpdir_$i | choke me | |
cd tmpdir_$i | #endif | |
cat > conftest.$ac_ext <<_ACEOF | ||
module conftest_module | ||
contains | ||
subroutine conftest_routine | ||
write(*,'(a)') 'gotcha!' | ||
end subroutine conftest_routine | ||
end module conftest_module | ||
; | ||
return 0; | ||
} | ||
_ACEOF | _ACEOF | |
if ac_fn_fc_try_compile "$LINENO"; then : | if ac_fn_c_try_compile "$LINENO"; then : | |
ac_compiler_gnu=yes | ||
else | ||
ac_compiler_gnu=no | ||
fi | fi | |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
cd .. | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
ax_cv_f90_modflag="not found" | ||
for ax_flag in "-I" "-M" "-p"; do | ||
if test "$ax_cv_f90_modflag" = "not found" ; then | ||
ax_save_FCFLAGS="$FCFLAGS" | ||
FCFLAGS="$ax_save_FCFLAGS ${ax_flag}tmpdir_$i" | ||
cat > conftest.$ac_ext <<_ACEOF | ||
program conftest_program | ||
use conftest_module | ||
call conftest_routine | ||
end program conftest_program | ||
_ACEOF | ||
if ac_fn_fc_try_compile "$LINENO"; then : | ||
ax_cv_f90_modflag="$ax_flag" | ||
fi | ||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
FCFLAGS="$ax_save_FCFLAGS" | ||
fi | ||
done | ||
rm -fr tmpdir_$i | ||
if test "$ax_flag" = "not found" ; then | ||
as_fn_error $? "unable to find compiler flag for modules inclusion" "$LINENO" | ||
5 | ||
fi | fi | |
ac_ext=c | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
ac_cpp='$CPP $CPPFLAGS' | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | if test $ac_compiler_gnu = yes; then | |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ | GCC=yes | |
LIBS >&5' | else | |
ac_compiler_gnu=$ac_cv_c_compiler_gnu | GCC= | |
fi | fi | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_f90_modflag" >&5 | ac_test_CFLAGS=${CFLAGS+set} | |
$as_echo "$ax_cv_f90_modflag" >&6; } | ac_save_CFLAGS=$CFLAGS | |
MOD_FLAG=${ax_cv_f90_modflag} | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
$as_echo_n "checking whether $CC accepts -g... " >&6; } | ||
if test "x$enable_f03_compiler_check" = xyes; then | if ${ac_cv_prog_cc_g+:} false; then : | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran compiler supports | $as_echo_n "(cached) " >&6 | |
Fortran 2003 ISO_C_BINDING" >&5 | else | |
$as_echo_n "checking if Fortran compiler supports Fortran 2003 ISO_C_BINDING... | ac_save_c_werror_flag=$ac_c_werror_flag | |
" >&6; } | ac_c_werror_flag=yes | |
cat <<EOF >conftest.f90 | ac_cv_prog_cc_g=no | |
module conftest_module | CFLAGS="-g" | |
USE ISO_C_BINDING | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
end module conftest_module | /* end confdefs.h. */ | |
EOF | ||
doit='$FC -c ${FCFLAGS} ${FCFLAGS_f90} conftest.f90' | ||
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$doit\""; } >&5 | ||
(eval $doit) 2>&5 | ||
ac_status=$? | ||
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
test $ac_status = 0; }; then | ||
nc_iso_c_binding=yes | ||
else | ||
nc_iso_c_binding=no | ||
fi | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $nc_iso_c_binding" >&5 | ||
$as_echo "$nc_iso_c_binding" >&6; } | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran compiler supports | int | |
Fortran 2008 ISO_FORTRAN_ENV additions" >&5 | main () | |
$as_echo_n "checking if Fortran compiler supports Fortran 2008 ISO_FORTRAN_ENV a | { | |
dditions... " >&6; } | ||
cat <<EOF >conftest.f90 | ||
Program test | ||
USE ISO_FORTRAN_ENV, ONLY: REAL32, REAL64, INT8, INT16, INT32, INT64 | ||
End Program | ||
EOF | ||
doit='$FC -c ${FCFLAGS} ${FCFLAGS_f90} conftest.f90' | ||
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$doit\""; } >&5 | ||
(eval $doit) 2>&5 | ||
ac_status=$? | ||
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
test $ac_status = 0; }; then | ||
nc_f2008_is0_env_additions=yes | ||
$as_echo "#define HAVE_F2008 1" >>confdefs.h | ; | |
return 0; | ||
} | ||
_ACEOF | ||
if ac_fn_c_try_compile "$LINENO"; then : | ||
ac_cv_prog_cc_g=yes | ||
else | ||
CFLAGS="" | ||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
/* end confdefs.h. */ | ||
else | int | |
nc_f2008_is0_env_additions=no | main () | |
fi | { | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $nc_f2008_is0_env_additions" | ||
>&5 | ||
$as_echo "$nc_f2008_is0_env_additions" >&6; } | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran compiler supports | ; | |
TS29113 standard extension" >&5 | return 0; | |
$as_echo_n "checking if Fortran compiler supports TS29113 standard extension... | } | |
" >&6; } | _ACEOF | |
cat <<EOF >conftest.f90 | if ac_fn_c_try_compile "$LINENO"; then : | |
Program test | ||
USE ISO_C_BINDING, ONLY: C_PTRDIFF_T | ||
End Program | ||
EOF | ||
doit='$FC -c ${FCFLAGS} ${FCFLAGS_f90} conftest.f90' | ||
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$doit\""; } >&5 | ||
(eval $doit) 2>&5 | ||
ac_status=$? | ||
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
test $ac_status = 0; }; then | ||
nc_ts29113_support=yes | ||
$as_echo "#define HAVE_TS29113_SUPPORT 1" >>confdefs.h | else | |
ac_c_werror_flag=$ac_save_c_werror_flag | ||
CFLAGS="-g" | ||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
/* end confdefs.h. */ | ||
else | int | |
nc_ts29113_support=no | main () | |
fi | { | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $nc_ts29113_support" >&5 | ||
$as_echo "$nc_ts29113_support" >&6; } | ||
if test "x$nc_iso_c_binding" = xno; then | ; | |
if test "x$enable_compiler_recover" = xyes; then | return 0; | |
nc_build_f90=yes | } | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ISO_C_BINDING not suppor | _ACEOF | |
ted - defaulting to F90 interfaces" >&5 | if ac_fn_c_try_compile "$LINENO"; then : | |
$as_echo "$as_me: WARNING: ISO_C_BINDING not supported - defaulting to F90 inter | ac_cv_prog_cc_g=yes | |
faces" >&2;} | ||
else | ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
as_fn_error $? "Can't use build F03 interfaces and cannot do compiler recovery | ||
See \`config.log' for more details" "$LINENO" 5; } | ||
fi | ||
fi | ||
fi | fi | |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
## Do we want to use the fortran 90 wrappers instead of 2003 native code? | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether F03 native code is des | ||
ired" >&5 | ||
$as_echo_n "checking whether F03 native code is desired... " >&6; } | ||
# Check whether --enable-f03 was given. | ||
if test "${enable_f03+set}" = set; then : | ||
enableval=$enable_f03; | ||
fi | fi | |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
test "x$enable_f03" = xno || enable_f03=yes | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_f03" >&5 | ||
$as_echo "$enable_f03" >&6; } | ||
if test "x$enable_f03" = xyes ; then nc_build_f03=yes; fi | ||
# Decide on f90 versus 2003 | ||
if test "x$nc_iso_c_binding" = xno; then | ||
#Cannot build f03 native code | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: Fortran 2003 interface not supported; | ||
Using fortran 90 interface" >&5 | ||
$as_echo "$as_me: Fortran 2003 interface not supported; Using fortran 90 interfa | ||
ce" >&6;} | ||
nc_build_f90=yes | ||
fi | fi | |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
# Guarantee build state; f90 currently overrides f03 | ac_c_werror_flag=$ac_save_c_werror_flag | |
if test "x$nc_build_f90" = xyes ; then | ||
nc_build_f03=no | ||
else | ||
nc_build_f03=yes | ||
fi | fi | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | ||
# Does the user want to check into fortran type information? | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fortran type sizes sho | if test "$ac_test_CFLAGS" = set; then | |
uld be checked" >&5 | CFLAGS=$ac_save_CFLAGS | |
$as_echo_n "checking whether fortran type sizes should be checked... " >&6; } | elif test $ac_cv_prog_cc_g = yes; then | |
# Check whether --enable-fortran-type-check was given. | if test "$GCC" = yes; then | |
if test "${enable_fortran_type_check+set}" = set; then : | CFLAGS="-g -O2" | |
enableval=$enable_fortran_type_check; | else | |
fi | CFLAGS="-g" | |
fi | ||
test "x$enable_fortran_type_check" = xno || enable_fortran_type_check=yes | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_fortran_type_check" >&5 | ||
$as_echo "$enable_fortran_type_check" >&6; } | ||
# Does the user want to run tests for large files (> 2GiB)? | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether large file (> 2GB) tes | ||
ts should be run" >&5 | ||
$as_echo_n "checking whether large file (> 2GB) tests should be run... " >&6; } | ||
# Check whether --enable-large-file-tests was given. | ||
if test "${enable_large_file_tests+set}" = set; then : | ||
enableval=$enable_large_file_tests; | ||
fi | ||
test "x$enable_large_file_tests" = xyes || enable_large_file_tests=no | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_large_file_tests" >&5 | ||
$as_echo "$enable_large_file_tests" >&6; } | ||
if test x$enable_large_file_tests = xyes; then | ||
LARGE_FILE_TESTS_TRUE= | ||
LARGE_FILE_TESTS_FALSE='#' | ||
else | else | |
LARGE_FILE_TESTS_TRUE='#' | if test "$GCC" = yes; then | |
LARGE_FILE_TESTS_FALSE= | CFLAGS="-O2" | |
fi | else | |
CFLAGS= | ||
if test "x$enable_large_file_tests" = xyes; then | fi | |
$as_echo "#define LARGE_FILE_TESTS 1" >>confdefs.h | ||
fi | ||
# Does the user want to run benchmarks? | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether benchmarks should be r | ||
un (experimental)" >&5 | ||
$as_echo_n "checking whether benchmarks should be run (experimental)... " >&6; } | ||
# Check whether --enable-benchmarks was given. | ||
if test "${enable_benchmarks+set}" = set; then : | ||
enableval=$enable_benchmarks; | ||
fi | fi | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C | ||
test "x$enable_benchmarks" = xyes || enable_benchmarks=no | 89" >&5 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_benchmarks" >&5 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
$as_echo "$enable_benchmarks" >&6; } | if ${ac_cv_prog_cc_c89+:} false; then : | |
if test x$enable_benchmarks = xyes; then | $as_echo_n "(cached) " >&6 | |
BUILD_BENCHMARKS_TRUE= | ||
BUILD_BENCHMARKS_FALSE='#' | ||
else | else | |
BUILD_BENCHMARKS_TRUE='#' | ac_cv_prog_cc_c89=no | |
BUILD_BENCHMARKS_FALSE= | ac_save_CC=$CC | |
fi | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
/* end confdefs.h. */ | ||
# If the env. variable TEMP_LARGE is set, or if | #include <stdarg.h> | |
# --with-temp-large=<directory>, use it as a place for the large | #include <stdio.h> | |
# (i.e. > 2 GiB) files created during the large file testing. | struct stat; | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to put large temp files | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
if large file tests are run" >&5 | struct buf { int x; }; | |
$as_echo_n "checking where to put large temp files if large file tests are run.. | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
. " >&6; } | static char *e (p, i) | |
char **p; | ||
# Check whether --with-temp-large was given. | int i; | |
if test "${with_temp_large+set}" = set; then : | { | |
withval=$with_temp_large; TEMP_LARGE=$with_temp_large | return p[i]; | |
fi | } | |
static char *f (char * (*g) (char **, int), char **p, ...) | ||
TEMP_LARGE=${TEMP_LARGE-.} | { | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEMP_LARGE" >&5 | char *s; | |
$as_echo "$TEMP_LARGE" >&6; } | va_list v; | |
#AC_SUBST(TEMP_LARGE) | va_start (v,p); | |
s = g (p, va_arg (v,int)); | ||
cat >>confdefs.h <<_ACEOF | va_end (v); | |
#define TEMP_LARGE "$TEMP_LARGE" | return s; | |
_ACEOF | } | |
# Turn off building old F77 interfaces if nc_build_f03 is still yes | ||
test "x$nc_build_f03" = xyes && nc_build_f77=no | ||
if test "x$nc_build_f90" = xno; then | ||
F90= | ||
# If F77 is set, and FC isn't, then set FC to whatever F77 was set to. | ||
if test x${F77+set} = xset -a x${FC+set} = x; then : | ||
FC=$F77 | ||
fi | ||
fi | ||
# See if the fortran 90 build is desired. If so, set some stuff | ||
if test "x$nc_build_f90" = xyes; then | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: setting up Fortran 90" >&5 | ||
$as_echo "$as_me: setting up Fortran 90" >&6;} | ||
if test "${F90+set}" != set; then | ||
F90=$FC | ||
fi | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what FC is set to" >&5 | ||
$as_echo_n "checking what FC is set to... " >&6; } | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5 | ||
$as_echo "$FC" >&6; } | ||
if test "x$nc_build_f03" = xno; then | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
# Some f90 compilers change the case of the mod file names. Others | function prototypes and stuff, but not '\xHH' hex character constants. | |
# require special flags to be set to deal with .f90 files. Find out | These don't provoke an error unfortunately, instead are silently treated | |
# about this compiler. | as 'x'. The following induces an error, until -std is added to get | |
ac_ext=${ac_fc_srcext-f} | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' | array size at least. It's necessary to write '\x00'==0 to get something | |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest | that's true only with -std. */ | |
.$ac_ext $LIBS >&5' | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
ac_compiler_gnu=$ac_cv_fc_compiler_gnu | ||
ac_ext=${ac_fc_srcext-f} | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' | inside strings and character constants. */ | |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest | #define FOO(x) 'x' | |
.$ac_ext $LIBS >&5' | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
ac_compiler_gnu=$ac_cv_fc_compiler_gnu | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran flag to compile .f | ||
90 files" >&5 | ||
$as_echo_n "checking for Fortran flag to compile .f90 files... " >&6; } | ||
if ${ac_cv_fc_srcext_f90+:} false; then : | ||
$as_echo_n "(cached) " >&6 | ||
else | ||
ac_ext=f90 | ||
ac_fcflags_srcext_save=$ac_fcflags_srcext | ||
ac_fcflags_srcext= | ||
ac_cv_fc_srcext_f90=unknown | ||
case $ac_ext in #( | ||
[fF]77) ac_try=f77;; #( | ||
*) ac_try=f95;; | ||
esac | ||
for ac_flag in none -qsuffix=f=f90 -Tf "-x $ac_try"; do | ||
test "x$ac_flag" != xnone && ac_fcflags_srcext="$ac_flag" | ||
cat > conftest.$ac_ext <<_ACEOF | ||
program main | ||
end | int test (int i, double x); | |
struct s1 {int (*f) (int a);}; | ||
struct s2 {int (*f) (double a);}; | ||
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, i | ||
nt); | ||
int argc; | ||
char **argv; | ||
int | ||
main () | ||
{ | ||
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | ||
; | ||
return 0; | ||
} | ||
_ACEOF | _ACEOF | |
if ac_fn_fc_try_compile "$LINENO"; then : | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
ac_cv_fc_srcext_f90=$ac_flag; break | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
do | ||
CC="$ac_save_CC $ac_arg" | ||
if ac_fn_c_try_compile "$LINENO"; then : | ||
ac_cv_prog_cc_c89=$ac_arg | ||
fi | fi | |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | rm -f core conftest.err conftest.$ac_objext | |
test "x$ac_cv_prog_cc_c89" != "xno" && break | ||
done | done | |
rm -f conftest.$ac_objext conftest.f90 | rm -f conftest.$ac_ext | |
ac_fcflags_srcext=$ac_fcflags_srcext_save | CC=$ac_save_CC | |
fi | fi | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_srcext_f90" >&5 | # AC_CACHE_VAL | |
$as_echo "$ac_cv_fc_srcext_f90" >&6; } | case "x$ac_cv_prog_cc_c89" in | |
if test "x$ac_cv_fc_srcext_f90" = xunknown; then | x) | |
as_fn_error $? "Fortran could not compile .f90 files" "$LINENO" 5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
else | $as_echo "none needed" >&6; } ;; | |
ac_fc_srcext=f90 | xno) | |
if test "x$ac_cv_fc_srcext_f90" = xnone; then | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
ac_fcflags_srcext="" | $as_echo "unsupported" >&6; } ;; | |
FCFLAGS_f90="" | *) | |
else | CC="$CC $ac_cv_prog_cc_c89" | |
ac_fcflags_srcext=$ac_cv_fc_srcext_f90 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
FCFLAGS_f90=$ac_cv_fc_srcext_f90 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
fi | esac | |
if test "x$ac_cv_prog_cc_c89" != xno; then : | ||
fi | fi | |
ac_ext=${ac_fc_srcext-f} | ||
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' | ||
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest | ||
.$ac_ext $LIBS >&5' | ||
ac_compiler_gnu=$ac_cv_fc_compiler_gnu | ||
ac_ext=c | ac_ext=c | |
ac_cpp='$CPP $CPPFLAGS' | ac_cpp='$CPP $CPPFLAGS' | |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ LIBS >&5' | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ LIBS >&5' | |
ac_compiler_gnu=$ac_cv_c_compiler_gnu | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking fortran 90 modules inclusion f | ac_ext=c | |
lag" >&5 | ac_cpp='$CPP $CPPFLAGS' | |
$as_echo_n "checking fortran 90 modules inclusion flag... " >&6; } | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
if ${ax_cv_f90_modflag+:} false; then : | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ | |
LIBS >&5' | ||
ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and | ||
-o together" >&5 | ||
$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } | ||
if ${am_cv_prog_cc_c_o+:} false; then : | ||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |
else | else | |
ac_ext=${ac_fc_srcext-f} | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' | /* end confdefs.h. */ | |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest | ||
.$ac_ext $LIBS >&5' | ||
ac_compiler_gnu=$ac_cv_fc_compiler_gnu | ||
i=0 | int | |
while test \( -f tmpdir_$i \) -o \( -d tmpdir_$i \) ; do | main () | |
i=`expr $i + 1` | { | |
done | ||
mkdir tmpdir_$i | ||
cd tmpdir_$i | ||
cat > conftest.$ac_ext <<_ACEOF | ||
module conftest_module | ||
contains | ||
subroutine conftest_routine | ||
write(*,'(a)') 'gotcha!' | ||
end subroutine conftest_routine | ||
end module conftest_module | ||
_ACEOF | ||
if ac_fn_fc_try_compile "$LINENO"; then : | ||
fi | ||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
cd .. | ||
ax_cv_f90_modflag="not found" | ||
for ax_flag in "-I" "-M" "-p"; do | ||
if test "$ax_cv_f90_modflag" = "not found" ; then | ||
ax_save_FCFLAGS="$FCFLAGS" | ||
FCFLAGS="$ax_save_FCFLAGS ${ax_flag}tmpdir_$i" | ||
cat > conftest.$ac_ext <<_ACEOF | ||
program conftest_program | ||
use conftest_module | ||
call conftest_routine | ||
end program conftest_program | ||
; | ||
return 0; | ||
} | ||
_ACEOF | _ACEOF | |
if ac_fn_fc_try_compile "$LINENO"; then : | # Make sure it works both with $CC and with simple cc. | |
ax_cv_f90_modflag="$ax_flag" | # Following AC_PROG_CC_C_O, we do the test twice because some | |
# compilers refuse to overwrite an existing .o file with -o, | ||
# though they will create one. | ||
am_cv_prog_cc_c_o=yes | ||
for am_i in 1 2; do | ||
if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" | ||
>&5 | ||
($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 | ||
ac_status=$? | ||
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
(exit $ac_status); } \ | ||
&& test -f conftest2.$ac_objext; then | ||
: OK | ||
else | ||
am_cv_prog_cc_c_o=no | ||
break | ||
fi | ||
done | ||
rm -f core conftest* | ||
unset am_i | ||
fi | fi | |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 | |
FCFLAGS="$ax_save_FCFLAGS" | $as_echo "$am_cv_prog_cc_c_o" >&6; } | |
fi | if test "$am_cv_prog_cc_c_o" != yes; then | |
done | # Losing compiler, so override with the script. | |
rm -fr tmpdir_$i | # FIXME: It is wrong to rewrite CC. | |
if test "$ax_flag" = "not found" ; then | # But if we don't then we get into trouble of one sort or another. | |
as_fn_error $? "unable to find compiler flag for modules inclusion" "$LINENO" | # A longer-term fix would be to have automake use am__CC in this case, | |
5 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
CC="$am_aux_dir/compile $CC" | ||
fi | fi | |
ac_ext=c | ac_ext=c | |
ac_cpp='$CPP $CPPFLAGS' | ac_cpp='$CPP $CPPFLAGS' | |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ LIBS >&5' | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ LIBS >&5' | |
ac_compiler_gnu=$ac_cv_c_compiler_gnu | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
fi | depcc="$CC" am_compiler_list= | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_f90_modflag" >&5 | ||
$as_echo "$ax_cv_f90_modflag" >&6; } | ||
MOD_FLAG=${ax_cv_f90_modflag} | ||
fi | ||
# Set the FCLIBS flag to help with shared libraries. | ||
# AC_FC_LIBRARY_LDFLAGS | ||
# AC_F77_LIBRARY_LDFLAGS | ||
fi | ||
if test "x$nc_build_f03" = xyes; then | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >& | |
BUILD_F03_TRUE= | 5 | |
BUILD_F03_FALSE='#' | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
if ${am_cv_CC_dependencies_compiler_type+:} false; then : | ||
$as_echo_n "(cached) " >&6 | ||
else | else | |
BUILD_F03_TRUE='#' | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
BUILD_F03_FALSE= | # We make a subdir and do the tests there. Otherwise we can end up | |
fi | # making bogus files that we don't know about and never remove. For | |
# instance it was reported that on HP-UX the gcc test will end up | ||
# Set up libtool. | # making a dummy file named 'D' -- because '-MD' means "put the output | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: setting up libtool" >&5 | # in D". | |
$as_echo "$as_me: setting up libtool" >&6;} | rm -rf conftest.dir | |
mkdir conftest.dir | ||
case `pwd` in | # Copy depcomp to subdir because otherwise we won't find it if we're | |
*\ * | *\ *) | # using a relative directory. | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well | cp "$am_depcomp" conftest.dir | |
with whitespace in \`pwd\`" >&5 | cd conftest.dir | |
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\` | # We will build objects and dependencies in a subdirectory because | |
" >&2;} ;; | # it helps to detect inapplicable dependency modes. For instance | |
esac | # both Tru64's cc and ICC support -MD to output dependencies as a | |
# side effect of compilation, but ICC will put the dependencies in | ||
macro_version='2.4.2' | # the current directory while Tru64 will put them in the object | |
macro_revision='1.3337' | # directory. | |
mkdir sub | ||
ltmain="$ac_aux_dir/ltmain.sh" | ||
# Backslashify metacharacters that are still active within | ||
# double-quoted strings. | ||
sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | ||
# Same as above, but do not quote variable references. | am_cv_CC_dependencies_compiler_type=none | |
double_quote_subst='s/\(["`\\]\)/\\\1/g' | if test "$am_compiler_list" = ""; then | |
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | ||
fi | ||
am__universal=false | ||
case " $depcc " in #( | ||
*\ -arch\ *\ -arch\ *) am__universal=true ;; | ||
esac | ||
# Sed substitution to delay expansion of an escaped shell variable in a | for depmode in $am_compiler_list; do | |
# double_quote_subst'ed string. | # Setup a source with many dependencies, because some compilers | |
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | # like to wrap large dependency lists on column 80 (with \), and | |
# we should not choose a depcomp mode which is confused by this. | ||
# | ||
# We need to recreate these files for each test, as the compiler may | ||
# overwrite some of them when testing with obscure command lines. | ||
# This happens at least with the AIX C compiler. | ||
: > sub/conftest.c | ||
for i in 1 2 3 4 5 6; do | ||
echo '#include "conftst'$i'.h"' >> sub/conftest.c | ||
# Using ": > sub/conftst$i.h" creates only sub/conftst1.h with | ||
# Solaris 10 /bin/sh. | ||
echo '/* dummy */' > sub/conftst$i.h | ||
done | ||
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | ||
# Sed substitution to delay expansion of an escaped single quote. | # We check with '-c' and '-o' for the sake of the "dashmstdout" | |
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | # mode. It turns out that the SunPro C++ compiler does not properly | |
# handle '-M -o', and we need to detect this. Also, some Intel | ||
# versions had trouble with output in subdirs. | ||
am__obj=sub/conftest.${OBJEXT-o} | ||
am__minus_obj="-o $am__obj" | ||
case $depmode in | ||
gcc) | ||
# This depmode causes a compiler race in universal mode. | ||
test "$am__universal" = false || continue | ||
;; | ||
nosideeffect) | ||
# After this tag, mechanisms are not by side-effect, so they'll | ||
# only be used when explicitly requested. | ||
if test "x$enable_dependency_tracking" = xyes; then | ||
continue | ||
else | ||
break | ||
fi | ||
;; | ||
msvc7 | msvc7msys | msvisualcpp | msvcmsys) | ||
# This compiler won't grok '-c -o', but also, the minuso test has | ||
# not run yet. These depmodes are late enough in the game, and | ||
# so weak that their functioning should not be impacted. | ||
am__obj=conftest.${OBJEXT-o} | ||
am__minus_obj= | ||
;; | ||
none) break ;; | ||
esac | ||
if depmode=$depmode \ | ||
source=sub/conftest.c object=$am__obj \ | ||
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | ||
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | ||
>/dev/null 2>conftest.err && | ||
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | ||
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | ||
grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | ||
${MAKE-make} -s -f confmf > /dev/null 2>&1; then | ||
# icc doesn't choke on unknown options, it will just issue warnings | ||
# or remarks (even with -Werror). So we grep stderr for any message | ||
# that says an option was ignored or not supported. | ||
# When given -MP, icc 7.0 and 7.1 complain thusly: | ||
# icc: Command line warning: ignoring option '-M'; no argument required | ||
# The diagnosis changed in icc 8.0: | ||
# icc: Command line remark: option '-MP' not supported | ||
if (grep 'ignoring option' conftest.err || | ||
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | ||
am_cv_CC_dependencies_compiler_type=$depmode | ||
break | ||
fi | ||
fi | ||
done | ||
# Sed substitution to avoid accidental globbing in evaled expressions | cd .. | |
no_glob_subst='s/\*/\\\*/g' | rm -rf conftest.dir | |
else | ||
am_cv_CC_dependencies_compiler_type=none | ||
fi | ||
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ | fi | |
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler | |
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | _type" >&5 | |
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 | if | |
$as_echo_n "checking how to print strings... " >&6; } | test "x$enable_dependency_tracking" != xno \ | |
# Test print first, because it will be a builtin if present. | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ | am__fastdepCC_TRUE= | |
test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | am__fastdepCC_FALSE='#' | |
ECHO='print -r --' | ||
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | ||
ECHO='printf %s\n' | ||
else | else | |
# Use this function as a fallback that always works. | am__fastdepCC_TRUE='#' | |
func_fallback_echo () | am__fastdepCC_FALSE= | |
{ | ||
eval 'cat <<_LTECHO_EOF | ||
$1 | ||
_LTECHO_EOF' | ||
} | ||
ECHO='func_fallback_echo' | ||
fi | fi | |
# func_echo_all arg... | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const | |
# Invoke $ECHO with all args, space-separated. | " >&5 | |
func_echo_all () | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | |
{ | if ${ac_cv_c_const+:} false; then : | |
$ECHO "" | ||
} | ||
case "$ECHO" in | ||
printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 | ||
$as_echo "printf" >&6; } ;; | ||
print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 | ||
$as_echo "print -r" >&6; } ;; | ||
*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 | ||
$as_echo "cat" >&6; } ;; | ||
esac | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not trunca | ||
te output" >&5 | ||
$as_echo_n "checking for a sed that does not truncate output... " >&6; } | ||
if ${ac_cv_path_SED+:} false; then : | ||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |
else | else | |
ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbb | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
bbbbbbbbbbbbb/ | /* end confdefs.h. */ | |
for ac_i in 1 2 3 4 5 6 7; do | ||
ac_script="$ac_script$as_nl$ac_script" | ||
done | ||
echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | ||
{ ac_script=; unset ac_script;} | ||
if test -z "$SED"; then | ||
ac_path_SED_found=false | ||
# Loop through the user's path and test for each of PROGNAME-LIST | ||
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
for as_dir in $PATH | ||
do | ||
IFS=$as_save_IFS | ||
test -z "$as_dir" && as_dir=. | ||
for ac_prog in sed gsed; do | ||
for ac_exec_ext in '' $ac_executable_extensions; do | ||
ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | ||
as_fn_executable_p "$ac_path_SED" || continue | ||
# Check for GNU ac_path_SED and select it if it is found. | ||
# Check for GNU $ac_path_SED | ||
case `"$ac_path_SED" --version 2>&1` in | ||
*GNU*) | ||
ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | ||
*) | ||
ac_count=0 | ||
$as_echo_n 0123456789 >"conftest.in" | ||
while : | ||
do | ||
cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
mv "conftest.tmp" "conftest.in" | ||
cp "conftest.in" "conftest.nl" | ||
$as_echo '' >> "conftest.nl" | ||
"$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null | | ||
| break | ||
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
as_fn_arith $ac_count + 1 && ac_count=$as_val | ||
if test $ac_count -gt ${ac_path_SED_max-0}; then | ||
# Best one so far, save it but keep looking for a better one | ||
ac_cv_path_SED="$ac_path_SED" | ||
ac_path_SED_max=$ac_count | ||
fi | ||
# 10*(2^10) chars as input seems more than enough | ||
test $ac_count -gt 10 && break | ||
done | ||
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
esac | ||
$ac_path_SED_found && break 3 | int | |
done | main () | |
done | { | |
done | ||
IFS=$as_save_IFS | #ifndef __cplusplus | |
if test -z "$ac_cv_path_SED"; then | /* Ultrix mips cc rejects this sort of thing. */ | |
as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 | typedef int charset[2]; | |
fi | const charset cs = { 0, 0 }; | |
/* SunOS 4.1.1 cc rejects this. */ | ||
char const *const *pcpcc; | ||
char **ppc; | ||
/* NEC SVR4.0.2 mips cc rejects this. */ | ||
struct point {int x, y;}; | ||
static struct point const zero = {0,0}; | ||
/* AIX XL C 1.02.0.0 rejects this. | ||
It does not let you subtract one const X* pointer from another in | ||
an arm of an if-expression whose if-part is not a constant | ||
expression */ | ||
const char *g = "string"; | ||
pcpcc = &g + (g ? g-g : 0); | ||
/* HPUX 7.0 cc rejects these. */ | ||
++pcpcc; | ||
ppc = (char**) pcpcc; | ||
pcpcc = (char const *const *) ppc; | ||
{ /* SCO 3.2v4 cc rejects this sort of thing. */ | ||
char tx; | ||
char *t = &tx; | ||
char const *s = 0 ? (char *) 0 : (char const *) 0; | ||
*t++ = 0; | ||
if (s) return 0; | ||
} | ||
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | ||
int x[] = {25, 17}; | ||
const int *foo = &x[0]; | ||
++foo; | ||
} | ||
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | ||
typedef const int *iptr; | ||
iptr p = 0; | ||
++p; | ||
} | ||
{ /* AIX XL C 1.02.0.0 rejects this sort of thing, saying | ||
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | ||
struct s { int j; const int *ap[3]; } bx; | ||
struct s *b = &bx; b->j = 5; | ||
} | ||
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | ||
const int foo = 10; | ||
if (!foo) return 0; | ||
} | ||
return !cs[0] && !zero.x; | ||
#endif | ||
; | ||
return 0; | ||
} | ||
_ACEOF | ||
if ac_fn_c_try_compile "$LINENO"; then : | ||
ac_cv_c_const=yes | ||
else | else | |
ac_cv_path_SED=$SED | ac_cv_c_const=no | |
fi | ||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
fi | fi | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 | ||
$as_echo "$ac_cv_c_const" >&6; } | ||
if test $ac_cv_c_const = no; then | ||
$as_echo "#define const /**/" >>confdefs.h | ||
fi | fi | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | ||
$as_echo "$ac_cv_path_SED" >&6; } | ||
SED="$ac_cv_path_SED" | ||
rm -f conftest.sed | ||
test -z "$SED" && SED=sed | # If F03 is set, FC isn't, then set FC to whatever F03 was set | |
Xsed="$SED -e 1s/^X//" | if test "${F03+set}" = set -a "${FC+set}" != set; then | |
FC=$F03 | ||
fi | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lin | # If F90 is set, FC isn't, then set FC to whatever F90 was set to. | |
es and -e" >&5 | if test "${F90+set}" = set -a "${FC+set}" != set; then | |
$as_echo_n "checking for grep that handles long lines and -e... " >&6; } | FC=$F90 | |
if ${ac_cv_path_GREP+:} false; then : | fi | |
# Find fortran compiler. If FC isn't set after AC_PROG_FC, we couldn't | ||
# find a fortran compiler. If the user requested the fortran API, and | ||
# has told us not to recover from a missing compiler, then bail out | ||
# right here. | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: finding Fortran compiler" >&5 | ||
$as_echo "$as_me: finding Fortran compiler" >&6;} | ||
ac_ext=${ac_fc_srcext-f} | ||
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' | ||
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest | ||
.$ac_ext $LIBS >&5' | ||
ac_compiler_gnu=$ac_cv_fc_compiler_gnu | ||
if test -n "$ac_tool_prefix"; then | ||
for ac_prog in gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 | ||
ftn nagfor xlf90 f90 pgf90 pghpf epcf90 g77 xlf f77 frt pgf77 cf77 fort77 fl32 a | ||
f77 | ||
do | ||
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a progra | ||
m name with args. | ||
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
$as_echo_n "checking for $ac_word... " >&6; } | ||
if ${ac_cv_prog_FC+:} false; then : | ||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |
else | else | |
if test -z "$GREP"; then | if test -n "$FC"; then | |
ac_path_GREP_found=false | ac_cv_prog_FC="$FC" # Let the user override the test. | |
# Loop through the user's path and test for each of PROGNAME-LIST | else | |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | for as_dir in $PATH | |
do | do | |
IFS=$as_save_IFS | IFS=$as_save_IFS | |
test -z "$as_dir" && as_dir=. | test -z "$as_dir" && as_dir=. | |
for ac_prog in grep ggrep; do | ||
for ac_exec_ext in '' $ac_executable_extensions; do | for ac_exec_ext in '' $ac_executable_extensions; do | |
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
as_fn_executable_p "$ac_path_GREP" || continue | ac_cv_prog_FC="$ac_tool_prefix$ac_prog" | |
# Check for GNU ac_path_GREP and select it if it is found. | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > | |
# Check for GNU $ac_path_GREP | &5 | |
case `"$ac_path_GREP" --version 2>&1` in | break 2 | |
*GNU*) | fi | |
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | done | |
*) | ||
ac_count=0 | ||
$as_echo_n 0123456789 >"conftest.in" | ||
while : | ||
do | ||
cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
mv "conftest.tmp" "conftest.in" | ||
cp "conftest.in" "conftest.nl" | ||
$as_echo 'GREP' >> "conftest.nl" | ||
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest. | ||
out" 2>/dev/null || break | ||
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
as_fn_arith $ac_count + 1 && ac_count=$as_val | ||
if test $ac_count -gt ${ac_path_GREP_max-0}; then | ||
# Best one so far, save it but keep looking for a better one | ||
ac_cv_path_GREP="$ac_path_GREP" | ||
ac_path_GREP_max=$ac_count | ||
fi | ||
# 10*(2^10) chars as input seems more than enough | ||
test $ac_count -gt 10 && break | ||
done | ||
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
esac | ||
$ac_path_GREP_found && break 3 | ||
done | ||
done | ||
done | done | |
IFS=$as_save_IFS | IFS=$as_save_IFS | |
if test -z "$ac_cv_path_GREP"; then | ||
as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/us | fi | |
r/xpg4/bin" "$LINENO" 5 | fi | |
fi | FC=$ac_cv_prog_FC | |
if test -n "$FC"; then | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5 | ||
$as_echo "$FC" >&6; } | ||
else | else | |
ac_cv_path_GREP=$GREP | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
$as_echo "no" >&6; } | ||
fi | fi | |
test -n "$FC" && break | ||
done | ||
fi | fi | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | if test -z "$FC"; then | |
$as_echo "$ac_cv_path_GREP" >&6; } | ac_ct_FC=$FC | |
GREP="$ac_cv_path_GREP" | for ac_prog in gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 | |
ftn nagfor xlf90 f90 pgf90 pghpf epcf90 g77 xlf f77 frt pgf77 cf77 fort77 fl32 a | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | f77 | |
$as_echo_n "checking for egrep... " >&6; } | do | |
if ${ac_cv_path_EGREP+:} false; then : | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
set dummy $ac_prog; ac_word=$2 | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
$as_echo_n "checking for $ac_word... " >&6; } | ||
if ${ac_cv_prog_ac_ct_FC+:} false; then : | ||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |
else | else | |
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | if test -n "$ac_ct_FC"; then | |
then ac_cv_path_EGREP="$GREP -E" | ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test. | |
else | else | |
if test -z "$EGREP"; then | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
ac_path_EGREP_found=false | for as_dir in $PATH | |
# Loop through the user's path and test for each of PROGNAME-LIST | ||
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
do | do | |
IFS=$as_save_IFS | IFS=$as_save_IFS | |
test -z "$as_dir" && as_dir=. | test -z "$as_dir" && as_dir=. | |
for ac_prog in egrep; do | ||
for ac_exec_ext in '' $ac_executable_extensions; do | for ac_exec_ext in '' $ac_executable_extensions; do | |
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
as_fn_executable_p "$ac_path_EGREP" || continue | ac_cv_prog_ac_ct_FC="$ac_prog" | |
# Check for GNU ac_path_EGREP and select it if it is found. | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > | |
# Check for GNU $ac_path_EGREP | &5 | |
case `"$ac_path_EGREP" --version 2>&1` in | break 2 | |
*GNU*) | fi | |
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | done | |
*) | ||
ac_count=0 | ||
$as_echo_n 0123456789 >"conftest.in" | ||
while : | ||
do | ||
cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
mv "conftest.tmp" "conftest.in" | ||
cp "conftest.in" "conftest.nl" | ||
$as_echo 'EGREP' >> "conftest.nl" | ||
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || bre | ||
ak | ||
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
as_fn_arith $ac_count + 1 && ac_count=$as_val | ||
if test $ac_count -gt ${ac_path_EGREP_max-0}; then | ||
# Best one so far, save it but keep looking for a better one | ||
ac_cv_path_EGREP="$ac_path_EGREP" | ||
ac_path_EGREP_max=$ac_count | ||
fi | ||
# 10*(2^10) chars as input seems more than enough | ||
test $ac_count -gt 10 && break | ||
done | ||
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
esac | ||
$ac_path_EGREP_found && break 3 | ||
done | ||
done | ||
done | done | |
IFS=$as_save_IFS | IFS=$as_save_IFS | |
if test -z "$ac_cv_path_EGREP"; then | ||
as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/u | fi | |
sr/xpg4/bin" "$LINENO" 5 | fi | |
fi | ac_ct_FC=$ac_cv_prog_ac_ct_FC | |
if test -n "$ac_ct_FC"; then | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5 | ||
$as_echo "$ac_ct_FC" >&6; } | ||
else | else | |
ac_cv_path_EGREP=$EGREP | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
$as_echo "no" >&6; } | ||
fi | fi | |
fi | test -n "$ac_ct_FC" && break | |
done | ||
if test "x$ac_ct_FC" = x; then | ||
FC="" | ||
else | ||
case $cross_compiling:$ac_tool_warned in | ||
yes:) | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed | ||
with host triplet" >&5 | ||
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2 | ||
;} | ||
ac_tool_warned=yes ;; | ||
esac | ||
FC=$ac_ct_FC | ||
fi | ||
fi | fi | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | ||
$as_echo "$ac_cv_path_EGREP" >&6; } | ||
EGREP="$ac_cv_path_EGREP" | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 | # Provide some information about the compiler. | |
$as_echo_n "checking for fgrep... " >&6; } | $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >& | |
if ${ac_cv_path_FGREP+:} false; then : | 5 | |
set X $ac_compile | ||
ac_compiler=$2 | ||
for ac_option in --version -v -V -qversion; do | ||
{ { ac_try="$ac_compiler $ac_option >&5" | ||
case "(($ac_try" in | ||
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
*) ac_try_echo=$ac_try;; | ||
esac | ||
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
$as_echo "$ac_try_echo"; } >&5 | ||
(eval "$ac_compiler $ac_option >&5") 2>conftest.err | ||
ac_status=$? | ||
if test -s conftest.err; then | ||
sed '10a\ | ||
... rest of stderr output deleted ... | ||
10q' conftest.err >conftest.er1 | ||
cat conftest.er1 >&5 | ||
fi | ||
rm -f conftest.er1 conftest.err | ||
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
test $ac_status = 0; } | ||
done | ||
rm -f a.out | ||
# If we don't use `.F' as extension, the preprocessor is not run on the | ||
# input file. (Note that this only needs to work for GNU compilers.) | ||
ac_save_ext=$ac_ext | ||
ac_ext=F | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU F | ||
ortran compiler" >&5 | ||
$as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; } | ||
if ${ac_cv_fc_compiler_gnu+:} false; then : | ||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |
else | else | |
if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 | cat > conftest.$ac_ext <<_ACEOF | |
then ac_cv_path_FGREP="$GREP -F" | program main | |
else | #ifndef __GNUC__ | |
if test -z "$FGREP"; then | choke me | |
ac_path_FGREP_found=false | #endif | |
# Loop through the user's path and test for each of PROGNAME-LIST | ||
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
do | ||
IFS=$as_save_IFS | ||
test -z "$as_dir" && as_dir=. | ||
for ac_prog in fgrep; do | ||
for ac_exec_ext in '' $ac_executable_extensions; do | ||
ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | ||
as_fn_executable_p "$ac_path_FGREP" || continue | ||
# Check for GNU ac_path_FGREP and select it if it is found. | ||
# Check for GNU $ac_path_FGREP | ||
case `"$ac_path_FGREP" --version 2>&1` in | ||
*GNU*) | ||
ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | ||
*) | ||
ac_count=0 | ||
$as_echo_n 0123456789 >"conftest.in" | ||
while : | ||
do | ||
cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
mv "conftest.tmp" "conftest.in" | ||
cp "conftest.in" "conftest.nl" | ||
$as_echo 'FGREP' >> "conftest.nl" | ||
"$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
as_fn_arith $ac_count + 1 && ac_count=$as_val | ||
if test $ac_count -gt ${ac_path_FGREP_max-0}; then | ||
# Best one so far, save it but keep looking for a better one | ||
ac_cv_path_FGREP="$ac_path_FGREP" | ||
ac_path_FGREP_max=$ac_count | ||
fi | ||
# 10*(2^10) chars as input seems more than enough | ||
test $ac_count -gt 10 && break | ||
done | ||
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
esac | ||
$ac_path_FGREP_found && break 3 | end | |
done | _ACEOF | |
done | if ac_fn_fc_try_compile "$LINENO"; then : | |
done | ac_compiler_gnu=yes | |
IFS=$as_save_IFS | ||
if test -z "$ac_cv_path_FGREP"; then | ||
as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/u | ||
sr/xpg4/bin" "$LINENO" 5 | ||
fi | ||
else | else | |
ac_cv_path_FGREP=$FGREP | ac_compiler_gnu=no | |
fi | fi | |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
ac_cv_fc_compiler_gnu=$ac_compiler_gnu | ||
fi | ||
fi | fi | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5 | |
$as_echo "$ac_cv_path_FGREP" >&6; } | $as_echo "$ac_cv_fc_compiler_gnu" >&6; } | |
FGREP="$ac_cv_path_FGREP" | ac_ext=$ac_save_ext | |
ac_test_FCFLAGS=${FCFLAGS+set} | ||
test -z "$GREP" && GREP=grep | ac_save_FCFLAGS=$FCFLAGS | |
FCFLAGS= | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5 | ||
$as_echo_n "checking whether $FC accepts -g... " >&6; } | ||
if ${ac_cv_prog_fc_g+:} false; then : | ||
$as_echo_n "(cached) " >&6 | ||
else | ||
FCFLAGS=-g | ||
cat > conftest.$ac_ext <<_ACEOF | ||
program main | ||
# Check whether --with-gnu-ld was given. | end | |
if test "${with_gnu_ld+set}" = set; then : | _ACEOF | |
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | if ac_fn_fc_try_compile "$LINENO"; then : | |
ac_cv_prog_fc_g=yes | ||
else | else | |
with_gnu_ld=no | ac_cv_prog_fc_g=no | |
fi | fi | |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
ac_prog=ld | ||
if test "$GCC" = yes; then | ||
# Check if gcc -print-prog-name=ld gives a path. | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | ||
$as_echo_n "checking for ld used by $CC... " >&6; } | ||
case $host in | ||
*-*-mingw*) | ||
# gcc leaves a trailing carriage return which upsets mingw | ||
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | ||
*) | ||
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | ||
esac | ||
case $ac_prog in | ||
# Accept absolute paths. | ||
[\\/]* | ?:[\\/]*) | ||
re_direlt='/[^/][^/]*/\.\./' | ||
# Canonicalize the pathname of ld | ||
ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | ||
while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | ||
ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | ||
done | ||
test -z "$LD" && LD="$ac_prog" | ||
;; | ||
"") | ||
# If it fails, then pretend we aren't using GCC. | ||
ac_prog=ld | ||
;; | ||
*) | ||
# If it is relative, then search for the first ld in PATH. | ||
with_gnu_ld=unknown | ||
;; | ||
esac | ||
elif test "$with_gnu_ld" = yes; then | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | ||
$as_echo_n "checking for GNU ld... " >&6; } | ||
else | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | ||
$as_echo_n "checking for non-GNU ld... " >&6; } | ||
fi | fi | |
if ${lt_cv_path_LD+:} false; then : | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5 | |
$as_echo_n "(cached) " >&6 | $as_echo "$ac_cv_prog_fc_g" >&6; } | |
if test "$ac_test_FCFLAGS" = set; then | ||
FCFLAGS=$ac_save_FCFLAGS | ||
elif test $ac_cv_prog_fc_g = yes; then | ||
if test "x$ac_cv_fc_compiler_gnu" = xyes; then | ||
FCFLAGS="-g -O2" | ||
else | ||
FCFLAGS="-g" | ||
fi | ||
else | else | |
if test -z "$LD"; then | if test "x$ac_cv_fc_compiler_gnu" = xyes; then | |
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | FCFLAGS="-O2" | |
for ac_dir in $PATH; do | else | |
IFS="$lt_save_ifs" | FCFLAGS= | |
test -z "$ac_dir" && ac_dir=. | fi | |
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | ||
lt_cv_path_LD="$ac_dir/$ac_prog" | ||
# Check to see if the program is GNU ld. I'd rather use --version, | ||
# but apparently some variants of GNU ld only accept -v. | ||
# Break only if it was the GNU/non-GNU ld that we prefer. | ||
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | ||
*GNU* | *'with BFD'*) | ||
test "$with_gnu_ld" != no && break | ||
;; | ||
*) | ||
test "$with_gnu_ld" != yes && break | ||
;; | ||
esac | ||
fi | ||
done | ||
IFS="$lt_save_ifs" | ||
else | ||
lt_cv_path_LD="$LD" # Let the user override the test with a path. | ||
fi | ||
fi | fi | |
LD="$lt_cv_path_LD" | if test $ac_compiler_gnu = yes; then | |
if test -n "$LD"; then | GFC=yes | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | ||
$as_echo "$LD" >&6; } | ||
else | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
$as_echo "no" >&6; } | ||
fi | ||
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" | ||
>&5 | ||
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | ||
if ${lt_cv_prog_gnu_ld+:} false; then : | ||
$as_echo_n "(cached) " >&6 | ||
else | else | |
# I'd rather use --version here, but apparently some GNU lds only accept -v. | GFC= | |
case `$LD -v 2>&1 </dev/null` in | ||
*GNU* | *'with BFD'*) | ||
lt_cv_prog_gnu_ld=yes | ||
;; | ||
*) | ||
lt_cv_prog_gnu_ld=no | ||
;; | ||
esac | ||
fi | fi | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | ac_ext=c | |
$as_echo "$lt_cv_prog_gnu_ld" >&6; } | ac_cpp='$CPP $CPPFLAGS' | |
with_gnu_ld=$lt_cv_prog_gnu_ld | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ | ||
LIBS >&5' | ||
ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name | ac_ext=f | |
lister (nm)" >&5 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' | |
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
if ${lt_cv_path_NM+:} false; then : | ac_compiler_gnu=$ac_cv_f77_compiler_gnu | |
$as_echo_n "(cached) " >&6 | if test -n "$ac_tool_prefix"; then | |
else | for ac_prog in $FC | |
if test -n "$NM"; then | ||
# Let the user override the test. | ||
lt_cv_path_NM="$NM" | ||
else | ||
lt_nm_to_check="${ac_tool_prefix}nm" | ||
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | ||
lt_nm_to_check="$lt_nm_to_check nm" | ||
fi | ||
for lt_tmp_nm in $lt_nm_to_check; do | ||
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | ||
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | ||
IFS="$lt_save_ifs" | ||
test -z "$ac_dir" && ac_dir=. | ||
tmp_nm="$ac_dir/$lt_tmp_nm" | ||
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | ||
# Check to see if the nm accepts a BSD-compat flag. | ||
# Adding the `sed 1q' prevents false positives on HP-UX, which says: | ||
# nm: unknown option "B" ignored | ||
# Tru64's nm complains that /dev/null is an invalid object file | ||
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | ||
*/dev/null* | *'Invalid file or object type'*) | ||
lt_cv_path_NM="$tmp_nm -B" | ||
break | ||
;; | ||
*) | ||
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | ||
*/dev/null*) | ||
lt_cv_path_NM="$tmp_nm -p" | ||
break | ||
;; | ||
*) | ||
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | ||
continue # so that we can try to find one that supports BSD flags | ||
;; | ||
esac | ||
;; | ||
esac | ||
fi | ||
done | ||
IFS="$lt_save_ifs" | ||
done | ||
: ${lt_cv_path_NM=no} | ||
fi | ||
fi | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 | ||
$as_echo "$lt_cv_path_NM" >&6; } | ||
if test "$lt_cv_path_NM" != "no"; then | ||
NM="$lt_cv_path_NM" | ||
else | ||
# Didn't find any BSD compatible name lister, look for dumpbin. | ||
if test -n "$DUMPBIN"; then : | ||
# Let the user override the test. | ||
else | ||
if test -n "$ac_tool_prefix"; then | ||
for ac_prog in dumpbin "link -dump" | ||
do | do | |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a progra m name with args. | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a progra m name with args. | |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
$as_echo_n "checking for $ac_word... " >&6; } | $as_echo_n "checking for $ac_word... " >&6; } | |
if ${ac_cv_prog_DUMPBIN+:} false; then : | if ${ac_cv_prog_F77+:} false; then : | |
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |
else | else | |
if test -n "$DUMPBIN"; then | if test -n "$F77"; then | |
ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | ac_cv_prog_F77="$F77" # Let the user override the test. | |
else | else | |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
for as_dir in $PATH | for as_dir in $PATH | |
do | do | |
IFS=$as_save_IFS | IFS=$as_save_IFS | |
test -z "$as_dir" && as_dir=. | test -z "$as_dir" && as_dir=. | |
for ac_exec_ext in '' $ac_executable_extensions; do | for ac_exec_ext in '' $ac_executable_extensions; do | |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" | ac_cv_prog_F77="$ac_tool_prefix$ac_prog" | |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5 | |
break 2 | break 2 | |
fi | fi | |
done | done | |
done | done | |
IFS=$as_save_IFS | IFS=$as_save_IFS | |
fi | fi | |
fi | fi | |
DUMPBIN=$ac_cv_prog_DUMPBIN | F77=$ac_cv_prog_F77 | |
if test -n "$DUMPBIN"; then | if test -n "$F77"; then | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5 | |
$as_echo "$DUMPBIN" >&6; } | $as_echo "$F77" >&6; } | |
else | else | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
$as_echo "no" >&6; } | $as_echo "no" >&6; } | |
fi | fi | |
test -n "$DUMPBIN" && break | test -n "$F77" && break | |
done | done | |
fi | fi | |
if test -z "$DUMPBIN"; then | if test -z "$F77"; then | |
ac_ct_DUMPBIN=$DUMPBIN | ac_ct_F77=$F77 | |
for ac_prog in dumpbin "link -dump" | for ac_prog in $FC | |
do | do | |
# Extract the first word of "$ac_prog", so it can be a program name with args. | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
set dummy $ac_prog; ac_word=$2 | set dummy $ac_prog; ac_word=$2 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
$as_echo_n "checking for $ac_word... " >&6; } | $as_echo_n "checking for $ac_word... " >&6; } | |
if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : | if ${ac_cv_prog_ac_ct_F77+:} false; then : | |
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |
else | else | |
if test -n "$ac_ct_DUMPBIN"; then | if test -n "$ac_ct_F77"; then | |
ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. | |
else | else | |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
for as_dir in $PATH | for as_dir in $PATH | |
do | do | |
IFS=$as_save_IFS | IFS=$as_save_IFS | |
test -z "$as_dir" && as_dir=. | test -z "$as_dir" && as_dir=. | |
for ac_exec_ext in '' $ac_executable_extensions; do | for ac_exec_ext in '' $ac_executable_extensions; do | |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" | ac_cv_prog_ac_ct_F77="$ac_prog" | |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5 | |
break 2 | break 2 | |
fi | fi | |
done | done | |
done | done | |
IFS=$as_save_IFS | IFS=$as_save_IFS | |
fi | fi | |
fi | fi | |
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | ac_ct_F77=$ac_cv_prog_ac_ct_F77 | |
if test -n "$ac_ct_DUMPBIN"; then | if test -n "$ac_ct_F77"; then | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5 | |
$as_echo "$ac_ct_DUMPBIN" >&6; } | $as_echo "$ac_ct_F77" >&6; } | |
else | else | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
$as_echo "no" >&6; } | $as_echo "no" >&6; } | |
fi | fi | |
test -n "$ac_ct_DUMPBIN" && break | test -n "$ac_ct_F77" && break | |
done | done | |
if test "x$ac_ct_DUMPBIN" = x; then | if test "x$ac_ct_F77" = x; then | |
DUMPBIN=":" | F77="" | |
else | else | |
case $cross_compiling:$ac_tool_warned in | case $cross_compiling:$ac_tool_warned in | |
yes:) | yes:) | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2 ;} | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2 ;} | |
ac_tool_warned=yes ;; | ac_tool_warned=yes ;; | |
esac | esac | |
DUMPBIN=$ac_ct_DUMPBIN | F77=$ac_ct_F77 | |
fi | fi | |
fi | fi | |
case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in | # Provide some information about the compiler. | |
*COFF*) | $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" | |
DUMPBIN="$DUMPBIN -symbols" | >&5 | |
;; | set X $ac_compile | |
*) | ac_compiler=$2 | |
DUMPBIN=: | for ac_option in --version -v -V -qversion; do | |
;; | { { ac_try="$ac_compiler $ac_option >&5" | |
esac | case "(($ac_try" in | |
fi | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
*) ac_try_echo=$ac_try;; | ||
if test "$DUMPBIN" != ":"; then | esac | |
NM="$DUMPBIN" | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
$as_echo "$ac_try_echo"; } >&5 | ||
(eval "$ac_compiler $ac_option >&5") 2>conftest.err | ||
ac_status=$? | ||
if test -s conftest.err; then | ||
sed '10a\ | ||
... rest of stderr output deleted ... | ||
10q' conftest.err >conftest.er1 | ||
cat conftest.er1 >&5 | ||
fi | fi | |
fi | rm -f conftest.er1 conftest.err | |
test -z "$NM" && NM=nm | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
test $ac_status = 0; } | ||
done | ||
rm -f a.out | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interfac | # If we don't use `.F' as extension, the preprocessor is not run on the | |
e" >&5 | # input file. (Note that this only needs to work for GNU compilers.) | |
$as_echo_n "checking the name lister ($NM) interface... " >&6; } | ac_save_ext=$ac_ext | |
if ${lt_cv_nm_interface+:} false; then : | ac_ext=F | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU F | ||
ortran 77 compiler" >&5 | ||
$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; | ||
} | ||
if ${ac_cv_f77_compiler_gnu+:} false; then : | ||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |
else | else | |
lt_cv_nm_interface="BSD nm" | cat > conftest.$ac_ext <<_ACEOF | |
echo "int some_variable = 0;" > conftest.$ac_ext | program main | |
(eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) | #ifndef __GNUC__ | |
(eval "$ac_compile" 2>conftest.err) | choke me | |
cat conftest.err >&5 | #endif | |
(eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) | ||
(eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) | ||
cat conftest.err >&5 | ||
(eval echo "\"\$as_me:$LINENO: output\"" >&5) | ||
cat conftest.out >&5 | ||
if $GREP 'External.*some_variable' conftest.out > /dev/null; then | ||
lt_cv_nm_interface="MS dumpbin" | ||
fi | ||
rm -f conftest* | ||
fi | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 | ||
$as_echo "$lt_cv_nm_interface" >&6; } | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 | end | |
$as_echo_n "checking whether ln -s works... " >&6; } | _ACEOF | |
LN_S=$as_ln_s | if ac_fn_f77_try_compile "$LINENO"; then : | |
if test "$LN_S" = "ln -s"; then | ac_compiler_gnu=yes | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
$as_echo "yes" >&6; } | ||
else | else | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 | ac_compiler_gnu=no | |
$as_echo "no, using $LN_S" >&6; } | ||
fi | fi | |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
ac_cv_f77_compiler_gnu=$ac_compiler_gnu | ||
# find the maximum length of command line arguments | fi | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5 | |
line arguments" >&5 | $as_echo "$ac_cv_f77_compiler_gnu" >&6; } | |
$as_echo_n "checking the maximum length of command line arguments... " >&6; } | ac_ext=$ac_save_ext | |
if ${lt_cv_sys_max_cmd_len+:} false; then : | ac_test_FFLAGS=${FFLAGS+set} | |
ac_save_FFLAGS=$FFLAGS | ||
FFLAGS= | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5 | ||
$as_echo_n "checking whether $F77 accepts -g... " >&6; } | ||
if ${ac_cv_prog_f77_g+:} false; then : | ||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |
else | else | |
i=0 | FFLAGS=-g | |
teststring="ABCD" | cat > conftest.$ac_ext <<_ACEOF | |
program main | ||
case $build_os in | end | |
msdosdjgpp*) | _ACEOF | |
# On DJGPP, this test can blow up pretty badly due to problems in libc | if ac_fn_f77_try_compile "$LINENO"; then : | |
# (any single argument exceeding 2000 bytes causes a buffer overrun | ac_cv_prog_f77_g=yes | |
# during glob expansion). Even if it were fixed, the result of this | else | |
# check would be larger than it should be. | ac_cv_prog_f77_g=no | |
lt_cv_sys_max_cmd_len=12288; # 12K is about right | fi | |
;; | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
gnu*) | ||
# Under GNU Hurd, this test is not required because there is | ||
# no limit to the length of command line arguments. | ||
# Libtool will interpret -1 as no limit whatsoever | ||
lt_cv_sys_max_cmd_len=-1; | ||
;; | ||
cygwin* | mingw* | cegcc*) | fi | |
# On Win9x/ME, this test blows up -- it succeeds, but takes | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5 | |
# about 5 minutes as the teststring grows exponentially. | $as_echo "$ac_cv_prog_f77_g" >&6; } | |
# Worse, since 9x/ME are not pre-emptively multitasking, | if test "$ac_test_FFLAGS" = set; then | |
# you end up with a "frozen" computer, even though with patience | FFLAGS=$ac_save_FFLAGS | |
# the test eventually succeeds (with a max line length of 256k). | elif test $ac_cv_prog_f77_g = yes; then | |
# Instead, let's just punt: use the minimum linelength reported by | if test "x$ac_cv_f77_compiler_gnu" = xyes; then | |
# all of the supported platforms: 8192 (on NT/2K/XP). | FFLAGS="-g -O2" | |
lt_cv_sys_max_cmd_len=8192; | else | |
;; | FFLAGS="-g" | |
fi | ||
else | ||
if test "x$ac_cv_f77_compiler_gnu" = xyes; then | ||
FFLAGS="-O2" | ||
else | ||
FFLAGS= | ||
fi | ||
fi | ||
mint*) | if test $ac_compiler_gnu = yes; then | |
# On MiNT this can take a long time and run out of memory. | G77=yes | |
lt_cv_sys_max_cmd_len=8192; | else | |
;; | G77= | |
fi | ||
ac_ext=c | ||
ac_cpp='$CPP $CPPFLAGS' | ||
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ | ||
LIBS >&5' | ||
ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
amigaos*) | # If we couldn't find an F90 compiler, deal with it. | |
# On AmigaOS with pdksh, this test takes hours, literally. | if test "${FC+set}" = set && test "x$FC" = x; then | |
# So we just punt and use a minimum line length of 8192. | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
lt_cv_sys_max_cmd_len=8192; | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
;; | as_fn_error $? "Can't find F90 compiler. | |
See \`config.log' for more details" "$LINENO" 5; } | ||
fi | ||
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | # Set the default fortran builds; default is to build f03 | |
# This has been around since 386BSD, at least. Likely further. | nc_build_f90=no | |
if test -x /sbin/sysctl; then | nc_build_f03=yes | |
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | ||
elif test -x /usr/sbin/sysctl; then | ||
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | ||
else | ||
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | ||
fi | ||
# And add a safety zone | ||
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | ||
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | ||
;; | ||
interix*) | # Does the user want to test for Fortran 2003 compiler. | |
# We know the value 262144 and hardcode it with a safety zone (like BSD) | # Added to get around NAG evaluation compiler error turning off F03 | |
lt_cv_sys_max_cmd_len=196608 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Fortran compiler is ch | |
;; | ecked for ISO_C_BINDING support" >&5 | |
$as_echo_n "checking whether Fortran compiler is checked for ISO_C_BINDING suppo | ||
rt... " >&6; } | ||
# Check whether --enable-f03-compiler-check was given. | ||
if test "${enable_f03_compiler_check+set}" = set; then : | ||
enableval=$enable_f03_compiler_check; | ||
fi | ||
os2*) | test "x$enable_f03_compiler_check" = xno || enable_f03_compiler_check=yes | |
# The test takes a long time on OS/2. | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_f03_compiler_check" >&5 | |
lt_cv_sys_max_cmd_len=8192 | $as_echo "$enable_f03_compiler_check" >&6; } | |
;; | ||
osf*) | # next check to see if the Fortran compiler will support | |
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | # ISO_C_BINDING | |
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | nc_iso_c_binding=yes | |
# nice to cause kernel panics so lets avoid the loop below. | ||
# First set a reasonable default. | ||
lt_cv_sys_max_cmd_len=16384 | ||
# | ||
if test -x /sbin/sysconfig; then | ||
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | ||
*1*) lt_cv_sys_max_cmd_len=-1 ;; | ||
esac | ||
fi | ||
;; | ||
sco3.2v5*) | ||
lt_cv_sys_max_cmd_len=102400 | ||
;; | ||
sysv5* | sco5v6* | sysv4.2uw2*) | ||
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | ||
if test -n "$kargmax"; then | ||
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | ||
else | ||
lt_cv_sys_max_cmd_len=32768 | ||
fi | ||
;; | ||
*) | ||
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` | ||
if test -n "$lt_cv_sys_max_cmd_len" && \ | ||
test undefined != "$lt_cv_sys_max_cmd_len"; then | ||
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | ||
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | ||
else | ||
# Make teststring a little bigger before we do anything with it. | ||
# a 1K string should be a reasonable start. | ||
for i in 1 2 3 4 5 6 7 8 ; do | ||
teststring=$teststring$teststring | ||
done | ||
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | ||
# If test is not a shell built-in, we'll probably end up computing a | ||
# maximum length that is only half of the actual maximum length, but | ||
# we can't tell. | ||
while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ | ||
= "X$teststring$teststring"; } >/dev/null 2>&1 && | ||
test $i != 17 # 1/2 MB should be enough | ||
do | ||
i=`expr $i + 1` | ||
teststring=$teststring$teststring | ||
done | ||
# Only check the string length outside the loop. | ||
lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | ||
teststring= | ||
# Add a significant safety factor because C++ compilers can tack on | ||
# massive amounts of additional arguments before passing them to the | ||
# linker. It appears as though 1/2 is a usable value. | ||
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | ||
fi | ||
;; | ||
esac | ||
fi | # Some f90 compilers change the case of the mod file names. Others | |
# require special flags to be set to deal with .f90 files. Find out | ||
# about this compiler. | ||
ac_ext=${ac_fc_srcext-f} | ||
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' | ||
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest | ||
.$ac_ext $LIBS >&5' | ||
ac_compiler_gnu=$ac_cv_fc_compiler_gnu | ||
if test -n $lt_cv_sys_max_cmd_len ; then | ac_ext=${ac_fc_srcext-f} | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 | ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' | |
$as_echo "$lt_cv_sys_max_cmd_len" >&6; } | ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest | |
.$ac_ext $LIBS >&5' | ||
ac_compiler_gnu=$ac_cv_fc_compiler_gnu | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran flag to compile .f | ||
90 files" >&5 | ||
$as_echo_n "checking for Fortran flag to compile .f90 files... " >&6; } | ||
if ${ac_cv_fc_srcext_f90+:} false; then : | ||
$as_echo_n "(cached) " >&6 | ||
else | else | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | ac_ext=f90 | |
$as_echo "none" >&6; } | ac_fcflags_srcext_save=$ac_fcflags_srcext | |
fi | ac_fcflags_srcext= | |
max_cmd_len=$lt_cv_sys_max_cmd_len | ac_cv_fc_srcext_f90=unknown | |
case $ac_ext in #( | ||
: ${CP="cp -f"} | [fF]77) ac_try=f77;; #( | |
: ${MV="mv -f"} | *) ac_try=f95;; | |
: ${RM="rm -f"} | esac | |
for ac_flag in none -qsuffix=f=f90 -Tf "-x $ac_try"; do | ||
test "x$ac_flag" != xnone && ac_fcflags_srcext="$ac_flag" | ||
cat > conftest.$ac_ext <<_ACEOF | ||
program main | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands | end | |
some XSI constructs" >&5 | _ACEOF | |
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; | if ac_fn_fc_try_compile "$LINENO"; then : | |
} | ac_cv_fc_srcext_f90=$ac_flag; break | |
# Try some XSI features | fi | |
xsi_shell=no | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
( _lt_dummy="a/b/c" | done | |
test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy | rm -f conftest.$ac_objext conftest.f90 | |
"}, \ | ac_fcflags_srcext=$ac_fcflags_srcext_save | |
= c,a/b,b/c, \ | ||
&& eval 'test $(( 1 + 1 )) -eq 2 \ | ||
&& test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | ||
&& xsi_shell=yes | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 | ||
$as_echo "$xsi_shell" >&6; } | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands | ||
\"+=\"" >&5 | ||
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | ||
lt_shell_append=no | ||
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | ||
>/dev/null 2>&1 \ | ||
&& lt_shell_append=yes | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 | ||
$as_echo "$lt_shell_append" >&6; } | ||
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | fi | |
lt_unset=unset | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_srcext_f90" >&5 | |
$as_echo "$ac_cv_fc_srcext_f90" >&6; } | ||
if test "x$ac_cv_fc_srcext_f90" = xunknown; then | ||
as_fn_error $? "Fortran could not compile .f90 files" "$LINENO" 5 | ||
else | else | |
lt_unset=false | ac_fc_srcext=f90 | |
if test "x$ac_cv_fc_srcext_f90" = xnone; then | ||
ac_fcflags_srcext="" | ||
FCFLAGS_f90="" | ||
else | ||
ac_fcflags_srcext=$ac_cv_fc_srcext_f90 | ||
FCFLAGS_f90=$ac_cv_fc_srcext_f90 | ||
fi | ||
fi | fi | |
ac_ext=${ac_fc_srcext-f} | ||
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' | ||
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest | ||
.$ac_ext $LIBS >&5' | ||
ac_compiler_gnu=$ac_cv_fc_compiler_gnu | ||
# test EBCDIC or ASCII | ac_ext=c | |
case `echo X|tr X '\101'` in | ac_cpp='$CPP $CPPFLAGS' | |
A) # ASCII based system | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
# \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ | |
lt_SP2NL='tr \040 \012' | LIBS >&5' | |
lt_NL2SP='tr \015\012 \040\040' | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
;; | ||
*) # EBCDIC based system | ||
lt_SP2NL='tr \100 \n' | ||
lt_NL2SP='tr \r\n \100\100' | ||
;; | ||
esac | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file nam | { $as_echo "$as_me:${as_lineno-$LINENO}: checking fortran 90 modules inclusion f | |
es to $host format" >&5 | lag" >&5 | |
$as_echo_n "checking how to convert $build file names to $host format... " >&6; | $as_echo_n "checking fortran 90 modules inclusion flag... " >&6; } | |
} | if ${ax_cv_f90_modflag+:} false; then : | |
if ${lt_cv_to_host_file_cmd+:} false; then : | ||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |
else | else | |
case $host in | ac_ext=${ac_fc_srcext-f} | |
*-*-mingw* ) | ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' | |
case $build in | ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest | |
*-*-mingw* ) # actually msys | .$ac_ext $LIBS >&5' | |
lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu | |
;; | ||
*-*-cygwin* ) | ||
lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 | ||
;; | ||
* ) # otherwise, assume *nix | ||
lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 | ||
;; | ||
esac | ||
;; | ||
*-*-cygwin* ) | ||
case $build in | ||
*-*-mingw* ) # actually msys | ||
lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin | ||
;; | ||
*-*-cygwin* ) | ||
lt_cv_to_host_file_cmd=func_convert_file_noop | ||
;; | ||
* ) # otherwise, assume *nix | ||
lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin | ||
;; | ||
esac | ||
;; | ||
* ) # unhandled hosts (and "normal" native builds) | ||
lt_cv_to_host_file_cmd=func_convert_file_noop | ||
;; | ||
esac | ||
fi | ||
to_host_file_cmd=$lt_cv_to_host_file_cmd | i=0 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 | while test \( -f tmpdir_$i \) -o \( -d tmpdir_$i \) ; do | |
$as_echo "$lt_cv_to_host_file_cmd" >&6; } | i=`expr $i + 1` | |
done | ||
mkdir tmpdir_$i | ||
cd tmpdir_$i | ||
cat > conftest.$ac_ext <<_ACEOF | ||
module conftest_module | ||
contains | ||
subroutine conftest_routine | ||
write(*,'(a)') 'gotcha!' | ||
end subroutine conftest_routine | ||
end module conftest_module | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file nam | _ACEOF | |
es to toolchain format" >&5 | if ac_fn_fc_try_compile "$LINENO"; then : | |
$as_echo_n "checking how to convert $build file names to toolchain format... " > | ||
&6; } | ||
if ${lt_cv_to_tool_file_cmd+:} false; then : | ||
$as_echo_n "(cached) " >&6 | ||
else | ||
#assume ordinary cross tools, or native build. | ||
lt_cv_to_tool_file_cmd=func_convert_file_noop | ||
case $host in | ||
*-*-mingw* ) | ||
case $build in | ||
*-*-mingw* ) # actually msys | ||
lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 | ||
;; | ||
esac | ||
;; | ||
esac | ||
fi | fi | |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
cd .. | ||
ax_cv_f90_modflag="not found" | ||
for ax_flag in "-I" "-M" "-p"; do | ||
if test "$ax_cv_f90_modflag" = "not found" ; then | ||
ax_save_FCFLAGS="$FCFLAGS" | ||
FCFLAGS="$ax_save_FCFLAGS ${ax_flag}tmpdir_$i" | ||
cat > conftest.$ac_ext <<_ACEOF | ||
program conftest_program | ||
use conftest_module | ||
call conftest_routine | ||
end program conftest_program | ||
to_tool_file_cmd=$lt_cv_to_tool_file_cmd | _ACEOF | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 | if ac_fn_fc_try_compile "$LINENO"; then : | |
$as_echo "$lt_cv_to_tool_file_cmd" >&6; } | ax_cv_f90_modflag="$ax_flag" | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload objec | ||
t files" >&5 | ||
$as_echo_n "checking for $LD option to reload object files... " >&6; } | ||
if ${lt_cv_ld_reload_flag+:} false; then : | ||
$as_echo_n "(cached) " >&6 | ||
else | ||
lt_cv_ld_reload_flag='-r' | ||
fi | fi | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
$as_echo "$lt_cv_ld_reload_flag" >&6; } | FCFLAGS="$ax_save_FCFLAGS" | |
reload_flag=$lt_cv_ld_reload_flag | ||
case $reload_flag in | ||
"" | " "*) ;; | ||
*) reload_flag=" $reload_flag" ;; | ||
esac | ||
reload_cmds='$LD$reload_flag -o $output$reload_objs' | ||
case $host_os in | ||
cygwin* | mingw* | pw32* | cegcc*) | ||
if test "$GCC" != yes; then | ||
reload_cmds=false | ||
fi | ||
;; | ||
darwin*) | ||
if test "$GCC" = yes; then | ||
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | ||
else | ||
reload_cmds='$LD$reload_flag -o $output$reload_objs' | ||
fi | ||
;; | ||
esac | ||
if test -n "$ac_tool_prefix"; then | ||
# Extract the first word of "${ac_tool_prefix}objdump", so it can be a program | ||
name with args. | ||
set dummy ${ac_tool_prefix}objdump; ac_word=$2 | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
$as_echo_n "checking for $ac_word... " >&6; } | ||
if ${ac_cv_prog_OBJDUMP+:} false; then : | ||
$as_echo_n "(cached) " >&6 | ||
else | ||
if test -n "$OBJDUMP"; then | ||
ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | ||
else | ||
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
for as_dir in $PATH | ||
do | ||
IFS=$as_save_IFS | ||
test -z "$as_dir" && as_dir=. | ||
for ac_exec_ext in '' $ac_executable_extensions; do | ||
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" | ||
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > | ||
&5 | ||
break 2 | ||
fi | fi | |
done | done | |
done | rm -fr tmpdir_$i | |
IFS=$as_save_IFS | if test "$ax_flag" = "not found" ; then | |
as_fn_error $? "unable to find compiler flag for modules inclusion" "$LINENO" | ||
fi | 5 | |
fi | ||
OBJDUMP=$ac_cv_prog_OBJDUMP | ||
if test -n "$OBJDUMP"; then | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | ||
$as_echo "$OBJDUMP" >&6; } | ||
else | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
$as_echo "no" >&6; } | ||
fi | fi | |
ac_ext=c | ||
ac_cpp='$CPP $CPPFLAGS' | ||
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ | ||
LIBS >&5' | ||
ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
fi | fi | |
if test -z "$ac_cv_prog_OBJDUMP"; then | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_f90_modflag" >&5 | |
ac_ct_OBJDUMP=$OBJDUMP | $as_echo "$ax_cv_f90_modflag" >&6; } | |
# Extract the first word of "objdump", so it can be a program name with args. | MOD_FLAG=${ax_cv_f90_modflag} | |
set dummy objdump; ac_word=$2 | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | if test "x$enable_f03_compiler_check" = xyes; then | |
$as_echo_n "checking for $ac_word... " >&6; } | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran compiler supports | |
if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : | Fortran 2003 ISO_C_BINDING" >&5 | |
$as_echo_n "(cached) " >&6 | $as_echo_n "checking if Fortran compiler supports Fortran 2003 ISO_C_BINDING... | |
else | " >&6; } | |
if test -n "$ac_ct_OBJDUMP"; then | cat <<EOF >conftest.f90 | |
ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | module conftest_module | |
else | USE ISO_C_BINDING | |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | end module conftest_module | |
for as_dir in $PATH | EOF | |
do | doit='$FC -c ${FCFLAGS} ${FCFLAGS_f90} conftest.f90' | |
IFS=$as_save_IFS | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$doit\""; } >&5 | |
test -z "$as_dir" && as_dir=. | (eval $doit) 2>&5 | |
for ac_exec_ext in '' $ac_executable_extensions; do | ac_status=$? | |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
ac_cv_prog_ac_ct_OBJDUMP="objdump" | test $ac_status = 0; }; then | |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > | nc_iso_c_binding=yes | |
&5 | else | |
break 2 | nc_iso_c_binding=no | |
fi | fi | |
done | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nc_iso_c_binding" >&5 | |
done | $as_echo "$nc_iso_c_binding" >&6; } | |
IFS=$as_save_IFS | ||
fi | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran compiler supports | |
fi | Fortran 2008 ISO_FORTRAN_ENV additions" >&5 | |
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | $as_echo_n "checking if Fortran compiler supports Fortran 2008 ISO_FORTRAN_ENV a | |
if test -n "$ac_ct_OBJDUMP"; then | dditions... " >&6; } | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 | cat <<EOF >conftest.f90 | |
$as_echo "$ac_ct_OBJDUMP" >&6; } | Program test | |
else | USE ISO_FORTRAN_ENV, ONLY: REAL32, REAL64, INT8, INT16, INT32, INT64 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | End Program | |
$as_echo "no" >&6; } | EOF | |
fi | doit='$FC -c ${FCFLAGS} ${FCFLAGS_f90} conftest.f90' | |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$doit\""; } >&5 | ||
(eval $doit) 2>&5 | ||
ac_status=$? | ||
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
test $ac_status = 0; }; then | ||
nc_f2008_is0_env_additions=yes | ||
$as_echo "#define HAVE_F2008 1" >>confdefs.h | ||
if test "x$ac_ct_OBJDUMP" = x; then | ||
OBJDUMP="false" | ||
else | else | |
case $cross_compiling:$ac_tool_warned in | nc_f2008_is0_env_additions=no | |
yes:) | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed | ||
with host triplet" >&5 | ||
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2 | ||
;} | ||
ac_tool_warned=yes ;; | ||
esac | ||
OBJDUMP=$ac_ct_OBJDUMP | ||
fi | fi | |
else | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nc_f2008_is0_env_additions" | |
OBJDUMP="$ac_cv_prog_OBJDUMP" | >&5 | |
fi | $as_echo "$nc_f2008_is0_env_additions" >&6; } | |
test -z "$OBJDUMP" && OBJDUMP=objdump | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent lib | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran compiler supports | |
raries" >&5 | TS29113 standard extension" >&5 | |
$as_echo_n "checking how to recognize dependent libraries... " >&6; } | $as_echo_n "checking if Fortran compiler supports TS29113 standard extension... | |
if ${lt_cv_deplibs_check_method+:} false; then : | " >&6; } | |
$as_echo_n "(cached) " >&6 | cat <<EOF >conftest.f90 | |
else | Program test | |
lt_cv_file_magic_cmd='$MAGIC_CMD' | USE ISO_C_BINDING, ONLY: C_PTRDIFF_T | |
lt_cv_file_magic_test_file= | End Program | |
lt_cv_deplibs_check_method='unknown' | EOF | |
# Need to set the preceding variable on all platforms that support | doit='$FC -c ${FCFLAGS} ${FCFLAGS_f90} conftest.f90' | |
# interlibrary dependencies. | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$doit\""; } >&5 | |
# 'none' -- dependencies not supported. | (eval $doit) 2>&5 | |
# `unknown' -- same as none, but documents that we really don't know. | ac_status=$? | |
# 'pass_all' -- all dependencies passed with no checks. | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
# 'test_compile' -- check by making test program. | test $ac_status = 0; }; then | |
# 'file_magic [[regex]]' -- check by looking for files in library path | nc_ts29113_support=yes | |
# which responds to the $file_magic_cmd with a given extended regex. | ||
# If you have `file' or equivalent on your system and you're not sure | ||
# whether `pass_all' will *always* work, you probably want this one. | ||
case $host_os in | $as_echo "#define HAVE_TS29113_SUPPORT 1" >>confdefs.h | |
aix[4-9]*) | ||
lt_cv_deplibs_check_method=pass_all | ||
;; | ||
beos*) | else | |
lt_cv_deplibs_check_method=pass_all | nc_ts29113_support=no | |
;; | fi | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $nc_ts29113_support" >&5 | ||
$as_echo "$nc_ts29113_support" >&6; } | ||
bsdi[45]*) | if test "x$nc_iso_c_binding" = xno; then | |
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared obje | if test "x$enable_compiler_recover" = xyes; then | |
ct|dynamic lib)' | nc_build_f90=yes | |
lt_cv_file_magic_cmd='/usr/bin/file -L' | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ISO_C_BINDING not suppor | |
lt_cv_file_magic_test_file=/shlib/libc.so | ted - defaulting to F90 interfaces" >&5 | |
;; | $as_echo "$as_me: WARNING: ISO_C_BINDING not supported - defaulting to F90 inter | |
faces" >&2;} | ||
else | ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
as_fn_error $? "Can't use build F03 interfaces and cannot do compiler recovery | ||
See \`config.log' for more details" "$LINENO" 5; } | ||
fi | ||
fi | ||
fi | ||
cygwin*) | ## Do we want to use the fortran 90 wrappers instead of 2003 native code? | |
# func_win32_libid is a shell function defined in ltmain.sh | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether F03 native code is des | |
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | ired" >&5 | |
lt_cv_file_magic_cmd='func_win32_libid' | $as_echo_n "checking whether F03 native code is desired... " >&6; } | |
;; | # Check whether --enable-f03 was given. | |
if test "${enable_f03+set}" = set; then : | ||
enableval=$enable_f03; | ||
fi | ||
mingw* | pw32*) | test "x$enable_f03" = xno || enable_f03=yes | |
# Base MSYS/MinGW do not provide the 'file' command needed by | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_f03" >&5 | |
# func_win32_libid shell function, so use a weaker test based on 'objdump', | $as_echo "$enable_f03" >&6; } | |
# unless we find 'file', for example because we are cross-compiling. | ||
# func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. | ||
if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then | ||
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | ||
lt_cv_file_magic_cmd='func_win32_libid' | ||
else | ||
# Keep this pattern in sync with the one in func_win32_libid. | ||
lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture | ||
: i386)?|pe-arm-wince|pe-x86-64)' | ||
lt_cv_file_magic_cmd='$OBJDUMP -f' | ||
fi | ||
;; | ||
cegcc*) | if test "x$enable_f03" = xyes ; then nc_build_f03=yes; fi | |
# use the weaker test based on 'objdump'. See mingw*. | ||
lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architect | ||
ure: arm)?' | ||
lt_cv_file_magic_cmd='$OBJDUMP -f' | ||
;; | ||
darwin* | rhapsody*) | # Decide on f90 versus 2003 | |
lt_cv_deplibs_check_method=pass_all | if test "x$nc_iso_c_binding" = xno; then | |
;; | #Cannot build f03 native code | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: Fortran 2003 interface not supported; | ||
Using fortran 90 interface" >&5 | ||
$as_echo "$as_me: Fortran 2003 interface not supported; Using fortran 90 interfa | ||
ce" >&6;} | ||
nc_build_f90=yes | ||
fi | ||
freebsd* | dragonfly*) | # Guarantee build state; f90 currently overrides f03 | |
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | if test "x$nc_build_f90" = xyes ; then | |
case $host_cpu in | nc_build_f03=no | |
i*86 ) | else | |
# Not sure whether the presence of OpenBSD here was a mistake. | nc_build_f03=yes | |
# Let's accept both of them until this is cleared up. | fi | |
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]8 | ||
6 (compact )?demand paged shared library' | ||
lt_cv_file_magic_cmd=/usr/bin/file | ||
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | ||
;; | ||
esac | ||
else | ||
lt_cv_deplibs_check_method=pass_all | ||
fi | ||
;; | ||
haiku*) | # Does the user want to check into fortran type information? | |
lt_cv_deplibs_check_method=pass_all | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fortran type sizes sho | |
;; | uld be checked" >&5 | |
$as_echo_n "checking whether fortran type sizes should be checked... " >&6; } | ||
# Check whether --enable-fortran-type-check was given. | ||
if test "${enable_fortran_type_check+set}" = set; then : | ||
enableval=$enable_fortran_type_check; | ||
fi | ||
hpux10.20* | hpux11*) | test "x$enable_fortran_type_check" = xno || enable_fortran_type_check=yes | |
lt_cv_file_magic_cmd=/usr/bin/file | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_fortran_type_check" >&5 | |
case $host_cpu in | $as_echo "$enable_fortran_type_check" >&6; } | |
ia64*) | ||
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) sha | ||
red object file - IA64' | ||
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | ||
;; | ||
hppa*64*) | ||
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])( | ||
-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' | ||
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | ||
;; | ||
*) | ||
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9] | ||
) shared library' | ||
lt_cv_file_magic_test_file=/usr/lib/libc.sl | ||
;; | ||
esac | ||
;; | ||
interix[3-9]*) | # Does the user want to run tests for large files (> 2GiB)? | |
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether large file (> 2GB) tes | |
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | ts should be run" >&5 | |
;; | $as_echo_n "checking whether large file (> 2GB) tests should be run... " >&6; } | |
# Check whether --enable-large-file-tests was given. | ||
if test "${enable_large_file_tests+set}" = set; then : | ||
enableval=$enable_large_file_tests; | ||
fi | ||
irix5* | irix6* | nonstopux*) | test "x$enable_large_file_tests" = xyes || enable_large_file_tests=no | |
case $LD in | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_large_file_tests" >&5 | |
*-32|*"-32 ") libmagic=32-bit;; | $as_echo "$enable_large_file_tests" >&6; } | |
*-n32|*"-n32 ") libmagic=N32;; | if test x$enable_large_file_tests = xyes; then | |
*-64|*"-64 ") libmagic=64-bit;; | LARGE_FILE_TESTS_TRUE= | |
*) libmagic=never-match;; | LARGE_FILE_TESTS_FALSE='#' | |
esac | else | |
lt_cv_deplibs_check_method=pass_all | LARGE_FILE_TESTS_TRUE='#' | |
;; | LARGE_FILE_TESTS_FALSE= | |
fi | ||
# This must be glibc/ELF. | if test "x$enable_large_file_tests" = xyes; then | |
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) | ||
lt_cv_deplibs_check_method=pass_all | ||
;; | ||
netbsd* | netbsdelf*-gnu) | $as_echo "#define LARGE_FILE_TESTS 1" >>confdefs.h | |
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | ||
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pi | ||
c\.a)$' | ||
else | ||
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | ||
fi | ||
;; | ||
newos6*) | fi | |
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable| | ||
dynamic lib)' | ||
lt_cv_file_magic_cmd=/usr/bin/file | ||
lt_cv_file_magic_test_file=/usr/lib/libnls.so | ||
;; | ||
*nto* | *qnx*) | # Does the user want to run benchmarks? | |
lt_cv_deplibs_check_method=pass_all | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether benchmarks should be r | |
;; | un (experimental)" >&5 | |
$as_echo_n "checking whether benchmarks should be run (experimental)... " >&6; } | ||
# Check whether --enable-benchmarks was given. | ||
if test "${enable_benchmarks+set}" = set; then : | ||
enableval=$enable_benchmarks; | ||
fi | ||
openbsd*) | test "x$enable_benchmarks" = xno || enable_benchmarks=yes | |
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_benchmarks" >&5 | |
_cpu" = "openbsd2.8-powerpc"; then | $as_echo "$enable_benchmarks" >&6; } | |
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.s | if test x$enable_benchmarks = xyes; then | |
o|_pic\.a)$' | BUILD_BENCHMARKS_TRUE= | |
else | BUILD_BENCHMARKS_FALSE='#' | |
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pi | else | |
c\.a)$' | BUILD_BENCHMARKS_TRUE='#' | |
fi | BUILD_BENCHMARKS_FALSE= | |
;; | fi | |
osf3* | osf4* | osf5*) | # If the env. variable TEMP_LARGE is set, or if | |
lt_cv_deplibs_check_method=pass_all | # --with-temp-large=<directory>, use it as a place for the large | |
;; | # (i.e. > 2 GiB) files created during the large file testing. | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to put large temp files | ||
if large file tests are run" >&5 | ||
$as_echo_n "checking where to put large temp files if large file tests are run.. | ||
. " >&6; } | ||
rdos*) | # Check whether --with-temp-large was given. | |
lt_cv_deplibs_check_method=pass_all | if test "${with_temp_large+set}" = set; then : | |
;; | withval=$with_temp_large; TEMP_LARGE=$with_temp_large | |
fi | ||
solaris*) | TEMP_LARGE=${TEMP_LARGE-.} | |
lt_cv_deplibs_check_method=pass_all | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEMP_LARGE" >&5 | |
;; | $as_echo "$TEMP_LARGE" >&6; } | |
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | cat >>confdefs.h <<_ACEOF | |
lt_cv_deplibs_check_method=pass_all | #define TEMP_LARGE "$TEMP_LARGE" | |
;; | _ACEOF | |
sysv4 | sysv4.3*) | # Turn off building old F77 interfaces if nc_build_f03 is still yes | |
case $host_vendor in | ||
motorola) | ||
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared ob | ||
ject|dynamic lib) M[0-9][0-9]* Version [0-9]' | ||
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | ||
;; | ||
ncr) | ||
lt_cv_deplibs_check_method=pass_all | ||
;; | ||
sequent) | ||
lt_cv_file_magic_cmd='/bin/file' | ||
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared ob | ||
ject|dynamic lib )' | ||
;; | ||
sni) | ||
lt_cv_file_magic_cmd='/bin/file' | ||
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic li | ||
b" | ||
lt_cv_file_magic_test_file=/lib/libc.so | ||
;; | ||
siemens) | ||
lt_cv_deplibs_check_method=pass_all | ||
;; | ||
pc) | ||
lt_cv_deplibs_check_method=pass_all | ||
;; | ||
esac | ||
;; | ||
tpf*) | test "x$nc_build_f03" = xyes && nc_build_f77=no | |
lt_cv_deplibs_check_method=pass_all | ||
;; | ||
esac | ||
if test "x$nc_build_f90" = xno; then | ||
F90= | ||
# If F77 is set, and FC isn't, then set FC to whatever F77 was set to. | ||
if test x${F77+set} = xset -a x${FC+set} = x; then : | ||
FC=$F77 | ||
fi | fi | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >& | ||
5 | ||
$as_echo "$lt_cv_deplibs_check_method" >&6; } | ||
file_magic_glob= | ||
want_nocaseglob=no | ||
if test "$build" = "$host"; then | ||
case $host_os in | ||
mingw* | pw32*) | ||
if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then | ||
want_nocaseglob=yes | ||
else | ||
file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | ||
| $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` | ||
fi | ||
;; | ||
esac | ||
fi | fi | |
file_magic_cmd=$lt_cv_file_magic_cmd | # See if the fortran 90 build is desired. If so, set some stuff | |
deplibs_check_method=$lt_cv_deplibs_check_method | if test "x$nc_build_f90" = xyes; then | |
test -z "$deplibs_check_method" && deplibs_check_method=unknown | { $as_echo "$as_me:${as_lineno-$LINENO}: setting up Fortran 90" >&5 | |
$as_echo "$as_me: setting up Fortran 90" >&6;} | ||
if test "${F90+set}" != set; then | ||
F90=$FC | ||
fi | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what FC is set to" >&5 | ||
$as_echo_n "checking what FC is set to... " >&6; } | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5 | ||
$as_echo "$FC" >&6; } | ||
if test -n "$ac_tool_prefix"; then | if test "x$nc_build_f03" = xno; then | |
# Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program | # Some f90 compilers change the case of the mod file names. Others | |
name with args. | # require special flags to be set to deal with .f90 files. Find out | |
set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | # about this compiler. | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ac_ext=${ac_fc_srcext-f} | |
$as_echo_n "checking for $ac_word... " >&6; } | ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' | |
if ${ac_cv_prog_DLLTOOL+:} false; then : | ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest | |
.$ac_ext $LIBS >&5' | ||
ac_compiler_gnu=$ac_cv_fc_compiler_gnu | ||
ac_ext=${ac_fc_srcext-f} | ||
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' | ||
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest | ||
.$ac_ext $LIBS >&5' | ||
ac_compiler_gnu=$ac_cv_fc_compiler_gnu | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran flag to compile .f | ||
90 files" >&5 | ||
$as_echo_n "checking for Fortran flag to compile .f90 files... " >&6; } | ||
if ${ac_cv_fc_srcext_f90+:} false; then : | ||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |
else | else | |
if test -n "$DLLTOOL"; then | ac_ext=f90 | |
ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | ac_fcflags_srcext_save=$ac_fcflags_srcext | |
else | ac_fcflags_srcext= | |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ac_cv_fc_srcext_f90=unknown | |
for as_dir in $PATH | case $ac_ext in #( | |
do | [fF]77) ac_try=f77;; #( | |
IFS=$as_save_IFS | *) ac_try=f95;; | |
test -z "$as_dir" && as_dir=. | esac | |
for ac_exec_ext in '' $ac_executable_extensions; do | for ac_flag in none -qsuffix=f=f90 -Tf "-x $ac_try"; do | |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | test "x$ac_flag" != xnone && ac_fcflags_srcext="$ac_flag" | |
ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" | cat > conftest.$ac_ext <<_ACEOF | |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > | program main | |
&5 | ||
break 2 | ||
fi | ||
done | ||
done | ||
IFS=$as_save_IFS | ||
end | ||
_ACEOF | ||
if ac_fn_fc_try_compile "$LINENO"; then : | ||
ac_cv_fc_srcext_f90=$ac_flag; break | ||
fi | fi | |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
done | ||
rm -f conftest.$ac_objext conftest.f90 | ||
ac_fcflags_srcext=$ac_fcflags_srcext_save | ||
fi | fi | |
DLLTOOL=$ac_cv_prog_DLLTOOL | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_srcext_f90" >&5 | |
if test -n "$DLLTOOL"; then | $as_echo "$ac_cv_fc_srcext_f90" >&6; } | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 | if test "x$ac_cv_fc_srcext_f90" = xunknown; then | |
$as_echo "$DLLTOOL" >&6; } | as_fn_error $? "Fortran could not compile .f90 files" "$LINENO" 5 | |
else | else | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ac_fc_srcext=f90 | |
$as_echo "no" >&6; } | if test "x$ac_cv_fc_srcext_f90" = xnone; then | |
fi | ac_fcflags_srcext="" | |
FCFLAGS_f90="" | ||
else | ||
ac_fcflags_srcext=$ac_cv_fc_srcext_f90 | ||
FCFLAGS_f90=$ac_cv_fc_srcext_f90 | ||
fi | ||
fi | fi | |
if test -z "$ac_cv_prog_DLLTOOL"; then | ac_ext=${ac_fc_srcext-f} | |
ac_ct_DLLTOOL=$DLLTOOL | ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' | |
# Extract the first word of "dlltool", so it can be a program name with args. | ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest | |
set dummy dlltool; ac_word=$2 | .$ac_ext $LIBS >&5' | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu | |
$as_echo_n "checking for $ac_word... " >&6; } | ||
if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : | ac_ext=c | |
ac_cpp='$CPP $CPPFLAGS' | ||
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ | ||
LIBS >&5' | ||
ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking fortran 90 modules inclusion f | ||
lag" >&5 | ||
$as_echo_n "checking fortran 90 modules inclusion flag... " >&6; } | ||
if ${ax_cv_f90_modflag+:} false; then : | ||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |
else | else | |
if test -n "$ac_ct_DLLTOOL"; then | ac_ext=${ac_fc_srcext-f} | |
ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' | |
else | ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest | |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | .$ac_ext $LIBS >&5' | |
for as_dir in $PATH | ac_compiler_gnu=$ac_cv_fc_compiler_gnu | |
do | ||
IFS=$as_save_IFS | i=0 | |
test -z "$as_dir" && as_dir=. | while test \( -f tmpdir_$i \) -o \( -d tmpdir_$i \) ; do | |
for ac_exec_ext in '' $ac_executable_extensions; do | i=`expr $i + 1` | |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
ac_cv_prog_ac_ct_DLLTOOL="dlltool" | ||
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > | ||
&5 | ||
break 2 | ||
fi | ||
done | done | |
done | mkdir tmpdir_$i | |
IFS=$as_save_IFS | cd tmpdir_$i | |
cat > conftest.$ac_ext <<_ACEOF | ||
module conftest_module | ||
contains | ||
subroutine conftest_routine | ||
write(*,'(a)') 'gotcha!' | ||
end subroutine conftest_routine | ||
end module conftest_module | ||
_ACEOF | ||
if ac_fn_fc_try_compile "$LINENO"; then : | ||
fi | fi | |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
cd .. | ||
ax_cv_f90_modflag="not found" | ||
for ax_flag in "-I" "-M" "-p"; do | ||
if test "$ax_cv_f90_modflag" = "not found" ; then | ||
ax_save_FCFLAGS="$FCFLAGS" | ||
FCFLAGS="$ax_save_FCFLAGS ${ax_flag}tmpdir_$i" | ||
cat > conftest.$ac_ext <<_ACEOF | ||
program conftest_program | ||
use conftest_module | ||
call conftest_routine | ||
end program conftest_program | ||
_ACEOF | ||
if ac_fn_fc_try_compile "$LINENO"; then : | ||
ax_cv_f90_modflag="$ax_flag" | ||
fi | fi | |
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
if test -n "$ac_ct_DLLTOOL"; then | FCFLAGS="$ax_save_FCFLAGS" | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 | fi | |
$as_echo "$ac_ct_DLLTOOL" >&6; } | done | |
else | rm -fr tmpdir_$i | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | if test "$ax_flag" = "not found" ; then | |
$as_echo "no" >&6; } | as_fn_error $? "unable to find compiler flag for modules inclusion" "$LINENO" | |
5 | ||
fi | fi | |
ac_ext=c | ||
ac_cpp='$CPP $CPPFLAGS' | ||
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ | ||
LIBS >&5' | ||
ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
if test "x$ac_ct_DLLTOOL" = x; then | ||
DLLTOOL="false" | ||
else | ||
case $cross_compiling:$ac_tool_warned in | ||
yes:) | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed | ||
with host triplet" >&5 | ||
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2 | ||
;} | ||
ac_tool_warned=yes ;; | ||
esac | ||
DLLTOOL=$ac_ct_DLLTOOL | ||
fi | ||
else | ||
DLLTOOL="$ac_cv_prog_DLLTOOL" | ||
fi | fi | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_f90_modflag" >&5 | ||
$as_echo "$ax_cv_f90_modflag" >&6; } | ||
MOD_FLAG=${ax_cv_f90_modflag} | ||
test -z "$DLLTOOL" && DLLTOOL=dlltool | fi | |
fi | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and l | if test "x$nc_build_f03" = xyes; then | |
ink libraries" >&5 | BUILD_F03_TRUE= | |
$as_echo_n "checking how to associate runtime and link libraries... " >&6; } | BUILD_F03_FALSE='#' | |
if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : | ||
$as_echo_n "(cached) " >&6 | ||
else | else | |
lt_cv_sharedlib_from_linklib_cmd='unknown' | BUILD_F03_TRUE='#' | |
BUILD_F03_FALSE= | ||
case $host_os in | fi | |
cygwin* | mingw* | pw32* | cegcc*) | ||
# two different shell functions defined in ltmain.sh | # Set up libtool. | |
# decide which to use based on capabilities of $DLLTOOL | { $as_echo "$as_me:${as_lineno-$LINENO}: setting up libtool" >&5 | |
case `$DLLTOOL --help 2>&1` in | $as_echo "$as_me: setting up libtool" >&6;} | |
*--identify-strict*) | ||
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib | case `pwd` in | |
;; | *\ * | *\ *) | |
*) | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well | |
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback | with whitespace in \`pwd\`" >&5 | |
;; | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\` | |
esac | " >&2;} ;; | |
;; | ||
*) | ||
# fallback: assume linklib IS sharedlib | ||
lt_cv_sharedlib_from_linklib_cmd="$ECHO" | ||
;; | ||
esac | esac | |
macro_version='2.4.6' | ||
macro_revision='2.4.6' | ||
ltmain=$ac_aux_dir/ltmain.sh | ||
# Backslashify metacharacters that are still active within | ||
# double-quoted strings. | ||
sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | ||
# Same as above, but do not quote variable references. | ||
double_quote_subst='s/\(["`\\]\)/\\\1/g' | ||
# Sed substitution to delay expansion of an escaped shell variable in a | ||
# double_quote_subst'ed string. | ||
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | ||
# Sed substitution to delay expansion of an escaped single quote. | ||
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | ||
# Sed substitution to avoid accidental globbing in evaled expressions | ||
no_glob_subst='s/\*/\\\*/g' | ||
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ | ||
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | ||
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | ||
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 | ||
$as_echo_n "checking how to print strings... " >&6; } | ||
# Test print first, because it will be a builtin if present. | ||
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ | ||
test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | ||
ECHO='print -r --' | ||
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | ||
ECHO='printf %s\n' | ||
else | ||
# Use this function as a fallback that always works. | ||
func_fallback_echo () | ||
{ | ||
eval 'cat <<_LTECHO_EOF | ||
$1 | ||
_LTECHO_EOF' | ||
} | ||
ECHO='func_fallback_echo' | ||
fi | fi | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_c | ||
md" >&5 | ||
$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } | ||
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd | ||
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO | ||
if test -n "$ac_tool_prefix"; then | # func_echo_all arg... | |
for ac_prog in ar | # Invoke $ECHO with all args, space-separated. | |
do | func_echo_all () | |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a progra | { | |
m name with args. | $ECHO "" | |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | } | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
$as_echo_n "checking for $ac_word... " >&6; } | case $ECHO in | |
if ${ac_cv_prog_AR+:} false; then : | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 | |
$as_echo "printf" >&6; } ;; | ||
print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 | ||
$as_echo "print -r" >&6; } ;; | ||
*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 | ||
$as_echo "cat" >&6; } ;; | ||
esac | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not trunca | ||
te output" >&5 | ||
$as_echo_n "checking for a sed that does not truncate output... " >&6; } | ||
if ${ac_cv_path_SED+:} false; then : | ||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |
else | else | |
if test -n "$AR"; then | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbb | |
ac_cv_prog_AR="$AR" # Let the user override the test. | bbbbbbbbbbbbb/ | |
else | for ac_i in 1 2 3 4 5 6 7; do | |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ac_script="$ac_script$as_nl$ac_script" | |
done | ||
echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | ||
{ ac_script=; unset ac_script;} | ||
if test -z "$SED"; then | ||
ac_path_SED_found=false | ||
# Loop through the user's path and test for each of PROGNAME-LIST | ||
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
for as_dir in $PATH | for as_dir in $PATH | |
do | do | |
IFS=$as_save_IFS | IFS=$as_save_IFS | |
test -z "$as_dir" && as_dir=. | test -z "$as_dir" && as_dir=. | |
for ac_prog in sed gsed; do | ||
for ac_exec_ext in '' $ac_executable_extensions; do | for ac_exec_ext in '' $ac_executable_extensions; do | |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
ac_cv_prog_AR="$ac_tool_prefix$ac_prog" | as_fn_executable_p "$ac_path_SED" || continue | |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > | # Check for GNU ac_path_SED and select it if it is found. | |
&5 | # Check for GNU $ac_path_SED | |
break 2 | case `"$ac_path_SED" --version 2>&1` in | |
fi | *GNU*) | |
done | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
*) | ||
ac_count=0 | ||
$as_echo_n 0123456789 >"conftest.in" | ||
while : | ||
do | ||
cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
mv "conftest.tmp" "conftest.in" | ||
cp "conftest.in" "conftest.nl" | ||
$as_echo '' >> "conftest.nl" | ||
"$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null | | ||
| break | ||
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
as_fn_arith $ac_count + 1 && ac_count=$as_val | ||
if test $ac_count -gt ${ac_path_SED_max-0}; then | ||
# Best one so far, save it but keep looking for a better one | ||
ac_cv_path_SED="$ac_path_SED" | ||
ac_path_SED_max=$ac_count | ||
fi | ||
# 10*(2^10) chars as input seems more than enough | ||
test $ac_count -gt 10 && break | ||
done | done | |
IFS=$as_save_IFS | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
esac | ||
fi | $ac_path_SED_found && break 3 | |
fi | done | |
AR=$ac_cv_prog_AR | done | |
if test -n "$AR"; then | done | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | IFS=$as_save_IFS | |
$as_echo "$AR" >&6; } | if test -z "$ac_cv_path_SED"; then | |
as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 | ||
fi | ||
else | else | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ac_cv_path_SED=$SED | |
$as_echo "no" >&6; } | ||
fi | fi | |
test -n "$AR" && break | ||
done | ||
fi | fi | |
if test -z "$AR"; then | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
ac_ct_AR=$AR | $as_echo "$ac_cv_path_SED" >&6; } | |
for ac_prog in ar | SED="$ac_cv_path_SED" | |
do | rm -f conftest.sed | |
# Extract the first word of "$ac_prog", so it can be a program name with args. | ||
set dummy $ac_prog; ac_word=$2 | test -z "$SED" && SED=sed | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | Xsed="$SED -e 1s/^X//" | |
$as_echo_n "checking for $ac_word... " >&6; } | ||
if ${ac_cv_prog_ac_ct_AR+:} false; then : | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lin | |
es and -e" >&5 | ||
$as_echo_n "checking for grep that handles long lines and -e... " >&6; } | ||
if ${ac_cv_path_GREP+:} false; then : | ||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |
else | else | |
if test -n "$ac_ct_AR"; then | if test -z "$GREP"; then | |
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | ac_path_GREP_found=false | |
else | # Loop through the user's path and test for each of PROGNAME-LIST | |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
for as_dir in $PATH | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
do | do | |
IFS=$as_save_IFS | IFS=$as_save_IFS | |
test -z "$as_dir" && as_dir=. | test -z "$as_dir" && as_dir=. | |
for ac_prog in grep ggrep; do | ||
for ac_exec_ext in '' $ac_executable_extensions; do | for ac_exec_ext in '' $ac_executable_extensions; do | |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
ac_cv_prog_ac_ct_AR="$ac_prog" | as_fn_executable_p "$ac_path_GREP" || continue | |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > | # Check for GNU ac_path_GREP and select it if it is found. | |
&5 | # Check for GNU $ac_path_GREP | |
break 2 | case `"$ac_path_GREP" --version 2>&1` in | |
fi | *GNU*) | |
done | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
*) | ||
ac_count=0 | ||
$as_echo_n 0123456789 >"conftest.in" | ||
while : | ||
do | ||
cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
mv "conftest.tmp" "conftest.in" | ||
cp "conftest.in" "conftest.nl" | ||
$as_echo 'GREP' >> "conftest.nl" | ||
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest. | ||
out" 2>/dev/null || break | ||
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
as_fn_arith $ac_count + 1 && ac_count=$as_val | ||
if test $ac_count -gt ${ac_path_GREP_max-0}; then | ||
# Best one so far, save it but keep looking for a better one | ||
ac_cv_path_GREP="$ac_path_GREP" | ||
ac_path_GREP_max=$ac_count | ||
fi | ||
# 10*(2^10) chars as input seems more than enough | ||
test $ac_count -gt 10 && break | ||
done | done | |
IFS=$as_save_IFS | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
esac | ||
fi | $ac_path_GREP_found && break 3 | |
fi | done | |
ac_ct_AR=$ac_cv_prog_ac_ct_AR | done | |
if test -n "$ac_ct_AR"; then | done | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | IFS=$as_save_IFS | |
$as_echo "$ac_ct_AR" >&6; } | if test -z "$ac_cv_path_GREP"; then | |
as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/us | ||
r/xpg4/bin" "$LINENO" 5 | ||
fi | ||
else | else | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ac_cv_path_GREP=$GREP | |
$as_echo "no" >&6; } | ||
fi | fi | |
test -n "$ac_ct_AR" && break | fi | |
done | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
$as_echo "$ac_cv_path_GREP" >&6; } | ||
GREP="$ac_cv_path_GREP" | ||
if test "x$ac_ct_AR" = x; then | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
AR="false" | $as_echo_n "checking for egrep... " >&6; } | |
else | if ${ac_cv_path_EGREP+:} false; then : | |
case $cross_compiling:$ac_tool_warned in | ||
yes:) | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed | ||
with host triplet" >&5 | ||
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2 | ||
;} | ||
ac_tool_warned=yes ;; | ||
esac | ||
AR=$ac_ct_AR | ||
fi | ||
fi | ||
: ${AR=ar} | ||
: ${AR_FLAGS=cru} | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >& | ||
5 | ||
$as_echo_n "checking for archiver @FILE support... " >&6; } | ||
if ${lt_cv_ar_at_file+:} false; then : | ||
$as_echo_n "(cached) " >&6 | ||
else | ||
lt_cv_ar_at_file=no | ||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
/* end confdefs.h. */ | ||
int | ||
main () | ||
{ | ||
; | ||
return 0; | ||
} | ||
_ACEOF | ||
if ac_fn_c_try_compile "$LINENO"; then : | ||
echo conftest.$ac_objext > conftest.lst | ||
lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' | ||
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | ||
(eval $lt_ar_try) 2>&5 | ||
ac_status=$? | ||
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
test $ac_status = 0; } | ||
if test "$ac_status" -eq 0; then | ||
# Ensure the archiver fails upon bogus file names. | ||
rm -f conftest.$ac_objext libconftest.a | ||
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | ||
(eval $lt_ar_try) 2>&5 | ||
ac_status=$? | ||
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
test $ac_status = 0; } | ||
if test "$ac_status" -ne 0; then | ||
lt_cv_ar_at_file=@ | ||
fi | ||
fi | ||
rm -f conftest.* libconftest.a | ||
fi | ||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
fi | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 | ||
$as_echo "$lt_cv_ar_at_file" >&6; } | ||
if test "x$lt_cv_ar_at_file" = xno; then | ||
archiver_list_spec= | ||
else | ||
archiver_list_spec=$lt_cv_ar_at_file | ||
fi | ||
if test -n "$ac_tool_prefix"; then | ||
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program n | ||
ame with args. | ||
set dummy ${ac_tool_prefix}strip; ac_word=$2 | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
$as_echo_n "checking for $ac_word... " >&6; } | ||
if ${ac_cv_prog_STRIP+:} false; then : | ||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |
else | else | |
if test -n "$STRIP"; then | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | then ac_cv_path_EGREP="$GREP -E" | |
else | else | |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | if test -z "$EGREP"; then | |
for as_dir in $PATH | ac_path_EGREP_found=false | |
# Loop through the user's path and test for each of PROGNAME-LIST | ||
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
do | do | |
IFS=$as_save_IFS | IFS=$as_save_IFS | |
test -z "$as_dir" && as_dir=. | test -z "$as_dir" && as_dir=. | |
for ac_prog in egrep; do | ||
for ac_exec_ext in '' $ac_executable_extensions; do | for ac_exec_ext in '' $ac_executable_extensions; do | |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
ac_cv_prog_STRIP="${ac_tool_prefix}strip" | as_fn_executable_p "$ac_path_EGREP" || continue | |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > | # Check for GNU ac_path_EGREP and select it if it is found. | |
&5 | # Check for GNU $ac_path_EGREP | |
break 2 | case `"$ac_path_EGREP" --version 2>&1` in | |
fi | *GNU*) | |
done | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
*) | ||
ac_count=0 | ||
$as_echo_n 0123456789 >"conftest.in" | ||
while : | ||
do | ||
cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
mv "conftest.tmp" "conftest.in" | ||
cp "conftest.in" "conftest.nl" | ||
$as_echo 'EGREP' >> "conftest.nl" | ||
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || bre | ||
ak | ||
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
as_fn_arith $ac_count + 1 && ac_count=$as_val | ||
if test $ac_count -gt ${ac_path_EGREP_max-0}; then | ||
# Best one so far, save it but keep looking for a better one | ||
ac_cv_path_EGREP="$ac_path_EGREP" | ||
ac_path_EGREP_max=$ac_count | ||
fi | ||
# 10*(2^10) chars as input seems more than enough | ||
test $ac_count -gt 10 && break | ||
done | done | |
IFS=$as_save_IFS | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
esac | ||
fi | $ac_path_EGREP_found && break 3 | |
fi | done | |
STRIP=$ac_cv_prog_STRIP | done | |
if test -n "$STRIP"; then | done | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | IFS=$as_save_IFS | |
$as_echo "$STRIP" >&6; } | if test -z "$ac_cv_path_EGREP"; then | |
as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/u | ||
sr/xpg4/bin" "$LINENO" 5 | ||
fi | ||
else | else | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ac_cv_path_EGREP=$EGREP | |
$as_echo "no" >&6; } | ||
fi | fi | |
fi | ||
fi | fi | |
if test -z "$ac_cv_prog_STRIP"; then | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
ac_ct_STRIP=$STRIP | $as_echo "$ac_cv_path_EGREP" >&6; } | |
# Extract the first word of "strip", so it can be a program name with args. | EGREP="$ac_cv_path_EGREP" | |
set dummy strip; ac_word=$2 | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 | |
$as_echo_n "checking for $ac_word... " >&6; } | $as_echo_n "checking for fgrep... " >&6; } | |
if ${ac_cv_prog_ac_ct_STRIP+:} false; then : | if ${ac_cv_path_FGREP+:} false; then : | |
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |
else | else | |
if test -n "$ac_ct_STRIP"; then | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 | |
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | then ac_cv_path_FGREP="$GREP -F" | |
else | else | |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | if test -z "$FGREP"; then | |
for as_dir in $PATH | ac_path_FGREP_found=false | |
# Loop through the user's path and test for each of PROGNAME-LIST | ||
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
do | do | |
IFS=$as_save_IFS | IFS=$as_save_IFS | |
test -z "$as_dir" && as_dir=. | test -z "$as_dir" && as_dir=. | |
for ac_prog in fgrep; do | ||
for ac_exec_ext in '' $ac_executable_extensions; do | for ac_exec_ext in '' $ac_executable_extensions; do | |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
ac_cv_prog_ac_ct_STRIP="strip" | as_fn_executable_p "$ac_path_FGREP" || continue | |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > | # Check for GNU ac_path_FGREP and select it if it is found. | |
&5 | # Check for GNU $ac_path_FGREP | |
break 2 | case `"$ac_path_FGREP" --version 2>&1` in | |
fi | *GNU*) | |
done | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
*) | ||
ac_count=0 | ||
$as_echo_n 0123456789 >"conftest.in" | ||
while : | ||
do | ||
cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
mv "conftest.tmp" "conftest.in" | ||
cp "conftest.in" "conftest.nl" | ||
$as_echo 'FGREP' >> "conftest.nl" | ||
"$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
as_fn_arith $ac_count + 1 && ac_count=$as_val | ||
if test $ac_count -gt ${ac_path_FGREP_max-0}; then | ||
# Best one so far, save it but keep looking for a better one | ||
ac_cv_path_FGREP="$ac_path_FGREP" | ||
ac_path_FGREP_max=$ac_count | ||
fi | ||
# 10*(2^10) chars as input seems more than enough | ||
test $ac_count -gt 10 && break | ||
done | done | |
IFS=$as_save_IFS | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
esac | ||
fi | $ac_path_FGREP_found && break 3 | |
fi | done | |
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | done | |
if test -n "$ac_ct_STRIP"; then | done | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | IFS=$as_save_IFS | |
$as_echo "$ac_ct_STRIP" >&6; } | if test -z "$ac_cv_path_FGREP"; then | |
as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/u | ||
sr/xpg4/bin" "$LINENO" 5 | ||
fi | ||
else | else | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ac_cv_path_FGREP=$FGREP | |
$as_echo "no" >&6; } | ||
fi | fi | |
if test "x$ac_ct_STRIP" = x; then | fi | |
STRIP=":" | ||
else | ||
case $cross_compiling:$ac_tool_warned in | ||
yes:) | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed | ||
with host triplet" >&5 | ||
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2 | ||
;} | ||
ac_tool_warned=yes ;; | ||
esac | ||
STRIP=$ac_ct_STRIP | ||
fi | ||
else | ||
STRIP="$ac_cv_prog_STRIP" | ||
fi | fi | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 | ||
$as_echo "$ac_cv_path_FGREP" >&6; } | ||
FGREP="$ac_cv_path_FGREP" | ||
test -z "$STRIP" && STRIP=: | test -z "$GREP" && GREP=grep | |
if test -n "$ac_tool_prefix"; then | # Check whether --with-gnu-ld was given. | |
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program | if test "${with_gnu_ld+set}" = set; then : | |
name with args. | withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes | |
set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
$as_echo_n "checking for $ac_word... " >&6; } | ||
if ${ac_cv_prog_RANLIB+:} false; then : | ||
$as_echo_n "(cached) " >&6 | ||
else | ||
if test -n "$RANLIB"; then | ||
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | ||
else | else | |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | with_gnu_ld=no | |
for as_dir in $PATH | fi | |
do | ||
IFS=$as_save_IFS | ac_prog=ld | |
test -z "$as_dir" && as_dir=. | if test yes = "$GCC"; then | |
for ac_exec_ext in '' $ac_executable_extensions; do | # Check if gcc -print-prog-name=ld gives a path. | |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | $as_echo_n "checking for ld used by $CC... " >&6; } | |
case $host in | ||
*-*-mingw*) | ||
# gcc leaves a trailing carriage return, which upsets mingw | ||
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | ||
*) | ||
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | ||
esac | ||
case $ac_prog in | ||
# Accept absolute paths. | ||
[\\/]* | ?:[\\/]*) | ||
re_direlt='/[^/][^/]*/\.\./' | ||
# Canonicalize the pathname of ld | ||
ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | ||
while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | ||
ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | ||
done | ||
test -z "$LD" && LD=$ac_prog | ||
;; | ||
"") | ||
# If it fails, then pretend we aren't using GCC. | ||
ac_prog=ld | ||
;; | ||
*) | ||
# If it is relative, then search for the first ld in PATH. | ||
with_gnu_ld=unknown | ||
;; | ||
esac | ||
elif test yes = "$with_gnu_ld"; then | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | ||
$as_echo_n "checking for GNU ld... " >&6; } | ||
else | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | ||
$as_echo_n "checking for non-GNU ld... " >&6; } | ||
fi | ||
if ${lt_cv_path_LD+:} false; then : | ||
$as_echo_n "(cached) " >&6 | ||
else | ||
if test -z "$LD"; then | ||
lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR | ||
for ac_dir in $PATH; do | ||
IFS=$lt_save_ifs | ||
test -z "$ac_dir" && ac_dir=. | ||
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | ||
lt_cv_path_LD=$ac_dir/$ac_prog | ||
# Check to see if the program is GNU ld. I'd rather use --version, | ||
# but apparently some variants of GNU ld only accept -v. | ||
# Break only if it was the GNU/non-GNU ld that we prefer. | ||
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | ||
*GNU* | *'with BFD'*) | ||
test no != "$with_gnu_ld" && break | ||
;; | ||
*) | ||
test yes != "$with_gnu_ld" && break | ||
;; | ||
esac | ||
fi | ||
done | ||
IFS=$lt_save_ifs | ||
else | ||
lt_cv_path_LD=$LD # Let the user override the test with a path. | ||
fi | ||
fi | ||
LD=$lt_cv_path_LD | ||
if test -n "$LD"; then | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | ||
$as_echo "$LD" >&6; } | ||
else | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
$as_echo "no" >&6; } | ||
fi | ||
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" | ||
>&5 | ||
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | ||
if ${lt_cv_prog_gnu_ld+:} false; then : | ||
$as_echo_n "(cached) " >&6 | ||
else | ||
# I'd rather use --version here, but apparently some GNU lds only accept -v. | ||
case `$LD -v 2>&1 </dev/null` in | ||
*GNU* | *'with BFD'*) | ||
lt_cv_prog_gnu_ld=yes | ||
;; | ||
*) | ||
lt_cv_prog_gnu_ld=no | ||
;; | ||
esac | ||
fi | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | ||
$as_echo "$lt_cv_prog_gnu_ld" >&6; } | ||
with_gnu_ld=$lt_cv_prog_gnu_ld | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name | ||
lister (nm)" >&5 | ||
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | ||
if ${lt_cv_path_NM+:} false; then : | ||
$as_echo_n "(cached) " >&6 | ||
else | ||
if test -n "$NM"; then | ||
# Let the user override the test. | ||
lt_cv_path_NM=$NM | ||
else | ||
lt_nm_to_check=${ac_tool_prefix}nm | ||
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | ||
lt_nm_to_check="$lt_nm_to_check nm" | ||
fi | ||
for lt_tmp_nm in $lt_nm_to_check; do | ||
lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR | ||
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | ||
IFS=$lt_save_ifs | ||
test -z "$ac_dir" && ac_dir=. | ||
tmp_nm=$ac_dir/$lt_tmp_nm | ||
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then | ||
# Check to see if the nm accepts a BSD-compat flag. | ||
# Adding the 'sed 1q' prevents false positives on HP-UX, which says: | ||
# nm: unknown option "B" ignored | ||
# Tru64's nm complains that /dev/null is an invalid object file | ||
# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty | ||
case $build_os in | ||
mingw*) lt_bad_file=conftest.nm/nofile ;; | ||
*) lt_bad_file=/dev/null ;; | ||
esac | ||
case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in | ||
*$lt_bad_file* | *'Invalid file or object type'*) | ||
lt_cv_path_NM="$tmp_nm -B" | ||
break 2 | ||
;; | ||
*) | ||
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | ||
*/dev/null*) | ||
lt_cv_path_NM="$tmp_nm -p" | ||
break 2 | ||
;; | ||
*) | ||
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | ||
continue # so that we can try to find one that supports BSD flags | ||
;; | ||
esac | ||
;; | ||
esac | ||
fi | ||
done | ||
IFS=$lt_save_ifs | ||
done | ||
: ${lt_cv_path_NM=no} | ||
fi | ||
fi | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 | ||
$as_echo "$lt_cv_path_NM" >&6; } | ||
if test no != "$lt_cv_path_NM"; then | ||
NM=$lt_cv_path_NM | ||
else | ||
# Didn't find any BSD compatible name lister, look for dumpbin. | ||
if test -n "$DUMPBIN"; then : | ||
# Let the user override the test. | ||
else | ||
if test -n "$ac_tool_prefix"; then | ||
for ac_prog in dumpbin "link -dump" | ||
do | ||
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a progra | ||
m name with args. | ||
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
$as_echo_n "checking for $ac_word... " >&6; } | ||
if ${ac_cv_prog_DUMPBIN+:} false; then : | ||
$as_echo_n "(cached) " >&6 | ||
else | ||
if test -n "$DUMPBIN"; then | ||
ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | ||
else | ||
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
for as_dir in $PATH | ||
do | ||
IFS=$as_save_IFS | ||
test -z "$as_dir" && as_dir=. | ||
for ac_exec_ext in '' $ac_executable_extensions; do | ||
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" | ||
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5 | |
break 2 | break 2 | |
fi | fi | |
done | done | |
done | done | |
IFS=$as_save_IFS | IFS=$as_save_IFS | |
fi | fi | |
fi | fi | |
RANLIB=$ac_cv_prog_RANLIB | DUMPBIN=$ac_cv_prog_DUMPBIN | |
if test -n "$RANLIB"; then | if test -n "$DUMPBIN"; then | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 | |
$as_echo "$RANLIB" >&6; } | $as_echo "$DUMPBIN" >&6; } | |
else | else | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
$as_echo "no" >&6; } | $as_echo "no" >&6; } | |
fi | fi | |
test -n "$DUMPBIN" && break | ||
done | ||
fi | fi | |
if test -z "$ac_cv_prog_RANLIB"; then | if test -z "$DUMPBIN"; then | |
ac_ct_RANLIB=$RANLIB | ac_ct_DUMPBIN=$DUMPBIN | |
# Extract the first word of "ranlib", so it can be a program name with args. | for ac_prog in dumpbin "link -dump" | |
set dummy ranlib; ac_word=$2 | do | |
# Extract the first word of "$ac_prog", so it can be a program name with args. | ||
set dummy $ac_prog; ac_word=$2 | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
$as_echo_n "checking for $ac_word... " >&6; } | $as_echo_n "checking for $ac_word... " >&6; } | |
if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : | if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : | |
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |
else | else | |
if test -n "$ac_ct_RANLIB"; then | if test -n "$ac_ct_DUMPBIN"; then | |
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
else | else | |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
for as_dir in $PATH | for as_dir in $PATH | |
do | do | |
IFS=$as_save_IFS | IFS=$as_save_IFS | |
test -z "$as_dir" && as_dir=. | test -z "$as_dir" && as_dir=. | |
for ac_exec_ext in '' $ac_executable_extensions; do | for ac_exec_ext in '' $ac_executable_extensions; do | |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
ac_cv_prog_ac_ct_RANLIB="ranlib" | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" | |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5 | |
break 2 | break 2 | |
fi | fi | |
done | done | |
done | done | |
IFS=$as_save_IFS | IFS=$as_save_IFS | |
fi | fi | |
fi | fi | |
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | |
if test -n "$ac_ct_RANLIB"; then | if test -n "$ac_ct_DUMPBIN"; then | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 | |
$as_echo "$ac_ct_RANLIB" >&6; } | $as_echo "$ac_ct_DUMPBIN" >&6; } | |
else | else | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
$as_echo "no" >&6; } | $as_echo "no" >&6; } | |
fi | fi | |
if test "x$ac_ct_RANLIB" = x; then | test -n "$ac_ct_DUMPBIN" && break | |
RANLIB=":" | done | |
if test "x$ac_ct_DUMPBIN" = x; then | ||
DUMPBIN=":" | ||
else | else | |
case $cross_compiling:$ac_tool_warned in | case $cross_compiling:$ac_tool_warned in | |
yes:) | yes:) | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2 ;} | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2 ;} | |
ac_tool_warned=yes ;; | ac_tool_warned=yes ;; | |
esac | esac | |
RANLIB=$ac_ct_RANLIB | DUMPBIN=$ac_ct_DUMPBIN | |
fi | fi | |
else | ||
RANLIB="$ac_cv_prog_RANLIB" | ||
fi | fi | |
test -z "$RANLIB" && RANLIB=: | case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in | |
*COFF*) | ||
# Determine commands to create old-style static archives. | DUMPBIN="$DUMPBIN -symbols -headers" | |
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | ;; | |
old_postinstall_cmds='chmod 644 $oldlib' | *) | |
old_postuninstall_cmds= | DUMPBIN=: | |
;; | ||
esac | ||
fi | ||
if test -n "$RANLIB"; then | if test : != "$DUMPBIN"; then | |
case $host_os in | NM=$DUMPBIN | |
openbsd*) | fi | |
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" | ||
;; | ||
*) | ||
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" | ||
;; | ||
esac | ||
old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" | ||
fi | fi | |
test -z "$NM" && NM=nm | ||
case $host_os in | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interfac | |
darwin*) | e" >&5 | |
lock_old_archive_extraction=yes ;; | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
*) | if ${lt_cv_nm_interface+:} false; then : | |
lock_old_archive_extraction=no ;; | ||
esac | ||
# If no C compiler was specified, use CC. | ||
LTCC=${LTCC-"$CC"} | ||
# If no C compiler flags were specified, use CFLAGS. | ||
LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | ||
# Allow CC to be a program name with arguments. | ||
compiler=$CC | ||
# Check for command to grab the raw symbol name followed by C symbol from nm. | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output fr | ||
om $compiler object" >&5 | ||
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; | ||
} | ||
if ${lt_cv_sys_global_symbol_pipe+:} false; then : | ||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |
else | else | |
lt_cv_nm_interface="BSD nm" | ||
# These are sane defaults that work on at least a few old systems. | echo "int some_variable = 0;" > conftest.$ac_ext | |
# [They come from Ultrix. What could be older than Ultrix?!! ;)] | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) | |
(eval "$ac_compile" 2>conftest.err) | ||
# Character class describing NM global symbol codes. | cat conftest.err >&5 | |
symcode='[BCDEGRST]' | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) | |
(eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) | ||
cat conftest.err >&5 | ||
(eval echo "\"\$as_me:$LINENO: output\"" >&5) | ||
cat conftest.out >&5 | ||
if $GREP 'External.*some_variable' conftest.out > /dev/null; then | ||
lt_cv_nm_interface="MS dumpbin" | ||
fi | ||
rm -f conftest* | ||
fi | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 | ||
$as_echo "$lt_cv_nm_interface" >&6; } | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 | ||
$as_echo_n "checking whether ln -s works... " >&6; } | ||
LN_S=$as_ln_s | ||
if test "$LN_S" = "ln -s"; then | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
$as_echo "yes" >&6; } | ||
else | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 | ||
$as_echo "no, using $LN_S" >&6; } | ||
fi | ||
# find the maximum length of command line arguments | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command | ||
line arguments" >&5 | ||
$as_echo_n "checking the maximum length of command line arguments... " >&6; } | ||
if ${lt_cv_sys_max_cmd_len+:} false; then : | ||
$as_echo_n "(cached) " >&6 | ||
else | ||
i=0 | ||
teststring=ABCD | ||
case $build_os in | ||
msdosdjgpp*) | ||
# On DJGPP, this test can blow up pretty badly due to problems in libc | ||
# (any single argument exceeding 2000 bytes causes a buffer overrun | ||
# during glob expansion). Even if it were fixed, the result of this | ||
# check would be larger than it should be. | ||
lt_cv_sys_max_cmd_len=12288; # 12K is about right | ||
;; | ||
gnu*) | ||
# Under GNU Hurd, this test is not required because there is | ||
# no limit to the length of command line arguments. | ||
# Libtool will interpret -1 as no limit whatsoever | ||
lt_cv_sys_max_cmd_len=-1; | ||
;; | ||
cygwin* | mingw* | cegcc*) | ||
# On Win9x/ME, this test blows up -- it succeeds, but takes | ||
# about 5 minutes as the teststring grows exponentially. | ||
# Worse, since 9x/ME are not pre-emptively multitasking, | ||
# you end up with a "frozen" computer, even though with patience | ||
# the test eventually succeeds (with a max line length of 256k). | ||
# Instead, let's just punt: use the minimum linelength reported by | ||
# all of the supported platforms: 8192 (on NT/2K/XP). | ||
lt_cv_sys_max_cmd_len=8192; | ||
;; | ||
mint*) | ||
# On MiNT this can take a long time and run out of memory. | ||
lt_cv_sys_max_cmd_len=8192; | ||
;; | ||
amigaos*) | ||
# On AmigaOS with pdksh, this test takes hours, literally. | ||
# So we just punt and use a minimum line length of 8192. | ||
lt_cv_sys_max_cmd_len=8192; | ||
;; | ||
bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) | ||
# This has been around since 386BSD, at least. Likely further. | ||
if test -x /sbin/sysctl; then | ||
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | ||
elif test -x /usr/sbin/sysctl; then | ||
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | ||
else | ||
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | ||
fi | ||
# And add a safety zone | ||
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | ||
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | ||
;; | ||
interix*) | ||
# We know the value 262144 and hardcode it with a safety zone (like BSD) | ||
lt_cv_sys_max_cmd_len=196608 | ||
;; | ||
os2*) | ||
# The test takes a long time on OS/2. | ||
lt_cv_sys_max_cmd_len=8192 | ||
;; | ||
osf*) | ||
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | ||
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | ||
# nice to cause kernel panics so lets avoid the loop below. | ||
# First set a reasonable default. | ||
lt_cv_sys_max_cmd_len=16384 | ||
# | ||
if test -x /sbin/sysconfig; then | ||
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | ||
*1*) lt_cv_sys_max_cmd_len=-1 ;; | ||
esac | ||
fi | ||
;; | ||
sco3.2v5*) | ||
lt_cv_sys_max_cmd_len=102400 | ||
;; | ||
sysv5* | sco5v6* | sysv4.2uw2*) | ||
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | ||
if test -n "$kargmax"; then | ||
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | ||
else | ||
lt_cv_sys_max_cmd_len=32768 | ||
fi | ||
;; | ||
*) | ||
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` | ||
if test -n "$lt_cv_sys_max_cmd_len" && \ | ||
test undefined != "$lt_cv_sys_max_cmd_len"; then | ||
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | ||
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | ||
else | ||
# Make teststring a little bigger before we do anything with it. | ||
# a 1K string should be a reasonable start. | ||
for i in 1 2 3 4 5 6 7 8; do | ||
teststring=$teststring$teststring | ||
done | ||
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | ||
# If test is not a shell built-in, we'll probably end up computing a | ||
# maximum length that is only half of the actual maximum length, but | ||
# we can't tell. | ||
while { test X`env echo "$teststring$teststring" 2>/dev/null` \ | ||
= "X$teststring$teststring"; } >/dev/null 2>&1 && | ||
test 17 != "$i" # 1/2 MB should be enough | ||
do | ||
i=`expr $i + 1` | ||
teststring=$teststring$teststring | ||
done | ||
# Only check the string length outside the loop. | ||
lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | ||
teststring= | ||
# Add a significant safety factor because C++ compilers can tack on | ||
# massive amounts of additional arguments before passing them to the | ||
# linker. It appears as though 1/2 is a usable value. | ||
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | ||
fi | ||
;; | ||
esac | ||
fi | ||
if test -n "$lt_cv_sys_max_cmd_len"; then | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 | ||
$as_echo "$lt_cv_sys_max_cmd_len" >&6; } | ||
else | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | ||
$as_echo "none" >&6; } | ||
fi | ||
max_cmd_len=$lt_cv_sys_max_cmd_len | ||
: ${CP="cp -f"} | ||
: ${MV="mv -f"} | ||
: ${RM="rm -f"} | ||
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | ||
lt_unset=unset | ||
else | ||
lt_unset=false | ||
fi | ||
# test EBCDIC or ASCII | ||
case `echo X|tr X '\101'` in | ||
A) # ASCII based system | ||
# \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | ||
lt_SP2NL='tr \040 \012' | ||
lt_NL2SP='tr \015\012 \040\040' | ||
;; | ||
*) # EBCDIC based system | ||
lt_SP2NL='tr \100 \n' | ||
lt_NL2SP='tr \r\n \100\100' | ||
;; | ||
esac | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file nam | ||
es to $host format" >&5 | ||
$as_echo_n "checking how to convert $build file names to $host format... " >&6; | ||
} | ||
if ${lt_cv_to_host_file_cmd+:} false; then : | ||
$as_echo_n "(cached) " >&6 | ||
else | ||
case $host in | ||
*-*-mingw* ) | ||
case $build in | ||
*-*-mingw* ) # actually msys | ||
lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 | ||
;; | ||
*-*-cygwin* ) | ||
lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 | ||
;; | ||
* ) # otherwise, assume *nix | ||
lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 | ||
;; | ||
esac | ||
;; | ||
*-*-cygwin* ) | ||
case $build in | ||
*-*-mingw* ) # actually msys | ||
lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin | ||
;; | ||
*-*-cygwin* ) | ||
lt_cv_to_host_file_cmd=func_convert_file_noop | ||
;; | ||
* ) # otherwise, assume *nix | ||
lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin | ||
;; | ||
esac | ||
;; | ||
* ) # unhandled hosts (and "normal" native builds) | ||
lt_cv_to_host_file_cmd=func_convert_file_noop | ||
;; | ||
esac | ||
fi | ||
to_host_file_cmd=$lt_cv_to_host_file_cmd | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 | ||
$as_echo "$lt_cv_to_host_file_cmd" >&6; } | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file nam | ||
es to toolchain format" >&5 | ||
$as_echo_n "checking how to convert $build file names to toolchain format... " > | ||
&6; } | ||
if ${lt_cv_to_tool_file_cmd+:} false; then : | ||
$as_echo_n "(cached) " >&6 | ||
else | ||
#assume ordinary cross tools, or native build. | ||
lt_cv_to_tool_file_cmd=func_convert_file_noop | ||
case $host in | ||
*-*-mingw* ) | ||
case $build in | ||
*-*-mingw* ) # actually msys | ||
lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 | ||
;; | ||
esac | ||
;; | ||
esac | ||
fi | ||
to_tool_file_cmd=$lt_cv_to_tool_file_cmd | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 | ||
$as_echo "$lt_cv_to_tool_file_cmd" >&6; } | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload objec | ||
t files" >&5 | ||
$as_echo_n "checking for $LD option to reload object files... " >&6; } | ||
if ${lt_cv_ld_reload_flag+:} false; then : | ||
$as_echo_n "(cached) " >&6 | ||
else | ||
lt_cv_ld_reload_flag='-r' | ||
fi | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 | ||
$as_echo "$lt_cv_ld_reload_flag" >&6; } | ||
reload_flag=$lt_cv_ld_reload_flag | ||
case $reload_flag in | ||
"" | " "*) ;; | ||
*) reload_flag=" $reload_flag" ;; | ||
esac | ||
reload_cmds='$LD$reload_flag -o $output$reload_objs' | ||
case $host_os in | ||
cygwin* | mingw* | pw32* | cegcc*) | ||
if test yes != "$GCC"; then | ||
reload_cmds=false | ||
fi | ||
;; | ||
darwin*) | ||
if test yes = "$GCC"; then | ||
reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' | ||
else | ||
reload_cmds='$LD$reload_flag -o $output$reload_objs' | ||
fi | ||
;; | ||
esac | ||
if test -n "$ac_tool_prefix"; then | ||
# Extract the first word of "${ac_tool_prefix}objdump", so it can be a program | ||
name with args. | ||
set dummy ${ac_tool_prefix}objdump; ac_word=$2 | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
$as_echo_n "checking for $ac_word... " >&6; } | ||
if ${ac_cv_prog_OBJDUMP+:} false; then : | ||
$as_echo_n "(cached) " >&6 | ||
else | ||
if test -n "$OBJDUMP"; then | ||
ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | ||
else | ||
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
for as_dir in $PATH | ||
do | ||
IFS=$as_save_IFS | ||
test -z "$as_dir" && as_dir=. | ||
for ac_exec_ext in '' $ac_executable_extensions; do | ||
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" | ||
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > | ||
&5 | ||
break 2 | ||
fi | ||
done | ||
done | ||
IFS=$as_save_IFS | ||
fi | ||
fi | ||
OBJDUMP=$ac_cv_prog_OBJDUMP | ||
if test -n "$OBJDUMP"; then | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | ||
$as_echo "$OBJDUMP" >&6; } | ||
else | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
$as_echo "no" >&6; } | ||
fi | ||
fi | ||
if test -z "$ac_cv_prog_OBJDUMP"; then | ||
ac_ct_OBJDUMP=$OBJDUMP | ||
# Extract the first word of "objdump", so it can be a program name with args. | ||
set dummy objdump; ac_word=$2 | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
$as_echo_n "checking for $ac_word... " >&6; } | ||
if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : | ||
$as_echo_n "(cached) " >&6 | ||
else | ||
if test -n "$ac_ct_OBJDUMP"; then | ||
ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | ||
else | ||
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
for as_dir in $PATH | ||
do | ||
IFS=$as_save_IFS | ||
test -z "$as_dir" && as_dir=. | ||
for ac_exec_ext in '' $ac_executable_extensions; do | ||
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
ac_cv_prog_ac_ct_OBJDUMP="objdump" | ||
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > | ||
&5 | ||
break 2 | ||
fi | ||
done | ||
done | ||
IFS=$as_save_IFS | ||
fi | ||
fi | ||
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | ||
if test -n "$ac_ct_OBJDUMP"; then | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 | ||
$as_echo "$ac_ct_OBJDUMP" >&6; } | ||
else | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
$as_echo "no" >&6; } | ||
fi | ||
if test "x$ac_ct_OBJDUMP" = x; then | ||
OBJDUMP="false" | ||
else | ||
case $cross_compiling:$ac_tool_warned in | ||
yes:) | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed | ||
with host triplet" >&5 | ||
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2 | ||
;} | ||
ac_tool_warned=yes ;; | ||
esac | ||
OBJDUMP=$ac_ct_OBJDUMP | ||
fi | ||
else | ||
OBJDUMP="$ac_cv_prog_OBJDUMP" | ||
fi | ||
test -z "$OBJDUMP" && OBJDUMP=objdump | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent lib | ||
raries" >&5 | ||
$as_echo_n "checking how to recognize dependent libraries... " >&6; } | ||
if ${lt_cv_deplibs_check_method+:} false; then : | ||
$as_echo_n "(cached) " >&6 | ||
else | ||
lt_cv_file_magic_cmd='$MAGIC_CMD' | ||
lt_cv_file_magic_test_file= | ||
lt_cv_deplibs_check_method='unknown' | ||
# Need to set the preceding variable on all platforms that support | ||
# interlibrary dependencies. | ||
# 'none' -- dependencies not supported. | ||
# 'unknown' -- same as none, but documents that we really don't know. | ||
# 'pass_all' -- all dependencies passed with no checks. | ||
# 'test_compile' -- check by making test program. | ||
# 'file_magic [[regex]]' -- check by looking for files in library path | ||
# that responds to the $file_magic_cmd with a given extended regex. | ||
# If you have 'file' or equivalent on your system and you're not sure | ||
# whether 'pass_all' will *always* work, you probably want this one. | ||
case $host_os in | ||
aix[4-9]*) | ||
lt_cv_deplibs_check_method=pass_all | ||
;; | ||
beos*) | ||
lt_cv_deplibs_check_method=pass_all | ||
;; | ||
bsdi[45]*) | ||
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared obje | ||
ct|dynamic lib)' | ||
lt_cv_file_magic_cmd='/usr/bin/file -L' | ||
lt_cv_file_magic_test_file=/shlib/libc.so | ||
;; | ||
cygwin*) | ||
# func_win32_libid is a shell function defined in ltmain.sh | ||
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | ||
lt_cv_file_magic_cmd='func_win32_libid' | ||
;; | ||
mingw* | pw32*) | ||
# Base MSYS/MinGW do not provide the 'file' command needed by | ||
# func_win32_libid shell function, so use a weaker test based on 'objdump', | ||
# unless we find 'file', for example because we are cross-compiling. | ||
if ( file / ) >/dev/null 2>&1; then | ||
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | ||
lt_cv_file_magic_cmd='func_win32_libid' | ||
else | ||
# Keep this pattern in sync with the one in func_win32_libid. | ||
lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture | ||
: i386)?|pe-arm-wince|pe-x86-64)' | ||
lt_cv_file_magic_cmd='$OBJDUMP -f' | ||
fi | ||
;; | ||
cegcc*) | ||
# use the weaker test based on 'objdump'. See mingw*. | ||
lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architect | ||
ure: arm)?' | ||
lt_cv_file_magic_cmd='$OBJDUMP -f' | ||
;; | ||
darwin* | rhapsody*) | ||
lt_cv_deplibs_check_method=pass_all | ||
;; | ||
freebsd* | dragonfly*) | ||
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | ||
case $host_cpu in | ||
i*86 ) | ||
# Not sure whether the presence of OpenBSD here was a mistake. | ||
# Let's accept both of them until this is cleared up. | ||
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]8 | ||
6 (compact )?demand paged shared library' | ||
lt_cv_file_magic_cmd=/usr/bin/file | ||
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | ||
;; | ||
esac | ||
else | ||
lt_cv_deplibs_check_method=pass_all | ||
fi | ||
;; | ||
haiku*) | ||
lt_cv_deplibs_check_method=pass_all | ||
;; | ||
hpux10.20* | hpux11*) | ||
lt_cv_file_magic_cmd=/usr/bin/file | ||
case $host_cpu in | ||
ia64*) | ||
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) sha | ||
red object file - IA64' | ||
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | ||
;; | ||
hppa*64*) | ||
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])( | ||
-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' | ||
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | ||
;; | ||
*) | ||
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9] | ||
) shared library' | ||
lt_cv_file_magic_test_file=/usr/lib/libc.sl | ||
;; | ||
esac | ||
;; | ||
interix[3-9]*) | ||
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | ||
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | ||
;; | ||
irix5* | irix6* | nonstopux*) | ||
case $LD in | ||
*-32|*"-32 ") libmagic=32-bit;; | ||
*-n32|*"-n32 ") libmagic=N32;; | ||
*-64|*"-64 ") libmagic=64-bit;; | ||
*) libmagic=never-match;; | ||
esac | ||
lt_cv_deplibs_check_method=pass_all | ||
;; | ||
# This must be glibc/ELF. | ||
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) | ||
lt_cv_deplibs_check_method=pass_all | ||
;; | ||
netbsd* | netbsdelf*-gnu) | ||
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | ||
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pi | ||
c\.a)$' | ||
else | ||
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | ||
fi | ||
;; | ||
newos6*) | ||
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable| | ||
dynamic lib)' | ||
lt_cv_file_magic_cmd=/usr/bin/file | ||
lt_cv_file_magic_test_file=/usr/lib/libnls.so | ||
;; | ||
*nto* | *qnx*) | ||
lt_cv_deplibs_check_method=pass_all | ||
;; | ||
openbsd* | bitrig*) | ||
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then | ||
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.s | ||
o|_pic\.a)$' | ||
else | ||
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pi | ||
c\.a)$' | ||
fi | ||
;; | ||
osf3* | osf4* | osf5*) | ||
lt_cv_deplibs_check_method=pass_all | ||
;; | ||
rdos*) | ||
lt_cv_deplibs_check_method=pass_all | ||
;; | ||
solaris*) | ||
lt_cv_deplibs_check_method=pass_all | ||
;; | ||
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | ||
lt_cv_deplibs_check_method=pass_all | ||
;; | ||
sysv4 | sysv4.3*) | ||
case $host_vendor in | ||
motorola) | ||
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared ob | ||
ject|dynamic lib) M[0-9][0-9]* Version [0-9]' | ||
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | ||
;; | ||
ncr) | ||
lt_cv_deplibs_check_method=pass_all | ||
;; | ||
sequent) | ||
lt_cv_file_magic_cmd='/bin/file' | ||
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared ob | ||
ject|dynamic lib )' | ||
;; | ||
sni) | ||
lt_cv_file_magic_cmd='/bin/file' | ||
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic li | ||
b" | ||
lt_cv_file_magic_test_file=/lib/libc.so | ||
;; | ||
siemens) | ||
lt_cv_deplibs_check_method=pass_all | ||
;; | ||
pc) | ||
lt_cv_deplibs_check_method=pass_all | ||
;; | ||
esac | ||
;; | ||
tpf*) | ||
lt_cv_deplibs_check_method=pass_all | ||
;; | ||
os2*) | ||
lt_cv_deplibs_check_method=pass_all | ||
;; | ||
esac | ||
fi | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >& | ||
5 | ||
$as_echo "$lt_cv_deplibs_check_method" >&6; } | ||
file_magic_glob= | ||
want_nocaseglob=no | ||
if test "$build" = "$host"; then | ||
case $host_os in | ||
mingw* | pw32*) | ||
if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then | ||
want_nocaseglob=yes | ||
else | ||
file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | ||
| $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` | ||
fi | ||
;; | ||
esac | ||
fi | ||
file_magic_cmd=$lt_cv_file_magic_cmd | ||
deplibs_check_method=$lt_cv_deplibs_check_method | ||
test -z "$deplibs_check_method" && deplibs_check_method=unknown | ||
if test -n "$ac_tool_prefix"; then | ||
# Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program | ||
name with args. | ||
set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
$as_echo_n "checking for $ac_word... " >&6; } | ||
if ${ac_cv_prog_DLLTOOL+:} false; then : | ||
$as_echo_n "(cached) " >&6 | ||
else | ||
if test -n "$DLLTOOL"; then | ||
ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | ||
else | ||
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
for as_dir in $PATH | ||
do | ||
IFS=$as_save_IFS | ||
test -z "$as_dir" && as_dir=. | ||
for ac_exec_ext in '' $ac_executable_extensions; do | ||
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" | ||
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > | ||
&5 | ||
break 2 | ||
fi | ||
done | ||
done | ||
IFS=$as_save_IFS | ||
fi | ||
fi | ||
DLLTOOL=$ac_cv_prog_DLLTOOL | ||
if test -n "$DLLTOOL"; then | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 | ||
$as_echo "$DLLTOOL" >&6; } | ||
else | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
$as_echo "no" >&6; } | ||
fi | ||
fi | ||
if test -z "$ac_cv_prog_DLLTOOL"; then | ||
ac_ct_DLLTOOL=$DLLTOOL | ||
# Extract the first word of "dlltool", so it can be a program name with args. | ||
set dummy dlltool; ac_word=$2 | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
$as_echo_n "checking for $ac_word... " >&6; } | ||
if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : | ||
$as_echo_n "(cached) " >&6 | ||
else | ||
if test -n "$ac_ct_DLLTOOL"; then | ||
ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | ||
else | ||
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
for as_dir in $PATH | ||
do | ||
IFS=$as_save_IFS | ||
test -z "$as_dir" && as_dir=. | ||
for ac_exec_ext in '' $ac_executable_extensions; do | ||
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
ac_cv_prog_ac_ct_DLLTOOL="dlltool" | ||
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > | ||
&5 | ||
break 2 | ||
fi | ||
done | ||
done | ||
IFS=$as_save_IFS | ||
fi | ||
fi | ||
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL | ||
if test -n "$ac_ct_DLLTOOL"; then | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 | ||
$as_echo "$ac_ct_DLLTOOL" >&6; } | ||
else | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
$as_echo "no" >&6; } | ||
fi | ||
if test "x$ac_ct_DLLTOOL" = x; then | ||
DLLTOOL="false" | ||
else | ||
case $cross_compiling:$ac_tool_warned in | ||
yes:) | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed | ||
with host triplet" >&5 | ||
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2 | ||
;} | ||
ac_tool_warned=yes ;; | ||
esac | ||
DLLTOOL=$ac_ct_DLLTOOL | ||
fi | ||
else | ||
DLLTOOL="$ac_cv_prog_DLLTOOL" | ||
fi | ||
test -z "$DLLTOOL" && DLLTOOL=dlltool | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and l | ||
ink libraries" >&5 | ||
$as_echo_n "checking how to associate runtime and link libraries... " >&6; } | ||
if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : | ||
$as_echo_n "(cached) " >&6 | ||
else | ||
lt_cv_sharedlib_from_linklib_cmd='unknown' | ||
case $host_os in | ||
cygwin* | mingw* | pw32* | cegcc*) | ||
# two different shell functions defined in ltmain.sh; | ||
# decide which one to use based on capabilities of $DLLTOOL | ||
case `$DLLTOOL --help 2>&1` in | ||
*--identify-strict*) | ||
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib | ||
;; | ||
*) | ||
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback | ||
;; | ||
esac | ||
;; | ||
*) | ||
# fallback: assume linklib IS sharedlib | ||
lt_cv_sharedlib_from_linklib_cmd=$ECHO | ||
;; | ||
esac | ||
fi | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_c | ||
md" >&5 | ||
$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } | ||
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd | ||
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO | ||
if test -n "$ac_tool_prefix"; then | ||
for ac_prog in ar | ||
do | ||
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a progra | ||
m name with args. | ||
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
$as_echo_n "checking for $ac_word... " >&6; } | ||
if ${ac_cv_prog_AR+:} false; then : | ||
$as_echo_n "(cached) " >&6 | ||
else | ||
if test -n "$AR"; then | ||
ac_cv_prog_AR="$AR" # Let the user override the test. | ||
else | ||
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
for as_dir in $PATH | ||
do | ||
IFS=$as_save_IFS | ||
test -z "$as_dir" && as_dir=. | ||
for ac_exec_ext in '' $ac_executable_extensions; do | ||
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
ac_cv_prog_AR="$ac_tool_prefix$ac_prog" | ||
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > | ||
&5 | ||
break 2 | ||
fi | ||
done | ||
done | ||
IFS=$as_save_IFS | ||
fi | ||
fi | ||
AR=$ac_cv_prog_AR | ||
if test -n "$AR"; then | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | ||
$as_echo "$AR" >&6; } | ||
else | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
$as_echo "no" >&6; } | ||
fi | ||
test -n "$AR" && break | ||
done | ||
fi | ||
if test -z "$AR"; then | ||
ac_ct_AR=$AR | ||
for ac_prog in ar | ||
do | ||
# Extract the first word of "$ac_prog", so it can be a program name with args. | ||
set dummy $ac_prog; ac_word=$2 | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
$as_echo_n "checking for $ac_word... " >&6; } | ||
if ${ac_cv_prog_ac_ct_AR+:} false; then : | ||
$as_echo_n "(cached) " >&6 | ||
else | ||
if test -n "$ac_ct_AR"; then | ||
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | ||
else | ||
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
for as_dir in $PATH | ||
do | ||
IFS=$as_save_IFS | ||
test -z "$as_dir" && as_dir=. | ||
for ac_exec_ext in '' $ac_executable_extensions; do | ||
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
ac_cv_prog_ac_ct_AR="$ac_prog" | ||
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > | ||
&5 | ||
break 2 | ||
fi | ||
done | ||
done | ||
IFS=$as_save_IFS | ||
fi | ||
fi | ||
ac_ct_AR=$ac_cv_prog_ac_ct_AR | ||
if test -n "$ac_ct_AR"; then | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | ||
$as_echo "$ac_ct_AR" >&6; } | ||
else | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
$as_echo "no" >&6; } | ||
fi | ||
test -n "$ac_ct_AR" && break | ||
done | ||
if test "x$ac_ct_AR" = x; then | ||
AR="false" | ||
else | ||
case $cross_compiling:$ac_tool_warned in | ||
yes:) | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed | ||
with host triplet" >&5 | ||
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2 | ||
;} | ||
ac_tool_warned=yes ;; | ||
esac | ||
AR=$ac_ct_AR | ||
fi | ||
fi | ||
: ${AR=ar} | ||
: ${AR_FLAGS=cru} | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >& | ||
5 | ||
$as_echo_n "checking for archiver @FILE support... " >&6; } | ||
if ${lt_cv_ar_at_file+:} false; then : | ||
$as_echo_n "(cached) " >&6 | ||
else | ||
lt_cv_ar_at_file=no | ||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
/* end confdefs.h. */ | ||
int | ||
main () | ||
{ | ||
; | ||
return 0; | ||
} | ||
_ACEOF | ||
if ac_fn_c_try_compile "$LINENO"; then : | ||
echo conftest.$ac_objext > conftest.lst | ||
lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' | ||
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | ||
(eval $lt_ar_try) 2>&5 | ||
ac_status=$? | ||
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
test $ac_status = 0; } | ||
if test 0 -eq "$ac_status"; then | ||
# Ensure the archiver fails upon bogus file names. | ||
rm -f conftest.$ac_objext libconftest.a | ||
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | ||
(eval $lt_ar_try) 2>&5 | ||
ac_status=$? | ||
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
test $ac_status = 0; } | ||
if test 0 -ne "$ac_status"; then | ||
lt_cv_ar_at_file=@ | ||
fi | ||
fi | ||
rm -f conftest.* libconftest.a | ||
fi | ||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
fi | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 | ||
$as_echo "$lt_cv_ar_at_file" >&6; } | ||
if test no = "$lt_cv_ar_at_file"; then | ||
archiver_list_spec= | ||
else | ||
archiver_list_spec=$lt_cv_ar_at_file | ||
fi | ||
if test -n "$ac_tool_prefix"; then | ||
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program n | ||
ame with args. | ||
set dummy ${ac_tool_prefix}strip; ac_word=$2 | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
$as_echo_n "checking for $ac_word... " >&6; } | ||
if ${ac_cv_prog_STRIP+:} false; then : | ||
$as_echo_n "(cached) " >&6 | ||
else | ||
if test -n "$STRIP"; then | ||
ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | ||
else | ||
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
for as_dir in $PATH | ||
do | ||
IFS=$as_save_IFS | ||
test -z "$as_dir" && as_dir=. | ||
for ac_exec_ext in '' $ac_executable_extensions; do | ||
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
ac_cv_prog_STRIP="${ac_tool_prefix}strip" | ||
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > | ||
&5 | ||
break 2 | ||
fi | ||
done | ||
done | ||
IFS=$as_save_IFS | ||
fi | ||
fi | ||
STRIP=$ac_cv_prog_STRIP | ||
if test -n "$STRIP"; then | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | ||
$as_echo "$STRIP" >&6; } | ||
else | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
$as_echo "no" >&6; } | ||
fi | ||
fi | ||
if test -z "$ac_cv_prog_STRIP"; then | ||
ac_ct_STRIP=$STRIP | ||
# Extract the first word of "strip", so it can be a program name with args. | ||
set dummy strip; ac_word=$2 | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
$as_echo_n "checking for $ac_word... " >&6; } | ||
if ${ac_cv_prog_ac_ct_STRIP+:} false; then : | ||
$as_echo_n "(cached) " >&6 | ||
else | ||
if test -n "$ac_ct_STRIP"; then | ||
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | ||
else | ||
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
for as_dir in $PATH | ||
do | ||
IFS=$as_save_IFS | ||
test -z "$as_dir" && as_dir=. | ||
for ac_exec_ext in '' $ac_executable_extensions; do | ||
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
ac_cv_prog_ac_ct_STRIP="strip" | ||
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > | ||
&5 | ||
break 2 | ||
fi | ||
done | ||
done | ||
IFS=$as_save_IFS | ||
fi | ||
fi | ||
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | ||
if test -n "$ac_ct_STRIP"; then | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | ||
$as_echo "$ac_ct_STRIP" >&6; } | ||
else | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
$as_echo "no" >&6; } | ||
fi | ||
if test "x$ac_ct_STRIP" = x; then | ||
STRIP=":" | ||
else | ||
case $cross_compiling:$ac_tool_warned in | ||
yes:) | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed | ||
with host triplet" >&5 | ||
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2 | ||
;} | ||
ac_tool_warned=yes ;; | ||
esac | ||
STRIP=$ac_ct_STRIP | ||
fi | ||
else | ||
STRIP="$ac_cv_prog_STRIP" | ||
fi | ||
test -z "$STRIP" && STRIP=: | ||
if test -n "$ac_tool_prefix"; then | ||
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program | ||
name with args. | ||
set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
$as_echo_n "checking for $ac_word... " >&6; } | ||
if ${ac_cv_prog_RANLIB+:} false; then : | ||
$as_echo_n "(cached) " >&6 | ||
else | ||
if test -n "$RANLIB"; then | ||
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | ||
else | ||
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
for as_dir in $PATH | ||
do | ||
IFS=$as_save_IFS | ||
test -z "$as_dir" && as_dir=. | ||
for ac_exec_ext in '' $ac_executable_extensions; do | ||
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | ||
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > | ||
&5 | ||
break 2 | ||
fi | ||
done | ||
done | ||
IFS=$as_save_IFS | ||
fi | ||
fi | ||
RANLIB=$ac_cv_prog_RANLIB | ||
if test -n "$RANLIB"; then | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | ||
$as_echo "$RANLIB" >&6; } | ||
else | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
$as_echo "no" >&6; } | ||
fi | ||
fi | ||
if test -z "$ac_cv_prog_RANLIB"; then | ||
ac_ct_RANLIB=$RANLIB | ||
# Extract the first word of "ranlib", so it can be a program name with args. | ||
set dummy ranlib; ac_word=$2 | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
$as_echo_n "checking for $ac_word... " >&6; } | ||
if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : | ||
$as_echo_n "(cached) " >&6 | ||
else | ||
if test -n "$ac_ct_RANLIB"; then | ||
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | ||
else | ||
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
for as_dir in $PATH | ||
do | ||
IFS=$as_save_IFS | ||
test -z "$as_dir" && as_dir=. | ||
for ac_exec_ext in '' $ac_executable_extensions; do | ||
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
ac_cv_prog_ac_ct_RANLIB="ranlib" | ||
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > | ||
&5 | ||
break 2 | ||
fi | ||
done | ||
done | ||
IFS=$as_save_IFS | ||
fi | ||
fi | ||
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | ||
if test -n "$ac_ct_RANLIB"; then | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | ||
$as_echo "$ac_ct_RANLIB" >&6; } | ||
else | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
$as_echo "no" >&6; } | ||
fi | ||
if test "x$ac_ct_RANLIB" = x; then | ||
RANLIB=":" | ||
else | ||
case $cross_compiling:$ac_tool_warned in | ||
yes:) | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed | ||
with host triplet" >&5 | ||
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2 | ||
;} | ||
ac_tool_warned=yes ;; | ||
esac | ||
RANLIB=$ac_ct_RANLIB | ||
fi | ||
else | ||
RANLIB="$ac_cv_prog_RANLIB" | ||
fi | ||
test -z "$RANLIB" && RANLIB=: | ||
# Determine commands to create old-style static archives. | ||
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | ||
old_postinstall_cmds='chmod 644 $oldlib' | ||
old_postuninstall_cmds= | ||
if test -n "$RANLIB"; then | ||
case $host_os in | ||
bitrig* | openbsd*) | ||
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" | ||
;; | ||
*) | ||
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" | ||
;; | ||
esac | ||
old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" | ||
fi | ||
case $host_os in | ||
darwin*) | ||
lock_old_archive_extraction=yes ;; | ||
*) | ||
lock_old_archive_extraction=no ;; | ||
esac | ||
# If no C compiler was specified, use CC. | ||
LTCC=${LTCC-"$CC"} | ||
# If no C compiler flags were specified, use CFLAGS. | ||
LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | ||
# Allow CC to be a program name with arguments. | ||
compiler=$CC | ||
# Check for command to grab the raw symbol name followed by C symbol from nm. | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output fr | ||
om $compiler object" >&5 | ||
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; | ||
} | ||
if ${lt_cv_sys_global_symbol_pipe+:} false; then : | ||
$as_echo_n "(cached) " >&6 | ||
else | ||
# These are sane defaults that work on at least a few old systems. | ||
# [They come from Ultrix. What could be older than Ultrix?!! ;)] | ||
# Character class describing NM global symbol codes. | ||
symcode='[BCDEGRST]' | ||
# Regexp to match symbols that can be accessed directly from C. | # Regexp to match symbols that can be accessed directly from C. | |
sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
# Define system-specific variables. | # Define system-specific variables. | |
case $host_os in | case $host_os in | |
aix*) | aix*) | |
symcode='[BCDT]' | symcode='[BCDT]' | |
;; | ;; | |
cygwin* | mingw* | pw32* | cegcc*) | cygwin* | mingw* | pw32* | cegcc*) | |
symcode='[ABCDGISTW]' | symcode='[ABCDGISTW]' | |
;; | ;; | |
hpux*) | hpux*) | |
if test "$host_cpu" = ia64; then | if test ia64 = "$host_cpu"; then | |
symcode='[ABCDEGRST]' | symcode='[ABCDEGRST]' | |
fi | fi | |
;; | ;; | |
irix* | nonstopux*) | irix* | nonstopux*) | |
symcode='[BCDEGRST]' | symcode='[BCDEGRST]' | |
;; | ;; | |
osf*) | osf*) | |
symcode='[BCDEGQRST]' | symcode='[BCDEGQRST]' | |
;; | ;; | |
solaris*) | solaris*) | |
skipping to change at line 7512 | skipping to change at line 8355 | |
symcode='[DFNSTU]' | symcode='[DFNSTU]' | |
;; | ;; | |
esac | esac | |
# If we're using GNU nm, then use its standard symbol codes. | # If we're using GNU nm, then use its standard symbol codes. | |
case `$NM -V 2>&1` in | case `$NM -V 2>&1` in | |
*GNU* | *'with BFD'*) | *GNU* | *'with BFD'*) | |
symcode='[ABCDGIRSTW]' ;; | symcode='[ABCDGIRSTW]' ;; | |
esac | esac | |
if test "$lt_cv_nm_interface" = "MS dumpbin"; then | ||
# Gets list of data symbols to import. | ||
lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" | ||
# Adjust the below global symbol transforms to fixup imported variables. | ||
lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" | ||
lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" | ||
lt_c_name_lib_hook="\ | ||
-e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ | ||
-e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" | ||
else | ||
# Disable hooks by default. | ||
lt_cv_sys_global_symbol_to_import= | ||
lt_cdecl_hook= | ||
lt_c_name_hook= | ||
lt_c_name_lib_hook= | ||
fi | ||
# Transform an extracted symbol line into a proper C declaration. | # Transform an extracted symbol line into a proper C declaration. | |
# Some systems (esp. on ia64) link data and code symbols differently, | # Some systems (esp. on ia64) link data and code symbols differently, | |
# so use this general approach. | # so use this general approach. | |
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' | lt_cv_sys_global_symbol_to_cdecl="sed -n"\ | |
-e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | $lt_cdecl_hook\ | |
" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ | ||
" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" | ||
# Transform an extracted symbol line into symbol name and symbol address | # Transform an extracted symbol line into symbol name and symbol address | |
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\ | lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ | |
"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void | $lt_c_name_hook\ | |
*) \&\2},/p'" | " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ | |
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ | " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" | |
]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ { | ||
\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", ( | # Transform an extracted symbol line into symbol name with lib prefix and | |
void *) \&\2},/p'" | # symbol address. | |
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ | ||
$lt_c_name_lib_hook\ | ||
" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ | ||
" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ | ||
" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" | ||
# Handle CRLF in mingw tool chain | # Handle CRLF in mingw tool chain | |
opt_cr= | opt_cr= | |
case $build_os in | case $build_os in | |
mingw*) | mingw*) | |
opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
;; | ;; | |
esac | esac | |
# Try without a prefix underscore, then with it. | # Try without a prefix underscore, then with it. | |
for ac_symprfx in "" "_"; do | for ac_symprfx in "" "_"; do | |
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
symxfrm="\\1 $ac_symprfx\\2 \\2" | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
# Write the raw and C identifiers. | # Write the raw and C identifiers. | |
if test "$lt_cv_nm_interface" = "MS dumpbin"; then | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
# Fake it for dumpbin and say T for any non-static function | # Fake it for dumpbin and say T for any non-static function, | |
# and D for any global variable. | # D for any global variable and I for any imported variable. | |
# Also find C++ and __fastcall symbols from MSVC++, | # Also find C++ and __fastcall symbols from MSVC++, | |
# which start with @ or ?. | # which start with @ or ?. | |
lt_cv_sys_global_symbol_pipe="$AWK '"\ | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
" {last_section=section; section=\$ 3};"\ | " {last_section=section; section=\$ 3};"\ | |
" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ | " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ | |
" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ | ||
" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ | ||
" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ | ||
" \$ 0!~/External *\|/{next};"\ | " \$ 0!~/External *\|/{next};"\ | |
" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
" {if(hide[section]) next};"\ | " {if(hide[section]) next};"\ | |
" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ | |
" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ | |
" s[1]~/^[@?]/{print s[1], s[1]; next};"\ | " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ | |
" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ | |
" ' prfx=^$ac_symprfx" | " ' prfx=^$ac_symprfx" | |
else | else | |
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
fi | fi | |
lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto /d'" | lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto /d'" | |
# Check to see that the pipe works correctly. | # Check to see that the pipe works correctly. | |
pipe_works=no | pipe_works=no | |
rm -f conftest* | rm -f conftest* | |
skipping to change at line 7599 | skipping to change at line 8475 | |
mv -f "$nlist"T "$nlist" | mv -f "$nlist"T "$nlist" | |
else | else | |
rm -f "$nlist"T | rm -f "$nlist"T | |
fi | fi | |
# Make sure that we snagged all the symbols we need. | # Make sure that we snagged all the symbols we need. | |
if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
cat <<_LT_EOF > conftest.$ac_ext | cat <<_LT_EOF > conftest.$ac_ext | |
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. * / | /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. * / | |
#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) | #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE | |
/* DATA imports from DLLs on WIN32 con't be const, because runtime | /* DATA imports from DLLs on WIN32 can't be const, because runtime | |
relocations are performed -- see ld's documentation on pseudo-relocs. */ | relocations are performed -- see ld's documentation on pseudo-relocs. */ | |
# define LT_DLSYM_CONST | # define LT_DLSYM_CONST | |
#elif defined(__osf__) | #elif defined __osf__ | |
/* This system does not cope well with relocations in const data. */ | /* This system does not cope well with relocations in const data. */ | |
# define LT_DLSYM_CONST | # define LT_DLSYM_CONST | |
#else | #else | |
# define LT_DLSYM_CONST const | # define LT_DLSYM_CONST const | |
#endif | #endif | |
#ifdef __cplusplus | #ifdef __cplusplus | |
extern "C" { | extern "C" { | |
#endif | #endif | |
skipping to change at line 7629 | skipping to change at line 8505 | |
/* The mapping between symbol names and symbols. */ | /* The mapping between symbol names and symbols. */ | |
LT_DLSYM_CONST struct { | LT_DLSYM_CONST struct { | |
const char *name; | const char *name; | |
void *address; | void *address; | |
} | } | |
lt__PROGRAM__LTX_preloaded_symbols[] = | lt__PROGRAM__LTX_preloaded_symbols[] = | |
{ | { | |
{ "@PROGRAM@", (void *) 0 }, | { "@PROGRAM@", (void *) 0 }, | |
_LT_EOF | _LT_EOF | |
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$ nlist" | $GREP -v main >> conftest.$ac_ext | |
cat <<\_LT_EOF >> conftest.$ac_ext | cat <<\_LT_EOF >> conftest.$ac_ext | |
{0, (void *) 0} | {0, (void *) 0} | |
}; | }; | |
/* This works around a problem in FreeBSD linker */ | /* This works around a problem in FreeBSD linker */ | |
#ifdef FREEBSD_WORKAROUND | #ifdef FREEBSD_WORKAROUND | |
static const void *lt_preloaded_setup() { | static const void *lt_preloaded_setup() { | |
return lt__PROGRAM__LTX_preloaded_symbols; | return lt__PROGRAM__LTX_preloaded_symbols; | |
} | } | |
#endif | #endif | |
#ifdef __cplusplus | #ifdef __cplusplus | |
} | } | |
#endif | #endif | |
_LT_EOF | _LT_EOF | |
# Now try linking the two files. | # Now try linking the two files. | |
mv conftest.$ac_objext conftstm.$ac_objext | mv conftest.$ac_objext conftstm.$ac_objext | |
lt_globsym_save_LIBS=$LIBS | lt_globsym_save_LIBS=$LIBS | |
lt_globsym_save_CFLAGS=$CFLAGS | lt_globsym_save_CFLAGS=$CFLAGS | |
LIBS="conftstm.$ac_objext" | LIBS=conftstm.$ac_objext | |
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >& 5 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >& 5 | |
(eval $ac_link) 2>&5 | (eval $ac_link) 2>&5 | |
ac_status=$? | ac_status=$? | |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
test $ac_status = 0; } && test -s conftest${ac_exeext}; then | test $ac_status = 0; } && test -s conftest$ac_exeext; then | |
pipe_works=yes | pipe_works=yes | |
fi | fi | |
LIBS=$lt_globsym_save_LIBS | LIBS=$lt_globsym_save_LIBS | |
CFLAGS=$lt_globsym_save_CFLAGS | CFLAGS=$lt_globsym_save_CFLAGS | |
else | else | |
echo "cannot find nm_test_func in $nlist" >&5 | echo "cannot find nm_test_func in $nlist" >&5 | |
fi | fi | |
else | else | |
echo "cannot find nm_test_var in $nlist" >&5 | echo "cannot find nm_test_var in $nlist" >&5 | |
fi | fi | |
else | else | |
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
fi | fi | |
else | else | |
echo "$progname: failed program was:" >&5 | echo "$progname: failed program was:" >&5 | |
cat conftest.$ac_ext >&5 | cat conftest.$ac_ext >&5 | |
fi | fi | |
rm -rf conftest* conftst* | rm -rf conftest* conftst* | |
# Do not use the global_symbol_pipe unless it works. | # Do not use the global_symbol_pipe unless it works. | |
if test "$pipe_works" = yes; then | if test yes = "$pipe_works"; then | |
break | break | |
else | else | |
lt_cv_sys_global_symbol_pipe= | lt_cv_sys_global_symbol_pipe= | |
fi | fi | |
done | done | |
fi | fi | |
if test -z "$lt_cv_sys_global_symbol_pipe"; then | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
lt_cv_sys_global_symbol_to_cdecl= | lt_cv_sys_global_symbol_to_cdecl= | |
skipping to change at line 7713 | skipping to change at line 8589 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 | |
$as_echo_n "checking for sysroot... " >&6; } | $as_echo_n "checking for sysroot... " >&6; } | |
# Check whether --with-sysroot was given. | # Check whether --with-sysroot was given. | |
if test "${with_sysroot+set}" = set; then : | if test "${with_sysroot+set}" = set; then : | |
withval=$with_sysroot; | withval=$with_sysroot; | |
else | else | |
with_sysroot=no | with_sysroot=no | |
fi | fi | |
lt_sysroot= | lt_sysroot= | |
case ${with_sysroot} in #( | case $with_sysroot in #( | |
yes) | yes) | |
if test "$GCC" = yes; then | if test yes = "$GCC"; then | |
lt_sysroot=`$CC --print-sysroot 2>/dev/null` | lt_sysroot=`$CC --print-sysroot 2>/dev/null` | |
fi | fi | |
;; #( | ;; #( | |
/*) | /*) | |
lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` | lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` | |
;; #( | ;; #( | |
no|'') | no|'') | |
;; #( | ;; #( | |
*) | *) | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 | |
$as_echo "${with_sysroot}" >&6; } | $as_echo "$with_sysroot" >&6; } | |
as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 | as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 | |
;; | ;; | |
esac | esac | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 | |
$as_echo "${lt_sysroot:-no}" >&6; } | $as_echo "${lt_sysroot:-no}" >&6; } | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 | ||
$as_echo_n "checking for a working dd... " >&6; } | ||
if ${ac_cv_path_lt_DD+:} false; then : | ||
$as_echo_n "(cached) " >&6 | ||
else | ||
printf 0123456789abcdef0123456789abcdef >conftest.i | ||
cat conftest.i conftest.i >conftest2.i | ||
: ${lt_DD:=$DD} | ||
if test -z "$lt_DD"; then | ||
ac_path_lt_DD_found=false | ||
# Loop through the user's path and test for each of PROGNAME-LIST | ||
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
for as_dir in $PATH | ||
do | ||
IFS=$as_save_IFS | ||
test -z "$as_dir" && as_dir=. | ||
for ac_prog in dd; do | ||
for ac_exec_ext in '' $ac_executable_extensions; do | ||
ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" | ||
as_fn_executable_p "$ac_path_lt_DD" || continue | ||
if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then | ||
cmp -s conftest.i conftest.out \ | ||
&& ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: | ||
fi | ||
$ac_path_lt_DD_found && break 3 | ||
done | ||
done | ||
done | ||
IFS=$as_save_IFS | ||
if test -z "$ac_cv_path_lt_DD"; then | ||
: | ||
fi | ||
else | ||
ac_cv_path_lt_DD=$lt_DD | ||
fi | ||
rm -f conftest.i conftest2.i conftest.out | ||
fi | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 | ||
$as_echo "$ac_cv_path_lt_DD" >&6; } | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" | ||
>&5 | ||
$as_echo_n "checking how to truncate binary pipes... " >&6; } | ||
if ${lt_cv_truncate_bin+:} false; then : | ||
$as_echo_n "(cached) " >&6 | ||
else | ||
printf 0123456789abcdef0123456789abcdef >conftest.i | ||
cat conftest.i conftest.i >conftest2.i | ||
lt_cv_truncate_bin= | ||
if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; the | ||
n | ||
cmp -s conftest.i conftest.out \ | ||
&& lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" | ||
fi | ||
rm -f conftest.i conftest2.i conftest.out | ||
test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" | ||
fi | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 | ||
$as_echo "$lt_cv_truncate_bin" >&6; } | ||
# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. | ||
func_cc_basename () | ||
{ | ||
for cc_temp in $*""; do | ||
case $cc_temp in | ||
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | ||
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | ||
\-*) ;; | ||
*) break;; | ||
esac | ||
done | ||
func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%% | ||
"` | ||
} | ||
# Check whether --enable-libtool-lock was given. | # Check whether --enable-libtool-lock was given. | |
if test "${enable_libtool_lock+set}" = set; then : | if test "${enable_libtool_lock+set}" = set; then : | |
enableval=$enable_libtool_lock; | enableval=$enable_libtool_lock; | |
fi | fi | |
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | test no = "$enable_libtool_lock" || enable_libtool_lock=yes | |
# Some flags need to be propagated to the compiler or linker for good | # Some flags need to be propagated to the compiler or linker for good | |
# libtool support. | # libtool support. | |
case $host in | case $host in | |
ia64-*-hpux*) | ia64-*-hpux*) | |
# Find out which ABI we are using. | # Find out what ABI is being produced by ac_compile, and set mode | |
# options accordingly. | ||
echo 'int i;' > conftest.$ac_ext | echo 'int i;' > conftest.$ac_ext | |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
(eval $ac_compile) 2>&5 | (eval $ac_compile) 2>&5 | |
ac_status=$? | ac_status=$? | |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
test $ac_status = 0; }; then | test $ac_status = 0; }; then | |
case `/usr/bin/file conftest.$ac_objext` in | case `/usr/bin/file conftest.$ac_objext` in | |
*ELF-32*) | *ELF-32*) | |
HPUX_IA64_MODE="32" | HPUX_IA64_MODE=32 | |
;; | ;; | |
*ELF-64*) | *ELF-64*) | |
HPUX_IA64_MODE="64" | HPUX_IA64_MODE=64 | |
;; | ;; | |
esac | esac | |
fi | fi | |
rm -rf conftest* | rm -rf conftest* | |
;; | ;; | |
*-*-irix6*) | *-*-irix6*) | |
# Find out which ABI we are using. | # Find out what ABI is being produced by ac_compile, and set linker | |
# options accordingly. | ||
echo '#line '$LINENO' "configure"' > conftest.$ac_ext | echo '#line '$LINENO' "configure"' > conftest.$ac_ext | |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
(eval $ac_compile) 2>&5 | (eval $ac_compile) 2>&5 | |
ac_status=$? | ac_status=$? | |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
test $ac_status = 0; }; then | test $ac_status = 0; }; then | |
if test "$lt_cv_prog_gnu_ld" = yes; then | if test yes = "$lt_cv_prog_gnu_ld"; then | |
case `/usr/bin/file conftest.$ac_objext` in | case `/usr/bin/file conftest.$ac_objext` in | |
*32-bit*) | *32-bit*) | |
LD="${LD-ld} -melf32bsmip" | LD="${LD-ld} -melf32bsmip" | |
;; | ;; | |
*N32*) | *N32*) | |
LD="${LD-ld} -melf32bmipn32" | LD="${LD-ld} -melf32bmipn32" | |
;; | ;; | |
*64-bit*) | *64-bit*) | |
LD="${LD-ld} -melf64bmip" | LD="${LD-ld} -melf64bmip" | |
;; | ;; | |
skipping to change at line 7801 | skipping to change at line 8752 | |
;; | ;; | |
*64-bit*) | *64-bit*) | |
LD="${LD-ld} -64" | LD="${LD-ld} -64" | |
;; | ;; | |
esac | esac | |
fi | fi | |
fi | fi | |
rm -rf conftest* | rm -rf conftest* | |
;; | ;; | |
mips64*-*linux*) | ||
# Find out what ABI is being produced by ac_compile, and set linker | ||
# options accordingly. | ||
echo '#line '$LINENO' "configure"' > conftest.$ac_ext | ||
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | ||
(eval $ac_compile) 2>&5 | ||
ac_status=$? | ||
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
test $ac_status = 0; }; then | ||
emul=elf | ||
case `/usr/bin/file conftest.$ac_objext` in | ||
*32-bit*) | ||
emul="${emul}32" | ||
;; | ||
*64-bit*) | ||
emul="${emul}64" | ||
;; | ||
esac | ||
case `/usr/bin/file conftest.$ac_objext` in | ||
*MSB*) | ||
emul="${emul}btsmip" | ||
;; | ||
*LSB*) | ||
emul="${emul}ltsmip" | ||
;; | ||
esac | ||
case `/usr/bin/file conftest.$ac_objext` in | ||
*N32*) | ||
emul="${emul}n32" | ||
;; | ||
esac | ||
LD="${LD-ld} -m $emul" | ||
fi | ||
rm -rf conftest* | ||
;; | ||
x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ | x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ | |
s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | |
# Find out which ABI we are using. | # Find out what ABI is being produced by ac_compile, and set linker | |
# options accordingly. Note that the listed cases only cover the | ||
# situations where additional linker options are needed (such as when | ||
# doing 32-bit compilation for a host where ld defaults to 64-bit, or | ||
# vice versa); the common cases where no linker options are needed do | ||
# not appear in the list. | ||
echo 'int i;' > conftest.$ac_ext | echo 'int i;' > conftest.$ac_ext | |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
(eval $ac_compile) 2>&5 | (eval $ac_compile) 2>&5 | |
ac_status=$? | ac_status=$? | |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
test $ac_status = 0; }; then | test $ac_status = 0; }; then | |
case `/usr/bin/file conftest.o` in | case `/usr/bin/file conftest.o` in | |
*32-bit*) | *32-bit*) | |
case $host in | case $host in | |
x86_64-*kfreebsd*-gnu) | x86_64-*kfreebsd*-gnu) | |
skipping to change at line 7826 | skipping to change at line 8818 | |
x86_64-*linux*) | x86_64-*linux*) | |
case `/usr/bin/file conftest.o` in | case `/usr/bin/file conftest.o` in | |
*x86-64*) | *x86-64*) | |
LD="${LD-ld} -m elf32_x86_64" | LD="${LD-ld} -m elf32_x86_64" | |
;; | ;; | |
*) | *) | |
LD="${LD-ld} -m elf_i386" | LD="${LD-ld} -m elf_i386" | |
;; | ;; | |
esac | esac | |
;; | ;; | |
powerpc64le-*) | powerpc64le-*linux*) | |
LD="${LD-ld} -m elf32lppclinux" | LD="${LD-ld} -m elf32lppclinux" | |
;; | ;; | |
powerpc64-*) | powerpc64-*linux*) | |
LD="${LD-ld} -m elf32ppclinux" | LD="${LD-ld} -m elf32ppclinux" | |
;; | ;; | |
s390x-*linux*) | s390x-*linux*) | |
LD="${LD-ld} -m elf_s390" | LD="${LD-ld} -m elf_s390" | |
;; | ;; | |
sparc64-*linux*) | sparc64-*linux*) | |
LD="${LD-ld} -m elf32_sparc" | LD="${LD-ld} -m elf32_sparc" | |
;; | ;; | |
esac | esac | |
;; | ;; | |
*64-bit*) | *64-bit*) | |
case $host in | case $host in | |
x86_64-*kfreebsd*-gnu) | x86_64-*kfreebsd*-gnu) | |
LD="${LD-ld} -m elf_x86_64_fbsd" | LD="${LD-ld} -m elf_x86_64_fbsd" | |
;; | ;; | |
x86_64-*linux*) | x86_64-*linux*) | |
LD="${LD-ld} -m elf_x86_64" | LD="${LD-ld} -m elf_x86_64" | |
;; | ;; | |
powerpcle-*) | powerpcle-*linux*) | |
LD="${LD-ld} -m elf64lppc" | LD="${LD-ld} -m elf64lppc" | |
;; | ;; | |
powerpc-*) | powerpc-*linux*) | |
LD="${LD-ld} -m elf64ppc" | LD="${LD-ld} -m elf64ppc" | |
;; | ;; | |
s390*-*linux*|s390*-*tpf*) | s390*-*linux*|s390*-*tpf*) | |
LD="${LD-ld} -m elf64_s390" | LD="${LD-ld} -m elf64_s390" | |
;; | ;; | |
sparc*-*linux*) | sparc*-*linux*) | |
LD="${LD-ld} -m elf64_sparc" | LD="${LD-ld} -m elf64_sparc" | |
;; | ;; | |
esac | esac | |
;; | ;; | |
esac | esac | |
fi | fi | |
rm -rf conftest* | rm -rf conftest* | |
;; | ;; | |
*-*-sco3.2v5*) | *-*-sco3.2v5*) | |
# On SCO OpenServer 5, we need -belf to get full-featured binaries. | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
SAVE_CFLAGS="$CFLAGS" | SAVE_CFLAGS=$CFLAGS | |
CFLAGS="$CFLAGS -belf" | CFLAGS="$CFLAGS -belf" | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 | |
$as_echo_n "checking whether the C compiler needs -belf... " >&6; } | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
if ${lt_cv_cc_needs_belf+:} false; then : | if ${lt_cv_cc_needs_belf+:} false; then : | |
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |
else | else | |
ac_ext=c | ac_ext=c | |
ac_cpp='$CPP $CPPFLAGS' | ac_cpp='$CPP $CPPFLAGS' | |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ LIBS >&5' | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ LIBS >&5' | |
skipping to change at line 7909 | skipping to change at line 8901 | |
conftest$ac_exeext conftest.$ac_ext | conftest$ac_exeext conftest.$ac_ext | |
ac_ext=c | ac_ext=c | |
ac_cpp='$CPP $CPPFLAGS' | ac_cpp='$CPP $CPPFLAGS' | |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ LIBS >&5' | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ LIBS >&5' | |
ac_compiler_gnu=$ac_cv_c_compiler_gnu | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
fi | fi | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 | |
$as_echo "$lt_cv_cc_needs_belf" >&6; } | $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
if test x"$lt_cv_cc_needs_belf" != x"yes"; then | if test yes != "$lt_cv_cc_needs_belf"; then | |
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
CFLAGS="$SAVE_CFLAGS" | CFLAGS=$SAVE_CFLAGS | |
fi | fi | |
;; | ;; | |
*-*solaris*) | *-*solaris*) | |
# Find out which ABI we are using. | # Find out what ABI is being produced by ac_compile, and set linker | |
# options accordingly. | ||
echo 'int i;' > conftest.$ac_ext | echo 'int i;' > conftest.$ac_ext | |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
(eval $ac_compile) 2>&5 | (eval $ac_compile) 2>&5 | |
ac_status=$? | ac_status=$? | |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
test $ac_status = 0; }; then | test $ac_status = 0; }; then | |
case `/usr/bin/file conftest.o` in | case `/usr/bin/file conftest.o` in | |
*64-bit*) | *64-bit*) | |
case $lt_cv_prog_gnu_ld in | case $lt_cv_prog_gnu_ld in | |
yes*) | yes*) | |
case $host in | case $host in | |
i?86-*-solaris*) | i?86-*-solaris*|x86_64-*-solaris*) | |
LD="${LD-ld} -m elf_x86_64" | LD="${LD-ld} -m elf_x86_64" | |
;; | ;; | |
sparc*-*-solaris*) | sparc*-*-solaris*) | |
LD="${LD-ld} -m elf64_sparc" | LD="${LD-ld} -m elf64_sparc" | |
;; | ;; | |
esac | esac | |
# GNU ld 2.21 introduced _sol2 emulations. Use them if available. | # GNU ld 2.21 introduced _sol2 emulations. Use them if available. | |
if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then | if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then | |
LD="${LD-ld}_sol2" | LD=${LD-ld}_sol2 | |
fi | fi | |
;; | ;; | |
*) | *) | |
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
LD="${LD-ld} -64" | LD="${LD-ld} -64" | |
fi | fi | |
;; | ;; | |
esac | esac | |
;; | ;; | |
esac | esac | |
fi | fi | |
rm -rf conftest* | rm -rf conftest* | |
;; | ;; | |
esac | esac | |
need_locks="$enable_libtool_lock" | need_locks=$enable_libtool_lock | |
if test -n "$ac_tool_prefix"; then | if test -n "$ac_tool_prefix"; then | |
# Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. | # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. | |
set dummy ${ac_tool_prefix}mt; ac_word=$2 | set dummy ${ac_tool_prefix}mt; ac_word=$2 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
$as_echo_n "checking for $ac_word... " >&6; } | $as_echo_n "checking for $ac_word... " >&6; } | |
if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : | if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : | |
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |
else | else | |
if test -n "$MANIFEST_TOOL"; then | if test -n "$MANIFEST_TOOL"; then | |
skipping to change at line 8062 | skipping to change at line 9055 | |
echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 | echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 | |
$MANIFEST_TOOL '-?' 2>conftest.err > conftest.out | $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out | |
cat conftest.err >&5 | cat conftest.err >&5 | |
if $GREP 'Manifest Tool' conftest.out > /dev/null; then | if $GREP 'Manifest Tool' conftest.out > /dev/null; then | |
lt_cv_path_mainfest_tool=yes | lt_cv_path_mainfest_tool=yes | |
fi | fi | |
rm -f conftest* | rm -f conftest* | |
fi | fi | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 | |
$as_echo "$lt_cv_path_mainfest_tool" >&6; } | $as_echo "$lt_cv_path_mainfest_tool" >&6; } | |
if test "x$lt_cv_path_mainfest_tool" != xyes; then | if test yes != "$lt_cv_path_mainfest_tool"; then | |
MANIFEST_TOOL=: | MANIFEST_TOOL=: | |
fi | fi | |
case $host_os in | case $host_os in | |
rhapsody* | darwin*) | rhapsody* | darwin*) | |
if test -n "$ac_tool_prefix"; then | if test -n "$ac_tool_prefix"; then | |
# Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a progra m name with args. | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a progra m name with args. | |
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
$as_echo_n "checking for $ac_word... " >&6; } | $as_echo_n "checking for $ac_word... " >&6; } | |
skipping to change at line 8529 | skipping to change at line 9522 | |
else | else | |
OTOOL64="$ac_cv_prog_OTOOL64" | OTOOL64="$ac_cv_prog_OTOOL64" | |
fi | fi | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 | |
$as_echo_n "checking for -single_module linker flag... " >&6; } | $as_echo_n "checking for -single_module linker flag... " >&6; } | |
if ${lt_cv_apple_cc_single_mod+:} false; then : | if ${lt_cv_apple_cc_single_mod+:} false; then : | |
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |
else | else | |
lt_cv_apple_cc_single_mod=no | lt_cv_apple_cc_single_mod=no | |
if test -z "${LT_MULTI_MODULE}"; then | if test -z "$LT_MULTI_MODULE"; then | |
# By default we will add the -single_module flag. You can override | # By default we will add the -single_module flag. You can override | |
# by either setting the environment variable LT_MULTI_MODULE | # by either setting the environment variable LT_MULTI_MODULE | |
# non-empty at configure time, or by adding -multi_module to the | # non-empty at configure time, or by adding -multi_module to the | |
# link flags. | # link flags. | |
rm -rf libconftest.dylib* | rm -rf libconftest.dylib* | |
echo "int foo(void){return 1;}" > conftest.c | echo "int foo(void){return 1;}" > conftest.c | |
echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
-dynamiclib -Wl,-single_module conftest.c" >&5 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
-dynamiclib -Wl,-single_module conftest.c 2>conftest.err | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
_lt_result=$? | _lt_result=$? | |
# If there is a non-empty error log, and "single_module" | # If there is a non-empty error log, and "single_module" | |
# appears in it, assume the flag caused a linker warning | # appears in it, assume the flag caused a linker warning | |
if test -s conftest.err && $GREP single_module conftest.err; then | if test -s conftest.err && $GREP single_module conftest.err; then | |
cat conftest.err >&5 | cat conftest.err >&5 | |
# Otherwise, if the output was created with a 0 exit code from | # Otherwise, if the output was created with a 0 exit code from | |
# the compiler, it worked. | # the compiler, it worked. | |
elif test -f libconftest.dylib && test $_lt_result -eq 0; then | elif test -f libconftest.dylib && test 0 = "$_lt_result"; then | |
lt_cv_apple_cc_single_mod=yes | lt_cv_apple_cc_single_mod=yes | |
else | else | |
cat conftest.err >&5 | cat conftest.err >&5 | |
fi | fi | |
rm -rf libconftest.dylib* | rm -rf libconftest.dylib* | |
rm -f conftest.* | rm -f conftest.* | |
fi | fi | |
fi | fi | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 | |
$as_echo "$lt_cv_apple_cc_single_mod" >&6; } | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
skipping to change at line 8586 | skipping to change at line 9579 | |
return 0; | return 0; | |
} | } | |
_ACEOF | _ACEOF | |
if ac_fn_c_try_link "$LINENO"; then : | if ac_fn_c_try_link "$LINENO"; then : | |
lt_cv_ld_exported_symbols_list=yes | lt_cv_ld_exported_symbols_list=yes | |
else | else | |
lt_cv_ld_exported_symbols_list=no | lt_cv_ld_exported_symbols_list=no | |
fi | fi | |
rm -f core conftest.err conftest.$ac_objext \ | rm -f core conftest.err conftest.$ac_objext \ | |
conftest$ac_exeext conftest.$ac_ext | conftest$ac_exeext conftest.$ac_ext | |
LDFLAGS="$save_LDFLAGS" | LDFLAGS=$save_LDFLAGS | |
fi | fi | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list " >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list " >&5 | |
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker fla g" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker fla g" >&5 | |
$as_echo_n "checking for -force_load linker flag... " >&6; } | $as_echo_n "checking for -force_load linker flag... " >&6; } | |
if ${lt_cv_ld_force_load+:} false; then : | if ${lt_cv_ld_force_load+:} false; then : | |
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |
else | else | |
skipping to change at line 8615 | skipping to change at line 9608 | |
echo "$RANLIB libconftest.a" >&5 | echo "$RANLIB libconftest.a" >&5 | |
$RANLIB libconftest.a 2>&5 | $RANLIB libconftest.a 2>&5 | |
cat > conftest.c << _LT_EOF | cat > conftest.c << _LT_EOF | |
int main() { return 0;} | int main() { return 0;} | |
_LT_EOF | _LT_EOF | |
echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./li bconftest.a" >&5 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./li bconftest.a" >&5 | |
$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconft est.a 2>conftest.err | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconft est.a 2>conftest.err | |
_lt_result=$? | _lt_result=$? | |
if test -s conftest.err && $GREP force_load conftest.err; then | if test -s conftest.err && $GREP force_load conftest.err; then | |
cat conftest.err >&5 | cat conftest.err >&5 | |
elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conft est >/dev/null 2>&1 ; then | elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conft est >/dev/null 2>&1; then | |
lt_cv_ld_force_load=yes | lt_cv_ld_force_load=yes | |
else | else | |
cat conftest.err >&5 | cat conftest.err >&5 | |
fi | fi | |
rm -f conftest.err libconftest.a conftest conftest.c | rm -f conftest.err libconftest.a conftest conftest.c | |
rm -rf conftest.dSYM | rm -rf conftest.dSYM | |
fi | fi | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 | |
$as_echo "$lt_cv_ld_force_load" >&6; } | $as_echo "$lt_cv_ld_force_load" >&6; } | |
case $host_os in | case $host_os in | |
rhapsody* | darwin1.[012]) | rhapsody* | darwin1.[012]) | |
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; | |
darwin1.*) | darwin1.*) | |
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppres s' ;; | _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ; ; | |
darwin*) # darwin 5.x on | darwin*) # darwin 5.x on | |
# if running on 10.5 or later, the deployment target defaults | # if running on 10.5 or later, the deployment target defaults | |
# to the OS version, if on x86, and 10.4, the deployment | # to the OS version, if on x86, and 10.4, the deployment | |
# target defaults to 10.4. Don't you love it? | # target defaults to 10.4. Don't you love it? | |
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
10.0,*86*-darwin8*|10.0,*-darwin[91]*) | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; | |
10.[012]*) | 10.[012][,.]*) | |
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}supp | _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress | |
ress' ;; | ' ;; | |
10.*) | 10.*) | |
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; | |
esac | esac | |
;; | ;; | |
esac | esac | |
if test "$lt_cv_apple_cc_single_mod" = "yes"; then | if test yes = "$lt_cv_apple_cc_single_mod"; then | |
_lt_dar_single_mod='$single_module' | _lt_dar_single_mod='$single_module' | |
fi | fi | |
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | if test yes = "$lt_cv_ld_exported_symbols_list"; then | |
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname | _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-sy | |
}-symbols.expsym' | mbols.expsym' | |
else | else | |
_lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $l ib' | |
fi | fi | |
if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then | if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then | |
_lt_dsymutil='~$DSYMUTIL $lib || :' | _lt_dsymutil='~$DSYMUTIL $lib || :' | |
else | else | |
_lt_dsymutil= | _lt_dsymutil= | |
fi | fi | |
;; | ;; | |
esac | esac | |
# func_munge_path_list VARIABLE PATH | ||
# ----------------------------------- | ||
# VARIABLE is name of variable containing _space_ separated list of | ||
# directories to be munged by the contents of PATH, which is string | ||
# having a format: | ||
# "DIR[:DIR]:" | ||
# string "DIR[ DIR]" will be prepended to VARIABLE | ||
# ":DIR[:DIR]" | ||
# string "DIR[ DIR]" will be appended to VARIABLE | ||
# "DIRP[:DIRP]::[DIRA:]DIRA" | ||
# string "DIRP[ DIRP]" will be prepended to VARIABLE and string | ||
# "DIRA[ DIRA]" will be appended to VARIABLE | ||
# "DIR[:DIR]" | ||
# VARIABLE will be replaced by "DIR[ DIR]" | ||
func_munge_path_list () | ||
{ | ||
case x$2 in | ||
x) | ||
;; | ||
*:) | ||
eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" | ||
;; | ||
x:*) | ||
eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" | ||
;; | ||
*::*) | ||
eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" | ||
eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" | ||
;; | ||
*) | ||
eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" | ||
;; | ||
esac | ||
} | ||
ac_ext=c | ac_ext=c | |
ac_cpp='$CPP $CPPFLAGS' | ac_cpp='$CPP $CPPFLAGS' | |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ LIBS >&5' | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ LIBS >&5' | |
ac_compiler_gnu=$ac_cv_c_compiler_gnu | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
$as_echo_n "checking how to run the C preprocessor... " >&6; } | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
# On Suns, sometimes $CPP names a directory. | # On Suns, sometimes $CPP names a directory. | |
if test -n "$CPP" && test -d "$CPP"; then | if test -n "$CPP" && test -d "$CPP"; then | |
CPP= | CPP= | |
skipping to change at line 8941 | skipping to change at line 9969 | |
cat >>confdefs.h <<_ACEOF | cat >>confdefs.h <<_ACEOF | |
#define HAVE_DLFCN_H 1 | #define HAVE_DLFCN_H 1 | |
_ACEOF | _ACEOF | |
fi | fi | |
done | done | |
func_stripname_cnf () | func_stripname_cnf () | |
{ | { | |
case ${2} in | case $2 in | |
.*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; | .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;; | |
*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; | *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;; | |
esac | esac | |
} # func_stripname_cnf | } # func_stripname_cnf | |
# Set options | # Set options | |
enable_dlopen=no | enable_dlopen=no | |
enable_win32_dll=no | enable_win32_dll=no | |
# Check whether --enable-shared was given. | # Check whether --enable-shared was given. | |
if test "${enable_shared+set}" = set; then : | if test "${enable_shared+set}" = set; then : | |
enableval=$enable_shared; p=${PACKAGE-default} | enableval=$enable_shared; p=${PACKAGE-default} | |
case $enableval in | case $enableval in | |
yes) enable_shared=yes ;; | yes) enable_shared=yes ;; | |
no) enable_shared=no ;; | no) enable_shared=no ;; | |
*) | *) | |
enable_shared=no | enable_shared=no | |
# Look at the argument we got. We use all the common list separators. | # Look at the argument we got. We use all the common list separators. | |
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, | |
for pkg in $enableval; do | for pkg in $enableval; do | |
IFS="$lt_save_ifs" | IFS=$lt_save_ifs | |
if test "X$pkg" = "X$p"; then | if test "X$pkg" = "X$p"; then | |
enable_shared=yes | enable_shared=yes | |
fi | fi | |
done | done | |
IFS="$lt_save_ifs" | IFS=$lt_save_ifs | |
;; | ;; | |
esac | esac | |
else |