2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.61.
5
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6
# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7
# This configure script is free software; the Free Software Foundation
8
# gives unlimited permission to copy, distribute and modify it.
9
## --------------------- ##
10
## M4sh Initialization. ##
11
## --------------------- ##
13
# Be more Bourne compatible
14
DUALCASE=1; export DUALCASE # for MKS sh
15
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19
# is contrary to our usage. Disable this feature.
20
alias -g '${1+"$@"}'='"$@"'
23
case `(set -o) 2>/dev/null` in
24
*posix*) set -o posix ;;
33
# Avoid depending upon Character Ranges.
34
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37
as_cr_digits='0123456789'
38
as_cr_alnum=$as_cr_Letters$as_cr_digits
40
# The user is always right.
41
if test "${PATH_SEPARATOR+set}" != set; then
42
echo "#! /bin/sh" >conf$$.sh
43
echo "exit 0" >>conf$$.sh
45
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53
# Support unset when possible.
54
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62
# We need space, tab and new line, in precisely that order. Quoting is
63
# there to prevent editors from complaining about space-tab.
64
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65
# splitting by setting IFS to empty value.)
70
# Find who we are. Look in the path if we contain no directory separator.
72
*[\\/]* ) as_myself=$0 ;;
73
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77
test -z "$as_dir" && as_dir=.
78
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84
# We did not find ourselves, most probably we were run as `sh COMMAND'
85
# in which case we are not to be found in the path.
86
if test "x$as_myself" = x; then
89
if test ! -f "$as_myself"; then
90
echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94
# Work around bugs in pre-3.0 UWIN ksh.
95
for as_var in ENV MAIL MAILPATH
96
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109
eval $as_var=C; export $as_var
111
($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115
# Required to use basename.
116
if expr a : '\(a\)' >/dev/null 2>&1 &&
117
test "X`expr 00001 : '.*\(...\)'`" = X001; then
123
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130
# Name of the executable.
131
as_me=`$as_basename -- "$0" ||
132
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133
X"$0" : 'X\(//\)$' \| \
134
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136
sed '/^.*\/\([^/][^/]*\)\/*$/{
154
if test "x$CONFIG_SHELL" = x; then
155
if (eval ":") 2>/dev/null; then
161
if test $as_have_required = yes && (eval ":
171
as_func_ret_success () {
174
as_func_ret_failure () {
179
if as_func_success; then
183
echo as_func_success failed.
186
if as_func_failure; then
188
echo as_func_failure succeeded.
191
if as_func_ret_success; then
195
echo as_func_ret_success failed.
198
if as_func_ret_failure; then
200
echo as_func_ret_failure succeeded.
203
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207
echo positional parameters were not saved.
210
test \$exitcode = 0) || { (exit 1); exit 1; }
215
test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216
test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217
") 2> /dev/null; then
221
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225
test -z "$as_dir" && as_dir=.
228
for as_base in sh bash ksh sh5; do
229
as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236
for as_shell in $as_candidate_shells $SHELL; do
237
# Try only shells that exist, to save several forks.
238
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239
{ ("$as_shell") 2> /dev/null <<\_ASEOF
240
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244
# is contrary to our usage. Disable this feature.
245
alias -g '${1+"$@"}'='"$@"'
248
case `(set -o) 2>/dev/null` in
249
*posix*) set -o posix ;;
258
CONFIG_SHELL=$as_shell
260
if { "$as_shell" 2> /dev/null <<\_ASEOF
261
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265
# is contrary to our usage. Disable this feature.
266
alias -g '${1+"$@"}'='"$@"'
269
case `(set -o) 2>/dev/null` in
270
*posix*) set -o posix ;;
286
as_func_ret_success () {
289
as_func_ret_failure () {
294
if as_func_success; then
298
echo as_func_success failed.
301
if as_func_failure; then
303
echo as_func_failure succeeded.
306
if as_func_ret_success; then
310
echo as_func_ret_success failed.
313
if as_func_ret_failure; then
315
echo as_func_ret_failure succeeded.
318
if ( set x; as_func_ret_success y && test x = "$1" ); then
322
echo positional parameters were not saved.
325
test $exitcode = 0) || { (exit 1); exit 1; }
330
test "x$as_lineno_1" != "x$as_lineno_2" &&
331
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
342
if test "x$CONFIG_SHELL" != x; then
343
for as_var in BASH_ENV ENV
344
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347
exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351
if test $as_have_required = no; then
352
echo This script requires a shell more modern than all the
353
echo shells that I found on your system. Please install a
354
echo modern shell, or manually run the script under such a
355
echo shell if you do have one.
356
{ (exit 1); exit 1; }
366
(eval "as_func_return () {
375
as_func_ret_success () {
378
as_func_ret_failure () {
383
if as_func_success; then
387
echo as_func_success failed.
390
if as_func_failure; then
392
echo as_func_failure succeeded.
395
if as_func_ret_success; then
399
echo as_func_ret_success failed.
402
if as_func_ret_failure; then
404
echo as_func_ret_failure succeeded.
407
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411
echo positional parameters were not saved.
414
test \$exitcode = 0") || {
415
echo No shell found that supports shell functions.
416
echo Please tell autoconf@gnu.org about your system,
417
echo including any error possibly output before this
425
test "x$as_lineno_1" != "x$as_lineno_2" &&
426
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429
# uniformly replaced by the line number. The first 'sed' inserts a
430
# line-number line after each line using $LINENO; the second 'sed'
431
# does the real work. The second script uses 'N' to pair each
432
# line-number line with the line containing $LINENO, and appends
433
# trailing '-' during substitution so that $LINENO is not a special
435
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436
# scripts with optimization help from Paolo Bonzini. Blame Lee
437
# E. McMahon (1931-1989) for sed's syntax. :-)
449
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453
chmod +x "$as_me.lineno" ||
454
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455
{ (exit 1); exit 1; }; }
457
# Don't try to exec as it changes $[0], causing all sort of problems
458
# (the dirname of $[0] is not the place where we might find the
459
# original and so on. Autoconf is especially sensitive to this).
461
# Exit status is that of the last command.
466
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
472
ECHO_C= ECHO_N= ECHO_T=
476
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
483
if expr a : '\(a\)' >/dev/null 2>&1 &&
484
test "X`expr 00001 : '.*\(...\)'`" = X001; then
490
rm -f conf$$ conf$$.exe conf$$.file
491
if test -d conf$$.dir; then
492
rm -f conf$$.dir/conf$$.file
498
if ln -s conf$$.file conf$$ 2>/dev/null; then
500
# ... but there are two gotchas:
501
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503
# In both cases, we have to default to `cp -p'.
504
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506
elif ln conf$$.file conf$$ 2>/dev/null; then
511
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512
rmdir conf$$.dir 2>/dev/null
514
if mkdir -p . 2>/dev/null; then
517
test -d ./-p && rmdir ./-p
521
if test -x / >/dev/null 2>&1; then
524
if ls -dL / >/dev/null 2>&1; then
531
if test -d "$1"; then
537
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538
???[sx]*):;;*)false;;esac;fi
542
as_executable_p=$as_test_x
544
# Sed expression to map a string onto a valid CPP name.
545
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547
# Sed expression to map a string onto a valid variable name.
548
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552
exec 7<&0 </dev/null 6>&1
555
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556
# so uname gets run too.
557
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
562
ac_default_prefix=/usr/local
564
ac_config_libobj_dir=.
570
SHELL=${CONFIG_SHELL-/bin/sh}
572
# Identity of this package.
579
ac_unique_file="include/spud.h"
580
# Factoring default headers for most tests.
581
ac_includes_default="\
583
#ifdef HAVE_SYS_TYPES_H
584
# include <sys/types.h>
586
#ifdef HAVE_SYS_STAT_H
587
# include <sys/stat.h>
593
# ifdef HAVE_STDLIB_H
598
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
603
#ifdef HAVE_STRINGS_H
604
# include <strings.h>
606
#ifdef HAVE_INTTYPES_H
607
# include <inttypes.h>
625
program_transform_name
695
ac_precious_vars='build_alias
713
# Initialize some variables set by options.
715
ac_init_version=false
716
# The variables have the same names as the options, with
717
# dashes changed to underlines.
725
program_transform_name=s,x,x,
733
# Installation directory options.
734
# These are left unexpanded so users can "make install exec_prefix=/foo"
735
# and all the variables that are supposed to be based on exec_prefix
736
# by default will actually change.
737
# Use braces instead of parens because sh, perl, etc. also accept them.
738
# (The list follows the same order as the GNU Coding Standards.)
739
bindir='${exec_prefix}/bin'
740
sbindir='${exec_prefix}/sbin'
741
libexecdir='${exec_prefix}/libexec'
742
datarootdir='${prefix}/share'
743
datadir='${datarootdir}'
744
sysconfdir='${prefix}/etc'
745
sharedstatedir='${prefix}/com'
746
localstatedir='${prefix}/var'
747
includedir='${prefix}/include'
748
oldincludedir='/usr/include'
749
docdir='${datarootdir}/doc/${PACKAGE}'
750
infodir='${datarootdir}/info'
755
libdir='${exec_prefix}/lib'
756
localedir='${datarootdir}/locale'
757
mandir='${datarootdir}/man'
763
# If the previous option needs an argument, assign it.
764
if test -n "$ac_prev"; then
765
eval $ac_prev=\$ac_option
771
*=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
775
# Accept the important Cygnus configure options, so we can diagnose typos.
777
case $ac_dashdash$ac_option in
781
-bindir | --bindir | --bindi | --bind | --bin | --bi)
783
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
786
-build | --build | --buil | --bui | --bu)
787
ac_prev=build_alias ;;
788
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
789
build_alias=$ac_optarg ;;
791
-cache-file | --cache-file | --cache-fil | --cache-fi \
792
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
793
ac_prev=cache_file ;;
794
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
795
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
796
cache_file=$ac_optarg ;;
799
cache_file=config.cache ;;
801
-datadir | --datadir | --datadi | --datad)
803
-datadir=* | --datadir=* | --datadi=* | --datad=*)
804
datadir=$ac_optarg ;;
806
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
807
| --dataroo | --dataro | --datar)
808
ac_prev=datarootdir ;;
809
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
810
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
811
datarootdir=$ac_optarg ;;
813
-disable-* | --disable-*)
814
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
815
# Reject names that are not valid shell variable names.
816
expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
817
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
818
{ (exit 1); exit 1; }; }
819
ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
820
eval enable_$ac_feature=no ;;
822
-docdir | --docdir | --docdi | --doc | --do)
824
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
827
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
829
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
832
-enable-* | --enable-*)
833
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
834
# Reject names that are not valid shell variable names.
835
expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
836
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
837
{ (exit 1); exit 1; }; }
838
ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
839
eval enable_$ac_feature=\$ac_optarg ;;
841
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
842
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
843
| --exec | --exe | --ex)
844
ac_prev=exec_prefix ;;
845
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
846
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
847
| --exec=* | --exe=* | --ex=*)
848
exec_prefix=$ac_optarg ;;
850
-gas | --gas | --ga | --g)
851
# Obsolete; use --with-gas.
854
-help | --help | --hel | --he | -h)
856
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
857
ac_init_help=recursive ;;
858
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
859
ac_init_help=short ;;
861
-host | --host | --hos | --ho)
862
ac_prev=host_alias ;;
863
-host=* | --host=* | --hos=* | --ho=*)
864
host_alias=$ac_optarg ;;
866
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
868
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
870
htmldir=$ac_optarg ;;
872
-includedir | --includedir | --includedi | --included | --include \
873
| --includ | --inclu | --incl | --inc)
874
ac_prev=includedir ;;
875
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
876
| --includ=* | --inclu=* | --incl=* | --inc=*)
877
includedir=$ac_optarg ;;
879
-infodir | --infodir | --infodi | --infod | --info | --inf)
881
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
882
infodir=$ac_optarg ;;
884
-libdir | --libdir | --libdi | --libd)
886
-libdir=* | --libdir=* | --libdi=* | --libd=*)
889
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
890
| --libexe | --libex | --libe)
891
ac_prev=libexecdir ;;
892
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
893
| --libexe=* | --libex=* | --libe=*)
894
libexecdir=$ac_optarg ;;
896
-localedir | --localedir | --localedi | --localed | --locale)
898
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
899
localedir=$ac_optarg ;;
901
-localstatedir | --localstatedir | --localstatedi | --localstated \
902
| --localstate | --localstat | --localsta | --localst | --locals)
903
ac_prev=localstatedir ;;
904
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
905
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
906
localstatedir=$ac_optarg ;;
908
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
910
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
914
# Obsolete; use --without-fp.
917
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
918
| --no-cr | --no-c | -n)
921
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
922
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
925
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
926
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
927
| --oldin | --oldi | --old | --ol | --o)
928
ac_prev=oldincludedir ;;
929
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
930
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
931
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
932
oldincludedir=$ac_optarg ;;
934
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
936
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
939
-program-prefix | --program-prefix | --program-prefi | --program-pref \
940
| --program-pre | --program-pr | --program-p)
941
ac_prev=program_prefix ;;
942
-program-prefix=* | --program-prefix=* | --program-prefi=* \
943
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
944
program_prefix=$ac_optarg ;;
946
-program-suffix | --program-suffix | --program-suffi | --program-suff \
947
| --program-suf | --program-su | --program-s)
948
ac_prev=program_suffix ;;
949
-program-suffix=* | --program-suffix=* | --program-suffi=* \
950
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
951
program_suffix=$ac_optarg ;;
953
-program-transform-name | --program-transform-name \
954
| --program-transform-nam | --program-transform-na \
955
| --program-transform-n | --program-transform- \
956
| --program-transform | --program-transfor \
957
| --program-transfo | --program-transf \
958
| --program-trans | --program-tran \
959
| --progr-tra | --program-tr | --program-t)
960
ac_prev=program_transform_name ;;
961
-program-transform-name=* | --program-transform-name=* \
962
| --program-transform-nam=* | --program-transform-na=* \
963
| --program-transform-n=* | --program-transform-=* \
964
| --program-transform=* | --program-transfor=* \
965
| --program-transfo=* | --program-transf=* \
966
| --program-trans=* | --program-tran=* \
967
| --progr-tra=* | --program-tr=* | --program-t=*)
968
program_transform_name=$ac_optarg ;;
970
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
972
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
975
-psdir | --psdir | --psdi | --psd | --ps)
977
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
980
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
981
| -silent | --silent | --silen | --sile | --sil)
984
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
986
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
988
sbindir=$ac_optarg ;;
990
-sharedstatedir | --sharedstatedir | --sharedstatedi \
991
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
992
| --sharedst | --shareds | --shared | --share | --shar \
994
ac_prev=sharedstatedir ;;
995
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
996
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
997
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
999
sharedstatedir=$ac_optarg ;;
1001
-site | --site | --sit)
1003
-site=* | --site=* | --sit=*)
1006
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1008
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1009
srcdir=$ac_optarg ;;
1011
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1012
| --syscon | --sysco | --sysc | --sys | --sy)
1013
ac_prev=sysconfdir ;;
1014
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1015
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1016
sysconfdir=$ac_optarg ;;
1018
-target | --target | --targe | --targ | --tar | --ta | --t)
1019
ac_prev=target_alias ;;
1020
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1021
target_alias=$ac_optarg ;;
1023
-v | -verbose | --verbose | --verbos | --verbo | --verb)
1026
-version | --version | --versio | --versi | --vers | -V)
1027
ac_init_version=: ;;
1030
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1031
# Reject names that are not valid shell variable names.
1032
expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1033
{ echo "$as_me: error: invalid package name: $ac_package" >&2
1034
{ (exit 1); exit 1; }; }
1035
ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1036
eval with_$ac_package=\$ac_optarg ;;
1038
-without-* | --without-*)
1039
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1040
# Reject names that are not valid shell variable names.
1041
expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1042
{ echo "$as_me: error: invalid package name: $ac_package" >&2
1043
{ (exit 1); exit 1; }; }
1044
ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1045
eval with_$ac_package=no ;;
1048
# Obsolete; use --with-x.
1051
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1052
| --x-incl | --x-inc | --x-in | --x-i)
1053
ac_prev=x_includes ;;
1054
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1055
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1056
x_includes=$ac_optarg ;;
1058
-x-libraries | --x-libraries | --x-librarie | --x-librari \
1059
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1060
ac_prev=x_libraries ;;
1061
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1062
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1063
x_libraries=$ac_optarg ;;
1065
-*) { echo "$as_me: error: unrecognized option: $ac_option
1066
Try \`$0 --help' for more information." >&2
1067
{ (exit 1); exit 1; }; }
1071
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1072
# Reject names that are not valid shell variable names.
1073
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1074
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1075
{ (exit 1); exit 1; }; }
1076
eval $ac_envvar=\$ac_optarg
1077
export $ac_envvar ;;
1080
# FIXME: should be removed in autoconf 3.0.
1081
echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1082
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1083
echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1084
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1090
if test -n "$ac_prev"; then
1091
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1092
{ echo "$as_me: error: missing argument to $ac_option" >&2
1093
{ (exit 1); exit 1; }; }
1096
# Be sure to have absolute directory names.
1097
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1098
datadir sysconfdir sharedstatedir localstatedir includedir \
1099
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1100
libdir localedir mandir
1102
eval ac_val=\$$ac_var
1104
[\\/$]* | ?:[\\/]* ) continue;;
1105
NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1107
{ echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1108
{ (exit 1); exit 1; }; }
1111
# There might be people who depend on the old broken behavior: `$host'
1112
# used to hold the argument of --host etc.
1113
# FIXME: To remove some day.
1116
target=$target_alias
1118
# FIXME: To remove some day.
1119
if test "x$host_alias" != x; then
1120
if test "x$build_alias" = x; then
1121
cross_compiling=maybe
1122
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1123
If a cross compiler is detected then cross compile mode will be used." >&2
1124
elif test "x$build_alias" != "x$host_alias"; then
1130
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1132
test "$silent" = yes && exec 6>/dev/null
1135
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1136
ac_ls_di=`ls -di .` &&
1137
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1138
{ echo "$as_me: error: Working directory cannot be determined" >&2
1139
{ (exit 1); exit 1; }; }
1140
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1141
{ echo "$as_me: error: pwd does not report name of working directory" >&2
1142
{ (exit 1); exit 1; }; }
1145
# Find the source files, if location was not specified.
1146
if test -z "$srcdir"; then
1147
ac_srcdir_defaulted=yes
1148
# Try the directory containing this script, then the parent directory.
1149
ac_confdir=`$as_dirname -- "$0" ||
1150
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1151
X"$0" : 'X\(//\)[^/]' \| \
1152
X"$0" : 'X\(//\)$' \| \
1153
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1155
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1173
if test ! -r "$srcdir/$ac_unique_file"; then
1177
ac_srcdir_defaulted=no
1179
if test ! -r "$srcdir/$ac_unique_file"; then
1180
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1181
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1182
{ (exit 1); exit 1; }; }
1184
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1186
cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1187
{ (exit 1); exit 1; }; }
1189
# When building in place, set srcdir=.
1190
if test "$ac_abs_confdir" = "$ac_pwd"; then
1193
# Remove unnecessary trailing slashes from srcdir.
1194
# Double slashes in file names in object file debugging info
1195
# mess up M-x gdb in Emacs.
1197
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1199
for ac_var in $ac_precious_vars; do
1200
eval ac_env_${ac_var}_set=\${${ac_var}+set}
1201
eval ac_env_${ac_var}_value=\$${ac_var}
1202
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1203
eval ac_cv_env_${ac_var}_value=\$${ac_var}
1207
# Report the --help message.
1209
if test "$ac_init_help" = "long"; then
1210
# Omit some internal or obsolete options to make the list less imposing.
1211
# This message is too long to be a string in the A/UX 3.1 sh.
1213
\`configure' configures this package to adapt to many kinds of systems.
1215
Usage: $0 [OPTION]... [VAR=VALUE]...
1217
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1218
VAR=VALUE. See below for descriptions of some of the useful variables.
1220
Defaults for the options are specified in brackets.
1223
-h, --help display this help and exit
1224
--help=short display options specific to this package
1225
--help=recursive display the short help of all the included packages
1226
-V, --version display version information and exit
1227
-q, --quiet, --silent do not print \`checking...' messages
1228
--cache-file=FILE cache test results in FILE [disabled]
1229
-C, --config-cache alias for \`--cache-file=config.cache'
1230
-n, --no-create do not create output files
1231
--srcdir=DIR find the sources in DIR [configure dir or \`..']
1233
Installation directories:
1234
--prefix=PREFIX install architecture-independent files in PREFIX
1235
[$ac_default_prefix]
1236
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1239
By default, \`make install' will install all the files in
1240
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1241
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1242
for instance \`--prefix=\$HOME'.
1244
For better control, use the options below.
1246
Fine tuning of the installation directories:
1247
--bindir=DIR user executables [EPREFIX/bin]
1248
--sbindir=DIR system admin executables [EPREFIX/sbin]
1249
--libexecdir=DIR program executables [EPREFIX/libexec]
1250
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1251
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1252
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1253
--libdir=DIR object code libraries [EPREFIX/lib]
1254
--includedir=DIR C header files [PREFIX/include]
1255
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1256
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1257
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1258
--infodir=DIR info documentation [DATAROOTDIR/info]
1259
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1260
--mandir=DIR man documentation [DATAROOTDIR/man]
1261
--docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1262
--htmldir=DIR html documentation [DOCDIR]
1263
--dvidir=DIR dvi documentation [DOCDIR]
1264
--pdfdir=DIR pdf documentation [DOCDIR]
1265
--psdir=DIR ps documentation [DOCDIR]
1271
--build=BUILD configure for building on BUILD [guessed]
1272
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1276
if test -n "$ac_init_help"; then
1281
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1282
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1283
--enable-debugging turns on debugging flags
1284
--enable-shared Compile objects with -fPIC to enable the 'make
1286
--enable-verbose turns on super verbosity
1287
--enable-dp=flag compile with 64 bit floating point numbers (default)
1288
--enable-profiling enable gprof profiling
1290
Some influential environment variables:
1291
F77 Fortran 77 compiler command
1292
FFLAGS Fortran 77 compiler flags
1293
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1294
nonstandard directory <lib dir>
1295
LIBS libraries to pass to the linker, e.g. -l<library>
1296
FC Fortran compiler command
1297
FCFLAGS Fortran compiler flags
1298
CXX C++ compiler command
1299
CXXFLAGS C++ compiler flags
1300
CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1301
you have headers in a nonstandard directory <include dir>
1302
CC C compiler command
1303
CFLAGS C compiler flags
1306
Use these variables to override the choices made by `configure' or to help
1307
it to find libraries and programs with nonstandard names/locations.
1313
if test "$ac_init_help" = "recursive"; then
1314
# If there are subdirs, report their specific --help.
1315
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1316
test -d "$ac_dir" || continue
1320
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1322
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1323
# A ".." for each directory in $ac_dir_suffix.
1324
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1325
case $ac_top_builddir_sub in
1326
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1327
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1330
ac_abs_top_builddir=$ac_pwd
1331
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1332
# for backward compatibility:
1333
ac_top_builddir=$ac_top_build_prefix
1336
.) # We are building in place.
1338
ac_top_srcdir=$ac_top_builddir_sub
1339
ac_abs_top_srcdir=$ac_pwd ;;
1340
[\\/]* | ?:[\\/]* ) # Absolute name.
1341
ac_srcdir=$srcdir$ac_dir_suffix;
1342
ac_top_srcdir=$srcdir
1343
ac_abs_top_srcdir=$srcdir ;;
1345
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1346
ac_top_srcdir=$ac_top_build_prefix$srcdir
1347
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1349
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1351
cd "$ac_dir" || { ac_status=$?; continue; }
1352
# Check for guested configure.
1353
if test -f "$ac_srcdir/configure.gnu"; then
1355
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
1356
elif test -f "$ac_srcdir/configure"; then
1358
$SHELL "$ac_srcdir/configure" --help=recursive
1360
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1362
cd "$ac_pwd" || { ac_status=$?; break; }
1366
test -n "$ac_init_help" && exit $ac_status
1367
if $ac_init_version; then
1370
generated by GNU Autoconf 2.61
1372
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1373
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1374
This configure script is free software; the Free Software Foundation
1375
gives unlimited permission to copy, distribute and modify it.
1379
cat >config.log <<_ACEOF
1380
This file contains any messages produced by compilers while
1381
running configure, to aid debugging if configure makes a mistake.
1383
It was created by $as_me, which was
1384
generated by GNU Autoconf 2.61. Invocation command line was
1396
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1397
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1398
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1399
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1400
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1402
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1403
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1405
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1406
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1407
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1408
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1409
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1410
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1411
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1415
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1419
test -z "$as_dir" && as_dir=.
1420
echo "PATH: $as_dir"
1436
# Keep a trace of the command line.
1437
# Strip out --no-create and --no-recursion so they do not pile up.
1438
# Strip out --silent because we don't want to record it for future runs.
1439
# Also quote any args containing shell meta-characters.
1440
# Make two passes to allow for proper duplicate-argument suppression.
1444
ac_must_keep_next=false
1450
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1451
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1452
| -silent | --silent | --silen | --sile | --sil)
1455
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1458
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1460
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1461
if test $ac_must_keep_next = true; then
1462
ac_must_keep_next=false # Got value, back to normal.
1465
*=* | --config-cache | -C | -disable-* | --disable-* \
1466
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1467
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1468
| -with-* | --with-* | -without-* | --without-* | --x)
1469
case "$ac_configure_args0 " in
1470
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1473
-* ) ac_must_keep_next=true ;;
1476
ac_configure_args="$ac_configure_args '$ac_arg'"
1481
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1482
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1484
# When interrupted or exit'd, cleanup temporary files, and complete
1485
# config.log. We remove comments because anyway the quotes in there
1486
# would cause problems or look ugly.
1487
# WARNING: Use '\'' to represent an apostrophe within the trap.
1488
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1489
trap 'exit_status=$?
1490
# Save into config.log some information that might help in debugging.
1495
## ---------------- ##
1496
## Cache variables. ##
1497
## ---------------- ##
1500
# The following way of writing the cache mishandles newlines in values,
1502
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1503
eval ac_val=\$$ac_var
1507
*_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1508
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1511
_ | IFS | as_nl) ;; #(
1512
*) $as_unset $ac_var ;;
1517
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1518
*${as_nl}ac_space=\ *)
1520
"s/'\''/'\''\\\\'\'''\''/g;
1521
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1524
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1532
## ----------------- ##
1533
## Output variables. ##
1534
## ----------------- ##
1537
for ac_var in $ac_subst_vars
1539
eval ac_val=\$$ac_var
1541
*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1543
echo "$ac_var='\''$ac_val'\''"
1547
if test -n "$ac_subst_files"; then
1549
## ------------------- ##
1550
## File substitutions. ##
1551
## ------------------- ##
1554
for ac_var in $ac_subst_files
1556
eval ac_val=\$$ac_var
1558
*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1560
echo "$ac_var='\''$ac_val'\''"
1565
if test -s confdefs.h; then
1575
test "$ac_signal" != 0 &&
1576
echo "$as_me: caught signal $ac_signal"
1577
echo "$as_me: exit $exit_status"
1579
rm -f core *.core core.conftest.* &&
1580
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1583
for ac_signal in 1 2 13 15; do
1584
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1588
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1589
rm -f -r conftest* confdefs.h
1591
# Predefined preprocessor variables.
1593
cat >>confdefs.h <<_ACEOF
1594
#define PACKAGE_NAME "$PACKAGE_NAME"
1598
cat >>confdefs.h <<_ACEOF
1599
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1603
cat >>confdefs.h <<_ACEOF
1604
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1608
cat >>confdefs.h <<_ACEOF
1609
#define PACKAGE_STRING "$PACKAGE_STRING"
1613
cat >>confdefs.h <<_ACEOF
1614
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1618
# Let the site file select an alternate cache file if it wants to.
1619
# Prefer explicitly selected file to automatically selected ones.
1620
if test -n "$CONFIG_SITE"; then
1621
set x "$CONFIG_SITE"
1622
elif test "x$prefix" != xNONE; then
1623
set x "$prefix/share/config.site" "$prefix/etc/config.site"
1625
set x "$ac_default_prefix/share/config.site" \
1626
"$ac_default_prefix/etc/config.site"
1631
if test -r "$ac_site_file"; then
1632
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1633
echo "$as_me: loading site script $ac_site_file" >&6;}
1634
sed 's/^/| /' "$ac_site_file" >&5
1639
if test -r "$cache_file"; then
1640
# Some versions of bash will fail to source /dev/null (special
1641
# files actually), so we avoid doing that.
1642
if test -f "$cache_file"; then
1643
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
1644
echo "$as_me: loading cache $cache_file" >&6;}
1646
[\\/]* | ?:[\\/]* ) . "$cache_file";;
1647
*) . "./$cache_file";;
1651
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
1652
echo "$as_me: creating cache $cache_file" >&6;}
1656
# Check that the precious variables saved in the cache have kept the same
1658
ac_cache_corrupted=false
1659
for ac_var in $ac_precious_vars; do
1660
eval ac_old_set=\$ac_cv_env_${ac_var}_set
1661
eval ac_new_set=\$ac_env_${ac_var}_set
1662
eval ac_old_val=\$ac_cv_env_${ac_var}_value
1663
eval ac_new_val=\$ac_env_${ac_var}_value
1664
case $ac_old_set,$ac_new_set in
1666
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1667
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1668
ac_cache_corrupted=: ;;
1670
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1671
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1672
ac_cache_corrupted=: ;;
1675
if test "x$ac_old_val" != "x$ac_new_val"; then
1676
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1677
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1678
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1679
echo "$as_me: former value: $ac_old_val" >&2;}
1680
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1681
echo "$as_me: current value: $ac_new_val" >&2;}
1682
ac_cache_corrupted=:
1685
# Pass precious variables to config.status.
1686
if test "$ac_new_set" = set; then
1688
*\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1689
*) ac_arg=$ac_var=$ac_new_val ;;
1691
case " $ac_configure_args " in
1692
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1693
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1697
if $ac_cache_corrupted; then
1698
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1699
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1700
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1701
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1702
{ (exit 1); exit 1; }; }
1722
ac_cpp='$CPP $CPPFLAGS'
1723
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1724
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1725
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1729
# This is to get around some odd behavious of some fortran compilers
1730
FCFLAGS="$FCFLAGS -I/usr/include"
1735
# Check whether --enable-debugging was given.
1736
if test "${enable_debugging+set}" = set; then
1737
enableval=$enable_debugging;
1743
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1744
if test -f "$ac_dir/install-sh"; then
1746
ac_install_sh="$ac_aux_dir/install-sh -c"
1748
elif test -f "$ac_dir/install.sh"; then
1750
ac_install_sh="$ac_aux_dir/install.sh -c"
1752
elif test -f "$ac_dir/shtool"; then
1754
ac_install_sh="$ac_aux_dir/shtool install -c"
1758
if test -z "$ac_aux_dir"; then
1759
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1760
echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1761
{ (exit 1); exit 1; }; }
1764
# These three variables are undocumented and unsupported,
1765
# and are intended to be withdrawn in a future Autoconf release.
1766
# They can cause serious problems if a builder's source tree is in a directory
1767
# whose full name contains unusual characters.
1768
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1769
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1770
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1773
# Make sure we can run config.sub.
1774
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1775
{ { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1776
echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1777
{ (exit 1); exit 1; }; }
1779
{ echo "$as_me:$LINENO: checking build system type" >&5
1780
echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1781
if test "${ac_cv_build+set}" = set; then
1782
echo $ECHO_N "(cached) $ECHO_C" >&6
1784
ac_build_alias=$build_alias
1785
test "x$ac_build_alias" = x &&
1786
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1787
test "x$ac_build_alias" = x &&
1788
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1789
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1790
{ (exit 1); exit 1; }; }
1791
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1792
{ { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1793
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1794
{ (exit 1); exit 1; }; }
1797
{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1798
echo "${ECHO_T}$ac_cv_build" >&6; }
1799
case $ac_cv_build in
1801
*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1802
echo "$as_me: error: invalid value of canonical build" >&2;}
1803
{ (exit 1); exit 1; }; };;
1806
ac_save_IFS=$IFS; IFS='-'
1812
# Remember, the first character of IFS is used to create $*,
1813
# except with old shells:
1816
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1819
{ echo "$as_me:$LINENO: checking host system type" >&5
1820
echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1821
if test "${ac_cv_host+set}" = set; then
1822
echo $ECHO_N "(cached) $ECHO_C" >&6
1824
if test "x$host_alias" = x; then
1825
ac_cv_host=$ac_cv_build
1827
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1828
{ { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1829
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1830
{ (exit 1); exit 1; }; }
1834
{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1835
echo "${ECHO_T}$ac_cv_host" >&6; }
1838
*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1839
echo "$as_me: error: invalid value of canonical host" >&2;}
1840
{ (exit 1); exit 1; }; };;
1843
ac_save_IFS=$IFS; IFS='-'
1849
# Remember, the first character of IFS is used to create $*,
1850
# except with old shells:
1853
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1858
{ echo "$as_me:$LINENO: *** Fishing for legacy fortran compiler." >&5
1859
echo "$as_me: *** Fishing for legacy fortran compiler." >&6;}
1861
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
1862
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1863
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
1864
if test -n "$ac_tool_prefix"; then
1865
for ac_prog in ifort ifc efc sunf95 gfortran pgf95 pathf95 g95 f90
1867
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1868
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1869
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1870
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1871
if test "${ac_cv_prog_F77+set}" = set; then
1872
echo $ECHO_N "(cached) $ECHO_C" >&6
1874
if test -n "$F77"; then
1875
ac_cv_prog_F77="$F77" # Let the user override the test.
1877
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1881
test -z "$as_dir" && as_dir=.
1882
for ac_exec_ext in '' $ac_executable_extensions; do
1883
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1884
ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
1885
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1895
if test -n "$F77"; then
1896
{ echo "$as_me:$LINENO: result: $F77" >&5
1897
echo "${ECHO_T}$F77" >&6; }
1899
{ echo "$as_me:$LINENO: result: no" >&5
1900
echo "${ECHO_T}no" >&6; }
1904
test -n "$F77" && break
1907
if test -z "$F77"; then
1909
for ac_prog in ifort ifc efc sunf95 gfortran pgf95 pathf95 g95 f90
1911
# Extract the first word of "$ac_prog", so it can be a program name with args.
1912
set dummy $ac_prog; ac_word=$2
1913
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1914
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1915
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
1916
echo $ECHO_N "(cached) $ECHO_C" >&6
1918
if test -n "$ac_ct_F77"; then
1919
ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
1921
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1925
test -z "$as_dir" && as_dir=.
1926
for ac_exec_ext in '' $ac_executable_extensions; do
1927
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1928
ac_cv_prog_ac_ct_F77="$ac_prog"
1929
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1938
ac_ct_F77=$ac_cv_prog_ac_ct_F77
1939
if test -n "$ac_ct_F77"; then
1940
{ echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
1941
echo "${ECHO_T}$ac_ct_F77" >&6; }
1943
{ echo "$as_me:$LINENO: result: no" >&5
1944
echo "${ECHO_T}no" >&6; }
1948
test -n "$ac_ct_F77" && break
1951
if test "x$ac_ct_F77" = x; then
1954
case $cross_compiling:$ac_tool_warned in
1956
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1957
whose name does not start with the host triplet. If you think this
1958
configuration is useful to you, please write to autoconf@gnu.org." >&5
1959
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1960
whose name does not start with the host triplet. If you think this
1961
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1962
ac_tool_warned=yes ;;
1969
# Provide some information about the compiler.
1970
echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
1971
ac_compiler=`set X $ac_compile; echo $2`
1972
{ (ac_try="$ac_compiler --version >&5"
1974
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1975
*) ac_try_echo=$ac_try;;
1977
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1978
(eval "$ac_compiler --version >&5") 2>&5
1980
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1981
(exit $ac_status); }
1982
{ (ac_try="$ac_compiler -v >&5"
1984
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1985
*) ac_try_echo=$ac_try;;
1987
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1988
(eval "$ac_compiler -v >&5") 2>&5
1990
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1991
(exit $ac_status); }
1992
{ (ac_try="$ac_compiler -V >&5"
1994
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1995
*) ac_try_echo=$ac_try;;
1997
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1998
(eval "$ac_compiler -V >&5") 2>&5
2000
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001
(exit $ac_status); }
2004
cat >conftest.$ac_ext <<_ACEOF
2009
ac_clean_files_save=$ac_clean_files
2010
ac_clean_files="$ac_clean_files a.out a.exe b.out"
2011
# Try to create an executable without -o first, disregard a.out.
2012
# It will help us diagnose broken compilers, and finding out an intuition
2014
{ echo "$as_me:$LINENO: checking for Fortran 77 compiler default output file name" >&5
2015
echo $ECHO_N "checking for Fortran 77 compiler default output file name... $ECHO_C" >&6; }
2016
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2018
# List of possible output files, starting from the most likely.
2019
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2020
# only as a last resort. b.out is created by i960 compilers.
2021
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2023
# The IRIX 6 linker writes into existing files which may not be
2024
# executable, retaining their permissions. Remove them first so a
2025
# subsequent execution test works.
2027
for ac_file in $ac_files
2030
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2031
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
2036
if { (ac_try="$ac_link_default"
2038
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2039
*) ac_try_echo=$ac_try;;
2041
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2042
(eval "$ac_link_default") 2>&5
2044
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2045
(exit $ac_status); }; then
2046
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2047
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2048
# in a Makefile. We should not override ac_cv_exeext if it was cached,
2049
# so that the user can short-circuit this test for compilers unknown to
2051
for ac_file in $ac_files ''
2053
test -f "$ac_file" || continue
2055
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2058
# We found the default executable, but exeext='' is most
2062
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2064
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2066
# We set ac_cv_exeext here because the later test for it is not
2067
# safe: cross compilers may not add the suffix if given an `-o'
2068
# argument, so we may need to know it at that point already.
2069
# Even if this section looks crufty: it has the advantage of
2076
test "$ac_cv_exeext" = no && ac_cv_exeext=
2082
{ echo "$as_me:$LINENO: result: $ac_file" >&5
2083
echo "${ECHO_T}$ac_file" >&6; }
2084
if test -z "$ac_file"; then
2085
echo "$as_me: failed program was:" >&5
2086
sed 's/^/| /' conftest.$ac_ext >&5
2088
{ { echo "$as_me:$LINENO: error: Fortran 77 compiler cannot create executables
2089
See \`config.log' for more details." >&5
2090
echo "$as_me: error: Fortran 77 compiler cannot create executables
2091
See \`config.log' for more details." >&2;}
2092
{ (exit 77); exit 77; }; }
2095
ac_exeext=$ac_cv_exeext
2097
# Check that the compiler produces executables we can run. If not, either
2098
# the compiler is broken, or we cross compile.
2099
{ echo "$as_me:$LINENO: checking whether the Fortran 77 compiler works" >&5
2100
echo $ECHO_N "checking whether the Fortran 77 compiler works... $ECHO_C" >&6; }
2101
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2102
# If not cross compiling, check that we can run a simple program.
2103
if test "$cross_compiling" != yes; then
2104
if { ac_try='./$ac_file'
2105
{ (case "(($ac_try" in
2106
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2107
*) ac_try_echo=$ac_try;;
2109
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2110
(eval "$ac_try") 2>&5
2112
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2113
(exit $ac_status); }; }; then
2116
if test "$cross_compiling" = maybe; then
2119
{ { echo "$as_me:$LINENO: error: cannot run Fortran 77 compiled programs.
2120
If you meant to cross compile, use \`--host'.
2121
See \`config.log' for more details." >&5
2122
echo "$as_me: error: cannot run Fortran 77 compiled programs.
2123
If you meant to cross compile, use \`--host'.
2124
See \`config.log' for more details." >&2;}
2125
{ (exit 1); exit 1; }; }
2129
{ echo "$as_me:$LINENO: result: yes" >&5
2130
echo "${ECHO_T}yes" >&6; }
2132
rm -f a.out a.exe conftest$ac_cv_exeext b.out
2133
ac_clean_files=$ac_clean_files_save
2134
# Check that the compiler produces executables we can run. If not, either
2135
# the compiler is broken, or we cross compile.
2136
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2137
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2138
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2139
echo "${ECHO_T}$cross_compiling" >&6; }
2141
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2142
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2143
if { (ac_try="$ac_link"
2145
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2146
*) ac_try_echo=$ac_try;;
2148
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2149
(eval "$ac_link") 2>&5
2151
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2152
(exit $ac_status); }; then
2153
# If both `conftest.exe' and `conftest' are `present' (well, observable)
2154
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2155
# work properly (i.e., refer to `conftest.exe'), while it won't with
2157
for ac_file in conftest.exe conftest conftest.*; do
2158
test -f "$ac_file" || continue
2160
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2161
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2167
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2168
See \`config.log' for more details." >&5
2169
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2170
See \`config.log' for more details." >&2;}
2171
{ (exit 1); exit 1; }; }
2174
rm -f conftest$ac_cv_exeext
2175
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2176
echo "${ECHO_T}$ac_cv_exeext" >&6; }
2178
rm -f conftest.$ac_ext
2179
EXEEXT=$ac_cv_exeext
2181
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2182
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2183
if test "${ac_cv_objext+set}" = set; then
2184
echo $ECHO_N "(cached) $ECHO_C" >&6
2186
cat >conftest.$ac_ext <<_ACEOF
2191
rm -f conftest.o conftest.obj
2192
if { (ac_try="$ac_compile"
2194
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2195
*) ac_try_echo=$ac_try;;
2197
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2198
(eval "$ac_compile") 2>&5
2200
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2201
(exit $ac_status); }; then
2202
for ac_file in conftest.o conftest.obj conftest.*; do
2203
test -f "$ac_file" || continue;
2205
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2206
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2211
echo "$as_me: failed program was:" >&5
2212
sed 's/^/| /' conftest.$ac_ext >&5
2214
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2215
See \`config.log' for more details." >&5
2216
echo "$as_me: error: cannot compute suffix of object files: cannot compile
2217
See \`config.log' for more details." >&2;}
2218
{ (exit 1); exit 1; }; }
2221
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2223
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2224
echo "${ECHO_T}$ac_cv_objext" >&6; }
2225
OBJEXT=$ac_cv_objext
2227
# If we don't use `.F' as extension, the preprocessor is not run on the
2228
# input file. (Note that this only needs to work for GNU compilers.)
2231
{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
2232
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
2233
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
2234
echo $ECHO_N "(cached) $ECHO_C" >&6
2236
cat >conftest.$ac_ext <<_ACEOF
2244
rm -f conftest.$ac_objext
2245
if { (ac_try="$ac_compile"
2247
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2248
*) ac_try_echo=$ac_try;;
2250
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2251
(eval "$ac_compile") 2>conftest.er1
2253
grep -v '^ *+' conftest.er1 >conftest.err
2255
cat conftest.err >&5
2256
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2257
(exit $ac_status); } && {
2258
test -z "$ac_f77_werror_flag" ||
2259
test ! -s conftest.err
2260
} && test -s conftest.$ac_objext; then
2263
echo "$as_me: failed program was:" >&5
2264
sed 's/^/| /' conftest.$ac_ext >&5
2269
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2270
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
2273
{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
2274
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
2276
ac_test_FFLAGS=${FFLAGS+set}
2277
ac_save_FFLAGS=$FFLAGS
2279
{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
2280
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
2281
if test "${ac_cv_prog_f77_g+set}" = set; then
2282
echo $ECHO_N "(cached) $ECHO_C" >&6
2285
cat >conftest.$ac_ext <<_ACEOF
2290
rm -f conftest.$ac_objext
2291
if { (ac_try="$ac_compile"
2293
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2294
*) ac_try_echo=$ac_try;;
2296
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2297
(eval "$ac_compile") 2>conftest.er1
2299
grep -v '^ *+' conftest.er1 >conftest.err
2301
cat conftest.err >&5
2302
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2303
(exit $ac_status); } && {
2304
test -z "$ac_f77_werror_flag" ||
2305
test ! -s conftest.err
2306
} && test -s conftest.$ac_objext; then
2307
ac_cv_prog_f77_g=yes
2309
echo "$as_me: failed program was:" >&5
2310
sed 's/^/| /' conftest.$ac_ext >&5
2315
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2318
{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
2319
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
2320
if test "$ac_test_FFLAGS" = set; then
2321
FFLAGS=$ac_save_FFLAGS
2322
elif test $ac_cv_prog_f77_g = yes; then
2323
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
2329
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
2336
G77=`test $ac_compiler_gnu = yes && echo yes`
2338
ac_cpp='$CPP $CPPFLAGS'
2339
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2340
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2341
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2345
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
2346
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2347
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
2348
{ echo "$as_me:$LINENO: checking how to get verbose linking output from $F77" >&5
2349
echo $ECHO_N "checking how to get verbose linking output from $F77... $ECHO_C" >&6; }
2350
if test "${ac_cv_prog_f77_v+set}" = set; then
2351
echo $ECHO_N "(cached) $ECHO_C" >&6
2353
cat >conftest.$ac_ext <<_ACEOF
2358
rm -f conftest.$ac_objext
2359
if { (ac_try="$ac_compile"
2361
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2362
*) ac_try_echo=$ac_try;;
2364
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2365
(eval "$ac_compile") 2>conftest.er1
2367
grep -v '^ *+' conftest.er1 >conftest.err
2369
cat conftest.err >&5
2370
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2371
(exit $ac_status); } && {
2372
test -z "$ac_f77_werror_flag" ||
2373
test ! -s conftest.err
2374
} && test -s conftest.$ac_objext; then
2376
# Try some options frequently used verbose output
2377
for ac_verb in -v -verbose --verbose -V -\#\#\#; do
2378
cat >conftest.$ac_ext <<_ACEOF
2384
# Compile and link our simple test program by passing a flag (argument
2385
# 1 to this macro) to the Fortran compiler in order to get
2386
# "verbose" output that we can then parse for the Fortran linker
2388
ac_save_FFLAGS=$FFLAGS
2389
FFLAGS="$FFLAGS $ac_verb"
2390
eval "set x $ac_link"
2392
echo "$as_me:$LINENO: $*" >&5
2393
ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
2394
echo "$ac_f77_v_output" >&5
2395
FFLAGS=$ac_save_FFLAGS
2399
# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
2400
# /foo, /bar, and /baz are search directories for the Fortran linker.
2401
# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
2402
ac_f77_v_output="`echo $ac_f77_v_output |
2404
sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
2406
# FIXME: we keep getting bitten by quoted arguments; a more general fix
2407
# that detects unbalanced quotes in FLIBS should be implemented
2408
# and (ugh) tested at some point.
2409
case $ac_f77_v_output in
2410
# If we are using xlf then replace all the commas with spaces.
2412
ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
2414
# With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
2415
# $LIBS confuse us, and the libraries appear later in the output anyway).
2416
*mGLOB_options_string*)
2417
ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
2419
# Portland Group compiler has singly- or doubly-quoted -cmdline argument
2420
# Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
2421
# Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
2422
*-cmdline\ * | *-ignore\ * | *-def\ *)
2423
ac_f77_v_output=`echo $ac_f77_v_output | sed "\
2424
s/-cmdline *'[^']*'/ /g; s/-cmdline *\"[^\"]*\"/ /g
2425
s/-ignore *'[^']*'/ /g; s/-ignore *\"[^\"]*\"/ /g
2426
s/-def *'[^']*'/ /g; s/-def *\"[^\"]*\"/ /g"` ;;
2428
# If we are using Cray Fortran then delete quotes.
2430
ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"//g'` ;;
2434
# look for -l* and *.a constructs in the output
2435
for ac_arg in $ac_f77_v_output; do
2437
[\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
2438
ac_cv_prog_f77_v=$ac_verb
2443
if test -z "$ac_cv_prog_f77_v"; then
2444
{ echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F77" >&5
2445
echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;}
2448
echo "$as_me: failed program was:" >&5
2449
sed 's/^/| /' conftest.$ac_ext >&5
2451
{ echo "$as_me:$LINENO: WARNING: compilation failed" >&5
2452
echo "$as_me: WARNING: compilation failed" >&2;}
2455
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2458
{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_v" >&5
2459
echo "${ECHO_T}$ac_cv_prog_f77_v" >&6; }
2460
{ echo "$as_me:$LINENO: checking for Fortran 77 libraries of $F77" >&5
2461
echo $ECHO_N "checking for Fortran 77 libraries of $F77... $ECHO_C" >&6; }
2462
if test "${ac_cv_f77_libs+set}" = set; then
2463
echo $ECHO_N "(cached) $ECHO_C" >&6
2465
if test "x$FLIBS" != "x"; then
2466
ac_cv_f77_libs="$FLIBS" # Let the user override the test.
2469
cat >conftest.$ac_ext <<_ACEOF
2475
# Compile and link our simple test program by passing a flag (argument
2476
# 1 to this macro) to the Fortran compiler in order to get
2477
# "verbose" output that we can then parse for the Fortran linker
2479
ac_save_FFLAGS=$FFLAGS
2480
FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
2481
eval "set x $ac_link"
2483
echo "$as_me:$LINENO: $*" >&5
2484
ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
2485
echo "$ac_f77_v_output" >&5
2486
FFLAGS=$ac_save_FFLAGS
2490
# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
2491
# /foo, /bar, and /baz are search directories for the Fortran linker.
2492
# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
2493
ac_f77_v_output="`echo $ac_f77_v_output |
2495
sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
2497
# FIXME: we keep getting bitten by quoted arguments; a more general fix
2498
# that detects unbalanced quotes in FLIBS should be implemented
2499
# and (ugh) tested at some point.
2500
case $ac_f77_v_output in
2501
# If we are using xlf then replace all the commas with spaces.
2503
ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
2505
# With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
2506
# $LIBS confuse us, and the libraries appear later in the output anyway).
2507
*mGLOB_options_string*)
2508
ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
2510
# Portland Group compiler has singly- or doubly-quoted -cmdline argument
2511
# Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
2512
# Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
2513
*-cmdline\ * | *-ignore\ * | *-def\ *)
2514
ac_f77_v_output=`echo $ac_f77_v_output | sed "\
2515
s/-cmdline *'[^']*'/ /g; s/-cmdline *\"[^\"]*\"/ /g
2516
s/-ignore *'[^']*'/ /g; s/-ignore *\"[^\"]*\"/ /g
2517
s/-def *'[^']*'/ /g; s/-def *\"[^\"]*\"/ /g"` ;;
2519
# If we are using Cray Fortran then delete quotes.
2521
ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"//g'` ;;
2528
# Save positional arguments (if any)
2529
ac_save_positional="$@"
2531
set X $ac_f77_v_output
2532
while test $# != 1; do
2536
[\\/]*.a | ?:[\\/]*.a)
2538
for ac_i in $ac_cv_f77_libs; do
2539
if test x"$ac_arg" = x"$ac_i"; then
2545
if test x"$ac_exists" = xtrue; then
2548
ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
2554
for ac_i in $ac_cv_f77_libs; do
2555
if test x"$ac_arg" = x"$ac_i"; then
2561
if test x"$ac_exists" = xtrue; then
2564
if test "$ac_compiler_gnu" = yes; then
2565
for ac_link_opt in $ac_arg; do
2566
ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
2569
ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
2574
# Ignore these flags.
2575
-lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -LANG:=* | -LIST:* | -LNO:*)
2578
test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
2581
# These flags, when seen by themselves, take an argument.
2582
# We remove the space between option and argument and re-iterate
2583
# unless we find an empty arg or a new option (starting with -)
2594
for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
2596
for ac_i in $ac_cv_f77_libs; do
2597
if test x"$ac_j" = x"$ac_i"; then
2603
if test x"$ac_exists" = xtrue; then
2606
ac_arg="$ac_arg $ac_j"
2607
ac_cv_f77_libs="$ac_cv_f77_libs $ac_j"
2614
for ac_i in $ac_cv_f77_libs; do
2615
if test x"$ac_arg" = x"$ac_i"; then
2621
if test x"$ac_exists" = xtrue; then
2624
ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
2628
-zallextract*| -zdefaultextract)
2629
ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
2631
# Ignore everything else.
2634
# restore positional arguments
2635
set X $ac_save_positional; shift
2637
# We only consider "LD_RUN_PATH" on Solaris systems. If this is seen,
2638
# then we insist that the "run path" must be an absolute path (i.e. it
2639
# must begin with a "/").
2640
case `(uname -sr) 2>/dev/null` in
2642
ac_ld_run_path=`echo $ac_f77_v_output |
2643
sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
2644
test "x$ac_ld_run_path" != x &&
2645
if test "$ac_compiler_gnu" = yes; then
2646
for ac_link_opt in $ac_ld_run_path; do
2647
ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
2650
ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path"
2654
fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
2657
{ echo "$as_me:$LINENO: result: $ac_cv_f77_libs" >&5
2658
echo "${ECHO_T}$ac_cv_f77_libs" >&6; }
2659
FLIBS="$ac_cv_f77_libs"
2663
ac_cpp='$CPP $CPPFLAGS'
2664
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2665
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2666
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2668
fcompiler=`basename $F77`
2670
{ echo "$as_me:$LINENO: *** Fishing for modern Fortran compiler" >&5
2671
echo "$as_me: *** Fishing for modern Fortran compiler" >&6;}
2672
ac_ext=${ac_fc_srcext-f}
2673
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
2674
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
2675
ac_compiler_gnu=$ac_cv_fc_compiler_gnu
2676
if test -n "$ac_tool_prefix"; then
2677
for ac_prog in ifort ifc efc sunf95 gfortran pgf95 pathf95 g95 f90
2679
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2680
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2681
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2682
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2683
if test "${ac_cv_prog_FC+set}" = set; then
2684
echo $ECHO_N "(cached) $ECHO_C" >&6
2686
if test -n "$FC"; then
2687
ac_cv_prog_FC="$FC" # Let the user override the test.
2689
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2693
test -z "$as_dir" && as_dir=.
2694
for ac_exec_ext in '' $ac_executable_extensions; do
2695
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2696
ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
2697
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2707
if test -n "$FC"; then
2708
{ echo "$as_me:$LINENO: result: $FC" >&5
2709
echo "${ECHO_T}$FC" >&6; }
2711
{ echo "$as_me:$LINENO: result: no" >&5
2712
echo "${ECHO_T}no" >&6; }
2716
test -n "$FC" && break
2719
if test -z "$FC"; then
2721
for ac_prog in ifort ifc efc sunf95 gfortran pgf95 pathf95 g95 f90
2723
# Extract the first word of "$ac_prog", so it can be a program name with args.
2724
set dummy $ac_prog; ac_word=$2
2725
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2726
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2727
if test "${ac_cv_prog_ac_ct_FC+set}" = set; then
2728
echo $ECHO_N "(cached) $ECHO_C" >&6
2730
if test -n "$ac_ct_FC"; then
2731
ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
2733
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2737
test -z "$as_dir" && as_dir=.
2738
for ac_exec_ext in '' $ac_executable_extensions; do
2739
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2740
ac_cv_prog_ac_ct_FC="$ac_prog"
2741
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2750
ac_ct_FC=$ac_cv_prog_ac_ct_FC
2751
if test -n "$ac_ct_FC"; then
2752
{ echo "$as_me:$LINENO: result: $ac_ct_FC" >&5
2753
echo "${ECHO_T}$ac_ct_FC" >&6; }
2755
{ echo "$as_me:$LINENO: result: no" >&5
2756
echo "${ECHO_T}no" >&6; }
2760
test -n "$ac_ct_FC" && break
2763
if test "x$ac_ct_FC" = x; then
2766
case $cross_compiling:$ac_tool_warned in
2768
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2769
whose name does not start with the host triplet. If you think this
2770
configuration is useful to you, please write to autoconf@gnu.org." >&5
2771
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2772
whose name does not start with the host triplet. If you think this
2773
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2774
ac_tool_warned=yes ;;
2781
# Provide some information about the compiler.
2782
echo "$as_me:$LINENO: checking for Fortran compiler version" >&5
2783
ac_compiler=`set X $ac_compile; echo $2`
2784
{ (ac_try="$ac_compiler --version >&5"
2786
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2787
*) ac_try_echo=$ac_try;;
2789
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2790
(eval "$ac_compiler --version >&5") 2>&5
2792
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793
(exit $ac_status); }
2794
{ (ac_try="$ac_compiler -v >&5"
2796
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2797
*) ac_try_echo=$ac_try;;
2799
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2800
(eval "$ac_compiler -v >&5") 2>&5
2802
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803
(exit $ac_status); }
2804
{ (ac_try="$ac_compiler -V >&5"
2806
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2807
*) ac_try_echo=$ac_try;;
2809
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2810
(eval "$ac_compiler -V >&5") 2>&5
2812
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2813
(exit $ac_status); }
2816
# If we don't use `.F' as extension, the preprocessor is not run on the
2817
# input file. (Note that this only needs to work for GNU compilers.)
2820
{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5
2821
echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6; }
2822
if test "${ac_cv_fc_compiler_gnu+set}" = set; then
2823
echo $ECHO_N "(cached) $ECHO_C" >&6
2825
cat >conftest.$ac_ext <<_ACEOF
2833
rm -f conftest.$ac_objext
2834
if { (ac_try="$ac_compile"
2836
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2837
*) ac_try_echo=$ac_try;;
2839
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2840
(eval "$ac_compile") 2>conftest.er1
2842
grep -v '^ *+' conftest.er1 >conftest.err
2844
cat conftest.err >&5
2845
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846
(exit $ac_status); } && {
2847
test -z "$ac_fc_werror_flag" ||
2848
test ! -s conftest.err
2849
} && test -s conftest.$ac_objext; then
2852
echo "$as_me: failed program was:" >&5
2853
sed 's/^/| /' conftest.$ac_ext >&5
2858
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2859
ac_cv_fc_compiler_gnu=$ac_compiler_gnu
2862
{ echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5
2863
echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6; }
2865
ac_test_FFLAGS=${FCFLAGS+set}
2866
ac_save_FFLAGS=$FCFLAGS
2868
{ echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5
2869
echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6; }
2870
if test "${ac_cv_prog_fc_g+set}" = set; then
2871
echo $ECHO_N "(cached) $ECHO_C" >&6
2874
cat >conftest.$ac_ext <<_ACEOF
2879
rm -f conftest.$ac_objext
2880
if { (ac_try="$ac_compile"
2882
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2883
*) ac_try_echo=$ac_try;;
2885
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2886
(eval "$ac_compile") 2>conftest.er1
2888
grep -v '^ *+' conftest.er1 >conftest.err
2890
cat conftest.err >&5
2891
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892
(exit $ac_status); } && {
2893
test -z "$ac_fc_werror_flag" ||
2894
test ! -s conftest.err
2895
} && test -s conftest.$ac_objext; then
2898
echo "$as_me: failed program was:" >&5
2899
sed 's/^/| /' conftest.$ac_ext >&5
2904
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2907
{ echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5
2908
echo "${ECHO_T}$ac_cv_prog_fc_g" >&6; }
2909
if test "$ac_test_FFLAGS" = set; then
2910
FCFLAGS=$ac_save_FFLAGS
2911
elif test $ac_cv_prog_fc_g = yes; then
2912
if test "x$ac_cv_fc_compiler_gnu" = xyes; then
2918
if test "x$ac_cv_fc_compiler_gnu" = xyes; then
2926
ac_cpp='$CPP $CPPFLAGS'
2927
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2928
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2929
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2932
ac_ext=${ac_fc_srcext-f}
2933
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
2934
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
2935
ac_compiler_gnu=$ac_cv_fc_compiler_gnu
2936
{ echo "$as_me:$LINENO: checking how to get verbose linking output from $FC" >&5
2937
echo $ECHO_N "checking how to get verbose linking output from $FC... $ECHO_C" >&6; }
2938
if test "${ac_cv_prog_fc_v+set}" = set; then
2939
echo $ECHO_N "(cached) $ECHO_C" >&6
2941
cat >conftest.$ac_ext <<_ACEOF
2946
rm -f conftest.$ac_objext
2947
if { (ac_try="$ac_compile"
2949
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2950
*) ac_try_echo=$ac_try;;
2952
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2953
(eval "$ac_compile") 2>conftest.er1
2955
grep -v '^ *+' conftest.er1 >conftest.err
2957
cat conftest.err >&5
2958
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959
(exit $ac_status); } && {
2960
test -z "$ac_fc_werror_flag" ||
2961
test ! -s conftest.err
2962
} && test -s conftest.$ac_objext; then
2964
# Try some options frequently used verbose output
2965
for ac_verb in -v -verbose --verbose -V -\#\#\#; do
2966
cat >conftest.$ac_ext <<_ACEOF
2972
# Compile and link our simple test program by passing a flag (argument
2973
# 1 to this macro) to the Fortran compiler in order to get
2974
# "verbose" output that we can then parse for the Fortran linker
2976
ac_save_FFLAGS=$FCFLAGS
2977
FCFLAGS="$FCFLAGS $ac_verb"
2978
eval "set x $ac_link"
2980
echo "$as_me:$LINENO: $*" >&5
2981
ac_fc_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
2982
echo "$ac_fc_v_output" >&5
2983
FCFLAGS=$ac_save_FFLAGS
2987
# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
2988
# /foo, /bar, and /baz are search directories for the Fortran linker.
2989
# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
2990
ac_fc_v_output="`echo $ac_fc_v_output |
2992
sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_fc_v_output"
2994
# FIXME: we keep getting bitten by quoted arguments; a more general fix
2995
# that detects unbalanced quotes in FLIBS should be implemented
2996
# and (ugh) tested at some point.
2997
case $ac_fc_v_output in
2998
# If we are using xlf then replace all the commas with spaces.
3000
ac_fc_v_output=`echo $ac_fc_v_output | sed 's/,/ /g'` ;;
3002
# With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
3003
# $LIBS confuse us, and the libraries appear later in the output anyway).
3004
*mGLOB_options_string*)
3005
ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
3007
# Portland Group compiler has singly- or doubly-quoted -cmdline argument
3008
# Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
3009
# Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
3010
*-cmdline\ * | *-ignore\ * | *-def\ *)
3011
ac_fc_v_output=`echo $ac_fc_v_output | sed "\
3012
s/-cmdline *'[^']*'/ /g; s/-cmdline *\"[^\"]*\"/ /g
3013
s/-ignore *'[^']*'/ /g; s/-ignore *\"[^\"]*\"/ /g
3014
s/-def *'[^']*'/ /g; s/-def *\"[^\"]*\"/ /g"` ;;
3016
# If we are using Cray Fortran then delete quotes.
3018
ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"//g'` ;;
3022
# look for -l* and *.a constructs in the output
3023
for ac_arg in $ac_fc_v_output; do
3025
[\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
3026
ac_cv_prog_fc_v=$ac_verb
3031
if test -z "$ac_cv_prog_fc_v"; then
3032
{ echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $FC" >&5
3033
echo "$as_me: WARNING: cannot determine how to obtain linking information from $FC" >&2;}
3036
echo "$as_me: failed program was:" >&5
3037
sed 's/^/| /' conftest.$ac_ext >&5
3039
{ echo "$as_me:$LINENO: WARNING: compilation failed" >&5
3040
echo "$as_me: WARNING: compilation failed" >&2;}
3043
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3046
{ echo "$as_me:$LINENO: result: $ac_cv_prog_fc_v" >&5
3047
echo "${ECHO_T}$ac_cv_prog_fc_v" >&6; }
3048
{ echo "$as_me:$LINENO: checking for Fortran libraries of $FC" >&5
3049
echo $ECHO_N "checking for Fortran libraries of $FC... $ECHO_C" >&6; }
3050
if test "${ac_cv_fc_libs+set}" = set; then
3051
echo $ECHO_N "(cached) $ECHO_C" >&6
3053
if test "x$FCLIBS" != "x"; then
3054
ac_cv_fc_libs="$FCLIBS" # Let the user override the test.
3057
cat >conftest.$ac_ext <<_ACEOF
3063
# Compile and link our simple test program by passing a flag (argument
3064
# 1 to this macro) to the Fortran compiler in order to get
3065
# "verbose" output that we can then parse for the Fortran linker
3067
ac_save_FFLAGS=$FCFLAGS
3068
FCFLAGS="$FCFLAGS $ac_cv_prog_fc_v"
3069
eval "set x $ac_link"
3071
echo "$as_me:$LINENO: $*" >&5
3072
ac_fc_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
3073
echo "$ac_fc_v_output" >&5
3074
FCFLAGS=$ac_save_FFLAGS
3078
# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
3079
# /foo, /bar, and /baz are search directories for the Fortran linker.
3080
# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
3081
ac_fc_v_output="`echo $ac_fc_v_output |
3083
sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_fc_v_output"
3085
# FIXME: we keep getting bitten by quoted arguments; a more general fix
3086
# that detects unbalanced quotes in FLIBS should be implemented
3087
# and (ugh) tested at some point.
3088
case $ac_fc_v_output in
3089
# If we are using xlf then replace all the commas with spaces.
3091
ac_fc_v_output=`echo $ac_fc_v_output | sed 's/,/ /g'` ;;
3093
# With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
3094
# $LIBS confuse us, and the libraries appear later in the output anyway).
3095
*mGLOB_options_string*)
3096
ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
3098
# Portland Group compiler has singly- or doubly-quoted -cmdline argument
3099
# Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
3100
# Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
3101
*-cmdline\ * | *-ignore\ * | *-def\ *)
3102
ac_fc_v_output=`echo $ac_fc_v_output | sed "\
3103
s/-cmdline *'[^']*'/ /g; s/-cmdline *\"[^\"]*\"/ /g
3104
s/-ignore *'[^']*'/ /g; s/-ignore *\"[^\"]*\"/ /g
3105
s/-def *'[^']*'/ /g; s/-def *\"[^\"]*\"/ /g"` ;;
3107
# If we are using Cray Fortran then delete quotes.
3109
ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"//g'` ;;
3116
# Save positional arguments (if any)
3117
ac_save_positional="$@"
3119
set X $ac_fc_v_output
3120
while test $# != 1; do
3124
[\\/]*.a | ?:[\\/]*.a)
3126
for ac_i in $ac_cv_fc_libs; do
3127
if test x"$ac_arg" = x"$ac_i"; then
3133
if test x"$ac_exists" = xtrue; then
3136
ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
3142
for ac_i in $ac_cv_fc_libs; do
3143
if test x"$ac_arg" = x"$ac_i"; then
3149
if test x"$ac_exists" = xtrue; then
3152
if test "$ac_compiler_gnu" = yes; then
3153
for ac_link_opt in $ac_arg; do
3154
ac_cv_fc_libs="$ac_cv_fc_libs -Xlinker $ac_link_opt"
3157
ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
3162
# Ignore these flags.
3163
-lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -LANG:=* | -LIST:* | -LNO:*)
3166
test x"$CYGWIN" != xyes && ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
3169
# These flags, when seen by themselves, take an argument.
3170
# We remove the space between option and argument and re-iterate
3171
# unless we find an empty arg or a new option (starting with -)
3182
for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
3184
for ac_i in $ac_cv_fc_libs; do
3185
if test x"$ac_j" = x"$ac_i"; then
3191
if test x"$ac_exists" = xtrue; then
3194
ac_arg="$ac_arg $ac_j"
3195
ac_cv_fc_libs="$ac_cv_fc_libs $ac_j"
3202
for ac_i in $ac_cv_fc_libs; do
3203
if test x"$ac_arg" = x"$ac_i"; then
3209
if test x"$ac_exists" = xtrue; then
3212
ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
3216
-zallextract*| -zdefaultextract)
3217
ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
3219
# Ignore everything else.
3222
# restore positional arguments
3223
set X $ac_save_positional; shift
3225
# We only consider "LD_RUN_PATH" on Solaris systems. If this is seen,
3226
# then we insist that the "run path" must be an absolute path (i.e. it
3227
# must begin with a "/").
3228
case `(uname -sr) 2>/dev/null` in
3230
ac_ld_run_path=`echo $ac_fc_v_output |
3231
sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
3232
test "x$ac_ld_run_path" != x &&
3233
if test "$ac_compiler_gnu" = yes; then
3234
for ac_link_opt in $ac_ld_run_path; do
3235
ac_cv_fc_libs="$ac_cv_fc_libs -Xlinker $ac_link_opt"
3238
ac_cv_fc_libs="$ac_cv_fc_libs $ac_ld_run_path"
3242
fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
3245
{ echo "$as_me:$LINENO: result: $ac_cv_fc_libs" >&5
3246
echo "${ECHO_T}$ac_cv_fc_libs" >&6; }
3247
FCLIBS="$ac_cv_fc_libs"
3251
ac_cpp='$CPP $CPPFLAGS'
3252
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3253
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3254
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3256
fccompiler=`basename $FC`
3258
if test "$fcompiler" = "sunf95" ; then
3260
FFLAGS="-M../include $FFLAGS"
3261
FCFLAGS="-M../include $FCFLAGS"
3266
if test "$F77" = "$FC" ; then
3268
{ echo "$as_me:$LINENO: *** Assuming that $FC can process both free and fixed form fortran files." >&5
3269
echo "$as_me: *** Assuming that $FC can process both free and fixed form fortran files." >&6;}
3271
{ echo "$as_me:$LINENO: *** Assuming that $FC cannot process both free and fixed form fortran files (silly fortran)." >&5
3272
echo "$as_me: *** Assuming that $FC cannot process both free and fixed form fortran files (silly fortran)." >&6;}
3277
ac_cpp='$CXXCPP $CPPFLAGS'
3278
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3279
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3280
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3281
if test -z "$CXX"; then
3282
if test -n "$CCC"; then
3285
if test -n "$ac_tool_prefix"; then
3286
for ac_prog in icpc icc ecc sunCC pgCC g++ CC
3288
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3289
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3290
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3291
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3292
if test "${ac_cv_prog_CXX+set}" = set; then
3293
echo $ECHO_N "(cached) $ECHO_C" >&6
3295
if test -n "$CXX"; then
3296
ac_cv_prog_CXX="$CXX" # Let the user override the test.
3298
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3302
test -z "$as_dir" && as_dir=.
3303
for ac_exec_ext in '' $ac_executable_extensions; do
3304
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3305
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3306
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3316
if test -n "$CXX"; then
3317
{ echo "$as_me:$LINENO: result: $CXX" >&5
3318
echo "${ECHO_T}$CXX" >&6; }
3320
{ echo "$as_me:$LINENO: result: no" >&5
3321
echo "${ECHO_T}no" >&6; }
3325
test -n "$CXX" && break
3328
if test -z "$CXX"; then
3330
for ac_prog in icpc icc ecc sunCC pgCC g++ CC
3332
# Extract the first word of "$ac_prog", so it can be a program name with args.
3333
set dummy $ac_prog; ac_word=$2
3334
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3335
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3336
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3337
echo $ECHO_N "(cached) $ECHO_C" >&6
3339
if test -n "$ac_ct_CXX"; then
3340
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3342
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3346
test -z "$as_dir" && as_dir=.
3347
for ac_exec_ext in '' $ac_executable_extensions; do
3348
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3349
ac_cv_prog_ac_ct_CXX="$ac_prog"
3350
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3359
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3360
if test -n "$ac_ct_CXX"; then
3361
{ echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3362
echo "${ECHO_T}$ac_ct_CXX" >&6; }
3364
{ echo "$as_me:$LINENO: result: no" >&5
3365
echo "${ECHO_T}no" >&6; }
3369
test -n "$ac_ct_CXX" && break
3372
if test "x$ac_ct_CXX" = x; then
3375
case $cross_compiling:$ac_tool_warned in
3377
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3378
whose name does not start with the host triplet. If you think this
3379
configuration is useful to you, please write to autoconf@gnu.org." >&5
3380
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3381
whose name does not start with the host triplet. If you think this
3382
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3383
ac_tool_warned=yes ;;
3391
# Provide some information about the compiler.
3392
echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3393
ac_compiler=`set X $ac_compile; echo $2`
3394
{ (ac_try="$ac_compiler --version >&5"
3396
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3397
*) ac_try_echo=$ac_try;;
3399
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3400
(eval "$ac_compiler --version >&5") 2>&5
3402
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403
(exit $ac_status); }
3404
{ (ac_try="$ac_compiler -v >&5"
3406
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3407
*) ac_try_echo=$ac_try;;
3409
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3410
(eval "$ac_compiler -v >&5") 2>&5
3412
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3413
(exit $ac_status); }
3414
{ (ac_try="$ac_compiler -V >&5"
3416
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3417
*) ac_try_echo=$ac_try;;
3419
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3420
(eval "$ac_compiler -V >&5") 2>&5
3422
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3423
(exit $ac_status); }
3425
{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3426
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3427
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3428
echo $ECHO_N "(cached) $ECHO_C" >&6
3430
cat >conftest.$ac_ext <<_ACEOF
3433
cat confdefs.h >>conftest.$ac_ext
3434
cat >>conftest.$ac_ext <<_ACEOF
3435
/* end confdefs.h. */
3448
rm -f conftest.$ac_objext
3449
if { (ac_try="$ac_compile"
3451
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3452
*) ac_try_echo=$ac_try;;
3454
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3455
(eval "$ac_compile") 2>conftest.er1
3457
grep -v '^ *+' conftest.er1 >conftest.err
3459
cat conftest.err >&5
3460
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3461
(exit $ac_status); } && {
3462
test -z "$ac_cxx_werror_flag" ||
3463
test ! -s conftest.err
3464
} && test -s conftest.$ac_objext; then
3467
echo "$as_me: failed program was:" >&5
3468
sed 's/^/| /' conftest.$ac_ext >&5
3473
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3474
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3477
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3478
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3479
GXX=`test $ac_compiler_gnu = yes && echo yes`
3480
ac_test_CXXFLAGS=${CXXFLAGS+set}
3481
ac_save_CXXFLAGS=$CXXFLAGS
3482
{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3483
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3484
if test "${ac_cv_prog_cxx_g+set}" = set; then
3485
echo $ECHO_N "(cached) $ECHO_C" >&6
3487
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3488
ac_cxx_werror_flag=yes
3491
cat >conftest.$ac_ext <<_ACEOF
3494
cat confdefs.h >>conftest.$ac_ext
3495
cat >>conftest.$ac_ext <<_ACEOF
3496
/* end confdefs.h. */
3506
rm -f conftest.$ac_objext
3507
if { (ac_try="$ac_compile"
3509
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3510
*) ac_try_echo=$ac_try;;
3512
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3513
(eval "$ac_compile") 2>conftest.er1
3515
grep -v '^ *+' conftest.er1 >conftest.err
3517
cat conftest.err >&5
3518
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3519
(exit $ac_status); } && {
3520
test -z "$ac_cxx_werror_flag" ||
3521
test ! -s conftest.err
3522
} && test -s conftest.$ac_objext; then
3523
ac_cv_prog_cxx_g=yes
3525
echo "$as_me: failed program was:" >&5
3526
sed 's/^/| /' conftest.$ac_ext >&5
3529
cat >conftest.$ac_ext <<_ACEOF
3532
cat confdefs.h >>conftest.$ac_ext
3533
cat >>conftest.$ac_ext <<_ACEOF
3534
/* end confdefs.h. */
3544
rm -f conftest.$ac_objext
3545
if { (ac_try="$ac_compile"
3547
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3548
*) ac_try_echo=$ac_try;;
3550
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3551
(eval "$ac_compile") 2>conftest.er1
3553
grep -v '^ *+' conftest.er1 >conftest.err
3555
cat conftest.err >&5
3556
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557
(exit $ac_status); } && {
3558
test -z "$ac_cxx_werror_flag" ||
3559
test ! -s conftest.err
3560
} && test -s conftest.$ac_objext; then
3563
echo "$as_me: failed program was:" >&5
3564
sed 's/^/| /' conftest.$ac_ext >&5
3566
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3568
cat >conftest.$ac_ext <<_ACEOF
3571
cat confdefs.h >>conftest.$ac_ext
3572
cat >>conftest.$ac_ext <<_ACEOF
3573
/* end confdefs.h. */
3583
rm -f conftest.$ac_objext
3584
if { (ac_try="$ac_compile"
3586
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3587
*) ac_try_echo=$ac_try;;
3589
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3590
(eval "$ac_compile") 2>conftest.er1
3592
grep -v '^ *+' conftest.er1 >conftest.err
3594
cat conftest.err >&5
3595
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596
(exit $ac_status); } && {
3597
test -z "$ac_cxx_werror_flag" ||
3598
test ! -s conftest.err
3599
} && test -s conftest.$ac_objext; then
3600
ac_cv_prog_cxx_g=yes
3602
echo "$as_me: failed program was:" >&5
3603
sed 's/^/| /' conftest.$ac_ext >&5
3608
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3611
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3614
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3615
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3617
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3618
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3619
if test "$ac_test_CXXFLAGS" = set; then
3620
CXXFLAGS=$ac_save_CXXFLAGS
3621
elif test $ac_cv_prog_cxx_g = yes; then
3622
if test "$GXX" = yes; then
3628
if test "$GXX" = yes; then
3635
ac_cpp='$CPP $CPPFLAGS'
3636
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3637
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3638
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3641
ac_cpp='$CPP $CPPFLAGS'
3642
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3643
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3644
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3645
if test -n "$ac_tool_prefix"; then
3646
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3647
set dummy ${ac_tool_prefix}gcc; ac_word=$2
3648
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3649
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3650
if test "${ac_cv_prog_CC+set}" = set; then
3651
echo $ECHO_N "(cached) $ECHO_C" >&6
3653
if test -n "$CC"; then
3654
ac_cv_prog_CC="$CC" # Let the user override the test.
3656
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3660
test -z "$as_dir" && as_dir=.
3661
for ac_exec_ext in '' $ac_executable_extensions; do
3662
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3663
ac_cv_prog_CC="${ac_tool_prefix}gcc"
3664
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3674
if test -n "$CC"; then
3675
{ echo "$as_me:$LINENO: result: $CC" >&5
3676
echo "${ECHO_T}$CC" >&6; }
3678
{ echo "$as_me:$LINENO: result: no" >&5
3679
echo "${ECHO_T}no" >&6; }
3684
if test -z "$ac_cv_prog_CC"; then
3686
# Extract the first word of "gcc", so it can be a program name with args.
3687
set dummy gcc; ac_word=$2
3688
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3689
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3690
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3691
echo $ECHO_N "(cached) $ECHO_C" >&6
3693
if test -n "$ac_ct_CC"; then
3694
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3696
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3700
test -z "$as_dir" && as_dir=.
3701
for ac_exec_ext in '' $ac_executable_extensions; do
3702
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3703
ac_cv_prog_ac_ct_CC="gcc"
3704
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3713
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3714
if test -n "$ac_ct_CC"; then
3715
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3716
echo "${ECHO_T}$ac_ct_CC" >&6; }
3718
{ echo "$as_me:$LINENO: result: no" >&5
3719
echo "${ECHO_T}no" >&6; }
3722
if test "x$ac_ct_CC" = x; then
3725
case $cross_compiling:$ac_tool_warned in
3727
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3728
whose name does not start with the host triplet. If you think this
3729
configuration is useful to you, please write to autoconf@gnu.org." >&5
3730
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3731
whose name does not start with the host triplet. If you think this
3732
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3733
ac_tool_warned=yes ;;
3741
if test -z "$CC"; then
3742
if test -n "$ac_tool_prefix"; then
3743
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3744
set dummy ${ac_tool_prefix}cc; ac_word=$2
3745
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3746
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3747
if test "${ac_cv_prog_CC+set}" = set; then
3748
echo $ECHO_N "(cached) $ECHO_C" >&6
3750
if test -n "$CC"; then
3751
ac_cv_prog_CC="$CC" # Let the user override the test.
3753
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3757
test -z "$as_dir" && as_dir=.
3758
for ac_exec_ext in '' $ac_executable_extensions; do
3759
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3760
ac_cv_prog_CC="${ac_tool_prefix}cc"
3761
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3771
if test -n "$CC"; then
3772
{ echo "$as_me:$LINENO: result: $CC" >&5
3773
echo "${ECHO_T}$CC" >&6; }
3775
{ echo "$as_me:$LINENO: result: no" >&5
3776
echo "${ECHO_T}no" >&6; }
3782
if test -z "$CC"; then
3783
# Extract the first word of "cc", so it can be a program name with args.
3784
set dummy cc; ac_word=$2
3785
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3786
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3787
if test "${ac_cv_prog_CC+set}" = set; then
3788
echo $ECHO_N "(cached) $ECHO_C" >&6
3790
if test -n "$CC"; then
3791
ac_cv_prog_CC="$CC" # Let the user override the test.
3794
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3798
test -z "$as_dir" && as_dir=.
3799
for ac_exec_ext in '' $ac_executable_extensions; do
3800
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3801
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3802
ac_prog_rejected=yes
3806
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3813
if test $ac_prog_rejected = yes; then
3814
# We found a bogon in the path, so make sure we never use it.
3815
set dummy $ac_cv_prog_CC
3817
if test $# != 0; then
3818
# We chose a different compiler from the bogus one.
3819
# However, it has the same basename, so the bogon will be chosen
3820
# first if we set CC to just the basename; use the full file name.
3822
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3828
if test -n "$CC"; then
3829
{ echo "$as_me:$LINENO: result: $CC" >&5
3830
echo "${ECHO_T}$CC" >&6; }
3832
{ echo "$as_me:$LINENO: result: no" >&5
3833
echo "${ECHO_T}no" >&6; }
3838
if test -z "$CC"; then
3839
if test -n "$ac_tool_prefix"; then
3840
for ac_prog in cl.exe
3842
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3843
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3844
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3845
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3846
if test "${ac_cv_prog_CC+set}" = set; then
3847
echo $ECHO_N "(cached) $ECHO_C" >&6
3849
if test -n "$CC"; then
3850
ac_cv_prog_CC="$CC" # Let the user override the test.
3852
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3856
test -z "$as_dir" && as_dir=.
3857
for ac_exec_ext in '' $ac_executable_extensions; do
3858
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3859
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3860
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3870
if test -n "$CC"; then
3871
{ echo "$as_me:$LINENO: result: $CC" >&5
3872
echo "${ECHO_T}$CC" >&6; }
3874
{ echo "$as_me:$LINENO: result: no" >&5
3875
echo "${ECHO_T}no" >&6; }
3879
test -n "$CC" && break
3882
if test -z "$CC"; then
3884
for ac_prog in cl.exe
3886
# Extract the first word of "$ac_prog", so it can be a program name with args.
3887
set dummy $ac_prog; ac_word=$2
3888
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3889
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3890
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3891
echo $ECHO_N "(cached) $ECHO_C" >&6
3893
if test -n "$ac_ct_CC"; then
3894
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3896
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3900
test -z "$as_dir" && as_dir=.
3901
for ac_exec_ext in '' $ac_executable_extensions; do
3902
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3903
ac_cv_prog_ac_ct_CC="$ac_prog"
3904
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3913
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3914
if test -n "$ac_ct_CC"; then
3915
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3916
echo "${ECHO_T}$ac_ct_CC" >&6; }
3918
{ echo "$as_me:$LINENO: result: no" >&5
3919
echo "${ECHO_T}no" >&6; }
3923
test -n "$ac_ct_CC" && break
3926
if test "x$ac_ct_CC" = x; then
3929
case $cross_compiling:$ac_tool_warned in
3931
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3932
whose name does not start with the host triplet. If you think this
3933
configuration is useful to you, please write to autoconf@gnu.org." >&5
3934
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3935
whose name does not start with the host triplet. If you think this
3936
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3937
ac_tool_warned=yes ;;
3946
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3947
See \`config.log' for more details." >&5
3948
echo "$as_me: error: no acceptable C compiler found in \$PATH
3949
See \`config.log' for more details." >&2;}
3950
{ (exit 1); exit 1; }; }
3952
# Provide some information about the compiler.
3953
echo "$as_me:$LINENO: checking for C compiler version" >&5
3954
ac_compiler=`set X $ac_compile; echo $2`
3955
{ (ac_try="$ac_compiler --version >&5"
3957
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3958
*) ac_try_echo=$ac_try;;
3960
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3961
(eval "$ac_compiler --version >&5") 2>&5
3963
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3964
(exit $ac_status); }
3965
{ (ac_try="$ac_compiler -v >&5"
3967
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3968
*) ac_try_echo=$ac_try;;
3970
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3971
(eval "$ac_compiler -v >&5") 2>&5
3973
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3974
(exit $ac_status); }
3975
{ (ac_try="$ac_compiler -V >&5"
3977
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3978
*) ac_try_echo=$ac_try;;
3980
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3981
(eval "$ac_compiler -V >&5") 2>&5
3983
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984
(exit $ac_status); }
3986
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3987
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3988
if test "${ac_cv_c_compiler_gnu+set}" = set; then
3989
echo $ECHO_N "(cached) $ECHO_C" >&6
3991
cat >conftest.$ac_ext <<_ACEOF
3994
cat confdefs.h >>conftest.$ac_ext
3995
cat >>conftest.$ac_ext <<_ACEOF
3996
/* end confdefs.h. */
4009
rm -f conftest.$ac_objext
4010
if { (ac_try="$ac_compile"
4012
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4013
*) ac_try_echo=$ac_try;;
4015
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4016
(eval "$ac_compile") 2>conftest.er1
4018
grep -v '^ *+' conftest.er1 >conftest.err
4020
cat conftest.err >&5
4021
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4022
(exit $ac_status); } && {
4023
test -z "$ac_c_werror_flag" ||
4024
test ! -s conftest.err
4025
} && test -s conftest.$ac_objext; then
4028
echo "$as_me: failed program was:" >&5
4029
sed 's/^/| /' conftest.$ac_ext >&5
4034
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4035
ac_cv_c_compiler_gnu=$ac_compiler_gnu
4038
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4039
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4040
GCC=`test $ac_compiler_gnu = yes && echo yes`
4041
ac_test_CFLAGS=${CFLAGS+set}
4042
ac_save_CFLAGS=$CFLAGS
4043
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4044
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4045
if test "${ac_cv_prog_cc_g+set}" = set; then
4046
echo $ECHO_N "(cached) $ECHO_C" >&6
4048
ac_save_c_werror_flag=$ac_c_werror_flag
4049
ac_c_werror_flag=yes
4052
cat >conftest.$ac_ext <<_ACEOF
4055
cat confdefs.h >>conftest.$ac_ext
4056
cat >>conftest.$ac_ext <<_ACEOF
4057
/* end confdefs.h. */
4067
rm -f conftest.$ac_objext
4068
if { (ac_try="$ac_compile"
4070
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4071
*) ac_try_echo=$ac_try;;
4073
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4074
(eval "$ac_compile") 2>conftest.er1
4076
grep -v '^ *+' conftest.er1 >conftest.err
4078
cat conftest.err >&5
4079
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080
(exit $ac_status); } && {
4081
test -z "$ac_c_werror_flag" ||
4082
test ! -s conftest.err
4083
} && test -s conftest.$ac_objext; then
4086
echo "$as_me: failed program was:" >&5
4087
sed 's/^/| /' conftest.$ac_ext >&5
4090
cat >conftest.$ac_ext <<_ACEOF
4093
cat confdefs.h >>conftest.$ac_ext
4094
cat >>conftest.$ac_ext <<_ACEOF
4095
/* end confdefs.h. */
4105
rm -f conftest.$ac_objext
4106
if { (ac_try="$ac_compile"
4108
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4109
*) ac_try_echo=$ac_try;;
4111
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4112
(eval "$ac_compile") 2>conftest.er1
4114
grep -v '^ *+' conftest.er1 >conftest.err
4116
cat conftest.err >&5
4117
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4118
(exit $ac_status); } && {
4119
test -z "$ac_c_werror_flag" ||
4120
test ! -s conftest.err
4121
} && test -s conftest.$ac_objext; then
4124
echo "$as_me: failed program was:" >&5
4125
sed 's/^/| /' conftest.$ac_ext >&5
4127
ac_c_werror_flag=$ac_save_c_werror_flag
4129
cat >conftest.$ac_ext <<_ACEOF
4132
cat confdefs.h >>conftest.$ac_ext
4133
cat >>conftest.$ac_ext <<_ACEOF
4134
/* end confdefs.h. */
4144
rm -f conftest.$ac_objext
4145
if { (ac_try="$ac_compile"
4147
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4148
*) ac_try_echo=$ac_try;;
4150
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4151
(eval "$ac_compile") 2>conftest.er1
4153
grep -v '^ *+' conftest.er1 >conftest.err
4155
cat conftest.err >&5
4156
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4157
(exit $ac_status); } && {
4158
test -z "$ac_c_werror_flag" ||
4159
test ! -s conftest.err
4160
} && test -s conftest.$ac_objext; then
4163
echo "$as_me: failed program was:" >&5
4164
sed 's/^/| /' conftest.$ac_ext >&5
4169
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4172
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4175
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4176
ac_c_werror_flag=$ac_save_c_werror_flag
4178
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4179
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4180
if test "$ac_test_CFLAGS" = set; then
4181
CFLAGS=$ac_save_CFLAGS
4182
elif test $ac_cv_prog_cc_g = yes; then
4183
if test "$GCC" = yes; then
4189
if test "$GCC" = yes; then
4195
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4196
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4197
if test "${ac_cv_prog_cc_c89+set}" = set; then
4198
echo $ECHO_N "(cached) $ECHO_C" >&6
4200
ac_cv_prog_cc_c89=no
4202
cat >conftest.$ac_ext <<_ACEOF
4205
cat confdefs.h >>conftest.$ac_ext
4206
cat >>conftest.$ac_ext <<_ACEOF
4207
/* end confdefs.h. */
4210
#include <sys/types.h>
4211
#include <sys/stat.h>
4212
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4213
struct buf { int x; };
4214
FILE * (*rcsopen) (struct buf *, struct stat *, int);
4215
static char *e (p, i)
4221
static char *f (char * (*g) (char **, int), char **p, ...)
4226
s = g (p, va_arg (v,int));
4231
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4232
function prototypes and stuff, but not '\xHH' hex character constants.
4233
These don't provoke an error unfortunately, instead are silently treated
4234
as 'x'. The following induces an error, until -std is added to get
4235
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4236
array size at least. It's necessary to write '\x00'==0 to get something
4237
that's true only with -std. */
4238
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4240
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4241
inside strings and character constants. */
4243
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4245
int test (int i, double x);
4246
struct s1 {int (*f) (int a);};
4247
struct s2 {int (*f) (double a);};
4248
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4254
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4259
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4260
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4262
CC="$ac_save_CC $ac_arg"
4263
rm -f conftest.$ac_objext
4264
if { (ac_try="$ac_compile"
4266
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4267
*) ac_try_echo=$ac_try;;
4269
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4270
(eval "$ac_compile") 2>conftest.er1
4272
grep -v '^ *+' conftest.er1 >conftest.err
4274
cat conftest.err >&5
4275
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276
(exit $ac_status); } && {
4277
test -z "$ac_c_werror_flag" ||
4278
test ! -s conftest.err
4279
} && test -s conftest.$ac_objext; then
4280
ac_cv_prog_cc_c89=$ac_arg
4282
echo "$as_me: failed program was:" >&5
4283
sed 's/^/| /' conftest.$ac_ext >&5
4288
rm -f core conftest.err conftest.$ac_objext
4289
test "x$ac_cv_prog_cc_c89" != "xno" && break
4291
rm -f conftest.$ac_ext
4296
case "x$ac_cv_prog_cc_c89" in
4298
{ echo "$as_me:$LINENO: result: none needed" >&5
4299
echo "${ECHO_T}none needed" >&6; } ;;
4301
{ echo "$as_me:$LINENO: result: unsupported" >&5
4302
echo "${ECHO_T}unsupported" >&6; } ;;
4304
CC="$CC $ac_cv_prog_cc_c89"
4305
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4306
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4311
ac_cpp='$CPP $CPPFLAGS'
4312
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4313
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4314
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4317
ac_cpp='$CPP $CPPFLAGS'
4318
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4319
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4320
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4321
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4322
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4323
# On Suns, sometimes $CPP names a directory.
4324
if test -n "$CPP" && test -d "$CPP"; then
4327
if test -z "$CPP"; then
4328
if test "${ac_cv_prog_CPP+set}" = set; then
4329
echo $ECHO_N "(cached) $ECHO_C" >&6
4331
# Double quotes because CPP needs to be expanded
4332
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4335
for ac_c_preproc_warn_flag in '' yes
4337
# Use a header file that comes with gcc, so configuring glibc
4338
# with a fresh cross-compiler works.
4339
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4340
# <limits.h> exists even on freestanding compilers.
4341
# On the NeXT, cc -E runs the code through the compiler's parser,
4342
# not just through cpp. "Syntax error" is here to catch this case.
4343
cat >conftest.$ac_ext <<_ACEOF
4346
cat confdefs.h >>conftest.$ac_ext
4347
cat >>conftest.$ac_ext <<_ACEOF
4348
/* end confdefs.h. */
4350
# include <limits.h>
4352
# include <assert.h>
4356
if { (ac_try="$ac_cpp conftest.$ac_ext"
4358
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4359
*) ac_try_echo=$ac_try;;
4361
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4362
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4364
grep -v '^ *+' conftest.er1 >conftest.err
4366
cat conftest.err >&5
4367
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4368
(exit $ac_status); } >/dev/null && {
4369
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4370
test ! -s conftest.err
4374
echo "$as_me: failed program was:" >&5
4375
sed 's/^/| /' conftest.$ac_ext >&5
4377
# Broken: fails on valid input.
4381
rm -f conftest.err conftest.$ac_ext
4383
# OK, works on sane cases. Now check whether nonexistent headers
4384
# can be detected and how.
4385
cat >conftest.$ac_ext <<_ACEOF
4388
cat confdefs.h >>conftest.$ac_ext
4389
cat >>conftest.$ac_ext <<_ACEOF
4390
/* end confdefs.h. */
4391
#include <ac_nonexistent.h>
4393
if { (ac_try="$ac_cpp conftest.$ac_ext"
4395
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4396
*) ac_try_echo=$ac_try;;
4398
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4399
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4401
grep -v '^ *+' conftest.er1 >conftest.err
4403
cat conftest.err >&5
4404
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405
(exit $ac_status); } >/dev/null && {
4406
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4407
test ! -s conftest.err
4409
# Broken: success on invalid input.
4412
echo "$as_me: failed program was:" >&5
4413
sed 's/^/| /' conftest.$ac_ext >&5
4415
# Passes both tests.
4420
rm -f conftest.err conftest.$ac_ext
4423
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4424
rm -f conftest.err conftest.$ac_ext
4425
if $ac_preproc_ok; then
4437
{ echo "$as_me:$LINENO: result: $CPP" >&5
4438
echo "${ECHO_T}$CPP" >&6; }
4440
for ac_c_preproc_warn_flag in '' yes
4442
# Use a header file that comes with gcc, so configuring glibc
4443
# with a fresh cross-compiler works.
4444
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4445
# <limits.h> exists even on freestanding compilers.
4446
# On the NeXT, cc -E runs the code through the compiler's parser,
4447
# not just through cpp. "Syntax error" is here to catch this case.
4448
cat >conftest.$ac_ext <<_ACEOF
4451
cat confdefs.h >>conftest.$ac_ext
4452
cat >>conftest.$ac_ext <<_ACEOF
4453
/* end confdefs.h. */
4455
# include <limits.h>
4457
# include <assert.h>
4461
if { (ac_try="$ac_cpp conftest.$ac_ext"
4463
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4464
*) ac_try_echo=$ac_try;;
4466
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4467
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4469
grep -v '^ *+' conftest.er1 >conftest.err
4471
cat conftest.err >&5
4472
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473
(exit $ac_status); } >/dev/null && {
4474
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4475
test ! -s conftest.err
4479
echo "$as_me: failed program was:" >&5
4480
sed 's/^/| /' conftest.$ac_ext >&5
4482
# Broken: fails on valid input.
4486
rm -f conftest.err conftest.$ac_ext
4488
# OK, works on sane cases. Now check whether nonexistent headers
4489
# can be detected and how.
4490
cat >conftest.$ac_ext <<_ACEOF
4493
cat confdefs.h >>conftest.$ac_ext
4494
cat >>conftest.$ac_ext <<_ACEOF
4495
/* end confdefs.h. */
4496
#include <ac_nonexistent.h>
4498
if { (ac_try="$ac_cpp conftest.$ac_ext"
4500
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4501
*) ac_try_echo=$ac_try;;
4503
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4504
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4506
grep -v '^ *+' conftest.er1 >conftest.err
4508
cat conftest.err >&5
4509
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510
(exit $ac_status); } >/dev/null && {
4511
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4512
test ! -s conftest.err
4514
# Broken: success on invalid input.
4517
echo "$as_me: failed program was:" >&5
4518
sed 's/^/| /' conftest.$ac_ext >&5
4520
# Passes both tests.
4525
rm -f conftest.err conftest.$ac_ext
4528
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4529
rm -f conftest.err conftest.$ac_ext
4530
if $ac_preproc_ok; then
4533
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4534
See \`config.log' for more details." >&5
4535
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4536
See \`config.log' for more details." >&2;}
4537
{ (exit 1); exit 1; }; }
4541
ac_cpp='$CPP $CPPFLAGS'
4542
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4543
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4544
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4550
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4551
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4552
if test "${ac_cv_path_GREP+set}" = set; then
4553
echo $ECHO_N "(cached) $ECHO_C" >&6
4555
# Extract the first word of "grep ggrep" to use in msg output
4556
if test -z "$GREP"; then
4557
set dummy grep ggrep; ac_prog_name=$2
4558
if test "${ac_cv_path_GREP+set}" = set; then
4559
echo $ECHO_N "(cached) $ECHO_C" >&6
4561
ac_path_GREP_found=false
4562
# Loop through the user's path and test for each of PROGNAME-LIST
4563
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4564
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4567
test -z "$as_dir" && as_dir=.
4568
for ac_prog in grep ggrep; do
4569
for ac_exec_ext in '' $ac_executable_extensions; do
4570
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4571
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4572
# Check for GNU ac_path_GREP and select it if it is found.
4573
# Check for GNU $ac_path_GREP
4574
case `"$ac_path_GREP" --version 2>&1` in
4576
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4579
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4582
cat "conftest.in" "conftest.in" >"conftest.tmp"
4583
mv "conftest.tmp" "conftest.in"
4584
cp "conftest.in" "conftest.nl"
4585
echo 'GREP' >> "conftest.nl"
4586
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4587
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4588
ac_count=`expr $ac_count + 1`
4589
if test $ac_count -gt ${ac_path_GREP_max-0}; then
4590
# Best one so far, save it but keep looking for a better one
4591
ac_cv_path_GREP="$ac_path_GREP"
4592
ac_path_GREP_max=$ac_count
4594
# 10*(2^10) chars as input seems more than enough
4595
test $ac_count -gt 10 && break
4597
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4601
$ac_path_GREP_found && break 3
4611
GREP="$ac_cv_path_GREP"
4612
if test -z "$GREP"; then
4613
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4614
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4615
{ (exit 1); exit 1; }; }
4619
ac_cv_path_GREP=$GREP
4624
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4625
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4626
GREP="$ac_cv_path_GREP"
4629
{ echo "$as_me:$LINENO: checking for egrep" >&5
4630
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4631
if test "${ac_cv_path_EGREP+set}" = set; then
4632
echo $ECHO_N "(cached) $ECHO_C" >&6
4634
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4635
then ac_cv_path_EGREP="$GREP -E"
4637
# Extract the first word of "egrep" to use in msg output
4638
if test -z "$EGREP"; then
4639
set dummy egrep; ac_prog_name=$2
4640
if test "${ac_cv_path_EGREP+set}" = set; then
4641
echo $ECHO_N "(cached) $ECHO_C" >&6
4643
ac_path_EGREP_found=false
4644
# Loop through the user's path and test for each of PROGNAME-LIST
4645
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4646
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4649
test -z "$as_dir" && as_dir=.
4650
for ac_prog in egrep; do
4651
for ac_exec_ext in '' $ac_executable_extensions; do
4652
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4653
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4654
# Check for GNU ac_path_EGREP and select it if it is found.
4655
# Check for GNU $ac_path_EGREP
4656
case `"$ac_path_EGREP" --version 2>&1` in
4658
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4661
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4664
cat "conftest.in" "conftest.in" >"conftest.tmp"
4665
mv "conftest.tmp" "conftest.in"
4666
cp "conftest.in" "conftest.nl"
4667
echo 'EGREP' >> "conftest.nl"
4668
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4669
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4670
ac_count=`expr $ac_count + 1`
4671
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4672
# Best one so far, save it but keep looking for a better one
4673
ac_cv_path_EGREP="$ac_path_EGREP"
4674
ac_path_EGREP_max=$ac_count
4676
# 10*(2^10) chars as input seems more than enough
4677
test $ac_count -gt 10 && break
4679
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4683
$ac_path_EGREP_found && break 3
4693
EGREP="$ac_cv_path_EGREP"
4694
if test -z "$EGREP"; then
4695
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4696
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4697
{ (exit 1); exit 1; }; }
4701
ac_cv_path_EGREP=$EGREP
4707
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4708
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4709
EGREP="$ac_cv_path_EGREP"
4712
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4713
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4714
if test "${ac_cv_header_stdc+set}" = set; then
4715
echo $ECHO_N "(cached) $ECHO_C" >&6
4717
cat >conftest.$ac_ext <<_ACEOF
4720
cat confdefs.h >>conftest.$ac_ext
4721
cat >>conftest.$ac_ext <<_ACEOF
4722
/* end confdefs.h. */
4736
rm -f conftest.$ac_objext
4737
if { (ac_try="$ac_compile"
4739
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4740
*) ac_try_echo=$ac_try;;
4742
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4743
(eval "$ac_compile") 2>conftest.er1
4745
grep -v '^ *+' conftest.er1 >conftest.err
4747
cat conftest.err >&5
4748
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4749
(exit $ac_status); } && {
4750
test -z "$ac_c_werror_flag" ||
4751
test ! -s conftest.err
4752
} && test -s conftest.$ac_objext; then
4753
ac_cv_header_stdc=yes
4755
echo "$as_me: failed program was:" >&5
4756
sed 's/^/| /' conftest.$ac_ext >&5
4758
ac_cv_header_stdc=no
4761
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4763
if test $ac_cv_header_stdc = yes; then
4764
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4765
cat >conftest.$ac_ext <<_ACEOF
4768
cat confdefs.h >>conftest.$ac_ext
4769
cat >>conftest.$ac_ext <<_ACEOF
4770
/* end confdefs.h. */
4774
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4775
$EGREP "memchr" >/dev/null 2>&1; then
4778
ac_cv_header_stdc=no
4784
if test $ac_cv_header_stdc = yes; then
4785
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4786
cat >conftest.$ac_ext <<_ACEOF
4789
cat confdefs.h >>conftest.$ac_ext
4790
cat >>conftest.$ac_ext <<_ACEOF
4791
/* end confdefs.h. */
4795
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4796
$EGREP "free" >/dev/null 2>&1; then
4799
ac_cv_header_stdc=no
4805
if test $ac_cv_header_stdc = yes; then
4806
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4807
if test "$cross_compiling" = yes; then
4810
cat >conftest.$ac_ext <<_ACEOF
4813
cat confdefs.h >>conftest.$ac_ext
4814
cat >>conftest.$ac_ext <<_ACEOF
4815
/* end confdefs.h. */
4818
#if ((' ' & 0x0FF) == 0x020)
4819
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4820
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4822
# define ISLOWER(c) \
4823
(('a' <= (c) && (c) <= 'i') \
4824
|| ('j' <= (c) && (c) <= 'r') \
4825
|| ('s' <= (c) && (c) <= 'z'))
4826
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4829
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4834
for (i = 0; i < 256; i++)
4835
if (XOR (islower (i), ISLOWER (i))
4836
|| toupper (i) != TOUPPER (i))
4841
rm -f conftest$ac_exeext
4842
if { (ac_try="$ac_link"
4844
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4845
*) ac_try_echo=$ac_try;;
4847
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4848
(eval "$ac_link") 2>&5
4850
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4851
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4852
{ (case "(($ac_try" in
4853
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4854
*) ac_try_echo=$ac_try;;
4856
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4857
(eval "$ac_try") 2>&5
4859
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860
(exit $ac_status); }; }; then
4863
echo "$as_me: program exited with status $ac_status" >&5
4864
echo "$as_me: failed program was:" >&5
4865
sed 's/^/| /' conftest.$ac_ext >&5
4868
ac_cv_header_stdc=no
4870
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4876
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4877
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4878
if test $ac_cv_header_stdc = yes; then
4880
cat >>confdefs.h <<\_ACEOF
4881
#define STDC_HEADERS 1
4886
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4896
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4897
inttypes.h stdint.h unistd.h
4899
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4900
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4901
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4902
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4903
echo $ECHO_N "(cached) $ECHO_C" >&6
4905
cat >conftest.$ac_ext <<_ACEOF
4908
cat confdefs.h >>conftest.$ac_ext
4909
cat >>conftest.$ac_ext <<_ACEOF
4910
/* end confdefs.h. */
4911
$ac_includes_default
4913
#include <$ac_header>
4915
rm -f conftest.$ac_objext
4916
if { (ac_try="$ac_compile"
4918
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4919
*) ac_try_echo=$ac_try;;
4921
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4922
(eval "$ac_compile") 2>conftest.er1
4924
grep -v '^ *+' conftest.er1 >conftest.err
4926
cat conftest.err >&5
4927
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4928
(exit $ac_status); } && {
4929
test -z "$ac_c_werror_flag" ||
4930
test ! -s conftest.err
4931
} && test -s conftest.$ac_objext; then
4932
eval "$as_ac_Header=yes"
4934
echo "$as_me: failed program was:" >&5
4935
sed 's/^/| /' conftest.$ac_ext >&5
4937
eval "$as_ac_Header=no"
4940
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4942
ac_res=`eval echo '${'$as_ac_Header'}'`
4943
{ echo "$as_me:$LINENO: result: $ac_res" >&5
4944
echo "${ECHO_T}$ac_res" >&6; }
4945
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4946
cat >>confdefs.h <<_ACEOF
4947
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4955
{ echo "$as_me:$LINENO: checking for long int" >&5
4956
echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
4957
if test "${ac_cv_type_long_int+set}" = set; then
4958
echo $ECHO_N "(cached) $ECHO_C" >&6
4960
cat >conftest.$ac_ext <<_ACEOF
4963
cat confdefs.h >>conftest.$ac_ext
4964
cat >>conftest.$ac_ext <<_ACEOF
4965
/* end confdefs.h. */
4966
$ac_includes_default
4967
typedef long int ac__type_new_;
4971
if ((ac__type_new_ *) 0)
4973
if (sizeof (ac__type_new_))
4979
rm -f conftest.$ac_objext
4980
if { (ac_try="$ac_compile"
4982
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4983
*) ac_try_echo=$ac_try;;
4985
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4986
(eval "$ac_compile") 2>conftest.er1
4988
grep -v '^ *+' conftest.er1 >conftest.err
4990
cat conftest.err >&5
4991
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4992
(exit $ac_status); } && {
4993
test -z "$ac_c_werror_flag" ||
4994
test ! -s conftest.err
4995
} && test -s conftest.$ac_objext; then
4996
ac_cv_type_long_int=yes
4998
echo "$as_me: failed program was:" >&5
4999
sed 's/^/| /' conftest.$ac_ext >&5
5001
ac_cv_type_long_int=no
5004
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5006
{ echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
5007
echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
5009
# The cast to long int works around a bug in the HP C Compiler
5010
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5011
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5012
# This bug is HP SR number 8606223364.
5013
{ echo "$as_me:$LINENO: checking size of long int" >&5
5014
echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
5015
if test "${ac_cv_sizeof_long_int+set}" = set; then
5016
echo $ECHO_N "(cached) $ECHO_C" >&6
5018
if test "$cross_compiling" = yes; then
5019
# Depending upon the size, compute the lo and hi bounds.
5020
cat >conftest.$ac_ext <<_ACEOF
5023
cat confdefs.h >>conftest.$ac_ext
5024
cat >>conftest.$ac_ext <<_ACEOF
5025
/* end confdefs.h. */
5026
$ac_includes_default
5027
typedef long int ac__type_sizeof_;
5031
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5038
rm -f conftest.$ac_objext
5039
if { (ac_try="$ac_compile"
5041
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5042
*) ac_try_echo=$ac_try;;
5044
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5045
(eval "$ac_compile") 2>conftest.er1
5047
grep -v '^ *+' conftest.er1 >conftest.err
5049
cat conftest.err >&5
5050
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5051
(exit $ac_status); } && {
5052
test -z "$ac_c_werror_flag" ||
5053
test ! -s conftest.err
5054
} && test -s conftest.$ac_objext; then
5057
cat >conftest.$ac_ext <<_ACEOF
5060
cat confdefs.h >>conftest.$ac_ext
5061
cat >>conftest.$ac_ext <<_ACEOF
5062
/* end confdefs.h. */
5063
$ac_includes_default
5064
typedef long int ac__type_sizeof_;
5068
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5075
rm -f conftest.$ac_objext
5076
if { (ac_try="$ac_compile"
5078
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5079
*) ac_try_echo=$ac_try;;
5081
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5082
(eval "$ac_compile") 2>conftest.er1
5084
grep -v '^ *+' conftest.er1 >conftest.err
5086
cat conftest.err >&5
5087
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5088
(exit $ac_status); } && {
5089
test -z "$ac_c_werror_flag" ||
5090
test ! -s conftest.err
5091
} && test -s conftest.$ac_objext; then
5092
ac_hi=$ac_mid; break
5094
echo "$as_me: failed program was:" >&5
5095
sed 's/^/| /' conftest.$ac_ext >&5
5097
ac_lo=`expr $ac_mid + 1`
5098
if test $ac_lo -le $ac_mid; then
5102
ac_mid=`expr 2 '*' $ac_mid + 1`
5105
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5108
echo "$as_me: failed program was:" >&5
5109
sed 's/^/| /' conftest.$ac_ext >&5
5111
cat >conftest.$ac_ext <<_ACEOF
5114
cat confdefs.h >>conftest.$ac_ext
5115
cat >>conftest.$ac_ext <<_ACEOF
5116
/* end confdefs.h. */
5117
$ac_includes_default
5118
typedef long int ac__type_sizeof_;
5122
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5129
rm -f conftest.$ac_objext
5130
if { (ac_try="$ac_compile"
5132
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5133
*) ac_try_echo=$ac_try;;
5135
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5136
(eval "$ac_compile") 2>conftest.er1
5138
grep -v '^ *+' conftest.er1 >conftest.err
5140
cat conftest.err >&5
5141
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5142
(exit $ac_status); } && {
5143
test -z "$ac_c_werror_flag" ||
5144
test ! -s conftest.err
5145
} && test -s conftest.$ac_objext; then
5148
cat >conftest.$ac_ext <<_ACEOF
5151
cat confdefs.h >>conftest.$ac_ext
5152
cat >>conftest.$ac_ext <<_ACEOF
5153
/* end confdefs.h. */
5154
$ac_includes_default
5155
typedef long int ac__type_sizeof_;
5159
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5166
rm -f conftest.$ac_objext
5167
if { (ac_try="$ac_compile"
5169
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5170
*) ac_try_echo=$ac_try;;
5172
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5173
(eval "$ac_compile") 2>conftest.er1
5175
grep -v '^ *+' conftest.er1 >conftest.err
5177
cat conftest.err >&5
5178
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5179
(exit $ac_status); } && {
5180
test -z "$ac_c_werror_flag" ||
5181
test ! -s conftest.err
5182
} && test -s conftest.$ac_objext; then
5183
ac_lo=$ac_mid; break
5185
echo "$as_me: failed program was:" >&5
5186
sed 's/^/| /' conftest.$ac_ext >&5
5188
ac_hi=`expr '(' $ac_mid ')' - 1`
5189
if test $ac_mid -le $ac_hi; then
5193
ac_mid=`expr 2 '*' $ac_mid`
5196
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5199
echo "$as_me: failed program was:" >&5
5200
sed 's/^/| /' conftest.$ac_ext >&5
5205
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5208
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5209
# Binary search between lo and hi bounds.
5210
while test "x$ac_lo" != "x$ac_hi"; do
5211
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5212
cat >conftest.$ac_ext <<_ACEOF
5215
cat confdefs.h >>conftest.$ac_ext
5216
cat >>conftest.$ac_ext <<_ACEOF
5217
/* end confdefs.h. */
5218
$ac_includes_default
5219
typedef long int ac__type_sizeof_;
5223
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5230
rm -f conftest.$ac_objext
5231
if { (ac_try="$ac_compile"
5233
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5234
*) ac_try_echo=$ac_try;;
5236
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5237
(eval "$ac_compile") 2>conftest.er1
5239
grep -v '^ *+' conftest.er1 >conftest.err
5241
cat conftest.err >&5
5242
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5243
(exit $ac_status); } && {
5244
test -z "$ac_c_werror_flag" ||
5245
test ! -s conftest.err
5246
} && test -s conftest.$ac_objext; then
5249
echo "$as_me: failed program was:" >&5
5250
sed 's/^/| /' conftest.$ac_ext >&5
5252
ac_lo=`expr '(' $ac_mid ')' + 1`
5255
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5258
?*) ac_cv_sizeof_long_int=$ac_lo;;
5259
'') if test "$ac_cv_type_long_int" = yes; then
5260
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
5261
See \`config.log' for more details." >&5
5262
echo "$as_me: error: cannot compute sizeof (long int)
5263
See \`config.log' for more details." >&2;}
5264
{ (exit 77); exit 77; }; }
5266
ac_cv_sizeof_long_int=0
5270
cat >conftest.$ac_ext <<_ACEOF
5273
cat confdefs.h >>conftest.$ac_ext
5274
cat >>conftest.$ac_ext <<_ACEOF
5275
/* end confdefs.h. */
5276
$ac_includes_default
5277
typedef long int ac__type_sizeof_;
5278
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5279
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5286
FILE *f = fopen ("conftest.val", "w");
5289
if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5291
long int i = longval ();
5292
if (i != ((long int) (sizeof (ac__type_sizeof_))))
5294
fprintf (f, "%ld\n", i);
5298
unsigned long int i = ulongval ();
5299
if (i != ((long int) (sizeof (ac__type_sizeof_))))
5301
fprintf (f, "%lu\n", i);
5303
return ferror (f) || fclose (f) != 0;
5309
rm -f conftest$ac_exeext
5310
if { (ac_try="$ac_link"
5312
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5313
*) ac_try_echo=$ac_try;;
5315
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5316
(eval "$ac_link") 2>&5
5318
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5320
{ (case "(($ac_try" in
5321
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5322
*) ac_try_echo=$ac_try;;
5324
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5325
(eval "$ac_try") 2>&5
5327
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5328
(exit $ac_status); }; }; then
5329
ac_cv_sizeof_long_int=`cat conftest.val`
5331
echo "$as_me: program exited with status $ac_status" >&5
5332
echo "$as_me: failed program was:" >&5
5333
sed 's/^/| /' conftest.$ac_ext >&5
5336
if test "$ac_cv_type_long_int" = yes; then
5337
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
5338
See \`config.log' for more details." >&5
5339
echo "$as_me: error: cannot compute sizeof (long int)
5340
See \`config.log' for more details." >&2;}
5341
{ (exit 77); exit 77; }; }
5343
ac_cv_sizeof_long_int=0
5346
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5350
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
5351
echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
5355
cat >>confdefs.h <<_ACEOF
5356
#define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
5360
test $ac_cv_sizeof_long_int = 8 &&
5362
cat >>confdefs.h <<\_ACEOF
5363
#define LONG_64_BITS 1
5368
# Find fortran libraries required when linking with C++ main.
5369
ac_ext=${ac_fc_srcext-f}
5370
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
5371
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
5372
ac_compiler_gnu=$ac_cv_fc_compiler_gnu
5373
{ echo "$as_me:$LINENO: checking how to get verbose linking output from $FC" >&5
5374
echo $ECHO_N "checking how to get verbose linking output from $FC... $ECHO_C" >&6; }
5375
if test "${ac_cv_prog_fc_v+set}" = set; then
5376
echo $ECHO_N "(cached) $ECHO_C" >&6
5378
cat >conftest.$ac_ext <<_ACEOF
5383
rm -f conftest.$ac_objext
5384
if { (ac_try="$ac_compile"
5386
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5387
*) ac_try_echo=$ac_try;;
5389
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5390
(eval "$ac_compile") 2>conftest.er1
5392
grep -v '^ *+' conftest.er1 >conftest.err
5394
cat conftest.err >&5
5395
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5396
(exit $ac_status); } && {
5397
test -z "$ac_fc_werror_flag" ||
5398
test ! -s conftest.err
5399
} && test -s conftest.$ac_objext; then
5401
# Try some options frequently used verbose output
5402
for ac_verb in -v -verbose --verbose -V -\#\#\#; do
5403
cat >conftest.$ac_ext <<_ACEOF
5409
# Compile and link our simple test program by passing a flag (argument
5410
# 1 to this macro) to the Fortran compiler in order to get
5411
# "verbose" output that we can then parse for the Fortran linker
5413
ac_save_FFLAGS=$FCFLAGS
5414
FCFLAGS="$FCFLAGS $ac_verb"
5415
eval "set x $ac_link"
5417
echo "$as_me:$LINENO: $*" >&5
5418
ac_fc_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
5419
echo "$ac_fc_v_output" >&5
5420
FCFLAGS=$ac_save_FFLAGS
5424
# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
5425
# /foo, /bar, and /baz are search directories for the Fortran linker.
5426
# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
5427
ac_fc_v_output="`echo $ac_fc_v_output |
5429
sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_fc_v_output"
5431
# FIXME: we keep getting bitten by quoted arguments; a more general fix
5432
# that detects unbalanced quotes in FLIBS should be implemented
5433
# and (ugh) tested at some point.
5434
case $ac_fc_v_output in
5435
# If we are using xlf then replace all the commas with spaces.
5437
ac_fc_v_output=`echo $ac_fc_v_output | sed 's/,/ /g'` ;;
5439
# With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
5440
# $LIBS confuse us, and the libraries appear later in the output anyway).
5441
*mGLOB_options_string*)
5442
ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
5444
# Portland Group compiler has singly- or doubly-quoted -cmdline argument
5445
# Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
5446
# Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
5447
*-cmdline\ * | *-ignore\ * | *-def\ *)
5448
ac_fc_v_output=`echo $ac_fc_v_output | sed "\
5449
s/-cmdline *'[^']*'/ /g; s/-cmdline *\"[^\"]*\"/ /g
5450
s/-ignore *'[^']*'/ /g; s/-ignore *\"[^\"]*\"/ /g
5451
s/-def *'[^']*'/ /g; s/-def *\"[^\"]*\"/ /g"` ;;
5453
# If we are using Cray Fortran then delete quotes.
5455
ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"//g'` ;;
5459
# look for -l* and *.a constructs in the output
5460
for ac_arg in $ac_fc_v_output; do
5462
[\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
5463
ac_cv_prog_fc_v=$ac_verb
5468
if test -z "$ac_cv_prog_fc_v"; then
5469
{ echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $FC" >&5
5470
echo "$as_me: WARNING: cannot determine how to obtain linking information from $FC" >&2;}
5473
echo "$as_me: failed program was:" >&5
5474
sed 's/^/| /' conftest.$ac_ext >&5
5476
{ echo "$as_me:$LINENO: WARNING: compilation failed" >&5
5477
echo "$as_me: WARNING: compilation failed" >&2;}
5480
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5483
{ echo "$as_me:$LINENO: result: $ac_cv_prog_fc_v" >&5
5484
echo "${ECHO_T}$ac_cv_prog_fc_v" >&6; }
5485
{ echo "$as_me:$LINENO: checking for Fortran libraries of $FC" >&5
5486
echo $ECHO_N "checking for Fortran libraries of $FC... $ECHO_C" >&6; }
5487
if test "${ac_cv_fc_libs+set}" = set; then
5488
echo $ECHO_N "(cached) $ECHO_C" >&6
5490
if test "x$FCLIBS" != "x"; then
5491
ac_cv_fc_libs="$FCLIBS" # Let the user override the test.
5494
cat >conftest.$ac_ext <<_ACEOF
5500
# Compile and link our simple test program by passing a flag (argument
5501
# 1 to this macro) to the Fortran compiler in order to get
5502
# "verbose" output that we can then parse for the Fortran linker
5504
ac_save_FFLAGS=$FCFLAGS
5505
FCFLAGS="$FCFLAGS $ac_cv_prog_fc_v"
5506
eval "set x $ac_link"
5508
echo "$as_me:$LINENO: $*" >&5
5509
ac_fc_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
5510
echo "$ac_fc_v_output" >&5
5511
FCFLAGS=$ac_save_FFLAGS
5515
# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
5516
# /foo, /bar, and /baz are search directories for the Fortran linker.
5517
# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
5518
ac_fc_v_output="`echo $ac_fc_v_output |
5520
sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_fc_v_output"
5522
# FIXME: we keep getting bitten by quoted arguments; a more general fix
5523
# that detects unbalanced quotes in FLIBS should be implemented
5524
# and (ugh) tested at some point.
5525
case $ac_fc_v_output in
5526
# If we are using xlf then replace all the commas with spaces.
5528
ac_fc_v_output=`echo $ac_fc_v_output | sed 's/,/ /g'` ;;
5530
# With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
5531
# $LIBS confuse us, and the libraries appear later in the output anyway).
5532
*mGLOB_options_string*)
5533
ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
5535
# Portland Group compiler has singly- or doubly-quoted -cmdline argument
5536
# Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
5537
# Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
5538
*-cmdline\ * | *-ignore\ * | *-def\ *)
5539
ac_fc_v_output=`echo $ac_fc_v_output | sed "\
5540
s/-cmdline *'[^']*'/ /g; s/-cmdline *\"[^\"]*\"/ /g
5541
s/-ignore *'[^']*'/ /g; s/-ignore *\"[^\"]*\"/ /g
5542
s/-def *'[^']*'/ /g; s/-def *\"[^\"]*\"/ /g"` ;;
5544
# If we are using Cray Fortran then delete quotes.
5546
ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"//g'` ;;
5553
# Save positional arguments (if any)
5554
ac_save_positional="$@"
5556
set X $ac_fc_v_output
5557
while test $# != 1; do
5561
[\\/]*.a | ?:[\\/]*.a)
5563
for ac_i in $ac_cv_fc_libs; do
5564
if test x"$ac_arg" = x"$ac_i"; then
5570
if test x"$ac_exists" = xtrue; then
5573
ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
5579
for ac_i in $ac_cv_fc_libs; do
5580
if test x"$ac_arg" = x"$ac_i"; then
5586
if test x"$ac_exists" = xtrue; then
5589
if test "$ac_compiler_gnu" = yes; then
5590
for ac_link_opt in $ac_arg; do
5591
ac_cv_fc_libs="$ac_cv_fc_libs -Xlinker $ac_link_opt"
5594
ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
5599
# Ignore these flags.
5600
-lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -LANG:=* | -LIST:* | -LNO:*)
5603
test x"$CYGWIN" != xyes && ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
5606
# These flags, when seen by themselves, take an argument.
5607
# We remove the space between option and argument and re-iterate
5608
# unless we find an empty arg or a new option (starting with -)
5619
for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
5621
for ac_i in $ac_cv_fc_libs; do
5622
if test x"$ac_j" = x"$ac_i"; then
5628
if test x"$ac_exists" = xtrue; then
5631
ac_arg="$ac_arg $ac_j"
5632
ac_cv_fc_libs="$ac_cv_fc_libs $ac_j"
5639
for ac_i in $ac_cv_fc_libs; do
5640
if test x"$ac_arg" = x"$ac_i"; then
5646
if test x"$ac_exists" = xtrue; then
5649
ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
5653
-zallextract*| -zdefaultextract)
5654
ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
5656
# Ignore everything else.
5659
# restore positional arguments
5660
set X $ac_save_positional; shift
5662
# We only consider "LD_RUN_PATH" on Solaris systems. If this is seen,
5663
# then we insist that the "run path" must be an absolute path (i.e. it
5664
# must begin with a "/").
5665
case `(uname -sr) 2>/dev/null` in
5667
ac_ld_run_path=`echo $ac_fc_v_output |
5668
sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
5669
test "x$ac_ld_run_path" != x &&
5670
if test "$ac_compiler_gnu" = yes; then
5671
for ac_link_opt in $ac_ld_run_path; do
5672
ac_cv_fc_libs="$ac_cv_fc_libs -Xlinker $ac_link_opt"
5675
ac_cv_fc_libs="$ac_cv_fc_libs $ac_ld_run_path"
5679
fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
5682
{ echo "$as_me:$LINENO: result: $ac_cv_fc_libs" >&5
5683
echo "${ECHO_T}$ac_cv_fc_libs" >&6; }
5684
FCLIBS="$ac_cv_fc_libs"
5688
ac_cpp='$CPP $CPPFLAGS'
5689
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5690
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5691
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5695
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5696
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5697
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5699
{ echo "$as_me:$LINENO: checking for dummy main to link with Fortran 77 libraries" >&5
5700
echo $ECHO_N "checking for dummy main to link with Fortran 77 libraries... $ECHO_C" >&6; }
5701
if test "${ac_cv_f77_dummy_main+set}" = set; then
5702
echo $ECHO_N "(cached) $ECHO_C" >&6
5704
ac_f77_dm_save_LIBS=$LIBS
5706
ac_fortran_dm_var=F77_DUMMY_MAIN
5708
ac_cpp='$CPP $CPPFLAGS'
5709
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5710
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5711
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5713
# First, try linking without a dummy main:
5714
cat >conftest.$ac_ext <<_ACEOF
5717
cat confdefs.h >>conftest.$ac_ext
5718
cat >>conftest.$ac_ext <<_ACEOF
5719
/* end confdefs.h. */
5721
#ifdef F77_DUMMY_MAIN
5726
int F77_DUMMY_MAIN() { return 1; }
5737
rm -f conftest.$ac_objext conftest$ac_exeext
5738
if { (ac_try="$ac_link"
5740
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5741
*) ac_try_echo=$ac_try;;
5743
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5744
(eval "$ac_link") 2>conftest.er1
5746
grep -v '^ *+' conftest.er1 >conftest.err
5748
cat conftest.err >&5
5749
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750
(exit $ac_status); } && {
5751
test -z "$ac_c_werror_flag" ||
5752
test ! -s conftest.err
5753
} && test -s conftest$ac_exeext &&
5754
$as_test_x conftest$ac_exeext; then
5755
ac_cv_fortran_dummy_main=none
5757
echo "$as_me: failed program was:" >&5
5758
sed 's/^/| /' conftest.$ac_ext >&5
5760
ac_cv_fortran_dummy_main=unknown
5763
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5764
conftest$ac_exeext conftest.$ac_ext
5766
if test $ac_cv_fortran_dummy_main = unknown; then
5767
for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
5768
cat >conftest.$ac_ext <<_ACEOF
5771
cat confdefs.h >>conftest.$ac_ext
5772
cat >>conftest.$ac_ext <<_ACEOF
5773
/* end confdefs.h. */
5774
#define $ac_fortran_dm_var $ac_func
5775
#ifdef F77_DUMMY_MAIN
5780
int F77_DUMMY_MAIN() { return 1; }
5791
rm -f conftest.$ac_objext conftest$ac_exeext
5792
if { (ac_try="$ac_link"
5794
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5795
*) ac_try_echo=$ac_try;;
5797
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5798
(eval "$ac_link") 2>conftest.er1
5800
grep -v '^ *+' conftest.er1 >conftest.err
5802
cat conftest.err >&5
5803
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5804
(exit $ac_status); } && {
5805
test -z "$ac_c_werror_flag" ||
5806
test ! -s conftest.err
5807
} && test -s conftest$ac_exeext &&
5808
$as_test_x conftest$ac_exeext; then
5809
ac_cv_fortran_dummy_main=$ac_func; break
5811
echo "$as_me: failed program was:" >&5
5812
sed 's/^/| /' conftest.$ac_ext >&5
5817
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5818
conftest$ac_exeext conftest.$ac_ext
5822
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5823
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5824
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5825
ac_cv_f77_dummy_main=$ac_cv_fortran_dummy_main
5827
LIBS=$ac_f77_dm_save_LIBS
5830
{ echo "$as_me:$LINENO: result: $ac_cv_f77_dummy_main" >&5
5831
echo "${ECHO_T}$ac_cv_f77_dummy_main" >&6; }
5832
F77_DUMMY_MAIN=$ac_cv_f77_dummy_main
5833
if test "$F77_DUMMY_MAIN" != unknown; then
5834
if test $F77_DUMMY_MAIN != none; then
5836
cat >>confdefs.h <<_ACEOF
5837
#define F77_DUMMY_MAIN $F77_DUMMY_MAIN
5840
if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then
5842
cat >>confdefs.h <<\_ACEOF
5843
#define FC_DUMMY_MAIN_EQ_F77 1
5849
{ { echo "$as_me:$LINENO: error: linking to Fortran libraries from C fails
5850
See \`config.log' for more details." >&5
5851
echo "$as_me: error: linking to Fortran libraries from C fails
5852
See \`config.log' for more details." >&2;}
5853
{ (exit 1); exit 1; }; }
5858
ac_cpp='$CPP $CPPFLAGS'
5859
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5860
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5861
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5864
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5865
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5866
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5867
{ echo "$as_me:$LINENO: checking for Fortran 77 name-mangling scheme" >&5
5868
echo $ECHO_N "checking for Fortran 77 name-mangling scheme... $ECHO_C" >&6; }
5869
if test "${ac_cv_f77_mangling+set}" = set; then
5870
echo $ECHO_N "(cached) $ECHO_C" >&6
5872
cat >conftest.$ac_ext <<_ACEOF
5876
subroutine foo_bar()
5880
rm -f conftest.$ac_objext
5881
if { (ac_try="$ac_compile"
5883
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5884
*) ac_try_echo=$ac_try;;
5886
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5887
(eval "$ac_compile") 2>conftest.er1
5889
grep -v '^ *+' conftest.er1 >conftest.err
5891
cat conftest.err >&5
5892
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5893
(exit $ac_status); } && {
5894
test -z "$ac_f77_werror_flag" ||
5895
test ! -s conftest.err
5896
} && test -s conftest.$ac_objext; then
5897
mv conftest.$ac_objext cfortran_test.$ac_objext
5900
LIBS="cfortran_test.$ac_objext $LIBS $FLIBS"
5903
ac_cpp='$CPP $CPPFLAGS'
5904
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5905
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5906
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5908
for ac_foobar in foobar FOOBAR; do
5909
for ac_underscore in "" "_"; do
5910
ac_func="$ac_foobar$ac_underscore"
5911
cat >conftest.$ac_ext <<_ACEOF
5914
cat confdefs.h >>conftest.$ac_ext
5915
cat >>conftest.$ac_ext <<_ACEOF
5916
/* end confdefs.h. */
5918
/* Override any GCC internal prototype to avoid an error.
5919
Use char because int might match the return type of a GCC
5920
builtin and then its argument prototype would still apply. */
5925
#ifdef F77_DUMMY_MAIN
5930
int F77_DUMMY_MAIN() { return 1; }
5941
rm -f conftest.$ac_objext conftest$ac_exeext
5942
if { (ac_try="$ac_link"
5944
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5945
*) ac_try_echo=$ac_try;;
5947
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5948
(eval "$ac_link") 2>conftest.er1
5950
grep -v '^ *+' conftest.er1 >conftest.err
5952
cat conftest.err >&5
5953
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954
(exit $ac_status); } && {
5955
test -z "$ac_c_werror_flag" ||
5956
test ! -s conftest.err
5957
} && test -s conftest$ac_exeext &&
5958
$as_test_x conftest$ac_exeext; then
5959
ac_success=yes; break 2
5961
echo "$as_me: failed program was:" >&5
5962
sed 's/^/| /' conftest.$ac_ext >&5
5967
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5968
conftest$ac_exeext conftest.$ac_ext
5972
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5973
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5974
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5976
if test "$ac_success" = "yes"; then
5989
ac_cpp='$CPP $CPPFLAGS'
5990
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5991
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5992
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5994
for ac_extra in "" "_"; do
5995
ac_func="$ac_foo_bar$ac_underscore$ac_extra"
5996
cat >conftest.$ac_ext <<_ACEOF
5999
cat confdefs.h >>conftest.$ac_ext
6000
cat >>conftest.$ac_ext <<_ACEOF
6001
/* end confdefs.h. */
6003
/* Override any GCC internal prototype to avoid an error.
6004
Use char because int might match the return type of a GCC
6005
builtin and then its argument prototype would still apply. */
6010
#ifdef F77_DUMMY_MAIN
6015
int F77_DUMMY_MAIN() { return 1; }
6026
rm -f conftest.$ac_objext conftest$ac_exeext
6027
if { (ac_try="$ac_link"
6029
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6030
*) ac_try_echo=$ac_try;;
6032
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6033
(eval "$ac_link") 2>conftest.er1
6035
grep -v '^ *+' conftest.er1 >conftest.err
6037
cat conftest.err >&5
6038
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6039
(exit $ac_status); } && {
6040
test -z "$ac_c_werror_flag" ||
6041
test ! -s conftest.err
6042
} && test -s conftest$ac_exeext &&
6043
$as_test_x conftest$ac_exeext; then
6044
ac_success_extra=yes; break
6046
echo "$as_me: failed program was:" >&5
6047
sed 's/^/| /' conftest.$ac_ext >&5
6052
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6053
conftest$ac_exeext conftest.$ac_ext
6056
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6057
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6058
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6060
if test "$ac_success_extra" = "yes"; then
6061
ac_cv_f77_mangling="$ac_case case"
6062
if test -z "$ac_underscore"; then
6063
ac_cv_f77_mangling="$ac_cv_f77_mangling, no underscore"
6065
ac_cv_f77_mangling="$ac_cv_f77_mangling, underscore"
6067
if test -z "$ac_extra"; then
6068
ac_cv_f77_mangling="$ac_cv_f77_mangling, no extra underscore"
6070
ac_cv_f77_mangling="$ac_cv_f77_mangling, extra underscore"
6073
ac_cv_f77_mangling="unknown"
6076
ac_cv_f77_mangling="unknown"
6080
rm -f cfortran_test* conftest*
6082
echo "$as_me: failed program was:" >&5
6083
sed 's/^/| /' conftest.$ac_ext >&5
6085
{ { echo "$as_me:$LINENO: error: cannot compile a simple Fortran program
6086
See \`config.log' for more details." >&5
6087
echo "$as_me: error: cannot compile a simple Fortran program
6088
See \`config.log' for more details." >&2;}
6089
{ (exit 1); exit 1; }; }
6092
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6095
{ echo "$as_me:$LINENO: result: $ac_cv_f77_mangling" >&5
6096
echo "${ECHO_T}$ac_cv_f77_mangling" >&6; }
6099
ac_cpp='$CPP $CPPFLAGS'
6100
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6101
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6102
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6105
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6106
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6107
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6110
case $ac_cv_f77_mangling in
6111
"lower case, no underscore, no extra underscore")
6112
cat >>confdefs.h <<\_ACEOF
6113
#define F77_FUNC(name,NAME) name
6116
cat >>confdefs.h <<\_ACEOF
6117
#define F77_FUNC_(name,NAME) name
6120
"lower case, no underscore, extra underscore")
6121
cat >>confdefs.h <<\_ACEOF
6122
#define F77_FUNC(name,NAME) name
6125
cat >>confdefs.h <<\_ACEOF
6126
#define F77_FUNC_(name,NAME) name ## _
6129
"lower case, underscore, no extra underscore")
6130
cat >>confdefs.h <<\_ACEOF
6131
#define F77_FUNC(name,NAME) name ## _
6134
cat >>confdefs.h <<\_ACEOF
6135
#define F77_FUNC_(name,NAME) name ## _
6138
"lower case, underscore, extra underscore")
6139
cat >>confdefs.h <<\_ACEOF
6140
#define F77_FUNC(name,NAME) name ## _
6143
cat >>confdefs.h <<\_ACEOF
6144
#define F77_FUNC_(name,NAME) name ## __
6147
"upper case, no underscore, no extra underscore")
6148
cat >>confdefs.h <<\_ACEOF
6149
#define F77_FUNC(name,NAME) NAME
6152
cat >>confdefs.h <<\_ACEOF
6153
#define F77_FUNC_(name,NAME) NAME
6156
"upper case, no underscore, extra underscore")
6157
cat >>confdefs.h <<\_ACEOF
6158
#define F77_FUNC(name,NAME) NAME
6161
cat >>confdefs.h <<\_ACEOF
6162
#define F77_FUNC_(name,NAME) NAME ## _
6165
"upper case, underscore, no extra underscore")
6166
cat >>confdefs.h <<\_ACEOF
6167
#define F77_FUNC(name,NAME) NAME ## _
6170
cat >>confdefs.h <<\_ACEOF
6171
#define F77_FUNC_(name,NAME) NAME ## _
6174
"upper case, underscore, extra underscore")
6175
cat >>confdefs.h <<\_ACEOF
6176
#define F77_FUNC(name,NAME) NAME ## _
6179
cat >>confdefs.h <<\_ACEOF
6180
#define F77_FUNC_(name,NAME) NAME ## __
6184
{ echo "$as_me:$LINENO: WARNING: unknown Fortran name-mangling scheme" >&5
6185
echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;}
6190
ac_cpp='$CPP $CPPFLAGS'
6191
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6192
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6193
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6196
# Check for standard libraries
6198
ac_cpp='$CPP $CPPFLAGS'
6199
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6200
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6201
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6204
{ echo "$as_me:$LINENO: checking for main in -lstdc++" >&5
6205
echo $ECHO_N "checking for main in -lstdc++... $ECHO_C" >&6; }
6206
if test "${ac_cv_lib_stdcpp_main+set}" = set; then
6207
echo $ECHO_N "(cached) $ECHO_C" >&6
6209
ac_check_lib_save_LIBS=$LIBS
6210
LIBS="-lstdc++ $LIBS"
6211
cat >conftest.$ac_ext <<_ACEOF
6214
cat confdefs.h >>conftest.$ac_ext
6215
cat >>conftest.$ac_ext <<_ACEOF
6216
/* end confdefs.h. */
6219
#ifdef F77_DUMMY_MAIN
6224
int F77_DUMMY_MAIN() { return 1; }
6235
rm -f conftest.$ac_objext conftest$ac_exeext
6236
if { (ac_try="$ac_link"
6238
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6239
*) ac_try_echo=$ac_try;;
6241
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6242
(eval "$ac_link") 2>conftest.er1
6244
grep -v '^ *+' conftest.er1 >conftest.err
6246
cat conftest.err >&5
6247
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6248
(exit $ac_status); } && {
6249
test -z "$ac_c_werror_flag" ||
6250
test ! -s conftest.err
6251
} && test -s conftest$ac_exeext &&
6252
$as_test_x conftest$ac_exeext; then
6253
ac_cv_lib_stdcpp_main=yes
6255
echo "$as_me: failed program was:" >&5
6256
sed 's/^/| /' conftest.$ac_ext >&5
6258
ac_cv_lib_stdcpp_main=no
6261
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6262
conftest$ac_exeext conftest.$ac_ext
6263
LIBS=$ac_check_lib_save_LIBS
6265
{ echo "$as_me:$LINENO: result: $ac_cv_lib_stdcpp_main" >&5
6266
echo "${ECHO_T}$ac_cv_lib_stdcpp_main" >&6; }
6267
if test $ac_cv_lib_stdcpp_main = yes; then
6268
cat >>confdefs.h <<_ACEOF
6269
#define HAVE_LIBSTDC__ 1
6272
LIBS="-lstdc++ $LIBS"
6277
{ echo "$as_me:$LINENO: checking for main in -lm" >&5
6278
echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6; }
6279
if test "${ac_cv_lib_m_main+set}" = set; then
6280
echo $ECHO_N "(cached) $ECHO_C" >&6
6282
ac_check_lib_save_LIBS=$LIBS
6284
cat >conftest.$ac_ext <<_ACEOF
6287
cat confdefs.h >>conftest.$ac_ext
6288
cat >>conftest.$ac_ext <<_ACEOF
6289
/* end confdefs.h. */
6292
#ifdef F77_DUMMY_MAIN
6297
int F77_DUMMY_MAIN() { return 1; }
6308
rm -f conftest.$ac_objext conftest$ac_exeext
6309
if { (ac_try="$ac_link"
6311
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6312
*) ac_try_echo=$ac_try;;
6314
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6315
(eval "$ac_link") 2>conftest.er1
6317
grep -v '^ *+' conftest.er1 >conftest.err
6319
cat conftest.err >&5
6320
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321
(exit $ac_status); } && {
6322
test -z "$ac_c_werror_flag" ||
6323
test ! -s conftest.err
6324
} && test -s conftest$ac_exeext &&
6325
$as_test_x conftest$ac_exeext; then
6326
ac_cv_lib_m_main=yes
6328
echo "$as_me: failed program was:" >&5
6329
sed 's/^/| /' conftest.$ac_ext >&5
6334
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6335
conftest$ac_exeext conftest.$ac_ext
6336
LIBS=$ac_check_lib_save_LIBS
6338
{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
6339
echo "${ECHO_T}$ac_cv_lib_m_main" >&6; }
6340
if test $ac_cv_lib_m_main = yes; then
6341
cat >>confdefs.h <<_ACEOF
6350
{ echo "$as_me:$LINENO: checking for main in -lpthread" >&5
6351
echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6; }
6352
if test "${ac_cv_lib_pthread_main+set}" = set; then
6353
echo $ECHO_N "(cached) $ECHO_C" >&6
6355
ac_check_lib_save_LIBS=$LIBS
6356
LIBS="-lpthread $LIBS"
6357
cat >conftest.$ac_ext <<_ACEOF
6360
cat confdefs.h >>conftest.$ac_ext
6361
cat >>conftest.$ac_ext <<_ACEOF
6362
/* end confdefs.h. */
6365
#ifdef F77_DUMMY_MAIN
6370
int F77_DUMMY_MAIN() { return 1; }
6381
rm -f conftest.$ac_objext conftest$ac_exeext
6382
if { (ac_try="$ac_link"
6384
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6385
*) ac_try_echo=$ac_try;;
6387
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6388
(eval "$ac_link") 2>conftest.er1
6390
grep -v '^ *+' conftest.er1 >conftest.err
6392
cat conftest.err >&5
6393
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6394
(exit $ac_status); } && {
6395
test -z "$ac_c_werror_flag" ||
6396
test ! -s conftest.err
6397
} && test -s conftest$ac_exeext &&
6398
$as_test_x conftest$ac_exeext; then
6399
ac_cv_lib_pthread_main=yes
6401
echo "$as_me: failed program was:" >&5
6402
sed 's/^/| /' conftest.$ac_ext >&5
6404
ac_cv_lib_pthread_main=no
6407
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6408
conftest$ac_exeext conftest.$ac_ext
6409
LIBS=$ac_check_lib_save_LIBS
6411
{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5
6412
echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6; }
6413
if test $ac_cv_lib_pthread_main = yes; then
6414
cat >>confdefs.h <<_ACEOF
6415
#define HAVE_LIBPTHREAD 1
6418
LIBS="-lpthread $LIBS"
6423
LIBS="$LAPACK_LIBS $BLAS_LIBS $LIBS $FCLIBS $FLIBS"
6427
# Check whether --enable-shared was given.
6428
if test "${enable_shared+set}" = set; then
6429
enableval=$enable_shared;
6433
if test "$enable_shared" = "yes" ; then
6435
FCFLAGS="$FCFLAGS $PIC_FLAG"
6436
CXXFLAGS="$CXXFLAGS $PIC_FLAG"
6442
## what compiler options work
6444
if test "$FC" = "g95"; then
6445
FCFLAGS="-ffast-math -fno-second-underscore $FCFLAGS"
6448
if test "$FC" = "gfortran"; then
6449
if test "$enable_debugging" = "yes" ; then
6450
FCFLAGS="-frecord-marker=4 $FCFLAGS"
6452
FCFLAGS="-ffast-math -frecord-marker=4 $FCFLAGS"
6454
CPPFLAGS="$CPPFLAGS -DUSING_GFORTRAN=1"
6458
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6459
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6460
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6462
{ echo "$as_me:$LINENO: checking how do we get fortran 77 to allow long lines" >&5
6463
echo $ECHO_N "checking how do we get fortran 77 to allow long lines... $ECHO_C" >&6; }
6465
extended_source_flag=none
6466
cat >conftest.$ac_ext <<_ACEOF
6469
PRINT*, "hello world "
6472
rm -f conftest.$ac_objext
6473
if { (ac_try="$ac_compile"
6475
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6476
*) ac_try_echo=$ac_try;;
6478
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6479
(eval "$ac_compile") 2>conftest.er1
6481
grep -v '^ *+' conftest.er1 >conftest.err
6483
cat conftest.err >&5
6484
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6485
(exit $ac_status); } && {
6486
test -z "$ac_f77_werror_flag" ||
6487
test ! -s conftest.err
6488
} && test -s conftest.$ac_objext; then
6490
{ echo "$as_me:$LINENO: result: no extra flags required" >&5
6491
echo "${ECHO_T}no extra flags required" >&6; }
6492
extended_source_flag=happy
6495
echo "$as_me: failed program was:" >&5
6496
sed 's/^/| /' conftest.$ac_ext >&5
6501
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6503
if test "$extended_source_flag" != happy ; then
6504
if test "$extended_source_flag" = none ; then
6505
FFLAGS="-extend_source"
6506
cat >conftest.$ac_ext <<_ACEOF
6509
PRINT*, "hello world "
6512
rm -f conftest.$ac_objext
6513
if { (ac_try="$ac_compile"
6515
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6516
*) ac_try_echo=$ac_try;;
6518
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6519
(eval "$ac_compile") 2>conftest.er1
6521
grep -v '^ *+' conftest.er1 >conftest.err
6523
cat conftest.err >&5
6524
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6525
(exit $ac_status); } && {
6526
test -z "$ac_f77_werror_flag" ||
6527
test ! -s conftest.err
6528
} && test -s conftest.$ac_objext; then
6530
extended_source_flag=$FFLAGS
6531
{ echo "$as_me:$LINENO: result: $FFLAGS" >&5
6532
echo "${ECHO_T}$FFLAGS" >&6; }
6533
FFLAGS="$old_FLAGS $FFLAGS"
6536
echo "$as_me: failed program was:" >&5
6537
sed 's/^/| /' conftest.$ac_ext >&5
6542
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6544
if test "$extended_source_flag" = none ; then
6546
cat >conftest.$ac_ext <<_ACEOF
6549
PRINT*, "hello world "
6552
rm -f conftest.$ac_objext
6553
if { (ac_try="$ac_compile"
6555
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6556
*) ac_try_echo=$ac_try;;
6558
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6559
(eval "$ac_compile") 2>conftest.er1
6561
grep -v '^ *+' conftest.er1 >conftest.err
6563
cat conftest.err >&5
6564
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6565
(exit $ac_status); } && {
6566
test -z "$ac_f77_werror_flag" ||
6567
test ! -s conftest.err
6568
} && test -s conftest.$ac_objext; then
6570
extended_source_flag=$FFLAGS
6571
{ echo "$as_me:$LINENO: result: $FFLAGS" >&5
6572
echo "${ECHO_T}$FFLAGS" >&6; }
6573
FFLAGS="$old_FLAGS $FFLAGS"
6576
echo "$as_me: failed program was:" >&5
6577
sed 's/^/| /' conftest.$ac_ext >&5
6582
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6584
if test "$extended_source_flag" = none ; then
6585
FFLAGS="-ffree-line-length-none -ffixed-line-length-none"
6586
cat >conftest.$ac_ext <<_ACEOF
6589
PRINT*, "hello world "
6592
rm -f conftest.$ac_objext
6593
if { (ac_try="$ac_compile"
6595
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6596
*) ac_try_echo=$ac_try;;
6598
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6599
(eval "$ac_compile") 2>conftest.er1
6601
grep -v '^ *+' conftest.er1 >conftest.err
6603
cat conftest.err >&5
6604
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6605
(exit $ac_status); } && {
6606
test -z "$ac_f77_werror_flag" ||
6607
test ! -s conftest.err
6608
} && test -s conftest.$ac_objext; then
6610
extended_source_flag=$FFLAGS
6611
{ echo "$as_me:$LINENO: result: $FFLAGS" >&5
6612
echo "${ECHO_T}$FFLAGS" >&6; }
6613
FFLAGS="$old_FLAGS $FFLAGS"
6616
echo "$as_me: failed program was:" >&5
6617
sed 's/^/| /' conftest.$ac_ext >&5
6622
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6624
if test "$extended_source_flag" = none ; then
6625
FFLAGS="-ffixed-line-length-huge -ffree-line-length-huge"
6626
cat >conftest.$ac_ext <<_ACEOF
6629
PRINT*, "hello world "
6632
rm -f conftest.$ac_objext
6633
if { (ac_try="$ac_compile"
6635
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6636
*) ac_try_echo=$ac_try;;
6638
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6639
(eval "$ac_compile") 2>conftest.er1
6641
grep -v '^ *+' conftest.er1 >conftest.err
6643
cat conftest.err >&5
6644
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6645
(exit $ac_status); } && {
6646
test -z "$ac_f77_werror_flag" ||
6647
test ! -s conftest.err
6648
} && test -s conftest.$ac_objext; then
6650
extended_source_flag=$FFLAGS
6651
{ echo "$as_me:$LINENO: result: $FFLAGS" >&5
6652
echo "${ECHO_T}$FFLAGS" >&6; }
6653
FFLAGS="$old_FLAGS $FFLAGS"
6656
echo "$as_me: failed program was:" >&5
6657
sed 's/^/| /' conftest.$ac_ext >&5
6662
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6664
if test "$extended_source_flag" = none ; then
6665
FFLAGS="-ffixed-line-length-132 -ffree-line-length-huge"
6666
cat >conftest.$ac_ext <<_ACEOF
6669
PRINT*, "hello world "
6672
rm -f conftest.$ac_objext
6673
if { (ac_try="$ac_compile"
6675
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6676
*) ac_try_echo=$ac_try;;
6678
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6679
(eval "$ac_compile") 2>conftest.er1
6681
grep -v '^ *+' conftest.er1 >conftest.err
6683
cat conftest.err >&5
6684
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6685
(exit $ac_status); } && {
6686
test -z "$ac_f77_werror_flag" ||
6687
test ! -s conftest.err
6688
} && test -s conftest.$ac_objext; then
6690
extended_source_flag=$FFLAGS
6691
{ echo "$as_me:$LINENO: result: $FFLAGS" >&5
6692
echo "${ECHO_T}$FFLAGS" >&6; }
6693
FFLAGS="$old_FLAGS $FFLAGS"
6696
echo "$as_me: failed program was:" >&5
6697
sed 's/^/| /' conftest.$ac_ext >&5
6702
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6704
if test "$extended_source_flag" = none ; then
6705
FFLAGS="-ffixed-line-length-132"
6706
cat >conftest.$ac_ext <<_ACEOF
6709
PRINT*, "hello world "
6712
rm -f conftest.$ac_objext
6713
if { (ac_try="$ac_compile"
6715
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6716
*) ac_try_echo=$ac_try;;
6718
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6719
(eval "$ac_compile") 2>conftest.er1
6721
grep -v '^ *+' conftest.er1 >conftest.err
6723
cat conftest.err >&5
6724
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6725
(exit $ac_status); } && {
6726
test -z "$ac_f77_werror_flag" ||
6727
test ! -s conftest.err
6728
} && test -s conftest.$ac_objext; then
6730
extended_source_flag=$FFLAGS
6731
{ echo "$as_me:$LINENO: result: $FFLAGS" >&5
6732
echo "${ECHO_T}$FFLAGS" >&6; }
6733
FFLAGS="$old_FLAGS $FFLAGS"
6736
echo "$as_me: failed program was:" >&5
6737
sed 's/^/| /' conftest.$ac_ext >&5
6742
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6744
if test "$extended_source_flag" = none ; then
6746
cat >conftest.$ac_ext <<_ACEOF
6749
PRINT*, "hello world "
6752
rm -f conftest.$ac_objext
6753
if { (ac_try="$ac_compile"
6755
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6756
*) ac_try_echo=$ac_try;;
6758
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6759
(eval "$ac_compile") 2>conftest.er1
6761
grep -v '^ *+' conftest.er1 >conftest.err
6763
cat conftest.err >&5
6764
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6765
(exit $ac_status); } && {
6766
test -z "$ac_f77_werror_flag" ||
6767
test ! -s conftest.err
6768
} && test -s conftest.$ac_objext; then
6770
extended_source_flag=$FFLAGS
6771
{ echo "$as_me:$LINENO: result: $FFLAGS" >&5
6772
echo "${ECHO_T}$FFLAGS" >&6; }
6773
FFLAGS="$old_FLAGS $FFLAGS"
6776
echo "$as_me: failed program was:" >&5
6777
sed 's/^/| /' conftest.$ac_ext >&5
6782
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6784
if test "$extended_source_flag" = none ; then
6785
FFLAGS="-qfixed=256"
6786
cat >conftest.$ac_ext <<_ACEOF
6789
PRINT*, "hello world "
6792
rm -f conftest.$ac_objext
6793
if { (ac_try="$ac_compile"
6795
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6796
*) ac_try_echo=$ac_try;;
6798
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6799
(eval "$ac_compile") 2>conftest.er1
6801
grep -v '^ *+' conftest.er1 >conftest.err
6803
cat conftest.err >&5
6804
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6805
(exit $ac_status); } && {
6806
test -z "$ac_f77_werror_flag" ||
6807
test ! -s conftest.err
6808
} && test -s conftest.$ac_objext; then
6810
extended_source_flag=$FFLAGS
6811
{ echo "$as_me:$LINENO: result: $FFLAGS" >&5
6812
echo "${ECHO_T}$FFLAGS" >&6; }
6813
FFLAGS="$old_FLAGS $FFLAGS"
6816
echo "$as_me: failed program was:" >&5
6817
sed 's/^/| /' conftest.$ac_ext >&5
6822
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6824
if test "$extended_source_flag" = none ; then
6826
cat >conftest.$ac_ext <<_ACEOF
6829
PRINT*, "hello world "
6832
rm -f conftest.$ac_objext
6833
if { (ac_try="$ac_compile"
6835
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6836
*) ac_try_echo=$ac_try;;
6838
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6839
(eval "$ac_compile") 2>conftest.er1
6841
grep -v '^ *+' conftest.er1 >conftest.err
6843
cat conftest.err >&5
6844
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6845
(exit $ac_status); } && {
6846
test -z "$ac_f77_werror_flag" ||
6847
test ! -s conftest.err
6848
} && test -s conftest.$ac_objext; then
6850
extended_source_flag=$FFLAGS
6851
{ echo "$as_me:$LINENO: result: $FFLAGS" >&5
6852
echo "${ECHO_T}$FFLAGS" >&6; }
6853
FFLAGS="$old_FLAGS $FFLAGS"
6856
echo "$as_me: failed program was:" >&5
6857
sed 's/^/| /' conftest.$ac_ext >&5
6862
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6865
if test "$extended_source_flag" = none ; then
6866
{ echo "$as_me:$LINENO: result: we cannot" >&5
6867
echo "${ECHO_T}we cannot" >&6; }
6869
FCFLAGS="$FCFLAGS $extended_source_flag"
6874
ac_cpp='$CPP $CPPFLAGS'
6875
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6876
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6877
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6880
# Find a good install program. We prefer a C program (faster),
6881
# so one script is as good as another. But avoid the broken or
6882
# incompatible versions:
6883
# SysV /etc/install, /usr/sbin/install
6884
# SunOS /usr/etc/install
6885
# IRIX /sbin/install
6887
# AmigaOS /C/install, which installs bootblocks on floppy discs
6888
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6889
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6890
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6891
# OS/2's system install, which has a completely different semantic
6892
# ./install, which can be erroneously created by make from ./install.sh.
6893
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6894
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6895
if test -z "$INSTALL"; then
6896
if test "${ac_cv_path_install+set}" = set; then
6897
echo $ECHO_N "(cached) $ECHO_C" >&6
6899
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6903
test -z "$as_dir" && as_dir=.
6904
# Account for people who put trailing slashes in PATH elements.
6906
./ | .// | /cC/* | \
6907
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6908
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6911
# OSF1 and SCO ODT 3.0 have their own names for install.
6912
# Don't use installbsd from OSF since it installs stuff as root
6914
for ac_prog in ginstall scoinst install; do
6915
for ac_exec_ext in '' $ac_executable_extensions; do
6916
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6917
if test $ac_prog = install &&
6918
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6919
# AIX install. It has an incompatible calling convention.
6921
elif test $ac_prog = install &&
6922
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6923
# program-specific install script used by HP pwplus--don't use.
6926
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6939
if test "${ac_cv_path_install+set}" = set; then
6940
INSTALL=$ac_cv_path_install
6942
# As a last resort, use the slow shell script. Don't cache a
6943
# value for INSTALL within a source directory, because that will
6944
# break other packages using the cache if that directory is
6945
# removed, or if the value is a relative name.
6946
INSTALL=$ac_install_sh
6949
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
6950
echo "${ECHO_T}$INSTALL" >&6; }
6952
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6953
# It thinks the first close brace ends the variable substitution.
6954
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6956
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6958
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6960
# Extract the first word of "gmake", so it can be a program name with args.
6961
set dummy gmake; ac_word=$2
6962
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6963
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6964
if test "${ac_cv_prog_MAKE+set}" = set; then
6965
echo $ECHO_N "(cached) $ECHO_C" >&6
6967
if test -n "$MAKE"; then
6968
ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
6970
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6974
test -z "$as_dir" && as_dir=.
6975
for ac_exec_ext in '' $ac_executable_extensions; do
6976
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6977
ac_cv_prog_MAKE="gmake"
6978
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6985
test -z "$ac_cv_prog_MAKE" && ac_cv_prog_MAKE="make"
6988
MAKE=$ac_cv_prog_MAKE
6989
if test -n "$MAKE"; then
6990
{ echo "$as_me:$LINENO: result: $MAKE" >&5
6991
echo "${ECHO_T}$MAKE" >&6; }
6993
{ echo "$as_me:$LINENO: result: no" >&5
6994
echo "${ECHO_T}no" >&6; }
6999
# Set default for ARFLAGS, since autoconf does not have a macro for
7000
# it. This allows people to set it when running configure or make.
7001
# Extract the first word of "ar", so it can be a program name with args.
7002
set dummy ar; ac_word=$2
7003
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7004
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7005
if test "${ac_cv_prog_AR+set}" = set; then
7006
echo $ECHO_N "(cached) $ECHO_C" >&6
7008
if test -n "$AR"; then
7009
ac_cv_prog_AR="$AR" # Let the user override the test.
7011
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7015
test -z "$as_dir" && as_dir=.
7016
for ac_exec_ext in '' $ac_executable_extensions; do
7017
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7019
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7029
if test -n "$AR"; then
7030
{ echo "$as_me:$LINENO: result: $AR" >&5
7031
echo "${ECHO_T}$AR" >&6; }
7033
{ echo "$as_me:$LINENO: result: no" >&5
7034
echo "${ECHO_T}no" >&6; }
7038
test -n "$ARFLAGS" || ARFLAGS="cr"
7039
if test -n "$ac_tool_prefix"; then
7040
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7041
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7042
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7043
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7044
if test "${ac_cv_prog_RANLIB+set}" = set; then
7045
echo $ECHO_N "(cached) $ECHO_C" >&6
7047
if test -n "$RANLIB"; then
7048
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7050
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7054
test -z "$as_dir" && as_dir=.
7055
for ac_exec_ext in '' $ac_executable_extensions; do
7056
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7057
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7058
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7067
RANLIB=$ac_cv_prog_RANLIB
7068
if test -n "$RANLIB"; then
7069
{ echo "$as_me:$LINENO: result: $RANLIB" >&5
7070
echo "${ECHO_T}$RANLIB" >&6; }
7072
{ echo "$as_me:$LINENO: result: no" >&5
7073
echo "${ECHO_T}no" >&6; }
7078
if test -z "$ac_cv_prog_RANLIB"; then
7079
ac_ct_RANLIB=$RANLIB
7080
# Extract the first word of "ranlib", so it can be a program name with args.
7081
set dummy ranlib; ac_word=$2
7082
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7083
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7084
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7085
echo $ECHO_N "(cached) $ECHO_C" >&6
7087
if test -n "$ac_ct_RANLIB"; then
7088
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7090
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7094
test -z "$as_dir" && as_dir=.
7095
for ac_exec_ext in '' $ac_executable_extensions; do
7096
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7097
ac_cv_prog_ac_ct_RANLIB="ranlib"
7098
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7107
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7108
if test -n "$ac_ct_RANLIB"; then
7109
{ echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7110
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7112
{ echo "$as_me:$LINENO: result: no" >&5
7113
echo "${ECHO_T}no" >&6; }
7116
if test "x$ac_ct_RANLIB" = x; then
7119
case $cross_compiling:$ac_tool_warned in
7121
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7122
whose name does not start with the host triplet. If you think this
7123
configuration is useful to you, please write to autoconf@gnu.org." >&5
7124
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7125
whose name does not start with the host triplet. If you think this
7126
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7127
ac_tool_warned=yes ;;
7129
RANLIB=$ac_ct_RANLIB
7132
RANLIB="$ac_cv_prog_RANLIB"
7136
# Check whether --enable-verbose was given.
7137
if test "${enable_verbose+set}" = set; then
7138
enableval=$enable_verbose;
7142
if test "$enable_verbose" = "yes" ; then
7143
CPPFLAGS="$CPPFLAGS -DVERBOSE_MESSAGES=1"
7146
if test "$enable_debugging" = "yes" ; then
7147
CXXFLAGS="-g -O0 `echo $CXXFLAGS | sed 's/-O2//g'`"
7148
FCFLAGS="-g -O0 `echo $FCFLAGS | sed 's/-O2//g'`"
7150
if test "$fcompiler" = "ifort" ; then
7151
FCFLAGS="-C -traceback -check nooutput_conversion -check noarg_temp_created ${FCFLAGS}"
7152
CXXFLAGS="-fno-omit-frame-pointer ${CXXFLAGS}"
7153
elif test "$fcompiler" = "gfortran" ; then
7154
FCFLAGS="-fbounds-check -Wall ${FCFLAGS}"
7155
CXXFLAGS="-fbounds-check -Wall ${CXXFLAGS}"
7156
LDFLAGS="-rdynamic ${LDFLAGS}"
7157
elif test "$fcompiler" = "g95" ; then
7158
FCFLAGS="-fbounds-check -ftrace=full ${FCFLAGS}"
7159
elif test "$fcompiler" = "sunf95" ; then
7160
FCFLAGS="-C -ftrap=invalid -fpover ${FCFLAGS}"
7161
CXXFLAGS="-ftrap=invalid ${CXXFLAGS}"
7163
FCFLAGS="-C ${FCFLAGS}"
7167
{ echo "$as_me:$LINENO: Setting optimisation flags for $F77" >&5
7168
echo "$as_me: Setting optimisation flags for $F77" >&6;}
7169
CPPFLAGS="$CPPFLAGS -DNDEBUG=1"
7170
OPTIMIZATION_FFLAGS="$OPTIMIZATION_FFLAGS -O3"
7173
FCFLAGS="$FCFLAGS $OPTIMIZATION_FFLAGS"
7175
if test "$FC" = "ifc" ; then
7176
FCFLAGS="-implicitnone -w95 $FCFLAGS"
7180
if test -z "$FORTRAN_REAL_8" ; then
7181
if test "$fcompiler" = "gfortran" ; then
7182
FORTRAN_REAL_8="-fdefault-real-8"
7183
elif test "$fcompiler" = "ifort"; then
7184
FORTRAN_REAL_8="-r8"
7185
elif test "$fcompiler" = "sunf95"; then
7186
FORTRAN_REAL_8="-xtypemap=real:64,double:64"
7188
FORTRAN_REAL_8="-r8"
7192
# Check whether --enable-dp was given.
7193
if test "${enable_dp+set}" = set; then
7194
enableval=$enable_dp;
7198
if test "$enable_dp" = "no"
7201
{ echo "$as_me:$LINENO: Selecting 4 byte floating point numbers" >&5
7202
echo "$as_me: Selecting 4 byte floating point numbers" >&6;}
7204
{ echo "$as_me:$LINENO: Turning on double 8 byte floating point numbers" >&5
7205
echo "$as_me: Turning on double 8 byte floating point numbers" >&6;}
7206
if test -n "$enable_dp" ; then
7207
if test "$enable_dp" != "yes" ; then
7208
FORTRAN_REAL_8="$enable_dp"
7213
FLUIDITY="d$FLUIDITY"
7214
FLADJOINT="d$FLADJOINT"
7216
CPPFLAGS="$CPPFLAGS -DDOUBLEP=1"
7217
FCFLAGS="$FCFLAGS $FORTRAN_REAL_8"
7222
LIBS="$LIBS -L./lib"
7224
##############################################################
7225
# enable gprof profiling
7227
# Check whether --enable-profiling was given.
7228
if test "${enable_profiling+set}" = set; then
7229
enableval=$enable_profiling;
7233
if test "$enable_profiling" = "yes" ; then
7234
PROFILING_FLAG="-pg"
7235
CPPFLAGS="-pg $CPPFLAGS"
7236
FCFLAGS="-pg $FCFLAGS"
7238
LINKER="$LINKER -pg"
7244
VERSION=`svnversion .`
7249
ac_config_files="$ac_config_files Makefile"
7251
cat >confcache <<\_ACEOF
7252
# This file is a shell script that caches the results of configure
7253
# tests run on this system so they can be shared between configure
7254
# scripts and configure runs, see configure's option --config-cache.
7255
# It is not useful on other systems. If it contains results you don't
7256
# want to keep, you may remove or edit it.
7258
# config.status only pays attention to the cache file if you give it
7259
# the --recheck option to rerun configure.
7261
# `ac_cv_env_foo' variables (set or unset) will be overridden when
7262
# loading this file, other *unset* `ac_cv_foo' will be assigned the
7267
# The following way of writing the cache mishandles newlines in values,
7268
# but we know of no workaround that is simple, portable, and efficient.
7269
# So, we kill variables containing newlines.
7270
# Ultrix sh set writes to stderr and can't be redirected directly,
7271
# and sets the high bit in the cache file unless we assign to the vars.
7273
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7274
eval ac_val=\$$ac_var
7278
*_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
7279
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
7282
_ | IFS | as_nl) ;; #(
7283
*) $as_unset $ac_var ;;
7289
case $as_nl`(ac_space=' '; set) 2>&1` in #(
7290
*${as_nl}ac_space=\ *)
7291
# `set' does not quote correctly, so add quotes (double-quote
7292
# substitution turns \\\\ into \\, and sed turns \\ into \).
7295
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7298
# `set' quotes correctly as required by POSIX, so do not add quotes.
7299
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7308
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7310
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7312
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7313
if test -w "$cache_file"; then
7314
test "x$cache_file" != "x/dev/null" &&
7315
{ echo "$as_me:$LINENO: updating cache $cache_file" >&5
7316
echo "$as_me: updating cache $cache_file" >&6;}
7317
cat confcache >$cache_file
7319
{ echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
7320
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7325
test "x$prefix" = xNONE && prefix=$ac_default_prefix
7326
# Let make expand exec_prefix.
7327
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7329
# Transform confdefs.h into DEFS.
7330
# Protect against shell expansion while executing Makefile rules.
7331
# Protect against Makefile macro expansion.
7333
# If the first sed substitution is executed (which looks for macros that
7334
# take arguments), then branch to the quote section. Otherwise,
7335
# look for a macro that doesn't take arguments.
7339
s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
7341
s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
7345
s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
7358
DEFS=`sed -n "$ac_script" confdefs.h`
7363
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7364
# 1. Remove the extension, and $U if already installed.
7365
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7366
ac_i=`echo "$ac_i" | sed "$ac_script"`
7367
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7368
# will be set to the directory where LIBOBJS objects are built.
7369
ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7370
ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
7374
LTLIBOBJS=$ac_ltlibobjs
7378
: ${CONFIG_STATUS=./config.status}
7379
ac_clean_files_save=$ac_clean_files
7380
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7381
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7382
echo "$as_me: creating $CONFIG_STATUS" >&6;}
7383
cat >$CONFIG_STATUS <<_ACEOF
7385
# Generated by $as_me.
7386
# Run this file to recreate the current configuration.
7387
# Compiler output produced by configure, useful for debugging
7388
# configure, is in config.log if it exists.
7393
SHELL=\${CONFIG_SHELL-$SHELL}
7396
cat >>$CONFIG_STATUS <<\_ACEOF
7397
## --------------------- ##
7398
## M4sh Initialization. ##
7399
## --------------------- ##
7401
# Be more Bourne compatible
7402
DUALCASE=1; export DUALCASE # for MKS sh
7403
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7406
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7407
# is contrary to our usage. Disable this feature.
7408
alias -g '${1+"$@"}'='"$@"'
7409
setopt NO_GLOB_SUBST
7411
case `(set -o) 2>/dev/null` in
7412
*posix*) set -o posix ;;
7421
# Avoid depending upon Character Ranges.
7422
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7423
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7424
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7425
as_cr_digits='0123456789'
7426
as_cr_alnum=$as_cr_Letters$as_cr_digits
7428
# The user is always right.
7429
if test "${PATH_SEPARATOR+set}" != set; then
7430
echo "#! /bin/sh" >conf$$.sh
7431
echo "exit 0" >>conf$$.sh
7433
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7441
# Support unset when possible.
7442
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7450
# We need space, tab and new line, in precisely that order. Quoting is
7451
# there to prevent editors from complaining about space-tab.
7452
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
7453
# splitting by setting IFS to empty value.)
7458
# Find who we are. Look in the path if we contain no directory separator.
7460
*[\\/]* ) as_myself=$0 ;;
7461
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7465
test -z "$as_dir" && as_dir=.
7466
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7472
# We did not find ourselves, most probably we were run as `sh COMMAND'
7473
# in which case we are not to be found in the path.
7474
if test "x$as_myself" = x; then
7477
if test ! -f "$as_myself"; then
7478
echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7479
{ (exit 1); exit 1; }
7482
# Work around bugs in pre-3.0 UWIN ksh.
7483
for as_var in ENV MAIL MAILPATH
7484
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
7492
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7493
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7494
LC_TELEPHONE LC_TIME
7496
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7497
eval $as_var=C; export $as_var
7499
($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
7503
# Required to use basename.
7504
if expr a : '\(a\)' >/dev/null 2>&1 &&
7505
test "X`expr 00001 : '.*\(...\)'`" = X001; then
7511
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7512
as_basename=basename
7518
# Name of the executable.
7519
as_me=`$as_basename -- "$0" ||
7520
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7521
X"$0" : 'X\(//\)$' \| \
7522
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7524
sed '/^.*\/\([^/][^/]*\)\/*$/{
7545
test "x$as_lineno_1" != "x$as_lineno_2" &&
7546
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
7548
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7549
# uniformly replaced by the line number. The first 'sed' inserts a
7550
# line-number line after each line using $LINENO; the second 'sed'
7551
# does the real work. The second script uses 'N' to pair each
7552
# line-number line with the line containing $LINENO, and appends
7553
# trailing '-' during substitution so that $LINENO is not a special
7555
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7556
# scripts with optimization help from Paolo Bonzini. Blame Lee
7557
# E. McMahon (1931-1989) for sed's syntax. :-)
7569
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
7573
chmod +x "$as_me.lineno" ||
7574
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
7575
{ (exit 1); exit 1; }; }
7577
# Don't try to exec as it changes $[0], causing all sort of problems
7578
# (the dirname of $[0] is not the place where we might find the
7579
# original and so on. Autoconf is especially sensitive to this).
7581
# Exit status is that of the last command.
7586
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7592
ECHO_C= ECHO_N= ECHO_T=
7595
case `echo 'x\c'` in
7596
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
7603
if expr a : '\(a\)' >/dev/null 2>&1 &&
7604
test "X`expr 00001 : '.*\(...\)'`" = X001; then
7610
rm -f conf$$ conf$$.exe conf$$.file
7611
if test -d conf$$.dir; then
7612
rm -f conf$$.dir/conf$$.file
7618
if ln -s conf$$.file conf$$ 2>/dev/null; then
7620
# ... but there are two gotchas:
7621
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7622
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7623
# In both cases, we have to default to `cp -p'.
7624
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7626
elif ln conf$$.file conf$$ 2>/dev/null; then
7631
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7632
rmdir conf$$.dir 2>/dev/null
7634
if mkdir -p . 2>/dev/null; then
7637
test -d ./-p && rmdir ./-p
7641
if test -x / >/dev/null 2>&1; then
7644
if ls -dL / >/dev/null 2>&1; then
7651
if test -d "$1"; then
7657
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
7658
???[sx]*):;;*)false;;esac;fi
7662
as_executable_p=$as_test_x
7664
# Sed expression to map a string onto a valid CPP name.
7665
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7667
# Sed expression to map a string onto a valid variable name.
7668
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7673
# Save the log message, to keep $[0] and so on meaningful, and to
7674
# report actual input values of CONFIG_FILES etc. instead of their
7675
# values after options handling.
7677
This file was extended by $as_me, which was
7678
generated by GNU Autoconf 2.61. Invocation command line was
7680
CONFIG_FILES = $CONFIG_FILES
7681
CONFIG_HEADERS = $CONFIG_HEADERS
7682
CONFIG_LINKS = $CONFIG_LINKS
7683
CONFIG_COMMANDS = $CONFIG_COMMANDS
7686
on `(hostname || uname -n) 2>/dev/null | sed 1q`
7691
cat >>$CONFIG_STATUS <<_ACEOF
7692
# Files that config.status was made for.
7693
config_files="$ac_config_files"
7697
cat >>$CONFIG_STATUS <<\_ACEOF
7699
\`$as_me' instantiates files from templates according to the
7700
current configuration.
7702
Usage: $0 [OPTIONS] [FILE]...
7704
-h, --help print this help, then exit
7705
-V, --version print version number and configuration settings, then exit
7706
-q, --quiet do not print progress messages
7707
-d, --debug don't remove temporary files
7708
--recheck update $as_me by reconfiguring in the same conditions
7709
--file=FILE[:TEMPLATE]
7710
instantiate the configuration file FILE
7712
Configuration files:
7715
Report bugs to <bug-autoconf@gnu.org>."
7718
cat >>$CONFIG_STATUS <<_ACEOF
7721
configured by $0, generated by GNU Autoconf 2.61,
7722
with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
7724
Copyright (C) 2006 Free Software Foundation, Inc.
7725
This config.status script is free software; the Free Software Foundation
7726
gives unlimited permission to copy, distribute and modify it."
7733
cat >>$CONFIG_STATUS <<\_ACEOF
7734
# If no file are specified by the user, then we need to provide default
7735
# value. By we need to know if files were specified by the user.
7741
ac_option=`expr "X$1" : 'X\([^=]*\)='`
7742
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7753
# Handling of the options.
7754
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7756
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7757
echo "$ac_cs_version"; exit ;;
7758
--debug | --debu | --deb | --de | --d | -d )
7760
--file | --fil | --fi | --f )
7762
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7763
ac_need_defaults=false;;
7764
--he | --h | --help | --hel | -h )
7765
echo "$ac_cs_usage"; exit ;;
7766
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
7767
| -silent | --silent | --silen | --sile | --sil | --si | --s)
7771
-*) { echo "$as_me: error: unrecognized option: $1
7772
Try \`$0 --help' for more information." >&2
7773
{ (exit 1); exit 1; }; } ;;
7775
*) ac_config_targets="$ac_config_targets $1"
7776
ac_need_defaults=false ;;
7782
ac_configure_extra_args=
7784
if $ac_cs_silent; then
7786
ac_configure_extra_args="$ac_configure_extra_args --silent"
7790
cat >>$CONFIG_STATUS <<_ACEOF
7791
if \$ac_cs_recheck; then
7792
echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7795
exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7799
cat >>$CONFIG_STATUS <<\_ACEOF
7803
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7804
## Running $as_me. ##
7810
cat >>$CONFIG_STATUS <<_ACEOF
7813
cat >>$CONFIG_STATUS <<\_ACEOF
7815
# Handling of arguments.
7816
for ac_config_target in $ac_config_targets
7818
case $ac_config_target in
7819
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7821
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7822
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7823
{ (exit 1); exit 1; }; };;
7828
# If the user did not use the arguments to specify the items to instantiate,
7829
# then the envvar interface is used. Set only those that are not.
7830
# We use the long form for the default assignment because of an extremely
7831
# bizarre bug on SunOS 4.1.3.
7832
if $ac_need_defaults; then
7833
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7836
# Have a temporary directory for convenience. Make it in the build tree
7837
# simply because there is no reason against having it here, and in addition,
7838
# creating and moving files from /tmp can sometimes cause problems.
7839
# Hook for its removal unless debugging.
7840
# Note that there is a small window in which the directory will not be cleaned:
7841
# after its creation but before its name has been assigned to `$tmp'.
7845
trap 'exit_status=$?
7846
{ test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
7848
trap '{ (exit 1); exit 1; }' 1 2 13 15
7850
# Create a (secure) tmp directory for tmp files.
7853
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7854
test -n "$tmp" && test -d "$tmp"
7857
tmp=./conf$$-$RANDOM
7858
(umask 077 && mkdir "$tmp")
7861
echo "$me: cannot create a temporary directory in ." >&2
7862
{ (exit 1); exit 1; }
7866
# Set up the sed scripts for CONFIG_FILES section.
7869
# No need to generate the scripts if there are no CONFIG_FILES.
7870
# This happens for instance when ./config.status config.h
7871
if test -n "$CONFIG_FILES"; then
7878
for ac_last_try in false false false false false :; do
7879
cat >conf$$subs.sed <<_ACEOF
7880
SHELL!$SHELL$ac_delim
7881
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
7882
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
7883
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
7884
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
7885
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
7886
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
7887
exec_prefix!$exec_prefix$ac_delim
7888
prefix!$prefix$ac_delim
7889
program_transform_name!$program_transform_name$ac_delim
7890
bindir!$bindir$ac_delim
7891
sbindir!$sbindir$ac_delim
7892
libexecdir!$libexecdir$ac_delim
7893
datarootdir!$datarootdir$ac_delim
7894
datadir!$datadir$ac_delim
7895
sysconfdir!$sysconfdir$ac_delim
7896
sharedstatedir!$sharedstatedir$ac_delim
7897
localstatedir!$localstatedir$ac_delim
7898
includedir!$includedir$ac_delim
7899
oldincludedir!$oldincludedir$ac_delim
7900
docdir!$docdir$ac_delim
7901
infodir!$infodir$ac_delim
7902
htmldir!$htmldir$ac_delim
7903
dvidir!$dvidir$ac_delim
7904
pdfdir!$pdfdir$ac_delim
7905
psdir!$psdir$ac_delim
7906
libdir!$libdir$ac_delim
7907
localedir!$localedir$ac_delim
7908
mandir!$mandir$ac_delim
7910
ECHO_C!$ECHO_C$ac_delim
7911
ECHO_N!$ECHO_N$ac_delim
7912
ECHO_T!$ECHO_T$ac_delim
7914
build_alias!$build_alias$ac_delim
7915
host_alias!$host_alias$ac_delim
7916
target_alias!$target_alias$ac_delim
7917
build!$build$ac_delim
7918
build_cpu!$build_cpu$ac_delim
7919
build_vendor!$build_vendor$ac_delim
7920
build_os!$build_os$ac_delim
7922
host_cpu!$host_cpu$ac_delim
7923
host_vendor!$host_vendor$ac_delim
7924
host_os!$host_os$ac_delim
7926
FFLAGS!$FFLAGS$ac_delim
7927
LDFLAGS!$LDFLAGS$ac_delim
7928
ac_ct_F77!$ac_ct_F77$ac_delim
7929
EXEEXT!$EXEEXT$ac_delim
7930
OBJEXT!$OBJEXT$ac_delim
7931
FLIBS!$FLIBS$ac_delim
7933
FCFLAGS!$FCFLAGS$ac_delim
7934
ac_ct_FC!$ac_ct_FC$ac_delim
7935
FCLIBS!$FCLIBS$ac_delim
7937
CXXFLAGS!$CXXFLAGS$ac_delim
7938
CPPFLAGS!$CPPFLAGS$ac_delim
7939
ac_ct_CXX!$ac_ct_CXX$ac_delim
7941
CFLAGS!$CFLAGS$ac_delim
7942
ac_ct_CC!$ac_ct_CC$ac_delim
7945
EGREP!$EGREP$ac_delim
7946
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
7947
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
7948
INSTALL_DATA!$INSTALL_DATA$ac_delim
7951
RANLIB!$RANLIB$ac_delim
7952
PROFILING_FLAG!$PROFILING_FLAG$ac_delim
7953
VERSION!$VERSION$ac_delim
7954
ARFLAGS!$ARFLAGS$ac_delim
7955
LINKER!$LINKER$ac_delim
7956
LIBOBJS!$LIBOBJS$ac_delim
7957
LTLIBOBJS!$LTLIBOBJS$ac_delim
7960
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 78; then
7962
elif $ac_last_try; then
7963
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
7964
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
7965
{ (exit 1); exit 1; }; }
7967
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7971
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
7972
if test -n "$ac_eof"; then
7973
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
7974
ac_eof=`expr $ac_eof + 1`
7977
cat >>$CONFIG_STATUS <<_ACEOF
7978
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
7979
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
7982
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
7983
s/^/s,@/; s/!/@,|#_!!_#|/
7986
s/'"$ac_delim"'$/,g/; t
7988
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
7989
' >>$CONFIG_STATUS <conf$$subs.sed
7990
rm -f conf$$subs.sed
7991
cat >>$CONFIG_STATUS <<_ACEOF
7998
# VPATH may cause trouble with some makes, so we remove $(srcdir),
7999
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8000
# trailing colons and then remove the whole line if VPATH becomes empty
8001
# (actually we leave an empty line to preserve line numbers).
8002
if test "x$srcdir" = x.; then
8003
ac_vpsub='/^[ ]*VPATH[ ]*=/{
8007
s/^\([^=]*=[ ]*\):*/\1/
8013
cat >>$CONFIG_STATUS <<\_ACEOF
8014
fi # test -n "$CONFIG_FILES"
8017
for ac_tag in :F $CONFIG_FILES
8020
:[FHLC]) ac_mode=$ac_tag; continue;;
8022
case $ac_mode$ac_tag in
8024
:L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
8025
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
8026
{ (exit 1); exit 1; }; };;
8027
:[FH]-) ac_tag=-:-;;
8028
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8045
-) ac_f="$tmp/stdin";;
8046
*) # Look for the file first in the build tree, then in the source tree
8047
# (if the path is not absolute). The absolute path cannot be DOS-style,
8048
# because $ac_f cannot contain `:'.
8052
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8054
{ { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
8055
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
8056
{ (exit 1); exit 1; }; };;
8058
ac_file_inputs="$ac_file_inputs $ac_f"
8061
# Let's still pretend it is `configure' which instantiates (i.e., don't
8062
# use $as_me), people would be surprised to read:
8063
# /* config.h. Generated by config.status. */
8064
configure_input="Generated from "`IFS=:
8065
echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
8066
if test x"$ac_file" != x-; then
8067
configure_input="$ac_file. $configure_input"
8068
{ echo "$as_me:$LINENO: creating $ac_file" >&5
8069
echo "$as_me: creating $ac_file" >&6;}
8073
*:-:* | *:-) cat >"$tmp/stdin";;
8078
ac_dir=`$as_dirname -- "$ac_file" ||
8079
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8080
X"$ac_file" : 'X\(//\)[^/]' \| \
8081
X"$ac_file" : 'X\(//\)$' \| \
8082
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8084
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8103
-*) as_dir=./$as_dir;;
8105
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
8109
*\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
8110
*) as_qdir=$as_dir;;
8112
as_dirs="'$as_qdir' $as_dirs"
8113
as_dir=`$as_dirname -- "$as_dir" ||
8114
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8115
X"$as_dir" : 'X\(//\)[^/]' \| \
8116
X"$as_dir" : 'X\(//\)$' \| \
8117
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8119
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8136
test -d "$as_dir" && break
8138
test -z "$as_dirs" || eval "mkdir $as_dirs"
8139
} || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
8140
echo "$as_me: error: cannot create directory $as_dir" >&2;}
8141
{ (exit 1); exit 1; }; }; }
8145
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8147
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8148
# A ".." for each directory in $ac_dir_suffix.
8149
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
8150
case $ac_top_builddir_sub in
8151
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8152
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8155
ac_abs_top_builddir=$ac_pwd
8156
ac_abs_builddir=$ac_pwd$ac_dir_suffix
8157
# for backward compatibility:
8158
ac_top_builddir=$ac_top_build_prefix
8161
.) # We are building in place.
8163
ac_top_srcdir=$ac_top_builddir_sub
8164
ac_abs_top_srcdir=$ac_pwd ;;
8165
[\\/]* | ?:[\\/]* ) # Absolute name.
8166
ac_srcdir=$srcdir$ac_dir_suffix;
8167
ac_top_srcdir=$srcdir
8168
ac_abs_top_srcdir=$srcdir ;;
8170
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8171
ac_top_srcdir=$ac_top_build_prefix$srcdir
8172
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8174
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8184
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8185
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8189
cat >>$CONFIG_STATUS <<\_ACEOF
8190
# If the template does not know about datarootdir, expand it.
8191
# FIXME: This hack should be removed a few years after 2.60.
8192
ac_datarootdir_hack=; ac_datarootdir_seen=
8194
case `sed -n '/datarootdir/ {
8203
' $ac_file_inputs` in
8204
*datarootdir*) ac_datarootdir_seen=yes;;
8205
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8206
{ echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8207
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8209
cat >>$CONFIG_STATUS <<_ACEOF
8210
ac_datarootdir_hack='
8211
s&@datadir@&$datadir&g
8212
s&@docdir@&$docdir&g
8213
s&@infodir@&$infodir&g
8214
s&@localedir@&$localedir&g
8215
s&@mandir@&$mandir&g
8216
s&\\\${datarootdir}&$datarootdir&g' ;;
8220
# Neutralize VPATH when `$srcdir' = `.'.
8221
# Shell code in configure.ac might set extrasub.
8222
# FIXME: do we really want to maintain this feature?
8223
cat >>$CONFIG_STATUS <<_ACEOF
8227
cat >>$CONFIG_STATUS <<\_ACEOF
8229
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8230
s&@configure_input@&$configure_input&;t t
8231
s&@top_builddir@&$ac_top_builddir_sub&;t t
8232
s&@srcdir@&$ac_srcdir&;t t
8233
s&@abs_srcdir@&$ac_abs_srcdir&;t t
8234
s&@top_srcdir@&$ac_top_srcdir&;t t
8235
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8236
s&@builddir@&$ac_builddir&;t t
8237
s&@abs_builddir@&$ac_abs_builddir&;t t
8238
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8239
s&@INSTALL@&$ac_INSTALL&;t t
8240
$ac_datarootdir_hack
8241
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
8243
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8244
{ ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
8245
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
8246
{ echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8247
which seems to be undefined. Please make sure it is defined." >&5
8248
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8249
which seems to be undefined. Please make sure it is defined." >&2;}
8253
-) cat "$tmp/out"; rm -f "$tmp/out";;
8254
*) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
8265
{ (exit 0); exit 0; }
8267
chmod +x $CONFIG_STATUS
8268
ac_clean_files=$ac_clean_files_save
8271
# configure is writing to config.log, and then calls config.status.
8272
# config.status does its own redirection, appending to config.log.
8273
# Unfortunately, on DOS this fails, as config.log is still kept open
8274
# by configure, so config.status won't be able to write to it; its
8275
# output is simply discarded. So we exec the FD to /dev/null,
8276
# effectively closing config.log, so it can be properly (re)opened and
8277
# appended to by config.status. When coming back to configure, we
8278
# need to make the FD available again.
8279
if test "$no_create" != yes; then
8281
ac_config_status_args=
8282
test "$silent" = yes &&
8283
ac_config_status_args="$ac_config_status_args --quiet"
8285
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8287
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
8288
# would make configure fail if this is the last instruction.
8289
$ac_cs_success || { (exit 1); exit 1; }