2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.68 for Task Scheduling Library (tascel) 0.0.1.
5
# Report bugs to <hpctools@pnl.gov>.
8
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
13
# This configure script is free software; the Free Software Foundation
14
# gives unlimited permission to copy, distribute and modify it.
15
## -------------------- ##
16
## M4sh Initialization. ##
17
## -------------------- ##
19
# Be more Bourne compatible
20
DUALCASE=1; export DUALCASE # for MKS sh
21
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25
# is contrary to our usage. Disable this feature.
26
alias -g '${1+"$@"}'='"$@"'
29
case `(set -o) 2>/dev/null` in #(
41
# Printing a long string crashes Solaris 7 /usr/bin/printf.
42
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45
# Prefer a ksh shell builtin over an external printf program on Solaris,
46
# but without wasting forks for bash or zsh.
47
if test -z "$BASH_VERSION$ZSH_VERSION" \
48
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50
as_echo_n='print -rn --'
51
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57
as_echo_n='/usr/ucb/echo -n'
59
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64
expr "X$arg" : "X\\(.*\\)$as_nl";
65
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70
as_echo_n='sh -c $as_echo_n_body as_echo'
73
as_echo='sh -c $as_echo_body as_echo'
76
# The user is always right.
77
if test "${PATH_SEPARATOR+set}" != set; then
79
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87
# We need space, tab and new line, in precisely that order. Quoting is
88
# there to prevent editors from complaining about space-tab.
89
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90
# splitting by setting IFS to empty value.)
93
# Find who we are. Look in the path if we contain no directory separator.
96
*[\\/]* ) as_myself=$0 ;;
97
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101
test -z "$as_dir" && as_dir=.
102
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108
# We did not find ourselves, most probably we were run as `sh COMMAND'
109
# in which case we are not to be found in the path.
110
if test "x$as_myself" = x; then
113
if test ! -f "$as_myself"; then
114
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118
# Unset variables that we do not need and which cause bugs (e.g. in
119
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120
# suppresses any "Segmentation fault" message there. '((' could
121
# trigger a bug in pdksh 5.2.14.
122
for as_var in BASH_ENV ENV MAIL MAILPATH
123
do eval test x\${$as_var+set} = xset \
124
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
137
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139
if test "x$CONFIG_SHELL" = x; then
140
as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
143
# Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144
# is contrary to our usage. Disable this feature.
145
alias -g '\${1+\"\$@\"}'='\"\$@\"'
148
case \`(set -o) 2>/dev/null\` in #(
156
as_required="as_fn_return () { (exit \$1); }
157
as_fn_success () { as_fn_return 0; }
158
as_fn_failure () { as_fn_return 1; }
159
as_fn_ret_success () { return 0; }
160
as_fn_ret_failure () { return 1; }
163
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170
exitcode=1; echo positional parameters were not saved.
172
test x\$exitcode = x0 || exit 1"
173
as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174
as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175
eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176
test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177
test \$(( 1 + 1 )) = 2 || exit 1
179
test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
180
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
181
ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182
ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183
PATH=/empty FPATH=/empty; export PATH FPATH
184
test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
185
|| test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
186
if (eval "$as_required") 2>/dev/null; then :
191
if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
194
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
196
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
199
test -z "$as_dir" && as_dir=.
203
for as_base in sh bash ksh sh5; do
204
# Try only shells that exist, to save several forks.
205
as_shell=$as_dir/$as_base
206
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208
CONFIG_SHELL=$as_shell as_have_required=yes
209
if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
217
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219
CONFIG_SHELL=$SHELL as_have_required=yes
224
if test "x$CONFIG_SHELL" != x; then :
225
# We cannot yet assume a decent shell, so we have to provide a
226
# neutralization value for shells without unset; and this also
227
# works around shells that cannot unset nonexistent variables.
228
# Preserve -v and -x to the replacement shell.
231
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
234
*v*x* | *x*v* ) as_opts=-vx ;;
239
exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
242
if test x$as_have_required = xno; then :
243
$as_echo "$0: This script requires a shell more modern than all"
244
$as_echo "$0: the shells that I found on your system."
245
if test x${ZSH_VERSION+set} = xset ; then
246
$as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247
$as_echo "$0: be upgraded to zsh 4.3.4 or later."
249
$as_echo "$0: Please tell bug-autoconf@gnu.org and hpctools@pnl.gov
250
$0: about your system, including any error possibly output
251
$0: before this message. Then install a modern shell, or
252
$0: manually run the script under such a shell if you do
259
SHELL=${CONFIG_SHELL-/bin/sh}
261
# Unset more variables known to interfere with behavior of common tools.
262
CLICOLOR_FORCE= GREP_OPTIONS=
263
unset CLICOLOR_FORCE GREP_OPTIONS
265
## --------------------- ##
266
## M4sh Shell Functions. ##
267
## --------------------- ##
270
# Portably unset VAR.
273
{ eval $1=; unset $1;}
277
# as_fn_set_status STATUS
278
# -----------------------
279
# Set $? to STATUS, without forking.
287
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
297
# Create "$as_dir" as a directory, including parents if necessary.
302
-*) as_dir=./$as_dir;;
304
test -d "$as_dir" || eval $as_mkdir_p || {
308
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
311
as_dirs="'$as_qdir' $as_dirs"
312
as_dir=`$as_dirname -- "$as_dir" ||
313
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314
X"$as_dir" : 'X\(//\)[^/]' \| \
315
X"$as_dir" : 'X\(//\)$' \| \
316
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317
$as_echo X"$as_dir" |
318
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
335
test -d "$as_dir" && break
337
test -z "$as_dirs" || eval "mkdir $as_dirs"
338
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
342
# as_fn_append VAR VALUE
343
# ----------------------
344
# Append the text in VALUE to the end of the definition contained in VAR. Take
345
# advantage of any shell optimizations that allow amortized linear growth over
346
# repeated appends, instead of the typical quadratic growth present in naive
348
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349
eval 'as_fn_append ()
362
# Perform arithmetic evaluation on the ARGs, and store the result in the
363
# global $as_val. Take advantage of shells that can avoid forks. The arguments
364
# must be portable across $(()) and expr.
365
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
373
as_val=`expr "$@" || test $? -eq 1`
378
# as_fn_error STATUS ERROR [LINENO LOG_FD]
379
# ----------------------------------------
380
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382
# script with STATUS, using 1 if that was 0.
385
as_status=$1; test $as_status -eq 0 && as_status=1
387
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
390
$as_echo "$as_me: error: $2" >&2
391
as_fn_exit $as_status
394
if expr a : '\(a\)' >/dev/null 2>&1 &&
395
test "X`expr 00001 : '.*\(...\)'`" = X001; then
401
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
407
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
413
as_me=`$as_basename -- "$0" ||
414
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415
X"$0" : 'X\(//\)$' \| \
416
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
418
sed '/^.*\/\([^/][^/]*\)\/*$/{
432
# Avoid depending upon Character Ranges.
433
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436
as_cr_digits='0123456789'
437
as_cr_alnum=$as_cr_Letters$as_cr_digits
440
as_lineno_1=$LINENO as_lineno_1a=$LINENO
441
as_lineno_2=$LINENO as_lineno_2a=$LINENO
442
eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443
test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444
# Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
456
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
460
chmod +x "$as_me.lineno" ||
461
{ $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
463
# Don't try to exec as it changes $[0], causing all sort of problems
464
# (the dirname of $[0] is not the place where we might find the
465
# original and so on. Autoconf is especially sensitive to this).
467
# Exit status is that of the last command.
471
ECHO_C= ECHO_N= ECHO_T=
472
case `echo -n x` in #(((((
474
case `echo 'xy\c'` in
475
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
477
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null
484
rm -f conf$$ conf$$.exe conf$$.file
485
if test -d conf$$.dir; then
486
rm -f conf$$.dir/conf$$.file
489
mkdir conf$$.dir 2>/dev/null
491
if (echo >conf$$.file) 2>/dev/null; then
492
if ln -s conf$$.file conf$$ 2>/dev/null; then
494
# ... but there are two gotchas:
495
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497
# In both cases, we have to default to `cp -p'.
498
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500
elif ln conf$$.file conf$$ 2>/dev/null; then
508
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509
rmdir conf$$.dir 2>/dev/null
511
if mkdir -p . 2>/dev/null; then
512
as_mkdir_p='mkdir -p "$as_dir"'
514
test -d ./-p && rmdir ./-p
518
if test -x / >/dev/null 2>&1; then
521
if ls -dL / >/dev/null 2>&1; then
528
if test -d "$1"; then
534
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535
???[sx]*):;;*)false;;esac;fi
539
as_executable_p=$as_test_x
541
# Sed expression to map a string onto a valid CPP name.
542
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
544
# Sed expression to map a string onto a valid variable name.
545
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
547
SHELL=${CONFIG_SHELL-/bin/sh}
550
test -n "$DJDIR" || exec 7<&0 </dev/null
554
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
555
# so uname gets run too.
556
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
561
ac_default_prefix=/usr/local
563
ac_config_libobj_dir=.
570
# Identity of this package.
571
PACKAGE_NAME='Task Scheduling Library (tascel)'
572
PACKAGE_TARNAME='tascel'
573
PACKAGE_VERSION='0.0.1'
574
PACKAGE_STRING='Task Scheduling Library (tascel) 0.0.1'
575
PACKAGE_BUGREPORT='hpctools@pnl.gov'
576
PACKAGE_URL='http://www.emsl.pnl.gov/docs/global/'
578
ac_unique_file="src/Comm.h"
579
# Factoring default headers for most tests.
580
ac_includes_default="\
582
#ifdef HAVE_SYS_TYPES_H
583
# include <sys/types.h>
585
#ifdef HAVE_SYS_STAT_H
586
# include <sys/stat.h>
592
# ifdef HAVE_STDLIB_H
597
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
602
#ifdef HAVE_STRINGS_H
603
# include <strings.h>
605
#ifdef HAVE_INTTYPES_H
606
# include <inttypes.h>
615
ac_subst_vars='am__EXEEXT_FALSE
658
F2C_DOUBLE_PRECISION_C_TYPE
661
F2C_HIDDEN_STRING_LENGTH_AFTER_ARGS
706
TASCEL_STANDALONE_FALSE
707
TASCEL_STANDALONE_TRUE
709
MAINTAINER_MODE_FALSE
721
INSTALL_STRIP_PROGRAM
736
CROSS_COMPILING_FALSE
821
program_transform_name
834
enable_option_checking
836
enable_maintainer_mode
840
enable_dependency_tracking
859
ac_precious_vars='build_alias
877
F2C_HIDDEN_STRING_LENGTH_AFTER_ARGS
884
# Initialize some variables set by options.
886
ac_init_version=false
887
ac_unrecognized_opts=
889
# The variables have the same names as the options, with
890
# dashes changed to underlines.
898
program_transform_name=s,x,x,
906
# Installation directory options.
907
# These are left unexpanded so users can "make install exec_prefix=/foo"
908
# and all the variables that are supposed to be based on exec_prefix
909
# by default will actually change.
910
# Use braces instead of parens because sh, perl, etc. also accept them.
911
# (The list follows the same order as the GNU Coding Standards.)
912
bindir='${exec_prefix}/bin'
913
sbindir='${exec_prefix}/sbin'
914
libexecdir='${exec_prefix}/libexec'
915
datarootdir='${prefix}/share'
916
datadir='${datarootdir}'
917
sysconfdir='${prefix}/etc'
918
sharedstatedir='${prefix}/com'
919
localstatedir='${prefix}/var'
920
includedir='${prefix}/include'
921
oldincludedir='/usr/include'
922
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
923
infodir='${datarootdir}/info'
928
libdir='${exec_prefix}/lib'
929
localedir='${datarootdir}/locale'
930
mandir='${datarootdir}/man'
936
# If the previous option needs an argument, assign it.
937
if test -n "$ac_prev"; then
938
eval $ac_prev=\$ac_option
944
*=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
949
# Accept the important Cygnus configure options, so we can diagnose typos.
951
case $ac_dashdash$ac_option in
955
-bindir | --bindir | --bindi | --bind | --bin | --bi)
957
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
960
-build | --build | --buil | --bui | --bu)
961
ac_prev=build_alias ;;
962
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
963
build_alias=$ac_optarg ;;
965
-cache-file | --cache-file | --cache-fil | --cache-fi \
966
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
967
ac_prev=cache_file ;;
968
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
969
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
970
cache_file=$ac_optarg ;;
973
cache_file=config.cache ;;
975
-datadir | --datadir | --datadi | --datad)
977
-datadir=* | --datadir=* | --datadi=* | --datad=*)
978
datadir=$ac_optarg ;;
980
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
981
| --dataroo | --dataro | --datar)
982
ac_prev=datarootdir ;;
983
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
984
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
985
datarootdir=$ac_optarg ;;
987
-disable-* | --disable-*)
988
ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
989
# Reject names that are not valid shell variable names.
990
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
991
as_fn_error $? "invalid feature name: $ac_useropt"
992
ac_useropt_orig=$ac_useropt
993
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
994
case $ac_user_opts in
998
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
999
ac_unrecognized_sep=', ';;
1001
eval enable_$ac_useropt=no ;;
1003
-docdir | --docdir | --docdi | --doc | --do)
1005
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1006
docdir=$ac_optarg ;;
1008
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1010
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1011
dvidir=$ac_optarg ;;
1013
-enable-* | --enable-*)
1014
ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1015
# Reject names that are not valid shell variable names.
1016
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1017
as_fn_error $? "invalid feature name: $ac_useropt"
1018
ac_useropt_orig=$ac_useropt
1019
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1020
case $ac_user_opts in
1022
"enable_$ac_useropt"
1024
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1025
ac_unrecognized_sep=', ';;
1027
eval enable_$ac_useropt=\$ac_optarg ;;
1029
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1030
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1031
| --exec | --exe | --ex)
1032
ac_prev=exec_prefix ;;
1033
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1034
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1035
| --exec=* | --exe=* | --ex=*)
1036
exec_prefix=$ac_optarg ;;
1038
-gas | --gas | --ga | --g)
1039
# Obsolete; use --with-gas.
1042
-help | --help | --hel | --he | -h)
1043
ac_init_help=long ;;
1044
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1045
ac_init_help=recursive ;;
1046
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1047
ac_init_help=short ;;
1049
-host | --host | --hos | --ho)
1050
ac_prev=host_alias ;;
1051
-host=* | --host=* | --hos=* | --ho=*)
1052
host_alias=$ac_optarg ;;
1054
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1056
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1058
htmldir=$ac_optarg ;;
1060
-includedir | --includedir | --includedi | --included | --include \
1061
| --includ | --inclu | --incl | --inc)
1062
ac_prev=includedir ;;
1063
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1064
| --includ=* | --inclu=* | --incl=* | --inc=*)
1065
includedir=$ac_optarg ;;
1067
-infodir | --infodir | --infodi | --infod | --info | --inf)
1069
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1070
infodir=$ac_optarg ;;
1072
-libdir | --libdir | --libdi | --libd)
1074
-libdir=* | --libdir=* | --libdi=* | --libd=*)
1075
libdir=$ac_optarg ;;
1077
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1078
| --libexe | --libex | --libe)
1079
ac_prev=libexecdir ;;
1080
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1081
| --libexe=* | --libex=* | --libe=*)
1082
libexecdir=$ac_optarg ;;
1084
-localedir | --localedir | --localedi | --localed | --locale)
1085
ac_prev=localedir ;;
1086
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1087
localedir=$ac_optarg ;;
1089
-localstatedir | --localstatedir | --localstatedi | --localstated \
1090
| --localstate | --localstat | --localsta | --localst | --locals)
1091
ac_prev=localstatedir ;;
1092
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1093
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1094
localstatedir=$ac_optarg ;;
1096
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1098
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1099
mandir=$ac_optarg ;;
1101
-nfp | --nfp | --nf)
1102
# Obsolete; use --without-fp.
1105
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
1106
| --no-cr | --no-c | -n)
1109
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
1110
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1113
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1114
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1115
| --oldin | --oldi | --old | --ol | --o)
1116
ac_prev=oldincludedir ;;
1117
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1118
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1119
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1120
oldincludedir=$ac_optarg ;;
1122
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1124
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1125
prefix=$ac_optarg ;;
1127
-program-prefix | --program-prefix | --program-prefi | --program-pref \
1128
| --program-pre | --program-pr | --program-p)
1129
ac_prev=program_prefix ;;
1130
-program-prefix=* | --program-prefix=* | --program-prefi=* \
1131
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1132
program_prefix=$ac_optarg ;;
1134
-program-suffix | --program-suffix | --program-suffi | --program-suff \
1135
| --program-suf | --program-su | --program-s)
1136
ac_prev=program_suffix ;;
1137
-program-suffix=* | --program-suffix=* | --program-suffi=* \
1138
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1139
program_suffix=$ac_optarg ;;
1141
-program-transform-name | --program-transform-name \
1142
| --program-transform-nam | --program-transform-na \
1143
| --program-transform-n | --program-transform- \
1144
| --program-transform | --program-transfor \
1145
| --program-transfo | --program-transf \
1146
| --program-trans | --program-tran \
1147
| --progr-tra | --program-tr | --program-t)
1148
ac_prev=program_transform_name ;;
1149
-program-transform-name=* | --program-transform-name=* \
1150
| --program-transform-nam=* | --program-transform-na=* \
1151
| --program-transform-n=* | --program-transform-=* \
1152
| --program-transform=* | --program-transfor=* \
1153
| --program-transfo=* | --program-transf=* \
1154
| --program-trans=* | --program-tran=* \
1155
| --progr-tra=* | --program-tr=* | --program-t=*)
1156
program_transform_name=$ac_optarg ;;
1158
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1160
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1161
pdfdir=$ac_optarg ;;
1163
-psdir | --psdir | --psdi | --psd | --ps)
1165
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1168
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1169
| -silent | --silent | --silen | --sile | --sil)
1172
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1174
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1176
sbindir=$ac_optarg ;;
1178
-sharedstatedir | --sharedstatedir | --sharedstatedi \
1179
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1180
| --sharedst | --shareds | --shared | --share | --shar \
1182
ac_prev=sharedstatedir ;;
1183
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1184
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1185
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1187
sharedstatedir=$ac_optarg ;;
1189
-site | --site | --sit)
1191
-site=* | --site=* | --sit=*)
1194
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1196
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1197
srcdir=$ac_optarg ;;
1199
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1200
| --syscon | --sysco | --sysc | --sys | --sy)
1201
ac_prev=sysconfdir ;;
1202
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1203
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1204
sysconfdir=$ac_optarg ;;
1206
-target | --target | --targe | --targ | --tar | --ta | --t)
1207
ac_prev=target_alias ;;
1208
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1209
target_alias=$ac_optarg ;;
1211
-v | -verbose | --verbose | --verbos | --verbo | --verb)
1214
-version | --version | --versio | --versi | --vers | -V)
1215
ac_init_version=: ;;
1218
ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1219
# Reject names that are not valid shell variable names.
1220
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1221
as_fn_error $? "invalid package name: $ac_useropt"
1222
ac_useropt_orig=$ac_useropt
1223
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1224
case $ac_user_opts in
1228
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1229
ac_unrecognized_sep=', ';;
1231
eval with_$ac_useropt=\$ac_optarg ;;
1233
-without-* | --without-*)
1234
ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1235
# Reject names that are not valid shell variable names.
1236
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1237
as_fn_error $? "invalid package name: $ac_useropt"
1238
ac_useropt_orig=$ac_useropt
1239
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1240
case $ac_user_opts in
1244
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1245
ac_unrecognized_sep=', ';;
1247
eval with_$ac_useropt=no ;;
1250
# Obsolete; use --with-x.
1253
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1254
| --x-incl | --x-inc | --x-in | --x-i)
1255
ac_prev=x_includes ;;
1256
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1257
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1258
x_includes=$ac_optarg ;;
1260
-x-libraries | --x-libraries | --x-librarie | --x-librari \
1261
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1262
ac_prev=x_libraries ;;
1263
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1264
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1265
x_libraries=$ac_optarg ;;
1267
-*) as_fn_error $? "unrecognized option: \`$ac_option'
1268
Try \`$0 --help' for more information"
1272
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1273
# Reject names that are not valid shell variable names.
1274
case $ac_envvar in #(
1275
'' | [0-9]* | *[!_$as_cr_alnum]* )
1276
as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1278
eval $ac_envvar=\$ac_optarg
1279
export $ac_envvar ;;
1282
# FIXME: should be removed in autoconf 3.0.
1283
$as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1284
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1285
$as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1286
: "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1292
if test -n "$ac_prev"; then
1293
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1294
as_fn_error $? "missing argument to $ac_option"
1297
if test -n "$ac_unrecognized_opts"; then
1298
case $enable_option_checking in
1300
fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1301
*) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1305
# Check all directory arguments for consistency.
1306
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1307
datadir sysconfdir sharedstatedir localstatedir includedir \
1308
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1309
libdir localedir mandir
1311
eval ac_val=\$$ac_var
1312
# Remove trailing slashes.
1315
ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1316
eval $ac_var=\$ac_val;;
1318
# Be sure to have absolute directory names.
1320
[\\/$]* | ?:[\\/]* ) continue;;
1321
NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1323
as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1326
# There might be people who depend on the old broken behavior: `$host'
1327
# used to hold the argument of --host etc.
1328
# FIXME: To remove some day.
1331
target=$target_alias
1333
# FIXME: To remove some day.
1334
if test "x$host_alias" != x; then
1335
if test "x$build_alias" = x; then
1336
cross_compiling=maybe
1337
$as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1338
If a cross compiler is detected then cross compile mode will be used" >&2
1339
elif test "x$build_alias" != "x$host_alias"; then
1345
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1347
test "$silent" = yes && exec 6>/dev/null
1350
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1351
ac_ls_di=`ls -di .` &&
1352
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1353
as_fn_error $? "working directory cannot be determined"
1354
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1355
as_fn_error $? "pwd does not report name of working directory"
1358
# Find the source files, if location was not specified.
1359
if test -z "$srcdir"; then
1360
ac_srcdir_defaulted=yes
1361
# Try the directory containing this script, then the parent directory.
1362
ac_confdir=`$as_dirname -- "$as_myself" ||
1363
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1364
X"$as_myself" : 'X\(//\)[^/]' \| \
1365
X"$as_myself" : 'X\(//\)$' \| \
1366
X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1367
$as_echo X"$as_myself" |
1368
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1386
if test ! -r "$srcdir/$ac_unique_file"; then
1390
ac_srcdir_defaulted=no
1392
if test ! -r "$srcdir/$ac_unique_file"; then
1393
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1394
as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1396
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1398
cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1400
# When building in place, set srcdir=.
1401
if test "$ac_abs_confdir" = "$ac_pwd"; then
1404
# Remove unnecessary trailing slashes from srcdir.
1405
# Double slashes in file names in object file debugging info
1406
# mess up M-x gdb in Emacs.
1408
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1410
for ac_var in $ac_precious_vars; do
1411
eval ac_env_${ac_var}_set=\${${ac_var}+set}
1412
eval ac_env_${ac_var}_value=\$${ac_var}
1413
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1414
eval ac_cv_env_${ac_var}_value=\$${ac_var}
1418
# Report the --help message.
1420
if test "$ac_init_help" = "long"; then
1421
# Omit some internal or obsolete options to make the list less imposing.
1422
# This message is too long to be a string in the A/UX 3.1 sh.
1424
\`configure' configures Task Scheduling Library (tascel) 0.0.1 to adapt to many kinds of systems.
1426
Usage: $0 [OPTION]... [VAR=VALUE]...
1428
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1429
VAR=VALUE. See below for descriptions of some of the useful variables.
1431
Defaults for the options are specified in brackets.
1434
-h, --help display this help and exit
1435
--help=short display options specific to this package
1436
--help=recursive display the short help of all the included packages
1437
-V, --version display version information and exit
1438
-q, --quiet, --silent do not print \`checking ...' messages
1439
--cache-file=FILE cache test results in FILE [disabled]
1440
-C, --config-cache alias for \`--cache-file=config.cache'
1441
-n, --no-create do not create output files
1442
--srcdir=DIR find the sources in DIR [configure dir or \`..']
1444
Installation directories:
1445
--prefix=PREFIX install architecture-independent files in PREFIX
1446
[$ac_default_prefix]
1447
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1450
By default, \`make install' will install all the files in
1451
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1452
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1453
for instance \`--prefix=\$HOME'.
1455
For better control, use the options below.
1457
Fine tuning of the installation directories:
1458
--bindir=DIR user executables [EPREFIX/bin]
1459
--sbindir=DIR system admin executables [EPREFIX/sbin]
1460
--libexecdir=DIR program executables [EPREFIX/libexec]
1461
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1462
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1463
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1464
--libdir=DIR object code libraries [EPREFIX/lib]
1465
--includedir=DIR C header files [PREFIX/include]
1466
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1467
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1468
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1469
--infodir=DIR info documentation [DATAROOTDIR/info]
1470
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1471
--mandir=DIR man documentation [DATAROOTDIR/man]
1472
--docdir=DIR documentation root [DATAROOTDIR/doc/tascel]
1473
--htmldir=DIR html documentation [DOCDIR]
1474
--dvidir=DIR dvi documentation [DOCDIR]
1475
--pdfdir=DIR pdf documentation [DOCDIR]
1476
--psdir=DIR ps documentation [DOCDIR]
1482
--program-prefix=PREFIX prepend PREFIX to installed program names
1483
--program-suffix=SUFFIX append SUFFIX to installed program names
1484
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
1487
--build=BUILD configure for building on BUILD [guessed]
1488
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1492
if test -n "$ac_init_help"; then
1493
case $ac_init_help in
1494
short | recursive ) echo "Configuration of Task Scheduling Library (tascel) 0.0.1:";;
1499
--disable-option-checking ignore unrecognized --enable/--with options
1500
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1501
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1502
--enable-silent-rules less verbose build output (undo: `make V=1')
1503
--disable-silent-rules verbose build output (undo: `make V=0')
1504
--enable-maintainer-mode enable make rules and dependencies not useful
1505
(and sometimes confusing) to the casual installer
1506
--disable-mpi-tests disable MPI linker tests
1507
--disable-dependency-tracking speeds up one-time build
1508
--enable-dependency-tracking do not reject slow dependency extractors
1509
--enable-underscoring force single underscore for all external Fortran
1510
symbols [default: use compiler defaults for external
1512
--enable-i4 enable 4-byte integers [default: sizeof(void*)]
1513
--enable-i8 enable 8-byte integers [default: sizeof(void*)]
1514
--enable-shared[=PKGS] build shared libraries [default=no]
1515
--enable-static[=PKGS] build static libraries [default=yes]
1516
--enable-fast-install[=PKGS]
1517
optimize for fast installation [default=yes]
1518
--disable-libtool-lock avoid locking (might break parallel builds)
1521
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1522
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1523
--with-PACKAGE[=ARG] for most of the external software packages, ARG can
1524
be one or more whitespace-separated directories,
1525
linker or preprocessor directives; for example,
1526
--with-PACKAGE="/path/to/PACKAGE -lmylib -I/mydir"
1527
--with-mpi[=ARG] select MPI as the messaging library (default); leave
1528
ARG blank to use MPI compiler wrappers
1529
--with-ga[=ARG] specify location of ga install and/or other flags
1530
--with-blas[=ARG] use external BLAS library; attempt to detect
1532
--with-blas4[=ARG] use external BLAS library compiled with
1534
--with-blas8[=ARG] use external BLAS library compiled with
1536
--with-lapack=[ARG] use external LAPACK library
1537
--with-scalapack=[ARG] use ScaLAPACK library compiled with
1539
--with-scalapack8=[ARG] use ScaLAPACK library compiled with
1541
--with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1543
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
1544
--with-sysroot=DIR Search for dependent libraries within DIR
1545
(or the compiler's sysroot if not specified).
1547
Some influential environment variables:
1548
MPICC MPI C compiler
1549
CC C compiler command
1550
CFLAGS C compiler flags
1551
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1552
nonstandard directory <lib dir>
1553
LIBS libraries to pass to the linker, e.g. -l<library>
1554
CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1555
you have headers in a nonstandard directory <include dir>
1556
MPICXX MPI C++ compiler
1557
CXX C++ compiler command
1558
CXXFLAGS C++ compiler flags
1559
CXXCPP C++ preprocessor
1560
MPIF77 MPI Fortran 77 compiler
1561
F77 Fortran 77 compiler command
1562
FFLAGS Fortran 77 compiler flags
1563
FFLAG_INT Fortran 77 compiler flag to set desired integer size
1564
F2C_HIDDEN_STRING_LENGTH_AFTER_ARGS
1565
if cross compiling, set to either "yes" (default) or "no" (after
1568
AR archiver used by libtool (default: ar)
1569
AR_FLAGS archiver flags used by libtool (default: cru)
1570
RANLIB generates index to archive (default: ranlib)
1572
Use these variables to override the choices made by `configure' or to help
1573
it to find libraries and programs with nonstandard names/locations.
1575
Report bugs to <hpctools@pnl.gov>.
1576
Task Scheduling Library (tascel) home page: <http://www.emsl.pnl.gov/docs/global/>.
1581
if test "$ac_init_help" = "recursive"; then
1582
# If there are subdirs, report their specific --help.
1583
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1584
test -d "$ac_dir" ||
1585
{ cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1590
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1592
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1593
# A ".." for each directory in $ac_dir_suffix.
1594
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1595
case $ac_top_builddir_sub in
1596
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1597
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1600
ac_abs_top_builddir=$ac_pwd
1601
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1602
# for backward compatibility:
1603
ac_top_builddir=$ac_top_build_prefix
1606
.) # We are building in place.
1608
ac_top_srcdir=$ac_top_builddir_sub
1609
ac_abs_top_srcdir=$ac_pwd ;;
1610
[\\/]* | ?:[\\/]* ) # Absolute name.
1611
ac_srcdir=$srcdir$ac_dir_suffix;
1612
ac_top_srcdir=$srcdir
1613
ac_abs_top_srcdir=$srcdir ;;
1615
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1616
ac_top_srcdir=$ac_top_build_prefix$srcdir
1617
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1619
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1621
cd "$ac_dir" || { ac_status=$?; continue; }
1622
# Check for guested configure.
1623
if test -f "$ac_srcdir/configure.gnu"; then
1625
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
1626
elif test -f "$ac_srcdir/configure"; then
1628
$SHELL "$ac_srcdir/configure" --help=recursive
1630
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1632
cd "$ac_pwd" || { ac_status=$?; break; }
1636
test -n "$ac_init_help" && exit $ac_status
1637
if $ac_init_version; then
1639
Task Scheduling Library (tascel) configure 0.0.1
1640
generated by GNU Autoconf 2.68
1642
Copyright (C) 2010 Free Software Foundation, Inc.
1643
This configure script is free software; the Free Software Foundation
1644
gives unlimited permission to copy, distribute and modify it.
1649
## ------------------------ ##
1650
## Autoconf initialization. ##
1651
## ------------------------ ##
1653
# ac_fn_c_try_compile LINENO
1654
# --------------------------
1655
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1656
ac_fn_c_try_compile ()
1658
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1659
rm -f conftest.$ac_objext
1660
if { { ac_try="$ac_compile"
1662
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1663
*) ac_try_echo=$ac_try;;
1665
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1666
$as_echo "$ac_try_echo"; } >&5
1667
(eval "$ac_compile") 2>conftest.err
1669
if test -s conftest.err; then
1670
grep -v '^ *+' conftest.err >conftest.er1
1671
cat conftest.er1 >&5
1672
mv -f conftest.er1 conftest.err
1674
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1675
test $ac_status = 0; } && {
1676
test -z "$ac_c_werror_flag" ||
1677
test ! -s conftest.err
1678
} && test -s conftest.$ac_objext; then :
1681
$as_echo "$as_me: failed program was:" >&5
1682
sed 's/^/| /' conftest.$ac_ext >&5
1686
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1687
as_fn_set_status $ac_retval
1689
} # ac_fn_c_try_compile
1691
# ac_fn_c_try_link LINENO
1692
# -----------------------
1693
# Try to link conftest.$ac_ext, and return whether this succeeded.
1696
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1697
rm -f conftest.$ac_objext conftest$ac_exeext
1698
if { { ac_try="$ac_link"
1700
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1701
*) ac_try_echo=$ac_try;;
1703
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1704
$as_echo "$ac_try_echo"; } >&5
1705
(eval "$ac_link") 2>conftest.err
1707
if test -s conftest.err; then
1708
grep -v '^ *+' conftest.err >conftest.er1
1709
cat conftest.er1 >&5
1710
mv -f conftest.er1 conftest.err
1712
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1713
test $ac_status = 0; } && {
1714
test -z "$ac_c_werror_flag" ||
1715
test ! -s conftest.err
1716
} && test -s conftest$ac_exeext && {
1717
test "$cross_compiling" = yes ||
1718
$as_test_x conftest$ac_exeext
1722
$as_echo "$as_me: failed program was:" >&5
1723
sed 's/^/| /' conftest.$ac_ext >&5
1727
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1728
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1729
# interfere with the next link command; also delete a directory that is
1730
# left behind by Apple's compiler. We do this before executing the actions.
1731
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1732
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1733
as_fn_set_status $ac_retval
1735
} # ac_fn_c_try_link
1737
# ac_fn_c_try_run LINENO
1738
# ----------------------
1739
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1740
# that executables *can* be run.
1743
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1744
if { { ac_try="$ac_link"
1746
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1747
*) ac_try_echo=$ac_try;;
1749
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1750
$as_echo "$ac_try_echo"; } >&5
1751
(eval "$ac_link") 2>&5
1753
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1754
test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1755
{ { case "(($ac_try" in
1756
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1757
*) ac_try_echo=$ac_try;;
1759
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1760
$as_echo "$ac_try_echo"; } >&5
1761
(eval "$ac_try") 2>&5
1763
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1764
test $ac_status = 0; }; }; then :
1767
$as_echo "$as_me: program exited with status $ac_status" >&5
1768
$as_echo "$as_me: failed program was:" >&5
1769
sed 's/^/| /' conftest.$ac_ext >&5
1771
ac_retval=$ac_status
1773
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1774
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1775
as_fn_set_status $ac_retval
1779
# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1780
# --------------------------------------------
1781
# Tries to find the compile-time value of EXPR in a program that includes
1782
# INCLUDES, setting VAR accordingly. Returns whether the value could be
1784
ac_fn_c_compute_int ()
1786
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1787
if test "$cross_compiling" = yes; then
1788
# Depending upon the size, compute the lo and hi bounds.
1789
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1790
/* end confdefs.h. */
1795
static int test_array [1 - 2 * !(($2) >= 0)];
1802
if ac_fn_c_try_compile "$LINENO"; then :
1805
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1806
/* end confdefs.h. */
1811
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1818
if ac_fn_c_try_compile "$LINENO"; then :
1819
ac_hi=$ac_mid; break
1821
as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1822
if test $ac_lo -le $ac_mid; then
1826
as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1828
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1831
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1832
/* end confdefs.h. */
1837
static int test_array [1 - 2 * !(($2) < 0)];
1844
if ac_fn_c_try_compile "$LINENO"; then :
1847
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1848
/* end confdefs.h. */
1853
static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1860
if ac_fn_c_try_compile "$LINENO"; then :
1861
ac_lo=$ac_mid; break
1863
as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1864
if test $ac_mid -le $ac_hi; then
1868
as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1870
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1875
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1877
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1878
# Binary search between lo and hi bounds.
1879
while test "x$ac_lo" != "x$ac_hi"; do
1880
as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1881
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1882
/* end confdefs.h. */
1887
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1894
if ac_fn_c_try_compile "$LINENO"; then :
1897
as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1899
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1902
?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1906
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1907
/* end confdefs.h. */
1909
static long int longval () { return $2; }
1910
static unsigned long int ulongval () { return $2; }
1917
FILE *f = fopen ("conftest.val", "w");
1922
long int i = longval ();
1925
fprintf (f, "%ld", i);
1929
unsigned long int i = ulongval ();
1932
fprintf (f, "%lu", i);
1934
/* Do not output a trailing newline, as this causes \r\n confusion
1935
on some platforms. */
1936
return ferror (f) || fclose (f) != 0;
1942
if ac_fn_c_try_run "$LINENO"; then :
1943
echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1947
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1948
conftest.$ac_objext conftest.beam conftest.$ac_ext
1952
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1953
as_fn_set_status $ac_retval
1955
} # ac_fn_c_compute_int
1957
# ac_fn_cxx_try_compile LINENO
1958
# ----------------------------
1959
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1960
ac_fn_cxx_try_compile ()
1962
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1963
rm -f conftest.$ac_objext
1964
if { { ac_try="$ac_compile"
1966
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1967
*) ac_try_echo=$ac_try;;
1969
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1970
$as_echo "$ac_try_echo"; } >&5
1971
(eval "$ac_compile") 2>conftest.err
1973
if test -s conftest.err; then
1974
grep -v '^ *+' conftest.err >conftest.er1
1975
cat conftest.er1 >&5
1976
mv -f conftest.er1 conftest.err
1978
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1979
test $ac_status = 0; } && {
1980
test -z "$ac_cxx_werror_flag" ||
1981
test ! -s conftest.err
1982
} && test -s conftest.$ac_objext; then :
1985
$as_echo "$as_me: failed program was:" >&5
1986
sed 's/^/| /' conftest.$ac_ext >&5
1990
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1991
as_fn_set_status $ac_retval
1993
} # ac_fn_cxx_try_compile
1995
# ac_fn_cxx_try_link LINENO
1996
# -------------------------
1997
# Try to link conftest.$ac_ext, and return whether this succeeded.
1998
ac_fn_cxx_try_link ()
2000
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2001
rm -f conftest.$ac_objext conftest$ac_exeext
2002
if { { ac_try="$ac_link"
2004
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2005
*) ac_try_echo=$ac_try;;
2007
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2008
$as_echo "$ac_try_echo"; } >&5
2009
(eval "$ac_link") 2>conftest.err
2011
if test -s conftest.err; then
2012
grep -v '^ *+' conftest.err >conftest.er1
2013
cat conftest.er1 >&5
2014
mv -f conftest.er1 conftest.err
2016
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2017
test $ac_status = 0; } && {
2018
test -z "$ac_cxx_werror_flag" ||
2019
test ! -s conftest.err
2020
} && test -s conftest$ac_exeext && {
2021
test "$cross_compiling" = yes ||
2022
$as_test_x conftest$ac_exeext
2026
$as_echo "$as_me: failed program was:" >&5
2027
sed 's/^/| /' conftest.$ac_ext >&5
2031
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2032
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2033
# interfere with the next link command; also delete a directory that is
2034
# left behind by Apple's compiler. We do this before executing the actions.
2035
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2036
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2037
as_fn_set_status $ac_retval
2039
} # ac_fn_cxx_try_link
2041
# ac_fn_cxx_try_cpp LINENO
2042
# ------------------------
2043
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2044
ac_fn_cxx_try_cpp ()
2046
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2047
if { { ac_try="$ac_cpp conftest.$ac_ext"
2049
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2050
*) ac_try_echo=$ac_try;;
2052
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2053
$as_echo "$ac_try_echo"; } >&5
2054
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2056
if test -s conftest.err; then
2057
grep -v '^ *+' conftest.err >conftest.er1
2058
cat conftest.er1 >&5
2059
mv -f conftest.er1 conftest.err
2061
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2062
test $ac_status = 0; } > conftest.i && {
2063
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2064
test ! -s conftest.err
2068
$as_echo "$as_me: failed program was:" >&5
2069
sed 's/^/| /' conftest.$ac_ext >&5
2073
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2074
as_fn_set_status $ac_retval
2076
} # ac_fn_cxx_try_cpp
2078
# ac_fn_cxx_try_run LINENO
2079
# ------------------------
2080
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2081
# that executables *can* be run.
2082
ac_fn_cxx_try_run ()
2084
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2085
if { { ac_try="$ac_link"
2087
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2088
*) ac_try_echo=$ac_try;;
2090
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2091
$as_echo "$ac_try_echo"; } >&5
2092
(eval "$ac_link") 2>&5
2094
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2095
test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2096
{ { case "(($ac_try" in
2097
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2098
*) ac_try_echo=$ac_try;;
2100
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2101
$as_echo "$ac_try_echo"; } >&5
2102
(eval "$ac_try") 2>&5
2104
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2105
test $ac_status = 0; }; }; then :
2108
$as_echo "$as_me: program exited with status $ac_status" >&5
2109
$as_echo "$as_me: failed program was:" >&5
2110
sed 's/^/| /' conftest.$ac_ext >&5
2112
ac_retval=$ac_status
2114
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2115
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2116
as_fn_set_status $ac_retval
2118
} # ac_fn_cxx_try_run
2120
# ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2121
# ---------------------------------------------------------
2122
# Tests whether HEADER exists and can be compiled using the include files in
2123
# INCLUDES, setting the cache variable VAR accordingly.
2124
ac_fn_cxx_check_header_compile ()
2126
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2127
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2128
$as_echo_n "checking for $2... " >&6; }
2129
if eval \${$3+:} false; then :
2130
$as_echo_n "(cached) " >&6
2132
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2133
/* end confdefs.h. */
2137
if ac_fn_cxx_try_compile "$LINENO"; then :
2142
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2145
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2146
$as_echo "$ac_res" >&6; }
2147
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2149
} # ac_fn_cxx_check_header_compile
2151
# ac_fn_c_find_intX_t LINENO BITS VAR
2152
# -----------------------------------
2153
# Finds a signed integer type with width BITS, setting cache variable VAR
2155
ac_fn_c_find_intX_t ()
2157
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2158
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2159
$as_echo_n "checking for int$2_t... " >&6; }
2160
if eval \${$3+:} false; then :
2161
$as_echo_n "(cached) " >&6
2164
# Order is important - never check a type that is potentially smaller
2165
# than half of the expected target width.
2166
for ac_type in int$2_t 'int' 'long int' \
2167
'long long int' 'short int' 'signed char'; do
2168
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2169
/* end confdefs.h. */
2170
$ac_includes_default
2171
enum { N = $2 / 2 - 1 };
2175
static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2182
if ac_fn_cxx_try_compile "$LINENO"; then :
2183
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2184
/* end confdefs.h. */
2185
$ac_includes_default
2186
enum { N = $2 / 2 - 1 };
2190
static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2191
< ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2198
if ac_fn_cxx_try_compile "$LINENO"; then :
2205
eval "$3=\$ac_type" ;;
2208
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2210
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2211
if eval test \"x\$"$3"\" = x"no"; then :
2219
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2220
$as_echo "$ac_res" >&6; }
2221
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2223
} # ac_fn_c_find_intX_t
2225
# ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2226
# ---------------------------------------------
2227
# Tests whether TYPE exists after having included INCLUDES, setting cache
2228
# variable VAR accordingly.
2229
ac_fn_cxx_check_type ()
2231
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2232
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2233
$as_echo_n "checking for $2... " >&6; }
2234
if eval \${$3+:} false; then :
2235
$as_echo_n "(cached) " >&6
2238
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2239
/* end confdefs.h. */
2250
if ac_fn_cxx_try_compile "$LINENO"; then :
2251
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2252
/* end confdefs.h. */
2263
if ac_fn_cxx_try_compile "$LINENO"; then :
2268
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2270
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2273
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2274
$as_echo "$ac_res" >&6; }
2275
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2277
} # ac_fn_cxx_check_type
2279
# ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2280
# ----------------------------------------------
2281
# Tries to find the compile-time value of EXPR in a program that includes
2282
# INCLUDES, setting VAR accordingly. Returns whether the value could be
2284
ac_fn_cxx_compute_int ()
2286
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2287
if test "$cross_compiling" = yes; then
2288
# Depending upon the size, compute the lo and hi bounds.
2289
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2290
/* end confdefs.h. */
2295
static int test_array [1 - 2 * !(($2) >= 0)];
2302
if ac_fn_cxx_try_compile "$LINENO"; then :
2305
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2306
/* end confdefs.h. */
2311
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2318
if ac_fn_cxx_try_compile "$LINENO"; then :
2319
ac_hi=$ac_mid; break
2321
as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2322
if test $ac_lo -le $ac_mid; then
2326
as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2328
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2331
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2332
/* end confdefs.h. */
2337
static int test_array [1 - 2 * !(($2) < 0)];
2344
if ac_fn_cxx_try_compile "$LINENO"; then :
2347
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2348
/* end confdefs.h. */
2353
static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2360
if ac_fn_cxx_try_compile "$LINENO"; then :
2361
ac_lo=$ac_mid; break
2363
as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2364
if test $ac_mid -le $ac_hi; then
2368
as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2370
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2375
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2377
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2378
# Binary search between lo and hi bounds.
2379
while test "x$ac_lo" != "x$ac_hi"; do
2380
as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2381
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2382
/* end confdefs.h. */
2387
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2394
if ac_fn_cxx_try_compile "$LINENO"; then :
2397
as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2399
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2402
?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2406
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2407
/* end confdefs.h. */
2409
static long int longval () { return $2; }
2410
static unsigned long int ulongval () { return $2; }
2417
FILE *f = fopen ("conftest.val", "w");
2422
long int i = longval ();
2425
fprintf (f, "%ld", i);
2429
unsigned long int i = ulongval ();
2432
fprintf (f, "%lu", i);
2434
/* Do not output a trailing newline, as this causes \r\n confusion
2435
on some platforms. */
2436
return ferror (f) || fclose (f) != 0;
2442
if ac_fn_cxx_try_run "$LINENO"; then :
2443
echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2447
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2448
conftest.$ac_objext conftest.beam conftest.$ac_ext
2452
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2453
as_fn_set_status $ac_retval
2455
} # ac_fn_cxx_compute_int
2457
# ac_fn_f77_try_compile LINENO
2458
# ----------------------------
2459
# Try to compile conftest.$ac_ext, and return whether this succeeded.
2460
ac_fn_f77_try_compile ()
2462
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2463
rm -f conftest.$ac_objext
2464
if { { ac_try="$ac_compile"
2466
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2467
*) ac_try_echo=$ac_try;;
2469
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2470
$as_echo "$ac_try_echo"; } >&5
2471
(eval "$ac_compile") 2>conftest.err
2473
if test -s conftest.err; then
2474
grep -v '^ *+' conftest.err >conftest.er1
2475
cat conftest.er1 >&5
2476
mv -f conftest.er1 conftest.err
2478
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2479
test $ac_status = 0; } && {
2480
test -z "$ac_f77_werror_flag" ||
2481
test ! -s conftest.err
2482
} && test -s conftest.$ac_objext; then :
2485
$as_echo "$as_me: failed program was:" >&5
2486
sed 's/^/| /' conftest.$ac_ext >&5
2490
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2491
as_fn_set_status $ac_retval
2493
} # ac_fn_f77_try_compile
2495
# ac_fn_f77_try_link LINENO
2496
# -------------------------
2497
# Try to link conftest.$ac_ext, and return whether this succeeded.
2498
ac_fn_f77_try_link ()
2500
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2501
rm -f conftest.$ac_objext conftest$ac_exeext
2502
if { { ac_try="$ac_link"
2504
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2505
*) ac_try_echo=$ac_try;;
2507
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2508
$as_echo "$ac_try_echo"; } >&5
2509
(eval "$ac_link") 2>conftest.err
2511
if test -s conftest.err; then
2512
grep -v '^ *+' conftest.err >conftest.er1
2513
cat conftest.er1 >&5
2514
mv -f conftest.er1 conftest.err
2516
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2517
test $ac_status = 0; } && {
2518
test -z "$ac_f77_werror_flag" ||
2519
test ! -s conftest.err
2520
} && test -s conftest$ac_exeext && {
2521
test "$cross_compiling" = yes ||
2522
$as_test_x conftest$ac_exeext
2526
$as_echo "$as_me: failed program was:" >&5
2527
sed 's/^/| /' conftest.$ac_ext >&5
2531
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2532
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2533
# interfere with the next link command; also delete a directory that is
2534
# left behind by Apple's compiler. We do this before executing the actions.
2535
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2536
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2537
as_fn_set_status $ac_retval
2539
} # ac_fn_f77_try_link
2541
# ac_fn_f77_try_run LINENO
2542
# ------------------------
2543
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2544
# that executables *can* be run.
2545
ac_fn_f77_try_run ()
2547
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2548
if { { ac_try="$ac_link"
2550
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2551
*) ac_try_echo=$ac_try;;
2553
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2554
$as_echo "$ac_try_echo"; } >&5
2555
(eval "$ac_link") 2>&5
2557
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2558
test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2559
{ { case "(($ac_try" in
2560
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2561
*) ac_try_echo=$ac_try;;
2563
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2564
$as_echo "$ac_try_echo"; } >&5
2565
(eval "$ac_try") 2>&5
2567
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2568
test $ac_status = 0; }; }; then :
2571
$as_echo "$as_me: program exited with status $ac_status" >&5
2572
$as_echo "$as_me: failed program was:" >&5
2573
sed 's/^/| /' conftest.$ac_ext >&5
2575
ac_retval=$ac_status
2577
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2578
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2579
as_fn_set_status $ac_retval
2581
} # ac_fn_f77_try_run
2583
# ac_fn_c_try_cpp LINENO
2584
# ----------------------
2585
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2588
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2589
if { { ac_try="$ac_cpp conftest.$ac_ext"
2591
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2592
*) ac_try_echo=$ac_try;;
2594
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2595
$as_echo "$ac_try_echo"; } >&5
2596
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2598
if test -s conftest.err; then
2599
grep -v '^ *+' conftest.err >conftest.er1
2600
cat conftest.er1 >&5
2601
mv -f conftest.er1 conftest.err
2603
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2604
test $ac_status = 0; } > conftest.i && {
2605
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2606
test ! -s conftest.err
2610
$as_echo "$as_me: failed program was:" >&5
2611
sed 's/^/| /' conftest.$ac_ext >&5
2615
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2616
as_fn_set_status $ac_retval
2620
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2621
# -------------------------------------------------------
2622
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2623
# the include files in INCLUDES and setting the cache variable VAR
2625
ac_fn_c_check_header_mongrel ()
2627
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2628
if eval \${$3+:} false; then :
2629
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2630
$as_echo_n "checking for $2... " >&6; }
2631
if eval \${$3+:} false; then :
2632
$as_echo_n "(cached) " >&6
2635
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2636
$as_echo "$ac_res" >&6; }
2638
# Is the header compilable?
2639
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2640
$as_echo_n "checking $2 usability... " >&6; }
2641
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2642
/* end confdefs.h. */
2646
if ac_fn_c_try_compile "$LINENO"; then :
2647
ac_header_compiler=yes
2649
ac_header_compiler=no
2651
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2652
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2653
$as_echo "$ac_header_compiler" >&6; }
2655
# Is the header present?
2656
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2657
$as_echo_n "checking $2 presence... " >&6; }
2658
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2659
/* end confdefs.h. */
2662
if ac_fn_c_try_cpp "$LINENO"; then :
2663
ac_header_preproc=yes
2665
ac_header_preproc=no
2667
rm -f conftest.err conftest.i conftest.$ac_ext
2668
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2669
$as_echo "$ac_header_preproc" >&6; }
2671
# So? What about this header?
2672
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2674
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2675
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2676
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2677
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2680
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2681
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2682
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2683
$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2684
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2685
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2686
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2687
$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2688
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2689
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2690
( $as_echo "## ------------------------------- ##
2691
## Report this to hpctools@pnl.gov ##
2692
## ------------------------------- ##"
2693
) | sed "s/^/$as_me: WARNING: /" >&2
2696
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2697
$as_echo_n "checking for $2... " >&6; }
2698
if eval \${$3+:} false; then :
2699
$as_echo_n "(cached) " >&6
2701
eval "$3=\$ac_header_compiler"
2704
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2705
$as_echo "$ac_res" >&6; }
2707
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2709
} # ac_fn_c_check_header_mongrel
2711
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2712
# -------------------------------------------------------
2713
# Tests whether HEADER exists and can be compiled using the include files in
2714
# INCLUDES, setting the cache variable VAR accordingly.
2715
ac_fn_c_check_header_compile ()
2717
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2718
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2719
$as_echo_n "checking for $2... " >&6; }
2720
if eval \${$3+:} false; then :
2721
$as_echo_n "(cached) " >&6
2723
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2724
/* end confdefs.h. */
2728
if ac_fn_c_try_compile "$LINENO"; then :
2733
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2736
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2737
$as_echo "$ac_res" >&6; }
2738
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2740
} # ac_fn_c_check_header_compile
2742
# ac_fn_c_check_func LINENO FUNC VAR
2743
# ----------------------------------
2744
# Tests whether FUNC exists, setting the cache variable VAR accordingly
2745
ac_fn_c_check_func ()
2747
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2748
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2749
$as_echo_n "checking for $2... " >&6; }
2750
if eval \${$3+:} false; then :
2751
$as_echo_n "(cached) " >&6
2753
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2754
/* end confdefs.h. */
2755
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2756
For example, HP-UX 11i <limits.h> declares gettimeofday. */
2757
#define $2 innocuous_$2
2759
/* System header to define __stub macros and hopefully few prototypes,
2760
which can conflict with char $2 (); below.
2761
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2762
<limits.h> exists even on freestanding compilers. */
2765
# include <limits.h>
2767
# include <assert.h>
2772
/* Override any GCC internal prototype to avoid an error.
2773
Use char because int might match the return type of a GCC
2774
builtin and then its argument prototype would still apply. */
2779
/* The GNU C library defines this for functions which it implements
2780
to always fail with ENOSYS. Some functions are actually named
2781
something starting with __ and the normal name is an alias. */
2782
#if defined __stub_$2 || defined __stub___$2
2786
#ifdef F77_DUMMY_MAIN
2791
int F77_DUMMY_MAIN() { return 1; }
2802
if ac_fn_c_try_link "$LINENO"; then :
2807
rm -f core conftest.err conftest.$ac_objext \
2808
conftest$ac_exeext conftest.$ac_ext
2811
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2812
$as_echo "$ac_res" >&6; }
2813
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2815
} # ac_fn_c_check_func
2816
cat >config.log <<_ACEOF
2817
This file contains any messages produced by compilers while
2818
running configure, to aid debugging if configure makes a mistake.
2820
It was created by Task Scheduling Library (tascel) $as_me 0.0.1, which was
2821
generated by GNU Autoconf 2.68. Invocation command line was
2833
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2834
uname -m = `(uname -m) 2>/dev/null || echo unknown`
2835
uname -r = `(uname -r) 2>/dev/null || echo unknown`
2836
uname -s = `(uname -s) 2>/dev/null || echo unknown`
2837
uname -v = `(uname -v) 2>/dev/null || echo unknown`
2839
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2840
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2842
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2843
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2844
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2845
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2846
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2847
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2848
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2852
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2856
test -z "$as_dir" && as_dir=.
2857
$as_echo "PATH: $as_dir"
2873
# Keep a trace of the command line.
2874
# Strip out --no-create and --no-recursion so they do not pile up.
2875
# Strip out --silent because we don't want to record it for future runs.
2876
# Also quote any args containing shell meta-characters.
2877
# Make two passes to allow for proper duplicate-argument suppression.
2881
ac_must_keep_next=false
2887
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2888
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
2889
| -silent | --silent | --silen | --sile | --sil)
2892
ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2895
1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2897
as_fn_append ac_configure_args1 " '$ac_arg'"
2898
if test $ac_must_keep_next = true; then
2899
ac_must_keep_next=false # Got value, back to normal.
2902
*=* | --config-cache | -C | -disable-* | --disable-* \
2903
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2904
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2905
| -with-* | --with-* | -without-* | --without-* | --x)
2906
case "$ac_configure_args0 " in
2907
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2910
-* ) ac_must_keep_next=true ;;
2913
as_fn_append ac_configure_args " '$ac_arg'"
2918
{ ac_configure_args0=; unset ac_configure_args0;}
2919
{ ac_configure_args1=; unset ac_configure_args1;}
2921
# When interrupted or exit'd, cleanup temporary files, and complete
2922
# config.log. We remove comments because anyway the quotes in there
2923
# would cause problems or look ugly.
2924
# WARNING: Use '\'' to represent an apostrophe within the trap.
2925
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2926
trap 'exit_status=$?
2927
# Save into config.log some information that might help in debugging.
2931
$as_echo "## ---------------- ##
2932
## Cache variables. ##
2933
## ---------------- ##"
2935
# The following way of writing the cache mishandles newlines in values,
2937
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2938
eval ac_val=\$$ac_var
2942
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2943
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2946
_ | IFS | as_nl) ;; #(
2947
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2948
*) { eval $ac_var=; unset $ac_var;} ;;
2953
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2954
*${as_nl}ac_space=\ *)
2956
"s/'\''/'\''\\\\'\'''\''/g;
2957
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2960
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2967
$as_echo "## ----------------- ##
2968
## Output variables. ##
2969
## ----------------- ##"
2971
for ac_var in $ac_subst_vars
2973
eval ac_val=\$$ac_var
2975
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2977
$as_echo "$ac_var='\''$ac_val'\''"
2981
if test -n "$ac_subst_files"; then
2982
$as_echo "## ------------------- ##
2983
## File substitutions. ##
2984
## ------------------- ##"
2986
for ac_var in $ac_subst_files
2988
eval ac_val=\$$ac_var
2990
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2992
$as_echo "$ac_var='\''$ac_val'\''"
2997
if test -s confdefs.h; then
2998
$as_echo "## ----------- ##
3005
test "$ac_signal" != 0 &&
3006
$as_echo "$as_me: caught signal $ac_signal"
3007
$as_echo "$as_me: exit $exit_status"
3009
rm -f core *.core core.conftest.* &&
3010
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3013
for ac_signal in 1 2 13 15; do
3014
trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3018
# confdefs.h avoids OS command line length limits that DEFS can exceed.
3019
rm -f -r conftest* confdefs.h
3021
$as_echo "/* confdefs.h */" > confdefs.h
3023
# Predefined preprocessor variables.
3025
cat >>confdefs.h <<_ACEOF
3026
#define PACKAGE_NAME "$PACKAGE_NAME"
3029
cat >>confdefs.h <<_ACEOF
3030
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3033
cat >>confdefs.h <<_ACEOF
3034
#define PACKAGE_VERSION "$PACKAGE_VERSION"
3037
cat >>confdefs.h <<_ACEOF
3038
#define PACKAGE_STRING "$PACKAGE_STRING"
3041
cat >>confdefs.h <<_ACEOF
3042
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3045
cat >>confdefs.h <<_ACEOF
3046
#define PACKAGE_URL "$PACKAGE_URL"
3050
# Let the site file select an alternate cache file if it wants to.
3051
# Prefer an explicitly selected file to automatically selected ones.
3054
if test -n "$CONFIG_SITE"; then
3055
# We do not want a PATH search for config.site.
3056
case $CONFIG_SITE in #((
3057
-*) ac_site_file1=./$CONFIG_SITE;;
3058
*/*) ac_site_file1=$CONFIG_SITE;;
3059
*) ac_site_file1=./$CONFIG_SITE;;
3061
elif test "x$prefix" != xNONE; then
3062
ac_site_file1=$prefix/share/config.site
3063
ac_site_file2=$prefix/etc/config.site
3065
ac_site_file1=$ac_default_prefix/share/config.site
3066
ac_site_file2=$ac_default_prefix/etc/config.site
3068
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3070
test "x$ac_site_file" = xNONE && continue
3071
if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3072
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3073
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3074
sed 's/^/| /' "$ac_site_file" >&5
3076
|| { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3077
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3078
as_fn_error $? "failed to load site script $ac_site_file
3079
See \`config.log' for more details" "$LINENO" 5; }
3083
if test -r "$cache_file"; then
3084
# Some versions of bash will fail to source /dev/null (special files
3085
# actually), so we avoid doing that. DJGPP emulates it as a regular file.
3086
if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3087
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3088
$as_echo "$as_me: loading cache $cache_file" >&6;}
3090
[\\/]* | ?:[\\/]* ) . "$cache_file";;
3091
*) . "./$cache_file";;
3095
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3096
$as_echo "$as_me: creating cache $cache_file" >&6;}
3100
# Check that the precious variables saved in the cache have kept the same
3102
ac_cache_corrupted=false
3103
for ac_var in $ac_precious_vars; do
3104
eval ac_old_set=\$ac_cv_env_${ac_var}_set
3105
eval ac_new_set=\$ac_env_${ac_var}_set
3106
eval ac_old_val=\$ac_cv_env_${ac_var}_value
3107
eval ac_new_val=\$ac_env_${ac_var}_value
3108
case $ac_old_set,$ac_new_set in
3110
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3111
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3112
ac_cache_corrupted=: ;;
3114
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3115
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3116
ac_cache_corrupted=: ;;
3119
if test "x$ac_old_val" != "x$ac_new_val"; then
3120
# differences in whitespace do not lead to failure.
3121
ac_old_val_w=`echo x $ac_old_val`
3122
ac_new_val_w=`echo x $ac_new_val`
3123
if test "$ac_old_val_w" != "$ac_new_val_w"; then
3124
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3125
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3126
ac_cache_corrupted=:
3128
{ $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3129
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3130
eval $ac_var=\$ac_old_val
3132
{ $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3133
$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3134
{ $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3135
$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3138
# Pass precious variables to config.status.
3139
if test "$ac_new_set" = set; then
3141
*\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3142
*) ac_arg=$ac_var=$ac_new_val ;;
3144
case " $ac_configure_args " in
3145
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3146
*) as_fn_append ac_configure_args " '$ac_arg'" ;;
3150
if $ac_cache_corrupted; then
3151
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3152
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3153
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3154
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3155
as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3157
## -------------------- ##
3158
## Main body of script. ##
3159
## -------------------- ##
3162
ac_cpp='$CPP $CPPFLAGS'
3163
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3164
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3165
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3169
for ac_dir in build-aux "$srcdir"/build-aux; do
3170
if test -f "$ac_dir/install-sh"; then
3172
ac_install_sh="$ac_aux_dir/install-sh -c"
3174
elif test -f "$ac_dir/install.sh"; then
3176
ac_install_sh="$ac_aux_dir/install.sh -c"
3178
elif test -f "$ac_dir/shtool"; then
3180
ac_install_sh="$ac_aux_dir/shtool install -c"
3184
if test -z "$ac_aux_dir"; then
3185
as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3188
# These three variables are undocumented and unsupported,
3189
# and are intended to be withdrawn in a future Autoconf release.
3190
# They can cause serious problems if a builder's source tree is in a directory
3191
# whose full name contains unusual characters.
3192
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3193
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3194
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3197
ac_config_headers="$ac_config_headers config.h"
3202
###############################################################################
3203
# Must occur before automake init
3204
###############################################################################
3205
# Make sure we can run config.sub.
3206
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3207
as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3209
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3210
$as_echo_n "checking build system type... " >&6; }
3211
if ${ac_cv_build+:} false; then :
3212
$as_echo_n "(cached) " >&6
3214
ac_build_alias=$build_alias
3215
test "x$ac_build_alias" = x &&
3216
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3217
test "x$ac_build_alias" = x &&
3218
as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3219
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3220
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3223
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3224
$as_echo "$ac_cv_build" >&6; }
3225
case $ac_cv_build in
3227
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3230
ac_save_IFS=$IFS; IFS='-'
3236
# Remember, the first character of IFS is used to create $*,
3237
# except with old shells:
3240
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3243
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3244
$as_echo_n "checking host system type... " >&6; }
3245
if ${ac_cv_host+:} false; then :
3246
$as_echo_n "(cached) " >&6
3248
if test "x$host_alias" = x; then
3249
ac_cv_host=$ac_cv_build
3251
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3252
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3256
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3257
$as_echo "$ac_cv_host" >&6; }
3260
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3263
ac_save_IFS=$IFS; IFS='-'
3269
# Remember, the first character of IFS is used to create $*,
3270
# except with old shells:
3273
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3276
# AH_TEMPLATE for all known TARGETs
3311
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TARGET base (64bit-ness checked later)" >&5
3312
$as_echo_n "checking for TARGET base (64bit-ness checked later)... " >&6; }
3313
if ${ga_cv_target_base+:} false; then :
3314
$as_echo_n "(cached) " >&6
3316
ga_cv_target_base=UNKNOWN
3317
if test "x$ga_cv_target_base" = xUNKNOWN; then :
3318
if test -f /bgsys/drivers/ppcfloor/arch/include/common/bgp_personality.h; then :
3319
ga_cv_target_base=BGP
3322
if test "x$ga_cv_target_base" = xUNKNOWN; then :
3323
if test -d /bgl/BlueLight/ppcfloor/bglsys/include; then :
3324
ga_cv_target_base=BGL
3327
if test "x$ga_cv_target_base" = xUNKNOWN; then :
3330
ga_cv_target_base=BGL ;; #(
3332
ga_cv_target_base=BGP ;; #(
3333
#[TODO], [ga_cv_target_base=CATAMOUNT],
3334
#[TODO], [ga_cv_target_base=CRAY_XT],
3336
ga_cv_target_base=CYGWIN ;; #(
3338
ga_cv_target_base=FUJITSU_VPP ;; #(
3340
ga_cv_target_base=HPUX ;; #(
3342
ga_cv_target_base=IBM ;; #(
3343
#[TODO], [ga_cv_target_base=LAPI],
3345
ga_cv_target_base=LINUX ;; #(
3347
ga_cv_target_base=MACX ;; #(
3349
ga_cv_target_base=MACX ;; #(
3351
ga_cv_target_base=NEC ;; #(
3353
ga_cv_target_base=SOLARIS ;; #(
3360
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ga_cv_target_base" >&5
3361
$as_echo "$ga_cv_target_base" >&6; }
3362
cat >>confdefs.h <<_ACEOF
3363
#define $ga_cv_target_base 1
3366
# A horrible hack that should go away somehow...
3367
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we think this system is what we call SYSV" >&5
3368
$as_echo_n "checking whether we think this system is what we call SYSV... " >&6; }
3369
if ${ga_cv_sysv+:} false; then :
3370
$as_echo_n "(cached) " >&6
3372
case $ga_cv_target_base in #(
3373
SUN|SOLARIS|SGI|SGI_N32|SGITFP|HPUX|IBM|DECOSF|LINUX|INTERIX|NEC|LAPI) :
3374
ga_cv_sysv=yes ;; #(
3380
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ga_cv_sysv" >&5
3381
$as_echo "$ga_cv_sysv" >&6; }
3382
if test x$ga_cv_sysv = xyes; then :
3384
$as_echo "#define SYSV 1" >>confdefs.h
3387
# Hopefully these will never be used and we can remove them soon.
3388
if test "$ga_cv_target_base" = BGL; then
3396
if test "$ga_cv_target_base" = BGP; then
3404
if test "$ga_cv_target_base" = CATAMOUNT; then
3412
if test "$ga_cv_target_base" = CRAY_SV1; then
3420
if test "$ga_cv_target_base" = CRAY_SV2; then
3428
if test "$ga_cv_target_base" = CRAY_T3E; then
3436
if test "$ga_cv_target_base" = CRAY_XT; then
3444
if test "$ga_cv_target_base" = CRAY_YMP; then
3452
if test "$ga_cv_target_base" = CYGNUS; then
3460
if test "$ga_cv_target_base" = CYGWIN; then
3468
if test "$ga_cv_target_base" = DECOSF; then
3476
if test "$ga_cv_target_base" = FUJITSU_VPP; then
3478
FUJITSU_VPP_FALSE='#'
3480
FUJITSU_VPP_TRUE='#'
3484
if test "$ga_cv_target_base" = HITACHI; then
3492
if test "$ga_cv_target_base" = HPUX; then
3500
if test "$ga_cv_target_base" = IBM; then
3508
if test "$ga_cv_target_base" = INTERIX; then
3516
if test "$ga_cv_target_base" = LAPI; then
3524
if test "$ga_cv_target_base" = LINUX; then
3532
if test "$ga_cv_target_base" = MACX; then
3540
if test "$ga_cv_target_base" = NEC; then
3548
if test "$ga_cv_target_base" = SGI; then
3556
if test "$ga_cv_target_base" = SGI_N32; then
3564
if test "$ga_cv_target_base" = SGITFP; then
3572
if test "$ga_cv_target_base" = SOLARIS; then
3583
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3584
$as_echo_n "checking whether we are cross compiling... " >&6; }
3585
if ${ga_cv_cross_compiling+:} false; then :
3586
$as_echo_n "(cached) " >&6
3588
if test "x$ga_cv_target_base" = xBGP; then :
3591
ga_cv_cross_compiling=$cross_compiling
3593
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ga_cv_cross_compiling" >&5
3594
$as_echo "$ga_cv_cross_compiling" >&6; }
3595
if test "x$cross_compiling" = xyes; then
3596
CROSS_COMPILING_TRUE=
3597
CROSS_COMPILING_FALSE='#'
3599
CROSS_COMPILING_TRUE='#'
3600
CROSS_COMPILING_FALSE=
3605
###############################################################################
3607
###############################################################################
3608
am__api_version='1.11'
3610
# Find a good install program. We prefer a C program (faster),
3611
# so one script is as good as another. But avoid the broken or
3612
# incompatible versions:
3613
# SysV /etc/install, /usr/sbin/install
3614
# SunOS /usr/etc/install
3615
# IRIX /sbin/install
3617
# AmigaOS /C/install, which installs bootblocks on floppy discs
3618
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3619
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3620
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3621
# OS/2's system install, which has a completely different semantic
3622
# ./install, which can be erroneously created by make from ./install.sh.
3623
# Reject install programs that cannot install multiple files.
3624
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3625
$as_echo_n "checking for a BSD-compatible install... " >&6; }
3626
if test -z "$INSTALL"; then
3627
if ${ac_cv_path_install+:} false; then :
3628
$as_echo_n "(cached) " >&6
3630
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3634
test -z "$as_dir" && as_dir=.
3635
# Account for people who put trailing slashes in PATH elements.
3636
case $as_dir/ in #((
3637
./ | .// | /[cC]/* | \
3638
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3639
?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3642
# OSF1 and SCO ODT 3.0 have their own names for install.
3643
# Don't use installbsd from OSF since it installs stuff as root
3645
for ac_prog in ginstall scoinst install; do
3646
for ac_exec_ext in '' $ac_executable_extensions; do
3647
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3648
if test $ac_prog = install &&
3649
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3650
# AIX install. It has an incompatible calling convention.
3652
elif test $ac_prog = install &&
3653
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3654
# program-specific install script used by HP pwplus--don't use.
3657
rm -rf conftest.one conftest.two conftest.dir
3658
echo one > conftest.one
3659
echo two > conftest.two
3661
if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3662
test -s conftest.one && test -s conftest.two &&
3663
test -s conftest.dir/conftest.one &&
3664
test -s conftest.dir/conftest.two
3666
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3679
rm -rf conftest.one conftest.two conftest.dir
3682
if test "${ac_cv_path_install+set}" = set; then
3683
INSTALL=$ac_cv_path_install
3685
# As a last resort, use the slow shell script. Don't cache a
3686
# value for INSTALL within a source directory, because that will
3687
# break other packages using the cache if that directory is
3688
# removed, or if the value is a relative name.
3689
INSTALL=$ac_install_sh
3692
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3693
$as_echo "$INSTALL" >&6; }
3695
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3696
# It thinks the first close brace ends the variable substitution.
3697
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3699
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3701
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3703
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3704
$as_echo_n "checking whether build environment is sane... " >&6; }
3707
echo timestamp > conftest.file
3708
# Reject unsafe characters in $srcdir or the absolute working directory
3709
# name. Accept space and tab only in the latter.
3713
*[\\\"\#\$\&\'\`$am_lf]*)
3714
as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3717
*[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3718
as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3721
# Do `set' in a subshell so we don't clobber the current shell's
3722
# arguments. Must try -L first in case configure is actually a
3723
# symlink; some systems play weird games with the mod time of symlinks
3724
# (eg FreeBSD returns the mod time of the symlink's containing
3727
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3728
if test "$*" = "X"; then
3730
set X `ls -t "$srcdir/configure" conftest.file`
3733
if test "$*" != "X $srcdir/configure conftest.file" \
3734
&& test "$*" != "X conftest.file $srcdir/configure"; then
3736
# If neither matched, then we have a broken ls. This can happen
3737
# if, for instance, CONFIG_SHELL is bash and it inherits a
3738
# broken ls alias from the environment. This has actually
3739
# happened. Such a system could not be considered "sane".
3740
as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3741
alias in your environment" "$LINENO" 5
3744
test "$2" = conftest.file
3750
as_fn_error $? "newly created file is older than distributed files!
3751
Check your system clock" "$LINENO" 5
3753
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3754
$as_echo "yes" >&6; }
3755
test "$program_prefix" != NONE &&
3756
program_transform_name="s&^&$program_prefix&;$program_transform_name"
3757
# Use a double $ so make ignores it.
3758
test "$program_suffix" != NONE &&
3759
program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3760
# Double any \ or $.
3761
# By default was `s,x,x', remove it if useless.
3762
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3763
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3765
# expand $ac_aux_dir to an absolute path
3766
am_aux_dir=`cd $ac_aux_dir && pwd`
3768
if test x"${MISSING+set}" != xset; then
3771
MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3773
MISSING="\${SHELL} $am_aux_dir/missing" ;;
3776
# Use eval to expand $SHELL
3777
if eval "$MISSING --run true"; then
3778
am_missing_run="$MISSING --run "
3781
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3782
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3785
if test x"${install_sh}" != xset; then
3788
install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3790
install_sh="\${SHELL} $am_aux_dir/install-sh"
3794
# Installed binaries are usually stripped using `strip' when the user
3795
# run `make install-strip'. However `strip' might not be the right
3796
# tool to use in cross-compilation environments, therefore Automake
3797
# will honor the `STRIP' environment variable to overrule this program.
3798
if test "$cross_compiling" != no; then
3799
if test -n "$ac_tool_prefix"; then
3800
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3801
set dummy ${ac_tool_prefix}strip; ac_word=$2
3802
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3803
$as_echo_n "checking for $ac_word... " >&6; }
3804
if ${ac_cv_prog_STRIP+:} false; then :
3805
$as_echo_n "(cached) " >&6
3807
if test -n "$STRIP"; then
3808
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3810
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3814
test -z "$as_dir" && as_dir=.
3815
for ac_exec_ext in '' $ac_executable_extensions; do
3816
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3817
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3818
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3827
STRIP=$ac_cv_prog_STRIP
3828
if test -n "$STRIP"; then
3829
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3830
$as_echo "$STRIP" >&6; }
3832
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3833
$as_echo "no" >&6; }
3838
if test -z "$ac_cv_prog_STRIP"; then
3840
# Extract the first word of "strip", so it can be a program name with args.
3841
set dummy strip; ac_word=$2
3842
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3843
$as_echo_n "checking for $ac_word... " >&6; }
3844
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3845
$as_echo_n "(cached) " >&6
3847
if test -n "$ac_ct_STRIP"; then
3848
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3850
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3854
test -z "$as_dir" && as_dir=.
3855
for ac_exec_ext in '' $ac_executable_extensions; do
3856
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3857
ac_cv_prog_ac_ct_STRIP="strip"
3858
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3867
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3868
if test -n "$ac_ct_STRIP"; then
3869
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3870
$as_echo "$ac_ct_STRIP" >&6; }
3872
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3873
$as_echo "no" >&6; }
3876
if test "x$ac_ct_STRIP" = x; then
3879
case $cross_compiling:$ac_tool_warned in
3881
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3882
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3883
ac_tool_warned=yes ;;
3888
STRIP="$ac_cv_prog_STRIP"
3892
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3894
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3895
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3896
if test -z "$MKDIR_P"; then
3897
if ${ac_cv_path_mkdir+:} false; then :
3898
$as_echo_n "(cached) " >&6
3900
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3901
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3904
test -z "$as_dir" && as_dir=.
3905
for ac_prog in mkdir gmkdir; do
3906
for ac_exec_ext in '' $ac_executable_extensions; do
3907
{ test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3908
case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3909
'mkdir (GNU coreutils) '* | \
3910
'mkdir (coreutils) '* | \
3911
'mkdir (fileutils) '4.1*)
3912
ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3922
test -d ./--version && rmdir ./--version
3923
if test "${ac_cv_path_mkdir+set}" = set; then
3924
MKDIR_P="$ac_cv_path_mkdir -p"
3926
# As a last resort, use the slow shell script. Don't cache a
3927
# value for MKDIR_P within a source directory, because that will
3928
# break other packages using the cache if that directory is
3929
# removed, or if the value is a relative name.
3930
MKDIR_P="$ac_install_sh -d"
3933
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3934
$as_echo "$MKDIR_P" >&6; }
3938
[\\/$]* | ?:[\\/]*) ;;
3939
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3942
for ac_prog in gawk mawk nawk awk
3944
# Extract the first word of "$ac_prog", so it can be a program name with args.
3945
set dummy $ac_prog; ac_word=$2
3946
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3947
$as_echo_n "checking for $ac_word... " >&6; }
3948
if ${ac_cv_prog_AWK+:} false; then :
3949
$as_echo_n "(cached) " >&6
3951
if test -n "$AWK"; then
3952
ac_cv_prog_AWK="$AWK" # Let the user override the test.
3954
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3958
test -z "$as_dir" && as_dir=.
3959
for ac_exec_ext in '' $ac_executable_extensions; do
3960
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3961
ac_cv_prog_AWK="$ac_prog"
3962
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3972
if test -n "$AWK"; then
3973
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3974
$as_echo "$AWK" >&6; }
3976
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3977
$as_echo "no" >&6; }
3981
test -n "$AWK" && break
3984
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3985
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3987
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3988
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3989
$as_echo_n "(cached) " >&6
3991
cat >conftest.make <<\_ACEOF
3994
@echo '@@@%%%=$(MAKE)=@@@%%%'
3996
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3997
case `${MAKE-make} -f conftest.make 2>/dev/null` in
3999
eval ac_cv_prog_make_${ac_make}_set=yes;;
4001
eval ac_cv_prog_make_${ac_make}_set=no;;
4005
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4006
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4007
$as_echo "yes" >&6; }
4010
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4011
$as_echo "no" >&6; }
4012
SET_MAKE="MAKE=${MAKE-make}"
4015
rm -rf .tst 2>/dev/null
4016
mkdir .tst 2>/dev/null
4017
if test -d .tst; then
4022
rmdir .tst 2>/dev/null
4024
# Check whether --enable-silent-rules was given.
4025
if test "${enable_silent_rules+set}" = set; then :
4026
enableval=$enable_silent_rules;
4029
case $enable_silent_rules in
4030
yes) AM_DEFAULT_VERBOSITY=0;;
4031
no) AM_DEFAULT_VERBOSITY=1;;
4032
*) AM_DEFAULT_VERBOSITY=1;;
4036
if test "`cd $srcdir && pwd`" != "`pwd`"; then
4037
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4038
# is not polluted with repeated "-I."
4039
am__isrc=' -I$(srcdir)'
4040
# test to see if srcdir already configured
4041
if test -f $srcdir/config.status; then
4042
as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4046
# test whether we have cygpath
4047
if test -z "$CYGPATH_W"; then
4048
if (cygpath --version) >/dev/null 2>/dev/null; then
4049
CYGPATH_W='cygpath -w'
4056
# Define the identity of the package.
4061
cat >>confdefs.h <<_ACEOF
4062
#define PACKAGE "$PACKAGE"
4066
cat >>confdefs.h <<_ACEOF
4067
#define VERSION "$VERSION"
4070
# Some tools Automake needs.
4072
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4075
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4078
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4081
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4084
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4086
# We need awk for the "check" target. The system "awk" is bad on
4088
# Always define AMTAR for backward compatibility.
4090
AMTAR=${AMTAR-"${am_missing_run}tar"}
4092
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4099
# Don't emit "rebuild rules" for configure, Makefile.ins, etc.
4101
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4102
$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4103
# Check whether --enable-maintainer-mode was given.
4104
if test "${enable_maintainer_mode+set}" = set; then :
4105
enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4107
USE_MAINTAINER_MODE=no
4110
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4111
$as_echo "$USE_MAINTAINER_MODE" >&6; }
4112
if test $USE_MAINTAINER_MODE = yes; then
4113
MAINTAINER_MODE_TRUE=
4114
MAINTAINER_MODE_FALSE='#'
4116
MAINTAINER_MODE_TRUE='#'
4117
MAINTAINER_MODE_FALSE=
4120
MAINT=$MAINTAINER_MODE_TRUE
4124
###############################################################################
4125
# Misc. information and package setup.
4126
###############################################################################
4128
# Check whether --with-PACKAGE was given.
4129
if test "${with_PACKAGE+set}" = set; then :
4130
withval=$with_PACKAGE;
4134
TASCEL_TOP_BUILDDIR="`pwd`"
4136
TASCEL_TOP_SRCDIR="`pwd`"
4137
cd "$TASCEL_TOP_BUILDDIR"
4138
if test "$TASCEL_TOP_BUILDDIR" != "TASCEL_TOP_SRCDIR"; then :
4139
{ $as_echo "$as_me:${as_lineno-$LINENO}: Detected VPATH build" >&5
4140
$as_echo "$as_me: Detected VPATH build" >&6;}
4143
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tascel is built outside of GA" >&5
4144
$as_echo_n "checking whether tascel is built outside of GA... " >&6; }
4145
if ${tascel_cv_standalone+:} false; then :
4146
$as_echo_n "(cached) " >&6
4148
if test -f "$TASCEL_TOP_BUILDDIR/../armci/config.status"; then :
4149
tascel_cv_standalone=no
4151
tascel_cv_standalone=yes
4154
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tascel_cv_standalone" >&5
4155
$as_echo "$tascel_cv_standalone" >&6; }
4156
if test x$tascel_cv_standalone = xyes; then
4157
TASCEL_STANDALONE_TRUE=
4158
TASCEL_STANDALONE_FALSE='#'
4160
TASCEL_STANDALONE_TRUE='#'
4161
TASCEL_STANDALONE_FALSE=
4165
# If MPI is desired we use the MPI compiler wrappers instead of the standard
4168
# GA_MP_* vars might exist in environment, but they are really internal.
4173
# First of all, which messaging library do we want?
4176
# Check whether --with-mpi was given.
4177
if test "${with_mpi+set}" = set; then :
4184
with_mpi_need_parse=no
4186
case $with_mpi in #(
4188
with_mpi_wrappers=yes ;; #(
4192
with_mpi_need_parse=yes ;; #(
4203
# F77 and C++ are always enabled for tascel
4207
# Check whether --enable-mpi-tests was given.
4208
if test "${enable_mpi_tests+set}" = set; then :
4209
enableval=$enable_mpi_tests;
4211
enable_mpi_tests=yes
4216
###############################################################################
4218
###############################################################################
4219
{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
4220
$as_echo "$as_me: " >&6;}
4221
{ $as_echo "$as_me:${as_lineno-$LINENO}: C compiler" >&5
4222
$as_echo "$as_me: C compiler" >&6;}
4223
{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
4224
$as_echo "$as_me: " >&6;}
4226
tascel_save_CFLAGS="$CFLAGS"
4227
DEPDIR="${am__leading_dot}deps"
4229
ac_config_commands="$ac_config_commands depfiles"
4232
am_make=${MAKE-make}
4233
cat > confinc << 'END'
4235
@echo this is the am__doit target
4238
# If we don't find an include directive, just comment out the code.
4239
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4240
$as_echo_n "checking for style of include used by $am_make... " >&6; }
4244
# First try GNU make style include.
4245
echo "include confinc" > confmf
4246
# Ignore all kinds of additional output from `make'.
4247
case `$am_make -s -f confmf 2> /dev/null` in #(
4248
*the\ am__doit\ target*)
4254
# Now try BSD make style include.
4255
if test "$am__include" = "#"; then
4256
echo '.include "confinc"' > confmf
4257
case `$am_make -s -f confmf 2> /dev/null` in #(
4258
*the\ am__doit\ target*)
4259
am__include=.include
4267
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4268
$as_echo "$_am_result" >&6; }
4269
rm -f confinc confmf
4271
# Check whether --enable-dependency-tracking was given.
4272
if test "${enable_dependency_tracking+set}" = set; then :
4273
enableval=$enable_dependency_tracking;
4276
if test "x$enable_dependency_tracking" != xno; then
4277
am_depcomp="$ac_aux_dir/depcomp"
4280
if test "x$enable_dependency_tracking" != xno; then
4290
case $ga_cv_target_base in #(
4292
ga_mpicc_pref=mpixlc_r; ga_cc_pref=bgxlc_r ;; #(
4296
# In the case of using MPI wrappers, set CC=MPICC since CC will override
4297
# absolutely everything in our list of compilers.
4298
# Save CC, just in case.
4299
if test x$with_mpi_wrappers = xyes; then :
4300
if test "x$CC" != "x$MPICC"; then :
4303
case x$CC:x$MPICC in #(
4309
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPI compilers desired but CC is set while MPICC is unset." >&5
4310
$as_echo "$as_me: WARNING: MPI compilers desired but CC is set while MPICC is unset." >&2;}
4311
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: CC will be ignored during compiler selection, but will be" >&5
4312
$as_echo "$as_me: WARNING: CC will be ignored during compiler selection, but will be" >&2;}
4313
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: tested first during MPI compiler unwrapping. Perhaps you" >&5
4314
$as_echo "$as_me: WARNING: tested first during MPI compiler unwrapping. Perhaps you" >&2;}
4315
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: meant to set MPICC instead of or in addition to CC?" >&5
4316
$as_echo "$as_me: WARNING: meant to set MPICC instead of or in addition to CC?" >&2;}
4319
if test "x$CC" != "x$MPICC"; then :
4320
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPI compilers desired, MPICC and CC are set, and MPICC!=CC." >&5
4321
$as_echo "$as_me: WARNING: MPI compilers desired, MPICC and CC are set, and MPICC!=CC." >&2;}
4322
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Choosing MPICC over CC." >&5
4323
$as_echo "$as_me: WARNING: Choosing MPICC over CC." >&2;}
4324
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: CC will be tested first during MPI compiler unwrapping." >&5
4325
$as_echo "$as_me: WARNING: CC will be tested first during MPI compiler unwrapping." >&2;}
4329
as_fn_error $? "CC/MPICC case failure" "$LINENO" 5 ;;
4332
ga_cc="bgxlc_r bgxlc xlc_r xlc pgcc pathcc icc sxcc fcc opencc suncc craycc gcc cc ecc cl ccc"
4333
ga_mpicc="mpicc mpixlc_r mpixlc hcc mpxlc_r mpxlc sxmpicc mpifcc mpgcc mpcc cmpicc cc"
4334
if test x$with_mpi_wrappers = xyes; then :
4335
CC_TO_TEST="$ga_mpicc_pref $ga_mpicc"
4337
CC_TO_TEST="$ga_cc_pref $ga_cc"
4340
ac_cpp='$CPP $CPPFLAGS'
4341
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4342
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4343
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4344
if test -n "$ac_tool_prefix"; then
4345
for ac_prog in $CC_TO_TEST
4347
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4348
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4349
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4350
$as_echo_n "checking for $ac_word... " >&6; }
4351
if ${ac_cv_prog_CC+:} false; then :
4352
$as_echo_n "(cached) " >&6
4354
if test -n "$CC"; then
4355
ac_cv_prog_CC="$CC" # Let the user override the test.
4357
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4361
test -z "$as_dir" && as_dir=.
4362
for ac_exec_ext in '' $ac_executable_extensions; do
4363
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4364
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4365
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4375
if test -n "$CC"; then
4376
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4377
$as_echo "$CC" >&6; }
4379
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4380
$as_echo "no" >&6; }
4384
test -n "$CC" && break
4387
if test -z "$CC"; then
4389
for ac_prog in $CC_TO_TEST
4391
# Extract the first word of "$ac_prog", so it can be a program name with args.
4392
set dummy $ac_prog; ac_word=$2
4393
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4394
$as_echo_n "checking for $ac_word... " >&6; }
4395
if ${ac_cv_prog_ac_ct_CC+:} false; then :
4396
$as_echo_n "(cached) " >&6
4398
if test -n "$ac_ct_CC"; then
4399
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4401
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4405
test -z "$as_dir" && as_dir=.
4406
for ac_exec_ext in '' $ac_executable_extensions; do
4407
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4408
ac_cv_prog_ac_ct_CC="$ac_prog"
4409
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4418
ac_ct_CC=$ac_cv_prog_ac_ct_CC
4419
if test -n "$ac_ct_CC"; then
4420
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4421
$as_echo "$ac_ct_CC" >&6; }
4423
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4424
$as_echo "no" >&6; }
4428
test -n "$ac_ct_CC" && break
4431
if test "x$ac_ct_CC" = x; then
4434
case $cross_compiling:$ac_tool_warned in
4436
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4437
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4438
ac_tool_warned=yes ;;
4445
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4446
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4447
as_fn_error $? "no acceptable C compiler found in \$PATH
4448
See \`config.log' for more details" "$LINENO" 5; }
4450
# Provide some information about the compiler.
4451
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4454
for ac_option in --version -v -V -qversion; do
4455
{ { ac_try="$ac_compiler $ac_option >&5"
4457
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4458
*) ac_try_echo=$ac_try;;
4460
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4461
$as_echo "$ac_try_echo"; } >&5
4462
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
4464
if test -s conftest.err; then
4466
... rest of stderr output deleted ...
4467
10q' conftest.err >conftest.er1
4468
cat conftest.er1 >&5
4470
rm -f conftest.er1 conftest.err
4471
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4472
test $ac_status = 0; }
4475
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4476
/* end confdefs.h. */
4486
ac_clean_files_save=$ac_clean_files
4487
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4488
# Try to create an executable without -o first, disregard a.out.
4489
# It will help us diagnose broken compilers, and finding out an intuition
4491
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4492
$as_echo_n "checking whether the C compiler works... " >&6; }
4493
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4495
# The possible output files:
4496
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4499
for ac_file in $ac_files
4502
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4503
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
4508
if { { ac_try="$ac_link_default"
4510
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4511
*) ac_try_echo=$ac_try;;
4513
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4514
$as_echo "$ac_try_echo"; } >&5
4515
(eval "$ac_link_default") 2>&5
4517
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4518
test $ac_status = 0; }; then :
4519
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4520
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4521
# in a Makefile. We should not override ac_cv_exeext if it was cached,
4522
# so that the user can short-circuit this test for compilers unknown to
4524
for ac_file in $ac_files ''
4526
test -f "$ac_file" || continue
4528
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4531
# We found the default executable, but exeext='' is most
4535
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4537
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4539
# We set ac_cv_exeext here because the later test for it is not
4540
# safe: cross compilers may not add the suffix if given an `-o'
4541
# argument, so we may need to know it at that point already.
4542
# Even if this section looks crufty: it has the advantage of
4549
test "$ac_cv_exeext" = no && ac_cv_exeext=
4554
if test -z "$ac_file"; then :
4555
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4556
$as_echo "no" >&6; }
4557
$as_echo "$as_me: failed program was:" >&5
4558
sed 's/^/| /' conftest.$ac_ext >&5
4560
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4561
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4562
as_fn_error 77 "C compiler cannot create executables
4563
See \`config.log' for more details" "$LINENO" 5; }
4565
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4566
$as_echo "yes" >&6; }
4568
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4569
$as_echo_n "checking for C compiler default output file name... " >&6; }
4570
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4571
$as_echo "$ac_file" >&6; }
4572
ac_exeext=$ac_cv_exeext
4574
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4575
ac_clean_files=$ac_clean_files_save
4576
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4577
$as_echo_n "checking for suffix of executables... " >&6; }
4578
if { { ac_try="$ac_link"
4580
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4581
*) ac_try_echo=$ac_try;;
4583
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4584
$as_echo "$ac_try_echo"; } >&5
4585
(eval "$ac_link") 2>&5
4587
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4588
test $ac_status = 0; }; then :
4589
# If both `conftest.exe' and `conftest' are `present' (well, observable)
4590
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4591
# work properly (i.e., refer to `conftest.exe'), while it won't with
4593
for ac_file in conftest.exe conftest conftest.*; do
4594
test -f "$ac_file" || continue
4596
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4597
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4603
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4604
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4605
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4606
See \`config.log' for more details" "$LINENO" 5; }
4608
rm -f conftest conftest$ac_cv_exeext
4609
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4610
$as_echo "$ac_cv_exeext" >&6; }
4612
rm -f conftest.$ac_ext
4613
EXEEXT=$ac_cv_exeext
4615
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4616
/* end confdefs.h. */
4621
FILE *f = fopen ("conftest.out", "w");
4622
return ferror (f) || fclose (f) != 0;
4628
ac_clean_files="$ac_clean_files conftest.out"
4629
# Check that the compiler produces executables we can run. If not, either
4630
# the compiler is broken, or we cross compile.
4631
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4632
$as_echo_n "checking whether we are cross compiling... " >&6; }
4633
if test "$cross_compiling" != yes; then
4634
{ { ac_try="$ac_link"
4636
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4637
*) ac_try_echo=$ac_try;;
4639
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4640
$as_echo "$ac_try_echo"; } >&5
4641
(eval "$ac_link") 2>&5
4643
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4644
test $ac_status = 0; }
4645
if { ac_try='./conftest$ac_cv_exeext'
4646
{ { case "(($ac_try" in
4647
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4648
*) ac_try_echo=$ac_try;;
4650
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4651
$as_echo "$ac_try_echo"; } >&5
4652
(eval "$ac_try") 2>&5
4654
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4655
test $ac_status = 0; }; }; then
4658
if test "$cross_compiling" = maybe; then
4661
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4662
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4663
as_fn_error $? "cannot run C compiled programs.
4664
If you meant to cross compile, use \`--host'.
4665
See \`config.log' for more details" "$LINENO" 5; }
4669
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4670
$as_echo "$cross_compiling" >&6; }
4672
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4673
ac_clean_files=$ac_clean_files_save
4674
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4675
$as_echo_n "checking for suffix of object files... " >&6; }
4676
if ${ac_cv_objext+:} false; then :
4677
$as_echo_n "(cached) " >&6
4679
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4680
/* end confdefs.h. */
4690
rm -f conftest.o conftest.obj
4691
if { { ac_try="$ac_compile"
4693
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4694
*) ac_try_echo=$ac_try;;
4696
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4697
$as_echo "$ac_try_echo"; } >&5
4698
(eval "$ac_compile") 2>&5
4700
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4701
test $ac_status = 0; }; then :
4702
for ac_file in conftest.o conftest.obj conftest.*; do
4703
test -f "$ac_file" || continue;
4705
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4706
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4711
$as_echo "$as_me: failed program was:" >&5
4712
sed 's/^/| /' conftest.$ac_ext >&5
4714
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4715
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4716
as_fn_error $? "cannot compute suffix of object files: cannot compile
4717
See \`config.log' for more details" "$LINENO" 5; }
4719
rm -f conftest.$ac_cv_objext conftest.$ac_ext
4721
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4722
$as_echo "$ac_cv_objext" >&6; }
4723
OBJEXT=$ac_cv_objext
4725
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4726
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4727
if ${ac_cv_c_compiler_gnu+:} false; then :
4728
$as_echo_n "(cached) " >&6
4730
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4731
/* end confdefs.h. */
4744
if ac_fn_c_try_compile "$LINENO"; then :
4749
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4750
ac_cv_c_compiler_gnu=$ac_compiler_gnu
4753
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4754
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4755
if test $ac_compiler_gnu = yes; then
4760
ac_test_CFLAGS=${CFLAGS+set}
4761
ac_save_CFLAGS=$CFLAGS
4762
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4763
$as_echo_n "checking whether $CC accepts -g... " >&6; }
4764
if ${ac_cv_prog_cc_g+:} false; then :
4765
$as_echo_n "(cached) " >&6
4767
ac_save_c_werror_flag=$ac_c_werror_flag
4768
ac_c_werror_flag=yes
4771
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4772
/* end confdefs.h. */
4782
if ac_fn_c_try_compile "$LINENO"; then :
4786
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4787
/* end confdefs.h. */
4797
if ac_fn_c_try_compile "$LINENO"; then :
4800
ac_c_werror_flag=$ac_save_c_werror_flag
4802
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4803
/* end confdefs.h. */
4813
if ac_fn_c_try_compile "$LINENO"; then :
4816
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4818
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4820
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4821
ac_c_werror_flag=$ac_save_c_werror_flag
4823
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4824
$as_echo "$ac_cv_prog_cc_g" >&6; }
4825
if test "$ac_test_CFLAGS" = set; then
4826
CFLAGS=$ac_save_CFLAGS
4827
elif test $ac_cv_prog_cc_g = yes; then
4828
if test "$GCC" = yes; then
4834
if test "$GCC" = yes; then
4840
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4841
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4842
if ${ac_cv_prog_cc_c89+:} false; then :
4843
$as_echo_n "(cached) " >&6
4845
ac_cv_prog_cc_c89=no
4847
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4848
/* end confdefs.h. */
4851
#include <sys/types.h>
4852
#include <sys/stat.h>
4853
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4854
struct buf { int x; };
4855
FILE * (*rcsopen) (struct buf *, struct stat *, int);
4856
static char *e (p, i)
4862
static char *f (char * (*g) (char **, int), char **p, ...)
4867
s = g (p, va_arg (v,int));
4872
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4873
function prototypes and stuff, but not '\xHH' hex character constants.
4874
These don't provoke an error unfortunately, instead are silently treated
4875
as 'x'. The following induces an error, until -std is added to get
4876
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4877
array size at least. It's necessary to write '\x00'==0 to get something
4878
that's true only with -std. */
4879
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4881
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4882
inside strings and character constants. */
4884
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4886
int test (int i, double x);
4887
struct s1 {int (*f) (int a);};
4888
struct s2 {int (*f) (double a);};
4889
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4895
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4900
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4901
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4903
CC="$ac_save_CC $ac_arg"
4904
if ac_fn_c_try_compile "$LINENO"; then :
4905
ac_cv_prog_cc_c89=$ac_arg
4907
rm -f core conftest.err conftest.$ac_objext
4908
test "x$ac_cv_prog_cc_c89" != "xno" && break
4910
rm -f conftest.$ac_ext
4915
case "x$ac_cv_prog_cc_c89" in
4917
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4918
$as_echo "none needed" >&6; } ;;
4920
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4921
$as_echo "unsupported" >&6; } ;;
4923
CC="$CC $ac_cv_prog_cc_c89"
4924
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4925
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4927
if test "x$ac_cv_prog_cc_c89" != xno; then :
4932
ac_cpp='$CPP $CPPFLAGS'
4933
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4934
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4935
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4937
depcc="$CC" am_compiler_list=
4939
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4940
$as_echo_n "checking dependency style of $depcc... " >&6; }
4941
if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4942
$as_echo_n "(cached) " >&6
4944
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4945
# We make a subdir and do the tests there. Otherwise we can end up
4946
# making bogus files that we don't know about and never remove. For
4947
# instance it was reported that on HP-UX the gcc test will end up
4948
# making a dummy file named `D' -- because `-MD' means `put the output
4951
# Copy depcomp to subdir because otherwise we won't find it if we're
4952
# using a relative directory.
4953
cp "$am_depcomp" conftest.dir
4955
# We will build objects and dependencies in a subdirectory because
4956
# it helps to detect inapplicable dependency modes. For instance
4957
# both Tru64's cc and ICC support -MD to output dependencies as a
4958
# side effect of compilation, but ICC will put the dependencies in
4959
# the current directory while Tru64 will put them in the object
4963
am_cv_CC_dependencies_compiler_type=none
4964
if test "$am_compiler_list" = ""; then
4965
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4968
case " $depcc " in #(
4969
*\ -arch\ *\ -arch\ *) am__universal=true ;;
4972
for depmode in $am_compiler_list; do
4973
# Setup a source with many dependencies, because some compilers
4974
# like to wrap large dependency lists on column 80 (with \), and
4975
# we should not choose a depcomp mode which is confused by this.
4977
# We need to recreate these files for each test, as the compiler may
4978
# overwrite some of them when testing with obscure command lines.
4979
# This happens at least with the AIX C compiler.
4981
for i in 1 2 3 4 5 6; do
4982
echo '#include "conftst'$i'.h"' >> sub/conftest.c
4983
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4984
# Solaris 8's {/usr,}/bin/sh.
4985
touch sub/conftst$i.h
4987
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4989
# We check with `-c' and `-o' for the sake of the "dashmstdout"
4990
# mode. It turns out that the SunPro C++ compiler does not properly
4991
# handle `-M -o', and we need to detect this. Also, some Intel
4992
# versions had trouble with output in subdirs
4993
am__obj=sub/conftest.${OBJEXT-o}
4994
am__minus_obj="-o $am__obj"
4997
# This depmode causes a compiler race in universal mode.
4998
test "$am__universal" = false || continue
5001
# after this tag, mechanisms are not by side-effect, so they'll
5002
# only be used when explicitly requested
5003
if test "x$enable_dependency_tracking" = xyes; then
5009
msvisualcpp | msvcmsys)
5010
# This compiler won't grok `-c -o', but also, the minuso test has
5011
# not run yet. These depmodes are late enough in the game, and
5012
# so weak that their functioning should not be impacted.
5013
am__obj=conftest.${OBJEXT-o}
5018
if depmode=$depmode \
5019
source=sub/conftest.c object=$am__obj \
5020
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5021
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5022
>/dev/null 2>conftest.err &&
5023
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5024
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5025
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5026
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5027
# icc doesn't choke on unknown options, it will just issue warnings
5028
# or remarks (even with -Werror). So we grep stderr for any message
5029
# that says an option was ignored or not supported.
5030
# When given -MP, icc 7.0 and 7.1 complain thusly:
5031
# icc: Command line warning: ignoring option '-M'; no argument required
5032
# The diagnosis changed in icc 8.0:
5033
# icc: Command line remark: option '-MP' not supported
5034
if (grep 'ignoring option' conftest.err ||
5035
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5036
am_cv_CC_dependencies_compiler_type=$depmode
5045
am_cv_CC_dependencies_compiler_type=none
5049
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5050
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5051
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5054
test "x$enable_dependency_tracking" != xno \
5055
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5057
am__fastdepCC_FALSE='#'
5059
am__fastdepCC_TRUE='#'
5060
am__fastdepCC_FALSE=
5065
CFLAGS="$tascel_save_CFLAGS"
5067
if test x$with_mpi_wrappers = xyes; then :
5070
# Extract the first word of "perl", so it can be a program name with args.
5071
set dummy perl; ac_word=$2
5072
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5073
$as_echo_n "checking for $ac_word... " >&6; }
5074
if ${ac_cv_path_PERL+:} false; then :
5075
$as_echo_n "(cached) " >&6
5079
ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5082
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5086
test -z "$as_dir" && as_dir=.
5087
for ac_exec_ext in '' $ac_executable_extensions; do
5088
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5089
ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5090
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5100
PERL=$ac_cv_path_PERL
5101
if test -n "$PERL"; then
5102
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
5103
$as_echo "$PERL" >&6; }
5105
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5106
$as_echo "no" >&6; }
5112
cat >inside.pl <<"EOF"
5114
$numargs = $#ARGV + 1;
5115
if ($numargs != 2) {
5116
print "Usage: wrapped.txt naked.txt\n";
5119
# Read each input file as a string (rather than a list).
5121
open WRAPPED, "$ARGV[0]" or die "Could not open wrapped text file: $!";
5122
$wrapped_lines = <WRAPPED>;
5124
open NAKED, "$ARGV[1]" or die "Could not open naked text file: $!";
5125
$naked_lines = <NAKED>;
5127
# Replace newlines, + from wrapped and naked lines.
5128
$wrapped_lines =~ tr/\n+/ /;
5129
$naked_lines =~ tr/\n+/ /;
5130
# Remove whitespace from beginning of wrapped and naked lines.
5131
$wrapped_lines =~ s/^\s+//;
5132
$naked_lines =~ s/^\s+//;
5133
# Remove whitespace from end of wrapped and naked lines.
5134
$wrapped_lines =~ s/\s+$//;
5135
$naked_lines =~ s/\s+$//;
5136
# If either wrapped_lines or naked_lines are empty, this is an error.
5137
# It is assumed that the particular version string which created the input
5138
# files should generate SOMETHING.
5139
unless ($wrapped_lines) {
5142
unless ($naked_lines) {
5145
# Can the naked lines be found within the wrapped lines?
5146
if ($wrapped_lines =~ /\Q$naked_lines\E/) {
5147
#print "Found as substring\n";
5150
# Are the naked lines exactly the same as the wrapped lines?
5151
elsif ($wrapped_lines eq $naked_lines) {
5152
#print "Found equal\n";
5156
#print "Not found\n";
5160
inside="$PERL inside.pl"
5164
compilers="bgxlc_r xlc_r" ;; #(
5166
compilers="bgxlc xlc pgcc pathcc icc sxcc fcc opencc suncc craycc gcc ecc cl ccc cc" ;; #(
5174
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for base $wrapped compiler" >&5
5175
$as_echo_n "checking for base $wrapped compiler... " >&6; }
5176
if ${ga_cv_mpic_naked+:} false; then :
5177
$as_echo_n "(cached) " >&6
5180
base="`$wrapped -show 2>/dev/null | sed 's/[ ].*$//' | head -1`"
5183
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5184
/* end confdefs.h. */
5194
if ac_fn_c_try_link "$LINENO"; then :
5195
ga_cv_mpic_naked="$base"
5197
rm -f core conftest.err conftest.$ac_objext \
5198
conftest$ac_exeext conftest.$ac_ext
5200
versions="--version -v -V -qversion"
5201
found_wrapped_version=0
5202
# Try separating stdout and stderr. Only compare stdout.
5203
if test "x$ga_cv_mpic_naked" = x; then :
5205
# prepend any CC/CXX/F77 the user may have specified
5206
compilers="$ga_orig_CC $compilers"
5207
echo "only comparing stdout" >&5
5208
for version in $versions
5210
echo "trying version=$version" >&5
5211
rm -f mpi.txt mpi.err naked.txt naked.err
5212
if $wrapped $version 1>mpi.txt 2>mpi.err; then :
5213
found_wrapped_version=1
5214
for naked_compiler in $compilers
5216
if test "x$naked_compiler" != "x$wrapped"; then :
5217
if $naked_compiler $version 1>naked.txt 2>naked.err; then :
5218
if $inside mpi.txt naked.txt >/dev/null; then :
5219
ga_cv_mpic_naked=$naked_compiler; break
5221
echo "inside.pl $wrapped $naked_compiler failed, skipping" >&5
5224
echo "$naked_compiler $version failed, skipping" >&5
5229
echo "$wrapped $version failed, skipping" >&5
5231
if test "x$ga_cv_mpic_naked" != x; then :
5237
# Perhaps none of the MPI compilers had a zero exit status (this is bad).
5238
# In this case we have to do a brute force match regardless of exit status.
5239
if test "x$found_wrapped_version" = x0; then :
5241
if test "x$ga_cv_mpic_naked" = x; then :
5243
echo "no zero exit status found for MPI compilers" >&5
5244
for version in $versions
5246
echo "trying version=$version" >&5
5247
rm -f mpi.txt mpi.err
5248
$wrapped $version 1>mpi.txt 2>mpi.err
5249
for naked_compiler in $compilers
5251
if test "x$naked_compiler" != "x$wrapped"; then :
5252
rm -f naked.txt naked.err
5253
if $naked_compiler $version 1>naked.txt 2>naked.err; then :
5254
if $inside mpi.txt naked.txt >/dev/null; then :
5255
ga_cv_mpic_naked=$naked_compiler; break
5257
echo "inside.pl $wrapped $naked_compiler failed, skipping" >&5
5260
echo "$naked_compiler $version failed, skipping" >&5
5264
if test "x$ga_cv_mpic_naked" != x; then :
5272
# Try by combining stdout/err into one file.
5273
if test "x$ga_cv_mpic_naked" = x; then :
5275
echo "try combining stdout and stderr into one file" >&5
5276
for version in $versions
5278
echo "trying version=$version" >&5
5279
rm -f mpi.txt naked.txt
5280
if $wrapped $version 1>mpi.txt 2>&1; then :
5281
for naked_compiler in $compilers
5283
if test "x$naked_compiler" != "x$wrapped"; then :
5284
if $naked_compiler $version 1>naked.txt 2>&1; then :
5285
if $inside mpi.txt naked.txt >/dev/null; then :
5286
ga_cv_mpic_naked=$naked_compiler; break
5288
echo "inside.pl $wrapped $naked_compiler failed, skipping" >&5
5291
echo "$naked_compiler $version failed, skipping" >&5
5296
echo "$wrapped $version failed, skipping" >&5
5298
if test "x$ga_cv_mpic_naked" != x; then :
5304
# If we got this far, then it's likely that the MPI compiler had a zero exit
5305
# status when it shouldn't have for one version flag, but later had a non-zero
5306
# exit status for a flag it shouldn't have. One false positive hid a false
5307
# negative. In this case, brute force compare all MPI compiler output against
5308
# all compiler output.
5309
if test "x$ga_cv_mpic_naked" = x; then :
5311
echo "we have a very badly behaving MPI compiler" >&5
5312
for version in $versions
5314
echo "trying version=$version" >&5
5315
rm -f mpi.txt mpi.err
5316
$wrapped $version 1>mpi.txt 2>mpi.err
5317
for naked_compiler in $compilers
5319
if test "x$naked_compiler" != "x$wrapped"; then :
5320
rm -f naked.txt naked.err
5321
if $naked_compiler $version 1>naked.txt 2>naked.err; then :
5322
if $inside mpi.txt naked.txt >/dev/null; then :
5323
ga_cv_mpic_naked=$naked_compiler; break
5325
echo "inside.pl $wrapped $naked_compiler failed, skipping" >&5
5328
echo "$naked_compiler $version failed, skipping" >&5
5332
if test "x$ga_cv_mpic_naked" != x; then :
5338
rm -f mpi.txt mpi.err naked.txt naked.err
5341
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ga_cv_mpic_naked" >&5
5342
$as_echo "$ga_cv_mpic_naked" >&6; }
5343
if test "x$ga_cv_mpic_naked" = x; then :
5344
as_fn_error $? "Could not determine the C compiler wrapped by MPI" "$LINENO" 5
5346
if test "x$ga_orig_CC" != x && test "x$ga_orig_CC" != "x$ga_cv_mpic_naked"; then :
5347
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unwrapped $wrapped ($ga_cv_mpic_naked) does not match user-specified $ga_orig_CC" >&5
5348
$as_echo "$as_me: WARNING: unwrapped $wrapped ($ga_cv_mpic_naked) does not match user-specified $ga_orig_CC" >&2;}
5356
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ga_arg_parse_sizeof_voidp" ""; then :
5360
for arg in $with_mpi ; do
5367
GA_MP_LIBS="$GA_MP_LIBS $arg" ;; #(
5369
GA_MP_LDFLAGS="$GA_MP_LDFLAGS $arg" ;; #(
5371
GA_MP_LDFLAGS="$GA_MP_LDFLAGS $arg" ;; #(
5373
GA_MP_LDFLAGS="$GA_MP_LDFLAGS $arg" ;; #(
5375
GA_MP_CPPFLAGS="$GA_MP_CPPFLAGS $arg" ;; #(
5377
GA_MP_LIBS="$GA_MP_LIBS $arg" ;; #(
5379
GA_MP_LIBS="$GA_MP_LIBS $arg" ;; #(
5381
if test -d $arg; then :
5382
GA_MP_LDFLAGS="$GA_MP_LDFLAGS -L$arg"
5384
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_mpi not parsed" >&5
5385
$as_echo "$as_me: WARNING: $arg of with_mpi not parsed" >&2;}
5388
if test -d $arg; then :
5389
GA_MP_LDFLAGS="$GA_MP_LDFLAGS -L$arg"
5391
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_mpi not parsed" >&5
5392
$as_echo "$as_me: WARNING: $arg of with_mpi not parsed" >&2;}
5395
if test -d $arg; then :
5396
GA_MP_CPPFLAGS="$GA_MP_CPPFLAGS -I$arg"
5398
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_mpi not parsed" >&5
5399
$as_echo "$as_me: WARNING: $arg of with_mpi not parsed" >&2;}
5402
if test -d $arg; then :
5403
GA_MP_CPPFLAGS="$GA_MP_CPPFLAGS -I$arg"
5405
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_mpi not parsed" >&5
5406
$as_echo "$as_me: WARNING: $arg of with_mpi not parsed" >&2;}
5409
ga_arg_parse_ok=no ;;
5411
# $arg didn't fit the most common cases
5412
# check for subdirectories e.g. lib,include
5413
if test "x$ga_arg_parse_ok" = xno; then :
5414
if test "x$ga_arg_parse_sizeof_voidp" = x8; then :
5415
if test -d $arg/lib64; then :
5416
GA_MP_LDFLAGS="$GA_MP_LDFLAGS -L$arg/lib64"; ga_arg_parse_ok=yes
5417
elif test -d $arg/lib; then :
5418
GA_MP_LDFLAGS="$GA_MP_LDFLAGS -L$arg/lib"; ga_arg_parse_ok=yes
5420
if test -d $arg/include64; then :
5421
GA_MP_CPPFLAGS="$GA_MP_CPPFLAGS -I$arg/include64"; ga_arg_parse_ok=yes
5422
elif test -d $arg/include; then :
5423
GA_MP_CPPFLAGS="$GA_MP_CPPFLAGS -I$arg/include"; ga_arg_parse_ok=yes
5426
if test -d $arg/lib; then :
5427
GA_MP_LDFLAGS="$GA_MP_LDFLAGS -L$arg/lib"; ga_arg_parse_ok=yes
5429
if test -d $arg/include; then :
5430
GA_MP_CPPFLAGS="$GA_MP_CPPFLAGS -I$arg/include"; ga_arg_parse_ok=yes
5434
# $arg still unknown, look for "lib" and "include" anywhere...
5435
if test "x$ga_arg_parse_ok" = xno; then :
5438
if test -d $arg; then :
5439
GA_MP_LDFLAGS="$GA_MP_LDFLAGS -L$arg"; ga_arg_parse_ok=yes
5442
if test -d $arg; then :
5443
GA_MP_CPPFLAGS="$GA_MP_CPPFLAGS -I$arg"; ga_arg_parse_ok=yes
5449
# warn user that $arg fell through
5450
if test "x$ga_arg_parse_ok" = xno; then :
5451
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_mpi not parsed" >&5
5452
$as_echo "$as_me: WARNING: $arg of with_mpi not parsed" >&2;}
5459
ac_cpp='$CPP $CPPFLAGS'
5460
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5461
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5462
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5466
ac_cpp='$CPP $CPPFLAGS'
5467
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5468
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5469
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5471
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5472
/* end confdefs.h. */
5477
int myargc; char **myargv; MPI_Init(&myargc, &myargv); MPI_Finalize();
5483
ac_cpp='$CPP $CPPFLAGS'
5484
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5485
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5486
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5489
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a simple C MPI program compiles" >&5
5490
$as_echo_n "checking whether a simple C MPI program compiles... " >&6; }
5491
if ${ga_cv_c_mpi_test_compile+:} false; then :
5492
$as_echo_n "(cached) " >&6
5494
ga_save_CPPFLAGS="$CPPFLAGS"; CPPFLAGS="$CPPFLAGS $GA_MP_CPPFLAGS"
5495
if ac_fn_c_try_compile "$LINENO"; then :
5496
ga_cv_c_mpi_test_compile=yes
5498
ga_cv_c_mpi_test_compile=no
5500
rm -f core conftest.err conftest.$ac_objext
5501
CPPFLAGS="$ga_save_CPPFLAGS"
5503
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ga_cv_c_mpi_test_compile" >&5
5504
$as_echo "$ga_cv_c_mpi_test_compile" >&6; }
5505
rm -f conftest.$ac_ext
5507
ac_cpp='$CPP $CPPFLAGS'
5508
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5509
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5510
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5512
if test "x$ga_cv_c_mpi_test_compile" = xno; then :
5513
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5514
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5515
as_fn_error $? "could not compile simple C MPI program
5516
See \`config.log' for more details" "$LINENO" 5; }
5520
# Hack to append .x to executables.
5525
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ga_target64_sizeof_voidp" ""; then :
5529
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TARGET 64bit-ness" >&5
5530
$as_echo_n "checking for TARGET 64bit-ness... " >&6; }
5531
if ${ga_cv_target+:} false; then :
5532
$as_echo_n "(cached) " >&6
5534
if test x$ga_target64_sizeof_voidp = x8; then :
5535
ga_cv_target=${ga_cv_target_base}64
5537
ga_cv_target=$ga_cv_target_base
5540
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ga_cv_target" >&5
5541
$as_echo "$ga_cv_target" >&6; }
5543
cat >>confdefs.h <<_ACEOF
5544
#define $ga_cv_target 1
5549
# Checks for C header files.
5551
# Checks for C typedefs, structures, and compiler characteristics.
5553
# Checks for C library functions.
5555
###############################################################################
5557
###############################################################################
5558
{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
5559
$as_echo "$as_me: " >&6;}
5560
{ $as_echo "$as_me:${as_lineno-$LINENO}: C++ compiler" >&5
5561
$as_echo "$as_me: C++ compiler" >&6;}
5562
{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
5563
$as_echo "$as_me: " >&6;}
5565
ac_cpp='$CXXCPP $CPPFLAGS'
5566
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5567
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5568
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5571
tascel_save_CXXFLAGS="$CXXFLAGS"
5573
case $ga_cv_target_base in #(
5575
ga_mpicxx_pref=mpixlcxx_r; ga_cxx_pref=bgxlC_r ;; #(
5579
# In the case of using MPI wrappers, set CXX=MPICXX since CXX will override
5580
# absolutely everything in our list of compilers.
5581
if test x$with_mpi_wrappers = xyes; then :
5582
if test "x$CXX" != "x$MPICXX"; then :
5585
case x$CXX:x$MPICXX in #(
5591
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPI compilers desired but CXX is set while MPICXX is unset." >&5
5592
$as_echo "$as_me: WARNING: MPI compilers desired but CXX is set while MPICXX is unset." >&2;}
5593
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: CXX will be ignored during compiler selection, but will be" >&5
5594
$as_echo "$as_me: WARNING: CXX will be ignored during compiler selection, but will be" >&2;}
5595
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: tested first during MPI compiler unwrapping. Perhaps you" >&5
5596
$as_echo "$as_me: WARNING: tested first during MPI compiler unwrapping. Perhaps you" >&2;}
5597
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: meant to set MPICXX instead of or in addition to CXX?" >&5
5598
$as_echo "$as_me: WARNING: meant to set MPICXX instead of or in addition to CXX?" >&2;}
5601
if test "x$CXX" != "x$MPICXX"; then :
5602
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPI compilers desired, MPICXX and CXX are set, and MPICXX!=CXX." >&5
5603
$as_echo "$as_me: WARNING: MPI compilers desired, MPICXX and CXX are set, and MPICXX!=CXX." >&2;}
5604
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Choosing MPICXX over CXX." >&5
5605
$as_echo "$as_me: WARNING: Choosing MPICXX over CXX." >&2;}
5606
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: CXX will be tested first during MPI compiler unwrapping." >&5
5607
$as_echo "$as_me: WARNING: CXX will be tested first during MPI compiler unwrapping." >&2;}
5611
as_fn_error $? "CXX/MPICXX case failure" "$LINENO" 5 ;;
5614
ga_cxx="icpc pgCC pathCC sxc++ xlC_r xlC bgxlC_r bgxlC openCC sunCC crayCC g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC"
5615
ga_mpicxx="mpic++ mpicxx mpiCC sxmpic++ hcp mpxlC_r mpxlC mpixlcxx_r mpixlcxx mpg++ mpc++ mpCC cmpic++ mpiFCC CC"
5616
if test x$with_mpi_wrappers = xyes; then :
5617
CXX_TO_TEST="$ga_mpicxx_pref $ga_mpicxx"
5619
CXX_TO_TEST="$ga_cxx_pref $ga_cxx"
5622
ac_cpp='$CXXCPP $CPPFLAGS'
5623
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5624
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5625
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5626
if test -z "$CXX"; then
5627
if test -n "$CCC"; then
5630
if test -n "$ac_tool_prefix"; then
5631
for ac_prog in $CXX_TO_TEST
5633
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5634
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5635
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5636
$as_echo_n "checking for $ac_word... " >&6; }
5637
if ${ac_cv_prog_CXX+:} false; then :
5638
$as_echo_n "(cached) " >&6
5640
if test -n "$CXX"; then
5641
ac_cv_prog_CXX="$CXX" # Let the user override the test.
5643
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5647
test -z "$as_dir" && as_dir=.
5648
for ac_exec_ext in '' $ac_executable_extensions; do
5649
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5650
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5651
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5661
if test -n "$CXX"; then
5662
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5663
$as_echo "$CXX" >&6; }
5665
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5666
$as_echo "no" >&6; }
5670
test -n "$CXX" && break
5673
if test -z "$CXX"; then
5675
for ac_prog in $CXX_TO_TEST
5677
# Extract the first word of "$ac_prog", so it can be a program name with args.
5678
set dummy $ac_prog; ac_word=$2
5679
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5680
$as_echo_n "checking for $ac_word... " >&6; }
5681
if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5682
$as_echo_n "(cached) " >&6
5684
if test -n "$ac_ct_CXX"; then
5685
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5687
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5691
test -z "$as_dir" && as_dir=.
5692
for ac_exec_ext in '' $ac_executable_extensions; do
5693
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5694
ac_cv_prog_ac_ct_CXX="$ac_prog"
5695
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5704
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5705
if test -n "$ac_ct_CXX"; then
5706
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5707
$as_echo "$ac_ct_CXX" >&6; }
5709
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5710
$as_echo "no" >&6; }
5714
test -n "$ac_ct_CXX" && break
5717
if test "x$ac_ct_CXX" = x; then
5720
case $cross_compiling:$ac_tool_warned in
5722
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5723
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5724
ac_tool_warned=yes ;;
5732
# Provide some information about the compiler.
5733
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5736
for ac_option in --version -v -V -qversion; do
5737
{ { ac_try="$ac_compiler $ac_option >&5"
5739
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5740
*) ac_try_echo=$ac_try;;
5742
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5743
$as_echo "$ac_try_echo"; } >&5
5744
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
5746
if test -s conftest.err; then
5748
... rest of stderr output deleted ...
5749
10q' conftest.err >conftest.er1
5750
cat conftest.er1 >&5
5752
rm -f conftest.er1 conftest.err
5753
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5754
test $ac_status = 0; }
5757
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5758
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5759
if ${ac_cv_cxx_compiler_gnu+:} false; then :
5760
$as_echo_n "(cached) " >&6
5762
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5763
/* end confdefs.h. */
5776
if ac_fn_cxx_try_compile "$LINENO"; then :
5781
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5782
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5785
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5786
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5787
if test $ac_compiler_gnu = yes; then
5792
ac_test_CXXFLAGS=${CXXFLAGS+set}
5793
ac_save_CXXFLAGS=$CXXFLAGS
5794
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5795
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
5796
if ${ac_cv_prog_cxx_g+:} false; then :
5797
$as_echo_n "(cached) " >&6
5799
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5800
ac_cxx_werror_flag=yes
5803
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5804
/* end confdefs.h. */
5814
if ac_fn_cxx_try_compile "$LINENO"; then :
5815
ac_cv_prog_cxx_g=yes
5818
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5819
/* end confdefs.h. */
5829
if ac_fn_cxx_try_compile "$LINENO"; then :
5832
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5834
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5835
/* end confdefs.h. */
5845
if ac_fn_cxx_try_compile "$LINENO"; then :
5846
ac_cv_prog_cxx_g=yes
5848
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5850
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5852
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5853
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5855
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5856
$as_echo "$ac_cv_prog_cxx_g" >&6; }
5857
if test "$ac_test_CXXFLAGS" = set; then
5858
CXXFLAGS=$ac_save_CXXFLAGS
5859
elif test $ac_cv_prog_cxx_g = yes; then
5860
if test "$GXX" = yes; then
5866
if test "$GXX" = yes; then
5873
ac_cpp='$CXXCPP $CPPFLAGS'
5874
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5875
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5876
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5878
depcc="$CXX" am_compiler_list=
5880
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5881
$as_echo_n "checking dependency style of $depcc... " >&6; }
5882
if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
5883
$as_echo_n "(cached) " >&6
5885
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5886
# We make a subdir and do the tests there. Otherwise we can end up
5887
# making bogus files that we don't know about and never remove. For
5888
# instance it was reported that on HP-UX the gcc test will end up
5889
# making a dummy file named `D' -- because `-MD' means `put the output
5892
# Copy depcomp to subdir because otherwise we won't find it if we're
5893
# using a relative directory.
5894
cp "$am_depcomp" conftest.dir
5896
# We will build objects and dependencies in a subdirectory because
5897
# it helps to detect inapplicable dependency modes. For instance
5898
# both Tru64's cc and ICC support -MD to output dependencies as a
5899
# side effect of compilation, but ICC will put the dependencies in
5900
# the current directory while Tru64 will put them in the object
5904
am_cv_CXX_dependencies_compiler_type=none
5905
if test "$am_compiler_list" = ""; then
5906
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5909
case " $depcc " in #(
5910
*\ -arch\ *\ -arch\ *) am__universal=true ;;
5913
for depmode in $am_compiler_list; do
5914
# Setup a source with many dependencies, because some compilers
5915
# like to wrap large dependency lists on column 80 (with \), and
5916
# we should not choose a depcomp mode which is confused by this.
5918
# We need to recreate these files for each test, as the compiler may
5919
# overwrite some of them when testing with obscure command lines.
5920
# This happens at least with the AIX C compiler.
5922
for i in 1 2 3 4 5 6; do
5923
echo '#include "conftst'$i'.h"' >> sub/conftest.c
5924
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5925
# Solaris 8's {/usr,}/bin/sh.
5926
touch sub/conftst$i.h
5928
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5930
# We check with `-c' and `-o' for the sake of the "dashmstdout"
5931
# mode. It turns out that the SunPro C++ compiler does not properly
5932
# handle `-M -o', and we need to detect this. Also, some Intel
5933
# versions had trouble with output in subdirs
5934
am__obj=sub/conftest.${OBJEXT-o}
5935
am__minus_obj="-o $am__obj"
5938
# This depmode causes a compiler race in universal mode.
5939
test "$am__universal" = false || continue
5942
# after this tag, mechanisms are not by side-effect, so they'll
5943
# only be used when explicitly requested
5944
if test "x$enable_dependency_tracking" = xyes; then
5950
msvisualcpp | msvcmsys)
5951
# This compiler won't grok `-c -o', but also, the minuso test has
5952
# not run yet. These depmodes are late enough in the game, and
5953
# so weak that their functioning should not be impacted.
5954
am__obj=conftest.${OBJEXT-o}
5959
if depmode=$depmode \
5960
source=sub/conftest.c object=$am__obj \
5961
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5962
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5963
>/dev/null 2>conftest.err &&
5964
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5965
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5966
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5967
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5968
# icc doesn't choke on unknown options, it will just issue warnings
5969
# or remarks (even with -Werror). So we grep stderr for any message
5970
# that says an option was ignored or not supported.
5971
# When given -MP, icc 7.0 and 7.1 complain thusly:
5972
# icc: Command line warning: ignoring option '-M'; no argument required
5973
# The diagnosis changed in icc 8.0:
5974
# icc: Command line remark: option '-MP' not supported
5975
if (grep 'ignoring option' conftest.err ||
5976
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5977
am_cv_CXX_dependencies_compiler_type=$depmode
5986
am_cv_CXX_dependencies_compiler_type=none
5990
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5991
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5992
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5995
test "x$enable_dependency_tracking" != xno \
5996
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5997
am__fastdepCXX_TRUE=
5998
am__fastdepCXX_FALSE='#'
6000
am__fastdepCXX_TRUE='#'
6001
am__fastdepCXX_FALSE=
6006
CXXFLAGS="$tascel_save_CXXFLAGS"
6008
if test x$with_mpi_wrappers = xyes; then :
6011
# Extract the first word of "perl", so it can be a program name with args.
6012
set dummy perl; ac_word=$2
6013
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6014
$as_echo_n "checking for $ac_word... " >&6; }
6015
if ${ac_cv_path_PERL+:} false; then :
6016
$as_echo_n "(cached) " >&6
6020
ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6023
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6027
test -z "$as_dir" && as_dir=.
6028
for ac_exec_ext in '' $ac_executable_extensions; do
6029
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6030
ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6031
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6041
PERL=$ac_cv_path_PERL
6042
if test -n "$PERL"; then
6043
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
6044
$as_echo "$PERL" >&6; }
6046
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6047
$as_echo "no" >&6; }
6053
cat >inside.pl <<"EOF"
6055
$numargs = $#ARGV + 1;
6056
if ($numargs != 2) {
6057
print "Usage: wrapped.txt naked.txt\n";
6060
# Read each input file as a string (rather than a list).
6062
open WRAPPED, "$ARGV[0]" or die "Could not open wrapped text file: $!";
6063
$wrapped_lines = <WRAPPED>;
6065
open NAKED, "$ARGV[1]" or die "Could not open naked text file: $!";
6066
$naked_lines = <NAKED>;
6068
# Replace newlines, + from wrapped and naked lines.
6069
$wrapped_lines =~ tr/\n+/ /;
6070
$naked_lines =~ tr/\n+/ /;
6071
# Remove whitespace from beginning of wrapped and naked lines.
6072
$wrapped_lines =~ s/^\s+//;
6073
$naked_lines =~ s/^\s+//;
6074
# Remove whitespace from end of wrapped and naked lines.
6075
$wrapped_lines =~ s/\s+$//;
6076
$naked_lines =~ s/\s+$//;
6077
# If either wrapped_lines or naked_lines are empty, this is an error.
6078
# It is assumed that the particular version string which created the input
6079
# files should generate SOMETHING.
6080
unless ($wrapped_lines) {
6083
unless ($naked_lines) {
6086
# Can the naked lines be found within the wrapped lines?
6087
if ($wrapped_lines =~ /\Q$naked_lines\E/) {
6088
#print "Found as substring\n";
6091
# Are the naked lines exactly the same as the wrapped lines?
6092
elsif ($wrapped_lines eq $naked_lines) {
6093
#print "Found equal\n";
6097
#print "Not found\n";
6101
inside="$PERL inside.pl"
6105
compilers="bgxlC_r xlC_r" ;; #(
6107
compilers="icpc pgCC pathCC sxc++ xlC bgxlC openCC sunCC crayCC g++ c++ gpp aCC cxx cc++ cl.exe FCC KCC RCC CC" ;; #(
6115
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for base $wrapped compiler" >&5
6116
$as_echo_n "checking for base $wrapped compiler... " >&6; }
6117
if ${ga_cv_mpicxx_naked+:} false; then :
6118
$as_echo_n "(cached) " >&6
6121
base="`$wrapped -show 2>/dev/null | sed 's/[ ].*$//' | head -1`"
6124
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6125
/* end confdefs.h. */
6135
if ac_fn_cxx_try_link "$LINENO"; then :
6136
ga_cv_mpicxx_naked="$base"
6138
rm -f core conftest.err conftest.$ac_objext \
6139
conftest$ac_exeext conftest.$ac_ext
6141
versions="--version -v -V -qversion"
6142
found_wrapped_version=0
6143
# Try separating stdout and stderr. Only compare stdout.
6144
if test "x$ga_cv_mpicxx_naked" = x; then :
6146
# prepend any CC/CXX/F77 the user may have specified
6147
compilers="$ga_orig_CXX $compilers"
6148
echo "only comparing stdout" >&5
6149
for version in $versions
6151
echo "trying version=$version" >&5
6152
rm -f mpi.txt mpi.err naked.txt naked.err
6153
if $wrapped $version 1>mpi.txt 2>mpi.err; then :
6154
found_wrapped_version=1
6155
for naked_compiler in $compilers
6157
if test "x$naked_compiler" != "x$wrapped"; then :
6158
if $naked_compiler $version 1>naked.txt 2>naked.err; then :
6159
if $inside mpi.txt naked.txt >/dev/null; then :
6160
ga_cv_mpicxx_naked=$naked_compiler; break
6162
echo "inside.pl $wrapped $naked_compiler failed, skipping" >&5
6165
echo "$naked_compiler $version failed, skipping" >&5
6170
echo "$wrapped $version failed, skipping" >&5
6172
if test "x$ga_cv_mpicxx_naked" != x; then :
6178
# Perhaps none of the MPI compilers had a zero exit status (this is bad).
6179
# In this case we have to do a brute force match regardless of exit status.
6180
if test "x$found_wrapped_version" = x0; then :
6182
if test "x$ga_cv_mpicxx_naked" = x; then :
6184
echo "no zero exit status found for MPI compilers" >&5
6185
for version in $versions
6187
echo "trying version=$version" >&5
6188
rm -f mpi.txt mpi.err
6189
$wrapped $version 1>mpi.txt 2>mpi.err
6190
for naked_compiler in $compilers
6192
if test "x$naked_compiler" != "x$wrapped"; then :
6193
rm -f naked.txt naked.err
6194
if $naked_compiler $version 1>naked.txt 2>naked.err; then :
6195
if $inside mpi.txt naked.txt >/dev/null; then :
6196
ga_cv_mpicxx_naked=$naked_compiler; break
6198
echo "inside.pl $wrapped $naked_compiler failed, skipping" >&5
6201
echo "$naked_compiler $version failed, skipping" >&5
6205
if test "x$ga_cv_mpicxx_naked" != x; then :
6213
# Try by combining stdout/err into one file.
6214
if test "x$ga_cv_mpicxx_naked" = x; then :
6216
echo "try combining stdout and stderr into one file" >&5
6217
for version in $versions
6219
echo "trying version=$version" >&5
6220
rm -f mpi.txt naked.txt
6221
if $wrapped $version 1>mpi.txt 2>&1; then :
6222
for naked_compiler in $compilers
6224
if test "x$naked_compiler" != "x$wrapped"; then :
6225
if $naked_compiler $version 1>naked.txt 2>&1; then :
6226
if $inside mpi.txt naked.txt >/dev/null; then :
6227
ga_cv_mpicxx_naked=$naked_compiler; break
6229
echo "inside.pl $wrapped $naked_compiler failed, skipping" >&5
6232
echo "$naked_compiler $version failed, skipping" >&5
6237
echo "$wrapped $version failed, skipping" >&5
6239
if test "x$ga_cv_mpicxx_naked" != x; then :
6245
# If we got this far, then it's likely that the MPI compiler had a zero exit
6246
# status when it shouldn't have for one version flag, but later had a non-zero
6247
# exit status for a flag it shouldn't have. One false positive hid a false
6248
# negative. In this case, brute force compare all MPI compiler output against
6249
# all compiler output.
6250
if test "x$ga_cv_mpicxx_naked" = x; then :
6252
echo "we have a very badly behaving MPI compiler" >&5
6253
for version in $versions
6255
echo "trying version=$version" >&5
6256
rm -f mpi.txt mpi.err
6257
$wrapped $version 1>mpi.txt 2>mpi.err
6258
for naked_compiler in $compilers
6260
if test "x$naked_compiler" != "x$wrapped"; then :
6261
rm -f naked.txt naked.err
6262
if $naked_compiler $version 1>naked.txt 2>naked.err; then :
6263
if $inside mpi.txt naked.txt >/dev/null; then :
6264
ga_cv_mpicxx_naked=$naked_compiler; break
6266
echo "inside.pl $wrapped $naked_compiler failed, skipping" >&5
6269
echo "$naked_compiler $version failed, skipping" >&5
6273
if test "x$ga_cv_mpicxx_naked" != x; then :
6279
rm -f mpi.txt mpi.err naked.txt naked.err
6282
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ga_cv_mpicxx_naked" >&5
6283
$as_echo "$ga_cv_mpicxx_naked" >&6; }
6284
if test "x$ga_cv_mpicxx_naked" = x; then :
6285
as_fn_error $? "Could not determine the C++ compiler wrapped by MPI" "$LINENO" 5
6287
if test "x$ga_orig_CXX" != x && test "x$ga_orig_CXX" != "x$ga_cv_mpicxx_naked"; then :
6288
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unwrapped $wrapped ($ga_cv_mpicxx_naked) does not match user-specified $ga_orig_CXX" >&5
6289
$as_echo "$as_me: WARNING: unwrapped $wrapped ($ga_cv_mpicxx_naked) does not match user-specified $ga_orig_CXX" >&2;}
6298
if test "x$with_mpi" != xno; then :
6301
ac_cpp='$CXXCPP $CPPFLAGS'
6302
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6303
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6304
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6306
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a simple C++ MPI program works" >&5
6307
$as_echo_n "checking whether a simple C++ MPI program works... " >&6; }
6308
if ${ga_cv_cxx_mpi_test+:} false; then :
6309
$as_echo_n "(cached) " >&6
6312
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6313
/* end confdefs.h. */
6318
int myargc; char **myargv; MPI_Init(&myargc, &myargv); MPI_Finalize();
6323
if ac_fn_cxx_try_link "$LINENO"; then :
6324
ga_cv_cxx_mpi_test=yes
6326
ga_cv_cxx_mpi_test=no
6328
rm -f core conftest.err conftest.$ac_objext \
6329
conftest$ac_exeext conftest.$ac_ext
6330
# That didn't work, so now let's try with our GA_MP_* flags.
6331
if test "x$ga_cv_cxx_mpi_test" = xno; then :
6333
ga_save_LIBS="$LIBS"; LIBS="$LIBS $GA_MP_LIBS"
6334
ga_save_CPPFLAGS="$CPPFLAGS"; CPPFLAGS="$CPPFLAGS $GA_MP_CPPFLAGS"
6335
ga_save_LDFLAGS="$LDFLAGS"; LDFLAGS="$LDFLAGS $GA_MP_LDFLAGS"
6336
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6337
/* end confdefs.h. */
6342
int myargc; char **myargv; MPI_Init(&myargc, &myargv); MPI_Finalize();
6347
if ac_fn_cxx_try_link "$LINENO"; then :
6348
ga_cv_cxx_mpi_test=yes
6350
ga_cv_cxx_mpi_test=no
6352
rm -f core conftest.err conftest.$ac_objext \
6353
conftest$ac_exeext conftest.$ac_ext
6354
LIBS="$ga_save_LIBS"
6355
CPPFLAGS="$ga_save_CPPFLAGS"
6356
LDFLAGS="$ga_save_LDFLAGS"
6359
# That didn't work, so now let's try with our GA_MP_* flags and various libs.
6360
if test "x$ga_cv_cxx_mpi_test" = xno; then :
6362
for lib in -lmpi -lmpich; do
6363
ga_save_LIBS="$LIBS"; LIBS="$LIBS $GA_MP_LIBS $lib"
6364
ga_save_CPPFLAGS="$CPPFLAGS"; CPPFLAGS="$CPPFLAGS $GA_MP_CPPFLAGS"
6365
ga_save_LDFLAGS="$LDFLAGS"; LDFLAGS="$LDFLAGS $GA_MP_LDFLAGS"
6366
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6367
/* end confdefs.h. */
6372
int myargc; char **myargv; MPI_Init(&myargc, &myargv); MPI_Finalize();
6377
if ac_fn_cxx_try_link "$LINENO"; then :
6378
ga_cv_cxx_mpi_test=$lib; break
6380
ga_cv_cxx_mpi_test=no
6382
rm -f core conftest.err conftest.$ac_objext \
6383
conftest$ac_exeext conftest.$ac_ext
6384
LIBS="$ga_save_LIBS"
6385
CPPFLAGS="$ga_save_CPPFLAGS"
6386
LDFLAGS="$ga_save_LDFLAGS"
6388
LIBS="$ga_save_LIBS"
6389
CPPFLAGS="$ga_save_CPPFLAGS"
6390
LDFLAGS="$ga_save_LDFLAGS"
6395
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ga_cv_cxx_mpi_test" >&5
6396
$as_echo "$ga_cv_cxx_mpi_test" >&6; }
6398
ac_cpp='$CXXCPP $CPPFLAGS'
6399
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6400
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6401
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6403
case $ga_cv_cxx_mpi_test in #(
6407
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6408
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6409
as_fn_error $? "could not link simple C++ MPI program
6410
See \`config.log' for more details" "$LINENO" 5; } ;; #(
6412
GA_MP_LIBS="$ga_cv_cxx_mpi_test" ;; #(
6420
# Checks for C++ header files.
6422
# Checks for C++ typedefs, structures, and compiler characteristics.
6424
ac_cpp='$CXXCPP $CPPFLAGS'
6425
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6426
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6427
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6428
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
6429
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
6430
if test -z "$CXXCPP"; then
6431
if ${ac_cv_prog_CXXCPP+:} false; then :
6432
$as_echo_n "(cached) " >&6
6434
# Double quotes because CXXCPP needs to be expanded
6435
for CXXCPP in "$CXX -E" "/lib/cpp"
6438
for ac_cxx_preproc_warn_flag in '' yes
6440
# Use a header file that comes with gcc, so configuring glibc
6441
# with a fresh cross-compiler works.
6442
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6443
# <limits.h> exists even on freestanding compilers.
6444
# On the NeXT, cc -E runs the code through the compiler's parser,
6445
# not just through cpp. "Syntax error" is here to catch this case.
6446
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6447
/* end confdefs.h. */
6449
# include <limits.h>
6451
# include <assert.h>
6455
if ac_fn_cxx_try_cpp "$LINENO"; then :
6458
# Broken: fails on valid input.
6461
rm -f conftest.err conftest.i conftest.$ac_ext
6463
# OK, works on sane cases. Now check whether nonexistent headers
6464
# can be detected and how.
6465
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6466
/* end confdefs.h. */
6467
#include <ac_nonexistent.h>
6469
if ac_fn_cxx_try_cpp "$LINENO"; then :
6470
# Broken: success on invalid input.
6473
# Passes both tests.
6477
rm -f conftest.err conftest.i conftest.$ac_ext
6480
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6481
rm -f conftest.i conftest.err conftest.$ac_ext
6482
if $ac_preproc_ok; then :
6487
ac_cv_prog_CXXCPP=$CXXCPP
6490
CXXCPP=$ac_cv_prog_CXXCPP
6492
ac_cv_prog_CXXCPP=$CXXCPP
6494
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
6495
$as_echo "$CXXCPP" >&6; }
6497
for ac_cxx_preproc_warn_flag in '' yes
6499
# Use a header file that comes with gcc, so configuring glibc
6500
# with a fresh cross-compiler works.
6501
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6502
# <limits.h> exists even on freestanding compilers.
6503
# On the NeXT, cc -E runs the code through the compiler's parser,
6504
# not just through cpp. "Syntax error" is here to catch this case.
6505
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6506
/* end confdefs.h. */
6508
# include <limits.h>
6510
# include <assert.h>
6514
if ac_fn_cxx_try_cpp "$LINENO"; then :
6517
# Broken: fails on valid input.
6520
rm -f conftest.err conftest.i conftest.$ac_ext
6522
# OK, works on sane cases. Now check whether nonexistent headers
6523
# can be detected and how.
6524
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6525
/* end confdefs.h. */
6526
#include <ac_nonexistent.h>
6528
if ac_fn_cxx_try_cpp "$LINENO"; then :
6529
# Broken: success on invalid input.
6532
# Passes both tests.
6536
rm -f conftest.err conftest.i conftest.$ac_ext
6539
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6540
rm -f conftest.i conftest.err conftest.$ac_ext
6541
if $ac_preproc_ok; then :
6544
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6545
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6546
as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
6547
See \`config.log' for more details" "$LINENO" 5; }
6551
ac_cpp='$CXXCPP $CPPFLAGS'
6552
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6553
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6554
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6557
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6558
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6559
if ${ac_cv_path_GREP+:} false; then :
6560
$as_echo_n "(cached) " >&6
6562
if test -z "$GREP"; then
6563
ac_path_GREP_found=false
6564
# Loop through the user's path and test for each of PROGNAME-LIST
6565
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6566
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6569
test -z "$as_dir" && as_dir=.
6570
for ac_prog in grep ggrep; do
6571
for ac_exec_ext in '' $ac_executable_extensions; do
6572
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6573
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6574
# Check for GNU ac_path_GREP and select it if it is found.
6575
# Check for GNU $ac_path_GREP
6576
case `"$ac_path_GREP" --version 2>&1` in
6578
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6581
$as_echo_n 0123456789 >"conftest.in"
6584
cat "conftest.in" "conftest.in" >"conftest.tmp"
6585
mv "conftest.tmp" "conftest.in"
6586
cp "conftest.in" "conftest.nl"
6587
$as_echo 'GREP' >> "conftest.nl"
6588
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6589
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6590
as_fn_arith $ac_count + 1 && ac_count=$as_val
6591
if test $ac_count -gt ${ac_path_GREP_max-0}; then
6592
# Best one so far, save it but keep looking for a better one
6593
ac_cv_path_GREP="$ac_path_GREP"
6594
ac_path_GREP_max=$ac_count
6596
# 10*(2^10) chars as input seems more than enough
6597
test $ac_count -gt 10 && break
6599
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6602
$ac_path_GREP_found && break 3
6607
if test -z "$ac_cv_path_GREP"; then
6608
as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6611
ac_cv_path_GREP=$GREP
6615
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6616
$as_echo "$ac_cv_path_GREP" >&6; }
6617
GREP="$ac_cv_path_GREP"
6620
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6621
$as_echo_n "checking for egrep... " >&6; }
6622
if ${ac_cv_path_EGREP+:} false; then :
6623
$as_echo_n "(cached) " >&6
6625
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6626
then ac_cv_path_EGREP="$GREP -E"
6628
if test -z "$EGREP"; then
6629
ac_path_EGREP_found=false
6630
# Loop through the user's path and test for each of PROGNAME-LIST
6631
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6632
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6635
test -z "$as_dir" && as_dir=.
6636
for ac_prog in egrep; do
6637
for ac_exec_ext in '' $ac_executable_extensions; do
6638
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6639
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6640
# Check for GNU ac_path_EGREP and select it if it is found.
6641
# Check for GNU $ac_path_EGREP
6642
case `"$ac_path_EGREP" --version 2>&1` in
6644
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6647
$as_echo_n 0123456789 >"conftest.in"
6650
cat "conftest.in" "conftest.in" >"conftest.tmp"
6651
mv "conftest.tmp" "conftest.in"
6652
cp "conftest.in" "conftest.nl"
6653
$as_echo 'EGREP' >> "conftest.nl"
6654
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6655
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6656
as_fn_arith $ac_count + 1 && ac_count=$as_val
6657
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6658
# Best one so far, save it but keep looking for a better one
6659
ac_cv_path_EGREP="$ac_path_EGREP"
6660
ac_path_EGREP_max=$ac_count
6662
# 10*(2^10) chars as input seems more than enough
6663
test $ac_count -gt 10 && break
6665
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6668
$ac_path_EGREP_found && break 3
6673
if test -z "$ac_cv_path_EGREP"; then
6674
as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6677
ac_cv_path_EGREP=$EGREP
6682
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6683
$as_echo "$ac_cv_path_EGREP" >&6; }
6684
EGREP="$ac_cv_path_EGREP"
6687
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6688
$as_echo_n "checking for ANSI C header files... " >&6; }
6689
if ${ac_cv_header_stdc+:} false; then :
6690
$as_echo_n "(cached) " >&6
6692
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6693
/* end confdefs.h. */
6707
if ac_fn_cxx_try_compile "$LINENO"; then :
6708
ac_cv_header_stdc=yes
6710
ac_cv_header_stdc=no
6712
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6714
if test $ac_cv_header_stdc = yes; then
6715
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6716
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6717
/* end confdefs.h. */
6721
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6722
$EGREP "memchr" >/dev/null 2>&1; then :
6725
ac_cv_header_stdc=no
6731
if test $ac_cv_header_stdc = yes; then
6732
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6733
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6734
/* end confdefs.h. */
6738
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6739
$EGREP "free" >/dev/null 2>&1; then :
6742
ac_cv_header_stdc=no
6748
if test $ac_cv_header_stdc = yes; then
6749
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6750
if test "$cross_compiling" = yes; then :
6753
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6754
/* end confdefs.h. */
6757
#if ((' ' & 0x0FF) == 0x020)
6758
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6759
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6761
# define ISLOWER(c) \
6762
(('a' <= (c) && (c) <= 'i') \
6763
|| ('j' <= (c) && (c) <= 'r') \
6764
|| ('s' <= (c) && (c) <= 'z'))
6765
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6768
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6773
for (i = 0; i < 256; i++)
6774
if (XOR (islower (i), ISLOWER (i))
6775
|| toupper (i) != TOUPPER (i))
6780
if ac_fn_cxx_try_run "$LINENO"; then :
6783
ac_cv_header_stdc=no
6785
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6786
conftest.$ac_objext conftest.beam conftest.$ac_ext
6791
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6792
$as_echo "$ac_cv_header_stdc" >&6; }
6793
if test $ac_cv_header_stdc = yes; then
6795
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6799
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6800
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6801
inttypes.h stdint.h unistd.h
6803
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6804
ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6806
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6807
cat >>confdefs.h <<_ACEOF
6808
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6816
ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6817
case $ac_cv_c_int64_t in #(
6821
cat >>confdefs.h <<_ACEOF
6822
#define int64_t $ac_cv_c_int64_t
6828
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
6829
$as_echo_n "checking for long double... " >&6; }
6830
if ${ac_cv_type_long_double+:} false; then :
6831
$as_echo_n "(cached) " >&6
6833
if test "$GCC" = yes; then
6834
ac_cv_type_long_double=yes
6836
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6837
/* end confdefs.h. */
6838
/* The Stardent Vistra knows sizeof (long double), but does
6840
long double foo = 0.0L;
6844
static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
6845
sizeof (double) <= sizeof (long double))];
6852
if ac_fn_cxx_try_compile "$LINENO"; then :
6853
ac_cv_type_long_double=yes
6855
ac_cv_type_long_double=no
6857
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6860
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
6861
$as_echo "$ac_cv_type_long_double" >&6; }
6862
if test $ac_cv_type_long_double = yes; then
6864
$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
6869
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6870
$as_echo_n "checking for long long int... " >&6; }
6871
if ${ac_cv_type_long_long_int+:} false; then :
6872
$as_echo_n "(cached) " >&6
6874
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6875
/* end confdefs.h. */
6877
/* For now, do not test the preprocessor; as of 2007 there are too many
6878
implementations with broken preprocessors. Perhaps this can
6879
be revisited in 2012. In the meantime, code should not expect
6880
#if to work with literals wider than 32 bits. */
6881
/* Test literals. */
6882
long long int ll = 9223372036854775807ll;
6883
long long int nll = -9223372036854775807LL;
6884
unsigned long long int ull = 18446744073709551615ULL;
6885
/* Test constant expressions. */
6886
typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6888
typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6894
/* Test availability of runtime routines for shift and division. */
6895
long long int llmax = 9223372036854775807ll;
6896
unsigned long long int ullmax = 18446744073709551615ull;
6897
return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6898
| (llmax / ll) | (llmax % ll)
6899
| (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6900
| (ullmax / ull) | (ullmax % ull));
6906
if ac_fn_cxx_try_link "$LINENO"; then :
6907
if test "$cross_compiling" = yes; then :
6908
ac_cv_type_long_long_int=yes
6910
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6911
/* end confdefs.h. */
6915
(1LL << (sizeof (long long int) * CHAR_BIT - 2))
6916
# define LLONG_MAX (HALF - 1 + HALF)
6921
long long int n = 1;
6925
long long int m = n << i;
6928
if (LLONG_MAX / 2 < m)
6936
if ac_fn_cxx_try_run "$LINENO"; then :
6937
ac_cv_type_long_long_int=yes
6939
ac_cv_type_long_long_int=no
6941
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6942
conftest.$ac_objext conftest.beam conftest.$ac_ext
6946
ac_cv_type_long_long_int=no
6948
rm -f core conftest.err conftest.$ac_objext \
6949
conftest$ac_exeext conftest.$ac_ext
6951
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6952
$as_echo "$ac_cv_type_long_long_int" >&6; }
6953
if test $ac_cv_type_long_long_int = yes; then
6955
$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6959
ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6960
if test "x$ac_cv_type_size_t" = xyes; then :
6964
cat >>confdefs.h <<_ACEOF
6965
#define size_t unsigned int
6971
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6972
$as_echo_n "checking for unsigned long long int... " >&6; }
6973
if ${ac_cv_type_unsigned_long_long_int+:} false; then :
6974
$as_echo_n "(cached) " >&6
6976
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6977
/* end confdefs.h. */
6979
/* For now, do not test the preprocessor; as of 2007 there are too many
6980
implementations with broken preprocessors. Perhaps this can
6981
be revisited in 2012. In the meantime, code should not expect
6982
#if to work with literals wider than 32 bits. */
6983
/* Test literals. */
6984
long long int ll = 9223372036854775807ll;
6985
long long int nll = -9223372036854775807LL;
6986
unsigned long long int ull = 18446744073709551615ULL;
6987
/* Test constant expressions. */
6988
typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6990
typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6996
/* Test availability of runtime routines for shift and division. */
6997
long long int llmax = 9223372036854775807ll;
6998
unsigned long long int ullmax = 18446744073709551615ull;
6999
return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
7000
| (llmax / ll) | (llmax % ll)
7001
| (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
7002
| (ullmax / ull) | (ullmax % ull));
7008
if ac_fn_cxx_try_link "$LINENO"; then :
7009
ac_cv_type_unsigned_long_long_int=yes
7011
ac_cv_type_unsigned_long_long_int=no
7013
rm -f core conftest.err conftest.$ac_objext \
7014
conftest$ac_exeext conftest.$ac_ext
7016
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
7017
$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
7018
if test $ac_cv_type_unsigned_long_long_int = yes; then
7020
$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
7025
# Checks for C++ type sizes.
7026
# The cast to long int works around a bug in the HP C Compiler
7027
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7028
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7029
# This bug is HP SR number 8606223364.
7030
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
7031
$as_echo_n "checking size of void*... " >&6; }
7032
if ${ac_cv_sizeof_voidp+:} false; then :
7033
$as_echo_n "(cached) " >&6
7035
if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp" "$ac_includes_default"; then :
7038
if test "$ac_cv_type_voidp" = yes; then
7039
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7040
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7041
as_fn_error 77 "cannot compute sizeof (void*)
7042
See \`config.log' for more details" "$LINENO" 5; }
7044
ac_cv_sizeof_voidp=0
7049
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
7050
$as_echo "$ac_cv_sizeof_voidp" >&6; }
7054
cat >>confdefs.h <<_ACEOF
7055
#define SIZEOF_VOIDP $ac_cv_sizeof_voidp
7059
# The cast to long int works around a bug in the HP C Compiler
7060
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7061
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7062
# This bug is HP SR number 8606223364.
7063
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
7064
$as_echo_n "checking size of char... " >&6; }
7065
if ${ac_cv_sizeof_char+:} false; then :
7066
$as_echo_n "(cached) " >&6
7068
if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
7071
if test "$ac_cv_type_char" = yes; then
7072
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7073
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7074
as_fn_error 77 "cannot compute sizeof (char)
7075
See \`config.log' for more details" "$LINENO" 5; }
7082
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
7083
$as_echo "$ac_cv_sizeof_char" >&6; }
7087
cat >>confdefs.h <<_ACEOF
7088
#define SIZEOF_CHAR $ac_cv_sizeof_char
7092
# The cast to long int works around a bug in the HP C Compiler
7093
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7094
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7095
# This bug is HP SR number 8606223364.
7096
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
7097
$as_echo_n "checking size of short... " >&6; }
7098
if ${ac_cv_sizeof_short+:} false; then :
7099
$as_echo_n "(cached) " >&6
7101
if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
7104
if test "$ac_cv_type_short" = yes; then
7105
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7106
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7107
as_fn_error 77 "cannot compute sizeof (short)
7108
See \`config.log' for more details" "$LINENO" 5; }
7110
ac_cv_sizeof_short=0
7115
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
7116
$as_echo "$ac_cv_sizeof_short" >&6; }
7120
cat >>confdefs.h <<_ACEOF
7121
#define SIZEOF_SHORT $ac_cv_sizeof_short
7125
# The cast to long int works around a bug in the HP C Compiler
7126
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7127
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7128
# This bug is HP SR number 8606223364.
7129
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
7130
$as_echo_n "checking size of int... " >&6; }
7131
if ${ac_cv_sizeof_int+:} false; then :
7132
$as_echo_n "(cached) " >&6
7134
if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
7137
if test "$ac_cv_type_int" = yes; then
7138
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7139
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7140
as_fn_error 77 "cannot compute sizeof (int)
7141
See \`config.log' for more details" "$LINENO" 5; }
7148
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
7149
$as_echo "$ac_cv_sizeof_int" >&6; }
7153
cat >>confdefs.h <<_ACEOF
7154
#define SIZEOF_INT $ac_cv_sizeof_int
7158
# The cast to long int works around a bug in the HP C Compiler
7159
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7160
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7161
# This bug is HP SR number 8606223364.
7162
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
7163
$as_echo_n "checking size of long... " >&6; }
7164
if ${ac_cv_sizeof_long+:} false; then :
7165
$as_echo_n "(cached) " >&6
7167
if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
7170
if test "$ac_cv_type_long" = yes; then
7171
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7172
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7173
as_fn_error 77 "cannot compute sizeof (long)
7174
See \`config.log' for more details" "$LINENO" 5; }
7181
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
7182
$as_echo "$ac_cv_sizeof_long" >&6; }
7186
cat >>confdefs.h <<_ACEOF
7187
#define SIZEOF_LONG $ac_cv_sizeof_long
7191
if test x$ac_cv_type_long_long_int = xyes; then :
7192
# The cast to long int works around a bug in the HP C Compiler
7193
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7194
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7195
# This bug is HP SR number 8606223364.
7196
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
7197
$as_echo_n "checking size of long long... " >&6; }
7198
if ${ac_cv_sizeof_long_long+:} false; then :
7199
$as_echo_n "(cached) " >&6
7201
if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
7204
if test "$ac_cv_type_long_long" = yes; then
7205
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7206
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7207
as_fn_error 77 "cannot compute sizeof (long long)
7208
See \`config.log' for more details" "$LINENO" 5; }
7210
ac_cv_sizeof_long_long=0
7215
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
7216
$as_echo "$ac_cv_sizeof_long_long" >&6; }
7220
cat >>confdefs.h <<_ACEOF
7221
#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
7226
# The cast to long int works around a bug in the HP C Compiler
7227
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7228
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7229
# This bug is HP SR number 8606223364.
7230
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
7231
$as_echo_n "checking size of float... " >&6; }
7232
if ${ac_cv_sizeof_float+:} false; then :
7233
$as_echo_n "(cached) " >&6
7235
if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
7238
if test "$ac_cv_type_float" = yes; then
7239
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7240
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7241
as_fn_error 77 "cannot compute sizeof (float)
7242
See \`config.log' for more details" "$LINENO" 5; }
7244
ac_cv_sizeof_float=0
7249
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
7250
$as_echo "$ac_cv_sizeof_float" >&6; }
7254
cat >>confdefs.h <<_ACEOF
7255
#define SIZEOF_FLOAT $ac_cv_sizeof_float
7259
# The cast to long int works around a bug in the HP C Compiler
7260
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7261
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7262
# This bug is HP SR number 8606223364.
7263
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
7264
$as_echo_n "checking size of double... " >&6; }
7265
if ${ac_cv_sizeof_double+:} false; then :
7266
$as_echo_n "(cached) " >&6
7268
if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
7271
if test "$ac_cv_type_double" = yes; then
7272
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7273
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7274
as_fn_error 77 "cannot compute sizeof (double)
7275
See \`config.log' for more details" "$LINENO" 5; }
7277
ac_cv_sizeof_double=0
7282
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
7283
$as_echo "$ac_cv_sizeof_double" >&6; }
7287
cat >>confdefs.h <<_ACEOF
7288
#define SIZEOF_DOUBLE $ac_cv_sizeof_double
7292
if test x$ac_cv_type_long_double = xyes; then :
7293
# The cast to long int works around a bug in the HP C Compiler
7294
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7295
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7296
# This bug is HP SR number 8606223364.
7297
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
7298
$as_echo_n "checking size of long double... " >&6; }
7299
if ${ac_cv_sizeof_long_double+:} false; then :
7300
$as_echo_n "(cached) " >&6
7302
if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
7305
if test "$ac_cv_type_long_double" = yes; then
7306
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7307
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7308
as_fn_error 77 "cannot compute sizeof (long double)
7309
See \`config.log' for more details" "$LINENO" 5; }
7311
ac_cv_sizeof_long_double=0
7316
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
7317
$as_echo "$ac_cv_sizeof_long_double" >&6; }
7321
cat >>confdefs.h <<_ACEOF
7322
#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
7328
# Checks for C++ library functions.
7331
ac_cpp='$CPP $CPPFLAGS'
7332
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7333
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7334
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7337
###############################################################################
7339
###############################################################################
7340
{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
7341
$as_echo "$as_me: " >&6;}
7342
{ $as_echo "$as_me:${as_lineno-$LINENO}: Fortran compiler" >&5
7343
$as_echo "$as_me: Fortran compiler" >&6;}
7344
{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
7345
$as_echo "$as_me: " >&6;}
7347
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7348
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7349
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7352
tascel_save_FFLAGS="$FFLAGS"
7354
case $ga_cv_target_base in #(
7356
ga_mpif77_pref=mpixlf77_r;ga_f77_pref=bgxlf_r ;; #(
7358
ga_mpif77_pref=mpxlf95; ga_f77_pref=blrts_xlf95 ;; #(
7362
# If FC is set, override F77. Similarly for MPIFC/MPIF77 and FCFLAGS/FFLAGS.
7363
if test "x$FC" != x; then :
7366
if test "x$MPIFC" != x; then :
7369
if test "x$FCFLAGS" != x; then :
7372
# In the case of using MPI wrappers, set F77=MPIF77 since F77 will override
7373
# absolutely everything in our list of compilers.
7374
# Save F77, just in case.
7375
if test x$with_mpi_wrappers = xyes; then :
7376
if test "x$F77" != "x$MPIF77"; then :
7379
case x$F77:x$MPIF77 in #(
7385
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPI compilers desired but F77 is set while MPIF77 is unset." >&5
7386
$as_echo "$as_me: WARNING: MPI compilers desired but F77 is set while MPIF77 is unset." >&2;}
7387
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: F77 will be ignored during compiler selection, but will be" >&5
7388
$as_echo "$as_me: WARNING: F77 will be ignored during compiler selection, but will be" >&2;}
7389
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: tested first during MPI compiler unwrapping. Perhaps you" >&5
7390
$as_echo "$as_me: WARNING: tested first during MPI compiler unwrapping. Perhaps you" >&2;}
7391
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: meant to set MPIF77 instead of or in addition to F77?" >&5
7392
$as_echo "$as_me: WARNING: meant to set MPIF77 instead of or in addition to F77?" >&2;}
7395
if test "x$F77" != "x$MPIF77"; then :
7396
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPI compilers desired, MPIF77 and F77 are set, and MPIF77!=F77." >&5
7397
$as_echo "$as_me: WARNING: MPI compilers desired, MPIF77 and F77 are set, and MPIF77!=F77." >&2;}
7398
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Choosing MPIF77 over F77." >&5
7399
$as_echo "$as_me: WARNING: Choosing MPIF77 over F77." >&2;}
7400
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: F77 will be tested first during MPI compiler unwrapping." >&5
7401
$as_echo "$as_me: WARNING: F77 will be tested first during MPI compiler unwrapping." >&2;}
7405
as_fn_error $? "F77/MPIF77 case failure" "$LINENO" 5 ;;
7408
ga_mpif95="mpif95 mpxlf95_r mpxlf95 ftn"
7409
ga_mpif90="mpif90 mpxlf90_r mpxlf90 mpf90 cmpif90c sxmpif90"
7410
ga_mpif77="mpif77 hf77 mpxlf_r mpxlf mpifrt mpf77 cmpifc"
7411
ga_f95="xlf95 pgf95 pathf95 ifort g95 f95 fort ifc efc openf95 sunf95 crayftn gfortran lf95 ftn"
7412
ga_f90="xlf90 f90 pgf90 pghpf pathf90 epcf90 sxf90 openf90 sunf90"
7413
ga_f77="xlf f77 frt pgf77 pathf77 g77 cf77 fort77 fl32 af77"
7414
if test x$with_mpi_wrappers = xyes; then :
7415
F77_TO_TEST="$ga_mpif77_pref $ga_mpif95 $ga_mpif90 $ga_mpif77"
7417
F77_TO_TEST="$ga_f77_pref $ga_f95 $ga_f90 $ga_f77"
7420
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7421
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7422
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7423
if test -n "$ac_tool_prefix"; then
7424
for ac_prog in $F77_TO_TEST
7426
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7427
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7428
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7429
$as_echo_n "checking for $ac_word... " >&6; }
7430
if ${ac_cv_prog_F77+:} false; then :
7431
$as_echo_n "(cached) " >&6
7433
if test -n "$F77"; then
7434
ac_cv_prog_F77="$F77" # Let the user override the test.
7436
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7440
test -z "$as_dir" && as_dir=.
7441
for ac_exec_ext in '' $ac_executable_extensions; do
7442
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7443
ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7444
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7454
if test -n "$F77"; then
7455
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
7456
$as_echo "$F77" >&6; }
7458
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7459
$as_echo "no" >&6; }
7463
test -n "$F77" && break
7466
if test -z "$F77"; then
7468
for ac_prog in $F77_TO_TEST
7470
# Extract the first word of "$ac_prog", so it can be a program name with args.
7471
set dummy $ac_prog; ac_word=$2
7472
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7473
$as_echo_n "checking for $ac_word... " >&6; }
7474
if ${ac_cv_prog_ac_ct_F77+:} false; then :
7475
$as_echo_n "(cached) " >&6
7477
if test -n "$ac_ct_F77"; then
7478
ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7480
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7484
test -z "$as_dir" && as_dir=.
7485
for ac_exec_ext in '' $ac_executable_extensions; do
7486
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7487
ac_cv_prog_ac_ct_F77="$ac_prog"
7488
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7497
ac_ct_F77=$ac_cv_prog_ac_ct_F77
7498
if test -n "$ac_ct_F77"; then
7499
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
7500
$as_echo "$ac_ct_F77" >&6; }
7502
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7503
$as_echo "no" >&6; }
7507
test -n "$ac_ct_F77" && break
7510
if test "x$ac_ct_F77" = x; then
7513
case $cross_compiling:$ac_tool_warned in
7515
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7516
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7517
ac_tool_warned=yes ;;
7524
# Provide some information about the compiler.
7525
$as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
7528
for ac_option in --version -v -V -qversion; do
7529
{ { ac_try="$ac_compiler $ac_option >&5"
7531
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7532
*) ac_try_echo=$ac_try;;
7534
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7535
$as_echo "$ac_try_echo"; } >&5
7536
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
7538
if test -s conftest.err; then
7540
... rest of stderr output deleted ...
7541
10q' conftest.err >conftest.er1
7542
cat conftest.er1 >&5
7544
rm -f conftest.er1 conftest.err
7545
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7546
test $ac_status = 0; }
7550
# If we don't use `.F' as extension, the preprocessor is not run on the
7551
# input file. (Note that this only needs to work for GNU compilers.)
7554
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
7555
$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
7556
if ${ac_cv_f77_compiler_gnu+:} false; then :
7557
$as_echo_n "(cached) " >&6
7559
cat > conftest.$ac_ext <<_ACEOF
7567
if ac_fn_f77_try_compile "$LINENO"; then :
7572
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7573
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7576
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
7577
$as_echo "$ac_cv_f77_compiler_gnu" >&6; }
7579
ac_test_FFLAGS=${FFLAGS+set}
7580
ac_save_FFLAGS=$FFLAGS
7582
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
7583
$as_echo_n "checking whether $F77 accepts -g... " >&6; }
7584
if ${ac_cv_prog_f77_g+:} false; then :
7585
$as_echo_n "(cached) " >&6
7588
cat > conftest.$ac_ext <<_ACEOF
7593
if ac_fn_f77_try_compile "$LINENO"; then :
7594
ac_cv_prog_f77_g=yes
7598
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7601
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
7602
$as_echo "$ac_cv_prog_f77_g" >&6; }
7603
if test "$ac_test_FFLAGS" = set; then
7604
FFLAGS=$ac_save_FFLAGS
7605
elif test $ac_cv_prog_f77_g = yes; then
7606
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7612
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7619
if test $ac_compiler_gnu = yes; then
7625
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7626
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7627
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7630
FFLAGS="$tascel_save_FFLAGS"
7632
# If Fortran 77 compiler was not found, we disable support for it.
7633
if test "x$F77" = x; then :
7637
# If Fortran 77 compiler does not work, we disable support for it.
7639
cat > conftest.$ac_ext <<_ACEOF
7644
if ac_fn_f77_try_link "$LINENO"; then :
7647
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Fortran compiler does not work, disabling" >&5
7648
$as_echo "$as_me: WARNING: Fortran compiler does not work, disabling" >&2;}
7652
rm -f core conftest.err conftest.$ac_objext \
7653
conftest$ac_exeext conftest.$ac_ext
7656
if test "x$enable_f77" = xyes; then :
7658
$as_echo "#define NOFORT 0" >>confdefs.h
7661
$as_echo "#define ENABLE_F77 1" >>confdefs.h
7665
$as_echo "#define NOFORT 1" >>confdefs.h
7668
$as_echo "#define ENABLE_F77 0" >>confdefs.h
7671
if test "x$enable_f77" = xno; then
7679
if test "x$enable_f77" = xyes; then
7681
ENABLE_F77_FALSE='#'
7689
# Perform Fortran 77 tests only if enabled.
7690
if test "x$enable_f77" = xyes; then :
7692
if test x$with_mpi_wrappers = xyes; then :
7695
# Extract the first word of "perl", so it can be a program name with args.
7696
set dummy perl; ac_word=$2
7697
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7698
$as_echo_n "checking for $ac_word... " >&6; }
7699
if ${ac_cv_path_PERL+:} false; then :
7700
$as_echo_n "(cached) " >&6
7704
ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7707
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7711
test -z "$as_dir" && as_dir=.
7712
for ac_exec_ext in '' $ac_executable_extensions; do
7713
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7714
ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7715
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7725
PERL=$ac_cv_path_PERL
7726
if test -n "$PERL"; then
7727
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
7728
$as_echo "$PERL" >&6; }
7730
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7731
$as_echo "no" >&6; }
7737
cat >inside.pl <<"EOF"
7739
$numargs = $#ARGV + 1;
7740
if ($numargs != 2) {
7741
print "Usage: wrapped.txt naked.txt\n";
7744
# Read each input file as a string (rather than a list).
7746
open WRAPPED, "$ARGV[0]" or die "Could not open wrapped text file: $!";
7747
$wrapped_lines = <WRAPPED>;
7749
open NAKED, "$ARGV[1]" or die "Could not open naked text file: $!";
7750
$naked_lines = <NAKED>;
7752
# Replace newlines, + from wrapped and naked lines.
7753
$wrapped_lines =~ tr/\n+/ /;
7754
$naked_lines =~ tr/\n+/ /;
7755
# Remove whitespace from beginning of wrapped and naked lines.
7756
$wrapped_lines =~ s/^\s+//;
7757
$naked_lines =~ s/^\s+//;
7758
# Remove whitespace from end of wrapped and naked lines.
7759
$wrapped_lines =~ s/\s+$//;
7760
$naked_lines =~ s/\s+$//;
7761
# If either wrapped_lines or naked_lines are empty, this is an error.
7762
# It is assumed that the particular version string which created the input
7763
# files should generate SOMETHING.
7764
unless ($wrapped_lines) {
7767
unless ($naked_lines) {
7770
# Can the naked lines be found within the wrapped lines?
7771
if ($wrapped_lines =~ /\Q$naked_lines\E/) {
7772
#print "Found as substring\n";
7775
# Are the naked lines exactly the same as the wrapped lines?
7776
elsif ($wrapped_lines eq $naked_lines) {
7777
#print "Found equal\n";
7781
#print "Not found\n";
7785
inside="$PERL inside.pl"
7789
compilers="bgxlf95_r xlf95_r bgxlf90_r xlf90_r bgxlf_r xlf_r" ;; #(
7791
compilers="gfortran g95 bgxlf95 xlf95 f95 fort ifort ifc efc pgf95 pathf95 lf95 openf95 sunf95 crayftn bgxlf90 xlf90 f90 pgf90 pathf90 pghpf epcf90 sxf90 openf90 sunf90 g77 bgxlf xlf f77 frt pgf77 pathf77 cf77 fort77 fl32 af77" ;; #(
7799
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for base $wrapped compiler" >&5
7800
$as_echo_n "checking for base $wrapped compiler... " >&6; }
7801
if ${ga_cv_mpif77_naked+:} false; then :
7802
$as_echo_n "(cached) " >&6
7805
base="`$wrapped -show 2>/dev/null | sed 's/[ ].*$//' | head -1`"
7808
cat > conftest.$ac_ext <<_ACEOF
7813
if ac_fn_f77_try_link "$LINENO"; then :
7814
ga_cv_mpif77_naked="$base"
7816
rm -f core conftest.err conftest.$ac_objext \
7817
conftest$ac_exeext conftest.$ac_ext
7819
versions="--version -v -V -qversion"
7820
found_wrapped_version=0
7821
# Try separating stdout and stderr. Only compare stdout.
7822
if test "x$ga_cv_mpif77_naked" = x; then :
7824
# prepend any CC/CXX/F77 the user may have specified
7825
compilers="$ga_orig_F77 $compilers"
7826
echo "only comparing stdout" >&5
7827
for version in $versions
7829
echo "trying version=$version" >&5
7830
rm -f mpi.txt mpi.err naked.txt naked.err
7831
if $wrapped $version 1>mpi.txt 2>mpi.err; then :
7832
found_wrapped_version=1
7833
for naked_compiler in $compilers
7835
if test "x$naked_compiler" != "x$wrapped"; then :
7836
if $naked_compiler $version 1>naked.txt 2>naked.err; then :
7837
if $inside mpi.txt naked.txt >/dev/null; then :
7838
ga_cv_mpif77_naked=$naked_compiler; break
7840
echo "inside.pl $wrapped $naked_compiler failed, skipping" >&5
7843
echo "$naked_compiler $version failed, skipping" >&5
7848
echo "$wrapped $version failed, skipping" >&5
7850
if test "x$ga_cv_mpif77_naked" != x; then :
7856
# Perhaps none of the MPI compilers had a zero exit status (this is bad).
7857
# In this case we have to do a brute force match regardless of exit status.
7858
if test "x$found_wrapped_version" = x0; then :
7860
if test "x$ga_cv_mpif77_naked" = x; then :
7862
echo "no zero exit status found for MPI compilers" >&5
7863
for version in $versions
7865
echo "trying version=$version" >&5
7866
rm -f mpi.txt mpi.err
7867
$wrapped $version 1>mpi.txt 2>mpi.err
7868
for naked_compiler in $compilers
7870
if test "x$naked_compiler" != "x$wrapped"; then :
7871
rm -f naked.txt naked.err
7872
if $naked_compiler $version 1>naked.txt 2>naked.err; then :
7873
if $inside mpi.txt naked.txt >/dev/null; then :
7874
ga_cv_mpif77_naked=$naked_compiler; break
7876
echo "inside.pl $wrapped $naked_compiler failed, skipping" >&5
7879
echo "$naked_compiler $version failed, skipping" >&5
7883
if test "x$ga_cv_mpif77_naked" != x; then :
7891
# Try by combining stdout/err into one file.
7892
if test "x$ga_cv_mpif77_naked" = x; then :
7894
echo "try combining stdout and stderr into one file" >&5
7895
for version in $versions
7897
echo "trying version=$version" >&5
7898
rm -f mpi.txt naked.txt
7899
if $wrapped $version 1>mpi.txt 2>&1; then :
7900
for naked_compiler in $compilers
7902
if test "x$naked_compiler" != "x$wrapped"; then :
7903
if $naked_compiler $version 1>naked.txt 2>&1; then :
7904
if $inside mpi.txt naked.txt >/dev/null; then :
7905
ga_cv_mpif77_naked=$naked_compiler; break
7907
echo "inside.pl $wrapped $naked_compiler failed, skipping" >&5
7910
echo "$naked_compiler $version failed, skipping" >&5
7915
echo "$wrapped $version failed, skipping" >&5
7917
if test "x$ga_cv_mpif77_naked" != x; then :
7923
# If we got this far, then it's likely that the MPI compiler had a zero exit
7924
# status when it shouldn't have for one version flag, but later had a non-zero
7925
# exit status for a flag it shouldn't have. One false positive hid a false
7926
# negative. In this case, brute force compare all MPI compiler output against
7927
# all compiler output.
7928
if test "x$ga_cv_mpif77_naked" = x; then :
7930
echo "we have a very badly behaving MPI compiler" >&5
7931
for version in $versions
7933
echo "trying version=$version" >&5
7934
rm -f mpi.txt mpi.err
7935
$wrapped $version 1>mpi.txt 2>mpi.err
7936
for naked_compiler in $compilers
7938
if test "x$naked_compiler" != "x$wrapped"; then :
7939
rm -f naked.txt naked.err
7940
if $naked_compiler $version 1>naked.txt 2>naked.err; then :
7941
if $inside mpi.txt naked.txt >/dev/null; then :
7942
ga_cv_mpif77_naked=$naked_compiler; break
7944
echo "inside.pl $wrapped $naked_compiler failed, skipping" >&5
7947
echo "$naked_compiler $version failed, skipping" >&5
7951
if test "x$ga_cv_mpif77_naked" != x; then :
7957
rm -f mpi.txt mpi.err naked.txt naked.err
7960
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ga_cv_mpif77_naked" >&5
7961
$as_echo "$ga_cv_mpif77_naked" >&6; }
7962
if test "x$ga_cv_mpif77_naked" = x; then :
7963
as_fn_error $? "Could not determine the Fortran 77 compiler wrapped by MPI" "$LINENO" 5
7965
if test "x$ga_orig_F77" != x && test "x$ga_orig_F77" != "x$ga_cv_mpif77_naked"; then :
7966
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unwrapped $wrapped ($ga_cv_mpif77_naked) does not match user-specified $ga_orig_F77" >&5
7967
$as_echo "$as_me: WARNING: unwrapped $wrapped ($ga_cv_mpif77_naked) does not match user-specified $ga_orig_F77" >&2;}
7978
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7979
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7980
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7984
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7985
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7986
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7988
cat > conftest.$ac_ext <<_ACEOF
7992
call MPI_Init( ierr )
7993
call MPI_Finalize( ierr )
7997
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7998
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7999
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
8002
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a simple Fortran MPI program compiles" >&5
8003
$as_echo_n "checking whether a simple Fortran MPI program compiles... " >&6; }
8004
if ${ga_cv_f77_mpi_test_compile+:} false; then :
8005
$as_echo_n "(cached) " >&6
8007
ga_save_FFLAGS="$FFLAGS"; FFLAGS="$FFLAGS $GA_MP_CPPFLAGS"
8008
if ac_fn_f77_try_compile "$LINENO"; then :
8009
ga_cv_f77_mpi_test_compile=yes
8011
ga_cv_f77_mpi_test_compile=no
8013
rm -f core conftest.err conftest.$ac_objext
8014
FFLAGS="$ga_save_FFLAGS"
8016
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ga_cv_f77_mpi_test_compile" >&5
8017
$as_echo "$ga_cv_f77_mpi_test_compile" >&6; }
8018
rm -f conftest.$ac_ext
8020
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
8021
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8022
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
8024
if test "x$ga_cv_f77_mpi_test_compile" = xno; then :
8025
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8026
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8027
as_fn_error $? "could not compile simple Fortran MPI program
8028
See \`config.log' for more details" "$LINENO" 5; }
8031
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 flag to suppress info messages" >&5
8032
$as_echo_n "checking for Fortran 77 flag to suppress info messages... " >&6; }
8033
if ${ga_cv_f77_suppress+:} false; then :
8034
$as_echo_n "(cached) " >&6
8036
ga_save_FFLAGS="$FFLAGS"
8037
ga_save_werror_flag=$ac_f77_werror_flag
8038
ac_f77_werror_flag=yes
8039
for flag in none -qsuppress=cmpmsg ; do
8040
FFLAGS=$ga_save_FFLAGS
8041
if test "x$flag" != xnone; then :
8042
FFLAGS="$FFLAGS $flag"
8044
cat > conftest.$ac_ext <<_ACEOF
8049
if ac_fn_f77_try_link "$LINENO"; then :
8050
ga_cv_f77_suppress="$flag"; break
8052
rm -f core conftest.err conftest.$ac_objext \
8053
conftest$ac_exeext conftest.$ac_ext
8055
FFLAGS=$ga_save_FFLAGS
8056
ac_f77_werror_flag=$ga_save_werror_flag
8059
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ga_cv_f77_suppress" >&5
8060
$as_echo "$ga_cv_f77_suppress" >&6; }
8064
ga_mpi_unwrap_push_save_CC="$CC"
8065
ga_mpi_unwrap_push_save_CXX="$CXX"
8066
ga_mpi_unwrap_push_save_F77="$F77"
8067
ga_mpi_unwrap_push_save_FC="$FC"
8068
if test "x$ga_cv_mpic_naked" != x; then :
8069
CC="$ga_cv_mpic_naked"
8071
if test "x$ga_cv_mpicxx_naked" != x; then :
8072
CXX="$ga_cv_mpicxx_naked"
8074
if test "x$ga_cv_mpif77_naked" != x; then :
8075
F77="$ga_cv_mpif77_naked"
8077
if test "x$ga_cv_mpifc_naked" != x; then :
8078
FC="$ga_cv_mpifc_naked"
8082
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
8083
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8084
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
8085
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get verbose linking output from $F77" >&5
8086
$as_echo_n "checking how to get verbose linking output from $F77... " >&6; }
8087
if ${ac_cv_prog_f77_v+:} false; then :
8088
$as_echo_n "(cached) " >&6
8090
cat > conftest.$ac_ext <<_ACEOF
8095
if ac_fn_f77_try_compile "$LINENO"; then :
8097
# Try some options frequently used verbose output
8098
for ac_verb in -v -verbose --verbose -V -\#\#\#; do
8099
cat > conftest.$ac_ext <<_ACEOF
8105
# Compile and link our simple test program by passing a flag (argument
8106
# 1 to this macro) to the Fortran compiler in order to get
8107
# "verbose" output that we can then parse for the Fortran linker
8109
ac_save_FFLAGS=$FFLAGS
8110
FFLAGS="$FFLAGS $ac_verb"
8111
eval "set x $ac_link"
8113
$as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5
8114
# gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
8115
# LIBRARY_PATH; skip all such settings.
8116
ac_f77_v_output=`eval $ac_link 5>&1 2>&1 |
8117
sed '/^Driving:/d; /^Configured with:/d;
8118
'"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"`
8119
$as_echo "$ac_f77_v_output" >&5
8120
FFLAGS=$ac_save_FFLAGS
8124
# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
8125
# /foo, /bar, and /baz are search directories for the Fortran linker.
8126
# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
8127
ac_f77_v_output="`echo $ac_f77_v_output |
8129
sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_f77_v_output"
8131
# FIXME: we keep getting bitten by quoted arguments; a more general fix
8132
# that detects unbalanced quotes in FLIBS should be implemented
8133
# and (ugh) tested at some point.
8134
case $ac_f77_v_output in
8135
# If we are using xlf then replace all the commas with spaces.
8137
ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
8139
# With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
8140
# $LIBS confuse us, and the libraries appear later in the output anyway).
8141
*mGLOB_options_string*)
8142
ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
8144
# Portland Group compiler has singly- or doubly-quoted -cmdline argument
8145
# Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
8146
# Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
8147
*-cmdline\ * | *-ignore\ * | *-def\ *)
8148
ac_f77_v_output=`echo $ac_f77_v_output | sed "\
8149
s/-cmdline *'[^']*'/ /g; s/-cmdline *\"[^\"]*\"/ /g
8150
s/-ignore *'[^']*'/ /g; s/-ignore *\"[^\"]*\"/ /g
8151
s/-def *'[^']*'/ /g; s/-def *\"[^\"]*\"/ /g"` ;;
8153
# If we are using Cray Fortran then delete quotes.
8155
ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"//g'` ;;
8159
# look for -l* and *.a constructs in the output
8160
for ac_arg in $ac_f77_v_output; do
8162
[\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
8163
ac_cv_prog_f77_v=$ac_verb
8168
if test -z "$ac_cv_prog_f77_v"; then
8169
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine how to obtain linking information from $F77" >&5
8170
$as_echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;}
8173
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compilation failed" >&5
8174
$as_echo "$as_me: WARNING: compilation failed" >&2;}
8176
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8179
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_v" >&5
8180
$as_echo "$ac_cv_prog_f77_v" >&6; }
8181
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 libraries of $F77" >&5
8182
$as_echo_n "checking for Fortran 77 libraries of $F77... " >&6; }
8183
if ${ac_cv_f77_libs+:} false; then :
8184
$as_echo_n "(cached) " >&6
8186
if test "x$FLIBS" != "x"; then
8187
ac_cv_f77_libs="$FLIBS" # Let the user override the test.
8190
cat > conftest.$ac_ext <<_ACEOF
8196
# Compile and link our simple test program by passing a flag (argument
8197
# 1 to this macro) to the Fortran compiler in order to get
8198
# "verbose" output that we can then parse for the Fortran linker
8200
ac_save_FFLAGS=$FFLAGS
8201
FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
8202
eval "set x $ac_link"
8204
$as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5
8205
# gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
8206
# LIBRARY_PATH; skip all such settings.
8207
ac_f77_v_output=`eval $ac_link 5>&1 2>&1 |
8208
sed '/^Driving:/d; /^Configured with:/d;
8209
'"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"`
8210
$as_echo "$ac_f77_v_output" >&5
8211
FFLAGS=$ac_save_FFLAGS
8215
# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
8216
# /foo, /bar, and /baz are search directories for the Fortran linker.
8217
# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
8218
ac_f77_v_output="`echo $ac_f77_v_output |
8220
sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_f77_v_output"
8222
# FIXME: we keep getting bitten by quoted arguments; a more general fix
8223
# that detects unbalanced quotes in FLIBS should be implemented
8224
# and (ugh) tested at some point.
8225
case $ac_f77_v_output in
8226
# If we are using xlf then replace all the commas with spaces.
8228
ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
8230
# With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
8231
# $LIBS confuse us, and the libraries appear later in the output anyway).
8232
*mGLOB_options_string*)
8233
ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
8235
# Portland Group compiler has singly- or doubly-quoted -cmdline argument
8236
# Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
8237
# Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
8238
*-cmdline\ * | *-ignore\ * | *-def\ *)
8239
ac_f77_v_output=`echo $ac_f77_v_output | sed "\
8240
s/-cmdline *'[^']*'/ /g; s/-cmdline *\"[^\"]*\"/ /g
8241
s/-ignore *'[^']*'/ /g; s/-ignore *\"[^\"]*\"/ /g
8242
s/-def *'[^']*'/ /g; s/-def *\"[^\"]*\"/ /g"` ;;
8244
# If we are using Cray Fortran then delete quotes.
8246
ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"//g'` ;;
8253
# Save positional arguments (if any)
8254
ac_save_positional="$@"
8256
set X $ac_f77_v_output
8257
while test $# != 1; do
8261
[\\/]*.a | ?:[\\/]*.a)
8263
for ac_i in $ac_cv_f77_libs; do
8264
if test x"$ac_arg" = x"$ac_i"; then
8270
if test x"$ac_exists" = xtrue; then :
8273
ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
8278
for ac_i in $ac_cv_f77_libs; do
8279
if test x"$ac_arg" = x"$ac_i"; then
8285
if test x"$ac_exists" = xtrue; then :
8288
if test "$ac_compiler_gnu" = yes; then
8289
for ac_link_opt in $ac_arg; do
8290
ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
8293
ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
8297
# Ignore these flags.
8298
-lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -little \
8299
|-LANG:=* | -LIST:* | -LNO:* | -link)
8302
test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
8305
# These flags, when seen by themselves, take an argument.
8306
# We remove the space between option and argument and re-iterate
8307
# unless we find an empty arg or a new option (starting with -)
8318
for ac_j in `$as_echo "$ac_arg" | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
8320
for ac_i in $ac_cv_f77_libs; do
8321
if test x"$ac_j" = x"$ac_i"; then
8327
if test x"$ac_exists" = xtrue; then :
8330
ac_arg="$ac_arg $ac_j"
8331
ac_cv_f77_libs="$ac_cv_f77_libs $ac_j"
8337
for ac_i in $ac_cv_f77_libs; do
8338
if test x"$ac_arg" = x"$ac_i"; then
8344
if test x"$ac_exists" = xtrue; then :
8347
ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
8350
-zallextract*| -zdefaultextract)
8351
ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
8353
# Ignore everything else.
8356
# restore positional arguments
8357
set X $ac_save_positional; shift
8359
# We only consider "LD_RUN_PATH" on Solaris systems. If this is seen,
8360
# then we insist that the "run path" must be an absolute path (i.e. it
8361
# must begin with a "/").
8362
case `(uname -sr) 2>/dev/null` in
8364
ac_ld_run_path=`$as_echo "$ac_f77_v_output" |
8365
sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
8366
test "x$ac_ld_run_path" != x &&
8367
if test "$ac_compiler_gnu" = yes; then
8368
for ac_link_opt in $ac_ld_run_path; do
8369
ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
8372
ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path"
8376
fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
8379
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_libs" >&5
8380
$as_echo "$ac_cv_f77_libs" >&6; }
8381
FLIBS="$ac_cv_f77_libs"
8385
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
8386
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8387
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
8390
CC="$ga_mpi_unwrap_push_save_CC"
8391
CXX="$ga_mpi_unwrap_push_save_CXX"
8392
F77="$ga_mpi_unwrap_push_save_F77"
8393
FC="$ga_mpi_unwrap_push_save_FC"
8395
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FLIBS needs -lgcc_s" >&5
8396
$as_echo_n "checking whether FLIBS needs -lgcc_s... " >&6; }
8397
if ${ga_cv_flibs_gcc_s+:} false; then :
8398
$as_echo_n "(cached) " >&6
8401
ga_save_LIBS="$LIBS"; LIBS="$LIBS $FLIBS"
8402
ga_save_FLIBS="$FLIBS"
8404
ac_cpp='$CPP $CPPFLAGS'
8405
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8406
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8407
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8409
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8410
/* end confdefs.h. */
8420
if ac_fn_c_try_link "$LINENO"; then :
8421
ga_cv_flibs_gcc_s=no
8423
LIBS="$LIBS -lgcc_s"
8424
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8425
/* end confdefs.h. */
8435
if ac_fn_c_try_link "$LINENO"; then :
8436
FLIBS="$FLIBS -lgcc_s"
8437
ga_cv_flibs_gcc_s=yes
8440
FLIBS="$ga_save_FLIBS"
8441
ga_cv_flibs_gcc_s=no
8443
rm -f core conftest.err conftest.$ac_objext \
8444
conftest$ac_exeext conftest.$ac_ext
8446
rm -f core conftest.err conftest.$ac_objext \
8447
conftest$ac_exeext conftest.$ac_ext
8448
LIBS="$ga_save_LIBS"
8450
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
8451
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8452
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
8455
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ga_cv_flibs_gcc_s" >&5
8456
$as_echo "$ga_cv_flibs_gcc_s" >&6; }
8457
if test "x$happy" = xno; then :
8458
{ ac_cv_f77_libs=; unset ac_cv_f77_libs;}
8459
{ FLIBS=; unset FLIBS;}
8460
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get verbose linking output from $F77" >&5
8461
$as_echo_n "checking how to get verbose linking output from $F77... " >&6; }
8462
if ${ac_cv_prog_f77_v+:} false; then :
8463
$as_echo_n "(cached) " >&6
8465
cat > conftest.$ac_ext <<_ACEOF
8470
if ac_fn_f77_try_compile "$LINENO"; then :
8472
# Try some options frequently used verbose output
8473
for ac_verb in -v -verbose --verbose -V -\#\#\#; do
8474
cat > conftest.$ac_ext <<_ACEOF
8480
# Compile and link our simple test program by passing a flag (argument
8481
# 1 to this macro) to the Fortran compiler in order to get
8482
# "verbose" output that we can then parse for the Fortran linker
8484
ac_save_FFLAGS=$FFLAGS
8485
FFLAGS="$FFLAGS $ac_verb"
8486
eval "set x $ac_link"
8488
$as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5
8489
# gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
8490
# LIBRARY_PATH; skip all such settings.
8491
ac_f77_v_output=`eval $ac_link 5>&1 2>&1 |
8492
sed '/^Driving:/d; /^Configured with:/d;
8493
'"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"`
8494
$as_echo "$ac_f77_v_output" >&5
8495
FFLAGS=$ac_save_FFLAGS
8499
# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
8500
# /foo, /bar, and /baz are search directories for the Fortran linker.
8501
# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
8502
ac_f77_v_output="`echo $ac_f77_v_output |
8504
sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_f77_v_output"
8506
# FIXME: we keep getting bitten by quoted arguments; a more general fix
8507
# that detects unbalanced quotes in FLIBS should be implemented
8508
# and (ugh) tested at some point.
8509
case $ac_f77_v_output in
8510
# If we are using xlf then replace all the commas with spaces.
8512
ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
8514
# With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
8515
# $LIBS confuse us, and the libraries appear later in the output anyway).
8516
*mGLOB_options_string*)
8517
ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
8519
# Portland Group compiler has singly- or doubly-quoted -cmdline argument
8520
# Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
8521
# Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
8522
*-cmdline\ * | *-ignore\ * | *-def\ *)
8523
ac_f77_v_output=`echo $ac_f77_v_output | sed "\
8524
s/-cmdline *'[^']*'/ /g; s/-cmdline *\"[^\"]*\"/ /g
8525
s/-ignore *'[^']*'/ /g; s/-ignore *\"[^\"]*\"/ /g
8526
s/-def *'[^']*'/ /g; s/-def *\"[^\"]*\"/ /g"` ;;
8528
# If we are using Cray Fortran then delete quotes.
8530
ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"//g'` ;;
8534
# look for -l* and *.a constructs in the output
8535
for ac_arg in $ac_f77_v_output; do
8537
[\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
8538
ac_cv_prog_f77_v=$ac_verb
8543
if test -z "$ac_cv_prog_f77_v"; then
8544
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine how to obtain linking information from $F77" >&5
8545
$as_echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;}
8548
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compilation failed" >&5
8549
$as_echo "$as_me: WARNING: compilation failed" >&2;}
8551
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8554
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_v" >&5
8555
$as_echo "$ac_cv_prog_f77_v" >&6; }
8556
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 libraries of $F77" >&5
8557
$as_echo_n "checking for Fortran 77 libraries of $F77... " >&6; }
8558
if ${ac_cv_f77_libs+:} false; then :
8559
$as_echo_n "(cached) " >&6
8561
if test "x$FLIBS" != "x"; then
8562
ac_cv_f77_libs="$FLIBS" # Let the user override the test.
8565
cat > conftest.$ac_ext <<_ACEOF
8571
# Compile and link our simple test program by passing a flag (argument
8572
# 1 to this macro) to the Fortran compiler in order to get
8573
# "verbose" output that we can then parse for the Fortran linker
8575
ac_save_FFLAGS=$FFLAGS
8576
FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
8577
eval "set x $ac_link"
8579
$as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5
8580
# gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
8581
# LIBRARY_PATH; skip all such settings.
8582
ac_f77_v_output=`eval $ac_link 5>&1 2>&1 |
8583
sed '/^Driving:/d; /^Configured with:/d;
8584
'"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"`
8585
$as_echo "$ac_f77_v_output" >&5
8586
FFLAGS=$ac_save_FFLAGS
8590
# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
8591
# /foo, /bar, and /baz are search directories for the Fortran linker.
8592
# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
8593
ac_f77_v_output="`echo $ac_f77_v_output |
8595
sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_f77_v_output"
8597
# FIXME: we keep getting bitten by quoted arguments; a more general fix
8598
# that detects unbalanced quotes in FLIBS should be implemented
8599
# and (ugh) tested at some point.
8600
case $ac_f77_v_output in
8601
# If we are using xlf then replace all the commas with spaces.
8603
ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
8605
# With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
8606
# $LIBS confuse us, and the libraries appear later in the output anyway).
8607
*mGLOB_options_string*)
8608
ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
8610
# Portland Group compiler has singly- or doubly-quoted -cmdline argument
8611
# Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
8612
# Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
8613
*-cmdline\ * | *-ignore\ * | *-def\ *)
8614
ac_f77_v_output=`echo $ac_f77_v_output | sed "\
8615
s/-cmdline *'[^']*'/ /g; s/-cmdline *\"[^\"]*\"/ /g
8616
s/-ignore *'[^']*'/ /g; s/-ignore *\"[^\"]*\"/ /g
8617
s/-def *'[^']*'/ /g; s/-def *\"[^\"]*\"/ /g"` ;;
8619
# If we are using Cray Fortran then delete quotes.
8621
ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"//g'` ;;
8628
# Save positional arguments (if any)
8629
ac_save_positional="$@"
8631
set X $ac_f77_v_output
8632
while test $# != 1; do
8636
[\\/]*.a | ?:[\\/]*.a)
8638
for ac_i in $ac_cv_f77_libs; do
8639
if test x"$ac_arg" = x"$ac_i"; then
8645
if test x"$ac_exists" = xtrue; then :
8648
ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
8653
for ac_i in $ac_cv_f77_libs; do
8654
if test x"$ac_arg" = x"$ac_i"; then
8660
if test x"$ac_exists" = xtrue; then :
8663
if test "$ac_compiler_gnu" = yes; then
8664
for ac_link_opt in $ac_arg; do
8665
ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
8668
ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
8672
# Ignore these flags.
8673
-lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -little \
8674
|-LANG:=* | -LIST:* | -LNO:* | -link)
8677
test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
8680
# These flags, when seen by themselves, take an argument.
8681
# We remove the space between option and argument and re-iterate
8682
# unless we find an empty arg or a new option (starting with -)
8693
for ac_j in `$as_echo "$ac_arg" | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
8695
for ac_i in $ac_cv_f77_libs; do
8696
if test x"$ac_j" = x"$ac_i"; then
8702
if test x"$ac_exists" = xtrue; then :
8705
ac_arg="$ac_arg $ac_j"
8706
ac_cv_f77_libs="$ac_cv_f77_libs $ac_j"
8711
for ac_j in `$as_echo "$ac_arg" | sed -e 's/-Y/-L/;s/"//g;s/:/ -L/g'`; do
8713
for ac_i in $ac_cv_f77_libs; do
8714
if test x"$ac_j" = x"$ac_i"; then
8720
if test x"$ac_exists" = xtrue; then :
8723
ac_arg="$ac_arg $ac_j"
8724
ac_cv_f77_libs="$ac_cv_f77_libs $ac_j"
8730
for ac_i in $ac_cv_f77_libs; do
8731
if test x"$ac_arg" = x"$ac_i"; then
8737
if test x"$ac_exists" = xtrue; then :
8740
ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
8743
-zallextract*| -zdefaultextract)
8744
ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
8746
# Ignore everything else.
8749
# restore positional arguments
8750
set X $ac_save_positional; shift
8752
# We only consider "LD_RUN_PATH" on Solaris systems. If this is seen,
8753
# then we insist that the "run path" must be an absolute path (i.e. it
8754
# must begin with a "/").
8755
case `(uname -sr) 2>/dev/null` in
8757
ac_ld_run_path=`$as_echo "$ac_f77_v_output" |
8758
sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
8759
test "x$ac_ld_run_path" != x &&
8760
if test "$ac_compiler_gnu" = yes; then
8761
for ac_link_opt in $ac_ld_run_path; do
8762
ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
8765
ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path"
8769
fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
8772
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_libs" >&5
8773
$as_echo "$ac_cv_f77_libs" >&6; }
8774
FLIBS="$ac_cv_f77_libs"
8777
ga_save_LIBS="$LIBS"; LIBS="$LIBS $FLIBS"
8779
ac_cpp='$CPP $CPPFLAGS'
8780
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8781
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8782
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8784
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8785
/* end confdefs.h. */
8795
if ac_fn_c_try_link "$LINENO"; then :
8800
rm -f core conftest.err conftest.$ac_objext \
8801
conftest$ac_exeext conftest.$ac_ext
8802
LIBS="$ga_save_LIBS"
8804
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
8805
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8806
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
8809
if test "x$happy" = xno; then :
8810
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: FLIBS does not work" >&5
8811
$as_echo "$as_me: WARNING: FLIBS does not work" >&2;}
8814
# Check whether --enable-underscoring was given.
8815
if test "${enable_underscoring+set}" = set; then :
8816
enableval=$enable_underscoring;
8819
if test "x$enable_underscoring" = xyes; then :
8820
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $F77 flag to add single underscore to external names" >&5
8821
$as_echo_n "checking for $F77 flag to add single underscore to external names... " >&6; }
8822
if ${ga_cv_f77_underscore_flag+:} false; then :
8823
$as_echo_n "(cached) " >&6
8826
ac_cpp='$CPP $CPPFLAGS'
8827
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8828
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8829
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8831
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8832
/* end confdefs.h. */
8835
if ac_fn_c_try_compile "$LINENO"; then :
8836
mv conftest.$ac_objext cfortran_test.$ac_objext
8837
ga_save_LIBS="$LIBS"
8838
LIBS="cfortran_test.$ac_objext $LIBS"
8840
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
8841
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8842
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
8844
for ga_flag in none -qextname -qEXTNAME -funderscoring -fno-second-underscore -f +ppu ; do
8845
ga_save_FFLAGS="$FFLAGS"
8846
if test "x$ga_flag" != xnone; then :
8847
FFLAGS="$FFLAGS $ga_flag"
8849
cat > conftest.$ac_ext <<_ACEOF
8854
if ac_fn_f77_try_link "$LINENO"; then :
8855
ga_cv_f77_underscore_flag="$ga_flag"
8857
rm -f core conftest.err conftest.$ac_objext \
8858
conftest$ac_exeext conftest.$ac_ext
8859
FFLAGS="$ga_save_FFLAGS"
8860
if test "x$ga_cv_f77_underscore_flag" != x; then :
8865
ac_cpp='$CPP $CPPFLAGS'
8866
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8867
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8868
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8870
LIBS="$ga_save_LIBS"
8871
rm -f cfortran_test.$ac_objext
8873
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8875
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
8876
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8877
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
8880
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ga_cv_f77_underscore_flag" >&5
8881
$as_echo "$ga_cv_f77_underscore_flag" >&6; }
8882
if test "x$ga_cv_f77_underscore_flag" != xnone; then :
8883
if test "x$ga_cv_f77_underscore_flag" != x; then :
8884
FFLAGS="$FFLAGS $ga_cv_f77_underscore_flag"
8891
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
8892
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8893
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
8895
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dummy main to link with Fortran 77 libraries" >&5
8896
$as_echo_n "checking for dummy main to link with Fortran 77 libraries... " >&6; }
8897
if ${ac_cv_f77_dummy_main+:} false; then :
8898
$as_echo_n "(cached) " >&6
8900
ac_f77_dm_save_LIBS=$LIBS
8902
ac_fortran_dm_var=F77_DUMMY_MAIN
8904
ac_cpp='$CPP $CPPFLAGS'
8905
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8906
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8907
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8909
# First, try linking without a dummy main:
8910
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8911
/* end confdefs.h. */
8913
#ifdef F77_DUMMY_MAIN
8918
int F77_DUMMY_MAIN() { return 1; }
8929
if ac_fn_c_try_link "$LINENO"; then :
8930
ac_cv_fortran_dummy_main=none
8932
ac_cv_fortran_dummy_main=unknown
8934
rm -f core conftest.err conftest.$ac_objext \
8935
conftest$ac_exeext conftest.$ac_ext
8937
if test $ac_cv_fortran_dummy_main = unknown; then
8938
for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
8939
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8940
/* end confdefs.h. */
8941
#define $ac_fortran_dm_var $ac_func
8942
#ifdef F77_DUMMY_MAIN
8947
int F77_DUMMY_MAIN() { return 1; }
8958
if ac_fn_c_try_link "$LINENO"; then :
8959
ac_cv_fortran_dummy_main=$ac_func; break
8961
rm -f core conftest.err conftest.$ac_objext \
8962
conftest$ac_exeext conftest.$ac_ext
8966
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
8967
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8968
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
8969
ac_cv_f77_dummy_main=$ac_cv_fortran_dummy_main
8971
LIBS=$ac_f77_dm_save_LIBS
8974
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_dummy_main" >&5
8975
$as_echo "$ac_cv_f77_dummy_main" >&6; }
8976
F77_DUMMY_MAIN=$ac_cv_f77_dummy_main
8977
if test "$F77_DUMMY_MAIN" != unknown; then :
8978
if test $F77_DUMMY_MAIN != none; then
8980
cat >>confdefs.h <<_ACEOF
8981
#define F77_DUMMY_MAIN $F77_DUMMY_MAIN
8984
if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then
8986
$as_echo "#define FC_DUMMY_MAIN_EQ_F77 1" >>confdefs.h
8991
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8992
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8993
as_fn_error $? "linking to Fortran libraries from C fails
8994
See \`config.log' for more details" "$LINENO" 5; }
8998
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
8999
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9000
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
9003
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
9004
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9005
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
9006
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 name-mangling scheme" >&5
9007
$as_echo_n "checking for Fortran 77 name-mangling scheme... " >&6; }
9008
if ${ac_cv_f77_mangling+:} false; then :
9009
$as_echo_n "(cached) " >&6
9011
cat > conftest.$ac_ext <<_ACEOF
9015
subroutine foo_bar()
9019
if ac_fn_f77_try_compile "$LINENO"; then :
9020
mv conftest.$ac_objext cfortran_test.$ac_objext
9023
LIBS="cfortran_test.$ac_objext $LIBS $FLIBS"
9026
ac_cpp='$CPP $CPPFLAGS'
9027
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9028
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9029
ac_compiler_gnu=$ac_cv_c_compiler_gnu
9031
for ac_foobar in foobar FOOBAR; do
9032
for ac_underscore in "" "_"; do
9033
ac_func="$ac_foobar$ac_underscore"
9034
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9035
/* end confdefs.h. */
9037
/* Override any GCC internal prototype to avoid an error.
9038
Use char because int might match the return type of a GCC
9039
builtin and then its argument prototype would still apply. */
9044
#ifdef F77_DUMMY_MAIN
9049
int F77_DUMMY_MAIN() { return 1; }
9060
if ac_fn_c_try_link "$LINENO"; then :
9061
ac_success=yes; break 2
9063
rm -f core conftest.err conftest.$ac_objext \
9064
conftest$ac_exeext conftest.$ac_ext
9068
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
9069
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9070
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
9072
if test "$ac_success" = "yes"; then
9085
ac_cpp='$CPP $CPPFLAGS'
9086
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9087
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9088
ac_compiler_gnu=$ac_cv_c_compiler_gnu
9090
for ac_extra in "" "_"; do
9091
ac_func="$ac_foo_bar$ac_underscore$ac_extra"
9092
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9093
/* end confdefs.h. */
9095
/* Override any GCC internal prototype to avoid an error.
9096
Use char because int might match the return type of a GCC
9097
builtin and then its argument prototype would still apply. */
9102
#ifdef F77_DUMMY_MAIN
9107
int F77_DUMMY_MAIN() { return 1; }
9118
if ac_fn_c_try_link "$LINENO"; then :
9119
ac_success_extra=yes; break
9121
rm -f core conftest.err conftest.$ac_objext \
9122
conftest$ac_exeext conftest.$ac_ext
9125
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
9126
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9127
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
9129
if test "$ac_success_extra" = "yes"; then
9130
ac_cv_f77_mangling="$ac_case case"
9131
if test -z "$ac_underscore"; then
9132
ac_cv_f77_mangling="$ac_cv_f77_mangling, no underscore"
9134
ac_cv_f77_mangling="$ac_cv_f77_mangling, underscore"
9136
if test -z "$ac_extra"; then
9137
ac_cv_f77_mangling="$ac_cv_f77_mangling, no extra underscore"
9139
ac_cv_f77_mangling="$ac_cv_f77_mangling, extra underscore"
9142
ac_cv_f77_mangling="unknown"
9145
ac_cv_f77_mangling="unknown"
9150
rm -f cfortran_test*
9152
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9153
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9154
as_fn_error $? "cannot compile a simple Fortran program
9155
See \`config.log' for more details" "$LINENO" 5; }
9157
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9160
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_mangling" >&5
9161
$as_echo "$ac_cv_f77_mangling" >&6; }
9164
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
9165
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9166
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
9169
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
9170
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9171
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
9172
case $ac_cv_f77_mangling in
9173
"lower case, no underscore, no extra underscore")
9174
$as_echo "#define F77_FUNC(name,NAME) name" >>confdefs.h
9176
$as_echo "#define F77_FUNC_(name,NAME) name" >>confdefs.h
9178
"lower case, no underscore, extra underscore")
9179
$as_echo "#define F77_FUNC(name,NAME) name" >>confdefs.h
9181
$as_echo "#define F77_FUNC_(name,NAME) name ## _" >>confdefs.h
9183
"lower case, underscore, no extra underscore")
9184
$as_echo "#define F77_FUNC(name,NAME) name ## _" >>confdefs.h
9186
$as_echo "#define F77_FUNC_(name,NAME) name ## _" >>confdefs.h
9188
"lower case, underscore, extra underscore")
9189
$as_echo "#define F77_FUNC(name,NAME) name ## _" >>confdefs.h
9191
$as_echo "#define F77_FUNC_(name,NAME) name ## __" >>confdefs.h
9193
"upper case, no underscore, no extra underscore")
9194
$as_echo "#define F77_FUNC(name,NAME) NAME" >>confdefs.h
9196
$as_echo "#define F77_FUNC_(name,NAME) NAME" >>confdefs.h
9198
"upper case, no underscore, extra underscore")
9199
$as_echo "#define F77_FUNC(name,NAME) NAME" >>confdefs.h
9201
$as_echo "#define F77_FUNC_(name,NAME) NAME ## _" >>confdefs.h
9203
"upper case, underscore, no extra underscore")
9204
$as_echo "#define F77_FUNC(name,NAME) NAME ## _" >>confdefs.h
9206
$as_echo "#define F77_FUNC_(name,NAME) NAME ## _" >>confdefs.h
9208
"upper case, underscore, extra underscore")
9209
$as_echo "#define F77_FUNC(name,NAME) NAME ## _" >>confdefs.h
9211
$as_echo "#define F77_FUNC_(name,NAME) NAME ## __" >>confdefs.h
9214
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown Fortran name-mangling scheme" >&5
9215
$as_echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;}
9220
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
9221
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9222
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
9224
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to pass symbols to preprocessed $F77" >&5
9225
$as_echo_n "checking how to pass symbols to preprocessed $F77... " >&6; }
9226
if ${ga_cv_f77_cpp_symbol+:} false; then :
9227
$as_echo_n "(cached) " >&6
9230
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
9231
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9232
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
9235
for symbol in -D -WF,-D -Wp,-D
9237
ga_save_CPPFLAGS="$CPPFLAGS"
9238
ga_save_FFLAGS="$FFLAGS"
9239
CPPFLAGS="$CPPFLAGS ${symbol}GABLAHBLAH"
9240
FFLAGS="$CPPFLAGS $FFLAGS"
9241
cat > conftest.$ac_ext <<_ACEOF
9247
if ac_fn_f77_try_compile "$LINENO"; then :
9248
ga_cv_f77_cpp_symbol="$symbol"
9250
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9251
CPPFLAGS="$ga_save_CPPFLAGS"
9252
FFLAGS="$ga_save_FFLAGS"
9253
if test "x$ga_cv_f77_cpp_symbol" != x; then :
9258
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
9259
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9260
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
9264
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ga_cv_f77_cpp_symbol" >&5
9265
$as_echo "$ga_cv_f77_cpp_symbol" >&6; }
9266
if test "x$ga_cv_f77_cpp_symbol" = x; then :
9267
as_fn_error $? "don't know how to pass symbols to preprocessed Fortran" "$LINENO" 5
9269
case $ga_cv_f77_cpp_symbol in #(
9273
FFLAGS="$FFLAGS ${ga_cv_f77_cpp_symbol}HAVE_CONFIG_H" ;;
9277
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 needs a flag to compile fixed format source" >&5
9278
$as_echo_n "checking whether $F77 needs a flag to compile fixed format source... " >&6; }
9279
if ${ga_cv_f77_fixed_flag+:} false; then :
9280
$as_echo_n "(cached) " >&6
9283
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
9284
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9285
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
9287
for testflag in none -ffixed-form -qfixed -Mfixed -fixedform "-f fixed" +source=fixed -fix ; do
9288
ga_save_FFLAGS=$FFLAGS
9289
if test "x$testflag" != xnone; then :
9290
FFLAGS="$FFLAGS $testflag"
9292
cat > conftest.$ac_ext <<_ACEOF
9296
if ac_fn_f77_try_compile "$LINENO"; then :
9297
ga_cv_f77_fixed_flag=$testflag
9299
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9300
FFLAGS=$ga_save_FFLAGS
9301
if test "x$ga_cv_f77_fixed_flag" != x; then :
9306
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
9307
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9308
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
9311
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ga_cv_f77_fixed_flag" >&5
9312
$as_echo "$ga_cv_f77_fixed_flag" >&6; }
9313
if test "x$ga_cv_f77_fixed_flag" != xnone; then :
9314
if test "x$ga_cv_f77_fixed_flag" != x; then :
9315
FFLAGS="$FFLAGS $ga_cv_f77_fixed_flag"
9320
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 needs a flag to compile inconsistent types" >&5
9321
$as_echo_n "checking whether $F77 needs a flag to compile inconsistent types... " >&6; }
9322
if ${ga_cv_f77_mismatch_type_flag+:} false; then :
9323
$as_echo_n "(cached) " >&6
9326
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
9327
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9328
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
9330
for testflag in none -mismatch_all
9332
ga_save_FFLAGS="$FFLAGS"
9333
if test "x$testflag" != xnone; then :
9334
FFLAGS="$FFLAGS $testflag"
9336
cat > conftest.$ac_ext <<_ACEOF
9337
integer function the_test ()
9344
if (foo(byte_mb)) return
9345
if (foo( int_mb)) return
9350
if ac_fn_f77_try_compile "$LINENO"; then :
9351
ga_cv_f77_mismatch_type_flag="$testflag"
9353
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9354
FFLAGS="$ga_save_FFLAGS"
9355
if test "x$ga_cv_f77_mismatch_type_flag" != x; then :
9360
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
9361
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9362
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
9365
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ga_cv_f77_mismatch_type_flag" >&5
9366
$as_echo "$ga_cv_f77_mismatch_type_flag" >&6; }
9367
if test "x$ga_cv_f77_mismatch_type_flag" != xnone; then :
9368
if test "x$ga_cv_f77_mismatch_type_flag" != x; then :
9369
FFLAGS="$FFLAGS $ga_cv_f77_mismatch_type_flag"
9374
# Check whether --enable-i4 was given.
9375
if test "${enable_i4+set}" = set; then :
9376
enableval=$enable_i4; enable_i4=yes
9379
# Check whether --enable-i8 was given.
9380
if test "${enable_i8+set}" = set; then :
9381
enableval=$enable_i8; enable_i8=yes
9385
ac_cpp='$CPP $CPPFLAGS'
9386
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9387
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9388
ac_compiler_gnu=$ac_cv_c_compiler_gnu
9390
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ga_f77_integer_size" "$ac_includes_default"; then :
9393
ga_f77_integer_size=0
9397
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
9398
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9399
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
9401
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for desired Fortran INTEGER size" >&5
9402
$as_echo_n "checking for desired Fortran INTEGER size... " >&6; }
9403
if ${ga_cv_f77_integer_size+:} false; then :
9404
$as_echo_n "(cached) " >&6
9406
if test x$enable_i4 = xyes; then :
9407
if test x$enable_i8 = xyes; then :
9408
as_fn_error $? "Cannot enable both i4 and i8" "$LINENO" 5
9410
ga_cv_f77_integer_size=4
9413
if test x$enable_i8 = xyes; then :
9414
ga_cv_f77_integer_size=8
9416
ga_cv_f77_integer_size=$ga_f77_integer_size
9420
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ga_cv_f77_integer_size" >&5
9421
$as_echo "$ga_cv_f77_integer_size" >&6; }
9422
# Now determine the correct compiler flag to adjust the integer size.
9423
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for INTEGER size compile flag" >&5
9424
$as_echo_n "checking for INTEGER size compile flag... " >&6; }
9425
if ${ga_cv_f77_integer_size_flag+:} false; then :
9426
$as_echo_n "(cached) " >&6
9428
case $cross_compiling:$ga_cv_f77_integer_size in #(
9431
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
9432
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9433
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
9436
ga_save_FFLAGS="$FFLAGS"
9437
ga_save_suppress_FFLAGS="$FFLAGS"
9438
ga_save_werror_flag=$ac_f77_werror_flag
9439
ac_f77_werror_flag=yes
9440
if test "x$ga_cv_f77_suppress" != xnone; then :
9441
ga_save_suppress_FFLAGS="$FFLAGS $ga_cv_f77_suppress"
9443
if test "x$FFLAG_INT" != x; then :
9444
FFLAGS="$ga_save_suppress_FFLAGS $FFLAG_INT"
9445
cat > conftest.$ac_ext <<_ACEOF
9450
if ac_fn_f77_try_link "$LINENO"; then :
9453
rm -f core conftest.err conftest.$ac_objext \
9454
conftest$ac_exeext conftest.$ac_ext
9456
if test "x$ga_result" = x; then :
9457
for flag in -fdefault-integer-4 -qintsize=4 "-integer-size 32" -CcdII4 "-s integer32" -xtypemap=integer:32 -i4 +i4
9459
FFLAGS="$ga_save_suppress_FFLAGS $flag"
9460
cat > conftest.$ac_ext <<_ACEOF
9465
if ac_fn_f77_try_link "$LINENO"; then :
9467
cat > conftest.$ac_ext <<_ACEOF
9472
if ac_fn_f77_try_link "$LINENO"; then :
9473
ga_result=$flag; break
9475
rm -f core conftest.err conftest.$ac_objext \
9476
conftest$ac_exeext conftest.$ac_ext
9479
rm -f core conftest.err conftest.$ac_objext \
9480
conftest$ac_exeext conftest.$ac_ext
9483
ac_f77_werror_flag=$ga_save_werror_flag
9484
FFLAGS="$ga_save_FFLAGS"
9485
ga_cv_f77_integer_size_flag="$ga_result"
9487
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
9488
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9489
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
9494
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
9495
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9496
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
9499
ga_save_FFLAGS="$FFLAGS"
9500
ga_save_suppress_FFLAGS="$FFLAGS"
9501
ga_save_werror_flag=$ac_f77_werror_flag
9502
ac_f77_werror_flag=yes
9503
if test "x$ga_cv_f77_suppress" != xnone; then :
9504
ga_save_suppress_FFLAGS="$FFLAGS $ga_cv_f77_suppress"
9506
if test "x$FFLAG_INT" != x; then :
9507
FFLAGS="$ga_save_suppress_FFLAGS $FFLAG_INT"
9508
cat > conftest.$ac_ext <<_ACEOF
9513
if ac_fn_f77_try_link "$LINENO"; then :
9516
rm -f core conftest.err conftest.$ac_objext \
9517
conftest$ac_exeext conftest.$ac_ext
9519
if test "x$ga_result" = x; then :
9520
for flag in -fdefault-integer-8 -qintsize=8 "-integer-size 64" -CcdII8 "-s integer64" -xtypemap=integer:64 -i8 +i8
9522
FFLAGS="$ga_save_suppress_FFLAGS $flag"
9523
cat > conftest.$ac_ext <<_ACEOF
9528
if ac_fn_f77_try_link "$LINENO"; then :
9530
cat > conftest.$ac_ext <<_ACEOF
9535
if ac_fn_f77_try_link "$LINENO"; then :
9536
ga_result=$flag; break
9538
rm -f core conftest.err conftest.$ac_objext \
9539
conftest$ac_exeext conftest.$ac_ext
9542
rm -f core conftest.err conftest.$ac_objext \
9543
conftest$ac_exeext conftest.$ac_ext
9546
ac_f77_werror_flag=$ga_save_werror_flag
9547
FFLAGS="$ga_save_FFLAGS"
9548
ga_cv_f77_integer_size_flag="$ga_result"
9550
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
9551
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9552
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
9556
for flag in none $FFLAG_INT -fdefault-integer-4 -qintsize=4 "-integer-size 32" -CcdII4 "-s integer32" -xtypemap=integer:32 -i4 +i4
9558
ga_save_FFLAGS="$FFLAGS"
9559
if test "x$flag" != xnone; then :
9560
FFLAGS="$flag $FFLAGS"
9564
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
9565
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9566
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
9567
case $ac_cv_f77_mangling in
9568
upper*) ac_val="SIZE" ;;
9569
lower*) ac_val="size" ;;
9570
*) ac_val="unknown" ;;
9572
case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
9577
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
9578
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9579
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
9582
ac_cpp='$CPP $CPPFLAGS'
9583
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9584
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9585
ac_compiler_gnu=$ac_cv_c_compiler_gnu
9587
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9588
/* end confdefs.h. */
9594
void $size(char *a, char *b)
9596
long diff = (long) (b - a);
9597
FILE *f=fopen("conftestval", "w");
9599
fprintf(f, "%ld\n", diff);
9606
if ac_fn_c_try_compile "$LINENO"; then :
9607
mv conftest.$ac_objext cfortran_test.$ac_objext
9609
LIBS="cfortran_test.$ac_objext $LIBS $CLIBS"
9611
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
9612
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9613
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
9615
if test "$cross_compiling" = yes; then :
9616
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9617
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9618
as_fn_error $? "cannot run test program while cross compiling
9619
See \`config.log' for more details" "$LINENO" 5; }
9621
cat > conftest.$ac_ext <<_ACEOF
9625
call size(x(1),x(2))
9628
if ac_fn_f77_try_run "$LINENO"; then :
9629
sizeof_integer=`cat conftestval`
9633
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9634
conftest.$ac_objext conftest.beam conftest.$ac_ext
9638
ac_cpp='$CPP $CPPFLAGS'
9639
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9640
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9641
ac_compiler_gnu=$ac_cv_c_compiler_gnu
9644
rm -f cfortran_test*
9648
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9650
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
9651
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9652
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
9656
FFLAGS="$ga_save_FFLAGS"
9657
if test x$sizeof_integer = x4; then :
9658
ga_cv_f77_integer_size_flag=$flag; break
9663
for flag in none $FFLAG_INT -fdefault-integer-8 -qintsize=8 "-integer-size 64" -CcdII8 "-s integer64" -xtypemap=integer:64 -i8 +i8
9665
ga_save_FFLAGS="$FFLAGS"
9666
if test "x$flag" != xnone; then :
9667
FFLAGS="$flag $FFLAGS"
9671
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
9672
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9673
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
9674
case $ac_cv_f77_mangling in
9675
upper*) ac_val="SIZE" ;;
9676
lower*) ac_val="size" ;;
9677
*) ac_val="unknown" ;;
9679
case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
9684
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
9685
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9686
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
9689
ac_cpp='$CPP $CPPFLAGS'
9690
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9691
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9692
ac_compiler_gnu=$ac_cv_c_compiler_gnu
9694
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9695
/* end confdefs.h. */
9701
void $size(char *a, char *b)
9703
long diff = (long) (b - a);
9704
FILE *f=fopen("conftestval", "w");
9706
fprintf(f, "%ld\n", diff);
9713
if ac_fn_c_try_compile "$LINENO"; then :
9714
mv conftest.$ac_objext cfortran_test.$ac_objext
9716
LIBS="cfortran_test.$ac_objext $LIBS $CLIBS"
9718
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
9719
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9720
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
9722
if test "$cross_compiling" = yes; then :
9723
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9724
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9725
as_fn_error $? "cannot run test program while cross compiling
9726
See \`config.log' for more details" "$LINENO" 5; }
9728
cat > conftest.$ac_ext <<_ACEOF
9732
call size(x(1),x(2))
9735
if ac_fn_f77_try_run "$LINENO"; then :
9736
sizeof_integer=`cat conftestval`
9740
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9741
conftest.$ac_objext conftest.beam conftest.$ac_ext
9745
ac_cpp='$CPP $CPPFLAGS'
9746
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9747
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9748
ac_compiler_gnu=$ac_cv_c_compiler_gnu
9751
rm -f cfortran_test*
9755
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9757
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
9758
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9759
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
9763
FFLAGS="$ga_save_FFLAGS"
9764
if test x$sizeof_integer = x8; then :
9765
ga_cv_f77_integer_size_flag=$flag; break
9773
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ga_cv_f77_integer_size_flag" >&5
9774
$as_echo "$ga_cv_f77_integer_size_flag" >&6; }
9775
if test "x$ga_cv_f77_integer_size_flag" != x; then :
9776
if test "x$ga_cv_f77_integer_size_flag" != xnone; then :
9777
FFLAG_INT=$ga_cv_f77_integer_size_flag
9781
if test "x$ga_cv_f77_integer_size" = x8; then :
9782
if test "x$ga_cv_f77_integer_size_flag" = x; then :
9783
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
9784
$as_echo "$as_me: WARNING: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
9785
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to find a flag to promote Fortran integers" >&5
9786
$as_echo "$as_me: WARNING: Unable to find a flag to promote Fortran integers" >&2;}
9787
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: INTEGER*8 promotion is not supported" >&5
9788
$as_echo "$as_me: WARNING: INTEGER*8 promotion is not supported" >&2;}
9789
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
9790
$as_echo "$as_me: WARNING: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
9795
#Checks for Fortran typedefs, structures, and compiler characteristics.
9797
#Checks for Fortran type sizes.
9798
tascel_save_FFLAGS="$FFLAGS"; FFLAGS="$FFLAGS $FFLAG_INT"
9800
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of Fortran INTEGER" >&5
9801
$as_echo_n "checking size of Fortran INTEGER... " >&6; }
9802
if ${ga_cv_f77_sizeof_INTEGER+:} false; then :
9803
$as_echo_n "(cached) " >&6
9805
if test x$cross_compiling = xyes; then :
9806
ga_cv_f77_sizeof_INTEGER=$ga_cv_f77_integer_size
9809
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
9810
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9811
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
9812
case $ac_cv_f77_mangling in
9813
upper*) ac_val="SIZE" ;;
9814
lower*) ac_val="size" ;;
9815
*) ac_val="unknown" ;;
9817
case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
9822
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
9823
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9824
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
9827
ac_cpp='$CPP $CPPFLAGS'
9828
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9829
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9830
ac_compiler_gnu=$ac_cv_c_compiler_gnu
9832
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9833
/* end confdefs.h. */
9839
void $size(char *a, char *b)
9841
long diff = (long) (b - a);
9842
FILE *f=fopen("conftestval", "w");
9844
fprintf(f, "%ld\n", diff);
9851
if ac_fn_c_try_compile "$LINENO"; then :
9852
mv conftest.$ac_objext cfortran_test.$ac_objext
9854
LIBS="cfortran_test.$ac_objext $LIBS $CLIBS"
9856
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
9857
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9858
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
9860
if test "$cross_compiling" = yes; then :
9861
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9862
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9863
as_fn_error $? "cannot run test program while cross compiling
9864
See \`config.log' for more details" "$LINENO" 5; }
9866
cat > conftest.$ac_ext <<_ACEOF
9870
call size(x(1),x(2))
9873
if ac_fn_f77_try_run "$LINENO"; then :
9874
ga_cv_f77_sizeof_INTEGER=`cat conftestval`
9876
ga_cv_f77_sizeof_INTEGER=no
9878
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9879
conftest.$ac_objext conftest.beam conftest.$ac_ext
9883
ac_cpp='$CPP $CPPFLAGS'
9884
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9885
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9886
ac_compiler_gnu=$ac_cv_c_compiler_gnu
9889
rm -f cfortran_test*
9891
ga_cv_f77_sizeof_INTEGER=no
9893
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9895
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
9896
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9897
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
9903
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ga_cv_f77_sizeof_INTEGER" >&5
9904
$as_echo "$ga_cv_f77_sizeof_INTEGER" >&6; }
9905
if test x$cross_compiling = xyes; then :
9906
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot determine size of INTEGER when cross-compiling." >&5
9907
$as_echo "$as_me: WARNING: Cannot determine size of INTEGER when cross-compiling." >&2;}
9908
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Defaulting to $ga_cv_f77_integer_size" >&5
9909
$as_echo "$as_me: WARNING: Defaulting to $ga_cv_f77_integer_size" >&2;}
9912
cat >>confdefs.h <<_ACEOF
9913
#define SIZEOF_F77_INTEGER $ga_cv_f77_sizeof_INTEGER
9918
FFLAGS="$tascel_save_FFLAGS"
9920
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of Fortran REAL" >&5
9921
$as_echo_n "checking size of Fortran REAL... " >&6; }
9922
if ${ga_cv_f77_sizeof_REAL+:} false; then :
9923
$as_echo_n "(cached) " >&6
9925
if test x$cross_compiling = xyes; then :
9926
ga_cv_f77_sizeof_REAL=4
9929
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
9930
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9931
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
9932
case $ac_cv_f77_mangling in
9933
upper*) ac_val="SIZE" ;;
9934
lower*) ac_val="size" ;;
9935
*) ac_val="unknown" ;;
9937
case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
9942
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
9943
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9944
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
9947
ac_cpp='$CPP $CPPFLAGS'
9948
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9949
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9950
ac_compiler_gnu=$ac_cv_c_compiler_gnu
9952
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9953
/* end confdefs.h. */
9959
void $size(char *a, char *b)
9961
long diff = (long) (b - a);
9962
FILE *f=fopen("conftestval", "w");
9964
fprintf(f, "%ld\n", diff);
9971
if ac_fn_c_try_compile "$LINENO"; then :
9972
mv conftest.$ac_objext cfortran_test.$ac_objext
9974
LIBS="cfortran_test.$ac_objext $LIBS $CLIBS"
9976
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
9977
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9978
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
9980
if test "$cross_compiling" = yes; then :
9981
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9982
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9983
as_fn_error $? "cannot run test program while cross compiling
9984
See \`config.log' for more details" "$LINENO" 5; }
9986
cat > conftest.$ac_ext <<_ACEOF
9990
call size(x(1),x(2))
9993
if ac_fn_f77_try_run "$LINENO"; then :
9994
ga_cv_f77_sizeof_REAL=`cat conftestval`
9996
ga_cv_f77_sizeof_REAL=no
9998
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9999
conftest.$ac_objext conftest.beam conftest.$ac_ext
10003
ac_cpp='$CPP $CPPFLAGS'
10004
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10005
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10006
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10009
rm -f cfortran_test*
10011
ga_cv_f77_sizeof_REAL=no
10013
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10015
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10016
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10017
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10023
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ga_cv_f77_sizeof_REAL" >&5
10024
$as_echo "$ga_cv_f77_sizeof_REAL" >&6; }
10025
if test x$cross_compiling = xyes; then :
10026
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot determine size of REAL when cross-compiling." >&5
10027
$as_echo "$as_me: WARNING: Cannot determine size of REAL when cross-compiling." >&2;}
10028
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Defaulting to 4" >&5
10029
$as_echo "$as_me: WARNING: Defaulting to 4" >&2;}
10032
cat >>confdefs.h <<_ACEOF
10033
#define SIZEOF_F77_REAL $ga_cv_f77_sizeof_REAL
10039
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of Fortran DOUBLE PRECISION" >&5
10040
$as_echo_n "checking size of Fortran DOUBLE PRECISION... " >&6; }
10041
if ${ga_cv_f77_sizeof_DOUBLE_PRECISION+:} false; then :
10042
$as_echo_n "(cached) " >&6
10044
if test x$cross_compiling = xyes; then :
10045
ga_cv_f77_sizeof_DOUBLE_PRECISION=8
10048
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10049
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10050
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10051
case $ac_cv_f77_mangling in
10052
upper*) ac_val="SIZE" ;;
10053
lower*) ac_val="size" ;;
10054
*) ac_val="unknown" ;;
10056
case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
10061
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10062
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10063
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10066
ac_cpp='$CPP $CPPFLAGS'
10067
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10068
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10069
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10071
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10072
/* end confdefs.h. */
10074
#include <stdlib.h>
10078
void $size(char *a, char *b)
10080
long diff = (long) (b - a);
10081
FILE *f=fopen("conftestval", "w");
10083
fprintf(f, "%ld\n", diff);
10090
if ac_fn_c_try_compile "$LINENO"; then :
10091
mv conftest.$ac_objext cfortran_test.$ac_objext
10093
LIBS="cfortran_test.$ac_objext $LIBS $CLIBS"
10095
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10096
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10097
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10099
if test "$cross_compiling" = yes; then :
10100
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10101
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10102
as_fn_error $? "cannot run test program while cross compiling
10103
See \`config.log' for more details" "$LINENO" 5; }
10105
cat > conftest.$ac_ext <<_ACEOF
10108
DOUBLE PRECISION x(2)
10109
call size(x(1),x(2))
10112
if ac_fn_f77_try_run "$LINENO"; then :
10113
ga_cv_f77_sizeof_DOUBLE_PRECISION=`cat conftestval`
10115
ga_cv_f77_sizeof_DOUBLE_PRECISION=no
10117
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10118
conftest.$ac_objext conftest.beam conftest.$ac_ext
10122
ac_cpp='$CPP $CPPFLAGS'
10123
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10124
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10125
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10128
rm -f cfortran_test*
10130
ga_cv_f77_sizeof_DOUBLE_PRECISION=no
10132
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10134
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10135
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10136
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10142
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ga_cv_f77_sizeof_DOUBLE_PRECISION" >&5
10143
$as_echo "$ga_cv_f77_sizeof_DOUBLE_PRECISION" >&6; }
10144
if test x$cross_compiling = xyes; then :
10145
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot determine size of DOUBLE PRECISION when cross-compiling." >&5
10146
$as_echo "$as_me: WARNING: Cannot determine size of DOUBLE PRECISION when cross-compiling." >&2;}
10147
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Defaulting to 8" >&5
10148
$as_echo "$as_me: WARNING: Defaulting to 8" >&2;}
10151
cat >>confdefs.h <<_ACEOF
10152
#define SIZEOF_F77_DOUBLE_PRECISION $ga_cv_f77_sizeof_DOUBLE_PRECISION
10158
# The rest of the Fortran 77 to C compatibility checks.
10159
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for flag to disable $F77 main when linking with C main" >&5
10160
$as_echo_n "checking for flag to disable $F77 main when linking with C main... " >&6; }
10161
if ${ga_cv_fld_nomain+:} false; then :
10162
$as_echo_n "(cached) " >&6
10165
ac_cpp='$CPP $CPPFLAGS'
10166
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10167
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10168
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10170
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10171
/* end confdefs.h. */
10173
#ifdef F77_DUMMY_MAIN
10175
# ifdef __cplusplus
10178
int F77_DUMMY_MAIN() { return 1; }
10189
if ac_fn_c_try_compile "$LINENO"; then :
10190
mv conftest.$ac_objext cfortran_test.$ac_objext
10192
LIBS="cfortran_test.$ac_objext $LIBS"
10194
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10195
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10196
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10198
for flag in none -nofor-main -nofor_main -Mnomain -mlcmain=main; do
10199
ga_save_FFLAGS=$FFLAGS
10200
if test "x$flag" != xnone; then :
10201
FFLAGS="$FFLAGS $flag"
10203
cat > conftest.$ac_ext <<_ACEOF
10204
subroutine donothing()
10207
if ac_fn_f77_try_link "$LINENO"; then :
10208
ga_cv_fld_nomain=$flag
10210
rm -f core conftest.err conftest.$ac_objext \
10211
conftest$ac_exeext conftest.$ac_ext
10212
FFLAGS=$ga_save_FFLAGS
10213
if test "x$ga_cv_fld_nomain" != x; then :
10218
ac_cpp='$CPP $CPPFLAGS'
10219
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10220
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10221
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10224
rm -f cfortran_test.$ac_objext
10226
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10228
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10229
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10230
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10233
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ga_cv_fld_nomain" >&5
10234
$as_echo "$ga_cv_fld_nomain" >&6; }
10235
if test "x$ga_cv_fld_nomain" != xnone; then :
10236
FLD_NOMAIN=$ga_cv_fld_nomain
10242
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10243
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10244
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10246
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for routines to access the command line from Fortran" >&5
10247
$as_echo_n "checking for routines to access the command line from Fortran... " >&6; }
10248
# User-specified values
10249
# Standard practice, uppercase
10250
if test "x$ga_f77_getarg" = x; then :
10252
ga_f77_getarg_decl="external GETARG"
10253
ga_f77_getarg=GETARG
10254
ga_f77_getarg_args="i,s"
10256
cat > conftest.$ac_ext <<_ACEOF
10259
integer i, j, l, ier
10261
$ga_f77_getarg_decl
10263
call $ga_f77_getarg($ga_f77_getarg_args)
10266
j = i - $ga_f77_iargc()
10271
if ac_fn_f77_try_link "$LINENO"; then :
10276
rm -f core conftest.err conftest.$ac_objext \
10277
conftest$ac_exeext conftest.$ac_ext
10280
# Standard practice, lowercase
10281
if test "x$ga_f77_getarg" = x; then :
10283
ga_f77_getarg_decl="external getarg"
10284
ga_f77_getarg=getarg
10285
ga_f77_getarg_args="i,s"
10287
cat > conftest.$ac_ext <<_ACEOF
10290
integer i, j, l, ier
10292
$ga_f77_getarg_decl
10294
call $ga_f77_getarg($ga_f77_getarg_args)
10297
j = i - $ga_f77_iargc()
10302
if ac_fn_f77_try_link "$LINENO"; then :
10307
rm -f core conftest.err conftest.$ac_objext \
10308
conftest$ac_exeext conftest.$ac_ext
10311
# Posix alternative
10312
if test "x$ga_f77_getarg" = x; then :
10314
ga_f77_getarg_decl="external pxfgetarg"
10315
ga_f77_getarg=pxfgetarg
10316
ga_f77_getarg_args="i,s,l,ier"
10317
ga_f77_iargc=ipxfargc
10318
cat > conftest.$ac_ext <<_ACEOF
10321
integer i, j, l, ier
10323
$ga_f77_getarg_decl
10325
call $ga_f77_getarg($ga_f77_getarg_args)
10328
j = i - $ga_f77_iargc()
10333
if ac_fn_f77_try_link "$LINENO"; then :
10338
rm -f core conftest.err conftest.$ac_objext \
10339
conftest$ac_exeext conftest.$ac_ext
10342
# Nag f90_unix_env module
10343
if test "x$ga_f77_getarg" = x; then :
10344
ga_fxx_module=" use f90_unix_env"
10345
ga_f77_getarg_decl=
10346
ga_f77_getarg=getarg
10347
ga_f77_getarg_args="i,s"
10349
cat > conftest.$ac_ext <<_ACEOF
10352
integer i, j, l, ier
10354
$ga_f77_getarg_decl
10356
call $ga_f77_getarg($ga_f77_getarg_args)
10359
j = i - $ga_f77_iargc()
10364
if ac_fn_f77_try_link "$LINENO"; then :
10369
rm -f core conftest.err conftest.$ac_objext \
10370
conftest$ac_exeext conftest.$ac_ext
10373
# Nag f90_unix module
10374
if test "x$ga_f77_getarg" = x; then :
10375
ga_fxx_module=" use f90_unix"
10376
ga_f77_getarg_decl=
10377
ga_f77_getarg=getarg
10378
ga_f77_getarg_args="i,s"
10380
cat > conftest.$ac_ext <<_ACEOF
10383
integer i, j, l, ier
10385
$ga_f77_getarg_decl
10387
call $ga_f77_getarg($ga_f77_getarg_args)
10390
j = i - $ga_f77_iargc()
10395
if ac_fn_f77_try_link "$LINENO"; then :
10400
rm -f core conftest.err conftest.$ac_objext \
10401
conftest$ac_exeext conftest.$ac_ext
10404
# gfortran won't find getarg if it is marked as external
10405
if test "x$ga_f77_getarg" = x; then :
10407
ga_f77_getarg_decl="intrinsic GETARG"
10408
ga_f77_getarg=GETARG
10409
ga_f77_getarg_args="i,s"
10411
cat > conftest.$ac_ext <<_ACEOF
10414
integer i, j, l, ier
10416
$ga_f77_getarg_decl
10418
call $ga_f77_getarg($ga_f77_getarg_args)
10421
j = i - $ga_f77_iargc()
10426
if ac_fn_f77_try_link "$LINENO"; then :
10431
rm -f core conftest.err conftest.$ac_objext \
10432
conftest$ac_exeext conftest.$ac_ext
10435
if test "x$ga_f77_getarg" = x; then :
10436
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10437
$as_echo "no" >&6; }
10438
as_fn_error $? "Could not find way to access Fortran cmd line from C" "$LINENO" 5
10440
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10441
$as_echo "yes" >&6; }
10443
cat >>confdefs.h <<_ACEOF
10444
#define F77_GETARG_DECL $ga_f77_getarg_decl
10448
cat >>confdefs.h <<_ACEOF
10449
#define F77_GETARG $ga_f77_getarg
10453
cat >>confdefs.h <<_ACEOF
10454
#define F77_GETARG_ARGS $ga_f77_getarg_args
10458
cat >>confdefs.h <<_ACEOF
10459
#define F77_IARGC $ga_f77_iargc
10463
cat >>confdefs.h <<_ACEOF
10464
#define FXX_MODULE $ga_fxx_module
10468
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10469
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10470
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10471
case $ac_cv_f77_mangling in
10472
upper*) ac_val="F2C_GETARG" ;;
10473
lower*) ac_val="f2c_getarg" ;;
10474
*) ac_val="unknown" ;;
10476
case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
10477
case $ac_cv_f77_mangling in *," extra underscore"*) ac_val="$ac_val"_ ;; esac
10479
F2C_GETARG="$ac_val"
10482
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10483
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10484
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10487
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10488
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10489
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10490
case $ac_cv_f77_mangling in
10491
upper*) ac_val="F2C_IARGC" ;;
10492
lower*) ac_val="f2c_iargc" ;;
10493
*) ac_val="unknown" ;;
10495
case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
10496
case $ac_cv_f77_mangling in *," extra underscore"*) ac_val="$ac_val"_ ;; esac
10498
F2C_IARGC="$ac_val"
10501
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10502
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10503
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10506
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10507
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10508
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10515
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Fortran hidden string length convention is after args" >&5
10516
$as_echo_n "checking whether Fortran hidden string length convention is after args... " >&6; }
10517
if ${ga_cv_f2c_string_after_args+:} false; then :
10518
$as_echo_n "(cached) " >&6
10520
if test "x$F2C_HIDDEN_STRING_LENGTH_AFTER_ARGS" != x; then :
10521
ga_cv_f2c_string_after_args="$F2C_HIDDEN_STRING_LENGTH_AFTER_ARGS"
10523
if test "x$ga_cv_f2c_string_after_args" = x; then :
10524
if test x$cross_compiling = xyes; then :
10525
if test "x" != x; then :
10526
ga_cv_f2c_string_after_args=""
10528
ga_cv_f2c_string_after_args="yes"
10532
if test "x$ga_cv_f2c_string_after_args" = x; then :
10534
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10535
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10536
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10537
case $ac_cv_f77_mangling in
10538
upper*) ac_val="SUB" ;;
10539
lower*) ac_val="sub" ;;
10540
*) ac_val="unknown" ;;
10542
case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
10547
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10548
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10549
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10552
ac_cpp='$CPP $CPPFLAGS'
10553
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10554
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10555
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10557
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10558
/* end confdefs.h. */
10560
#include <string.h>
10563
void fix_c_string_for_f(char *s, int len);
10564
void fix_f_string_for_c(char *s, int len);
10566
void $SUB(char *fname, char *lname, int fname_len, int lname_len)
10569
fix_f_string_for_c(fname, fname_len);
10570
fix_f_string_for_c(lname, lname_len);
10571
snprintf(result, LEN, "The names passed to C: %s %s\n", fname, lname);
10572
fix_c_string_for_f(fname, fname_len);
10573
fix_c_string_for_f(lname, lname_len);
10576
void fix_c_string_for_f(char *s, int len)
10579
for (i=strlen(s); i < len; i++) {
10584
void fix_f_string_for_c(char *s, int len)
10587
for (i=len-1; s[i] == ' ' && i>=0; i--) {
10592
if ac_fn_c_try_compile "$LINENO"; then :
10593
mv conftest.$ac_objext cfortran_test.$ac_objext
10595
LIBS="cfortran_test.$ac_objext $LIBS $CLIBS"
10597
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10598
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10599
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10601
if test "$cross_compiling" = yes; then :
10602
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10603
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10604
as_fn_error $? "cannot run test program while cross compiling
10605
See \`config.log' for more details" "$LINENO" 5; }
10607
cat > conftest.$ac_ext <<_ACEOF
10609
character(LEN=10) :: first_name
10610
character(LEN=15) :: last_name
10611
first_name = "John"
10613
call sub(first_name, last_name)
10616
if ac_fn_f77_try_run "$LINENO"; then :
10617
ga_cv_f2c_string_after_args="yes"
10621
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10622
conftest.$ac_objext conftest.beam conftest.$ac_ext
10626
ac_cpp='$CPP $CPPFLAGS'
10627
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10628
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10629
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10632
rm -f cfortran_test*
10636
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10638
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10639
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10640
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10645
if test "x$ga_cv_f2c_string_after_args" = x; then :
10647
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10648
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10649
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10650
case $ac_cv_f77_mangling in
10651
upper*) ac_val="SUB" ;;
10652
lower*) ac_val="sub" ;;
10653
*) ac_val="unknown" ;;
10655
case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
10660
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10661
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10662
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10665
ac_cpp='$CPP $CPPFLAGS'
10666
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10667
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10668
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10670
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10671
/* end confdefs.h. */
10673
#include <string.h>
10676
void fix_c_string_for_f(char *s, int len);
10677
void fix_f_string_for_c(char *s, int len);
10679
void $SUB(char *fname, int fname_len, char *lname, int lname_len)
10682
fix_f_string_for_c(fname, fname_len);
10683
fix_f_string_for_c(lname, lname_len);
10684
snprintf(result, LEN, "The names passed to C: %s %s\n", fname, lname);
10685
fix_c_string_for_f(fname, fname_len);
10686
fix_c_string_for_f(lname, lname_len);
10689
void fix_c_string_for_f(char *s, int len)
10692
for (i=strlen(s); i < len; i++) {
10697
void fix_f_string_for_c(char *s, int len)
10700
for (i=len-1; s[i] == ' ' && i>=0; i--) {
10705
if ac_fn_c_try_compile "$LINENO"; then :
10706
mv conftest.$ac_objext cfortran_test.$ac_objext
10708
LIBS="cfortran_test.$ac_objext $LIBS $CLIBS"
10710
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10711
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10712
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10714
if test "$cross_compiling" = yes; then :
10715
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10716
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10717
as_fn_error $? "cannot run test program while cross compiling
10718
See \`config.log' for more details" "$LINENO" 5; }
10720
cat > conftest.$ac_ext <<_ACEOF
10722
character(LEN=10) :: first_name
10723
character(LEN=15) :: last_name
10724
first_name = "John"
10726
call sub(first_name, last_name)
10729
if ac_fn_f77_try_run "$LINENO"; then :
10730
ga_cv_f2c_string_after_args="no"
10734
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10735
conftest.$ac_objext conftest.beam conftest.$ac_ext
10739
ac_cpp='$CPP $CPPFLAGS'
10740
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10741
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10742
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10745
rm -f cfortran_test*
10749
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10751
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10752
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10753
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10759
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ga_cv_f2c_string_after_args" >&5
10760
$as_echo "$ga_cv_f2c_string_after_args" >&6; }
10761
if test x$cross_compiling = xyes; then :
10762
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: cannot determine f2c string convention" >&5
10763
$as_echo "$as_me: WARNING: cross compiling: cannot determine f2c string convention" >&2;}
10764
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: default is after args (=yes) but can be changed using" >&5
10765
$as_echo "$as_me: WARNING: default is after args (=yes) but can be changed using" >&2;}
10766
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: F2C_HIDDEN_STRING_LENGTH_AFTER_ARGS=no" >&5
10767
$as_echo "$as_me: WARNING: F2C_HIDDEN_STRING_LENGTH_AFTER_ARGS=no" >&2;}
10769
if test "x$ga_cv_f2c_string_after_args" = "xyes"; then :
10771
$as_echo "#define F2C_HIDDEN_STRING_LENGTH_AFTER_ARGS 1" >>confdefs.h
10774
if test "x$ga_cv_f2c_string_after_args" != x; then :
10777
as_fn_error $? "f2c string convention is neither after args nor after string" "$LINENO" 5
10782
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C type corresponding to INTEGER" >&5
10783
$as_echo_n "checking for C type corresponding to INTEGER... " >&6; }
10784
if ${ga_cv_f2c_INTEGER+:} false; then :
10785
$as_echo_n "(cached) " >&6
10788
if test -z "$ga_cv_f2c_INTEGER"; then :
10789
if test "$ac_cv_sizeof_short" = "$ga_cv_f77_sizeof_INTEGER"; then :
10790
ga_cv_f2c_INTEGER="short"
10794
if test -z "$ga_cv_f2c_INTEGER"; then :
10795
if test "$ac_cv_sizeof_int" = "$ga_cv_f77_sizeof_INTEGER"; then :
10796
ga_cv_f2c_INTEGER="int"
10800
if test -z "$ga_cv_f2c_INTEGER"; then :
10801
if test "$ac_cv_sizeof_long" = "$ga_cv_f77_sizeof_INTEGER"; then :
10802
ga_cv_f2c_INTEGER="long"
10806
if test -z "$ga_cv_f2c_INTEGER"; then :
10807
if test "$ac_cv_sizeof_long_long" = "$ga_cv_f77_sizeof_INTEGER"; then :
10808
ga_cv_f2c_INTEGER="long long"
10813
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ga_cv_f2c_INTEGER" >&5
10814
$as_echo "$ga_cv_f2c_INTEGER" >&6; }
10815
if test "x$ga_cv_f2c_INTEGER" = x; then :
10816
as_fn_error $? "Could not determine C type matching Fortran INTEGER" "$LINENO" 5
10818
F2C_INTEGER_C_TYPE=$ga_cv_f2c_INTEGER
10825
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C type corresponding to REAL" >&5
10826
$as_echo_n "checking for C type corresponding to REAL... " >&6; }
10827
if ${ga_cv_f2c_REAL+:} false; then :
10828
$as_echo_n "(cached) " >&6
10831
if test -z "$ga_cv_f2c_REAL"; then :
10832
if test "$ac_cv_sizeof_float" = "$ga_cv_f77_sizeof_REAL"; then :
10833
ga_cv_f2c_REAL="float"
10837
if test -z "$ga_cv_f2c_REAL"; then :
10838
if test "$ac_cv_sizeof_double" = "$ga_cv_f77_sizeof_REAL"; then :
10839
ga_cv_f2c_REAL="double"
10843
if test -z "$ga_cv_f2c_REAL"; then :
10844
if test "$ac_cv_sizeof_long_double" = "$ga_cv_f77_sizeof_REAL"; then :
10845
ga_cv_f2c_REAL="long double"
10850
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ga_cv_f2c_REAL" >&5
10851
$as_echo "$ga_cv_f2c_REAL" >&6; }
10852
if test "x$ga_cv_f2c_REAL" = x; then :
10853
as_fn_error $? "Could not determine C type matching Fortran REAL" "$LINENO" 5
10855
F2C_REAL_C_TYPE=$ga_cv_f2c_REAL
10862
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C type corresponding to DOUBLE PRECISION" >&5
10863
$as_echo_n "checking for C type corresponding to DOUBLE PRECISION... " >&6; }
10864
if ${ga_cv_f2c_DOUBLE_PRECISION+:} false; then :
10865
$as_echo_n "(cached) " >&6
10868
if test -z "$ga_cv_f2c_DOUBLE_PRECISION"; then :
10869
if test "$ac_cv_sizeof_float" = "$ga_cv_f77_sizeof_DOUBLE_PRECISION"; then :
10870
ga_cv_f2c_DOUBLE_PRECISION="float"
10874
if test -z "$ga_cv_f2c_DOUBLE_PRECISION"; then :
10875
if test "$ac_cv_sizeof_double" = "$ga_cv_f77_sizeof_DOUBLE_PRECISION"; then :
10876
ga_cv_f2c_DOUBLE_PRECISION="double"
10880
if test -z "$ga_cv_f2c_DOUBLE_PRECISION"; then :
10881
if test "$ac_cv_sizeof_long_double" = "$ga_cv_f77_sizeof_DOUBLE_PRECISION"; then :
10882
ga_cv_f2c_DOUBLE_PRECISION="long double"
10887
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ga_cv_f2c_DOUBLE_PRECISION" >&5
10888
$as_echo "$ga_cv_f2c_DOUBLE_PRECISION" >&6; }
10889
if test "x$ga_cv_f2c_DOUBLE_PRECISION" = x; then :
10890
as_fn_error $? "Could not determine C type matching Fortran DOUBLE PRECISION" "$LINENO" 5
10892
F2C_DOUBLE_PRECISION_C_TYPE=$ga_cv_f2c_DOUBLE_PRECISION
10900
# enable_f77=no version of AC_F77_WRAPPERS
10902
$as_echo "#define F77_FUNC(name,NAME) name" >>confdefs.h
10905
$as_echo "#define F77_FUNC_(name,NAME) name ## _" >>confdefs.h
10907
# enable_f77=no version of GA_F77_CHECK_SIZEOF
10909
cat >>confdefs.h <<_ACEOF
10910
#define SIZEOF_F77_INTEGER $ac_cv_sizeof_voidp
10914
cat >>confdefs.h <<_ACEOF
10915
#define SIZEOF_F77_REAL 4
10919
cat >>confdefs.h <<_ACEOF
10920
#define SIZEOF_F77_DOUBLE_PRECISION 8
10923
# enable_f77=no version of GA_F2C_NOMAIN
10925
# enable_f77=no version of GA_F2C_CMDARGS
10926
F2C_GETARG="F2C_GETARG"
10927
F2C_IARGC="F2C_IARGC"
10930
# enable_f77=no version of GA_F2C_HIDDEN_STRING_LENGTH_CONVENTION
10932
$as_echo "#define F2C_HIDDEN_STRING_LENGTH_AFTER_ARGS 1" >>confdefs.h
10934
# enable_f77=no version of GA_F2C_MATCH_TYPES
10935
F2C_INTEGER_C_TYPE=long
10937
F2C_REAL_C_TYPE=float
10939
F2C_DOUBLE_PRECISION_C_TYPE=double
10945
ac_cpp='$CPP $CPPFLAGS'
10946
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10947
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10948
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10951
###############################################################################
10952
# Look for Global Arrays
10953
###############################################################################
10955
ac_cpp='$CPP $CPPFLAGS'
10956
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10957
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10958
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10959
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
10960
$as_echo_n "checking how to run the C preprocessor... " >&6; }
10961
# On Suns, sometimes $CPP names a directory.
10962
if test -n "$CPP" && test -d "$CPP"; then
10965
if test -z "$CPP"; then
10966
if ${ac_cv_prog_CPP+:} false; then :
10967
$as_echo_n "(cached) " >&6
10969
# Double quotes because CPP needs to be expanded
10970
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
10972
ac_preproc_ok=false
10973
for ac_c_preproc_warn_flag in '' yes
10975
# Use a header file that comes with gcc, so configuring glibc
10976
# with a fresh cross-compiler works.
10977
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10978
# <limits.h> exists even on freestanding compilers.
10979
# On the NeXT, cc -E runs the code through the compiler's parser,
10980
# not just through cpp. "Syntax error" is here to catch this case.
10981
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10982
/* end confdefs.h. */
10984
# include <limits.h>
10986
# include <assert.h>
10990
if ac_fn_c_try_cpp "$LINENO"; then :
10993
# Broken: fails on valid input.
10996
rm -f conftest.err conftest.i conftest.$ac_ext
10998
# OK, works on sane cases. Now check whether nonexistent headers
10999
# can be detected and how.
11000
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11001
/* end confdefs.h. */
11002
#include <ac_nonexistent.h>
11004
if ac_fn_c_try_cpp "$LINENO"; then :
11005
# Broken: success on invalid input.
11008
# Passes both tests.
11012
rm -f conftest.err conftest.i conftest.$ac_ext
11015
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11016
rm -f conftest.i conftest.err conftest.$ac_ext
11017
if $ac_preproc_ok; then :
11022
ac_cv_prog_CPP=$CPP
11025
CPP=$ac_cv_prog_CPP
11027
ac_cv_prog_CPP=$CPP
11029
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
11030
$as_echo "$CPP" >&6; }
11031
ac_preproc_ok=false
11032
for ac_c_preproc_warn_flag in '' yes
11034
# Use a header file that comes with gcc, so configuring glibc
11035
# with a fresh cross-compiler works.
11036
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11037
# <limits.h> exists even on freestanding compilers.
11038
# On the NeXT, cc -E runs the code through the compiler's parser,
11039
# not just through cpp. "Syntax error" is here to catch this case.
11040
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11041
/* end confdefs.h. */
11043
# include <limits.h>
11045
# include <assert.h>
11049
if ac_fn_c_try_cpp "$LINENO"; then :
11052
# Broken: fails on valid input.
11055
rm -f conftest.err conftest.i conftest.$ac_ext
11057
# OK, works on sane cases. Now check whether nonexistent headers
11058
# can be detected and how.
11059
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11060
/* end confdefs.h. */
11061
#include <ac_nonexistent.h>
11063
if ac_fn_c_try_cpp "$LINENO"; then :
11064
# Broken: success on invalid input.
11067
# Passes both tests.
11071
rm -f conftest.err conftest.i conftest.$ac_ext
11074
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11075
rm -f conftest.i conftest.err conftest.$ac_ext
11076
if $ac_preproc_ok; then :
11079
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11080
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11081
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
11082
See \`config.log' for more details" "$LINENO" 5; }
11086
ac_cpp='$CPP $CPPFLAGS'
11087
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11088
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11089
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11092
if test "x$tascel_cv_standalone" = xno; then :
11093
GA_LIBS="../libga.la"
11094
GA_CPPFLAGS="-I$srcdir/../global/src -I../global/src -I$srcdir/../ma -I../ma -I../gaf2c -I$srcdir/../armci/src/include"
11105
# Check whether --with-ga was given.
11106
if test "${with_ga+set}" = set; then :
11112
case $with_ga in #(
11118
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ga_arg_parse_sizeof_voidp" ""; then :
11122
for arg in $with_ga ; do
11129
GA_LIBS="$GA_LIBS $arg" ;; #(
11131
GA_LDFLAGS="$GA_LDFLAGS $arg" ;; #(
11133
GA_LDFLAGS="$GA_LDFLAGS $arg" ;; #(
11135
GA_LDFLAGS="$GA_LDFLAGS $arg" ;; #(
11137
GA_CPPFLAGS="$GA_CPPFLAGS $arg" ;; #(
11139
GA_LIBS="$GA_LIBS $arg" ;; #(
11141
GA_LIBS="$GA_LIBS $arg" ;; #(
11143
if test -d $arg; then :
11144
GA_LDFLAGS="$GA_LDFLAGS -L$arg"
11146
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_ga not parsed" >&5
11147
$as_echo "$as_me: WARNING: $arg of with_ga not parsed" >&2;}
11150
if test -d $arg; then :
11151
GA_LDFLAGS="$GA_LDFLAGS -L$arg"
11153
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_ga not parsed" >&5
11154
$as_echo "$as_me: WARNING: $arg of with_ga not parsed" >&2;}
11157
if test -d $arg; then :
11158
GA_CPPFLAGS="$GA_CPPFLAGS -I$arg"
11160
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_ga not parsed" >&5
11161
$as_echo "$as_me: WARNING: $arg of with_ga not parsed" >&2;}
11164
if test -d $arg; then :
11165
GA_CPPFLAGS="$GA_CPPFLAGS -I$arg"
11167
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_ga not parsed" >&5
11168
$as_echo "$as_me: WARNING: $arg of with_ga not parsed" >&2;}
11171
ga_arg_parse_ok=no ;;
11173
# $arg didn't fit the most common cases
11174
# check for subdirectories e.g. lib,include
11175
if test "x$ga_arg_parse_ok" = xno; then :
11176
if test "x$ga_arg_parse_sizeof_voidp" = x8; then :
11177
if test -d $arg/lib64; then :
11178
GA_LDFLAGS="$GA_LDFLAGS -L$arg/lib64"; ga_arg_parse_ok=yes
11179
elif test -d $arg/lib; then :
11180
GA_LDFLAGS="$GA_LDFLAGS -L$arg/lib"; ga_arg_parse_ok=yes
11182
if test -d $arg/include64; then :
11183
GA_CPPFLAGS="$GA_CPPFLAGS -I$arg/include64"; ga_arg_parse_ok=yes
11184
elif test -d $arg/include; then :
11185
GA_CPPFLAGS="$GA_CPPFLAGS -I$arg/include"; ga_arg_parse_ok=yes
11188
if test -d $arg/lib; then :
11189
GA_LDFLAGS="$GA_LDFLAGS -L$arg/lib"; ga_arg_parse_ok=yes
11191
if test -d $arg/include; then :
11192
GA_CPPFLAGS="$GA_CPPFLAGS -I$arg/include"; ga_arg_parse_ok=yes
11196
# $arg still unknown, look for "lib" and "include" anywhere...
11197
if test "x$ga_arg_parse_ok" = xno; then :
11200
if test -d $arg; then :
11201
GA_LDFLAGS="$GA_LDFLAGS -L$arg"; ga_arg_parse_ok=yes
11204
if test -d $arg; then :
11205
GA_CPPFLAGS="$GA_CPPFLAGS -I$arg"; ga_arg_parse_ok=yes
11211
# warn user that $arg fell through
11212
if test "x$ga_arg_parse_ok" = xno; then :
11213
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_ga not parsed" >&5
11214
$as_echo "$as_me: WARNING: $arg of with_ga not parsed" >&2;}
11218
# Check for header.
11219
ga_save_CPPFLAGS="$CPPFLAGS"; CPPFLAGS="$CPPFLAGS $GA_CPPFLAGS"
11220
ac_fn_c_check_header_mongrel "$LINENO" "ga.h" "ac_cv_header_ga_h" "$ac_includes_default"
11221
if test "x$ac_cv_header_ga_h" = xyes; then :
11224
{ ac_cv_search_GA_Initialize=; unset ac_cv_search_GA_Initialize;}
11234
# Check whether --with-ga was given.
11235
if test "${with_ga+set}" = set; then :
11241
case $with_ga in #(
11247
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ga_arg_parse_sizeof_voidp" ""; then :
11251
for arg in $with_ga ; do
11258
GA_LIBS="$GA_LIBS $arg" ;; #(
11260
GA_LDFLAGS="$GA_LDFLAGS $arg" ;; #(
11262
GA_LDFLAGS="$GA_LDFLAGS $arg" ;; #(
11264
GA_LDFLAGS="$GA_LDFLAGS $arg" ;; #(
11266
GA_CPPFLAGS="$GA_CPPFLAGS $arg" ;; #(
11268
GA_LIBS="$GA_LIBS $arg" ;; #(
11270
GA_LIBS="$GA_LIBS $arg" ;; #(
11272
if test -d $arg; then :
11273
GA_LDFLAGS="$GA_LDFLAGS -L$arg"
11275
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_ga not parsed" >&5
11276
$as_echo "$as_me: WARNING: $arg of with_ga not parsed" >&2;}
11279
if test -d $arg; then :
11280
GA_LDFLAGS="$GA_LDFLAGS -L$arg"
11282
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_ga not parsed" >&5
11283
$as_echo "$as_me: WARNING: $arg of with_ga not parsed" >&2;}
11286
if test -d $arg; then :
11287
GA_CPPFLAGS="$GA_CPPFLAGS -I$arg"
11289
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_ga not parsed" >&5
11290
$as_echo "$as_me: WARNING: $arg of with_ga not parsed" >&2;}
11293
if test -d $arg; then :
11294
GA_CPPFLAGS="$GA_CPPFLAGS -I$arg"
11296
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_ga not parsed" >&5
11297
$as_echo "$as_me: WARNING: $arg of with_ga not parsed" >&2;}
11300
ga_arg_parse_ok=no ;;
11302
# $arg didn't fit the most common cases
11303
# check for subdirectories e.g. lib,include
11304
if test "x$ga_arg_parse_ok" = xno; then :
11305
if test "x$ga_arg_parse_sizeof_voidp" = x8; then :
11306
if test -d $arg/lib64; then :
11307
GA_LDFLAGS="$GA_LDFLAGS -L$arg/lib64"; ga_arg_parse_ok=yes
11308
elif test -d $arg/lib; then :
11309
GA_LDFLAGS="$GA_LDFLAGS -L$arg/lib"; ga_arg_parse_ok=yes
11311
if test -d $arg/include64; then :
11312
GA_CPPFLAGS="$GA_CPPFLAGS -I$arg/include64"; ga_arg_parse_ok=yes
11313
elif test -d $arg/include; then :
11314
GA_CPPFLAGS="$GA_CPPFLAGS -I$arg/include"; ga_arg_parse_ok=yes
11317
if test -d $arg/lib; then :
11318
GA_LDFLAGS="$GA_LDFLAGS -L$arg/lib"; ga_arg_parse_ok=yes
11320
if test -d $arg/include; then :
11321
GA_CPPFLAGS="$GA_CPPFLAGS -I$arg/include"; ga_arg_parse_ok=yes
11325
# $arg still unknown, look for "lib" and "include" anywhere...
11326
if test "x$ga_arg_parse_ok" = xno; then :
11329
if test -d $arg; then :
11330
GA_LDFLAGS="$GA_LDFLAGS -L$arg"; ga_arg_parse_ok=yes
11333
if test -d $arg; then :
11334
GA_CPPFLAGS="$GA_CPPFLAGS -I$arg"; ga_arg_parse_ok=yes
11340
# warn user that $arg fell through
11341
if test "x$ga_arg_parse_ok" = xno; then :
11342
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_ga not parsed" >&5
11343
$as_echo "$as_me: WARNING: $arg of with_ga not parsed" >&2;}
11347
# Check for header.
11348
ga_save_CPPFLAGS="$CPPFLAGS"; CPPFLAGS="$CPPFLAGS $GA_CPPFLAGS"
11349
ac_fn_c_check_header_mongrel "$LINENO" "ga.h" "ac_cv_header_ga_h" "$ac_includes_default"
11350
if test "x$ac_cv_header_ga_h" = xyes; then :
11353
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11354
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11355
as_fn_error $? "Could not locate Global Arrays 5.x nor 4.x
11356
See \`config.log' for more details" "$LINENO" 5; }
11360
CPPFLAGS="$ga_save_CPPFLAGS"
11361
# Check for library.
11362
ga_save_LIBS="$LIBS"; LIBS="$GA_LIBS $LIBS"
11363
ga_save_LDFLAGS="$LDFLAGS"; LDFLAGS="$LDFLAGS $GA_LDFLAGS"
11364
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing GA_Initialize" >&5
11365
$as_echo_n "checking for library containing GA_Initialize... " >&6; }
11366
if ${ac_cv_search_GA_Initialize+:} false; then :
11367
$as_echo_n "(cached) " >&6
11369
ac_func_search_save_LIBS=$LIBS
11370
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11371
/* end confdefs.h. */
11373
/* Override any GCC internal prototype to avoid an error.
11374
Use char because int might match the return type of a GCC
11375
builtin and then its argument prototype would still apply. */
11379
char GA_Initialize ();
11380
#ifdef F77_DUMMY_MAIN
11382
# ifdef __cplusplus
11385
int F77_DUMMY_MAIN() { return 1; }
11391
return GA_Initialize ();
11396
for ac_lib in '' global; do
11397
if test -z "$ac_lib"; then
11398
ac_res="none required"
11401
LIBS="-l$ac_lib -lma -larmci -llinalg $FLIBS $ac_func_search_save_LIBS"
11403
if ac_fn_c_try_link "$LINENO"; then :
11404
ac_cv_search_GA_Initialize=$ac_res
11406
rm -f core conftest.err conftest.$ac_objext \
11408
if ${ac_cv_search_GA_Initialize+:} false; then :
11412
if ${ac_cv_search_GA_Initialize+:} false; then :
11415
ac_cv_search_GA_Initialize=no
11417
rm conftest.$ac_ext
11418
LIBS=$ac_func_search_save_LIBS
11420
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_GA_Initialize" >&5
11421
$as_echo "$ac_cv_search_GA_Initialize" >&6; }
11422
ac_res=$ac_cv_search_GA_Initialize
11423
if test "$ac_res" != no; then :
11424
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11428
LIBS="$ga_save_LIBS"
11429
LDFLAGS="$ga_save_LDFLAGS"
11430
if test "x$ac_cv_search_GA_Initialize" != xno; then :
11431
GA_LIBS="-lglobal -lma -larmci -llinalg"
11433
$as_echo "#define HAVE_GA 1" >>confdefs.h
11436
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11437
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11438
as_fn_error $? "Could not locate Global Arrays 5.x nor 4.x
11439
See \`config.log' for more details" "$LINENO" 5; }
11449
CPPFLAGS="$ga_save_CPPFLAGS"
11450
# Check for library.
11451
ga_save_LIBS="$LIBS"; LIBS="$GA_LIBS $LIBS"
11452
ga_save_LDFLAGS="$LDFLAGS"; LDFLAGS="$LDFLAGS $GA_LDFLAGS"
11453
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing GA_Initialize" >&5
11454
$as_echo_n "checking for library containing GA_Initialize... " >&6; }
11455
if ${ac_cv_search_GA_Initialize+:} false; then :
11456
$as_echo_n "(cached) " >&6
11458
ac_func_search_save_LIBS=$LIBS
11459
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11460
/* end confdefs.h. */
11462
/* Override any GCC internal prototype to avoid an error.
11463
Use char because int might match the return type of a GCC
11464
builtin and then its argument prototype would still apply. */
11468
char GA_Initialize ();
11469
#ifdef F77_DUMMY_MAIN
11471
# ifdef __cplusplus
11474
int F77_DUMMY_MAIN() { return 1; }
11480
return GA_Initialize ();
11485
for ac_lib in '' ga; do
11486
if test -z "$ac_lib"; then
11487
ac_res="none required"
11490
LIBS="-l$ac_lib $FLIBS $ac_func_search_save_LIBS"
11492
if ac_fn_c_try_link "$LINENO"; then :
11493
ac_cv_search_GA_Initialize=$ac_res
11495
rm -f core conftest.err conftest.$ac_objext \
11497
if ${ac_cv_search_GA_Initialize+:} false; then :
11501
if ${ac_cv_search_GA_Initialize+:} false; then :
11504
ac_cv_search_GA_Initialize=no
11506
rm conftest.$ac_ext
11507
LIBS=$ac_func_search_save_LIBS
11509
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_GA_Initialize" >&5
11510
$as_echo "$ac_cv_search_GA_Initialize" >&6; }
11511
ac_res=$ac_cv_search_GA_Initialize
11512
if test "$ac_res" != no; then :
11513
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11517
LIBS="$ga_save_LIBS"
11518
LDFLAGS="$ga_save_LDFLAGS"
11519
if test "x$ac_cv_search_GA_Initialize" != xno; then :
11522
$as_echo "#define HAVE_GA 1" >>confdefs.h
11525
{ ac_cv_search_GA_Initialize=; unset ac_cv_search_GA_Initialize;}
11535
# Check whether --with-ga was given.
11536
if test "${with_ga+set}" = set; then :
11542
case $with_ga in #(
11548
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ga_arg_parse_sizeof_voidp" ""; then :
11552
for arg in $with_ga ; do
11559
GA_LIBS="$GA_LIBS $arg" ;; #(
11561
GA_LDFLAGS="$GA_LDFLAGS $arg" ;; #(
11563
GA_LDFLAGS="$GA_LDFLAGS $arg" ;; #(
11565
GA_LDFLAGS="$GA_LDFLAGS $arg" ;; #(
11567
GA_CPPFLAGS="$GA_CPPFLAGS $arg" ;; #(
11569
GA_LIBS="$GA_LIBS $arg" ;; #(
11571
GA_LIBS="$GA_LIBS $arg" ;; #(
11573
if test -d $arg; then :
11574
GA_LDFLAGS="$GA_LDFLAGS -L$arg"
11576
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_ga not parsed" >&5
11577
$as_echo "$as_me: WARNING: $arg of with_ga not parsed" >&2;}
11580
if test -d $arg; then :
11581
GA_LDFLAGS="$GA_LDFLAGS -L$arg"
11583
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_ga not parsed" >&5
11584
$as_echo "$as_me: WARNING: $arg of with_ga not parsed" >&2;}
11587
if test -d $arg; then :
11588
GA_CPPFLAGS="$GA_CPPFLAGS -I$arg"
11590
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_ga not parsed" >&5
11591
$as_echo "$as_me: WARNING: $arg of with_ga not parsed" >&2;}
11594
if test -d $arg; then :
11595
GA_CPPFLAGS="$GA_CPPFLAGS -I$arg"
11597
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_ga not parsed" >&5
11598
$as_echo "$as_me: WARNING: $arg of with_ga not parsed" >&2;}
11601
ga_arg_parse_ok=no ;;
11603
# $arg didn't fit the most common cases
11604
# check for subdirectories e.g. lib,include
11605
if test "x$ga_arg_parse_ok" = xno; then :
11606
if test "x$ga_arg_parse_sizeof_voidp" = x8; then :
11607
if test -d $arg/lib64; then :
11608
GA_LDFLAGS="$GA_LDFLAGS -L$arg/lib64"; ga_arg_parse_ok=yes
11609
elif test -d $arg/lib; then :
11610
GA_LDFLAGS="$GA_LDFLAGS -L$arg/lib"; ga_arg_parse_ok=yes
11612
if test -d $arg/include64; then :
11613
GA_CPPFLAGS="$GA_CPPFLAGS -I$arg/include64"; ga_arg_parse_ok=yes
11614
elif test -d $arg/include; then :
11615
GA_CPPFLAGS="$GA_CPPFLAGS -I$arg/include"; ga_arg_parse_ok=yes
11618
if test -d $arg/lib; then :
11619
GA_LDFLAGS="$GA_LDFLAGS -L$arg/lib"; ga_arg_parse_ok=yes
11621
if test -d $arg/include; then :
11622
GA_CPPFLAGS="$GA_CPPFLAGS -I$arg/include"; ga_arg_parse_ok=yes
11626
# $arg still unknown, look for "lib" and "include" anywhere...
11627
if test "x$ga_arg_parse_ok" = xno; then :
11630
if test -d $arg; then :
11631
GA_LDFLAGS="$GA_LDFLAGS -L$arg"; ga_arg_parse_ok=yes
11634
if test -d $arg; then :
11635
GA_CPPFLAGS="$GA_CPPFLAGS -I$arg"; ga_arg_parse_ok=yes
11641
# warn user that $arg fell through
11642
if test "x$ga_arg_parse_ok" = xno; then :
11643
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_ga not parsed" >&5
11644
$as_echo "$as_me: WARNING: $arg of with_ga not parsed" >&2;}
11648
# Check for header.
11649
ga_save_CPPFLAGS="$CPPFLAGS"; CPPFLAGS="$CPPFLAGS $GA_CPPFLAGS"
11650
ac_fn_c_check_header_mongrel "$LINENO" "ga.h" "ac_cv_header_ga_h" "$ac_includes_default"
11651
if test "x$ac_cv_header_ga_h" = xyes; then :
11654
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11655
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11656
as_fn_error $? "Could not locate Global Arrays 5.x nor 4.x
11657
See \`config.log' for more details" "$LINENO" 5; }
11661
CPPFLAGS="$ga_save_CPPFLAGS"
11662
# Check for library.
11663
ga_save_LIBS="$LIBS"; LIBS="$GA_LIBS $LIBS"
11664
ga_save_LDFLAGS="$LDFLAGS"; LDFLAGS="$LDFLAGS $GA_LDFLAGS"
11665
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing GA_Initialize" >&5
11666
$as_echo_n "checking for library containing GA_Initialize... " >&6; }
11667
if ${ac_cv_search_GA_Initialize+:} false; then :
11668
$as_echo_n "(cached) " >&6
11670
ac_func_search_save_LIBS=$LIBS
11671
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11672
/* end confdefs.h. */
11674
/* Override any GCC internal prototype to avoid an error.
11675
Use char because int might match the return type of a GCC
11676
builtin and then its argument prototype would still apply. */
11680
char GA_Initialize ();
11681
#ifdef F77_DUMMY_MAIN
11683
# ifdef __cplusplus
11686
int F77_DUMMY_MAIN() { return 1; }
11692
return GA_Initialize ();
11697
for ac_lib in '' global; do
11698
if test -z "$ac_lib"; then
11699
ac_res="none required"
11702
LIBS="-l$ac_lib -lma -larmci -llinalg $FLIBS $ac_func_search_save_LIBS"
11704
if ac_fn_c_try_link "$LINENO"; then :
11705
ac_cv_search_GA_Initialize=$ac_res
11707
rm -f core conftest.err conftest.$ac_objext \
11709
if ${ac_cv_search_GA_Initialize+:} false; then :
11713
if ${ac_cv_search_GA_Initialize+:} false; then :
11716
ac_cv_search_GA_Initialize=no
11718
rm conftest.$ac_ext
11719
LIBS=$ac_func_search_save_LIBS
11721
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_GA_Initialize" >&5
11722
$as_echo "$ac_cv_search_GA_Initialize" >&6; }
11723
ac_res=$ac_cv_search_GA_Initialize
11724
if test "$ac_res" != no; then :
11725
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11729
LIBS="$ga_save_LIBS"
11730
LDFLAGS="$ga_save_LDFLAGS"
11731
if test "x$ac_cv_search_GA_Initialize" != xno; then :
11732
GA_LIBS="-lglobal -lma -larmci -llinalg"
11734
$as_echo "#define HAVE_GA 1" >>confdefs.h
11737
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11738
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11739
as_fn_error $? "Could not locate Global Arrays 5.x nor 4.x
11740
See \`config.log' for more details" "$LINENO" 5; }
11758
###############################################################################
11759
# Checks for BLAS/LAPACK/SCALAPACK require both C and Fortran features to
11760
# have been detected. Further, they assume the current AC_LANG is C.
11761
# NOTE: We only look for BLAS and LAPACK because GA does. We will get linker
11762
# errors if GA was built with an external BLAS and LAPACK.
11763
###############################################################################
11764
{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
11765
$as_echo "$as_me: " >&6;}
11766
{ $as_echo "$as_me:${as_lineno-$LINENO}: Checks for BLAS,LAPACK,ScaLAPACK" >&5
11767
$as_echo "$as_me: Checks for BLAS,LAPACK,ScaLAPACK" >&6;}
11768
{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
11769
$as_echo "$as_me: " >&6;}
11775
# Check whether --with-blas was given.
11776
if test "${with_blas+set}" = set; then :
11777
withval=$with_blas; blas_size_hack=yes
11781
# Check whether --with-blas4 was given.
11782
if test "${with_blas4+set}" = set; then :
11783
withval=$with_blas4; blas_size=4; with_blas="$with_blas4"
11787
# Check whether --with-blas8 was given.
11788
if test "${with_blas8+set}" = set; then :
11789
withval=$with_blas8; blas_size=8; with_blas="$with_blas8"
11794
if test "x$with_blas" = xno; then :
11798
# Parse --with-blas argument. Clear previous values first.
11802
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ga_arg_parse_sizeof_voidp" ""; then :
11806
for arg in $with_blas ; do
11813
BLAS_LIBS="$BLAS_LIBS $arg" ;; #(
11815
BLAS_LDFLAGS="$BLAS_LDFLAGS $arg" ;; #(
11817
BLAS_LDFLAGS="$BLAS_LDFLAGS $arg" ;; #(
11819
BLAS_LDFLAGS="$BLAS_LDFLAGS $arg" ;; #(
11821
BLAS_CPPFLAGS="$BLAS_CPPFLAGS $arg" ;; #(
11823
BLAS_LIBS="$BLAS_LIBS $arg" ;; #(
11825
BLAS_LIBS="$BLAS_LIBS $arg" ;; #(
11827
if test -d $arg; then :
11828
BLAS_LDFLAGS="$BLAS_LDFLAGS -L$arg"
11830
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_blas not parsed" >&5
11831
$as_echo "$as_me: WARNING: $arg of with_blas not parsed" >&2;}
11834
if test -d $arg; then :
11835
BLAS_LDFLAGS="$BLAS_LDFLAGS -L$arg"
11837
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_blas not parsed" >&5
11838
$as_echo "$as_me: WARNING: $arg of with_blas not parsed" >&2;}
11841
if test -d $arg; then :
11842
BLAS_CPPFLAGS="$BLAS_CPPFLAGS -I$arg"
11844
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_blas not parsed" >&5
11845
$as_echo "$as_me: WARNING: $arg of with_blas not parsed" >&2;}
11848
if test -d $arg; then :
11849
BLAS_CPPFLAGS="$BLAS_CPPFLAGS -I$arg"
11851
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_blas not parsed" >&5
11852
$as_echo "$as_me: WARNING: $arg of with_blas not parsed" >&2;}
11855
ga_arg_parse_ok=no ;;
11857
# $arg didn't fit the most common cases
11858
# check for subdirectories e.g. lib,include
11859
if test "x$ga_arg_parse_ok" = xno; then :
11860
if test "x$ga_arg_parse_sizeof_voidp" = x8; then :
11861
if test -d $arg/lib64; then :
11862
BLAS_LDFLAGS="$BLAS_LDFLAGS -L$arg/lib64"; ga_arg_parse_ok=yes
11863
elif test -d $arg/lib; then :
11864
BLAS_LDFLAGS="$BLAS_LDFLAGS -L$arg/lib"; ga_arg_parse_ok=yes
11866
if test -d $arg/include64; then :
11867
BLAS_CPPFLAGS="$BLAS_CPPFLAGS -I$arg/include64"; ga_arg_parse_ok=yes
11868
elif test -d $arg/include; then :
11869
BLAS_CPPFLAGS="$BLAS_CPPFLAGS -I$arg/include"; ga_arg_parse_ok=yes
11872
if test -d $arg/lib; then :
11873
BLAS_LDFLAGS="$BLAS_LDFLAGS -L$arg/lib"; ga_arg_parse_ok=yes
11875
if test -d $arg/include; then :
11876
BLAS_CPPFLAGS="$BLAS_CPPFLAGS -I$arg/include"; ga_arg_parse_ok=yes
11880
# $arg still unknown, look for "lib" and "include" anywhere...
11881
if test "x$ga_arg_parse_ok" = xno; then :
11884
if test -d $arg; then :
11885
BLAS_LDFLAGS="$BLAS_LDFLAGS -L$arg"; ga_arg_parse_ok=yes
11888
if test -d $arg; then :
11889
BLAS_CPPFLAGS="$BLAS_CPPFLAGS -I$arg"; ga_arg_parse_ok=yes
11895
# warn user that $arg fell through
11896
if test "x$ga_arg_parse_ok" = xno; then :
11897
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_blas not parsed" >&5
11898
$as_echo "$as_me: WARNING: $arg of with_blas not parsed" >&2;}
11902
# Get fortran linker names of BLAS functions to check for.
11904
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
11905
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11906
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
11907
case $ac_cv_f77_mangling in
11908
upper*) ac_val="CGEMM" ;;
11909
lower*) ac_val="cgemm" ;;
11910
*) ac_val="unknown" ;;
11912
case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
11917
ac_cpp='$CPP $CPPFLAGS'
11918
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11919
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11920
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11923
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
11924
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11925
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
11926
case $ac_cv_f77_mangling in
11927
upper*) ac_val="DGEMM" ;;
11928
lower*) ac_val="dgemm" ;;
11929
*) ac_val="unknown" ;;
11931
case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
11936
ac_cpp='$CPP $CPPFLAGS'
11937
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11938
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11939
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11942
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
11943
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11944
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
11945
case $ac_cv_f77_mangling in
11946
upper*) ac_val="SGEMM" ;;
11947
lower*) ac_val="sgemm" ;;
11948
*) ac_val="unknown" ;;
11950
case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
11955
ac_cpp='$CPP $CPPFLAGS'
11956
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11957
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11958
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11961
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
11962
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11963
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
11964
case $ac_cv_f77_mangling in
11965
upper*) ac_val="ZGEMM" ;;
11966
lower*) ac_val="zgemm" ;;
11967
*) ac_val="unknown" ;;
11969
case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
11974
ac_cpp='$CPP $CPPFLAGS'
11975
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11976
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11977
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11980
ga_save_LIBS="$LIBS"
11981
ga_save_LDFLAGS="$LDFLAGS"; LDFLAGS="$BLAS_LDFLAGS $LDFLAGS"
11982
ga_save_CPPFLAGS="$CPPFLAGS"; CPPFLAGS="$BLAS_CPPFLAGS $CPPFLAGS"
11984
{ $as_echo "$as_me:${as_lineno-$LINENO}: Attempting to locate BLAS library" >&5
11985
$as_echo "$as_me: Attempting to locate BLAS library" >&6;}
11987
# First, check environment/command-line variables.
11988
# If failed, erase BLAS_LIBS but maintain BLAS_LDFLAGS and BLAS_CPPFLAGS.
11989
if test $ga_blas_ok = no; then :
11990
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BLAS with user-supplied flags" >&5
11991
$as_echo_n "checking for BLAS with user-supplied flags... " >&6; }
11992
LIBS="$BLAS_LIBS $LIBS"
11994
if test "x$enable_f77" = xno; then :
11996
ac_cpp='$CPP $CPPFLAGS'
11997
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11998
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11999
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12001
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12002
/* end confdefs.h. */
12014
#ifdef F77_DUMMY_MAIN
12016
# ifdef __cplusplus
12019
int F77_DUMMY_MAIN() { return 1; }
12025
char cresult = cgemm ();
12026
char dresult = dgemm ();
12027
char sresult = sgemm ();
12028
char zresult = zgemm ();
12035
if ac_fn_c_try_link "$LINENO"; then :
12040
rm -f core conftest.err conftest.$ac_objext \
12043
ac_cpp='$CPP $CPPFLAGS'
12044
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12045
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12046
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12050
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12051
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12052
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12054
cat > conftest.$ac_ext <<_ACEOF
12057
INTEGER M, N, K, LDA, LDB, LDC
12058
COMPLEX CA(20,40), CB(20,30), CC(40,30), Calpha, Cbeta
12059
DOUBLE COMPLEX ZA(20,40), ZB(20,30), ZC(40,30), Zalpha, Zbeta
12060
REAL SA(20,40), SB(20,30), SC(40,30), Salpha, Sbeta
12061
DOUBLE PRECISION DA(20,40), DB(20,30), DC(40,30), Dalpha, Dbeta
12080
CALL CGEMM ('T','N',M,N,K,Calpha,CA,LDA,CB,LDB,Cbeta,CC,LDC)
12081
CALL ZGEMM ('T','N',M,N,K,Zalpha,ZA,LDA,ZB,LDB,Zbeta,ZC,LDC)
12082
CALL SGEMM ('T','N',M,N,K,Salpha,SA,LDA,SB,LDB,Sbeta,SC,LDC)
12083
CALL DGEMM ('T','N',M,N,K,Dalpha,DA,LDA,DB,LDB,Dbeta,DC,LDC)
12087
if ac_fn_f77_try_link "$LINENO"; then :
12092
rm -f core conftest.err conftest.$ac_objext \
12095
ac_cpp='$CPP $CPPFLAGS'
12096
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12097
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12098
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12102
LIBS="$ga_save_LIBS"
12103
if test $ga_blas_ok = yes; then :
12104
if test $blas_size_hack = yes; then :
12105
case "$BLAS_LIBS $LIBS $LDFLAGS $CPPFLAGS" in #(
12116
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ga_blas_ok" >&5
12117
$as_echo "$ga_blas_ok" >&6; }
12120
# AMD Core Math Library (ACML)
12121
if test $ga_blas_ok = no; then :
12122
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BLAS in AMD Core Math Library" >&5
12123
$as_echo_n "checking for BLAS in AMD Core Math Library... " >&6; }
12124
# add -lacml to BLAS_LIBS if missing from LIBS
12129
BLAS_LIBS="-lacml" ;;
12131
LIBS="$BLAS_LIBS $LIBS"
12133
if test "x$enable_f77" = xno; then :
12135
ac_cpp='$CPP $CPPFLAGS'
12136
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12137
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12138
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12140
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12141
/* end confdefs.h. */
12153
#ifdef F77_DUMMY_MAIN
12155
# ifdef __cplusplus
12158
int F77_DUMMY_MAIN() { return 1; }
12164
char cresult = cgemm ();
12165
char dresult = dgemm ();
12166
char sresult = sgemm ();
12167
char zresult = zgemm ();
12174
if ac_fn_c_try_link "$LINENO"; then :
12179
rm -f core conftest.err conftest.$ac_objext \
12182
ac_cpp='$CPP $CPPFLAGS'
12183
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12184
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12185
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12189
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12190
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12191
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12193
cat > conftest.$ac_ext <<_ACEOF
12196
INTEGER M, N, K, LDA, LDB, LDC
12197
COMPLEX CA(20,40), CB(20,30), CC(40,30), Calpha, Cbeta
12198
DOUBLE COMPLEX ZA(20,40), ZB(20,30), ZC(40,30), Zalpha, Zbeta
12199
REAL SA(20,40), SB(20,30), SC(40,30), Salpha, Sbeta
12200
DOUBLE PRECISION DA(20,40), DB(20,30), DC(40,30), Dalpha, Dbeta
12219
CALL CGEMM ('T','N',M,N,K,Calpha,CA,LDA,CB,LDB,Cbeta,CC,LDC)
12220
CALL ZGEMM ('T','N',M,N,K,Zalpha,ZA,LDA,ZB,LDB,Zbeta,ZC,LDC)
12221
CALL SGEMM ('T','N',M,N,K,Salpha,SA,LDA,SB,LDB,Sbeta,SC,LDC)
12222
CALL DGEMM ('T','N',M,N,K,Dalpha,DA,LDA,DB,LDB,Dbeta,DC,LDC)
12226
if ac_fn_f77_try_link "$LINENO"; then :
12231
rm -f core conftest.err conftest.$ac_objext \
12234
ac_cpp='$CPP $CPPFLAGS'
12235
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12236
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12237
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12241
LIBS="$ga_save_LIBS"
12242
if test "x$ga_blas_ok" = xyes; then :
12243
if test $blas_size_hack = yes; then :
12244
case "$BLAS_LIBS $LIBS $LDFLAGS $CPPFLAGS" in #(
12252
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ga_blas_ok" >&5
12253
$as_echo "$ga_blas_ok" >&6; }
12256
# Intel MKL library
12257
if test $ga_blas_ok = no; then :
12258
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BLAS in Intel Math Kernel Library" >&5
12259
$as_echo_n "checking for BLAS in Intel Math Kernel Library... " >&6; }
12260
# add -lmkl to BLAS_LIBS if missing from LIBS
12265
BLAS_LIBS="-lmkl" ;;
12267
LIBS="$BLAS_LIBS $LIBS"
12269
if test "x$enable_f77" = xno; then :
12271
ac_cpp='$CPP $CPPFLAGS'
12272
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12273
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12274
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12276
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12277
/* end confdefs.h. */
12289
#ifdef F77_DUMMY_MAIN
12291
# ifdef __cplusplus
12294
int F77_DUMMY_MAIN() { return 1; }
12300
char cresult = cgemm ();
12301
char dresult = dgemm ();
12302
char sresult = sgemm ();
12303
char zresult = zgemm ();
12310
if ac_fn_c_try_link "$LINENO"; then :
12315
rm -f core conftest.err conftest.$ac_objext \
12318
ac_cpp='$CPP $CPPFLAGS'
12319
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12320
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12321
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12325
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12326
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12327
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12329
cat > conftest.$ac_ext <<_ACEOF
12332
INTEGER M, N, K, LDA, LDB, LDC
12333
COMPLEX CA(20,40), CB(20,30), CC(40,30), Calpha, Cbeta
12334
DOUBLE COMPLEX ZA(20,40), ZB(20,30), ZC(40,30), Zalpha, Zbeta
12335
REAL SA(20,40), SB(20,30), SC(40,30), Salpha, Sbeta
12336
DOUBLE PRECISION DA(20,40), DB(20,30), DC(40,30), Dalpha, Dbeta
12355
CALL CGEMM ('T','N',M,N,K,Calpha,CA,LDA,CB,LDB,Cbeta,CC,LDC)
12356
CALL ZGEMM ('T','N',M,N,K,Zalpha,ZA,LDA,ZB,LDB,Zbeta,ZC,LDC)
12357
CALL SGEMM ('T','N',M,N,K,Salpha,SA,LDA,SB,LDB,Sbeta,SC,LDC)
12358
CALL DGEMM ('T','N',M,N,K,Dalpha,DA,LDA,DB,LDB,Dbeta,DC,LDC)
12362
if ac_fn_f77_try_link "$LINENO"; then :
12367
rm -f core conftest.err conftest.$ac_objext \
12370
ac_cpp='$CPP $CPPFLAGS'
12371
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12372
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12373
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12377
LIBS="$ga_save_LIBS"
12378
if test "x$ga_blas_ok" = xyes; then :
12379
if test $blas_size_hack = yes; then :
12380
case "$BLAS_LIBS $LIBS $LDFLAGS $CPPFLAGS" in #(
12388
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ga_blas_ok" >&5
12389
$as_echo "$ga_blas_ok" >&6; }
12392
# ATLAS library (http://math-atlas.sourceforge.net/)
12393
if test $ga_blas_ok = no; then :
12394
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BLAS in ATLAS" >&5
12395
$as_echo_n "checking for BLAS in ATLAS... " >&6; }
12396
if test "x$enable_f77" = xno; then :
12397
# add -lcblas if needed but missing from LIBS
12402
BLAS_LIBS="-lcblas" ;;
12405
# add -lf77blas if needed but missing from LIBS
12410
BLAS_LIBS="-lf77blas" ;;
12413
# add -latlas if needed but missing from LIBS
12418
BLAS_LIBS="$BLAS_LIBS -latlas" ;;
12420
LIBS="$BLAS_LIBS $LIBS"
12422
if test "x$enable_f77" = xno; then :
12424
ac_cpp='$CPP $CPPFLAGS'
12425
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12426
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12427
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12429
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12430
/* end confdefs.h. */
12442
#ifdef F77_DUMMY_MAIN
12444
# ifdef __cplusplus
12447
int F77_DUMMY_MAIN() { return 1; }
12453
char cresult = cgemm ();
12454
char dresult = dgemm ();
12455
char sresult = sgemm ();
12456
char zresult = zgemm ();
12463
if ac_fn_c_try_link "$LINENO"; then :
12468
rm -f core conftest.err conftest.$ac_objext \
12471
ac_cpp='$CPP $CPPFLAGS'
12472
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12473
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12474
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12478
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12479
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12480
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12482
cat > conftest.$ac_ext <<_ACEOF
12485
INTEGER M, N, K, LDA, LDB, LDC
12486
COMPLEX CA(20,40), CB(20,30), CC(40,30), Calpha, Cbeta
12487
DOUBLE COMPLEX ZA(20,40), ZB(20,30), ZC(40,30), Zalpha, Zbeta
12488
REAL SA(20,40), SB(20,30), SC(40,30), Salpha, Sbeta
12489
DOUBLE PRECISION DA(20,40), DB(20,30), DC(40,30), Dalpha, Dbeta
12508
CALL CGEMM ('T','N',M,N,K,Calpha,CA,LDA,CB,LDB,Cbeta,CC,LDC)
12509
CALL ZGEMM ('T','N',M,N,K,Zalpha,ZA,LDA,ZB,LDB,Zbeta,ZC,LDC)
12510
CALL SGEMM ('T','N',M,N,K,Salpha,SA,LDA,SB,LDB,Sbeta,SC,LDC)
12511
CALL DGEMM ('T','N',M,N,K,Dalpha,DA,LDA,DB,LDB,Dbeta,DC,LDC)
12515
if ac_fn_f77_try_link "$LINENO"; then :
12520
rm -f core conftest.err conftest.$ac_objext \
12523
ac_cpp='$CPP $CPPFLAGS'
12524
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12525
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12526
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12530
LIBS="$ga_save_LIBS"
12531
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ga_blas_ok" >&5
12532
$as_echo "$ga_blas_ok" >&6; }
12535
# PhiPACK libraries (requires generic BLAS lib, too)
12536
if test $ga_blas_ok = no; then :
12537
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BLAS in PhiPACK libraries" >&5
12538
$as_echo_n "checking for BLAS in PhiPACK libraries... " >&6; }
12539
# add -lblas to BLAS_LIBS if missing from LIBS
12544
BLAS_LIBS="-lblas" ;;
12546
# add -ldgemm to BLAS_LIBS if missing from LIBS
12551
BLAS_LIBS="-ldgemm $BLAS_LIBS" ;;
12553
# add -lsgemm to BLAS_LIBS if missing from LIBS
12558
BLAS_LIBS="-lsgemm $BLAS_LIBS" ;;
12560
LIBS="$BLAS_LIBS $LIBS"
12562
if test "x$enable_f77" = xno; then :
12564
ac_cpp='$CPP $CPPFLAGS'
12565
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12566
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12567
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12569
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12570
/* end confdefs.h. */
12582
#ifdef F77_DUMMY_MAIN
12584
# ifdef __cplusplus
12587
int F77_DUMMY_MAIN() { return 1; }
12593
char cresult = cgemm ();
12594
char dresult = dgemm ();
12595
char sresult = sgemm ();
12596
char zresult = zgemm ();
12603
if ac_fn_c_try_link "$LINENO"; then :
12608
rm -f core conftest.err conftest.$ac_objext \
12611
ac_cpp='$CPP $CPPFLAGS'
12612
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12613
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12614
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12618
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12619
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12620
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12622
cat > conftest.$ac_ext <<_ACEOF
12625
INTEGER M, N, K, LDA, LDB, LDC
12626
COMPLEX CA(20,40), CB(20,30), CC(40,30), Calpha, Cbeta
12627
DOUBLE COMPLEX ZA(20,40), ZB(20,30), ZC(40,30), Zalpha, Zbeta
12628
REAL SA(20,40), SB(20,30), SC(40,30), Salpha, Sbeta
12629
DOUBLE PRECISION DA(20,40), DB(20,30), DC(40,30), Dalpha, Dbeta
12648
CALL CGEMM ('T','N',M,N,K,Calpha,CA,LDA,CB,LDB,Cbeta,CC,LDC)
12649
CALL ZGEMM ('T','N',M,N,K,Zalpha,ZA,LDA,ZB,LDB,Zbeta,ZC,LDC)
12650
CALL SGEMM ('T','N',M,N,K,Salpha,SA,LDA,SB,LDB,Sbeta,SC,LDC)
12651
CALL DGEMM ('T','N',M,N,K,Dalpha,DA,LDA,DB,LDB,Dbeta,DC,LDC)
12655
if ac_fn_f77_try_link "$LINENO"; then :
12660
rm -f core conftest.err conftest.$ac_objext \
12663
ac_cpp='$CPP $CPPFLAGS'
12664
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12665
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12666
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12670
LIBS="$ga_save_LIBS"
12671
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ga_blas_ok" >&5
12672
$as_echo "$ga_blas_ok" >&6; }
12675
# Apple Accelerate.framework
12676
if test $ga_blas_ok = no; then :
12677
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BLAS in Apple Accelerate.framework" >&5
12678
$as_echo_n "checking for BLAS in Apple Accelerate.framework... " >&6; }
12679
# add -framework Accelerate to BLAS_LIBS if missing from LIBS
12684
BLAS_LIBS="-framework Accelerate" ;;
12686
LIBS="$BLAS_LIBS $LIBS"
12688
if test "x$enable_f77" = xno; then :
12690
ac_cpp='$CPP $CPPFLAGS'
12691
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12692
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12693
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12695
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12696
/* end confdefs.h. */
12708
#ifdef F77_DUMMY_MAIN
12710
# ifdef __cplusplus
12713
int F77_DUMMY_MAIN() { return 1; }
12719
char cresult = cgemm ();
12720
char dresult = dgemm ();
12721
char sresult = sgemm ();
12722
char zresult = zgemm ();
12729
if ac_fn_c_try_link "$LINENO"; then :
12734
rm -f core conftest.err conftest.$ac_objext \
12737
ac_cpp='$CPP $CPPFLAGS'
12738
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12739
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12740
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12744
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12745
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12746
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12748
cat > conftest.$ac_ext <<_ACEOF
12751
INTEGER M, N, K, LDA, LDB, LDC
12752
COMPLEX CA(20,40), CB(20,30), CC(40,30), Calpha, Cbeta
12753
DOUBLE COMPLEX ZA(20,40), ZB(20,30), ZC(40,30), Zalpha, Zbeta
12754
REAL SA(20,40), SB(20,30), SC(40,30), Salpha, Sbeta
12755
DOUBLE PRECISION DA(20,40), DB(20,30), DC(40,30), Dalpha, Dbeta
12774
CALL CGEMM ('T','N',M,N,K,Calpha,CA,LDA,CB,LDB,Cbeta,CC,LDC)
12775
CALL ZGEMM ('T','N',M,N,K,Zalpha,ZA,LDA,ZB,LDB,Zbeta,ZC,LDC)
12776
CALL SGEMM ('T','N',M,N,K,Salpha,SA,LDA,SB,LDB,Sbeta,SC,LDC)
12777
CALL DGEMM ('T','N',M,N,K,Dalpha,DA,LDA,DB,LDB,Dbeta,DC,LDC)
12781
if ac_fn_f77_try_link "$LINENO"; then :
12786
rm -f core conftest.err conftest.$ac_objext \
12789
ac_cpp='$CPP $CPPFLAGS'
12790
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12791
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12792
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12796
LIBS="$ga_save_LIBS"
12797
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ga_blas_ok" >&5
12798
$as_echo "$ga_blas_ok" >&6; }
12801
# Apple vecLib.framework
12802
if test $ga_blas_ok = no; then :
12803
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BLAS in Apple vecLib.framework" >&5
12804
$as_echo_n "checking for BLAS in Apple vecLib.framework... " >&6; }
12805
# add -framework vecLib to BLAS_LIBS if missing from LIBS
12810
BLAS_LIBS="-framework vecLib" ;;
12812
LIBS="$BLAS_LIBS $LIBS"
12814
if test "x$enable_f77" = xno; then :
12816
ac_cpp='$CPP $CPPFLAGS'
12817
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12818
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12819
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12821
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12822
/* end confdefs.h. */
12834
#ifdef F77_DUMMY_MAIN
12836
# ifdef __cplusplus
12839
int F77_DUMMY_MAIN() { return 1; }
12845
char cresult = cgemm ();
12846
char dresult = dgemm ();
12847
char sresult = sgemm ();
12848
char zresult = zgemm ();
12855
if ac_fn_c_try_link "$LINENO"; then :
12860
rm -f core conftest.err conftest.$ac_objext \
12863
ac_cpp='$CPP $CPPFLAGS'
12864
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12865
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12866
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12870
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12871
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12872
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12874
cat > conftest.$ac_ext <<_ACEOF
12877
INTEGER M, N, K, LDA, LDB, LDC
12878
COMPLEX CA(20,40), CB(20,30), CC(40,30), Calpha, Cbeta
12879
DOUBLE COMPLEX ZA(20,40), ZB(20,30), ZC(40,30), Zalpha, Zbeta
12880
REAL SA(20,40), SB(20,30), SC(40,30), Salpha, Sbeta
12881
DOUBLE PRECISION DA(20,40), DB(20,30), DC(40,30), Dalpha, Dbeta
12900
CALL CGEMM ('T','N',M,N,K,Calpha,CA,LDA,CB,LDB,Cbeta,CC,LDC)
12901
CALL ZGEMM ('T','N',M,N,K,Zalpha,ZA,LDA,ZB,LDB,Zbeta,ZC,LDC)
12902
CALL SGEMM ('T','N',M,N,K,Salpha,SA,LDA,SB,LDB,Sbeta,SC,LDC)
12903
CALL DGEMM ('T','N',M,N,K,Dalpha,DA,LDA,DB,LDB,Dbeta,DC,LDC)
12907
if ac_fn_f77_try_link "$LINENO"; then :
12912
rm -f core conftest.err conftest.$ac_objext \
12915
ac_cpp='$CPP $CPPFLAGS'
12916
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12917
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12918
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12922
LIBS="$ga_save_LIBS"
12923
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ga_blas_ok" >&5
12924
$as_echo "$ga_blas_ok" >&6; }
12927
# Alpha CXML library (CXML stands for Compaq Extended Math Library)
12928
if test $ga_blas_ok = no; then :
12929
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BLAS in Alpha CXML library" >&5
12930
$as_echo_n "checking for BLAS in Alpha CXML library... " >&6; }
12931
# add -lcxml to BLAS_LIBS if missing from LIBS
12936
BLAS_LIBS="-lcxml" ;;
12938
LIBS="$BLAS_LIBS $LIBS"
12940
if test "x$enable_f77" = xno; then :
12942
ac_cpp='$CPP $CPPFLAGS'
12943
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12944
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12945
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12947
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12948
/* end confdefs.h. */
12960
#ifdef F77_DUMMY_MAIN
12962
# ifdef __cplusplus
12965
int F77_DUMMY_MAIN() { return 1; }
12971
char cresult = cgemm ();
12972
char dresult = dgemm ();
12973
char sresult = sgemm ();
12974
char zresult = zgemm ();
12981
if ac_fn_c_try_link "$LINENO"; then :
12986
rm -f core conftest.err conftest.$ac_objext \
12989
ac_cpp='$CPP $CPPFLAGS'
12990
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12991
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12992
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12996
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12997
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12998
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13000
cat > conftest.$ac_ext <<_ACEOF
13003
INTEGER M, N, K, LDA, LDB, LDC
13004
COMPLEX CA(20,40), CB(20,30), CC(40,30), Calpha, Cbeta
13005
DOUBLE COMPLEX ZA(20,40), ZB(20,30), ZC(40,30), Zalpha, Zbeta
13006
REAL SA(20,40), SB(20,30), SC(40,30), Salpha, Sbeta
13007
DOUBLE PRECISION DA(20,40), DB(20,30), DC(40,30), Dalpha, Dbeta
13026
CALL CGEMM ('T','N',M,N,K,Calpha,CA,LDA,CB,LDB,Cbeta,CC,LDC)
13027
CALL ZGEMM ('T','N',M,N,K,Zalpha,ZA,LDA,ZB,LDB,Zbeta,ZC,LDC)
13028
CALL SGEMM ('T','N',M,N,K,Salpha,SA,LDA,SB,LDB,Sbeta,SC,LDC)
13029
CALL DGEMM ('T','N',M,N,K,Dalpha,DA,LDA,DB,LDB,Dbeta,DC,LDC)
13033
if ac_fn_f77_try_link "$LINENO"; then :
13038
rm -f core conftest.err conftest.$ac_objext \
13041
ac_cpp='$CPP $CPPFLAGS'
13042
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13043
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13044
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13048
LIBS="$ga_save_LIBS"
13049
if test $ga_blas_ok = no; then :
13050
# add -lcxml to BLAS_LIBS if missing from LIBS
13055
BLAS_LIBS="-lcxml" ;;
13057
# add -lcpml to BLAS_LIBS if missing from LIBS
13062
BLAS_LIBS="$BLAS_LIBS -lcpml" ;;
13064
LIBS="$BLAS_LIBS $LIBS"
13066
if test "x$enable_f77" = xno; then :
13068
ac_cpp='$CPP $CPPFLAGS'
13069
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13070
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13071
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13073
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13074
/* end confdefs.h. */
13086
#ifdef F77_DUMMY_MAIN
13088
# ifdef __cplusplus
13091
int F77_DUMMY_MAIN() { return 1; }
13097
char cresult = cgemm ();
13098
char dresult = dgemm ();
13099
char sresult = sgemm ();
13100
char zresult = zgemm ();
13107
if ac_fn_c_try_link "$LINENO"; then :
13112
rm -f core conftest.err conftest.$ac_objext \
13115
ac_cpp='$CPP $CPPFLAGS'
13116
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13117
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13118
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13122
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13123
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13124
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13126
cat > conftest.$ac_ext <<_ACEOF
13129
INTEGER M, N, K, LDA, LDB, LDC
13130
COMPLEX CA(20,40), CB(20,30), CC(40,30), Calpha, Cbeta
13131
DOUBLE COMPLEX ZA(20,40), ZB(20,30), ZC(40,30), Zalpha, Zbeta
13132
REAL SA(20,40), SB(20,30), SC(40,30), Salpha, Sbeta
13133
DOUBLE PRECISION DA(20,40), DB(20,30), DC(40,30), Dalpha, Dbeta
13152
CALL CGEMM ('T','N',M,N,K,Calpha,CA,LDA,CB,LDB,Cbeta,CC,LDC)
13153
CALL ZGEMM ('T','N',M,N,K,Zalpha,ZA,LDA,ZB,LDB,Zbeta,ZC,LDC)
13154
CALL SGEMM ('T','N',M,N,K,Salpha,SA,LDA,SB,LDB,Sbeta,SC,LDC)
13155
CALL DGEMM ('T','N',M,N,K,Dalpha,DA,LDA,DB,LDB,Dbeta,DC,LDC)
13159
if ac_fn_f77_try_link "$LINENO"; then :
13164
rm -f core conftest.err conftest.$ac_objext \
13167
ac_cpp='$CPP $CPPFLAGS'
13168
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13169
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13170
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13174
LIBS="$ga_save_LIBS"
13176
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ga_blas_ok" >&5
13177
$as_echo "$ga_blas_ok" >&6; }
13180
# Alpha DXML library (now called CXML, see above)
13182
# Sun Performance library
13183
if test $ga_blas_ok = no; then :
13184
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BLAS in Sun Performance Library" >&5
13185
$as_echo_n "checking for BLAS in Sun Performance Library... " >&6; }
13186
# add -xlic_lib=sunperf to BLAS_LIBS if missing from LIBS
13191
BLAS_LIBS="-xlic_lib=sunperf" ;;
13193
LIBS="$BLAS_LIBS $LIBS"
13195
if test "x$enable_f77" = xno; then :
13197
ac_cpp='$CPP $CPPFLAGS'
13198
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13199
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13200
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13202
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13203
/* end confdefs.h. */
13215
#ifdef F77_DUMMY_MAIN
13217
# ifdef __cplusplus
13220
int F77_DUMMY_MAIN() { return 1; }
13226
char cresult = cgemm ();
13227
char dresult = dgemm ();
13228
char sresult = sgemm ();
13229
char zresult = zgemm ();
13236
if ac_fn_c_try_link "$LINENO"; then :
13241
rm -f core conftest.err conftest.$ac_objext \
13244
ac_cpp='$CPP $CPPFLAGS'
13245
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13246
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13247
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13251
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13252
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13253
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13255
cat > conftest.$ac_ext <<_ACEOF
13258
INTEGER M, N, K, LDA, LDB, LDC
13259
COMPLEX CA(20,40), CB(20,30), CC(40,30), Calpha, Cbeta
13260
DOUBLE COMPLEX ZA(20,40), ZB(20,30), ZC(40,30), Zalpha, Zbeta
13261
REAL SA(20,40), SB(20,30), SC(40,30), Salpha, Sbeta
13262
DOUBLE PRECISION DA(20,40), DB(20,30), DC(40,30), Dalpha, Dbeta
13281
CALL CGEMM ('T','N',M,N,K,Calpha,CA,LDA,CB,LDB,Cbeta,CC,LDC)
13282
CALL ZGEMM ('T','N',M,N,K,Zalpha,ZA,LDA,ZB,LDB,Zbeta,ZC,LDC)
13283
CALL SGEMM ('T','N',M,N,K,Salpha,SA,LDA,SB,LDB,Sbeta,SC,LDC)
13284
CALL DGEMM ('T','N',M,N,K,Dalpha,DA,LDA,DB,LDB,Dbeta,DC,LDC)
13288
if ac_fn_f77_try_link "$LINENO"; then :
13293
rm -f core conftest.err conftest.$ac_objext \
13296
ac_cpp='$CPP $CPPFLAGS'
13297
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13298
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13299
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13303
LIBS="$ga_save_LIBS"
13304
if test $ga_blas_ok = no; then :
13305
# add -xlic_lib=sunperf to BLAS_LIBS if missing from LIBS
13310
BLAS_LIBS="-xlic_lib=sunperf" ;;
13312
# add -lsunmath to BLAS_LIBS if missing from LIBS
13317
BLAS_LIBS="$BLAS_LIBS -lsunmath" ;;
13319
LIBS="$BLAS_LIBS $LIBS"
13321
if test "x$enable_f77" = xno; then :
13323
ac_cpp='$CPP $CPPFLAGS'
13324
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13325
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13326
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13328
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13329
/* end confdefs.h. */
13341
#ifdef F77_DUMMY_MAIN
13343
# ifdef __cplusplus
13346
int F77_DUMMY_MAIN() { return 1; }
13352
char cresult = cgemm ();
13353
char dresult = dgemm ();
13354
char sresult = sgemm ();
13355
char zresult = zgemm ();
13362
if ac_fn_c_try_link "$LINENO"; then :
13367
rm -f core conftest.err conftest.$ac_objext \
13370
ac_cpp='$CPP $CPPFLAGS'
13371
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13372
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13373
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13377
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13378
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13379
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13381
cat > conftest.$ac_ext <<_ACEOF
13384
INTEGER M, N, K, LDA, LDB, LDC
13385
COMPLEX CA(20,40), CB(20,30), CC(40,30), Calpha, Cbeta
13386
DOUBLE COMPLEX ZA(20,40), ZB(20,30), ZC(40,30), Zalpha, Zbeta
13387
REAL SA(20,40), SB(20,30), SC(40,30), Salpha, Sbeta
13388
DOUBLE PRECISION DA(20,40), DB(20,30), DC(40,30), Dalpha, Dbeta
13407
CALL CGEMM ('T','N',M,N,K,Calpha,CA,LDA,CB,LDB,Cbeta,CC,LDC)
13408
CALL ZGEMM ('T','N',M,N,K,Zalpha,ZA,LDA,ZB,LDB,Zbeta,ZC,LDC)
13409
CALL SGEMM ('T','N',M,N,K,Salpha,SA,LDA,SB,LDB,Sbeta,SC,LDC)
13410
CALL DGEMM ('T','N',M,N,K,Dalpha,DA,LDA,DB,LDB,Dbeta,DC,LDC)
13414
if ac_fn_f77_try_link "$LINENO"; then :
13419
rm -f core conftest.err conftest.$ac_objext \
13422
ac_cpp='$CPP $CPPFLAGS'
13423
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13424
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13425
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13429
LIBS="$ga_save_LIBS"
13431
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ga_blas_ok" >&5
13432
$as_echo "$ga_blas_ok" >&6; }
13435
# SCSL library (SCSL stands for SGI/Cray Scientific Library)
13436
if test $ga_blas_ok = no; then :
13437
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BLAS in SGI/Cray Scientific Library" >&5
13438
$as_echo_n "checking for BLAS in SGI/Cray Scientific Library... " >&6; }
13439
# add -lscs to BLAS_LIBS if missing from LIBS
13444
BLAS_LIBS="-lscs" ;;
13446
LIBS="$BLAS_LIBS $LIBS"
13448
if test "x$enable_f77" = xno; then :
13450
ac_cpp='$CPP $CPPFLAGS'
13451
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13452
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13453
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13455
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13456
/* end confdefs.h. */
13468
#ifdef F77_DUMMY_MAIN
13470
# ifdef __cplusplus
13473
int F77_DUMMY_MAIN() { return 1; }
13479
char cresult = cgemm ();
13480
char dresult = dgemm ();
13481
char sresult = sgemm ();
13482
char zresult = zgemm ();
13489
if ac_fn_c_try_link "$LINENO"; then :
13494
rm -f core conftest.err conftest.$ac_objext \
13497
ac_cpp='$CPP $CPPFLAGS'
13498
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13499
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13500
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13504
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13505
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13506
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13508
cat > conftest.$ac_ext <<_ACEOF
13511
INTEGER M, N, K, LDA, LDB, LDC
13512
COMPLEX CA(20,40), CB(20,30), CC(40,30), Calpha, Cbeta
13513
DOUBLE COMPLEX ZA(20,40), ZB(20,30), ZC(40,30), Zalpha, Zbeta
13514
REAL SA(20,40), SB(20,30), SC(40,30), Salpha, Sbeta
13515
DOUBLE PRECISION DA(20,40), DB(20,30), DC(40,30), Dalpha, Dbeta
13534
CALL CGEMM ('T','N',M,N,K,Calpha,CA,LDA,CB,LDB,Cbeta,CC,LDC)
13535
CALL ZGEMM ('T','N',M,N,K,Zalpha,ZA,LDA,ZB,LDB,Zbeta,ZC,LDC)
13536
CALL SGEMM ('T','N',M,N,K,Salpha,SA,LDA,SB,LDB,Sbeta,SC,LDC)
13537
CALL DGEMM ('T','N',M,N,K,Dalpha,DA,LDA,DB,LDB,Dbeta,DC,LDC)
13541
if ac_fn_f77_try_link "$LINENO"; then :
13546
rm -f core conftest.err conftest.$ac_objext \
13549
ac_cpp='$CPP $CPPFLAGS'
13550
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13551
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13552
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13556
LIBS="$ga_save_LIBS"
13557
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ga_blas_ok" >&5
13558
$as_echo "$ga_blas_ok" >&6; }
13562
if test $ga_blas_ok = no; then :
13563
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BLAS in SGIMATH library" >&5
13564
$as_echo_n "checking for BLAS in SGIMATH library... " >&6; }
13565
# add -lcomplib.sgimath to BLAS_LIBS if missing from LIBS
13567
*complib.sgimath*) :
13570
BLAS_LIBS="-lcomplib.sgimath" ;;
13572
LIBS="$BLAS_LIBS $LIBS"
13574
if test "x$enable_f77" = xno; then :
13576
ac_cpp='$CPP $CPPFLAGS'
13577
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13578
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13579
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13581
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13582
/* end confdefs.h. */
13594
#ifdef F77_DUMMY_MAIN
13596
# ifdef __cplusplus
13599
int F77_DUMMY_MAIN() { return 1; }
13605
char cresult = cgemm ();
13606
char dresult = dgemm ();
13607
char sresult = sgemm ();
13608
char zresult = zgemm ();
13615
if ac_fn_c_try_link "$LINENO"; then :
13620
rm -f core conftest.err conftest.$ac_objext \
13623
ac_cpp='$CPP $CPPFLAGS'
13624
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13625
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13626
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13630
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13631
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13632
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13634
cat > conftest.$ac_ext <<_ACEOF
13637
INTEGER M, N, K, LDA, LDB, LDC
13638
COMPLEX CA(20,40), CB(20,30), CC(40,30), Calpha, Cbeta
13639
DOUBLE COMPLEX ZA(20,40), ZB(20,30), ZC(40,30), Zalpha, Zbeta
13640
REAL SA(20,40), SB(20,30), SC(40,30), Salpha, Sbeta
13641
DOUBLE PRECISION DA(20,40), DB(20,30), DC(40,30), Dalpha, Dbeta
13660
CALL CGEMM ('T','N',M,N,K,Calpha,CA,LDA,CB,LDB,Cbeta,CC,LDC)
13661
CALL ZGEMM ('T','N',M,N,K,Zalpha,ZA,LDA,ZB,LDB,Zbeta,ZC,LDC)
13662
CALL SGEMM ('T','N',M,N,K,Salpha,SA,LDA,SB,LDB,Sbeta,SC,LDC)
13663
CALL DGEMM ('T','N',M,N,K,Dalpha,DA,LDA,DB,LDB,Dbeta,DC,LDC)
13667
if ac_fn_f77_try_link "$LINENO"; then :
13672
rm -f core conftest.err conftest.$ac_objext \
13675
ac_cpp='$CPP $CPPFLAGS'
13676
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13677
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13678
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13682
LIBS="$ga_save_LIBS"
13683
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ga_blas_ok" >&5
13684
$as_echo "$ga_blas_ok" >&6; }
13687
# IBM ESSL library (requires generic BLAS lib, too)
13688
if test $ga_blas_ok = no; then :
13689
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BLAS in IBM ESSL library" >&5
13690
$as_echo_n "checking for BLAS in IBM ESSL library... " >&6; }
13691
# add -lessl to BLAS_LIBS if missing from LIBS
13696
BLAS_LIBS="-lessl" ;;
13698
# add -lblas to BLAS_LIBS if missing from LIBS
13703
BLAS_LIBS="$BLAS_LIBS -lblas" ;;
13705
LIBS="$BLAS_LIBS $LIBS"
13707
if test "x$enable_f77" = xno; then :
13709
ac_cpp='$CPP $CPPFLAGS'
13710
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13711
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13712
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13714
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13715
/* end confdefs.h. */
13727
#ifdef F77_DUMMY_MAIN
13729
# ifdef __cplusplus
13732
int F77_DUMMY_MAIN() { return 1; }
13738
char cresult = cgemm ();
13739
char dresult = dgemm ();
13740
char sresult = sgemm ();
13741
char zresult = zgemm ();
13748
if ac_fn_c_try_link "$LINENO"; then :
13753
rm -f core conftest.err conftest.$ac_objext \
13756
ac_cpp='$CPP $CPPFLAGS'
13757
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13758
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13759
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13763
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13764
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13765
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13767
cat > conftest.$ac_ext <<_ACEOF
13770
INTEGER M, N, K, LDA, LDB, LDC
13771
COMPLEX CA(20,40), CB(20,30), CC(40,30), Calpha, Cbeta
13772
DOUBLE COMPLEX ZA(20,40), ZB(20,30), ZC(40,30), Zalpha, Zbeta
13773
REAL SA(20,40), SB(20,30), SC(40,30), Salpha, Sbeta
13774
DOUBLE PRECISION DA(20,40), DB(20,30), DC(40,30), Dalpha, Dbeta
13793
CALL CGEMM ('T','N',M,N,K,Calpha,CA,LDA,CB,LDB,Cbeta,CC,LDC)
13794
CALL ZGEMM ('T','N',M,N,K,Zalpha,ZA,LDA,ZB,LDB,Zbeta,ZC,LDC)
13795
CALL SGEMM ('T','N',M,N,K,Salpha,SA,LDA,SB,LDB,Sbeta,SC,LDC)
13796
CALL DGEMM ('T','N',M,N,K,Dalpha,DA,LDA,DB,LDB,Dbeta,DC,LDC)
13800
if ac_fn_f77_try_link "$LINENO"; then :
13805
rm -f core conftest.err conftest.$ac_objext \
13808
ac_cpp='$CPP $CPPFLAGS'
13809
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13810
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13811
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13815
LIBS="$ga_save_LIBS"
13816
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ga_blas_ok" >&5
13817
$as_echo "$ga_blas_ok" >&6; }
13820
# Generic BLAS library
13821
if test $ga_blas_ok = no; then :
13822
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BLAS in generic library" >&5
13823
$as_echo_n "checking for BLAS in generic library... " >&6; }
13825
LIBS="$BLAS_LIBS $LIBS"
13827
if test "x$enable_f77" = xno; then :
13829
ac_cpp='$CPP $CPPFLAGS'
13830
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13831
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13832
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13834
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13835
/* end confdefs.h. */
13847
#ifdef F77_DUMMY_MAIN
13849
# ifdef __cplusplus
13852
int F77_DUMMY_MAIN() { return 1; }
13858
char cresult = cgemm ();
13859
char dresult = dgemm ();
13860
char sresult = sgemm ();
13861
char zresult = zgemm ();
13868
if ac_fn_c_try_link "$LINENO"; then :
13873
rm -f core conftest.err conftest.$ac_objext \
13876
ac_cpp='$CPP $CPPFLAGS'
13877
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13878
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13879
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13883
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13884
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13885
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13887
cat > conftest.$ac_ext <<_ACEOF
13890
INTEGER M, N, K, LDA, LDB, LDC
13891
COMPLEX CA(20,40), CB(20,30), CC(40,30), Calpha, Cbeta
13892
DOUBLE COMPLEX ZA(20,40), ZB(20,30), ZC(40,30), Zalpha, Zbeta
13893
REAL SA(20,40), SB(20,30), SC(40,30), Salpha, Sbeta
13894
DOUBLE PRECISION DA(20,40), DB(20,30), DC(40,30), Dalpha, Dbeta
13913
CALL CGEMM ('T','N',M,N,K,Calpha,CA,LDA,CB,LDB,Cbeta,CC,LDC)
13914
CALL ZGEMM ('T','N',M,N,K,Zalpha,ZA,LDA,ZB,LDB,Zbeta,ZC,LDC)
13915
CALL SGEMM ('T','N',M,N,K,Salpha,SA,LDA,SB,LDB,Sbeta,SC,LDC)
13916
CALL DGEMM ('T','N',M,N,K,Dalpha,DA,LDA,DB,LDB,Dbeta,DC,LDC)
13920
if ac_fn_f77_try_link "$LINENO"; then :
13925
rm -f core conftest.err conftest.$ac_objext \
13928
ac_cpp='$CPP $CPPFLAGS'
13929
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13930
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13931
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13935
LIBS="$ga_save_LIBS"
13936
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ga_blas_ok" >&5
13937
$as_echo "$ga_blas_ok" >&6; }
13940
CPPFLAGS="$ga_save_CPPFLAGS"
13941
LDFLAGS="$ga_save_LDFLAGS"
13947
# Tests are complete. Execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
13948
if test $ga_blas_ok = yes; then :
13952
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: BLAS library not found, using internal BLAS" >&5
13953
$as_echo "$as_me: WARNING: BLAS library not found, using internal BLAS" >&2;}
13954
blas_size=$ga_cv_f77_integer_size # reset blas integer size to desired
13959
cat >>confdefs.h <<_ACEOF
13960
#define HAVE_BLAS $have_blas
13964
cat >>confdefs.h <<_ACEOF
13965
#define BLAS_SIZE $blas_size
13968
if test $ga_blas_ok = yes; then
13970
HAVE_BLAS_FALSE='#'
13979
# Check whether --with-lapack was given.
13980
if test "${with_lapack+set}" = set; then :
13981
withval=$with_lapack;
13986
if test "x$with_lapack" = xno; then :
13990
# Parse --with-lapack argument. Clear previous values first.
13994
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ga_arg_parse_sizeof_voidp" ""; then :
13998
for arg in $with_lapack ; do
14005
LAPACK_LIBS="$LAPACK_LIBS $arg" ;; #(
14007
LAPACK_LDFLAGS="$LAPACK_LDFLAGS $arg" ;; #(
14009
LAPACK_LDFLAGS="$LAPACK_LDFLAGS $arg" ;; #(
14011
LAPACK_LDFLAGS="$LAPACK_LDFLAGS $arg" ;; #(
14013
LAPACK_CPPFLAGS="$LAPACK_CPPFLAGS $arg" ;; #(
14015
LAPACK_LIBS="$LAPACK_LIBS $arg" ;; #(
14017
LAPACK_LIBS="$LAPACK_LIBS $arg" ;; #(
14019
if test -d $arg; then :
14020
LAPACK_LDFLAGS="$LAPACK_LDFLAGS -L$arg"
14022
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_lapack not parsed" >&5
14023
$as_echo "$as_me: WARNING: $arg of with_lapack not parsed" >&2;}
14026
if test -d $arg; then :
14027
LAPACK_LDFLAGS="$LAPACK_LDFLAGS -L$arg"
14029
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_lapack not parsed" >&5
14030
$as_echo "$as_me: WARNING: $arg of with_lapack not parsed" >&2;}
14033
if test -d $arg; then :
14034
LAPACK_CPPFLAGS="$LAPACK_CPPFLAGS -I$arg"
14036
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_lapack not parsed" >&5
14037
$as_echo "$as_me: WARNING: $arg of with_lapack not parsed" >&2;}
14040
if test -d $arg; then :
14041
LAPACK_CPPFLAGS="$LAPACK_CPPFLAGS -I$arg"
14043
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_lapack not parsed" >&5
14044
$as_echo "$as_me: WARNING: $arg of with_lapack not parsed" >&2;}
14047
ga_arg_parse_ok=no ;;
14049
# $arg didn't fit the most common cases
14050
# check for subdirectories e.g. lib,include
14051
if test "x$ga_arg_parse_ok" = xno; then :
14052
if test "x$ga_arg_parse_sizeof_voidp" = x8; then :
14053
if test -d $arg/lib64; then :
14054
LAPACK_LDFLAGS="$LAPACK_LDFLAGS -L$arg/lib64"; ga_arg_parse_ok=yes
14055
elif test -d $arg/lib; then :
14056
LAPACK_LDFLAGS="$LAPACK_LDFLAGS -L$arg/lib"; ga_arg_parse_ok=yes
14058
if test -d $arg/include64; then :
14059
LAPACK_CPPFLAGS="$LAPACK_CPPFLAGS -I$arg/include64"; ga_arg_parse_ok=yes
14060
elif test -d $arg/include; then :
14061
LAPACK_CPPFLAGS="$LAPACK_CPPFLAGS -I$arg/include"; ga_arg_parse_ok=yes
14064
if test -d $arg/lib; then :
14065
LAPACK_LDFLAGS="$LAPACK_LDFLAGS -L$arg/lib"; ga_arg_parse_ok=yes
14067
if test -d $arg/include; then :
14068
LAPACK_CPPFLAGS="$LAPACK_CPPFLAGS -I$arg/include"; ga_arg_parse_ok=yes
14072
# $arg still unknown, look for "lib" and "include" anywhere...
14073
if test "x$ga_arg_parse_ok" = xno; then :
14076
if test -d $arg; then :
14077
LAPACK_LDFLAGS="$LAPACK_LDFLAGS -L$arg"; ga_arg_parse_ok=yes
14080
if test -d $arg; then :
14081
LAPACK_CPPFLAGS="$LAPACK_CPPFLAGS -I$arg"; ga_arg_parse_ok=yes
14087
# warn user that $arg fell through
14088
if test "x$ga_arg_parse_ok" = xno; then :
14089
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_lapack not parsed" >&5
14090
$as_echo "$as_me: WARNING: $arg of with_lapack not parsed" >&2;}
14094
# Get fortran linker name of LAPACK function to check for.
14096
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14097
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14098
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14099
case $ac_cv_f77_mangling in
14100
upper*) ac_val="DGETRS" ;;
14101
lower*) ac_val="dgetrs" ;;
14102
*) ac_val="unknown" ;;
14104
case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
14109
ac_cpp='$CPP $CPPFLAGS'
14110
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14111
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14112
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14115
ga_save_LIBS="$LIBS"
14116
ga_save_LDFLAGS="$LDFLAGS"
14117
ga_save_CPPFLAGS="$CPPFLAGS"
14119
LDFLAGS="$LAPACK_LDFLAGS $BLAS_LDFLAGS $LDFLAGS"
14120
CPPFLAGS="$LAPACK_CPPFLAGS $BLAS_CPPFLAGS $CPPFLAGS"
14122
{ $as_echo "$as_me:${as_lineno-$LINENO}: Attempting to locate LAPACK library" >&5
14123
$as_echo "$as_me: Attempting to locate LAPACK library" >&6;}
14125
# We cannot use LAPACK if BLAS is not found
14126
if test $ga_blas_ok != yes; then :
14127
ga_lapack_ok=noblas
14130
# First, check environment/command-line variables.
14131
# If failed, erase LAPACK_LIBS but maintain LAPACK_LDFLAGS and LAPACK_CPPFLAGS.
14132
if test $ga_lapack_ok = no; then :
14133
LIBS="$LAPACK_LIBS $BLAS_LIBS $LIBS"
14134
if test "x$enable_f77" = xno; then :
14135
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C LAPACK with user-supplied flags" >&5
14136
$as_echo_n "checking for C LAPACK with user-supplied flags... " >&6; }
14138
ac_cpp='$CPP $CPPFLAGS'
14139
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14140
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14141
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14143
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14144
/* end confdefs.h. */
14153
#ifdef F77_DUMMY_MAIN
14155
# ifdef __cplusplus
14158
int F77_DUMMY_MAIN() { return 1; }
14164
char result = dgetrs ();
14171
if ac_fn_c_try_link "$LINENO"; then :
14176
rm -f core conftest.err conftest.$ac_objext \
14179
ac_cpp='$CPP $CPPFLAGS'
14180
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14181
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14182
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14185
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 LAPACK with user-supplied flags" >&5
14186
$as_echo_n "checking for Fortran 77 LAPACK with user-supplied flags... " >&6; }
14188
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14189
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14190
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14192
cat > conftest.$ac_ext <<_ACEOF
14200
if ac_fn_f77_try_link "$LINENO"; then :
14205
rm -f core conftest.err conftest.$ac_objext \
14208
ac_cpp='$CPP $CPPFLAGS'
14209
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14210
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14211
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14214
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ga_lapack_ok" >&5
14215
$as_echo "$ga_lapack_ok" >&6; }
14216
LIBS="$ga_save_LIBS"
14219
# Generic LAPACK library?
14220
for lib in lapack lapack_rs6k; do
14221
if test $ga_lapack_ok = no; then :
14222
ga_save_LIBS="$LIBS"; LIBS="$BLAS_LIBS $LIBS"
14223
as_ac_Lib=`$as_echo "ac_cv_lib_$lib''_$dgetrs" | $as_tr_sh`
14224
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $dgetrs in -l$lib" >&5
14225
$as_echo_n "checking for $dgetrs in -l$lib... " >&6; }
14226
if eval \${$as_ac_Lib+:} false; then :
14227
$as_echo_n "(cached) " >&6
14229
ac_check_lib_save_LIBS=$LIBS
14230
LIBS="-l$lib $FLIBS $LIBS"
14231
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14232
/* end confdefs.h. */
14234
/* Override any GCC internal prototype to avoid an error.
14235
Use char because int might match the return type of a GCC
14236
builtin and then its argument prototype would still apply. */
14241
#ifdef F77_DUMMY_MAIN
14243
# ifdef __cplusplus
14246
int F77_DUMMY_MAIN() { return 1; }
14257
if ac_fn_c_try_link "$LINENO"; then :
14258
eval "$as_ac_Lib=yes"
14260
eval "$as_ac_Lib=no"
14262
rm -f core conftest.err conftest.$ac_objext \
14263
conftest$ac_exeext conftest.$ac_ext
14264
LIBS=$ac_check_lib_save_LIBS
14266
eval ac_res=\$$as_ac_Lib
14267
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14268
$as_echo "$ac_res" >&6; }
14269
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
14270
ga_lapack_ok=yes; LAPACK_LIBS="-l$lib"
14273
LIBS="$ga_save_LIBS"
14277
CPPFLAGS="$ga_save_CPPFLAGS"
14278
LDFLAGS="$ga_save_LDFLAGS"
14284
# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
14285
if test $ga_lapack_ok = yes; then :
14289
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LAPACK library not found, using internal LAPACK" >&5
14290
$as_echo "$as_me: WARNING: LAPACK library not found, using internal LAPACK" >&2;}
14295
cat >>confdefs.h <<_ACEOF
14296
#define HAVE_LAPACK $have_lapack
14299
if test $ga_lapack_ok = yes; then
14301
HAVE_LAPACK_FALSE='#'
14303
HAVE_LAPACK_TRUE='#'
14311
# Check whether --with-scalapack was given.
14312
if test "${with_scalapack+set}" = set; then :
14313
withval=$with_scalapack; scalapack_size=4
14317
# Check whether --with-scalapack8 was given.
14318
if test "${with_scalapack8+set}" = set; then :
14319
withval=$with_scalapack8; scalapack_size=8; with_scalapack="$with_scalapack8"
14324
if test "x$with_scalapack" = xno; then :
14325
ga_scalapack_ok=skip
14328
# Parse --with-scalapack argument. Clear previous values first.
14331
SCALAPACK_CPPFLAGS=
14332
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ga_arg_parse_sizeof_voidp" ""; then :
14336
for arg in $with_scalapack ; do
14343
SCALAPACK_LIBS="$SCALAPACK_LIBS $arg" ;; #(
14345
SCALAPACK_LDFLAGS="$SCALAPACK_LDFLAGS $arg" ;; #(
14347
SCALAPACK_LDFLAGS="$SCALAPACK_LDFLAGS $arg" ;; #(
14349
SCALAPACK_LDFLAGS="$SCALAPACK_LDFLAGS $arg" ;; #(
14351
SCALAPACK_CPPFLAGS="$SCALAPACK_CPPFLAGS $arg" ;; #(
14353
SCALAPACK_LIBS="$SCALAPACK_LIBS $arg" ;; #(
14355
SCALAPACK_LIBS="$SCALAPACK_LIBS $arg" ;; #(
14357
if test -d $arg; then :
14358
SCALAPACK_LDFLAGS="$SCALAPACK_LDFLAGS -L$arg"
14360
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_scalapack not parsed" >&5
14361
$as_echo "$as_me: WARNING: $arg of with_scalapack not parsed" >&2;}
14364
if test -d $arg; then :
14365
SCALAPACK_LDFLAGS="$SCALAPACK_LDFLAGS -L$arg"
14367
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_scalapack not parsed" >&5
14368
$as_echo "$as_me: WARNING: $arg of with_scalapack not parsed" >&2;}
14371
if test -d $arg; then :
14372
SCALAPACK_CPPFLAGS="$SCALAPACK_CPPFLAGS -I$arg"
14374
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_scalapack not parsed" >&5
14375
$as_echo "$as_me: WARNING: $arg of with_scalapack not parsed" >&2;}
14378
if test -d $arg; then :
14379
SCALAPACK_CPPFLAGS="$SCALAPACK_CPPFLAGS -I$arg"
14381
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_scalapack not parsed" >&5
14382
$as_echo "$as_me: WARNING: $arg of with_scalapack not parsed" >&2;}
14385
ga_arg_parse_ok=no ;;
14387
# $arg didn't fit the most common cases
14388
# check for subdirectories e.g. lib,include
14389
if test "x$ga_arg_parse_ok" = xno; then :
14390
if test "x$ga_arg_parse_sizeof_voidp" = x8; then :
14391
if test -d $arg/lib64; then :
14392
SCALAPACK_LDFLAGS="$SCALAPACK_LDFLAGS -L$arg/lib64"; ga_arg_parse_ok=yes
14393
elif test -d $arg/lib; then :
14394
SCALAPACK_LDFLAGS="$SCALAPACK_LDFLAGS -L$arg/lib"; ga_arg_parse_ok=yes
14396
if test -d $arg/include64; then :
14397
SCALAPACK_CPPFLAGS="$SCALAPACK_CPPFLAGS -I$arg/include64"; ga_arg_parse_ok=yes
14398
elif test -d $arg/include; then :
14399
SCALAPACK_CPPFLAGS="$SCALAPACK_CPPFLAGS -I$arg/include"; ga_arg_parse_ok=yes
14402
if test -d $arg/lib; then :
14403
SCALAPACK_LDFLAGS="$SCALAPACK_LDFLAGS -L$arg/lib"; ga_arg_parse_ok=yes
14405
if test -d $arg/include; then :
14406
SCALAPACK_CPPFLAGS="$SCALAPACK_CPPFLAGS -I$arg/include"; ga_arg_parse_ok=yes
14410
# $arg still unknown, look for "lib" and "include" anywhere...
14411
if test "x$ga_arg_parse_ok" = xno; then :
14414
if test -d $arg; then :
14415
SCALAPACK_LDFLAGS="$SCALAPACK_LDFLAGS -L$arg"; ga_arg_parse_ok=yes
14418
if test -d $arg; then :
14419
SCALAPACK_CPPFLAGS="$SCALAPACK_CPPFLAGS -I$arg"; ga_arg_parse_ok=yes
14425
# warn user that $arg fell through
14426
if test "x$ga_arg_parse_ok" = xno; then :
14427
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $arg of with_scalapack not parsed" >&5
14428
$as_echo "$as_me: WARNING: $arg of with_scalapack not parsed" >&2;}
14432
# Get fortran linker name of ScaLAPACK function to check for.
14434
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14435
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14436
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14437
case $ac_cv_f77_mangling in
14438
upper*) ac_val="PDGETRS" ;;
14439
lower*) ac_val="pdgetrs" ;;
14440
*) ac_val="unknown" ;;
14442
case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
14447
ac_cpp='$CPP $CPPFLAGS'
14448
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14449
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14450
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14453
ga_save_LIBS="$LIBS"
14454
ga_save_LDFLAGS="$LDFLAGS"
14455
ga_save_CPPFLAGS="$CPPFLAGS"
14457
LDFLAGS="$LAPACK_LDFLAGS $BLAS_LDFLAGS $LDFLAGS"
14458
CPPFLAGS="$LAPACK_CPPFLAGS $BLAS_CPPFLAGS $CPPFLAGS"
14460
{ $as_echo "$as_me:${as_lineno-$LINENO}: Attempting to locate SCALAPACK library" >&5
14461
$as_echo "$as_me: Attempting to locate SCALAPACK library" >&6;}
14463
# First, check environment/command-line variables.
14464
# If failed, erase SCALAPACK_LIBS but maintain SCALAPACK_LDFLAGS and
14465
# SCALAPACK_CPPFLAGS.
14466
if test $ga_scalapack_ok = no; then :
14467
LIBS="$SCALAPACK_LIBS $LAPACK_LIBS $BLAS_LIBS $LIBS"
14468
if test "x$enable_f77" = xno; then :
14469
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C SCALAPACK with user-supplied flags" >&5
14470
$as_echo_n "checking for C SCALAPACK with user-supplied flags... " >&6; }
14472
ac_cpp='$CPP $CPPFLAGS'
14473
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14474
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14475
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14477
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14478
/* end confdefs.h. */
14487
#ifdef F77_DUMMY_MAIN
14489
# ifdef __cplusplus
14492
int F77_DUMMY_MAIN() { return 1; }
14498
char result = pdgetrs ();
14505
if ac_fn_c_try_link "$LINENO"; then :
14506
ga_scalapack_ok=yes
14510
rm -f core conftest.err conftest.$ac_objext \
14513
ac_cpp='$CPP $CPPFLAGS'
14514
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14515
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14516
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14519
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 SCALAPACK with user-supplied flags" >&5
14520
$as_echo_n "checking for Fortran 77 SCALAPACK with user-supplied flags... " >&6; }
14522
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14523
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14524
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14526
cat > conftest.$ac_ext <<_ACEOF
14534
if ac_fn_f77_try_link "$LINENO"; then :
14535
ga_scalapack_ok=yes
14539
rm -f core conftest.err conftest.$ac_objext \
14542
ac_cpp='$CPP $CPPFLAGS'
14543
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14544
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14545
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14548
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ga_scalapack_ok" >&5
14549
$as_echo "$ga_scalapack_ok" >&6; }
14550
LIBS="$ga_save_LIBS"
14553
# Generic ScaLAPACK library?
14554
if test $ga_scalapack_ok = no; then :
14555
as_ac_Lib=`$as_echo "ac_cv_lib_scalapack_$pdgetrs" | $as_tr_sh`
14556
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $pdgetrs in -lscalapack" >&5
14557
$as_echo_n "checking for $pdgetrs in -lscalapack... " >&6; }
14558
if eval \${$as_ac_Lib+:} false; then :
14559
$as_echo_n "(cached) " >&6
14561
ac_check_lib_save_LIBS=$LIBS
14562
LIBS="-lscalapack $FLIBS $LIBS"
14563
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14564
/* end confdefs.h. */
14566
/* Override any GCC internal prototype to avoid an error.
14567
Use char because int might match the return type of a GCC
14568
builtin and then its argument prototype would still apply. */
14573
#ifdef F77_DUMMY_MAIN
14575
# ifdef __cplusplus
14578
int F77_DUMMY_MAIN() { return 1; }
14584
return $pdgetrs ();
14589
if ac_fn_c_try_link "$LINENO"; then :
14590
eval "$as_ac_Lib=yes"
14592
eval "$as_ac_Lib=no"
14594
rm -f core conftest.err conftest.$ac_objext \
14595
conftest$ac_exeext conftest.$ac_ext
14596
LIBS=$ac_check_lib_save_LIBS
14598
eval ac_res=\$$as_ac_Lib
14599
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14600
$as_echo "$ac_res" >&6; }
14601
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
14602
ga_scalapack_ok=yes; SCALAPACK_LIBS="-lscalapack"
14605
LIBS="$ga_save_LIBS"
14608
# TODO tests for PBLAS and BLACS to enable ScaLAPACK just in case all
14609
# packages are separate...
14611
CPPFLAGS="$ga_save_CPPFLAGS"
14612
LDFLAGS="$ga_save_LDFLAGS"
14617
if test "x$scalapack_size" = x8; then :
14619
$as_echo "#define SCALAPACK_I8 1" >>confdefs.h
14623
# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
14624
if test $ga_scalapack_ok = yes; then :
14628
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ScaLAPACK library not found, interfaces won't be defined" >&5
14629
$as_echo "$as_me: WARNING: ScaLAPACK library not found, interfaces won't be defined" >&2;}
14634
cat >>confdefs.h <<_ACEOF
14635
#define HAVE_SCALAPACK $have_scalapack
14638
if test $ga_scalapack_ok = yes; then
14639
HAVE_SCALAPACK_TRUE=
14640
HAVE_SCALAPACK_FALSE='#'
14642
HAVE_SCALAPACK_TRUE='#'
14643
HAVE_SCALAPACK_FALSE=
14648
###############################################################################
14649
# Libtool setup -- no compiler/linker tests after this
14650
###############################################################################
14651
{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
14652
$as_echo "$as_me: " >&6;}
14653
{ $as_echo "$as_me:${as_lineno-$LINENO}: Libtool setup" >&5
14654
$as_echo "$as_me: Libtool setup" >&6;}
14655
{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
14656
$as_echo "$as_me: " >&6;}
14657
# temporarily restore unwrapped compilers
14658
# this works around a bug where libtool sadly relies on matching compiler
14659
# names in order to determine features (Fortran only, I think)
14660
# libtool doesn't recognize MPI compiler names, nor should it
14661
if test x$with_mpi_wrappers = xyes; then :
14663
ga_mpi_unwrap_push_save_CC="$CC"
14664
ga_mpi_unwrap_push_save_CXX="$CXX"
14665
ga_mpi_unwrap_push_save_F77="$F77"
14666
ga_mpi_unwrap_push_save_FC="$FC"
14667
if test "x$ga_cv_mpic_naked" != x; then :
14668
CC="$ga_cv_mpic_naked"
14670
if test "x$ga_cv_mpicxx_naked" != x; then :
14671
CXX="$ga_cv_mpicxx_naked"
14673
if test "x$ga_cv_mpif77_naked" != x; then :
14674
F77="$ga_cv_mpif77_naked"
14676
if test "x$ga_cv_mpifc_naked" != x; then :
14677
FC="$ga_cv_mpifc_naked"
14685
if test "x$AR" = x; then :
14686
case $ga_cv_target in #(
14693
if test "x$RANLIB" = x; then :
14694
case $ga_cv_target in #(
14704
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
14705
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
14710
macro_version='2.4.2'
14711
macro_revision='1.3337'
14725
ltmain="$ac_aux_dir/ltmain.sh"
14727
# Backslashify metacharacters that are still active within
14728
# double-quoted strings.
14729
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
14731
# Same as above, but do not quote variable references.
14732
double_quote_subst='s/\(["`\\]\)/\\\1/g'
14734
# Sed substitution to delay expansion of an escaped shell variable in a
14735
# double_quote_subst'ed string.
14736
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
14738
# Sed substitution to delay expansion of an escaped single quote.
14739
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
14741
# Sed substitution to avoid accidental globbing in evaled expressions
14742
no_glob_subst='s/\*/\\\*/g'
14744
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14745
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
14746
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
14748
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
14749
$as_echo_n "checking how to print strings... " >&6; }
14750
# Test print first, because it will be a builtin if present.
14751
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
14752
test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
14754
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
14757
# Use this function as a fallback that always works.
14758
func_fallback_echo ()
14760
eval 'cat <<_LTECHO_EOF
14764
ECHO='func_fallback_echo'
14767
# func_echo_all arg...
14768
# Invoke $ECHO with all args, space-separated.
14775
printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
14776
$as_echo "printf" >&6; } ;;
14777
print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
14778
$as_echo "print -r" >&6; } ;;
14779
*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
14780
$as_echo "cat" >&6; } ;;
14796
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
14797
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
14798
if ${ac_cv_path_SED+:} false; then :
14799
$as_echo_n "(cached) " >&6
14801
ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
14802
for ac_i in 1 2 3 4 5 6 7; do
14803
ac_script="$ac_script$as_nl$ac_script"
14805
echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
14806
{ ac_script=; unset ac_script;}
14807
if test -z "$SED"; then
14808
ac_path_SED_found=false
14809
# Loop through the user's path and test for each of PROGNAME-LIST
14810
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14811
for as_dir in $PATH
14814
test -z "$as_dir" && as_dir=.
14815
for ac_prog in sed gsed; do
14816
for ac_exec_ext in '' $ac_executable_extensions; do
14817
ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
14818
{ test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
14819
# Check for GNU ac_path_SED and select it if it is found.
14820
# Check for GNU $ac_path_SED
14821
case `"$ac_path_SED" --version 2>&1` in
14823
ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
14826
$as_echo_n 0123456789 >"conftest.in"
14829
cat "conftest.in" "conftest.in" >"conftest.tmp"
14830
mv "conftest.tmp" "conftest.in"
14831
cp "conftest.in" "conftest.nl"
14832
$as_echo '' >> "conftest.nl"
14833
"$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
14834
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
14835
as_fn_arith $ac_count + 1 && ac_count=$as_val
14836
if test $ac_count -gt ${ac_path_SED_max-0}; then
14837
# Best one so far, save it but keep looking for a better one
14838
ac_cv_path_SED="$ac_path_SED"
14839
ac_path_SED_max=$ac_count
14841
# 10*(2^10) chars as input seems more than enough
14842
test $ac_count -gt 10 && break
14844
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
14847
$ac_path_SED_found && break 3
14852
if test -z "$ac_cv_path_SED"; then
14853
as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
14856
ac_cv_path_SED=$SED
14860
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
14861
$as_echo "$ac_cv_path_SED" >&6; }
14862
SED="$ac_cv_path_SED"
14865
test -z "$SED" && SED=sed
14866
Xsed="$SED -e 1s/^X//"
14878
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
14879
$as_echo_n "checking for fgrep... " >&6; }
14880
if ${ac_cv_path_FGREP+:} false; then :
14881
$as_echo_n "(cached) " >&6
14883
if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
14884
then ac_cv_path_FGREP="$GREP -F"
14886
if test -z "$FGREP"; then
14887
ac_path_FGREP_found=false
14888
# Loop through the user's path and test for each of PROGNAME-LIST
14889
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14890
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
14893
test -z "$as_dir" && as_dir=.
14894
for ac_prog in fgrep; do
14895
for ac_exec_ext in '' $ac_executable_extensions; do
14896
ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
14897
{ test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
14898
# Check for GNU ac_path_FGREP and select it if it is found.
14899
# Check for GNU $ac_path_FGREP
14900
case `"$ac_path_FGREP" --version 2>&1` in
14902
ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
14905
$as_echo_n 0123456789 >"conftest.in"
14908
cat "conftest.in" "conftest.in" >"conftest.tmp"
14909
mv "conftest.tmp" "conftest.in"
14910
cp "conftest.in" "conftest.nl"
14911
$as_echo 'FGREP' >> "conftest.nl"
14912
"$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
14913
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
14914
as_fn_arith $ac_count + 1 && ac_count=$as_val
14915
if test $ac_count -gt ${ac_path_FGREP_max-0}; then
14916
# Best one so far, save it but keep looking for a better one
14917
ac_cv_path_FGREP="$ac_path_FGREP"
14918
ac_path_FGREP_max=$ac_count
14920
# 10*(2^10) chars as input seems more than enough
14921
test $ac_count -gt 10 && break
14923
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
14926
$ac_path_FGREP_found && break 3
14931
if test -z "$ac_cv_path_FGREP"; then
14932
as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
14935
ac_cv_path_FGREP=$FGREP
14940
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
14941
$as_echo "$ac_cv_path_FGREP" >&6; }
14942
FGREP="$ac_cv_path_FGREP"
14945
test -z "$GREP" && GREP=grep
14965
# Check whether --with-gnu-ld was given.
14966
if test "${with_gnu_ld+set}" = set; then :
14967
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14973
if test "$GCC" = yes; then
14974
# Check if gcc -print-prog-name=ld gives a path.
14975
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14976
$as_echo_n "checking for ld used by $CC... " >&6; }
14979
# gcc leaves a trailing carriage return which upsets mingw
14980
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14982
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14985
# Accept absolute paths.
14987
re_direlt='/[^/][^/]*/\.\./'
14988
# Canonicalize the pathname of ld
14989
ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14990
while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14991
ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14993
test -z "$LD" && LD="$ac_prog"
14996
# If it fails, then pretend we aren't using GCC.
15000
# If it is relative, then search for the first ld in PATH.
15001
with_gnu_ld=unknown
15004
elif test "$with_gnu_ld" = yes; then
15005
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15006
$as_echo_n "checking for GNU ld... " >&6; }
15008
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15009
$as_echo_n "checking for non-GNU ld... " >&6; }
15011
if ${lt_cv_path_LD+:} false; then :
15012
$as_echo_n "(cached) " >&6
15014
if test -z "$LD"; then
15015
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15016
for ac_dir in $PATH; do
15018
test -z "$ac_dir" && ac_dir=.
15019
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15020
lt_cv_path_LD="$ac_dir/$ac_prog"
15021
# Check to see if the program is GNU ld. I'd rather use --version,
15022
# but apparently some variants of GNU ld only accept -v.
15023
# Break only if it was the GNU/non-GNU ld that we prefer.
15024
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15025
*GNU* | *'with BFD'*)
15026
test "$with_gnu_ld" != no && break
15029
test "$with_gnu_ld" != yes && break
15036
lt_cv_path_LD="$LD" # Let the user override the test with a path.
15040
LD="$lt_cv_path_LD"
15041
if test -n "$LD"; then
15042
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15043
$as_echo "$LD" >&6; }
15045
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15046
$as_echo "no" >&6; }
15048
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15049
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15050
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15051
if ${lt_cv_prog_gnu_ld+:} false; then :
15052
$as_echo_n "(cached) " >&6
15054
# I'd rather use --version here, but apparently some GNU lds only accept -v.
15055
case `$LD -v 2>&1 </dev/null` in
15056
*GNU* | *'with BFD'*)
15057
lt_cv_prog_gnu_ld=yes
15060
lt_cv_prog_gnu_ld=no
15064
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15065
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
15066
with_gnu_ld=$lt_cv_prog_gnu_ld
15076
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
15077
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
15078
if ${lt_cv_path_NM+:} false; then :
15079
$as_echo_n "(cached) " >&6
15081
if test -n "$NM"; then
15082
# Let the user override the test.
15083
lt_cv_path_NM="$NM"
15085
lt_nm_to_check="${ac_tool_prefix}nm"
15086
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
15087
lt_nm_to_check="$lt_nm_to_check nm"
15089
for lt_tmp_nm in $lt_nm_to_check; do
15090
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15091
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
15093
test -z "$ac_dir" && ac_dir=.
15094
tmp_nm="$ac_dir/$lt_tmp_nm"
15095
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
15096
# Check to see if the nm accepts a BSD-compat flag.
15097
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
15098
# nm: unknown option "B" ignored
15099
# Tru64's nm complains that /dev/null is an invalid object file
15100
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
15101
*/dev/null* | *'Invalid file or object type'*)
15102
lt_cv_path_NM="$tmp_nm -B"
15106
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
15108
lt_cv_path_NM="$tmp_nm -p"
15112
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
15113
continue # so that we can try to find one that supports BSD flags
15122
: ${lt_cv_path_NM=no}
15125
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
15126
$as_echo "$lt_cv_path_NM" >&6; }
15127
if test "$lt_cv_path_NM" != "no"; then
15128
NM="$lt_cv_path_NM"
15130
# Didn't find any BSD compatible name lister, look for dumpbin.
15131
if test -n "$DUMPBIN"; then :
15132
# Let the user override the test.
15134
if test -n "$ac_tool_prefix"; then
15135
for ac_prog in dumpbin "link -dump"
15137
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
15138
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
15139
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15140
$as_echo_n "checking for $ac_word... " >&6; }
15141
if ${ac_cv_prog_DUMPBIN+:} false; then :
15142
$as_echo_n "(cached) " >&6
15144
if test -n "$DUMPBIN"; then
15145
ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
15147
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15148
for as_dir in $PATH
15151
test -z "$as_dir" && as_dir=.
15152
for ac_exec_ext in '' $ac_executable_extensions; do
15153
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15154
ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
15155
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15164
DUMPBIN=$ac_cv_prog_DUMPBIN
15165
if test -n "$DUMPBIN"; then
15166
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
15167
$as_echo "$DUMPBIN" >&6; }
15169
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15170
$as_echo "no" >&6; }
15174
test -n "$DUMPBIN" && break
15177
if test -z "$DUMPBIN"; then
15178
ac_ct_DUMPBIN=$DUMPBIN
15179
for ac_prog in dumpbin "link -dump"
15181
# Extract the first word of "$ac_prog", so it can be a program name with args.
15182
set dummy $ac_prog; ac_word=$2
15183
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15184
$as_echo_n "checking for $ac_word... " >&6; }
15185
if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
15186
$as_echo_n "(cached) " >&6
15188
if test -n "$ac_ct_DUMPBIN"; then
15189
ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
15191
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15192
for as_dir in $PATH
15195
test -z "$as_dir" && as_dir=.
15196
for ac_exec_ext in '' $ac_executable_extensions; do
15197
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15198
ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
15199
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15208
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
15209
if test -n "$ac_ct_DUMPBIN"; then
15210
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
15211
$as_echo "$ac_ct_DUMPBIN" >&6; }
15213
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15214
$as_echo "no" >&6; }
15218
test -n "$ac_ct_DUMPBIN" && break
15221
if test "x$ac_ct_DUMPBIN" = x; then
15224
case $cross_compiling:$ac_tool_warned in
15226
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15227
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15228
ac_tool_warned=yes ;;
15230
DUMPBIN=$ac_ct_DUMPBIN
15234
case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
15236
DUMPBIN="$DUMPBIN -symbols"
15244
if test "$DUMPBIN" != ":"; then
15248
test -z "$NM" && NM=nm
15255
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
15256
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
15257
if ${lt_cv_nm_interface+:} false; then :
15258
$as_echo_n "(cached) " >&6
15260
lt_cv_nm_interface="BSD nm"
15261
echo "int some_variable = 0;" > conftest.$ac_ext
15262
(eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
15263
(eval "$ac_compile" 2>conftest.err)
15264
cat conftest.err >&5
15265
(eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
15266
(eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
15267
cat conftest.err >&5
15268
(eval echo "\"\$as_me:$LINENO: output\"" >&5)
15269
cat conftest.out >&5
15270
if $GREP 'External.*some_variable' conftest.out > /dev/null; then
15271
lt_cv_nm_interface="MS dumpbin"
15275
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
15276
$as_echo "$lt_cv_nm_interface" >&6; }
15278
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
15279
$as_echo_n "checking whether ln -s works... " >&6; }
15281
if test "$LN_S" = "ln -s"; then
15282
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15283
$as_echo "yes" >&6; }
15285
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
15286
$as_echo "no, using $LN_S" >&6; }
15289
# find the maximum length of command line arguments
15290
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
15291
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
15292
if ${lt_cv_sys_max_cmd_len+:} false; then :
15293
$as_echo_n "(cached) " >&6
15300
# On DJGPP, this test can blow up pretty badly due to problems in libc
15301
# (any single argument exceeding 2000 bytes causes a buffer overrun
15302
# during glob expansion). Even if it were fixed, the result of this
15303
# check would be larger than it should be.
15304
lt_cv_sys_max_cmd_len=12288; # 12K is about right
15308
# Under GNU Hurd, this test is not required because there is
15309
# no limit to the length of command line arguments.
15310
# Libtool will interpret -1 as no limit whatsoever
15311
lt_cv_sys_max_cmd_len=-1;
15314
cygwin* | mingw* | cegcc*)
15315
# On Win9x/ME, this test blows up -- it succeeds, but takes
15316
# about 5 minutes as the teststring grows exponentially.
15317
# Worse, since 9x/ME are not pre-emptively multitasking,
15318
# you end up with a "frozen" computer, even though with patience
15319
# the test eventually succeeds (with a max line length of 256k).
15320
# Instead, let's just punt: use the minimum linelength reported by
15321
# all of the supported platforms: 8192 (on NT/2K/XP).
15322
lt_cv_sys_max_cmd_len=8192;
15326
# On MiNT this can take a long time and run out of memory.
15327
lt_cv_sys_max_cmd_len=8192;
15331
# On AmigaOS with pdksh, this test takes hours, literally.
15332
# So we just punt and use a minimum line length of 8192.
15333
lt_cv_sys_max_cmd_len=8192;
15336
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
15337
# This has been around since 386BSD, at least. Likely further.
15338
if test -x /sbin/sysctl; then
15339
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
15340
elif test -x /usr/sbin/sysctl; then
15341
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
15343
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
15345
# And add a safety zone
15346
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
15347
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
15351
# We know the value 262144 and hardcode it with a safety zone (like BSD)
15352
lt_cv_sys_max_cmd_len=196608
15356
# The test takes a long time on OS/2.
15357
lt_cv_sys_max_cmd_len=8192
15361
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
15362
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
15363
# nice to cause kernel panics so lets avoid the loop below.
15364
# First set a reasonable default.
15365
lt_cv_sys_max_cmd_len=16384
15367
if test -x /sbin/sysconfig; then
15368
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
15369
*1*) lt_cv_sys_max_cmd_len=-1 ;;
15374
lt_cv_sys_max_cmd_len=102400
15376
sysv5* | sco5v6* | sysv4.2uw2*)
15377
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
15378
if test -n "$kargmax"; then
15379
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
15381
lt_cv_sys_max_cmd_len=32768
15385
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
15386
if test -n "$lt_cv_sys_max_cmd_len"; then
15387
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
15388
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
15390
# Make teststring a little bigger before we do anything with it.
15391
# a 1K string should be a reasonable start.
15392
for i in 1 2 3 4 5 6 7 8 ; do
15393
teststring=$teststring$teststring
15395
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
15396
# If test is not a shell built-in, we'll probably end up computing a
15397
# maximum length that is only half of the actual maximum length, but
15399
while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
15400
= "X$teststring$teststring"; } >/dev/null 2>&1 &&
15401
test $i != 17 # 1/2 MB should be enough
15404
teststring=$teststring$teststring
15406
# Only check the string length outside the loop.
15407
lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
15409
# Add a significant safety factor because C++ compilers can tack on
15410
# massive amounts of additional arguments before passing them to the
15411
# linker. It appears as though 1/2 is a usable value.
15412
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
15419
if test -n $lt_cv_sys_max_cmd_len ; then
15420
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
15421
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
15423
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
15424
$as_echo "none" >&6; }
15426
max_cmd_len=$lt_cv_sys_max_cmd_len
15437
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
15438
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
15439
# Try some XSI features
15441
( _lt_dummy="a/b/c"
15442
test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
15444
&& eval 'test $(( 1 + 1 )) -eq 2 \
15445
&& test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
15447
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
15448
$as_echo "$xsi_shell" >&6; }
15451
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
15452
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
15454
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
15456
&& lt_shell_append=yes
15457
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
15458
$as_echo "$lt_shell_append" >&6; }
15461
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15471
# test EBCDIC or ASCII
15472
case `echo X|tr X '\101'` in
15473
A) # ASCII based system
15474
# \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
15475
lt_SP2NL='tr \040 \012'
15476
lt_NL2SP='tr \015\012 \040\040'
15478
*) # EBCDIC based system
15479
lt_SP2NL='tr \100 \n'
15480
lt_NL2SP='tr \r\n \100\100'
15492
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
15493
$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
15494
if ${lt_cv_to_host_file_cmd+:} false; then :
15495
$as_echo_n "(cached) " >&6
15500
*-*-mingw* ) # actually msys
15501
lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
15504
lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
15506
* ) # otherwise, assume *nix
15507
lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
15513
*-*-mingw* ) # actually msys
15514
lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
15517
lt_cv_to_host_file_cmd=func_convert_file_noop
15519
* ) # otherwise, assume *nix
15520
lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
15524
* ) # unhandled hosts (and "normal" native builds)
15525
lt_cv_to_host_file_cmd=func_convert_file_noop
15531
to_host_file_cmd=$lt_cv_to_host_file_cmd
15532
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
15533
$as_echo "$lt_cv_to_host_file_cmd" >&6; }
15539
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
15540
$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
15541
if ${lt_cv_to_tool_file_cmd+:} false; then :
15542
$as_echo_n "(cached) " >&6
15544
#assume ordinary cross tools, or native build.
15545
lt_cv_to_tool_file_cmd=func_convert_file_noop
15549
*-*-mingw* ) # actually msys
15550
lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
15558
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15559
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
15560
$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
15566
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
15567
$as_echo_n "checking for $LD option to reload object files... " >&6; }
15568
if ${lt_cv_ld_reload_flag+:} false; then :
15569
$as_echo_n "(cached) " >&6
15571
lt_cv_ld_reload_flag='-r'
15573
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
15574
$as_echo "$lt_cv_ld_reload_flag" >&6; }
15575
reload_flag=$lt_cv_ld_reload_flag
15576
case $reload_flag in
15578
*) reload_flag=" $reload_flag" ;;
15580
reload_cmds='$LD$reload_flag -o $output$reload_objs'
15582
cygwin* | mingw* | pw32* | cegcc*)
15583
if test "$GCC" != yes; then
15588
if test "$GCC" = yes; then
15589
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
15591
reload_cmds='$LD$reload_flag -o $output$reload_objs'
15604
if test -n "$ac_tool_prefix"; then
15605
# Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
15606
set dummy ${ac_tool_prefix}objdump; ac_word=$2
15607
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15608
$as_echo_n "checking for $ac_word... " >&6; }
15609
if ${ac_cv_prog_OBJDUMP+:} false; then :
15610
$as_echo_n "(cached) " >&6
15612
if test -n "$OBJDUMP"; then
15613
ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
15615
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15616
for as_dir in $PATH
15619
test -z "$as_dir" && as_dir=.
15620
for ac_exec_ext in '' $ac_executable_extensions; do
15621
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15622
ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
15623
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15632
OBJDUMP=$ac_cv_prog_OBJDUMP
15633
if test -n "$OBJDUMP"; then
15634
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
15635
$as_echo "$OBJDUMP" >&6; }
15637
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15638
$as_echo "no" >&6; }
15643
if test -z "$ac_cv_prog_OBJDUMP"; then
15644
ac_ct_OBJDUMP=$OBJDUMP
15645
# Extract the first word of "objdump", so it can be a program name with args.
15646
set dummy objdump; ac_word=$2
15647
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15648
$as_echo_n "checking for $ac_word... " >&6; }
15649
if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
15650
$as_echo_n "(cached) " >&6
15652
if test -n "$ac_ct_OBJDUMP"; then
15653
ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
15655
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15656
for as_dir in $PATH
15659
test -z "$as_dir" && as_dir=.
15660
for ac_exec_ext in '' $ac_executable_extensions; do
15661
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15662
ac_cv_prog_ac_ct_OBJDUMP="objdump"
15663
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15672
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
15673
if test -n "$ac_ct_OBJDUMP"; then
15674
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
15675
$as_echo "$ac_ct_OBJDUMP" >&6; }
15677
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15678
$as_echo "no" >&6; }
15681
if test "x$ac_ct_OBJDUMP" = x; then
15684
case $cross_compiling:$ac_tool_warned in
15686
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15687
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15688
ac_tool_warned=yes ;;
15690
OBJDUMP=$ac_ct_OBJDUMP
15693
OBJDUMP="$ac_cv_prog_OBJDUMP"
15696
test -z "$OBJDUMP" && OBJDUMP=objdump
15706
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
15707
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
15708
if ${lt_cv_deplibs_check_method+:} false; then :
15709
$as_echo_n "(cached) " >&6
15711
lt_cv_file_magic_cmd='$MAGIC_CMD'
15712
lt_cv_file_magic_test_file=
15713
lt_cv_deplibs_check_method='unknown'
15714
# Need to set the preceding variable on all platforms that support
15715
# interlibrary dependencies.
15716
# 'none' -- dependencies not supported.
15717
# `unknown' -- same as none, but documents that we really don't know.
15718
# 'pass_all' -- all dependencies passed with no checks.
15719
# 'test_compile' -- check by making test program.
15720
# 'file_magic [[regex]]' -- check by looking for files in library path
15721
# which responds to the $file_magic_cmd with a given extended regex.
15722
# If you have `file' or equivalent on your system and you're not sure
15723
# whether `pass_all' will *always* work, you probably want this one.
15727
lt_cv_deplibs_check_method=pass_all
15731
lt_cv_deplibs_check_method=pass_all
15735
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
15736
lt_cv_file_magic_cmd='/usr/bin/file -L'
15737
lt_cv_file_magic_test_file=/shlib/libc.so
15741
# func_win32_libid is a shell function defined in ltmain.sh
15742
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
15743
lt_cv_file_magic_cmd='func_win32_libid'
15747
# Base MSYS/MinGW do not provide the 'file' command needed by
15748
# func_win32_libid shell function, so use a weaker test based on 'objdump',
15749
# unless we find 'file', for example because we are cross-compiling.
15750
# func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
15751
if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
15752
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
15753
lt_cv_file_magic_cmd='func_win32_libid'
15755
# Keep this pattern in sync with the one in func_win32_libid.
15756
lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
15757
lt_cv_file_magic_cmd='$OBJDUMP -f'
15762
# use the weaker test based on 'objdump'. See mingw*.
15763
lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
15764
lt_cv_file_magic_cmd='$OBJDUMP -f'
15767
darwin* | rhapsody*)
15768
lt_cv_deplibs_check_method=pass_all
15771
freebsd* | dragonfly*)
15772
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
15775
# Not sure whether the presence of OpenBSD here was a mistake.
15776
# Let's accept both of them until this is cleared up.
15777
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
15778
lt_cv_file_magic_cmd=/usr/bin/file
15779
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
15783
lt_cv_deplibs_check_method=pass_all
15788
lt_cv_deplibs_check_method=pass_all
15792
lt_cv_deplibs_check_method=pass_all
15795
hpux10.20* | hpux11*)
15796
lt_cv_file_magic_cmd=/usr/bin/file
15799
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
15800
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
15803
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
15804
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
15807
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
15808
lt_cv_file_magic_test_file=/usr/lib/libc.sl
15814
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
15815
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
15818
irix5* | irix6* | nonstopux*)
15820
*-32|*"-32 ") libmagic=32-bit;;
15821
*-n32|*"-n32 ") libmagic=N32;;
15822
*-64|*"-64 ") libmagic=64-bit;;
15823
*) libmagic=never-match;;
15825
lt_cv_deplibs_check_method=pass_all
15828
# This must be glibc/ELF.
15829
linux* | k*bsd*-gnu | kopensolaris*-gnu)
15830
lt_cv_deplibs_check_method=pass_all
15834
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
15835
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
15837
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
15842
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
15843
lt_cv_file_magic_cmd=/usr/bin/file
15844
lt_cv_file_magic_test_file=/usr/lib/libnls.so
15848
lt_cv_deplibs_check_method=pass_all
15852
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15853
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
15855
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
15859
osf3* | osf4* | osf5*)
15860
lt_cv_deplibs_check_method=pass_all
15864
lt_cv_deplibs_check_method=pass_all
15868
lt_cv_deplibs_check_method=pass_all
15871
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15872
lt_cv_deplibs_check_method=pass_all
15876
case $host_vendor in
15878
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
15879
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
15882
lt_cv_deplibs_check_method=pass_all
15885
lt_cv_file_magic_cmd='/bin/file'
15886
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
15889
lt_cv_file_magic_cmd='/bin/file'
15890
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
15891
lt_cv_file_magic_test_file=/lib/libc.so
15894
lt_cv_deplibs_check_method=pass_all
15897
lt_cv_deplibs_check_method=pass_all
15903
lt_cv_deplibs_check_method=pass_all
15908
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
15909
$as_echo "$lt_cv_deplibs_check_method" >&6; }
15913
if test "$build" = "$host"; then
15916
if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
15917
want_nocaseglob=yes
15919
file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
15925
file_magic_cmd=$lt_cv_file_magic_cmd
15926
deplibs_check_method=$lt_cv_deplibs_check_method
15927
test -z "$deplibs_check_method" && deplibs_check_method=unknown
15950
if test -n "$ac_tool_prefix"; then
15951
# Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
15952
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
15953
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15954
$as_echo_n "checking for $ac_word... " >&6; }
15955
if ${ac_cv_prog_DLLTOOL+:} false; then :
15956
$as_echo_n "(cached) " >&6
15958
if test -n "$DLLTOOL"; then
15959
ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
15961
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15962
for as_dir in $PATH
15965
test -z "$as_dir" && as_dir=.
15966
for ac_exec_ext in '' $ac_executable_extensions; do
15967
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15968
ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
15969
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15978
DLLTOOL=$ac_cv_prog_DLLTOOL
15979
if test -n "$DLLTOOL"; then
15980
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
15981
$as_echo "$DLLTOOL" >&6; }
15983
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15984
$as_echo "no" >&6; }
15989
if test -z "$ac_cv_prog_DLLTOOL"; then
15990
ac_ct_DLLTOOL=$DLLTOOL
15991
# Extract the first word of "dlltool", so it can be a program name with args.
15992
set dummy dlltool; ac_word=$2
15993
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15994
$as_echo_n "checking for $ac_word... " >&6; }
15995
if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
15996
$as_echo_n "(cached) " >&6
15998
if test -n "$ac_ct_DLLTOOL"; then
15999
ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
16001
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16002
for as_dir in $PATH
16005
test -z "$as_dir" && as_dir=.
16006
for ac_exec_ext in '' $ac_executable_extensions; do
16007
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16008
ac_cv_prog_ac_ct_DLLTOOL="dlltool"
16009
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16018
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
16019
if test -n "$ac_ct_DLLTOOL"; then
16020
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
16021
$as_echo "$ac_ct_DLLTOOL" >&6; }
16023
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16024
$as_echo "no" >&6; }
16027
if test "x$ac_ct_DLLTOOL" = x; then
16030
case $cross_compiling:$ac_tool_warned in
16032
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16033
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16034
ac_tool_warned=yes ;;
16036
DLLTOOL=$ac_ct_DLLTOOL
16039
DLLTOOL="$ac_cv_prog_DLLTOOL"
16042
test -z "$DLLTOOL" && DLLTOOL=dlltool
16053
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
16054
$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
16055
if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
16056
$as_echo_n "(cached) " >&6
16058
lt_cv_sharedlib_from_linklib_cmd='unknown'
16061
cygwin* | mingw* | pw32* | cegcc*)
16062
# two different shell functions defined in ltmain.sh
16063
# decide which to use based on capabilities of $DLLTOOL
16064
case `$DLLTOOL --help 2>&1` in
16065
*--identify-strict*)
16066
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
16069
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
16074
# fallback: assume linklib IS sharedlib
16075
lt_cv_sharedlib_from_linklib_cmd="$ECHO"
16080
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
16081
$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
16082
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
16083
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
16091
if test -n "$ac_tool_prefix"; then
16094
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16095
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16096
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16097
$as_echo_n "checking for $ac_word... " >&6; }
16098
if ${ac_cv_prog_AR+:} false; then :
16099
$as_echo_n "(cached) " >&6
16101
if test -n "$AR"; then
16102
ac_cv_prog_AR="$AR" # Let the user override the test.
16104
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16105
for as_dir in $PATH
16108
test -z "$as_dir" && as_dir=.
16109
for ac_exec_ext in '' $ac_executable_extensions; do
16110
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16111
ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
16112
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16122
if test -n "$AR"; then
16123
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
16124
$as_echo "$AR" >&6; }
16126
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16127
$as_echo "no" >&6; }
16131
test -n "$AR" && break
16134
if test -z "$AR"; then
16138
# Extract the first word of "$ac_prog", so it can be a program name with args.
16139
set dummy $ac_prog; ac_word=$2
16140
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16141
$as_echo_n "checking for $ac_word... " >&6; }
16142
if ${ac_cv_prog_ac_ct_AR+:} false; then :
16143
$as_echo_n "(cached) " >&6
16145
if test -n "$ac_ct_AR"; then
16146
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
16148
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16149
for as_dir in $PATH
16152
test -z "$as_dir" && as_dir=.
16153
for ac_exec_ext in '' $ac_executable_extensions; do
16154
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16155
ac_cv_prog_ac_ct_AR="$ac_prog"
16156
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16165
ac_ct_AR=$ac_cv_prog_ac_ct_AR
16166
if test -n "$ac_ct_AR"; then
16167
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
16168
$as_echo "$ac_ct_AR" >&6; }
16170
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16171
$as_echo "no" >&6; }
16175
test -n "$ac_ct_AR" && break
16178
if test "x$ac_ct_AR" = x; then
16181
case $cross_compiling:$ac_tool_warned in
16183
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16184
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16185
ac_tool_warned=yes ;;
16204
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
16205
$as_echo_n "checking for archiver @FILE support... " >&6; }
16206
if ${lt_cv_ar_at_file+:} false; then :
16207
$as_echo_n "(cached) " >&6
16209
lt_cv_ar_at_file=no
16210
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16211
/* end confdefs.h. */
16213
#ifdef F77_DUMMY_MAIN
16215
# ifdef __cplusplus
16218
int F77_DUMMY_MAIN() { return 1; }
16229
if ac_fn_c_try_compile "$LINENO"; then :
16230
echo conftest.$ac_objext > conftest.lst
16231
lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
16232
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
16233
(eval $lt_ar_try) 2>&5
16235
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16236
test $ac_status = 0; }
16237
if test "$ac_status" -eq 0; then
16238
# Ensure the archiver fails upon bogus file names.
16239
rm -f conftest.$ac_objext libconftest.a
16240
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
16241
(eval $lt_ar_try) 2>&5
16243
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16244
test $ac_status = 0; }
16245
if test "$ac_status" -ne 0; then
16249
rm -f conftest.* libconftest.a
16252
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16255
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
16256
$as_echo "$lt_cv_ar_at_file" >&6; }
16258
if test "x$lt_cv_ar_at_file" = xno; then
16259
archiver_list_spec=
16261
archiver_list_spec=$lt_cv_ar_at_file
16270
if test -n "$ac_tool_prefix"; then
16271
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
16272
set dummy ${ac_tool_prefix}strip; ac_word=$2
16273
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16274
$as_echo_n "checking for $ac_word... " >&6; }
16275
if ${ac_cv_prog_STRIP+:} false; then :
16276
$as_echo_n "(cached) " >&6
16278
if test -n "$STRIP"; then
16279
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
16281
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16282
for as_dir in $PATH
16285
test -z "$as_dir" && as_dir=.
16286
for ac_exec_ext in '' $ac_executable_extensions; do
16287
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16288
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
16289
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16298
STRIP=$ac_cv_prog_STRIP
16299
if test -n "$STRIP"; then
16300
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
16301
$as_echo "$STRIP" >&6; }
16303
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16304
$as_echo "no" >&6; }
16309
if test -z "$ac_cv_prog_STRIP"; then
16311
# Extract the first word of "strip", so it can be a program name with args.
16312
set dummy strip; ac_word=$2
16313
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16314
$as_echo_n "checking for $ac_word... " >&6; }
16315
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
16316
$as_echo_n "(cached) " >&6
16318
if test -n "$ac_ct_STRIP"; then
16319
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
16321
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16322
for as_dir in $PATH
16325
test -z "$as_dir" && as_dir=.
16326
for ac_exec_ext in '' $ac_executable_extensions; do
16327
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16328
ac_cv_prog_ac_ct_STRIP="strip"
16329
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16338
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
16339
if test -n "$ac_ct_STRIP"; then
16340
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
16341
$as_echo "$ac_ct_STRIP" >&6; }
16343
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16344
$as_echo "no" >&6; }
16347
if test "x$ac_ct_STRIP" = x; then
16350
case $cross_compiling:$ac_tool_warned in
16352
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16353
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16354
ac_tool_warned=yes ;;
16359
STRIP="$ac_cv_prog_STRIP"
16362
test -z "$STRIP" && STRIP=:
16369
if test -n "$ac_tool_prefix"; then
16370
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
16371
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
16372
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16373
$as_echo_n "checking for $ac_word... " >&6; }
16374
if ${ac_cv_prog_RANLIB+:} false; then :
16375
$as_echo_n "(cached) " >&6
16377
if test -n "$RANLIB"; then
16378
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
16380
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16381
for as_dir in $PATH
16384
test -z "$as_dir" && as_dir=.
16385
for ac_exec_ext in '' $ac_executable_extensions; do
16386
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16387
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
16388
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16397
RANLIB=$ac_cv_prog_RANLIB
16398
if test -n "$RANLIB"; then
16399
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
16400
$as_echo "$RANLIB" >&6; }
16402
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16403
$as_echo "no" >&6; }
16408
if test -z "$ac_cv_prog_RANLIB"; then
16409
ac_ct_RANLIB=$RANLIB
16410
# Extract the first word of "ranlib", so it can be a program name with args.
16411
set dummy ranlib; ac_word=$2
16412
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16413
$as_echo_n "checking for $ac_word... " >&6; }
16414
if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
16415
$as_echo_n "(cached) " >&6
16417
if test -n "$ac_ct_RANLIB"; then
16418
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
16420
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16421
for as_dir in $PATH
16424
test -z "$as_dir" && as_dir=.
16425
for ac_exec_ext in '' $ac_executable_extensions; do
16426
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16427
ac_cv_prog_ac_ct_RANLIB="ranlib"
16428
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16437
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
16438
if test -n "$ac_ct_RANLIB"; then
16439
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
16440
$as_echo "$ac_ct_RANLIB" >&6; }
16442
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16443
$as_echo "no" >&6; }
16446
if test "x$ac_ct_RANLIB" = x; then
16449
case $cross_compiling:$ac_tool_warned in
16451
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16452
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16453
ac_tool_warned=yes ;;
16455
RANLIB=$ac_ct_RANLIB
16458
RANLIB="$ac_cv_prog_RANLIB"
16461
test -z "$RANLIB" && RANLIB=:
16468
# Determine commands to create old-style static archives.
16469
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
16470
old_postinstall_cmds='chmod 644 $oldlib'
16471
old_postuninstall_cmds=
16473
if test -n "$RANLIB"; then
16476
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
16479
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
16482
old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
16487
lock_old_archive_extraction=yes ;;
16489
lock_old_archive_extraction=no ;;
16530
# If no C compiler was specified, use CC.
16533
# If no C compiler flags were specified, use CFLAGS.
16534
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16536
# Allow CC to be a program name with arguments.
16540
# Check for command to grab the raw symbol name followed by C symbol from nm.
16541
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
16542
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
16543
if ${lt_cv_sys_global_symbol_pipe+:} false; then :
16544
$as_echo_n "(cached) " >&6
16547
# These are sane defaults that work on at least a few old systems.
16548
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
16550
# Character class describing NM global symbol codes.
16551
symcode='[BCDEGRST]'
16553
# Regexp to match symbols that can be accessed directly from C.
16554
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
16556
# Define system-specific variables.
16561
cygwin* | mingw* | pw32* | cegcc*)
16562
symcode='[ABCDGISTW]'
16565
if test "$host_cpu" = ia64; then
16566
symcode='[ABCDEGRST]'
16569
irix* | nonstopux*)
16570
symcode='[BCDEGRST]'
16573
symcode='[BCDEGQRST]'
16584
sysv5* | sco5v6* | unixware* | OpenUNIX*)
16592
# If we're using GNU nm, then use its standard symbol codes.
16593
case `$NM -V 2>&1` in
16594
*GNU* | *'with BFD'*)
16595
symcode='[ABCDGIRSTW]' ;;
16598
# Transform an extracted symbol line into a proper C declaration.
16599
# Some systems (esp. on ia64) link data and code symbols differently,
16600
# so use this general approach.
16601
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
16603
# Transform an extracted symbol line into symbol name and symbol address
16604
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
16605
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
16607
# Handle CRLF in mingw tool chain
16611
opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
16615
# Try without a prefix underscore, then with it.
16616
for ac_symprfx in "" "_"; do
16618
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
16619
symxfrm="\\1 $ac_symprfx\\2 \\2"
16621
# Write the raw and C identifiers.
16622
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
16623
# Fake it for dumpbin and say T for any non-static function
16624
# and D for any global variable.
16625
# Also find C++ and __fastcall symbols from MSVC++,
16626
# which start with @ or ?.
16627
lt_cv_sys_global_symbol_pipe="$AWK '"\
16628
" {last_section=section; section=\$ 3};"\
16629
" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
16630
" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
16631
" \$ 0!~/External *\|/{next};"\
16632
" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
16633
" {if(hide[section]) next};"\
16634
" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
16635
" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
16636
" s[1]~/^[@?]/{print s[1], s[1]; next};"\
16637
" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
16638
" ' prfx=^$ac_symprfx"
16640
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
16642
lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
16644
# Check to see that the pipe works correctly.
16648
cat > conftest.$ac_ext <<_LT_EOF
16653
void nm_test_func(void);
16654
void nm_test_func(void){}
16658
int main(){nm_test_var='a';nm_test_func();return(0);}
16661
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16662
(eval $ac_compile) 2>&5
16664
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16665
test $ac_status = 0; }; then
16666
# Now try to grab the symbols.
16668
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
16669
(eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
16671
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16672
test $ac_status = 0; } && test -s "$nlist"; then
16673
# Try sorting and uniquifying the output.
16674
if sort "$nlist" | uniq > "$nlist"T; then
16675
mv -f "$nlist"T "$nlist"
16680
# Make sure that we snagged all the symbols we need.
16681
if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
16682
if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
16683
cat <<_LT_EOF > conftest.$ac_ext
16684
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
16685
#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
16686
/* DATA imports from DLLs on WIN32 con't be const, because runtime
16687
relocations are performed -- see ld's documentation on pseudo-relocs. */
16688
# define LT_DLSYM_CONST
16689
#elif defined(__osf__)
16690
/* This system does not cope well with relocations in const data. */
16691
# define LT_DLSYM_CONST
16693
# define LT_DLSYM_CONST const
16701
# Now generate the symbol file.
16702
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
16704
cat <<_LT_EOF >> conftest.$ac_ext
16706
/* The mapping between symbol names and symbols. */
16707
LT_DLSYM_CONST struct {
16711
lt__PROGRAM__LTX_preloaded_symbols[] =
16713
{ "@PROGRAM@", (void *) 0 },
16715
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
16716
cat <<\_LT_EOF >> conftest.$ac_ext
16720
/* This works around a problem in FreeBSD linker */
16721
#ifdef FREEBSD_WORKAROUND
16722
static const void *lt_preloaded_setup() {
16723
return lt__PROGRAM__LTX_preloaded_symbols;
16731
# Now try linking the two files.
16732
mv conftest.$ac_objext conftstm.$ac_objext
16733
lt_globsym_save_LIBS=$LIBS
16734
lt_globsym_save_CFLAGS=$CFLAGS
16735
LIBS="conftstm.$ac_objext"
16736
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
16737
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16738
(eval $ac_link) 2>&5
16740
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16741
test $ac_status = 0; } && test -s conftest${ac_exeext}; then
16744
LIBS=$lt_globsym_save_LIBS
16745
CFLAGS=$lt_globsym_save_CFLAGS
16747
echo "cannot find nm_test_func in $nlist" >&5
16750
echo "cannot find nm_test_var in $nlist" >&5
16753
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
16756
echo "$progname: failed program was:" >&5
16757
cat conftest.$ac_ext >&5
16759
rm -rf conftest* conftst*
16761
# Do not use the global_symbol_pipe unless it works.
16762
if test "$pipe_works" = yes; then
16765
lt_cv_sys_global_symbol_pipe=
16771
if test -z "$lt_cv_sys_global_symbol_pipe"; then
16772
lt_cv_sys_global_symbol_to_cdecl=
16774
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
16775
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
16776
$as_echo "failed" >&6; }
16778
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
16779
$as_echo "ok" >&6; }
16782
# Response file support.
16783
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
16784
nm_file_list_spec='@'
16785
elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
16786
nm_file_list_spec='@'
16815
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
16816
$as_echo_n "checking for sysroot... " >&6; }
16818
# Check whether --with-sysroot was given.
16819
if test "${with_sysroot+set}" = set; then :
16820
withval=$with_sysroot;
16827
case ${with_sysroot} in #(
16829
if test "$GCC" = yes; then
16830
lt_sysroot=`$CC --print-sysroot 2>/dev/null`
16834
lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
16839
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
16840
$as_echo "${with_sysroot}" >&6; }
16841
as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
16845
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
16846
$as_echo "${lt_sysroot:-no}" >&6; }
16852
# Check whether --enable-libtool-lock was given.
16853
if test "${enable_libtool_lock+set}" = set; then :
16854
enableval=$enable_libtool_lock;
16857
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
16859
# Some flags need to be propagated to the compiler or linker for good
16863
# Find out which ABI we are using.
16864
echo 'int i;' > conftest.$ac_ext
16865
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16866
(eval $ac_compile) 2>&5
16868
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16869
test $ac_status = 0; }; then
16870
case `/usr/bin/file conftest.$ac_objext` in
16872
HPUX_IA64_MODE="32"
16875
HPUX_IA64_MODE="64"
16882
# Find out which ABI we are using.
16883
echo '#line '$LINENO' "configure"' > conftest.$ac_ext
16884
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16885
(eval $ac_compile) 2>&5
16887
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16888
test $ac_status = 0; }; then
16889
if test "$lt_cv_prog_gnu_ld" = yes; then
16890
case `/usr/bin/file conftest.$ac_objext` in
16892
LD="${LD-ld} -melf32bsmip"
16895
LD="${LD-ld} -melf32bmipn32"
16898
LD="${LD-ld} -melf64bmip"
16902
case `/usr/bin/file conftest.$ac_objext` in
16918
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
16919
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
16920
# Find out which ABI we are using.
16921
echo 'int i;' > conftest.$ac_ext
16922
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16923
(eval $ac_compile) 2>&5
16925
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16926
test $ac_status = 0; }; then
16927
case `/usr/bin/file conftest.o` in
16930
x86_64-*kfreebsd*-gnu)
16931
LD="${LD-ld} -m elf_i386_fbsd"
16934
LD="${LD-ld} -m elf_i386"
16936
ppc64-*linux*|powerpc64-*linux*)
16937
LD="${LD-ld} -m elf32ppclinux"
16940
LD="${LD-ld} -m elf_s390"
16943
LD="${LD-ld} -m elf32_sparc"
16949
x86_64-*kfreebsd*-gnu)
16950
LD="${LD-ld} -m elf_x86_64_fbsd"
16953
LD="${LD-ld} -m elf_x86_64"
16955
ppc*-*linux*|powerpc*-*linux*)
16956
LD="${LD-ld} -m elf64ppc"
16958
s390*-*linux*|s390*-*tpf*)
16959
LD="${LD-ld} -m elf64_s390"
16962
LD="${LD-ld} -m elf64_sparc"
16972
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
16973
SAVE_CFLAGS="$CFLAGS"
16974
CFLAGS="$CFLAGS -belf"
16975
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
16976
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
16977
if ${lt_cv_cc_needs_belf+:} false; then :
16978
$as_echo_n "(cached) " >&6
16981
ac_cpp='$CPP $CPPFLAGS'
16982
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16983
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16984
ac_compiler_gnu=$ac_cv_c_compiler_gnu
16986
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16987
/* end confdefs.h. */
16989
#ifdef F77_DUMMY_MAIN
16991
# ifdef __cplusplus
16994
int F77_DUMMY_MAIN() { return 1; }
17005
if ac_fn_c_try_link "$LINENO"; then :
17006
lt_cv_cc_needs_belf=yes
17008
lt_cv_cc_needs_belf=no
17010
rm -f core conftest.err conftest.$ac_objext \
17011
conftest$ac_exeext conftest.$ac_ext
17013
ac_cpp='$CPP $CPPFLAGS'
17014
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17015
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17016
ac_compiler_gnu=$ac_cv_c_compiler_gnu
17019
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
17020
$as_echo "$lt_cv_cc_needs_belf" >&6; }
17021
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
17022
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
17023
CFLAGS="$SAVE_CFLAGS"
17027
# Find out which ABI we are using.
17028
echo 'int i;' > conftest.$ac_ext
17029
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17030
(eval $ac_compile) 2>&5
17032
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17033
test $ac_status = 0; }; then
17034
case `/usr/bin/file conftest.o` in
17036
case $lt_cv_prog_gnu_ld in
17040
LD="${LD-ld} -m elf_x86_64"
17043
LD="${LD-ld} -m elf64_sparc"
17046
# GNU ld 2.21 introduced _sol2 emulations. Use them if available.
17047
if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
17052
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
17064
need_locks="$enable_libtool_lock"
17066
if test -n "$ac_tool_prefix"; then
17067
# Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
17068
set dummy ${ac_tool_prefix}mt; ac_word=$2
17069
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17070
$as_echo_n "checking for $ac_word... " >&6; }
17071
if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
17072
$as_echo_n "(cached) " >&6
17074
if test -n "$MANIFEST_TOOL"; then
17075
ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
17077
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17078
for as_dir in $PATH
17081
test -z "$as_dir" && as_dir=.
17082
for ac_exec_ext in '' $ac_executable_extensions; do
17083
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17084
ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
17085
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17094
MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
17095
if test -n "$MANIFEST_TOOL"; then
17096
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
17097
$as_echo "$MANIFEST_TOOL" >&6; }
17099
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17100
$as_echo "no" >&6; }
17105
if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
17106
ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
17107
# Extract the first word of "mt", so it can be a program name with args.
17108
set dummy mt; ac_word=$2
17109
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17110
$as_echo_n "checking for $ac_word... " >&6; }
17111
if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
17112
$as_echo_n "(cached) " >&6
17114
if test -n "$ac_ct_MANIFEST_TOOL"; then
17115
ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
17117
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17118
for as_dir in $PATH
17121
test -z "$as_dir" && as_dir=.
17122
for ac_exec_ext in '' $ac_executable_extensions; do
17123
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17124
ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
17125
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17134
ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
17135
if test -n "$ac_ct_MANIFEST_TOOL"; then
17136
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
17137
$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
17139
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17140
$as_echo "no" >&6; }
17143
if test "x$ac_ct_MANIFEST_TOOL" = x; then
17146
case $cross_compiling:$ac_tool_warned in
17148
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17149
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17150
ac_tool_warned=yes ;;
17152
MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
17155
MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
17158
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
17159
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
17160
$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
17161
if ${lt_cv_path_mainfest_tool+:} false; then :
17162
$as_echo_n "(cached) " >&6
17164
lt_cv_path_mainfest_tool=no
17165
echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
17166
$MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
17167
cat conftest.err >&5
17168
if $GREP 'Manifest Tool' conftest.out > /dev/null; then
17169
lt_cv_path_mainfest_tool=yes
17173
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
17174
$as_echo "$lt_cv_path_mainfest_tool" >&6; }
17175
if test "x$lt_cv_path_mainfest_tool" != xyes; then
17185
rhapsody* | darwin*)
17186
if test -n "$ac_tool_prefix"; then
17187
# Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
17188
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
17189
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17190
$as_echo_n "checking for $ac_word... " >&6; }
17191
if ${ac_cv_prog_DSYMUTIL+:} false; then :
17192
$as_echo_n "(cached) " >&6
17194
if test -n "$DSYMUTIL"; then
17195
ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
17197
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17198
for as_dir in $PATH
17201
test -z "$as_dir" && as_dir=.
17202
for ac_exec_ext in '' $ac_executable_extensions; do
17203
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17204
ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
17205
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17214
DSYMUTIL=$ac_cv_prog_DSYMUTIL
17215
if test -n "$DSYMUTIL"; then
17216
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
17217
$as_echo "$DSYMUTIL" >&6; }
17219
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17220
$as_echo "no" >&6; }
17225
if test -z "$ac_cv_prog_DSYMUTIL"; then
17226
ac_ct_DSYMUTIL=$DSYMUTIL
17227
# Extract the first word of "dsymutil", so it can be a program name with args.
17228
set dummy dsymutil; ac_word=$2
17229
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17230
$as_echo_n "checking for $ac_word... " >&6; }
17231
if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
17232
$as_echo_n "(cached) " >&6
17234
if test -n "$ac_ct_DSYMUTIL"; then
17235
ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
17237
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17238
for as_dir in $PATH
17241
test -z "$as_dir" && as_dir=.
17242
for ac_exec_ext in '' $ac_executable_extensions; do
17243
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17244
ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
17245
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17254
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
17255
if test -n "$ac_ct_DSYMUTIL"; then
17256
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
17257
$as_echo "$ac_ct_DSYMUTIL" >&6; }
17259
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17260
$as_echo "no" >&6; }
17263
if test "x$ac_ct_DSYMUTIL" = x; then
17266
case $cross_compiling:$ac_tool_warned in
17268
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17269
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17270
ac_tool_warned=yes ;;
17272
DSYMUTIL=$ac_ct_DSYMUTIL
17275
DSYMUTIL="$ac_cv_prog_DSYMUTIL"
17278
if test -n "$ac_tool_prefix"; then
17279
# Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
17280
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
17281
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17282
$as_echo_n "checking for $ac_word... " >&6; }
17283
if ${ac_cv_prog_NMEDIT+:} false; then :
17284
$as_echo_n "(cached) " >&6
17286
if test -n "$NMEDIT"; then
17287
ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
17289
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17290
for as_dir in $PATH
17293
test -z "$as_dir" && as_dir=.
17294
for ac_exec_ext in '' $ac_executable_extensions; do
17295
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17296
ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
17297
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17306
NMEDIT=$ac_cv_prog_NMEDIT
17307
if test -n "$NMEDIT"; then
17308
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
17309
$as_echo "$NMEDIT" >&6; }
17311
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17312
$as_echo "no" >&6; }
17317
if test -z "$ac_cv_prog_NMEDIT"; then
17318
ac_ct_NMEDIT=$NMEDIT
17319
# Extract the first word of "nmedit", so it can be a program name with args.
17320
set dummy nmedit; ac_word=$2
17321
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17322
$as_echo_n "checking for $ac_word... " >&6; }
17323
if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
17324
$as_echo_n "(cached) " >&6
17326
if test -n "$ac_ct_NMEDIT"; then
17327
ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
17329
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17330
for as_dir in $PATH
17333
test -z "$as_dir" && as_dir=.
17334
for ac_exec_ext in '' $ac_executable_extensions; do
17335
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17336
ac_cv_prog_ac_ct_NMEDIT="nmedit"
17337
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17346
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
17347
if test -n "$ac_ct_NMEDIT"; then
17348
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
17349
$as_echo "$ac_ct_NMEDIT" >&6; }
17351
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17352
$as_echo "no" >&6; }
17355
if test "x$ac_ct_NMEDIT" = x; then
17358
case $cross_compiling:$ac_tool_warned in
17360
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17361
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17362
ac_tool_warned=yes ;;
17364
NMEDIT=$ac_ct_NMEDIT
17367
NMEDIT="$ac_cv_prog_NMEDIT"
17370
if test -n "$ac_tool_prefix"; then
17371
# Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
17372
set dummy ${ac_tool_prefix}lipo; ac_word=$2
17373
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17374
$as_echo_n "checking for $ac_word... " >&6; }
17375
if ${ac_cv_prog_LIPO+:} false; then :
17376
$as_echo_n "(cached) " >&6
17378
if test -n "$LIPO"; then
17379
ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
17381
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17382
for as_dir in $PATH
17385
test -z "$as_dir" && as_dir=.
17386
for ac_exec_ext in '' $ac_executable_extensions; do
17387
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17388
ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
17389
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17398
LIPO=$ac_cv_prog_LIPO
17399
if test -n "$LIPO"; then
17400
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
17401
$as_echo "$LIPO" >&6; }
17403
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17404
$as_echo "no" >&6; }
17409
if test -z "$ac_cv_prog_LIPO"; then
17411
# Extract the first word of "lipo", so it can be a program name with args.
17412
set dummy lipo; ac_word=$2
17413
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17414
$as_echo_n "checking for $ac_word... " >&6; }
17415
if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
17416
$as_echo_n "(cached) " >&6
17418
if test -n "$ac_ct_LIPO"; then
17419
ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
17421
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17422
for as_dir in $PATH
17425
test -z "$as_dir" && as_dir=.
17426
for ac_exec_ext in '' $ac_executable_extensions; do
17427
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17428
ac_cv_prog_ac_ct_LIPO="lipo"
17429
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17438
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
17439
if test -n "$ac_ct_LIPO"; then
17440
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
17441
$as_echo "$ac_ct_LIPO" >&6; }
17443
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17444
$as_echo "no" >&6; }
17447
if test "x$ac_ct_LIPO" = x; then
17450
case $cross_compiling:$ac_tool_warned in
17452
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17453
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17454
ac_tool_warned=yes ;;
17459
LIPO="$ac_cv_prog_LIPO"
17462
if test -n "$ac_tool_prefix"; then
17463
# Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
17464
set dummy ${ac_tool_prefix}otool; ac_word=$2
17465
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17466
$as_echo_n "checking for $ac_word... " >&6; }
17467
if ${ac_cv_prog_OTOOL+:} false; then :
17468
$as_echo_n "(cached) " >&6
17470
if test -n "$OTOOL"; then
17471
ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
17473
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17474
for as_dir in $PATH
17477
test -z "$as_dir" && as_dir=.
17478
for ac_exec_ext in '' $ac_executable_extensions; do
17479
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17480
ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
17481
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17490
OTOOL=$ac_cv_prog_OTOOL
17491
if test -n "$OTOOL"; then
17492
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
17493
$as_echo "$OTOOL" >&6; }
17495
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17496
$as_echo "no" >&6; }
17501
if test -z "$ac_cv_prog_OTOOL"; then
17503
# Extract the first word of "otool", so it can be a program name with args.
17504
set dummy otool; ac_word=$2
17505
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17506
$as_echo_n "checking for $ac_word... " >&6; }
17507
if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
17508
$as_echo_n "(cached) " >&6
17510
if test -n "$ac_ct_OTOOL"; then
17511
ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
17513
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17514
for as_dir in $PATH
17517
test -z "$as_dir" && as_dir=.
17518
for ac_exec_ext in '' $ac_executable_extensions; do
17519
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17520
ac_cv_prog_ac_ct_OTOOL="otool"
17521
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17530
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
17531
if test -n "$ac_ct_OTOOL"; then
17532
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
17533
$as_echo "$ac_ct_OTOOL" >&6; }
17535
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17536
$as_echo "no" >&6; }
17539
if test "x$ac_ct_OTOOL" = x; then
17542
case $cross_compiling:$ac_tool_warned in
17544
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17545
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17546
ac_tool_warned=yes ;;
17551
OTOOL="$ac_cv_prog_OTOOL"
17554
if test -n "$ac_tool_prefix"; then
17555
# Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
17556
set dummy ${ac_tool_prefix}otool64; ac_word=$2
17557
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17558
$as_echo_n "checking for $ac_word... " >&6; }
17559
if ${ac_cv_prog_OTOOL64+:} false; then :
17560
$as_echo_n "(cached) " >&6
17562
if test -n "$OTOOL64"; then
17563
ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
17565
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17566
for as_dir in $PATH
17569
test -z "$as_dir" && as_dir=.
17570
for ac_exec_ext in '' $ac_executable_extensions; do
17571
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17572
ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
17573
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17582
OTOOL64=$ac_cv_prog_OTOOL64
17583
if test -n "$OTOOL64"; then
17584
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
17585
$as_echo "$OTOOL64" >&6; }
17587
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17588
$as_echo "no" >&6; }
17593
if test -z "$ac_cv_prog_OTOOL64"; then
17594
ac_ct_OTOOL64=$OTOOL64
17595
# Extract the first word of "otool64", so it can be a program name with args.
17596
set dummy otool64; ac_word=$2
17597
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17598
$as_echo_n "checking for $ac_word... " >&6; }
17599
if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
17600
$as_echo_n "(cached) " >&6
17602
if test -n "$ac_ct_OTOOL64"; then
17603
ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
17605
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17606
for as_dir in $PATH
17609
test -z "$as_dir" && as_dir=.
17610
for ac_exec_ext in '' $ac_executable_extensions; do
17611
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17612
ac_cv_prog_ac_ct_OTOOL64="otool64"
17613
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17622
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
17623
if test -n "$ac_ct_OTOOL64"; then
17624
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
17625
$as_echo "$ac_ct_OTOOL64" >&6; }
17627
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17628
$as_echo "no" >&6; }
17631
if test "x$ac_ct_OTOOL64" = x; then
17634
case $cross_compiling:$ac_tool_warned in
17636
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17637
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17638
ac_tool_warned=yes ;;
17640
OTOOL64=$ac_ct_OTOOL64
17643
OTOOL64="$ac_cv_prog_OTOOL64"
17672
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
17673
$as_echo_n "checking for -single_module linker flag... " >&6; }
17674
if ${lt_cv_apple_cc_single_mod+:} false; then :
17675
$as_echo_n "(cached) " >&6
17677
lt_cv_apple_cc_single_mod=no
17678
if test -z "${LT_MULTI_MODULE}"; then
17679
# By default we will add the -single_module flag. You can override
17680
# by either setting the environment variable LT_MULTI_MODULE
17681
# non-empty at configure time, or by adding -multi_module to the
17683
rm -rf libconftest.dylib*
17684
echo "int foo(void){return 1;}" > conftest.c
17685
echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
17686
-dynamiclib -Wl,-single_module conftest.c" >&5
17687
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
17688
-dynamiclib -Wl,-single_module conftest.c 2>conftest.err
17690
# If there is a non-empty error log, and "single_module"
17691
# appears in it, assume the flag caused a linker warning
17692
if test -s conftest.err && $GREP single_module conftest.err; then
17693
cat conftest.err >&5
17694
# Otherwise, if the output was created with a 0 exit code from
17695
# the compiler, it worked.
17696
elif test -f libconftest.dylib && test $_lt_result -eq 0; then
17697
lt_cv_apple_cc_single_mod=yes
17699
cat conftest.err >&5
17701
rm -rf libconftest.dylib*
17705
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
17706
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
17708
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
17709
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
17710
if ${lt_cv_ld_exported_symbols_list+:} false; then :
17711
$as_echo_n "(cached) " >&6
17713
lt_cv_ld_exported_symbols_list=no
17714
save_LDFLAGS=$LDFLAGS
17715
echo "_main" > conftest.sym
17716
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
17717
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17718
/* end confdefs.h. */
17720
#ifdef F77_DUMMY_MAIN
17722
# ifdef __cplusplus
17725
int F77_DUMMY_MAIN() { return 1; }
17736
if ac_fn_c_try_link "$LINENO"; then :
17737
lt_cv_ld_exported_symbols_list=yes
17739
lt_cv_ld_exported_symbols_list=no
17741
rm -f core conftest.err conftest.$ac_objext \
17742
conftest$ac_exeext conftest.$ac_ext
17743
LDFLAGS="$save_LDFLAGS"
17746
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
17747
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
17749
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
17750
$as_echo_n "checking for -force_load linker flag... " >&6; }
17751
if ${lt_cv_ld_force_load+:} false; then :
17752
$as_echo_n "(cached) " >&6
17754
lt_cv_ld_force_load=no
17755
cat > conftest.c << _LT_EOF
17756
int forced_loaded() { return 2;}
17758
echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
17759
$LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
17760
echo "$AR cru libconftest.a conftest.o" >&5
17761
$AR cru libconftest.a conftest.o 2>&5
17762
echo "$RANLIB libconftest.a" >&5
17763
$RANLIB libconftest.a 2>&5
17764
cat > conftest.c << _LT_EOF
17765
int main() { return 0;}
17767
echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
17768
$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
17770
if test -s conftest.err && $GREP force_load conftest.err; then
17771
cat conftest.err >&5
17772
elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
17773
lt_cv_ld_force_load=yes
17775
cat conftest.err >&5
17777
rm -f conftest.err libconftest.a conftest conftest.c
17778
rm -rf conftest.dSYM
17781
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
17782
$as_echo "$lt_cv_ld_force_load" >&6; }
17784
rhapsody* | darwin1.[012])
17785
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
17787
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
17788
darwin*) # darwin 5.x on
17789
# if running on 10.5 or later, the deployment target defaults
17790
# to the OS version, if on x86, and 10.4, the deployment
17791
# target defaults to 10.4. Don't you love it?
17792
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
17793
10.0,*86*-darwin8*|10.0,*-darwin[91]*)
17794
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
17796
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
17798
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
17802
if test "$lt_cv_apple_cc_single_mod" = "yes"; then
17803
_lt_dar_single_mod='$single_module'
17805
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
17806
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
17808
_lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
17810
if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
17811
_lt_dsymutil='~$DSYMUTIL $lib || :'
17818
for ac_header in dlfcn.h
17820
ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
17822
if test "x$ac_cv_header_dlfcn_h" = xyes; then :
17823
cat >>confdefs.h <<_ACEOF
17824
#define HAVE_DLFCN_H 1
17833
func_stripname_cnf ()
17836
.*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17837
*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17839
} # func_stripname_cnf
17846
# Check whether --enable-shared was given.
17847
if test "${enable_shared+set}" = set; then :
17848
enableval=$enable_shared; p=${PACKAGE-default}
17850
yes) enable_shared=yes ;;
17851
no) enable_shared=no ;;
17854
# Look at the argument we got. We use all the common list separators.
17855
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17856
for pkg in $enableval; do
17858
if test "X$pkg" = "X$p"; then
17881
enable_win32_dll=no
17885
# Check whether --enable-static was given.
17886
if test "${enable_static+set}" = set; then :
17887
enableval=$enable_static; p=${PACKAGE-default}
17889
yes) enable_static=yes ;;
17890
no) enable_static=no ;;
17893
# Look at the argument we got. We use all the common list separators.
17894
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17895
for pkg in $enableval; do
17897
if test "X$pkg" = "X$p"; then
17917
# Check whether --with-pic was given.
17918
if test "${with_pic+set}" = set; then :
17919
withval=$with_pic; lt_p=${PACKAGE-default}
17921
yes|no) pic_mode=$withval ;;
17924
# Look at the argument we got. We use all the common list separators.
17925
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17926
for lt_pkg in $withval; do
17928
if test "X$lt_pkg" = "X$lt_p"; then
17940
test -z "$pic_mode" && pic_mode=default
17948
# Check whether --enable-fast-install was given.
17949
if test "${enable_fast_install+set}" = set; then :
17950
enableval=$enable_fast_install; p=${PACKAGE-default}
17952
yes) enable_fast_install=yes ;;
17953
no) enable_fast_install=no ;;
17955
enable_fast_install=no
17956
# Look at the argument we got. We use all the common list separators.
17957
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17958
for pkg in $enableval; do
17960
if test "X$pkg" = "X$p"; then
17961
enable_fast_install=yes
17968
enable_fast_install=yes
17981
# This can be used to rebuild libtool when needed
17982
LIBTOOL_DEPS="$ltmain"
17984
# Always use our own libtool.
17985
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18016
test -z "$LN_S" && LN_S="ln -s"
18031
if test -n "${ZSH_VERSION+set}" ; then
18032
setopt NO_GLOB_SUBST
18035
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
18036
$as_echo_n "checking for objdir... " >&6; }
18037
if ${lt_cv_objdir+:} false; then :
18038
$as_echo_n "(cached) " >&6
18040
rm -f .libs 2>/dev/null
18041
mkdir .libs 2>/dev/null
18042
if test -d .libs; then
18045
# MS-DOS does not allow filenames that begin with a dot.
18048
rmdir .libs 2>/dev/null
18050
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
18051
$as_echo "$lt_cv_objdir" >&6; }
18052
objdir=$lt_cv_objdir
18058
cat >>confdefs.h <<_ACEOF
18059
#define LT_OBJDIR "$lt_cv_objdir/"
18067
# AIX sometimes has problems with the GCC collect2 program. For some
18068
# reason, if we set the COLLECT_NAMES environment variable, the problems
18069
# vanish in a puff of smoke.
18070
if test "X${COLLECT_NAMES+set}" != Xset; then
18072
export COLLECT_NAMES
18077
# Global variables:
18079
can_build_shared=yes
18081
# All known linkers require a `.a' archive for static linking (except MSVC,
18082
# which needs '.lib').
18085
with_gnu_ld="$lt_cv_prog_gnu_ld"
18088
old_CFLAGS="$CFLAGS"
18090
# Set sane defaults for various variables
18091
test -z "$CC" && CC=cc
18092
test -z "$LTCC" && LTCC=$CC
18093
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
18094
test -z "$LD" && LD=ld
18095
test -z "$ac_objext" && ac_objext=o
18097
for cc_temp in $compiler""; do
18099
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18100
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18105
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18108
# Only perform the check for file, if the check method requires it
18109
test -z "$MAGIC_CMD" && MAGIC_CMD=file
18110
case $deplibs_check_method in
18112
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
18113
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
18114
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
18115
if ${lt_cv_path_MAGIC_CMD+:} false; then :
18116
$as_echo_n "(cached) " >&6
18120
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
18123
lt_save_MAGIC_CMD="$MAGIC_CMD"
18124
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18125
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
18126
for ac_dir in $ac_dummy; do
18128
test -z "$ac_dir" && ac_dir=.
18129
if test -f $ac_dir/${ac_tool_prefix}file; then
18130
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
18131
if test -n "$file_magic_test_file"; then
18132
case $deplibs_check_method in
18134
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
18135
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
18136
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
18137
$EGREP "$file_magic_regex" > /dev/null; then
18142
*** Warning: the command libtool uses to detect shared libraries,
18143
*** $file_magic_cmd, produces output that libtool cannot recognize.
18144
*** The result is that libtool may fail to recognize shared libraries
18145
*** as such. This will affect the creation of libtool libraries that
18146
*** depend on shared libraries, but programs linked with such libtool
18147
*** libraries will work regardless of this problem. Nevertheless, you
18148
*** may want to report the problem to your system manager and/or to
18149
*** bug-libtool@gnu.org
18159
MAGIC_CMD="$lt_save_MAGIC_CMD"
18164
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
18165
if test -n "$MAGIC_CMD"; then
18166
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
18167
$as_echo "$MAGIC_CMD" >&6; }
18169
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18170
$as_echo "no" >&6; }
18177
if test -z "$lt_cv_path_MAGIC_CMD"; then
18178
if test -n "$ac_tool_prefix"; then
18179
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
18180
$as_echo_n "checking for file... " >&6; }
18181
if ${lt_cv_path_MAGIC_CMD+:} false; then :
18182
$as_echo_n "(cached) " >&6
18186
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
18189
lt_save_MAGIC_CMD="$MAGIC_CMD"
18190
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18191
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
18192
for ac_dir in $ac_dummy; do
18194
test -z "$ac_dir" && ac_dir=.
18195
if test -f $ac_dir/file; then
18196
lt_cv_path_MAGIC_CMD="$ac_dir/file"
18197
if test -n "$file_magic_test_file"; then
18198
case $deplibs_check_method in
18200
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
18201
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
18202
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
18203
$EGREP "$file_magic_regex" > /dev/null; then
18208
*** Warning: the command libtool uses to detect shared libraries,
18209
*** $file_magic_cmd, produces output that libtool cannot recognize.
18210
*** The result is that libtool may fail to recognize shared libraries
18211
*** as such. This will affect the creation of libtool libraries that
18212
*** depend on shared libraries, but programs linked with such libtool
18213
*** libraries will work regardless of this problem. Nevertheless, you
18214
*** may want to report the problem to your system manager and/or to
18215
*** bug-libtool@gnu.org
18225
MAGIC_CMD="$lt_save_MAGIC_CMD"
18230
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
18231
if test -n "$MAGIC_CMD"; then
18232
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
18233
$as_echo "$MAGIC_CMD" >&6; }
18235
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18236
$as_echo "no" >&6; }
18249
# Use C for the default configuration in the libtool script
18253
ac_cpp='$CPP $CPPFLAGS'
18254
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18255
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18256
ac_compiler_gnu=$ac_cv_c_compiler_gnu
18259
# Source file extension for C test sources.
18262
# Object file extension for compiled C test sources.
18266
# Code to be used in simple compile tests
18267
lt_simple_compile_test_code="int some_variable = 0;"
18269
# Code to be used in simple link tests
18270
lt_simple_link_test_code='int main(){return(0);}'
18278
# If no C compiler was specified, use CC.
18281
# If no C compiler flags were specified, use CFLAGS.
18282
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18284
# Allow CC to be a program name with arguments.
18287
# Save the default compiler, since it gets overwritten when the other
18288
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
18289
compiler_DEFAULT=$CC
18291
# save warnings/boilerplate of simple test code
18292
ac_outfile=conftest.$ac_objext
18293
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18294
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18295
_lt_compiler_boilerplate=`cat conftest.err`
18298
ac_outfile=conftest.$ac_objext
18299
echo "$lt_simple_link_test_code" >conftest.$ac_ext
18300
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18301
_lt_linker_boilerplate=`cat conftest.err`
18306
## There is no encapsulation within the following macros, do not change
18307
## the running order or otherwise move them around unless you know exactly
18308
## what you are doing...
18309
if test -n "$compiler"; then
18311
lt_prog_compiler_no_builtin_flag=
18313
if test "$GCC" = yes; then
18314
case $cc_basename in
18316
lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
18318
lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
18321
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
18322
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
18323
if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
18324
$as_echo_n "(cached) " >&6
18326
lt_cv_prog_compiler_rtti_exceptions=no
18327
ac_outfile=conftest.$ac_objext
18328
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18329
lt_compiler_flag="-fno-rtti -fno-exceptions"
18330
# Insert the option either (1) after the last *FLAGS variable, or
18331
# (2) before a word containing "conftest.", or (3) at the end.
18332
# Note that $ac_compile itself does not contain backslashes and begins
18333
# with a dollar sign (not a hyphen), so the echo should work correctly.
18334
# The option is referenced via a variable to avoid confusing sed.
18335
lt_compile=`echo "$ac_compile" | $SED \
18336
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18337
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18338
-e 's:$: $lt_compiler_flag:'`
18339
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18340
(eval "$lt_compile" 2>conftest.err)
18342
cat conftest.err >&5
18343
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18344
if (exit $ac_status) && test -s "$ac_outfile"; then
18345
# The compiler can only warn and ignore the option if not recognized
18346
# So say no if there are warnings other than the usual output.
18347
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
18348
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18349
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18350
lt_cv_prog_compiler_rtti_exceptions=yes
18356
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
18357
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
18359
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
18360
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
18372
lt_prog_compiler_wl=
18373
lt_prog_compiler_pic=
18374
lt_prog_compiler_static=
18377
if test "$GCC" = yes; then
18378
lt_prog_compiler_wl='-Wl,'
18379
lt_prog_compiler_static='-static'
18383
# All AIX code is PIC.
18384
if test "$host_cpu" = ia64; then
18385
# AIX 5 now supports IA64 processor
18386
lt_prog_compiler_static='-Bstatic'
18393
# see comment about AmigaOS4 .so support
18394
lt_prog_compiler_pic='-fPIC'
18397
# FIXME: we need at least 68020 code to build shared libraries, but
18398
# adding the `-m68020' flag to GCC prevents building anything better,
18400
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
18405
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18406
# PIC is the default for these OSes.
18409
mingw* | cygwin* | pw32* | os2* | cegcc*)
18410
# This hack is so that the source file can tell whether it is being
18411
# built for inclusion in a dll (and should export symbols for example).
18412
# Although the cygwin gcc ignores -fPIC, still need this for old-style
18413
# (--disable-auto-import) libraries
18414
lt_prog_compiler_pic='-DDLL_EXPORT'
18417
darwin* | rhapsody*)
18418
# PIC is the default on this platform
18419
# Common symbols not allowed in MH_DYLIB files
18420
lt_prog_compiler_pic='-fno-common'
18424
# PIC is the default for Haiku.
18425
# The "-static" flag exists, but is broken.
18426
lt_prog_compiler_static=
18430
# PIC is the default for 64-bit PA HP-UX, but not for 32-bit
18431
# PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
18432
# sets the default TLS model and affects inlining.
18438
lt_prog_compiler_pic='-fPIC'
18444
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
18445
# Instead, we relocate shared libraries at runtime.
18449
# Just because we use GCC doesn't mean we suddenly get shared libraries
18450
# on systems that don't support them.
18451
lt_prog_compiler_can_build_shared=no
18456
# QNX uses GNU C++, but need to define -shared option too, otherwise
18457
# it will coredump.
18458
lt_prog_compiler_pic='-fPIC -shared'
18462
if test -d /usr/nec; then
18463
lt_prog_compiler_pic=-Kconform_pic
18468
lt_prog_compiler_pic='-fPIC'
18472
case $cc_basename in
18473
nvcc*) # Cuda Compiler Driver 2.2
18474
lt_prog_compiler_wl='-Xlinker '
18475
if test -n "$lt_prog_compiler_pic"; then
18476
lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
18481
# PORTME Check for flag to pass linker flags through the system compiler.
18484
lt_prog_compiler_wl='-Wl,'
18485
if test "$host_cpu" = ia64; then
18486
# AIX 5 now supports IA64 processor
18487
lt_prog_compiler_static='-Bstatic'
18489
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
18493
mingw* | cygwin* | pw32* | os2* | cegcc*)
18494
# This hack is so that the source file can tell whether it is being
18495
# built for inclusion in a dll (and should export symbols for example).
18496
lt_prog_compiler_pic='-DDLL_EXPORT'
18499
hpux9* | hpux10* | hpux11*)
18500
lt_prog_compiler_wl='-Wl,'
18501
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18502
# not for PA HP-UX.
18508
lt_prog_compiler_pic='+Z'
18511
# Is there a better lt_prog_compiler_static that works with the bundled CC?
18512
lt_prog_compiler_static='${wl}-a ${wl}archive'
18515
irix5* | irix6* | nonstopux*)
18516
lt_prog_compiler_wl='-Wl,'
18517
# PIC (with -KPIC) is the default.
18518
lt_prog_compiler_static='-non_shared'
18521
linux* | k*bsd*-gnu | kopensolaris*-gnu)
18522
case $cc_basename in
18523
# old Intel for x86_64 which still supported -KPIC.
18525
lt_prog_compiler_wl='-Wl,'
18526
lt_prog_compiler_pic='-KPIC'
18527
lt_prog_compiler_static='-static'
18529
# icc used to be incompatible with GCC.
18530
# ICC 10 doesn't accept -KPIC any more.
18532
lt_prog_compiler_wl='-Wl,'
18533
lt_prog_compiler_pic='-fPIC'
18534
lt_prog_compiler_static='-static'
18536
# Lahey Fortran 8.1.
18538
lt_prog_compiler_wl='-Wl,'
18539
lt_prog_compiler_pic='--shared'
18540
lt_prog_compiler_static='--static'
18543
# NAG Fortran compiler
18544
lt_prog_compiler_wl='-Wl,-Wl,,'
18545
lt_prog_compiler_pic='-PIC'
18546
lt_prog_compiler_static='-Bstatic'
18548
pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
18549
# Portland Group compilers (*not* the Pentium gcc compiler,
18550
# which looks to be a dead project)
18551
lt_prog_compiler_wl='-Wl,'
18552
lt_prog_compiler_pic='-fpic'
18553
lt_prog_compiler_static='-Bstatic'
18556
lt_prog_compiler_wl='-Wl,'
18557
# All Alpha code is PIC.
18558
lt_prog_compiler_static='-non_shared'
18560
xl* | bgxl* | bgf* | mpixl*)
18561
# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
18562
lt_prog_compiler_wl='-Wl,'
18563
lt_prog_compiler_pic='-qpic'
18564
lt_prog_compiler_static='-qstaticlink'
18567
case `$CC -V 2>&1 | sed 5q` in
18568
*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
18569
# Sun Fortran 8.3 passes all unrecognized flags to the linker
18570
lt_prog_compiler_pic='-KPIC'
18571
lt_prog_compiler_static='-Bstatic'
18572
lt_prog_compiler_wl=''
18574
*Sun\ F* | *Sun*Fortran*)
18575
lt_prog_compiler_pic='-KPIC'
18576
lt_prog_compiler_static='-Bstatic'
18577
lt_prog_compiler_wl='-Qoption ld '
18581
lt_prog_compiler_pic='-KPIC'
18582
lt_prog_compiler_static='-Bstatic'
18583
lt_prog_compiler_wl='-Wl,'
18585
*Intel*\ [CF]*Compiler*)
18586
lt_prog_compiler_wl='-Wl,'
18587
lt_prog_compiler_pic='-fPIC'
18588
lt_prog_compiler_static='-static'
18591
lt_prog_compiler_wl='-Wl,'
18592
lt_prog_compiler_pic='-fpic'
18593
lt_prog_compiler_static='-Bstatic'
18601
lt_prog_compiler_pic='-KPIC'
18602
lt_prog_compiler_static='-Bstatic'
18606
# QNX uses GNU C++, but need to define -shared option too, otherwise
18607
# it will coredump.
18608
lt_prog_compiler_pic='-fPIC -shared'
18611
osf3* | osf4* | osf5*)
18612
lt_prog_compiler_wl='-Wl,'
18613
# All OSF/1 code is PIC.
18614
lt_prog_compiler_static='-non_shared'
18618
lt_prog_compiler_static='-non_shared'
18622
lt_prog_compiler_pic='-KPIC'
18623
lt_prog_compiler_static='-Bstatic'
18624
case $cc_basename in
18625
f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
18626
lt_prog_compiler_wl='-Qoption ld ';;
18628
lt_prog_compiler_wl='-Wl,';;
18633
lt_prog_compiler_wl='-Qoption ld '
18634
lt_prog_compiler_pic='-PIC'
18635
lt_prog_compiler_static='-Bstatic'
18638
sysv4 | sysv4.2uw2* | sysv4.3*)
18639
lt_prog_compiler_wl='-Wl,'
18640
lt_prog_compiler_pic='-KPIC'
18641
lt_prog_compiler_static='-Bstatic'
18645
if test -d /usr/nec ;then
18646
lt_prog_compiler_pic='-Kconform_pic'
18647
lt_prog_compiler_static='-Bstatic'
18651
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18652
lt_prog_compiler_wl='-Wl,'
18653
lt_prog_compiler_pic='-KPIC'
18654
lt_prog_compiler_static='-Bstatic'
18658
lt_prog_compiler_wl='-Wl,'
18659
lt_prog_compiler_can_build_shared=no
18663
lt_prog_compiler_pic='-pic'
18664
lt_prog_compiler_static='-Bstatic'
18668
lt_prog_compiler_can_build_shared=no
18674
# For platforms which do not support PIC, -DPIC is meaningless:
18676
lt_prog_compiler_pic=
18679
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
18683
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
18684
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
18685
if ${lt_cv_prog_compiler_pic+:} false; then :
18686
$as_echo_n "(cached) " >&6
18688
lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
18690
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
18691
$as_echo "$lt_cv_prog_compiler_pic" >&6; }
18692
lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
18695
# Check to make sure the PIC flag actually works.
18697
if test -n "$lt_prog_compiler_pic"; then
18698
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
18699
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
18700
if ${lt_cv_prog_compiler_pic_works+:} false; then :
18701
$as_echo_n "(cached) " >&6
18703
lt_cv_prog_compiler_pic_works=no
18704
ac_outfile=conftest.$ac_objext
18705
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18706
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
18707
# Insert the option either (1) after the last *FLAGS variable, or
18708
# (2) before a word containing "conftest.", or (3) at the end.
18709
# Note that $ac_compile itself does not contain backslashes and begins
18710
# with a dollar sign (not a hyphen), so the echo should work correctly.
18711
# The option is referenced via a variable to avoid confusing sed.
18712
lt_compile=`echo "$ac_compile" | $SED \
18713
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18714
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18715
-e 's:$: $lt_compiler_flag:'`
18716
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18717
(eval "$lt_compile" 2>conftest.err)
18719
cat conftest.err >&5
18720
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18721
if (exit $ac_status) && test -s "$ac_outfile"; then
18722
# The compiler can only warn and ignore the option if not recognized
18723
# So say no if there are warnings other than the usual output.
18724
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
18725
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18726
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18727
lt_cv_prog_compiler_pic_works=yes
18733
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
18734
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
18736
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
18737
case $lt_prog_compiler_pic in
18739
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
18742
lt_prog_compiler_pic=
18743
lt_prog_compiler_can_build_shared=no
18759
# Check to make sure the static flag actually works.
18761
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
18762
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18763
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
18764
if ${lt_cv_prog_compiler_static_works+:} false; then :
18765
$as_echo_n "(cached) " >&6
18767
lt_cv_prog_compiler_static_works=no
18768
save_LDFLAGS="$LDFLAGS"
18769
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18770
echo "$lt_simple_link_test_code" > conftest.$ac_ext
18771
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18772
# The linker can only warn and ignore the option if not recognized
18773
# So say no if there are warnings
18774
if test -s conftest.err; then
18775
# Append any errors to the config.log.
18776
cat conftest.err 1>&5
18777
$ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
18778
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18779
if diff conftest.exp conftest.er2 >/dev/null; then
18780
lt_cv_prog_compiler_static_works=yes
18783
lt_cv_prog_compiler_static_works=yes
18787
LDFLAGS="$save_LDFLAGS"
18790
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
18791
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
18793
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
18796
lt_prog_compiler_static=
18805
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18806
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18807
if ${lt_cv_prog_compiler_c_o+:} false; then :
18808
$as_echo_n "(cached) " >&6
18810
lt_cv_prog_compiler_c_o=no
18811
$RM -r conftest 2>/dev/null
18815
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18817
lt_compiler_flag="-o out/conftest2.$ac_objext"
18818
# Insert the option either (1) after the last *FLAGS variable, or
18819
# (2) before a word containing "conftest.", or (3) at the end.
18820
# Note that $ac_compile itself does not contain backslashes and begins
18821
# with a dollar sign (not a hyphen), so the echo should work correctly.
18822
lt_compile=`echo "$ac_compile" | $SED \
18823
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18824
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18825
-e 's:$: $lt_compiler_flag:'`
18826
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18827
(eval "$lt_compile" 2>out/conftest.err)
18829
cat out/conftest.err >&5
18830
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18831
if (exit $ac_status) && test -s out/conftest2.$ac_objext
18833
# The compiler can only warn and ignore the option if not recognized
18834
# So say no if there are warnings
18835
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
18836
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18837
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18838
lt_cv_prog_compiler_c_o=yes
18843
# SGI C++ compiler will create directory out/ii_files/ for
18844
# template instantiation
18845
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18846
$RM out/* && rmdir out
18852
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
18853
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
18860
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18861
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18862
if ${lt_cv_prog_compiler_c_o+:} false; then :
18863
$as_echo_n "(cached) " >&6
18865
lt_cv_prog_compiler_c_o=no
18866
$RM -r conftest 2>/dev/null
18870
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18872
lt_compiler_flag="-o out/conftest2.$ac_objext"
18873
# Insert the option either (1) after the last *FLAGS variable, or
18874
# (2) before a word containing "conftest.", or (3) at the end.
18875
# Note that $ac_compile itself does not contain backslashes and begins
18876
# with a dollar sign (not a hyphen), so the echo should work correctly.
18877
lt_compile=`echo "$ac_compile" | $SED \
18878
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18879
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18880
-e 's:$: $lt_compiler_flag:'`
18881
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18882
(eval "$lt_compile" 2>out/conftest.err)
18884
cat out/conftest.err >&5
18885
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18886
if (exit $ac_status) && test -s out/conftest2.$ac_objext
18888
# The compiler can only warn and ignore the option if not recognized
18889
# So say no if there are warnings
18890
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
18891
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18892
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18893
lt_cv_prog_compiler_c_o=yes
18898
# SGI C++ compiler will create directory out/ii_files/ for
18899
# template instantiation
18900
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18901
$RM out/* && rmdir out
18907
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
18908
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
18913
hard_links="nottested"
18914
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
18915
# do not overwrite the value of need_locks provided by the user
18916
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
18917
$as_echo_n "checking if we can lock with hard links... " >&6; }
18920
ln conftest.a conftest.b 2>/dev/null && hard_links=no
18922
ln conftest.a conftest.b 2>&5 || hard_links=no
18923
ln conftest.a conftest.b 2>/dev/null && hard_links=no
18924
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
18925
$as_echo "$hard_links" >&6; }
18926
if test "$hard_links" = no; then
18927
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18928
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18940
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18941
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18944
allow_undefined_flag=
18945
always_export_symbols=no
18947
archive_expsym_cmds=
18948
compiler_needs_object=no
18949
enable_shared_with_static_runtimes=no
18950
export_dynamic_flag_spec=
18951
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18952
hardcode_automatic=no
18954
hardcode_direct_absolute=no
18955
hardcode_libdir_flag_spec=
18956
hardcode_libdir_separator=
18957
hardcode_minus_L=no
18958
hardcode_shlibpath_var=unsupported
18960
link_all_deplibs=unknown
18962
module_expsym_cmds=
18963
old_archive_from_new_cmds=
18964
old_archive_from_expsyms_cmds=
18965
thread_safe_flag_spec=
18966
whole_archive_flag_spec=
18967
# include_expsyms should be a list of space-separated symbols to be *always*
18968
# included in the symbol list
18970
# exclude_expsyms can be an extended regexp of symbols to exclude
18971
# it will be wrapped by ` (' and `)$', so one must not match beginning or
18972
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18973
# as well as any symbol that contains `d'.
18974
exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
18975
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18976
# platforms (ab)use it in PIC code, but their linkers get confused if
18977
# the symbol is explicitly referenced. Since portable code cannot
18978
# rely on this symbol name, it's probably fine to never include it in
18979
# preloaded symbol tables.
18980
# Exclude shared library initialization/finalization symbols.
18981
extract_expsyms_cmds=
18984
cygwin* | mingw* | pw32* | cegcc*)
18985
# FIXME: the MSVC++ port hasn't been tested in a loooong time
18986
# When not using gcc, we currently assume that we are using
18987
# Microsoft Visual C++.
18988
if test "$GCC" != yes; then
18993
# we just hope/assume this is gcc and not c89 (= MSVC++)
19003
# On some targets, GNU ld is compatible enough with the native linker
19004
# that we're better off using the native interface for both.
19005
lt_use_gnu_ld_interface=no
19006
if test "$with_gnu_ld" = yes; then
19009
# The AIX port of GNU ld has always aspired to compatibility
19010
# with the native linker. However, as the warning in the GNU ld
19011
# block says, versions before 2.19.5* couldn't really create working
19012
# shared libraries, regardless of the interface used.
19013
case `$LD -v 2>&1` in
19014
*\ \(GNU\ Binutils\)\ 2.19.5*) ;;
19015
*\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
19016
*\ \(GNU\ Binutils\)\ [3-9]*) ;;
19018
lt_use_gnu_ld_interface=yes
19023
lt_use_gnu_ld_interface=yes
19028
if test "$lt_use_gnu_ld_interface" = yes; then
19029
# If archive_cmds runs LD, not CC, wlarc should be empty
19032
# Set some defaults for GNU ld with shared library support. These
19033
# are reset later if shared libraries are not supported. Putting them
19034
# here allows them to be overridden if necessary.
19035
runpath_var=LD_RUN_PATH
19036
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
19037
export_dynamic_flag_spec='${wl}--export-dynamic'
19038
# ancient GNU ld didn't support --whole-archive et. al.
19039
if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
19040
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19042
whole_archive_flag_spec=
19044
supports_anon_versioning=no
19045
case `$LD -v 2>&1` in
19046
*GNU\ gold*) supports_anon_versioning=yes ;;
19047
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19048
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19049
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19050
*\ 2.11.*) ;; # other 2.11 versions
19051
*) supports_anon_versioning=yes ;;
19054
# See if GNU ld supports shared libraries.
19057
# On AIX/PPC, the GNU linker is very broken
19058
if test "$host_cpu" != ia64; then
19062
*** Warning: the GNU linker, at least up to release 2.19, is reported
19063
*** to be unable to reliably create shared libraries on AIX.
19064
*** Therefore, libtool is disabling shared libraries support. If you
19065
*** really care for shared libraries, you may want to install binutils
19066
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
19067
*** You will then need to restart the configuration process.
19076
# see comment about AmigaOS4 .so support
19077
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19078
archive_expsym_cmds=''
19081
archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
19082
hardcode_libdir_flag_spec='-L$libdir'
19083
hardcode_minus_L=yes
19089
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19090
allow_undefined_flag=unsupported
19091
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19092
# support --undefined. This deserves some investigation. FIXME
19093
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19099
cygwin* | mingw* | pw32* | cegcc*)
19100
# _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
19101
# as there is no search path for DLLs.
19102
hardcode_libdir_flag_spec='-L$libdir'
19103
export_dynamic_flag_spec='${wl}--export-all-symbols'
19104
allow_undefined_flag=unsupported
19105
always_export_symbols=no
19106
enable_shared_with_static_runtimes=yes
19107
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
19108
exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
19110
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19111
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19112
# If the export-symbols file already is a .def file (1st line
19113
# is EXPORTS), use it as is; otherwise, prepend...
19114
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19115
cp $export_symbols $output_objdir/$soname.def;
19117
echo EXPORTS > $output_objdir/$soname.def;
19118
cat $export_symbols >> $output_objdir/$soname.def;
19120
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19127
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19128
link_all_deplibs=yes
19133
hardcode_shlibpath_var=no
19134
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
19135
export_dynamic_flag_spec='${wl}-E'
19136
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19137
# Instead, shared libraries are loaded at an image base (0x10000000 by
19138
# default) and relocated if they conflict, which is a slow very memory
19139
# consuming and fragmenting process. To avoid this, we pick a random,
19140
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19141
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
19142
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
19143
archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
19146
gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
19148
if test "$host_os" = linux-dietlibc; then
19149
case $cc_basename in
19150
diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
19153
if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
19154
&& test "$tmp_diet" = no
19156
tmp_addflag=' $pic_flag'
19157
tmp_sharedflag='-shared'
19158
case $cc_basename,$host_cpu in
19159
pgcc*) # Portland Group C compiler
19160
whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
19161
tmp_addflag=' $pic_flag'
19163
pgf77* | pgf90* | pgf95* | pgfortran*)
19164
# Portland Group f77 and f90 compilers
19165
whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
19166
tmp_addflag=' $pic_flag -Mnomain' ;;
19167
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
19168
tmp_addflag=' -i_dynamic' ;;
19169
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
19170
tmp_addflag=' -i_dynamic -nofor_main' ;;
19171
ifc* | ifort*) # Intel Fortran compiler
19172
tmp_addflag=' -nofor_main' ;;
19173
lf95*) # Lahey Fortran 8.1
19174
whole_archive_flag_spec=
19175
tmp_sharedflag='--shared' ;;
19176
xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
19177
tmp_sharedflag='-qmkshrobj'
19179
nvcc*) # Cuda Compiler Driver 2.2
19180
whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
19181
compiler_needs_object=yes
19184
case `$CC -V 2>&1 | sed 5q` in
19185
*Sun\ C*) # Sun C 5.9
19186
whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
19187
compiler_needs_object=yes
19188
tmp_sharedflag='-G' ;;
19189
*Sun\ F*) # Sun Fortran 8.3
19190
tmp_sharedflag='-G' ;;
19192
archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19194
if test "x$supports_anon_versioning" = xyes; then
19195
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
19196
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19197
echo "local: *; };" >> $output_objdir/$libname.ver~
19198
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19201
case $cc_basename in
19202
xlf* | bgf* | bgxlf* | mpixlf*)
19203
# IBM XL Fortran 10.1 on PPC cannot create shared libs itself
19204
whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
19205
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
19206
archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
19207
if test "x$supports_anon_versioning" = xyes; then
19208
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
19209
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19210
echo "local: *; };" >> $output_objdir/$libname.ver~
19211
$LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
19221
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19222
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19225
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19226
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19231
if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
19235
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
19236
*** create shared libraries on Solaris systems. Therefore, libtool
19237
*** is disabling shared libraries support. We urge you to upgrade GNU
19238
*** binutils to release 2.9.1 or newer. Another option is to modify
19239
*** your PATH or compiler configuration so that the native linker is
19240
*** used, and then restart.
19243
elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19244
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19245
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19251
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
19252
case `$LD -v 2>&1` in
19253
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
19257
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
19258
*** reliably create shared libraries on SCO systems. Therefore, libtool
19259
*** is disabling shared libraries support. We urge you to upgrade GNU
19260
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
19261
*** your PATH or compiler configuration so that the native linker is
19262
*** used, and then restart.
19267
# For security reasons, it is highly recommended that you always
19268
# use absolute paths for naming shared libraries, and exclude the
19269
# DT_RUNPATH tag from executables and libraries. But doing so
19270
# requires that you compile everything twice, which is a pain.
19271
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19272
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
19273
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19274
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19283
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19285
hardcode_direct=yes
19286
hardcode_shlibpath_var=no
19290
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19291
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19292
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19299
if test "$ld_shlibs" = no; then
19301
hardcode_libdir_flag_spec=
19302
export_dynamic_flag_spec=
19303
whole_archive_flag_spec=
19306
# PORTME fill in a description of your system's linker (not GNU ld)
19309
allow_undefined_flag=unsupported
19310
always_export_symbols=yes
19311
archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
19312
# Note: this linker hardcodes the directories in LIBPATH if there
19313
# are no directories specified by -L.
19314
hardcode_minus_L=yes
19315
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
19316
# Neither direct hardcoding nor static linking is supported with a
19318
hardcode_direct=unsupported
19323
if test "$host_cpu" = ia64; then
19324
# On IA64, the linker does run time linking by default, so we don't
19325
# have to do anything special.
19326
aix_use_runtimelinking=no
19327
exp_sym_flag='-Bexport'
19330
# If we're using GNU nm, then we don't want the "-C" option.
19331
# -C means demangle to AIX nm, but means don't demangle with GNU nm
19332
# Also, AIX nm treats weak defined symbols like other global
19333
# defined symbols, whereas GNU nm marks them as "W".
19334
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
19335
export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
19337
export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
19339
aix_use_runtimelinking=no
19341
# Test if we are trying to use run time linking or normal
19342
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
19343
# need to do runtime linking.
19344
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19345
for ld_flag in $LDFLAGS; do
19346
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19347
aix_use_runtimelinking=yes
19354
exp_sym_flag='-bexport'
19355
no_entry_flag='-bnoentry'
19358
# When large executables or shared objects are built, AIX ld can
19359
# have problems creating the table of contents. If linking a library
19360
# or program results in "error TOC overflow" add -mminimal-toc to
19361
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19362
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19365
hardcode_direct=yes
19366
hardcode_direct_absolute=yes
19367
hardcode_libdir_separator=':'
19368
link_all_deplibs=yes
19369
file_list_spec='${wl}-f,'
19371
if test "$GCC" = yes; then
19372
case $host_os in aix4.[012]|aix4.[012].*)
19373
# We only want to do this on AIX 4.2 and lower, the check
19374
# below for broken collect2 doesn't work under 4.3+
19375
collect2name=`${CC} -print-prog-name=collect2`
19376
if test -f "$collect2name" &&
19377
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
19379
# We have reworked collect2
19382
# We have old collect2
19383
hardcode_direct=unsupported
19384
# It fails to find uninstalled libraries when the uninstalled
19385
# path is not listed in the libpath. Setting hardcode_minus_L
19386
# to unsupported forces relinking
19387
hardcode_minus_L=yes
19388
hardcode_libdir_flag_spec='-L$libdir'
19389
hardcode_libdir_separator=
19393
shared_flag='-shared'
19394
if test "$aix_use_runtimelinking" = yes; then
19395
shared_flag="$shared_flag "'${wl}-G'
19399
if test "$host_cpu" = ia64; then
19400
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19401
# chokes on -Wl,-G. The following line is correct:
19404
if test "$aix_use_runtimelinking" = yes; then
19405
shared_flag='${wl}-G'
19407
shared_flag='${wl}-bM:SRE'
19412
export_dynamic_flag_spec='${wl}-bexpall'
19413
# It seems that -bexpall does not export symbols beginning with
19414
# underscore (_), so it is better to generate a list of symbols to export.
19415
always_export_symbols=yes
19416
if test "$aix_use_runtimelinking" = yes; then
19417
# Warning - without using the other runtime loading flags (-brtl),
19418
# -berok will link without error, but may produce a broken library.
19419
allow_undefined_flag='-berok'
19420
# Determine the default libpath from the value encoded in an
19421
# empty executable.
19422
if test "${lt_cv_aix_libpath+set}" = set; then
19423
aix_libpath=$lt_cv_aix_libpath
19425
if ${lt_cv_aix_libpath_+:} false; then :
19426
$as_echo_n "(cached) " >&6
19428
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19429
/* end confdefs.h. */
19431
#ifdef F77_DUMMY_MAIN
19433
# ifdef __cplusplus
19436
int F77_DUMMY_MAIN() { return 1; }
19447
if ac_fn_c_try_link "$LINENO"; then :
19449
lt_aix_libpath_sed='
19450
/Import File Strings/,/^$/ {
19452
s/^0 *\([^ ]*\) *$/\1/
19456
lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19457
# Check for a 64-bit object if we didn't find anything.
19458
if test -z "$lt_cv_aix_libpath_"; then
19459
lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19462
rm -f core conftest.err conftest.$ac_objext \
19463
conftest$ac_exeext conftest.$ac_ext
19464
if test -z "$lt_cv_aix_libpath_"; then
19465
lt_cv_aix_libpath_="/usr/lib:/lib"
19470
aix_libpath=$lt_cv_aix_libpath_
19473
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
19474
archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
19476
if test "$host_cpu" = ia64; then
19477
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
19478
allow_undefined_flag="-z nodefs"
19479
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
19481
# Determine the default libpath from the value encoded in an
19482
# empty executable.
19483
if test "${lt_cv_aix_libpath+set}" = set; then
19484
aix_libpath=$lt_cv_aix_libpath
19486
if ${lt_cv_aix_libpath_+:} false; then :
19487
$as_echo_n "(cached) " >&6
19489
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19490
/* end confdefs.h. */
19492
#ifdef F77_DUMMY_MAIN
19494
# ifdef __cplusplus
19497
int F77_DUMMY_MAIN() { return 1; }
19508
if ac_fn_c_try_link "$LINENO"; then :
19510
lt_aix_libpath_sed='
19511
/Import File Strings/,/^$/ {
19513
s/^0 *\([^ ]*\) *$/\1/
19517
lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19518
# Check for a 64-bit object if we didn't find anything.
19519
if test -z "$lt_cv_aix_libpath_"; then
19520
lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19523
rm -f core conftest.err conftest.$ac_objext \
19524
conftest$ac_exeext conftest.$ac_ext
19525
if test -z "$lt_cv_aix_libpath_"; then
19526
lt_cv_aix_libpath_="/usr/lib:/lib"
19531
aix_libpath=$lt_cv_aix_libpath_
19534
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
19535
# Warning - without using the other run time loading flags,
19536
# -berok will link without error, but may produce a broken library.
19537
no_undefined_flag=' ${wl}-bernotok'
19538
allow_undefined_flag=' ${wl}-berok'
19539
if test "$with_gnu_ld" = yes; then
19540
# We only use this code for GNU lds that support --whole-archive.
19541
whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19543
# Exported symbols can be pulled into shared objects from archives
19544
whole_archive_flag_spec='$convenience'
19546
archive_cmds_need_lc=yes
19547
# This is similar to how AIX traditionally builds its shared libraries.
19548
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
19556
# see comment about AmigaOS4 .so support
19557
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19558
archive_expsym_cmds=''
19561
archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
19562
hardcode_libdir_flag_spec='-L$libdir'
19563
hardcode_minus_L=yes
19569
export_dynamic_flag_spec=-rdynamic
19572
cygwin* | mingw* | pw32* | cegcc*)
19573
# When not using gcc, we currently assume that we are using
19574
# Microsoft Visual C++.
19575
# hardcode_libdir_flag_spec is actually meaningless, as there is
19576
# no search path for DLLs.
19577
case $cc_basename in
19580
hardcode_libdir_flag_spec=' '
19581
allow_undefined_flag=unsupported
19582
always_export_symbols=yes
19584
# Tell ltmain to make .lib files, not .a files.
19586
# Tell ltmain to make .dll files, not .so files.
19588
# FIXME: Setting linknames here is a bad hack.
19589
archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
19590
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19591
sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
19593
sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
19595
$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
19597
# The linker will not automatically build a static lib if we build a DLL.
19598
# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
19599
enable_shared_with_static_runtimes=yes
19600
exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
19601
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
19603
old_postinstall_cmds='chmod 644 $oldlib'
19604
postlink_cmds='lt_outputfile="@OUTPUT@"~
19605
lt_tool_outputfile="@TOOL_OUTPUT@"~
19606
case $lt_outputfile in
19609
lt_outputfile="$lt_outputfile.exe"
19610
lt_tool_outputfile="$lt_tool_outputfile.exe"
19613
if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
19614
$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
19615
$RM "$lt_outputfile.manifest";
19619
# Assume MSVC wrapper
19620
hardcode_libdir_flag_spec=' '
19621
allow_undefined_flag=unsupported
19622
# Tell ltmain to make .lib files, not .a files.
19624
# Tell ltmain to make .dll files, not .so files.
19626
# FIXME: Setting linknames here is a bad hack.
19627
archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
19628
# The linker will automatically build a .lib file if we build a DLL.
19629
old_archive_from_new_cmds='true'
19630
# FIXME: Should let the user specify the lib program.
19631
old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
19632
enable_shared_with_static_runtimes=yes
19637
darwin* | rhapsody*)
19640
archive_cmds_need_lc=no
19642
hardcode_automatic=yes
19643
hardcode_shlibpath_var=unsupported
19644
if test "$lt_cv_ld_force_load" = "yes"; then
19645
whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
19648
whole_archive_flag_spec=''
19650
link_all_deplibs=yes
19651
allow_undefined_flag="$_lt_dar_allow_undefined"
19652
case $cc_basename in
19653
ifort*) _lt_dar_can_shared=yes ;;
19654
*) _lt_dar_can_shared=$GCC ;;
19656
if test "$_lt_dar_can_shared" = "yes"; then
19657
output_verbose_link_cmd=func_echo_all
19658
archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
19659
module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19660
archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
19661
module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
19670
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19671
hardcode_libdir_flag_spec='-L$libdir'
19672
hardcode_shlibpath_var=no
19675
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19676
# support. Future versions do this automatically, but an explicit c++rt0.o
19677
# does not break anything, and helps significantly (at the cost of a little
19680
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19681
hardcode_libdir_flag_spec='-R$libdir'
19682
hardcode_direct=yes
19683
hardcode_shlibpath_var=no
19686
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
19688
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19689
hardcode_direct=yes
19690
hardcode_minus_L=yes
19691
hardcode_shlibpath_var=no
19694
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19695
freebsd* | dragonfly*)
19696
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19697
hardcode_libdir_flag_spec='-R$libdir'
19698
hardcode_direct=yes
19699
hardcode_shlibpath_var=no
19703
if test "$GCC" = yes; then
19704
archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
19706
archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
19708
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
19709
hardcode_libdir_separator=:
19710
hardcode_direct=yes
19712
# hardcode_minus_L: Not really in the search PATH,
19713
# but as the default location of the library.
19714
hardcode_minus_L=yes
19715
export_dynamic_flag_spec='${wl}-E'
19719
if test "$GCC" = yes && test "$with_gnu_ld" = no; then
19720
archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19722
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19724
if test "$with_gnu_ld" = no; then
19725
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
19726
hardcode_libdir_separator=:
19727
hardcode_direct=yes
19728
hardcode_direct_absolute=yes
19729
export_dynamic_flag_spec='${wl}-E'
19730
# hardcode_minus_L: Not really in the search PATH,
19731
# but as the default location of the library.
19732
hardcode_minus_L=yes
19737
if test "$GCC" = yes && test "$with_gnu_ld" = no; then
19740
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19743
archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19746
archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19752
archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19755
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19759
# Older versions of the 11.00 compiler do not understand -b yet
19760
# (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
19761
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
19762
$as_echo_n "checking if $CC understands -b... " >&6; }
19763
if ${lt_cv_prog_compiler__b+:} false; then :
19764
$as_echo_n "(cached) " >&6
19766
lt_cv_prog_compiler__b=no
19767
save_LDFLAGS="$LDFLAGS"
19768
LDFLAGS="$LDFLAGS -b"
19769
echo "$lt_simple_link_test_code" > conftest.$ac_ext
19770
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19771
# The linker can only warn and ignore the option if not recognized
19772
# So say no if there are warnings
19773
if test -s conftest.err; then
19774
# Append any errors to the config.log.
19775
cat conftest.err 1>&5
19776
$ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
19777
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19778
if diff conftest.exp conftest.er2 >/dev/null; then
19779
lt_cv_prog_compiler__b=yes
19782
lt_cv_prog_compiler__b=yes
19786
LDFLAGS="$save_LDFLAGS"
19789
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
19790
$as_echo "$lt_cv_prog_compiler__b" >&6; }
19792
if test x"$lt_cv_prog_compiler__b" = xyes; then
19793
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19795
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19801
if test "$with_gnu_ld" = no; then
19802
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
19803
hardcode_libdir_separator=:
19808
hardcode_shlibpath_var=no
19811
hardcode_direct=yes
19812
hardcode_direct_absolute=yes
19813
export_dynamic_flag_spec='${wl}-E'
19815
# hardcode_minus_L: Not really in the search PATH,
19816
# but as the default location of the library.
19817
hardcode_minus_L=yes
19823
irix5* | irix6* | nonstopux*)
19824
if test "$GCC" = yes; then
19825
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19826
# Try to use the -exported_symbol ld option, if it does not
19827
# work, assume that -exports_file does not work either and
19828
# implicitly export all symbols.
19829
# This should be the same for all languages, so no per-tag cache variable.
19830
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
19831
$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
19832
if ${lt_cv_irix_exported_symbol+:} false; then :
19833
$as_echo_n "(cached) " >&6
19835
save_LDFLAGS="$LDFLAGS"
19836
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
19837
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19838
/* end confdefs.h. */
19839
int foo (void) { return 0; }
19841
if ac_fn_c_try_link "$LINENO"; then :
19842
lt_cv_irix_exported_symbol=yes
19844
lt_cv_irix_exported_symbol=no
19846
rm -f core conftest.err conftest.$ac_objext \
19847
conftest$ac_exeext conftest.$ac_ext
19848
LDFLAGS="$save_LDFLAGS"
19850
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
19851
$as_echo "$lt_cv_irix_exported_symbol" >&6; }
19852
if test "$lt_cv_irix_exported_symbol" = yes; then
19853
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
19856
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
19857
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
19859
archive_cmds_need_lc='no'
19860
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
19861
hardcode_libdir_separator=:
19863
link_all_deplibs=yes
19867
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19868
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19870
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19872
hardcode_libdir_flag_spec='-R$libdir'
19873
hardcode_direct=yes
19874
hardcode_shlibpath_var=no
19878
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19879
hardcode_direct=yes
19880
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
19881
hardcode_libdir_separator=:
19882
hardcode_shlibpath_var=no
19889
if test -f /usr/libexec/ld.so; then
19890
hardcode_direct=yes
19891
hardcode_shlibpath_var=no
19892
hardcode_direct_absolute=yes
19893
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19894
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19895
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19896
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
19897
export_dynamic_flag_spec='${wl}-E'
19900
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19901
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19902
hardcode_libdir_flag_spec='-R$libdir'
19905
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19906
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
19916
hardcode_libdir_flag_spec='-L$libdir'
19917
hardcode_minus_L=yes
19918
allow_undefined_flag=unsupported
19919
archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
19920
old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19924
if test "$GCC" = yes; then
19925
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
19926
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19928
allow_undefined_flag=' -expect_unresolved \*'
19929
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
19931
archive_cmds_need_lc='no'
19932
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
19933
hardcode_libdir_separator=:
19936
osf4* | osf5*) # as osf3* with the addition of -msym flag
19937
if test "$GCC" = yes; then
19938
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
19939
archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19940
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
19942
allow_undefined_flag=' -expect_unresolved \*'
19943
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
19944
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
19945
$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
19947
# Both c and cxx compiler support -rpath directly
19948
hardcode_libdir_flag_spec='-rpath $libdir'
19950
archive_cmds_need_lc='no'
19951
hardcode_libdir_separator=:
19955
no_undefined_flag=' -z defs'
19956
if test "$GCC" = yes; then
19958
archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19959
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19960
$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
19962
case `$CC -V 2>&1` in
19965
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19966
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19967
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
19971
archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
19972
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19973
$CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
19977
hardcode_libdir_flag_spec='-R$libdir'
19978
hardcode_shlibpath_var=no
19980
solaris2.[0-5] | solaris2.[0-5].*) ;;
19982
# The compiler driver will combine and reorder linker options,
19983
# but understands `-z linker_flag'. GCC discards it without `$wl',
19984
# but is careful enough not to reorder.
19985
# Supported since Solaris 2.6 (maybe 2.5.1?)
19986
if test "$GCC" = yes; then
19987
whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19989
whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
19993
link_all_deplibs=yes
19997
if test "x$host_vendor" = xsequent; then
19998
# Use $CC to link under sequent, because it throws in some extra .o
19999
# files that make .init and .fini sections work.
20000
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
20002
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
20004
hardcode_libdir_flag_spec='-L$libdir'
20005
hardcode_direct=yes
20006
hardcode_minus_L=yes
20007
hardcode_shlibpath_var=no
20011
case $host_vendor in
20013
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20014
hardcode_direct=yes # is this really true???
20017
## LD is ld it makes a PLAMLIB
20018
## CC just makes a GrossModule.
20019
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20020
reload_cmds='$CC -r -o $output$reload_objs'
20024
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20025
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
20028
runpath_var='LD_RUN_PATH'
20029
hardcode_shlibpath_var=no
20033
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20034
hardcode_shlibpath_var=no
20035
export_dynamic_flag_spec='-Bexport'
20039
if test -d /usr/nec; then
20040
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20041
hardcode_shlibpath_var=no
20042
runpath_var=LD_RUN_PATH
20043
hardcode_runpath_var=yes
20048
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
20049
no_undefined_flag='${wl}-z,text'
20050
archive_cmds_need_lc=no
20051
hardcode_shlibpath_var=no
20052
runpath_var='LD_RUN_PATH'
20054
if test "$GCC" = yes; then
20055
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20056
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20058
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20059
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20063
sysv5* | sco3.2v5* | sco5v6*)
20064
# Note: We can NOT use -z defs as we might desire, because we do not
20065
# link with -lc, and that would cause any symbols used from libc to
20066
# always be unresolved, which means just about no library would
20067
# ever link correctly. If we're not using GNU ld we use -z text
20068
# though, which does catch some bad symbols but isn't as heavy-handed
20070
no_undefined_flag='${wl}-z,text'
20071
allow_undefined_flag='${wl}-z,nodefs'
20072
archive_cmds_need_lc=no
20073
hardcode_shlibpath_var=no
20074
hardcode_libdir_flag_spec='${wl}-R,$libdir'
20075
hardcode_libdir_separator=':'
20076
link_all_deplibs=yes
20077
export_dynamic_flag_spec='${wl}-Bexport'
20078
runpath_var='LD_RUN_PATH'
20080
if test "$GCC" = yes; then
20081
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20082
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20084
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20085
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20090
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20091
hardcode_libdir_flag_spec='-L$libdir'
20092
hardcode_shlibpath_var=no
20100
if test x$host_vendor = xsni; then
20102
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20103
export_dynamic_flag_spec='${wl}-Blargedynsym'
20109
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
20110
$as_echo "$ld_shlibs" >&6; }
20111
test "$ld_shlibs" = no && can_build_shared=no
20113
with_gnu_ld=$with_gnu_ld
20130
# Do we need to explicitly link libc?
20132
case "x$archive_cmds_need_lc" in
20134
# Assume -lc should be added
20135
archive_cmds_need_lc=yes
20137
if test "$enable_shared" = yes && test "$GCC" = yes; then
20138
case $archive_cmds in
20140
# FIXME: we may have to deal with multi-command sequences.
20143
# Test whether the compiler implicitly links with -lc since on some
20144
# systems, -lgcc has to come before -lc. If gcc already passes -lc
20145
# to ld, don't add -lc before -lgcc.
20146
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20147
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20148
if ${lt_cv_archive_cmds_need_lc+:} false; then :
20149
$as_echo_n "(cached) " >&6
20152
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20154
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20155
(eval $ac_compile) 2>&5
20157
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20158
test $ac_status = 0; } 2>conftest.err; then
20161
libobjs=conftest.$ac_objext
20163
wl=$lt_prog_compiler_wl
20164
pic_flag=$lt_prog_compiler_pic
20170
lt_save_allow_undefined_flag=$allow_undefined_flag
20171
allow_undefined_flag=
20172
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20173
(eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20175
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20176
test $ac_status = 0; }
20178
lt_cv_archive_cmds_need_lc=no
20180
lt_cv_archive_cmds_need_lc=yes
20182
allow_undefined_flag=$lt_save_allow_undefined_flag
20184
cat conftest.err 1>&5
20189
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
20190
$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
20191
archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
20349
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20350
$as_echo_n "checking dynamic linker characteristics... " >&6; }
20352
if test "$GCC" = yes; then
20354
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
20355
*) lt_awk_arg="/^libraries:/" ;;
20358
mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
20359
*) lt_sed_strip_eq="s,=/,/,g" ;;
20361
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
20362
case $lt_search_path_spec in
20364
# if the path contains ";" then we assume it to be the separator
20365
# otherwise default to the standard path separator (i.e. ":") - it is
20366
# assumed that no part of a normal pathname contains ";" but that should
20367
# okay in the real world where ";" in dirpaths is itself problematic.
20368
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
20371
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
20374
# Ok, now we have the path, separated by spaces, we can step through it
20375
# and add multilib dir if necessary.
20376
lt_tmp_lt_search_path_spec=
20377
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
20378
for lt_sys_path in $lt_search_path_spec; do
20379
if test -d "$lt_sys_path/$lt_multi_os_dir"; then
20380
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
20382
test -d "$lt_sys_path" && \
20383
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
20386
lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
20387
BEGIN {RS=" "; FS="/|\n";} {
20390
for (lt_i = NF; lt_i > 0; lt_i--) {
20391
if ($lt_i != "" && $lt_i != ".") {
20392
if ($lt_i == "..") {
20395
if (lt_count == 0) {
20396
lt_foo="/" $lt_i lt_foo;
20403
if (lt_foo != "") { lt_freq[lt_foo]++; }
20404
if (lt_freq[lt_foo] == 1) { print lt_foo; }
20406
# AWK program above erroneously prepends '/' to C:/dos/paths
20409
mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
20410
$SED 's,/\([A-Za-z]:\),\1,g'` ;;
20412
sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
20414
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20416
library_names_spec=
20417
libname_spec='lib$name'
20421
postuninstall_cmds=
20425
shlibpath_overrides_runpath=unknown
20427
dynamic_linker="$host_os ld.so"
20428
sys_lib_dlsearch_path_spec="/lib /usr/lib"
20429
need_lib_prefix=unknown
20430
hardcode_into_libs=no
20432
# when you set need_version to no, make sure it does not cause -set_version
20433
# flags to be left without arguments
20434
need_version=unknown
20438
version_type=linux # correct to gnu/linux during the next big refactor
20439
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20440
shlibpath_var=LIBPATH
20442
# AIX 3 has no versioning support, so we append a major version to the name.
20443
soname_spec='${libname}${release}${shared_ext}$major'
20447
version_type=linux # correct to gnu/linux during the next big refactor
20450
hardcode_into_libs=yes
20451
if test "$host_cpu" = ia64; then
20452
# AIX 5 supports IA64
20453
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20454
shlibpath_var=LD_LIBRARY_PATH
20456
# With GCC up to 2.95.x, collect2 would create an import file
20457
# for dependence libraries. The import file would start with
20458
# the line `#! .'. This would cause the generated library to
20459
# depend on `.', always an invalid library. This was fixed in
20460
# development snapshots of GCC prior to 3.0.
20462
aix4 | aix4.[01] | aix4.[01].*)
20463
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20465
echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20468
can_build_shared=no
20472
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20473
# soname into executable. Probably we can add versioning support to
20474
# collect2, so additional links can be useful in future.
20475
if test "$aix_use_runtimelinking" = yes; then
20476
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
20477
# instead of lib<name>.a to let people know that these are not
20478
# typical AIX shared libraries.
20479
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20481
# We preserve .a as extension for shared libraries through AIX4.2
20482
# and later when we are not doing run time linking.
20483
library_names_spec='${libname}${release}.a $libname.a'
20484
soname_spec='${libname}${release}${shared_ext}$major'
20486
shlibpath_var=LIBPATH
20493
# Since July 2007 AmigaOS4 officially supports .so libraries.
20494
# When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20495
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20498
library_names_spec='$libname.ixlibrary $libname.a'
20499
# Create ${libname}_ixlibrary.a entries in /sys/libs.
20500
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
20506
library_names_spec='${libname}${shared_ext}'
20507
dynamic_linker="$host_os ld.so"
20508
shlibpath_var=LIBRARY_PATH
20512
version_type=linux # correct to gnu/linux during the next big refactor
20514
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20515
soname_spec='${libname}${release}${shared_ext}$major'
20516
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20517
shlibpath_var=LD_LIBRARY_PATH
20518
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20519
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20520
# the default ld.so.conf also contains /usr/contrib/lib and
20521
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20522
# libtool to hard-code these into programs
20525
cygwin* | mingw* | pw32* | cegcc*)
20526
version_type=windows
20531
case $GCC,$cc_basename in
20534
library_names_spec='$libname.dll.a'
20535
# DLL is installed to $(libdir)/../bin by postinstall_cmds
20536
postinstall_cmds='base_file=`basename \${file}`~
20537
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20538
dldir=$destdir/`dirname \$dlpath`~
20539
test -d \$dldir || mkdir -p \$dldir~
20540
$install_prog $dir/$dlname \$dldir/$dlname~
20541
chmod a+x \$dldir/$dlname~
20542
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20543
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20545
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20546
dlpath=$dir/\$dldll~
20548
shlibpath_overrides_runpath=yes
20552
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
20553
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20555
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
20558
# MinGW DLLs use traditional 'lib' prefix
20559
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20562
# pw32 DLLs use 'pw' prefix rather than 'lib'
20563
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20566
dynamic_linker='Win32 ld.exe'
20571
libname_spec='$name'
20572
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20573
library_names_spec='${libname}.dll.lib'
20577
sys_lib_search_path_spec=
20580
for lt_path in $LIB
20583
# Let DOS variable expansion print the short 8.3 style file name.
20584
lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
20585
sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
20588
# Convert to MSYS style.
20589
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
20592
# Convert to unix form, then to dos form, then back to unix form
20593
# but this time dos style (no spaces!) so that the unix form looks
20594
# like /cygdrive/c/PROGRA~1:/cygdr...
20595
sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
20596
sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
20597
sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20600
sys_lib_search_path_spec="$LIB"
20601
if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
20602
# It is most probably a Windows format PATH.
20603
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20605
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20607
# FIXME: find the short name or the path components, as spaces are
20608
# common. (e.g. "Program Files" -> "PROGRA~1")
20612
# DLL is installed to $(libdir)/../bin by postinstall_cmds
20613
postinstall_cmds='base_file=`basename \${file}`~
20614
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20615
dldir=$destdir/`dirname \$dlpath`~
20616
test -d \$dldir || mkdir -p \$dldir~
20617
$install_prog $dir/$dlname \$dldir/$dlname'
20618
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20619
dlpath=$dir/\$dldll~
20621
shlibpath_overrides_runpath=yes
20622
dynamic_linker='Win32 link.exe'
20626
# Assume MSVC wrapper
20627
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20628
dynamic_linker='Win32 ld.exe'
20631
# FIXME: first we should search . and the directory the executable is in
20635
darwin* | rhapsody*)
20636
dynamic_linker="$host_os dyld"
20637
version_type=darwin
20640
library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20641
soname_spec='${libname}${release}${major}$shared_ext'
20642
shlibpath_overrides_runpath=yes
20643
shlibpath_var=DYLD_LIBRARY_PATH
20644
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20646
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
20647
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20651
version_type=linux # correct to gnu/linux during the next big refactor
20654
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20655
soname_spec='${libname}${release}${shared_ext}$major'
20656
shlibpath_var=LD_LIBRARY_PATH
20659
freebsd* | dragonfly*)
20660
# DragonFly does not have aout. When/if they implement a new
20661
# versioning mechanism, adjust this.
20662
if test -x /usr/bin/objformat; then
20663
objformat=`/usr/bin/objformat`
20666
freebsd[23].*) objformat=aout ;;
20667
*) objformat=elf ;;
20670
version_type=freebsd-$objformat
20671
case $version_type in
20673
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20678
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20682
shlibpath_var=LD_LIBRARY_PATH
20685
shlibpath_overrides_runpath=yes
20687
freebsd3.[01]* | freebsdelf3.[01]*)
20688
shlibpath_overrides_runpath=yes
20689
hardcode_into_libs=yes
20691
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20692
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20693
shlibpath_overrides_runpath=no
20694
hardcode_into_libs=yes
20696
*) # from 4.6 on, and DragonFly
20697
shlibpath_overrides_runpath=yes
20698
hardcode_into_libs=yes
20704
version_type=linux # correct to gnu/linux during the next big refactor
20707
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20708
soname_spec='${libname}${release}${shared_ext}$major'
20709
shlibpath_var=LD_LIBRARY_PATH
20710
shlibpath_overrides_runpath=no
20711
hardcode_into_libs=yes
20715
version_type=linux # correct to gnu/linux during the next big refactor
20718
dynamic_linker="$host_os runtime_loader"
20719
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20720
soname_spec='${libname}${release}${shared_ext}$major'
20721
shlibpath_var=LIBRARY_PATH
20722
shlibpath_overrides_runpath=yes
20723
sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
20724
hardcode_into_libs=yes
20727
hpux9* | hpux10* | hpux11*)
20728
# Give a soname corresponding to the major version so that dld.sl refuses to
20729
# link against other versions.
20736
hardcode_into_libs=yes
20737
dynamic_linker="$host_os dld.so"
20738
shlibpath_var=LD_LIBRARY_PATH
20739
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20740
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20741
soname_spec='${libname}${release}${shared_ext}$major'
20742
if test "X$HPUX_IA64_MODE" = X32; then
20743
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20745
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20747
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20751
hardcode_into_libs=yes
20752
dynamic_linker="$host_os dld.sl"
20753
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20754
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20755
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20756
soname_spec='${libname}${release}${shared_ext}$major'
20757
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20758
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20762
dynamic_linker="$host_os dld.sl"
20763
shlibpath_var=SHLIB_PATH
20764
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20765
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20766
soname_spec='${libname}${release}${shared_ext}$major'
20769
# HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20770
postinstall_cmds='chmod 555 $lib'
20771
# or fails outright, so override atomically:
20772
install_override_mode=555
20776
version_type=linux # correct to gnu/linux during the next big refactor
20779
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20780
soname_spec='${libname}${release}${shared_ext}$major'
20781
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20782
shlibpath_var=LD_LIBRARY_PATH
20783
shlibpath_overrides_runpath=no
20784
hardcode_into_libs=yes
20787
irix5* | irix6* | nonstopux*)
20789
nonstopux*) version_type=nonstopux ;;
20791
if test "$lt_cv_prog_gnu_ld" = yes; then
20792
version_type=linux # correct to gnu/linux during the next big refactor
20799
soname_spec='${libname}${release}${shared_ext}$major'
20800
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20802
irix5* | nonstopux*)
20803
libsuff= shlibsuff=
20806
case $LD in # libtool.m4 will add one of these switches to LD
20807
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20808
libsuff= shlibsuff= libmagic=32-bit;;
20809
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20810
libsuff=32 shlibsuff=N32 libmagic=N32;;
20811
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20812
libsuff=64 shlibsuff=64 libmagic=64-bit;;
20813
*) libsuff= shlibsuff= libmagic=never-match;;
20817
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20818
shlibpath_overrides_runpath=no
20819
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20820
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20821
hardcode_into_libs=yes
20824
# No shared lib support for Linux oldld, aout, or coff.
20825
linux*oldld* | linux*aout* | linux*coff*)
20829
# This must be glibc/ELF.
20830
linux* | k*bsd*-gnu | kopensolaris*-gnu)
20831
version_type=linux # correct to gnu/linux during the next big refactor
20834
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20835
soname_spec='${libname}${release}${shared_ext}$major'
20836
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20837
shlibpath_var=LD_LIBRARY_PATH
20838
shlibpath_overrides_runpath=no
20840
# Some binutils ld are patched to set DT_RUNPATH
20841
if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
20842
$as_echo_n "(cached) " >&6
20844
lt_cv_shlibpath_overrides_runpath=no
20845
save_LDFLAGS=$LDFLAGS
20846
save_libdir=$libdir
20847
eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
20848
LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
20849
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20850
/* end confdefs.h. */
20852
#ifdef F77_DUMMY_MAIN
20854
# ifdef __cplusplus
20857
int F77_DUMMY_MAIN() { return 1; }
20868
if ac_fn_c_try_link "$LINENO"; then :
20869
if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
20870
lt_cv_shlibpath_overrides_runpath=yes
20873
rm -f core conftest.err conftest.$ac_objext \
20874
conftest$ac_exeext conftest.$ac_ext
20875
LDFLAGS=$save_LDFLAGS
20876
libdir=$save_libdir
20880
shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20882
# This implies no fast_install, which is unacceptable.
20883
# Some rework will be needed to allow for fast_install
20884
# before this can be enabled.
20885
hardcode_into_libs=yes
20887
# Append ld.so.conf contents to the search path
20888
if test -f /etc/ld.so.conf; then
20889
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
20890
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20893
# We used to test for /lib/ld.so.1 and disable shared libraries on
20894
# powerpc, because MkLinux only supported shared libraries with the
20895
# GNU dynamic linker. Since this was broken with cross compilers,
20896
# most powerpc-linux boxes support dynamic linking these days and
20897
# people can always --disable-shared, the test was removed, and we
20898
# assume the GNU/Linux dynamic linker is in use.
20899
dynamic_linker='GNU/Linux ld.so'
20906
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20907
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20908
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20909
dynamic_linker='NetBSD (a.out) ld.so'
20911
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20912
soname_spec='${libname}${release}${shared_ext}$major'
20913
dynamic_linker='NetBSD ld.elf_so'
20915
shlibpath_var=LD_LIBRARY_PATH
20916
shlibpath_overrides_runpath=yes
20917
hardcode_into_libs=yes
20921
version_type=linux # correct to gnu/linux during the next big refactor
20922
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20923
shlibpath_var=LD_LIBRARY_PATH
20924
shlibpath_overrides_runpath=yes
20931
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20932
soname_spec='${libname}${release}${shared_ext}$major'
20933
shlibpath_var=LD_LIBRARY_PATH
20934
shlibpath_overrides_runpath=no
20935
hardcode_into_libs=yes
20936
dynamic_linker='ldqnx.so'
20941
sys_lib_dlsearch_path_spec="/usr/lib"
20943
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20945
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20946
*) need_version=no ;;
20948
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20949
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20950
shlibpath_var=LD_LIBRARY_PATH
20951
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20953
openbsd2.[89] | openbsd2.[89].*)
20954
shlibpath_overrides_runpath=no
20957
shlibpath_overrides_runpath=yes
20961
shlibpath_overrides_runpath=yes
20966
libname_spec='$name'
20969
library_names_spec='$libname${shared_ext} $libname.a'
20970
dynamic_linker='OS/2 ld.exe'
20971
shlibpath_var=LIBPATH
20974
osf3* | osf4* | osf5*)
20978
soname_spec='${libname}${release}${shared_ext}$major'
20979
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20980
shlibpath_var=LD_LIBRARY_PATH
20981
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20982
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20990
version_type=linux # correct to gnu/linux during the next big refactor
20993
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20994
soname_spec='${libname}${release}${shared_ext}$major'
20995
shlibpath_var=LD_LIBRARY_PATH
20996
shlibpath_overrides_runpath=yes
20997
hardcode_into_libs=yes
20998
# ldd complains unless libraries are executable
20999
postinstall_cmds='chmod +x $lib'
21004
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21005
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21006
shlibpath_var=LD_LIBRARY_PATH
21007
shlibpath_overrides_runpath=yes
21008
if test "$with_gnu_ld" = yes; then
21015
version_type=linux # correct to gnu/linux during the next big refactor
21016
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21017
soname_spec='${libname}${release}${shared_ext}$major'
21018
shlibpath_var=LD_LIBRARY_PATH
21019
case $host_vendor in
21021
shlibpath_overrides_runpath=no
21023
runpath_var=LD_RUN_PATH
21031
shlibpath_overrides_runpath=no
21032
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21038
if test -d /usr/nec ;then
21039
version_type=linux # correct to gnu/linux during the next big refactor
21040
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21041
soname_spec='$libname${shared_ext}.$major'
21042
shlibpath_var=LD_LIBRARY_PATH
21046
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21047
version_type=freebsd-elf
21050
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21051
soname_spec='${libname}${release}${shared_ext}$major'
21052
shlibpath_var=LD_LIBRARY_PATH
21053
shlibpath_overrides_runpath=yes
21054
hardcode_into_libs=yes
21055
if test "$with_gnu_ld" = yes; then
21056
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21058
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21061
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21065
sys_lib_dlsearch_path_spec='/usr/lib'
21069
# TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21070
version_type=linux # correct to gnu/linux during the next big refactor
21073
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21074
shlibpath_var=LD_LIBRARY_PATH
21075
shlibpath_overrides_runpath=no
21076
hardcode_into_libs=yes
21080
version_type=linux # correct to gnu/linux during the next big refactor
21081
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21082
soname_spec='${libname}${release}${shared_ext}$major'
21083
shlibpath_var=LD_LIBRARY_PATH
21090
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21091
$as_echo "$dynamic_linker" >&6; }
21092
test "$dynamic_linker" = no && can_build_shared=no
21094
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21095
if test "$GCC" = yes; then
21096
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21099
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21100
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21102
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21103
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21197
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21198
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21200
if test -n "$hardcode_libdir_flag_spec" ||
21201
test -n "$runpath_var" ||
21202
test "X$hardcode_automatic" = "Xyes" ; then
21204
# We can hardcode non-existent directories.
21205
if test "$hardcode_direct" != no &&
21206
# If the only mechanism to avoid hardcoding is shlibpath_var, we
21207
# have to relink, otherwise we might link with an installed library
21208
# when we should be linking with a yet-to-be-installed one
21209
## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
21210
test "$hardcode_minus_L" != no; then
21211
# Linking always hardcodes the temporary library directory.
21212
hardcode_action=relink
21214
# We can link without hardcoding, and we can hardcode nonexisting dirs.
21215
hardcode_action=immediate
21218
# We cannot hardcode anything, or else we can only hardcode existing
21220
hardcode_action=unsupported
21222
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
21223
$as_echo "$hardcode_action" >&6; }
21225
if test "$hardcode_action" = relink ||
21226
test "$inherit_rpath" = yes; then
21227
# Fast installation is not supported
21228
enable_fast_install=no
21229
elif test "$shlibpath_overrides_runpath" = yes ||
21230
test "$enable_shared" = no; then
21231
# Fast installation is not necessary
21232
enable_fast_install=needless
21240
if test "x$enable_dlopen" != xyes; then
21241
enable_dlopen=unknown
21242
enable_dlopen_self=unknown
21243
enable_dlopen_self_static=unknown
21250
lt_cv_dlopen="load_add_on"
21252
lt_cv_dlopen_self=yes
21255
mingw* | pw32* | cegcc*)
21256
lt_cv_dlopen="LoadLibrary"
21261
lt_cv_dlopen="dlopen"
21266
# if libdl is installed we need to link against it
21267
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
21268
$as_echo_n "checking for dlopen in -ldl... " >&6; }
21269
if ${ac_cv_lib_dl_dlopen+:} false; then :
21270
$as_echo_n "(cached) " >&6
21272
ac_check_lib_save_LIBS=$LIBS
21274
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21275
/* end confdefs.h. */
21277
/* Override any GCC internal prototype to avoid an error.
21278
Use char because int might match the return type of a GCC
21279
builtin and then its argument prototype would still apply. */
21284
#ifdef F77_DUMMY_MAIN
21286
# ifdef __cplusplus
21289
int F77_DUMMY_MAIN() { return 1; }
21300
if ac_fn_c_try_link "$LINENO"; then :
21301
ac_cv_lib_dl_dlopen=yes
21303
ac_cv_lib_dl_dlopen=no
21305
rm -f core conftest.err conftest.$ac_objext \
21306
conftest$ac_exeext conftest.$ac_ext
21307
LIBS=$ac_check_lib_save_LIBS
21309
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
21310
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
21311
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
21312
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
21315
lt_cv_dlopen="dyld"
21317
lt_cv_dlopen_self=yes
21324
ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
21325
if test "x$ac_cv_func_shl_load" = xyes; then :
21326
lt_cv_dlopen="shl_load"
21328
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
21329
$as_echo_n "checking for shl_load in -ldld... " >&6; }
21330
if ${ac_cv_lib_dld_shl_load+:} false; then :
21331
$as_echo_n "(cached) " >&6
21333
ac_check_lib_save_LIBS=$LIBS
21335
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21336
/* end confdefs.h. */
21338
/* Override any GCC internal prototype to avoid an error.
21339
Use char because int might match the return type of a GCC
21340
builtin and then its argument prototype would still apply. */
21345
#ifdef F77_DUMMY_MAIN
21347
# ifdef __cplusplus
21350
int F77_DUMMY_MAIN() { return 1; }
21356
return shl_load ();
21361
if ac_fn_c_try_link "$LINENO"; then :
21362
ac_cv_lib_dld_shl_load=yes
21364
ac_cv_lib_dld_shl_load=no
21366
rm -f core conftest.err conftest.$ac_objext \
21367
conftest$ac_exeext conftest.$ac_ext
21368
LIBS=$ac_check_lib_save_LIBS
21370
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
21371
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
21372
if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
21373
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
21375
ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
21376
if test "x$ac_cv_func_dlopen" = xyes; then :
21377
lt_cv_dlopen="dlopen"
21379
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
21380
$as_echo_n "checking for dlopen in -ldl... " >&6; }
21381
if ${ac_cv_lib_dl_dlopen+:} false; then :
21382
$as_echo_n "(cached) " >&6
21384
ac_check_lib_save_LIBS=$LIBS
21386
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21387
/* end confdefs.h. */
21389
/* Override any GCC internal prototype to avoid an error.
21390
Use char because int might match the return type of a GCC
21391
builtin and then its argument prototype would still apply. */
21396
#ifdef F77_DUMMY_MAIN
21398
# ifdef __cplusplus
21401
int F77_DUMMY_MAIN() { return 1; }
21412
if ac_fn_c_try_link "$LINENO"; then :
21413
ac_cv_lib_dl_dlopen=yes
21415
ac_cv_lib_dl_dlopen=no
21417
rm -f core conftest.err conftest.$ac_objext \
21418
conftest$ac_exeext conftest.$ac_ext
21419
LIBS=$ac_check_lib_save_LIBS
21421
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
21422
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
21423
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
21424
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
21426
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
21427
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
21428
if ${ac_cv_lib_svld_dlopen+:} false; then :
21429
$as_echo_n "(cached) " >&6
21431
ac_check_lib_save_LIBS=$LIBS
21432
LIBS="-lsvld $LIBS"
21433
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21434
/* end confdefs.h. */
21436
/* Override any GCC internal prototype to avoid an error.
21437
Use char because int might match the return type of a GCC
21438
builtin and then its argument prototype would still apply. */
21443
#ifdef F77_DUMMY_MAIN
21445
# ifdef __cplusplus
21448
int F77_DUMMY_MAIN() { return 1; }
21459
if ac_fn_c_try_link "$LINENO"; then :
21460
ac_cv_lib_svld_dlopen=yes
21462
ac_cv_lib_svld_dlopen=no
21464
rm -f core conftest.err conftest.$ac_objext \
21465
conftest$ac_exeext conftest.$ac_ext
21466
LIBS=$ac_check_lib_save_LIBS
21468
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
21469
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
21470
if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
21471
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
21473
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
21474
$as_echo_n "checking for dld_link in -ldld... " >&6; }
21475
if ${ac_cv_lib_dld_dld_link+:} false; then :
21476
$as_echo_n "(cached) " >&6
21478
ac_check_lib_save_LIBS=$LIBS
21480
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21481
/* end confdefs.h. */
21483
/* Override any GCC internal prototype to avoid an error.
21484
Use char because int might match the return type of a GCC
21485
builtin and then its argument prototype would still apply. */
21490
#ifdef F77_DUMMY_MAIN
21492
# ifdef __cplusplus
21495
int F77_DUMMY_MAIN() { return 1; }
21501
return dld_link ();
21506
if ac_fn_c_try_link "$LINENO"; then :
21507
ac_cv_lib_dld_dld_link=yes
21509
ac_cv_lib_dld_dld_link=no
21511
rm -f core conftest.err conftest.$ac_objext \
21512
conftest$ac_exeext conftest.$ac_ext
21513
LIBS=$ac_check_lib_save_LIBS
21515
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
21516
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
21517
if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
21518
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
21539
if test "x$lt_cv_dlopen" != xno; then
21545
case $lt_cv_dlopen in
21547
save_CPPFLAGS="$CPPFLAGS"
21548
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
21550
save_LDFLAGS="$LDFLAGS"
21551
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
21554
LIBS="$lt_cv_dlopen_libs $LIBS"
21556
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
21557
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
21558
if ${lt_cv_dlopen_self+:} false; then :
21559
$as_echo_n "(cached) " >&6
21561
if test "$cross_compiling" = yes; then :
21562
lt_cv_dlopen_self=cross
21564
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
21565
lt_status=$lt_dlunknown
21566
cat > conftest.$ac_ext <<_LT_EOF
21567
#line $LINENO "configure"
21568
#include "confdefs.h"
21577
# define LT_DLGLOBAL RTLD_GLOBAL
21580
# define LT_DLGLOBAL DL_GLOBAL
21582
# define LT_DLGLOBAL 0
21586
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
21587
find out it does not work in some platform. */
21588
#ifndef LT_DLLAZY_OR_NOW
21590
# define LT_DLLAZY_OR_NOW RTLD_LAZY
21593
# define LT_DLLAZY_OR_NOW DL_LAZY
21596
# define LT_DLLAZY_OR_NOW RTLD_NOW
21599
# define LT_DLLAZY_OR_NOW DL_NOW
21601
# define LT_DLLAZY_OR_NOW 0
21608
/* When -fvisbility=hidden is used, assume the code has been annotated
21609
correspondingly for the symbols needed. */
21610
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
21611
int fnord () __attribute__((visibility("default")));
21614
int fnord () { return 42; }
21617
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
21618
int status = $lt_dlunknown;
21622
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
21625
if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
21626
else puts (dlerror ());
21628
/* dlclose (self); */
21636
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
21637
(eval $ac_link) 2>&5
21639
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21640
test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
21641
(./conftest; exit; ) >&5 2>/dev/null
21643
case x$lt_status in
21644
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
21645
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
21646
x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
21649
# compilation failed
21650
lt_cv_dlopen_self=no
21657
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
21658
$as_echo "$lt_cv_dlopen_self" >&6; }
21660
if test "x$lt_cv_dlopen_self" = xyes; then
21661
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
21662
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
21663
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
21664
if ${lt_cv_dlopen_self_static+:} false; then :
21665
$as_echo_n "(cached) " >&6
21667
if test "$cross_compiling" = yes; then :
21668
lt_cv_dlopen_self_static=cross
21670
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
21671
lt_status=$lt_dlunknown
21672
cat > conftest.$ac_ext <<_LT_EOF
21673
#line $LINENO "configure"
21674
#include "confdefs.h"
21683
# define LT_DLGLOBAL RTLD_GLOBAL
21686
# define LT_DLGLOBAL DL_GLOBAL
21688
# define LT_DLGLOBAL 0
21692
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
21693
find out it does not work in some platform. */
21694
#ifndef LT_DLLAZY_OR_NOW
21696
# define LT_DLLAZY_OR_NOW RTLD_LAZY
21699
# define LT_DLLAZY_OR_NOW DL_LAZY
21702
# define LT_DLLAZY_OR_NOW RTLD_NOW
21705
# define LT_DLLAZY_OR_NOW DL_NOW
21707
# define LT_DLLAZY_OR_NOW 0
21714
/* When -fvisbility=hidden is used, assume the code has been annotated
21715
correspondingly for the symbols needed. */
21716
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
21717
int fnord () __attribute__((visibility("default")));
21720
int fnord () { return 42; }
21723
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
21724
int status = $lt_dlunknown;
21728
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
21731
if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
21732
else puts (dlerror ());
21734
/* dlclose (self); */
21742
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
21743
(eval $ac_link) 2>&5
21745
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21746
test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
21747
(./conftest; exit; ) >&5 2>/dev/null
21749
case x$lt_status in
21750
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
21751
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
21752
x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
21755
# compilation failed
21756
lt_cv_dlopen_self_static=no
21763
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
21764
$as_echo "$lt_cv_dlopen_self_static" >&6; }
21767
CPPFLAGS="$save_CPPFLAGS"
21768
LDFLAGS="$save_LDFLAGS"
21773
case $lt_cv_dlopen_self in
21774
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
21775
*) enable_dlopen_self=unknown ;;
21778
case $lt_cv_dlopen_self_static in
21779
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
21780
*) enable_dlopen_self_static=unknown ;;
21802
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
21803
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
21804
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
21805
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
21806
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
21807
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21808
$as_echo "yes" >&6; }
21810
# FIXME - insert some real tests, host_os isn't really good enough
21813
if test -n "$STRIP" ; then
21814
striplib="$STRIP -x"
21815
old_striplib="$STRIP -S"
21816
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21817
$as_echo "yes" >&6; }
21819
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21820
$as_echo "no" >&6; }
21824
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21825
$as_echo "no" >&6; }
21841
# Report which library types will actually be built
21842
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
21843
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
21844
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
21845
$as_echo "$can_build_shared" >&6; }
21847
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
21848
$as_echo_n "checking whether to build shared libraries... " >&6; }
21849
test "$can_build_shared" = "no" && enable_shared=no
21851
# On AIX, shared libraries and static libraries use the same namespace, and
21852
# are all built from PIC.
21855
test "$enable_shared" = yes && enable_static=no
21856
if test -n "$RANLIB"; then
21857
archive_cmds="$archive_cmds~\$RANLIB \$lib"
21858
postinstall_cmds='$RANLIB $lib'
21863
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21864
test "$enable_shared" = yes && enable_static=no
21868
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
21869
$as_echo "$enable_shared" >&6; }
21871
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
21872
$as_echo_n "checking whether to build static libraries... " >&6; }
21873
# Make sure either enable_shared or enable_static is yes.
21874
test "$enable_shared" = yes || enable_static=yes
21875
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
21876
$as_echo "$enable_static" >&6; }
21883
ac_cpp='$CPP $CPPFLAGS'
21884
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21885
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21886
ac_compiler_gnu=$ac_cv_c_compiler_gnu
21890
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
21891
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
21892
(test "X$CXX" != "Xg++"))) ; then
21894
ac_cpp='$CXXCPP $CPPFLAGS'
21895
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21896
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21897
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21898
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
21899
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
21900
if test -z "$CXXCPP"; then
21901
if ${ac_cv_prog_CXXCPP+:} false; then :
21902
$as_echo_n "(cached) " >&6
21904
# Double quotes because CXXCPP needs to be expanded
21905
for CXXCPP in "$CXX -E" "/lib/cpp"
21907
ac_preproc_ok=false
21908
for ac_cxx_preproc_warn_flag in '' yes
21910
# Use a header file that comes with gcc, so configuring glibc
21911
# with a fresh cross-compiler works.
21912
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21913
# <limits.h> exists even on freestanding compilers.
21914
# On the NeXT, cc -E runs the code through the compiler's parser,
21915
# not just through cpp. "Syntax error" is here to catch this case.
21916
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21917
/* end confdefs.h. */
21919
# include <limits.h>
21921
# include <assert.h>
21925
if ac_fn_cxx_try_cpp "$LINENO"; then :
21928
# Broken: fails on valid input.
21931
rm -f conftest.err conftest.i conftest.$ac_ext
21933
# OK, works on sane cases. Now check whether nonexistent headers
21934
# can be detected and how.
21935
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21936
/* end confdefs.h. */
21937
#include <ac_nonexistent.h>
21939
if ac_fn_cxx_try_cpp "$LINENO"; then :
21940
# Broken: success on invalid input.
21943
# Passes both tests.
21947
rm -f conftest.err conftest.i conftest.$ac_ext
21950
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
21951
rm -f conftest.i conftest.err conftest.$ac_ext
21952
if $ac_preproc_ok; then :
21957
ac_cv_prog_CXXCPP=$CXXCPP
21960
CXXCPP=$ac_cv_prog_CXXCPP
21962
ac_cv_prog_CXXCPP=$CXXCPP
21964
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
21965
$as_echo "$CXXCPP" >&6; }
21966
ac_preproc_ok=false
21967
for ac_cxx_preproc_warn_flag in '' yes
21969
# Use a header file that comes with gcc, so configuring glibc
21970
# with a fresh cross-compiler works.
21971
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21972
# <limits.h> exists even on freestanding compilers.
21973
# On the NeXT, cc -E runs the code through the compiler's parser,
21974
# not just through cpp. "Syntax error" is here to catch this case.
21975
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21976
/* end confdefs.h. */
21978
# include <limits.h>
21980
# include <assert.h>
21984
if ac_fn_cxx_try_cpp "$LINENO"; then :
21987
# Broken: fails on valid input.
21990
rm -f conftest.err conftest.i conftest.$ac_ext
21992
# OK, works on sane cases. Now check whether nonexistent headers
21993
# can be detected and how.
21994
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21995
/* end confdefs.h. */
21996
#include <ac_nonexistent.h>
21998
if ac_fn_cxx_try_cpp "$LINENO"; then :
21999
# Broken: success on invalid input.
22002
# Passes both tests.
22006
rm -f conftest.err conftest.i conftest.$ac_ext
22009
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22010
rm -f conftest.i conftest.err conftest.$ac_ext
22011
if $ac_preproc_ok; then :
22014
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22015
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22016
as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
22017
See \`config.log' for more details" "$LINENO" 5; }
22021
ac_cpp='$CPP $CPPFLAGS'
22022
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22023
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22024
ac_compiler_gnu=$ac_cv_c_compiler_gnu
22027
_lt_caught_CXX_error=yes
22031
ac_cpp='$CXXCPP $CPPFLAGS'
22032
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22033
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22034
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22036
archive_cmds_need_lc_CXX=no
22037
allow_undefined_flag_CXX=
22038
always_export_symbols_CXX=no
22039
archive_expsym_cmds_CXX=
22040
compiler_needs_object_CXX=no
22041
export_dynamic_flag_spec_CXX=
22042
hardcode_direct_CXX=no
22043
hardcode_direct_absolute_CXX=no
22044
hardcode_libdir_flag_spec_CXX=
22045
hardcode_libdir_separator_CXX=
22046
hardcode_minus_L_CXX=no
22047
hardcode_shlibpath_var_CXX=unsupported
22048
hardcode_automatic_CXX=no
22049
inherit_rpath_CXX=no
22051
module_expsym_cmds_CXX=
22052
link_all_deplibs_CXX=unknown
22053
old_archive_cmds_CXX=$old_archive_cmds
22054
reload_flag_CXX=$reload_flag
22055
reload_cmds_CXX=$reload_cmds
22056
no_undefined_flag_CXX=
22057
whole_archive_flag_spec_CXX=
22058
enable_shared_with_static_runtimes_CXX=no
22060
# Source file extension for C++ test sources.
22063
# Object file extension for compiled C++ test sources.
22067
# No sense in running all these tests if we already determined that
22068
# the CXX compiler isn't working. Some variables (like enable_shared)
22069
# are currently assumed to apply to all compilers on this platform,
22070
# and will be corrupted by setting them based on a non-working compiler.
22071
if test "$_lt_caught_CXX_error" != yes; then
22072
# Code to be used in simple compile tests
22073
lt_simple_compile_test_code="int some_variable = 0;"
22075
# Code to be used in simple link tests
22076
lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
22078
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
22085
# If no C compiler was specified, use CC.
22088
# If no C compiler flags were specified, use CFLAGS.
22089
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
22091
# Allow CC to be a program name with arguments.
22095
# save warnings/boilerplate of simple test code
22096
ac_outfile=conftest.$ac_objext
22097
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
22098
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
22099
_lt_compiler_boilerplate=`cat conftest.err`
22102
ac_outfile=conftest.$ac_objext
22103
echo "$lt_simple_link_test_code" >conftest.$ac_ext
22104
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
22105
_lt_linker_boilerplate=`cat conftest.err`
22109
# Allow CC to be a program name with arguments.
22111
lt_save_CFLAGS=$CFLAGS
22115
lt_save_with_gnu_ld=$with_gnu_ld
22116
lt_save_path_LD=$lt_cv_path_LD
22117
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
22118
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
22120
$as_unset lt_cv_prog_gnu_ld
22122
if test -n "${lt_cv_path_LDCXX+set}"; then
22123
lt_cv_path_LD=$lt_cv_path_LDCXX
22125
$as_unset lt_cv_path_LD
22127
test -z "${LDCXX+set}" || LD=$LDCXX
22132
for cc_temp in $compiler""; do
22134
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22135
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22140
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
22143
if test -n "$compiler"; then
22144
# We don't want -fno-exception when compiling C++ code, so set the
22145
# no_builtin_flag separately
22146
if test "$GXX" = yes; then
22147
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
22149
lt_prog_compiler_no_builtin_flag_CXX=
22152
if test "$GXX" = yes; then
22153
# Set up default GNU C++ configuration
22157
# Check whether --with-gnu-ld was given.
22158
if test "${with_gnu_ld+set}" = set; then :
22159
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
22165
if test "$GCC" = yes; then
22166
# Check if gcc -print-prog-name=ld gives a path.
22167
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
22168
$as_echo_n "checking for ld used by $CC... " >&6; }
22171
# gcc leaves a trailing carriage return which upsets mingw
22172
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
22174
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
22177
# Accept absolute paths.
22179
re_direlt='/[^/][^/]*/\.\./'
22180
# Canonicalize the pathname of ld
22181
ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
22182
while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
22183
ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
22185
test -z "$LD" && LD="$ac_prog"
22188
# If it fails, then pretend we aren't using GCC.
22192
# If it is relative, then search for the first ld in PATH.
22193
with_gnu_ld=unknown
22196
elif test "$with_gnu_ld" = yes; then
22197
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
22198
$as_echo_n "checking for GNU ld... " >&6; }
22200
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
22201
$as_echo_n "checking for non-GNU ld... " >&6; }
22203
if ${lt_cv_path_LD+:} false; then :
22204
$as_echo_n "(cached) " >&6
22206
if test -z "$LD"; then
22207
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
22208
for ac_dir in $PATH; do
22210
test -z "$ac_dir" && ac_dir=.
22211
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
22212
lt_cv_path_LD="$ac_dir/$ac_prog"
22213
# Check to see if the program is GNU ld. I'd rather use --version,
22214
# but apparently some variants of GNU ld only accept -v.
22215
# Break only if it was the GNU/non-GNU ld that we prefer.
22216
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
22217
*GNU* | *'with BFD'*)
22218
test "$with_gnu_ld" != no && break
22221
test "$with_gnu_ld" != yes && break
22228
lt_cv_path_LD="$LD" # Let the user override the test with a path.
22232
LD="$lt_cv_path_LD"
22233
if test -n "$LD"; then
22234
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
22235
$as_echo "$LD" >&6; }
22237
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22238
$as_echo "no" >&6; }
22240
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
22241
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
22242
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
22243
if ${lt_cv_prog_gnu_ld+:} false; then :
22244
$as_echo_n "(cached) " >&6
22246
# I'd rather use --version here, but apparently some GNU lds only accept -v.
22247
case `$LD -v 2>&1 </dev/null` in
22248
*GNU* | *'with BFD'*)
22249
lt_cv_prog_gnu_ld=yes
22252
lt_cv_prog_gnu_ld=no
22256
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
22257
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
22258
with_gnu_ld=$lt_cv_prog_gnu_ld
22266
# Check if GNU C++ uses GNU ld as the underlying linker, since the
22267
# archiving commands below assume that GNU ld is being used.
22268
if test "$with_gnu_ld" = yes; then
22269
archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
22270
archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22272
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
22273
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
22275
# If archive_cmds runs LD, not CC, wlarc should be empty
22276
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
22277
# investigate it a little bit more. (MM)
22280
# ancient GNU ld didn't support --whole-archive et. al.
22281
if eval "`$CC -print-prog-name=ld` --help 2>&1" |
22282
$GREP 'no-whole-archive' > /dev/null; then
22283
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
22285
whole_archive_flag_spec_CXX=
22291
# A generic and very simple default shared library creation
22292
# command for GNU C++ for the case where it uses the native
22293
# linker, instead of GNU ld. If possible, this setting should
22294
# overridden to take advantage of the native linker features on
22295
# the platform it is being used on.
22296
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
22299
# Commands to make compiler produce verbose output that lists
22300
# what "hidden" libraries, object files and flags are used when
22301
# linking a shared library.
22302
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
22310
# PORTME: fill in a description of your system's C++ link characteristics
22311
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
22312
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
22316
# FIXME: insert proper C++ library support
22320
if test "$host_cpu" = ia64; then
22321
# On IA64, the linker does run time linking by default, so we don't
22322
# have to do anything special.
22323
aix_use_runtimelinking=no
22324
exp_sym_flag='-Bexport'
22327
aix_use_runtimelinking=no
22329
# Test if we are trying to use run time linking or normal
22330
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
22331
# need to do runtime linking.
22332
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
22333
for ld_flag in $LDFLAGS; do
22336
aix_use_runtimelinking=yes
22344
exp_sym_flag='-bexport'
22345
no_entry_flag='-bnoentry'
22348
# When large executables or shared objects are built, AIX ld can
22349
# have problems creating the table of contents. If linking a library
22350
# or program results in "error TOC overflow" add -mminimal-toc to
22351
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
22352
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22354
archive_cmds_CXX=''
22355
hardcode_direct_CXX=yes
22356
hardcode_direct_absolute_CXX=yes
22357
hardcode_libdir_separator_CXX=':'
22358
link_all_deplibs_CXX=yes
22359
file_list_spec_CXX='${wl}-f,'
22361
if test "$GXX" = yes; then
22362
case $host_os in aix4.[012]|aix4.[012].*)
22363
# We only want to do this on AIX 4.2 and lower, the check
22364
# below for broken collect2 doesn't work under 4.3+
22365
collect2name=`${CC} -print-prog-name=collect2`
22366
if test -f "$collect2name" &&
22367
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
22369
# We have reworked collect2
22372
# We have old collect2
22373
hardcode_direct_CXX=unsupported
22374
# It fails to find uninstalled libraries when the uninstalled
22375
# path is not listed in the libpath. Setting hardcode_minus_L
22376
# to unsupported forces relinking
22377
hardcode_minus_L_CXX=yes
22378
hardcode_libdir_flag_spec_CXX='-L$libdir'
22379
hardcode_libdir_separator_CXX=
22382
shared_flag='-shared'
22383
if test "$aix_use_runtimelinking" = yes; then
22384
shared_flag="$shared_flag "'${wl}-G'
22388
if test "$host_cpu" = ia64; then
22389
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22390
# chokes on -Wl,-G. The following line is correct:
22393
if test "$aix_use_runtimelinking" = yes; then
22394
shared_flag='${wl}-G'
22396
shared_flag='${wl}-bM:SRE'
22401
export_dynamic_flag_spec_CXX='${wl}-bexpall'
22402
# It seems that -bexpall does not export symbols beginning with
22403
# underscore (_), so it is better to generate a list of symbols to
22405
always_export_symbols_CXX=yes
22406
if test "$aix_use_runtimelinking" = yes; then
22407
# Warning - without using the other runtime loading flags (-brtl),
22408
# -berok will link without error, but may produce a broken library.
22409
allow_undefined_flag_CXX='-berok'
22410
# Determine the default libpath from the value encoded in an empty
22412
if test "${lt_cv_aix_libpath+set}" = set; then
22413
aix_libpath=$lt_cv_aix_libpath
22415
if ${lt_cv_aix_libpath__CXX+:} false; then :
22416
$as_echo_n "(cached) " >&6
22418
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22419
/* end confdefs.h. */
22421
#ifdef F77_DUMMY_MAIN
22423
# ifdef __cplusplus
22426
int F77_DUMMY_MAIN() { return 1; }
22437
if ac_fn_cxx_try_link "$LINENO"; then :
22439
lt_aix_libpath_sed='
22440
/Import File Strings/,/^$/ {
22442
s/^0 *\([^ ]*\) *$/\1/
22446
lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22447
# Check for a 64-bit object if we didn't find anything.
22448
if test -z "$lt_cv_aix_libpath__CXX"; then
22449
lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22452
rm -f core conftest.err conftest.$ac_objext \
22453
conftest$ac_exeext conftest.$ac_ext
22454
if test -z "$lt_cv_aix_libpath__CXX"; then
22455
lt_cv_aix_libpath__CXX="/usr/lib:/lib"
22460
aix_libpath=$lt_cv_aix_libpath__CXX
22463
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
22465
archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
22467
if test "$host_cpu" = ia64; then
22468
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
22469
allow_undefined_flag_CXX="-z nodefs"
22470
archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
22472
# Determine the default libpath from the value encoded in an
22473
# empty executable.
22474
if test "${lt_cv_aix_libpath+set}" = set; then
22475
aix_libpath=$lt_cv_aix_libpath
22477
if ${lt_cv_aix_libpath__CXX+:} false; then :
22478
$as_echo_n "(cached) " >&6
22480
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22481
/* end confdefs.h. */
22483
#ifdef F77_DUMMY_MAIN
22485
# ifdef __cplusplus
22488
int F77_DUMMY_MAIN() { return 1; }
22499
if ac_fn_cxx_try_link "$LINENO"; then :
22501
lt_aix_libpath_sed='
22502
/Import File Strings/,/^$/ {
22504
s/^0 *\([^ ]*\) *$/\1/
22508
lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22509
# Check for a 64-bit object if we didn't find anything.
22510
if test -z "$lt_cv_aix_libpath__CXX"; then
22511
lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22514
rm -f core conftest.err conftest.$ac_objext \
22515
conftest$ac_exeext conftest.$ac_ext
22516
if test -z "$lt_cv_aix_libpath__CXX"; then
22517
lt_cv_aix_libpath__CXX="/usr/lib:/lib"
22522
aix_libpath=$lt_cv_aix_libpath__CXX
22525
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
22526
# Warning - without using the other run time loading flags,
22527
# -berok will link without error, but may produce a broken library.
22528
no_undefined_flag_CXX=' ${wl}-bernotok'
22529
allow_undefined_flag_CXX=' ${wl}-berok'
22530
if test "$with_gnu_ld" = yes; then
22531
# We only use this code for GNU lds that support --whole-archive.
22532
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
22534
# Exported symbols can be pulled into shared objects from archives
22535
whole_archive_flag_spec_CXX='$convenience'
22537
archive_cmds_need_lc_CXX=yes
22538
# This is similar to how AIX traditionally builds its shared
22540
archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
22546
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
22547
allow_undefined_flag_CXX=unsupported
22548
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
22549
# support --undefined. This deserves some investigation. FIXME
22550
archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22557
case $cc_basename in
22559
# FIXME: insert proper C++ library support
22565
cygwin* | mingw* | pw32* | cegcc*)
22566
case $GXX,$cc_basename in
22569
# hardcode_libdir_flag_spec is actually meaningless, as there is
22570
# no search path for DLLs.
22571
hardcode_libdir_flag_spec_CXX=' '
22572
allow_undefined_flag_CXX=unsupported
22573
always_export_symbols_CXX=yes
22574
file_list_spec_CXX='@'
22575
# Tell ltmain to make .lib files, not .a files.
22577
# Tell ltmain to make .dll files, not .so files.
22579
# FIXME: Setting linknames here is a bad hack.
22580
archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
22581
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22582
$SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
22584
$SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
22586
$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
22588
# The linker will not automatically build a static lib if we build a DLL.
22589
# _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
22590
enable_shared_with_static_runtimes_CXX=yes
22592
old_postinstall_cmds_CXX='chmod 644 $oldlib'
22593
postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
22594
lt_tool_outputfile="@TOOL_OUTPUT@"~
22595
case $lt_outputfile in
22598
lt_outputfile="$lt_outputfile.exe"
22599
lt_tool_outputfile="$lt_tool_outputfile.exe"
22602
func_to_tool_file "$lt_outputfile"~
22603
if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
22604
$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
22605
$RM "$lt_outputfile.manifest";
22610
# _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
22611
# as there is no search path for DLLs.
22612
hardcode_libdir_flag_spec_CXX='-L$libdir'
22613
export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
22614
allow_undefined_flag_CXX=unsupported
22615
always_export_symbols_CXX=no
22616
enable_shared_with_static_runtimes_CXX=yes
22618
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
22619
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22620
# If the export-symbols file already is a .def file (1st line
22621
# is EXPORTS), use it as is; otherwise, prepend...
22622
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22623
cp $export_symbols $output_objdir/$soname.def;
22625
echo EXPORTS > $output_objdir/$soname.def;
22626
cat $export_symbols >> $output_objdir/$soname.def;
22628
$CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22635
darwin* | rhapsody*)
22638
archive_cmds_need_lc_CXX=no
22639
hardcode_direct_CXX=no
22640
hardcode_automatic_CXX=yes
22641
hardcode_shlibpath_var_CXX=unsupported
22642
if test "$lt_cv_ld_force_load" = "yes"; then
22643
whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
22646
whole_archive_flag_spec_CXX=''
22648
link_all_deplibs_CXX=yes
22649
allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
22650
case $cc_basename in
22651
ifort*) _lt_dar_can_shared=yes ;;
22652
*) _lt_dar_can_shared=$GCC ;;
22654
if test "$_lt_dar_can_shared" = "yes"; then
22655
output_verbose_link_cmd=func_echo_all
22656
archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
22657
module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
22658
archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
22659
module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
22660
if test "$lt_cv_apple_cc_single_mod" != "yes"; then
22661
archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
22662
archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
22672
case $cc_basename in
22674
# FIXME: insert proper C++ library support
22678
# Green Hills C++ Compiler
22679
# FIXME: insert proper C++ library support
22683
# FIXME: insert proper C++ library support
22690
# C++ shared libraries reported to be fairly broken before
22696
archive_cmds_need_lc_CXX=no
22699
freebsd* | dragonfly*)
22700
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
22709
archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22710
link_all_deplibs_CXX=yes
22714
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
22715
hardcode_libdir_separator_CXX=:
22716
export_dynamic_flag_spec_CXX='${wl}-E'
22717
hardcode_direct_CXX=yes
22718
hardcode_minus_L_CXX=yes # Not in the search PATH,
22719
# but as the default
22720
# location of the library.
22722
case $cc_basename in
22724
# FIXME: insert proper C++ library support
22728
archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
22729
# Commands to make compiler produce verbose output that lists
22730
# what "hidden" libraries, object files and flags are used when
22731
# linking a shared library.
22733
# There doesn't appear to be a way to prevent this compiler from
22734
# explicitly linking system object files so we need to strip them
22735
# from the output so that they don't get included in the library
22737
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
22740
if test "$GXX" = yes; then
22741
archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
22743
# FIXME: insert proper C++ library support
22751
if test $with_gnu_ld = no; then
22752
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
22753
hardcode_libdir_separator_CXX=:
22759
export_dynamic_flag_spec_CXX='${wl}-E'
22765
hardcode_direct_CXX=no
22766
hardcode_shlibpath_var_CXX=no
22769
hardcode_direct_CXX=yes
22770
hardcode_direct_absolute_CXX=yes
22771
hardcode_minus_L_CXX=yes # Not in the search PATH,
22772
# but as the default
22773
# location of the library.
22777
case $cc_basename in
22779
# FIXME: insert proper C++ library support
22785
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22788
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22791
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22794
# Commands to make compiler produce verbose output that lists
22795
# what "hidden" libraries, object files and flags are used when
22796
# linking a shared library.
22798
# There doesn't appear to be a way to prevent this compiler from
22799
# explicitly linking system object files so we need to strip them
22800
# from the output so that they don't get included in the library
22802
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
22805
if test "$GXX" = yes; then
22806
if test $with_gnu_ld = no; then
22809
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22812
archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22815
archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22820
# FIXME: insert proper C++ library support
22828
hardcode_direct_CXX=no
22829
hardcode_shlibpath_var_CXX=no
22830
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
22831
export_dynamic_flag_spec_CXX='${wl}-E'
22832
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
22833
# Instead, shared libraries are loaded at an image base (0x10000000 by
22834
# default) and relocated if they conflict, which is a slow very memory
22835
# consuming and fragmenting process. To avoid this, we pick a random,
22836
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
22837
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
22838
archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
22839
archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
22842
case $cc_basename in
22845
archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
22847
# Archives containing C++ object files must be created using
22848
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
22849
# necessary to make sure instantiated templates are included
22851
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
22854
if test "$GXX" = yes; then
22855
if test "$with_gnu_ld" = no; then
22856
archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
22858
archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
22861
link_all_deplibs_CXX=yes
22864
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
22865
hardcode_libdir_separator_CXX=:
22866
inherit_rpath_CXX=yes
22869
linux* | k*bsd*-gnu | kopensolaris*-gnu)
22870
case $cc_basename in
22872
# Kuck and Associates, Inc. (KAI) C++ Compiler
22874
# KCC will only create a shared library if the output file
22875
# ends with ".so" (or ".sl" for HP-UX), so rename the library
22876
# to its proper name (with version) after linking.
22877
archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
22878
archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
22879
# Commands to make compiler produce verbose output that lists
22880
# what "hidden" libraries, object files and flags are used when
22881
# linking a shared library.
22883
# There doesn't appear to be a way to prevent this compiler from
22884
# explicitly linking system object files so we need to strip them
22885
# from the output so that they don't get included in the library
22887
output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
22889
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
22890
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
22892
# Archives containing C++ object files must be created using
22893
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
22894
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
22899
# version 8.0 and above of icpc choke on multiply defined symbols
22900
# if we add $predep_objects and $postdep_objects, however 7.1 and
22901
# earlier do not add the objects themselves.
22902
case `$CC -V 2>&1` in
22904
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
22905
archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22907
*) # Version 8.0 or newer
22910
ia64*) tmp_idyn=' -i_dynamic';;
22912
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22913
archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22916
archive_cmds_need_lc_CXX=no
22917
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
22918
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
22919
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
22922
# Portland Group C++ compiler
22924
*pgCC\ [1-5].* | *pgcpp\ [1-5].*)
22925
prelink_cmds_CXX='tpldir=Template.dir~
22927
$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
22928
compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
22929
old_archive_cmds_CXX='tpldir=Template.dir~
22931
$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
22932
$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
22934
archive_cmds_CXX='tpldir=Template.dir~
22936
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
22937
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
22938
archive_expsym_cmds_CXX='tpldir=Template.dir~
22940
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
22941
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
22943
*) # Version 6 and above use weak symbols
22944
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
22945
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
22949
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
22950
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
22951
whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
22955
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
22956
archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
22958
runpath_var=LD_RUN_PATH
22959
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
22960
hardcode_libdir_separator_CXX=:
22962
# Commands to make compiler produce verbose output that lists
22963
# what "hidden" libraries, object files and flags are used when
22964
# linking a shared library.
22966
# There doesn't appear to be a way to prevent this compiler from
22967
# explicitly linking system object files so we need to strip them
22968
# from the output so that they don't get included in the library
22970
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
22972
xl* | mpixl* | bgxl*)
22973
# IBM XL 8.0 on PPC, with GNU ld
22974
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
22975
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
22976
archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22977
if test "x$supports_anon_versioning" = xyes; then
22978
archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
22979
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22980
echo "local: *; };" >> $output_objdir/$libname.ver~
22981
$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22985
case `$CC -V 2>&1 | sed 5q` in
22988
no_undefined_flag_CXX=' -zdefs'
22989
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22990
archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
22991
hardcode_libdir_flag_spec_CXX='-R$libdir'
22992
whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
22993
compiler_needs_object_CXX=yes
22995
# Not sure whether something based on
22996
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
22998
output_verbose_link_cmd='func_echo_all'
23000
# Archives containing C++ object files must be created using
23001
# "CC -xar", where "CC" is the Sun C++ compiler. This is
23002
# necessary to make sure instantiated templates are included
23004
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
23012
# FIXME: insert proper C++ library support
23017
# FIXME: insert proper C++ library support
23022
case $cc_basename in
23024
# FIXME: insert proper C++ library support
23028
# FIXME: insert proper C++ library support
23035
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
23036
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
23038
hardcode_libdir_flag_spec_CXX='-R$libdir'
23039
hardcode_direct_CXX=yes
23040
hardcode_shlibpath_var_CXX=no
23042
# Workaround some broken pre-1.5 toolchains
23043
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
23051
# C++ shared libraries are fairly broken
23056
if test -f /usr/libexec/ld.so; then
23057
hardcode_direct_CXX=yes
23058
hardcode_shlibpath_var_CXX=no
23059
hardcode_direct_absolute_CXX=yes
23060
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
23061
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
23062
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23063
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
23064
export_dynamic_flag_spec_CXX='${wl}-E'
23065
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
23067
output_verbose_link_cmd=func_echo_all
23073
osf3* | osf4* | osf5*)
23074
case $cc_basename in
23076
# Kuck and Associates, Inc. (KAI) C++ Compiler
23078
# KCC will only create a shared library if the output file
23079
# ends with ".so" (or ".sl" for HP-UX), so rename the library
23080
# to its proper name (with version) after linking.
23081
archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
23083
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
23084
hardcode_libdir_separator_CXX=:
23086
# Archives containing C++ object files must be created using
23087
# the KAI C++ compiler.
23089
osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
23090
*) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
23094
# Rational C++ 2.4.1
23095
# FIXME: insert proper C++ library support
23101
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
23102
archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
23103
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
23106
allow_undefined_flag_CXX=' -expect_unresolved \*'
23107
archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
23108
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
23109
echo "-hidden">> $lib.exp~
23110
$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
23112
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
23116
hardcode_libdir_separator_CXX=:
23118
# Commands to make compiler produce verbose output that lists
23119
# what "hidden" libraries, object files and flags are used when
23120
# linking a shared library.
23122
# There doesn't appear to be a way to prevent this compiler from
23123
# explicitly linking system object files so we need to strip them
23124
# from the output so that they don't get included in the library
23126
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
23129
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
23130
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
23133
archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
23136
archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
23140
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
23141
hardcode_libdir_separator_CXX=:
23143
# Commands to make compiler produce verbose output that lists
23144
# what "hidden" libraries, object files and flags are used when
23145
# linking a shared library.
23146
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
23149
# FIXME: insert proper C++ library support
23157
# FIXME: insert proper C++ library support
23162
case $cc_basename in
23165
# FIXME: insert proper C++ library support
23170
# FIXME: insert proper C++ library support
23174
# FIXME: insert proper C++ library support
23181
case $cc_basename in
23183
# Sun C++ 4.2, 5.x and Centerline C++
23184
archive_cmds_need_lc_CXX=yes
23185
no_undefined_flag_CXX=' -zdefs'
23186
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
23187
archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
23188
$CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
23190
hardcode_libdir_flag_spec_CXX='-R$libdir'
23191
hardcode_shlibpath_var_CXX=no
23193
solaris2.[0-5] | solaris2.[0-5].*) ;;
23195
# The compiler driver will combine and reorder linker options,
23196
# but understands `-z linker_flag'.
23197
# Supported since Solaris 2.6 (maybe 2.5.1?)
23198
whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
23201
link_all_deplibs_CXX=yes
23203
output_verbose_link_cmd='func_echo_all'
23205
# Archives containing C++ object files must be created using
23206
# "CC -xar", where "CC" is the Sun C++ compiler. This is
23207
# necessary to make sure instantiated templates are included
23209
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
23212
# Green Hills C++ Compiler
23213
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
23215
# The C++ compiler must be used to create the archive.
23216
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
23219
# GNU C++ compiler with Solaris linker
23220
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
23221
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
23222
if $CC --version | $GREP -v '^2\.7' > /dev/null; then
23223
archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
23224
archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
23225
$CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
23227
# Commands to make compiler produce verbose output that lists
23228
# what "hidden" libraries, object files and flags are used when
23229
# linking a shared library.
23230
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
23232
# g++ 2.7 appears to require `-G' NOT `-shared' on this
23234
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
23235
archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
23236
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
23238
# Commands to make compiler produce verbose output that lists
23239
# what "hidden" libraries, object files and flags are used when
23240
# linking a shared library.
23241
output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
23244
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
23246
solaris2.[0-5] | solaris2.[0-5].*) ;;
23248
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
23256
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
23257
no_undefined_flag_CXX='${wl}-z,text'
23258
archive_cmds_need_lc_CXX=no
23259
hardcode_shlibpath_var_CXX=no
23260
runpath_var='LD_RUN_PATH'
23262
case $cc_basename in
23264
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23265
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23268
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23269
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23274
sysv5* | sco3.2v5* | sco5v6*)
23275
# Note: We can NOT use -z defs as we might desire, because we do not
23276
# link with -lc, and that would cause any symbols used from libc to
23277
# always be unresolved, which means just about no library would
23278
# ever link correctly. If we're not using GNU ld we use -z text
23279
# though, which does catch some bad symbols but isn't as heavy-handed
23281
no_undefined_flag_CXX='${wl}-z,text'
23282
allow_undefined_flag_CXX='${wl}-z,nodefs'
23283
archive_cmds_need_lc_CXX=no
23284
hardcode_shlibpath_var_CXX=no
23285
hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
23286
hardcode_libdir_separator_CXX=':'
23287
link_all_deplibs_CXX=yes
23288
export_dynamic_flag_spec_CXX='${wl}-Bexport'
23289
runpath_var='LD_RUN_PATH'
23291
case $cc_basename in
23293
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23294
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23295
old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
23296
'"$old_archive_cmds_CXX"
23297
reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
23298
'"$reload_cmds_CXX"
23301
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23302
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23308
case $cc_basename in
23310
# NonStop-UX NCC 3.20
23311
# FIXME: insert proper C++ library support
23315
# FIXME: insert proper C++ library support
23322
# FIXME: insert proper C++ library support
23327
# FIXME: insert proper C++ library support
23332
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
23333
$as_echo "$ld_shlibs_CXX" >&6; }
23334
test "$ld_shlibs_CXX" = no && can_build_shared=no
23340
## There is no encapsulation within the following macros, do not change
23341
## the running order or otherwise move them around unless you know exactly
23342
## what you are doing...
23343
# Dependencies to place before and after the object being linked:
23344
predep_objects_CXX=
23345
postdep_objects_CXX=
23348
compiler_lib_search_path_CXX=
23350
cat > conftest.$ac_ext <<_LT_EOF
23354
Foo (void) { a = 0; }
23361
_lt_libdeps_save_CFLAGS=$CFLAGS
23362
case "$CC $CFLAGS " in #(
23363
*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
23364
*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
23365
*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
23368
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
23369
(eval $ac_compile) 2>&5
23371
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23372
test $ac_status = 0; }; then
23373
# Parse the compiler output and extract the necessary
23374
# objects, libraries and library flags.
23376
# Sentinel used to keep track of whether or not we are before
23377
# the conftest object file.
23378
pre_test_object_deps_done=no
23380
for p in `eval "$output_verbose_link_cmd"`; do
23381
case ${prev}${p} in
23384
# Some compilers place space between "-{L,R}" and the path.
23385
# Remove the space.
23386
if test $p = "-L" ||
23387
test $p = "-R"; then
23392
# Expand the sysroot to ease extracting the directories later.
23393
if test -z "$prev"; then
23395
-L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
23396
-R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
23397
-l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
23401
=*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
23403
if test "$pre_test_object_deps_done" = no; then
23406
# Internal compiler library paths should come after those
23407
# provided the user. The postdeps already come after the
23408
# user supplied libs so there is no need to process them.
23409
if test -z "$compiler_lib_search_path_CXX"; then
23410
compiler_lib_search_path_CXX="${prev}${p}"
23412
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
23415
# The "-l" case would never come before the object being
23416
# linked, so don't bother handling this case.
23419
if test -z "$postdeps_CXX"; then
23420
postdeps_CXX="${prev}${p}"
23422
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
23428
*.lto.$objext) ;; # Ignore GCC LTO objects
23430
# This assumes that the test object file only shows up
23431
# once in the compiler output.
23432
if test "$p" = "conftest.$objext"; then
23433
pre_test_object_deps_done=yes
23437
if test "$pre_test_object_deps_done" = no; then
23438
if test -z "$predep_objects_CXX"; then
23439
predep_objects_CXX="$p"
23441
predep_objects_CXX="$predep_objects_CXX $p"
23444
if test -z "$postdep_objects_CXX"; then
23445
postdep_objects_CXX="$p"
23447
postdep_objects_CXX="$postdep_objects_CXX $p"
23452
*) ;; # Ignore the rest.
23460
echo "libtool.m4: error: problem compiling CXX test program"
23463
$RM -f confest.$objext
23464
CFLAGS=$_lt_libdeps_save_CFLAGS
23466
# PORTME: override above test on systems where it is broken
23469
# Interix 3.5 installs completely hosed .la files for C++, so rather than
23470
# hack all around it, let's just trust "g++" to DTRT.
23471
predep_objects_CXX=
23472
postdep_objects_CXX=
23477
case `$CC -V 2>&1 | sed 5q` in
23481
# The more standards-conforming stlport4 library is
23482
# incompatible with the Cstd library. Avoid specifying
23483
# it if it's in CXXFLAGS. Ignore libCrun as
23484
# -library=stlport4 depends on it.
23485
case " $CXX $CXXFLAGS " in
23486
*" -library=stlport4 "*)
23487
solaris_use_stlport4=yes
23491
if test "$solaris_use_stlport4" != yes; then
23492
postdeps_CXX='-library=Cstd -library=Crun'
23499
case $cc_basename in
23501
# The more standards-conforming stlport4 library is
23502
# incompatible with the Cstd library. Avoid specifying
23503
# it if it's in CXXFLAGS. Ignore libCrun as
23504
# -library=stlport4 depends on it.
23505
case " $CXX $CXXFLAGS " in
23506
*" -library=stlport4 "*)
23507
solaris_use_stlport4=yes
23511
# Adding this requires a known-good setup of shared libraries for
23512
# Sun compiler versions before 5.6, else PIC objects from an old
23513
# archive will be linked into the output, leading to subtle bugs.
23514
if test "$solaris_use_stlport4" != yes; then
23515
postdeps_CXX='-library=Cstd -library=Crun'
23523
case " $postdeps_CXX " in
23524
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
23526
compiler_lib_search_dirs_CXX=
23527
if test -n "${compiler_lib_search_path_CXX}"; then
23528
compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
23561
lt_prog_compiler_wl_CXX=
23562
lt_prog_compiler_pic_CXX=
23563
lt_prog_compiler_static_CXX=
23566
# C++ specific cases for pic, static, wl, etc.
23567
if test "$GXX" = yes; then
23568
lt_prog_compiler_wl_CXX='-Wl,'
23569
lt_prog_compiler_static_CXX='-static'
23573
# All AIX code is PIC.
23574
if test "$host_cpu" = ia64; then
23575
# AIX 5 now supports IA64 processor
23576
lt_prog_compiler_static_CXX='-Bstatic'
23583
# see comment about AmigaOS4 .so support
23584
lt_prog_compiler_pic_CXX='-fPIC'
23587
# FIXME: we need at least 68020 code to build shared libraries, but
23588
# adding the `-m68020' flag to GCC prevents building anything better,
23590
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
23595
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23596
# PIC is the default for these OSes.
23598
mingw* | cygwin* | os2* | pw32* | cegcc*)
23599
# This hack is so that the source file can tell whether it is being
23600
# built for inclusion in a dll (and should export symbols for example).
23601
# Although the cygwin gcc ignores -fPIC, still need this for old-style
23602
# (--disable-auto-import) libraries
23603
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
23605
darwin* | rhapsody*)
23606
# PIC is the default on this platform
23607
# Common symbols not allowed in MH_DYLIB files
23608
lt_prog_compiler_pic_CXX='-fno-common'
23611
# DJGPP does not support shared libraries at all
23612
lt_prog_compiler_pic_CXX=
23615
# PIC is the default for Haiku.
23616
# The "-static" flag exists, but is broken.
23617
lt_prog_compiler_static_CXX=
23620
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
23621
# Instead, we relocate shared libraries at runtime.
23624
if test -d /usr/nec; then
23625
lt_prog_compiler_pic_CXX=-Kconform_pic
23629
# PIC is the default for 64-bit PA HP-UX, but not for 32-bit
23630
# PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
23631
# sets the default TLS model and affects inlining.
23636
lt_prog_compiler_pic_CXX='-fPIC'
23641
# QNX uses GNU C++, but need to define -shared option too, otherwise
23642
# it will coredump.
23643
lt_prog_compiler_pic_CXX='-fPIC -shared'
23646
lt_prog_compiler_pic_CXX='-fPIC'
23652
# All AIX code is PIC.
23653
if test "$host_cpu" = ia64; then
23654
# AIX 5 now supports IA64 processor
23655
lt_prog_compiler_static_CXX='-Bstatic'
23657
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
23661
case $cc_basename in
23663
# Green Hills C++ Compiler
23664
# _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
23668
mingw* | cygwin* | os2* | pw32* | cegcc*)
23669
# This hack is so that the source file can tell whether it is being
23670
# built for inclusion in a dll (and should export symbols for example).
23671
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
23674
case $cc_basename in
23676
lt_prog_compiler_pic_CXX='-KPIC'
23679
# Green Hills C++ Compiler
23680
lt_prog_compiler_pic_CXX='-pic'
23686
freebsd* | dragonfly*)
23687
# FreeBSD uses GNU C++
23689
hpux9* | hpux10* | hpux11*)
23690
case $cc_basename in
23692
lt_prog_compiler_wl_CXX='-Wl,'
23693
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
23694
if test "$host_cpu" != ia64; then
23695
lt_prog_compiler_pic_CXX='+Z'
23699
lt_prog_compiler_wl_CXX='-Wl,'
23700
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
23706
lt_prog_compiler_pic_CXX='+Z'
23715
# This is c89, which is MS Visual C++ (no shared libs)
23716
# Anyone wants to do a port?
23718
irix5* | irix6* | nonstopux*)
23719
case $cc_basename in
23721
lt_prog_compiler_wl_CXX='-Wl,'
23722
lt_prog_compiler_static_CXX='-non_shared'
23723
# CC pic flag -KPIC is the default.
23729
linux* | k*bsd*-gnu | kopensolaris*-gnu)
23730
case $cc_basename in
23733
lt_prog_compiler_wl_CXX='--backend -Wl,'
23734
lt_prog_compiler_pic_CXX='-fPIC'
23737
# old Intel C++ for x86_64 which still supported -KPIC.
23738
lt_prog_compiler_wl_CXX='-Wl,'
23739
lt_prog_compiler_pic_CXX='-KPIC'
23740
lt_prog_compiler_static_CXX='-static'
23743
# Intel C++, used to be incompatible with GCC.
23744
# ICC 10 doesn't accept -KPIC any more.
23745
lt_prog_compiler_wl_CXX='-Wl,'
23746
lt_prog_compiler_pic_CXX='-fPIC'
23747
lt_prog_compiler_static_CXX='-static'
23750
# Portland Group C++ compiler
23751
lt_prog_compiler_wl_CXX='-Wl,'
23752
lt_prog_compiler_pic_CXX='-fpic'
23753
lt_prog_compiler_static_CXX='-Bstatic'
23757
# Make sure the PIC flag is empty. It appears that all Alpha
23758
# Linux and Compaq Tru64 Unix objects are PIC.
23759
lt_prog_compiler_pic_CXX=
23760
lt_prog_compiler_static_CXX='-non_shared'
23762
xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
23763
# IBM XL 8.0, 9.0 on PPC and BlueGene
23764
lt_prog_compiler_wl_CXX='-Wl,'
23765
lt_prog_compiler_pic_CXX='-qpic'
23766
lt_prog_compiler_static_CXX='-qstaticlink'
23769
case `$CC -V 2>&1 | sed 5q` in
23772
lt_prog_compiler_pic_CXX='-KPIC'
23773
lt_prog_compiler_static_CXX='-Bstatic'
23774
lt_prog_compiler_wl_CXX='-Qoption ld '
23785
case $cc_basename in
23787
lt_prog_compiler_pic_CXX='-W c,exportall'
23796
# QNX uses GNU C++, but need to define -shared option too, otherwise
23797
# it will coredump.
23798
lt_prog_compiler_pic_CXX='-fPIC -shared'
23800
osf3* | osf4* | osf5*)
23801
case $cc_basename in
23803
lt_prog_compiler_wl_CXX='--backend -Wl,'
23806
# Rational C++ 2.4.1
23807
lt_prog_compiler_pic_CXX='-pic'
23810
# Digital/Compaq C++
23811
lt_prog_compiler_wl_CXX='-Wl,'
23812
# Make sure the PIC flag is empty. It appears that all Alpha
23813
# Linux and Compaq Tru64 Unix objects are PIC.
23814
lt_prog_compiler_pic_CXX=
23815
lt_prog_compiler_static_CXX='-non_shared'
23824
case $cc_basename in
23826
# Sun C++ 4.2, 5.x and Centerline C++
23827
lt_prog_compiler_pic_CXX='-KPIC'
23828
lt_prog_compiler_static_CXX='-Bstatic'
23829
lt_prog_compiler_wl_CXX='-Qoption ld '
23832
# Green Hills C++ Compiler
23833
lt_prog_compiler_pic_CXX='-PIC'
23840
case $cc_basename in
23843
lt_prog_compiler_pic_CXX='-pic'
23844
lt_prog_compiler_static_CXX='-Bstatic'
23848
lt_prog_compiler_pic_CXX='-pic'
23854
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23855
case $cc_basename in
23857
lt_prog_compiler_wl_CXX='-Wl,'
23858
lt_prog_compiler_pic_CXX='-KPIC'
23859
lt_prog_compiler_static_CXX='-Bstatic'
23864
case $cc_basename in
23866
# NonStop-UX NCC 3.20
23867
lt_prog_compiler_pic_CXX='-KPIC'
23876
lt_prog_compiler_can_build_shared_CXX=no
23882
# For platforms which do not support PIC, -DPIC is meaningless:
23884
lt_prog_compiler_pic_CXX=
23887
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
23891
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
23892
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
23893
if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
23894
$as_echo_n "(cached) " >&6
23896
lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
23898
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
23899
$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
23900
lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
23903
# Check to make sure the PIC flag actually works.
23905
if test -n "$lt_prog_compiler_pic_CXX"; then
23906
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
23907
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
23908
if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
23909
$as_echo_n "(cached) " >&6
23911
lt_cv_prog_compiler_pic_works_CXX=no
23912
ac_outfile=conftest.$ac_objext
23913
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
23914
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
23915
# Insert the option either (1) after the last *FLAGS variable, or
23916
# (2) before a word containing "conftest.", or (3) at the end.
23917
# Note that $ac_compile itself does not contain backslashes and begins
23918
# with a dollar sign (not a hyphen), so the echo should work correctly.
23919
# The option is referenced via a variable to avoid confusing sed.
23920
lt_compile=`echo "$ac_compile" | $SED \
23921
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23922
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23923
-e 's:$: $lt_compiler_flag:'`
23924
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
23925
(eval "$lt_compile" 2>conftest.err)
23927
cat conftest.err >&5
23928
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23929
if (exit $ac_status) && test -s "$ac_outfile"; then
23930
# The compiler can only warn and ignore the option if not recognized
23931
# So say no if there are warnings other than the usual output.
23932
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
23933
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23934
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23935
lt_cv_prog_compiler_pic_works_CXX=yes
23941
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
23942
$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
23944
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
23945
case $lt_prog_compiler_pic_CXX in
23947
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
23950
lt_prog_compiler_pic_CXX=
23951
lt_prog_compiler_can_build_shared_CXX=no
23961
# Check to make sure the static flag actually works.
23963
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
23964
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
23965
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
23966
if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
23967
$as_echo_n "(cached) " >&6
23969
lt_cv_prog_compiler_static_works_CXX=no
23970
save_LDFLAGS="$LDFLAGS"
23971
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
23972
echo "$lt_simple_link_test_code" > conftest.$ac_ext
23973
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
23974
# The linker can only warn and ignore the option if not recognized
23975
# So say no if there are warnings
23976
if test -s conftest.err; then
23977
# Append any errors to the config.log.
23978
cat conftest.err 1>&5
23979
$ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
23980
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23981
if diff conftest.exp conftest.er2 >/dev/null; then
23982
lt_cv_prog_compiler_static_works_CXX=yes
23985
lt_cv_prog_compiler_static_works_CXX=yes
23989
LDFLAGS="$save_LDFLAGS"
23992
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
23993
$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
23995
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
23998
lt_prog_compiler_static_CXX=
24004
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
24005
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
24006
if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
24007
$as_echo_n "(cached) " >&6
24009
lt_cv_prog_compiler_c_o_CXX=no
24010
$RM -r conftest 2>/dev/null
24014
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
24016
lt_compiler_flag="-o out/conftest2.$ac_objext"
24017
# Insert the option either (1) after the last *FLAGS variable, or
24018
# (2) before a word containing "conftest.", or (3) at the end.
24019
# Note that $ac_compile itself does not contain backslashes and begins
24020
# with a dollar sign (not a hyphen), so the echo should work correctly.
24021
lt_compile=`echo "$ac_compile" | $SED \
24022
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24023
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24024
-e 's:$: $lt_compiler_flag:'`
24025
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
24026
(eval "$lt_compile" 2>out/conftest.err)
24028
cat out/conftest.err >&5
24029
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24030
if (exit $ac_status) && test -s out/conftest2.$ac_objext
24032
# The compiler can only warn and ignore the option if not recognized
24033
# So say no if there are warnings
24034
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
24035
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24036
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24037
lt_cv_prog_compiler_c_o_CXX=yes
24042
# SGI C++ compiler will create directory out/ii_files/ for
24043
# template instantiation
24044
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
24045
$RM out/* && rmdir out
24051
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
24052
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
24056
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
24057
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
24058
if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
24059
$as_echo_n "(cached) " >&6
24061
lt_cv_prog_compiler_c_o_CXX=no
24062
$RM -r conftest 2>/dev/null
24066
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
24068
lt_compiler_flag="-o out/conftest2.$ac_objext"
24069
# Insert the option either (1) after the last *FLAGS variable, or
24070
# (2) before a word containing "conftest.", or (3) at the end.
24071
# Note that $ac_compile itself does not contain backslashes and begins
24072
# with a dollar sign (not a hyphen), so the echo should work correctly.
24073
lt_compile=`echo "$ac_compile" | $SED \
24074
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24075
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24076
-e 's:$: $lt_compiler_flag:'`
24077
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
24078
(eval "$lt_compile" 2>out/conftest.err)
24080
cat out/conftest.err >&5
24081
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24082
if (exit $ac_status) && test -s out/conftest2.$ac_objext
24084
# The compiler can only warn and ignore the option if not recognized
24085
# So say no if there are warnings
24086
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
24087
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24088
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24089
lt_cv_prog_compiler_c_o_CXX=yes
24094
# SGI C++ compiler will create directory out/ii_files/ for
24095
# template instantiation
24096
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
24097
$RM out/* && rmdir out
24103
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
24104
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
24109
hard_links="nottested"
24110
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
24111
# do not overwrite the value of need_locks provided by the user
24112
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
24113
$as_echo_n "checking if we can lock with hard links... " >&6; }
24116
ln conftest.a conftest.b 2>/dev/null && hard_links=no
24118
ln conftest.a conftest.b 2>&5 || hard_links=no
24119
ln conftest.a conftest.b 2>/dev/null && hard_links=no
24120
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
24121
$as_echo "$hard_links" >&6; }
24122
if test "$hard_links" = no; then
24123
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24124
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24133
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24134
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
24136
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24137
exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
24140
# If we're using GNU nm, then we don't want the "-C" option.
24141
# -C means demangle to AIX nm, but means don't demangle with GNU nm
24142
# Also, AIX nm treats weak defined symbols like other global defined
24143
# symbols, whereas GNU nm marks them as "W".
24144
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
24145
export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
24147
export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
24151
export_symbols_cmds_CXX="$ltdll_cmds"
24153
cygwin* | mingw* | cegcc*)
24154
case $cc_basename in
24156
exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
24159
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
24160
exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
24165
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24169
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
24170
$as_echo "$ld_shlibs_CXX" >&6; }
24171
test "$ld_shlibs_CXX" = no && can_build_shared=no
24173
with_gnu_ld_CXX=$with_gnu_ld
24181
# Do we need to explicitly link libc?
24183
case "x$archive_cmds_need_lc_CXX" in
24185
# Assume -lc should be added
24186
archive_cmds_need_lc_CXX=yes
24188
if test "$enable_shared" = yes && test "$GCC" = yes; then
24189
case $archive_cmds_CXX in
24191
# FIXME: we may have to deal with multi-command sequences.
24194
# Test whether the compiler implicitly links with -lc since on some
24195
# systems, -lgcc has to come before -lc. If gcc already passes -lc
24196
# to ld, don't add -lc before -lgcc.
24197
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
24198
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
24199
if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
24200
$as_echo_n "(cached) " >&6
24203
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
24205
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
24206
(eval $ac_compile) 2>&5
24208
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24209
test $ac_status = 0; } 2>conftest.err; then
24212
libobjs=conftest.$ac_objext
24214
wl=$lt_prog_compiler_wl_CXX
24215
pic_flag=$lt_prog_compiler_pic_CXX
24221
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
24222
allow_undefined_flag_CXX=
24223
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
24224
(eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
24226
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24227
test $ac_status = 0; }
24229
lt_cv_archive_cmds_need_lc_CXX=no
24231
lt_cv_archive_cmds_need_lc_CXX=yes
24233
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
24235
cat conftest.err 1>&5
24240
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
24241
$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
24242
archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
24310
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
24311
$as_echo_n "checking dynamic linker characteristics... " >&6; }
24313
library_names_spec=
24314
libname_spec='lib$name'
24318
postuninstall_cmds=
24322
shlibpath_overrides_runpath=unknown
24324
dynamic_linker="$host_os ld.so"
24325
sys_lib_dlsearch_path_spec="/lib /usr/lib"
24326
need_lib_prefix=unknown
24327
hardcode_into_libs=no
24329
# when you set need_version to no, make sure it does not cause -set_version
24330
# flags to be left without arguments
24331
need_version=unknown
24335
version_type=linux # correct to gnu/linux during the next big refactor
24336
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
24337
shlibpath_var=LIBPATH
24339
# AIX 3 has no versioning support, so we append a major version to the name.
24340
soname_spec='${libname}${release}${shared_ext}$major'
24344
version_type=linux # correct to gnu/linux during the next big refactor
24347
hardcode_into_libs=yes
24348
if test "$host_cpu" = ia64; then
24349
# AIX 5 supports IA64
24350
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
24351
shlibpath_var=LD_LIBRARY_PATH
24353
# With GCC up to 2.95.x, collect2 would create an import file
24354
# for dependence libraries. The import file would start with
24355
# the line `#! .'. This would cause the generated library to
24356
# depend on `.', always an invalid library. This was fixed in
24357
# development snapshots of GCC prior to 3.0.
24359
aix4 | aix4.[01] | aix4.[01].*)
24360
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
24362
echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
24365
can_build_shared=no
24369
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
24370
# soname into executable. Probably we can add versioning support to
24371
# collect2, so additional links can be useful in future.
24372
if test "$aix_use_runtimelinking" = yes; then
24373
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
24374
# instead of lib<name>.a to let people know that these are not
24375
# typical AIX shared libraries.
24376
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24378
# We preserve .a as extension for shared libraries through AIX4.2
24379
# and later when we are not doing run time linking.
24380
library_names_spec='${libname}${release}.a $libname.a'
24381
soname_spec='${libname}${release}${shared_ext}$major'
24383
shlibpath_var=LIBPATH
24390
# Since July 2007 AmigaOS4 officially supports .so libraries.
24391
# When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
24392
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24395
library_names_spec='$libname.ixlibrary $libname.a'
24396
# Create ${libname}_ixlibrary.a entries in /sys/libs.
24397
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
24403
library_names_spec='${libname}${shared_ext}'
24404
dynamic_linker="$host_os ld.so"
24405
shlibpath_var=LIBRARY_PATH
24409
version_type=linux # correct to gnu/linux during the next big refactor
24411
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24412
soname_spec='${libname}${release}${shared_ext}$major'
24413
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
24414
shlibpath_var=LD_LIBRARY_PATH
24415
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
24416
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
24417
# the default ld.so.conf also contains /usr/contrib/lib and
24418
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
24419
# libtool to hard-code these into programs
24422
cygwin* | mingw* | pw32* | cegcc*)
24423
version_type=windows
24428
case $GCC,$cc_basename in
24431
library_names_spec='$libname.dll.a'
24432
# DLL is installed to $(libdir)/../bin by postinstall_cmds
24433
postinstall_cmds='base_file=`basename \${file}`~
24434
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
24435
dldir=$destdir/`dirname \$dlpath`~
24436
test -d \$dldir || mkdir -p \$dldir~
24437
$install_prog $dir/$dlname \$dldir/$dlname~
24438
chmod a+x \$dldir/$dlname~
24439
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
24440
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
24442
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
24443
dlpath=$dir/\$dldll~
24445
shlibpath_overrides_runpath=yes
24449
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
24450
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24454
# MinGW DLLs use traditional 'lib' prefix
24455
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24458
# pw32 DLLs use 'pw' prefix rather than 'lib'
24459
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24462
dynamic_linker='Win32 ld.exe'
24467
libname_spec='$name'
24468
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24469
library_names_spec='${libname}.dll.lib'
24473
sys_lib_search_path_spec=
24476
for lt_path in $LIB
24479
# Let DOS variable expansion print the short 8.3 style file name.
24480
lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
24481
sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
24484
# Convert to MSYS style.
24485
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
24488
# Convert to unix form, then to dos form, then back to unix form
24489
# but this time dos style (no spaces!) so that the unix form looks
24490
# like /cygdrive/c/PROGRA~1:/cygdr...
24491
sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
24492
sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
24493
sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
24496
sys_lib_search_path_spec="$LIB"
24497
if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
24498
# It is most probably a Windows format PATH.
24499
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
24501
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
24503
# FIXME: find the short name or the path components, as spaces are
24504
# common. (e.g. "Program Files" -> "PROGRA~1")
24508
# DLL is installed to $(libdir)/../bin by postinstall_cmds
24509
postinstall_cmds='base_file=`basename \${file}`~
24510
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
24511
dldir=$destdir/`dirname \$dlpath`~
24512
test -d \$dldir || mkdir -p \$dldir~
24513
$install_prog $dir/$dlname \$dldir/$dlname'
24514
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
24515
dlpath=$dir/\$dldll~
24517
shlibpath_overrides_runpath=yes
24518
dynamic_linker='Win32 link.exe'
24522
# Assume MSVC wrapper
24523
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
24524
dynamic_linker='Win32 ld.exe'
24527
# FIXME: first we should search . and the directory the executable is in
24531
darwin* | rhapsody*)
24532
dynamic_linker="$host_os dyld"
24533
version_type=darwin
24536
library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
24537
soname_spec='${libname}${release}${major}$shared_ext'
24538
shlibpath_overrides_runpath=yes
24539
shlibpath_var=DYLD_LIBRARY_PATH
24540
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
24542
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
24546
version_type=linux # correct to gnu/linux during the next big refactor
24549
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
24550
soname_spec='${libname}${release}${shared_ext}$major'
24551
shlibpath_var=LD_LIBRARY_PATH
24554
freebsd* | dragonfly*)
24555
# DragonFly does not have aout. When/if they implement a new
24556
# versioning mechanism, adjust this.
24557
if test -x /usr/bin/objformat; then
24558
objformat=`/usr/bin/objformat`
24561
freebsd[23].*) objformat=aout ;;
24562
*) objformat=elf ;;
24565
version_type=freebsd-$objformat
24566
case $version_type in
24568
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
24573
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
24577
shlibpath_var=LD_LIBRARY_PATH
24580
shlibpath_overrides_runpath=yes
24582
freebsd3.[01]* | freebsdelf3.[01]*)
24583
shlibpath_overrides_runpath=yes
24584
hardcode_into_libs=yes
24586
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
24587
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
24588
shlibpath_overrides_runpath=no
24589
hardcode_into_libs=yes
24591
*) # from 4.6 on, and DragonFly
24592
shlibpath_overrides_runpath=yes
24593
hardcode_into_libs=yes
24599
version_type=linux # correct to gnu/linux during the next big refactor
24602
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
24603
soname_spec='${libname}${release}${shared_ext}$major'
24604
shlibpath_var=LD_LIBRARY_PATH
24605
shlibpath_overrides_runpath=no
24606
hardcode_into_libs=yes
24610
version_type=linux # correct to gnu/linux during the next big refactor
24613
dynamic_linker="$host_os runtime_loader"
24614
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
24615
soname_spec='${libname}${release}${shared_ext}$major'
24616
shlibpath_var=LIBRARY_PATH
24617
shlibpath_overrides_runpath=yes
24618
sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
24619
hardcode_into_libs=yes
24622
hpux9* | hpux10* | hpux11*)
24623
# Give a soname corresponding to the major version so that dld.sl refuses to
24624
# link against other versions.
24631
hardcode_into_libs=yes
24632
dynamic_linker="$host_os dld.so"
24633
shlibpath_var=LD_LIBRARY_PATH
24634
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
24635
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24636
soname_spec='${libname}${release}${shared_ext}$major'
24637
if test "X$HPUX_IA64_MODE" = X32; then
24638
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
24640
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
24642
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24646
hardcode_into_libs=yes
24647
dynamic_linker="$host_os dld.sl"
24648
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
24649
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
24650
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24651
soname_spec='${libname}${release}${shared_ext}$major'
24652
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
24653
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24657
dynamic_linker="$host_os dld.sl"
24658
shlibpath_var=SHLIB_PATH
24659
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
24660
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24661
soname_spec='${libname}${release}${shared_ext}$major'
24664
# HP-UX runs *really* slowly unless shared libraries are mode 555, ...
24665
postinstall_cmds='chmod 555 $lib'
24666
# or fails outright, so override atomically:
24667
install_override_mode=555
24671
version_type=linux # correct to gnu/linux during the next big refactor
24674
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24675
soname_spec='${libname}${release}${shared_ext}$major'
24676
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
24677
shlibpath_var=LD_LIBRARY_PATH
24678
shlibpath_overrides_runpath=no
24679
hardcode_into_libs=yes
24682
irix5* | irix6* | nonstopux*)
24684
nonstopux*) version_type=nonstopux ;;
24686
if test "$lt_cv_prog_gnu_ld" = yes; then
24687
version_type=linux # correct to gnu/linux during the next big refactor
24694
soname_spec='${libname}${release}${shared_ext}$major'
24695
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
24697
irix5* | nonstopux*)
24698
libsuff= shlibsuff=
24701
case $LD in # libtool.m4 will add one of these switches to LD
24702
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
24703
libsuff= shlibsuff= libmagic=32-bit;;
24704
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
24705
libsuff=32 shlibsuff=N32 libmagic=N32;;
24706
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
24707
libsuff=64 shlibsuff=64 libmagic=64-bit;;
24708
*) libsuff= shlibsuff= libmagic=never-match;;
24712
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
24713
shlibpath_overrides_runpath=no
24714
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
24715
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
24716
hardcode_into_libs=yes
24719
# No shared lib support for Linux oldld, aout, or coff.
24720
linux*oldld* | linux*aout* | linux*coff*)
24724
# This must be glibc/ELF.
24725
linux* | k*bsd*-gnu | kopensolaris*-gnu)
24726
version_type=linux # correct to gnu/linux during the next big refactor
24729
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24730
soname_spec='${libname}${release}${shared_ext}$major'
24731
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
24732
shlibpath_var=LD_LIBRARY_PATH
24733
shlibpath_overrides_runpath=no
24735
# Some binutils ld are patched to set DT_RUNPATH
24736
if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
24737
$as_echo_n "(cached) " >&6
24739
lt_cv_shlibpath_overrides_runpath=no
24740
save_LDFLAGS=$LDFLAGS
24741
save_libdir=$libdir
24742
eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
24743
LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
24744
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24745
/* end confdefs.h. */
24747
#ifdef F77_DUMMY_MAIN
24749
# ifdef __cplusplus
24752
int F77_DUMMY_MAIN() { return 1; }
24763
if ac_fn_cxx_try_link "$LINENO"; then :
24764
if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
24765
lt_cv_shlibpath_overrides_runpath=yes
24768
rm -f core conftest.err conftest.$ac_objext \
24769
conftest$ac_exeext conftest.$ac_ext
24770
LDFLAGS=$save_LDFLAGS
24771
libdir=$save_libdir
24775
shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
24777
# This implies no fast_install, which is unacceptable.
24778
# Some rework will be needed to allow for fast_install
24779
# before this can be enabled.
24780
hardcode_into_libs=yes
24782
# Append ld.so.conf contents to the search path
24783
if test -f /etc/ld.so.conf; then
24784
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
24785
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
24788
# We used to test for /lib/ld.so.1 and disable shared libraries on
24789
# powerpc, because MkLinux only supported shared libraries with the
24790
# GNU dynamic linker. Since this was broken with cross compilers,
24791
# most powerpc-linux boxes support dynamic linking these days and
24792
# people can always --disable-shared, the test was removed, and we
24793
# assume the GNU/Linux dynamic linker is in use.
24794
dynamic_linker='GNU/Linux ld.so'
24801
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
24802
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24803
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24804
dynamic_linker='NetBSD (a.out) ld.so'
24806
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24807
soname_spec='${libname}${release}${shared_ext}$major'
24808
dynamic_linker='NetBSD ld.elf_so'
24810
shlibpath_var=LD_LIBRARY_PATH
24811
shlibpath_overrides_runpath=yes
24812
hardcode_into_libs=yes
24816
version_type=linux # correct to gnu/linux during the next big refactor
24817
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24818
shlibpath_var=LD_LIBRARY_PATH
24819
shlibpath_overrides_runpath=yes
24826
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24827
soname_spec='${libname}${release}${shared_ext}$major'
24828
shlibpath_var=LD_LIBRARY_PATH
24829
shlibpath_overrides_runpath=no
24830
hardcode_into_libs=yes
24831
dynamic_linker='ldqnx.so'
24836
sys_lib_dlsearch_path_spec="/usr/lib"
24838
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
24840
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
24841
*) need_version=no ;;
24843
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24844
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24845
shlibpath_var=LD_LIBRARY_PATH
24846
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24848
openbsd2.[89] | openbsd2.[89].*)
24849
shlibpath_overrides_runpath=no
24852
shlibpath_overrides_runpath=yes
24856
shlibpath_overrides_runpath=yes
24861
libname_spec='$name'
24864
library_names_spec='$libname${shared_ext} $libname.a'
24865
dynamic_linker='OS/2 ld.exe'
24866
shlibpath_var=LIBPATH
24869
osf3* | osf4* | osf5*)
24873
soname_spec='${libname}${release}${shared_ext}$major'
24874
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24875
shlibpath_var=LD_LIBRARY_PATH
24876
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
24877
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
24885
version_type=linux # correct to gnu/linux during the next big refactor
24888
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24889
soname_spec='${libname}${release}${shared_ext}$major'
24890
shlibpath_var=LD_LIBRARY_PATH
24891
shlibpath_overrides_runpath=yes
24892
hardcode_into_libs=yes
24893
# ldd complains unless libraries are executable
24894
postinstall_cmds='chmod +x $lib'
24899
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24900
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
24901
shlibpath_var=LD_LIBRARY_PATH
24902
shlibpath_overrides_runpath=yes
24903
if test "$with_gnu_ld" = yes; then
24910
version_type=linux # correct to gnu/linux during the next big refactor
24911
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24912
soname_spec='${libname}${release}${shared_ext}$major'
24913
shlibpath_var=LD_LIBRARY_PATH
24914
case $host_vendor in
24916
shlibpath_overrides_runpath=no
24918
runpath_var=LD_RUN_PATH
24926
shlibpath_overrides_runpath=no
24927
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
24933
if test -d /usr/nec ;then
24934
version_type=linux # correct to gnu/linux during the next big refactor
24935
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
24936
soname_spec='$libname${shared_ext}.$major'
24937
shlibpath_var=LD_LIBRARY_PATH
24941
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
24942
version_type=freebsd-elf
24945
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
24946
soname_spec='${libname}${release}${shared_ext}$major'
24947
shlibpath_var=LD_LIBRARY_PATH
24948
shlibpath_overrides_runpath=yes
24949
hardcode_into_libs=yes
24950
if test "$with_gnu_ld" = yes; then
24951
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
24953
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
24956
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
24960
sys_lib_dlsearch_path_spec='/usr/lib'
24964
# TPF is a cross-target only. Preferred cross-host = GNU/Linux.
24965
version_type=linux # correct to gnu/linux during the next big refactor
24968
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24969
shlibpath_var=LD_LIBRARY_PATH
24970
shlibpath_overrides_runpath=no
24971
hardcode_into_libs=yes
24975
version_type=linux # correct to gnu/linux during the next big refactor
24976
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24977
soname_spec='${libname}${release}${shared_ext}$major'
24978
shlibpath_var=LD_LIBRARY_PATH
24985
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
24986
$as_echo "$dynamic_linker" >&6; }
24987
test "$dynamic_linker" = no && can_build_shared=no
24989
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
24990
if test "$GCC" = yes; then
24991
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
24994
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
24995
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
24997
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
24998
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
25038
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
25039
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
25040
hardcode_action_CXX=
25041
if test -n "$hardcode_libdir_flag_spec_CXX" ||
25042
test -n "$runpath_var_CXX" ||
25043
test "X$hardcode_automatic_CXX" = "Xyes" ; then
25045
# We can hardcode non-existent directories.
25046
if test "$hardcode_direct_CXX" != no &&
25047
# If the only mechanism to avoid hardcoding is shlibpath_var, we
25048
# have to relink, otherwise we might link with an installed library
25049
# when we should be linking with a yet-to-be-installed one
25050
## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
25051
test "$hardcode_minus_L_CXX" != no; then
25052
# Linking always hardcodes the temporary library directory.
25053
hardcode_action_CXX=relink
25055
# We can link without hardcoding, and we can hardcode nonexisting dirs.
25056
hardcode_action_CXX=immediate
25059
# We cannot hardcode anything, or else we can only hardcode existing
25061
hardcode_action_CXX=unsupported
25063
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
25064
$as_echo "$hardcode_action_CXX" >&6; }
25066
if test "$hardcode_action_CXX" = relink ||
25067
test "$inherit_rpath_CXX" = yes; then
25068
# Fast installation is not supported
25069
enable_fast_install=no
25070
elif test "$shlibpath_overrides_runpath" = yes ||
25071
test "$enable_shared" = no; then
25072
# Fast installation is not necessary
25073
enable_fast_install=needless
25082
fi # test -n "$compiler"
25085
CFLAGS=$lt_save_CFLAGS
25089
with_gnu_ld=$lt_save_with_gnu_ld
25090
lt_cv_path_LDCXX=$lt_cv_path_LD
25091
lt_cv_path_LD=$lt_save_path_LD
25092
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
25093
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
25094
fi # test "$_lt_caught_CXX_error" != yes
25097
ac_cpp='$CPP $CPPFLAGS'
25098
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25099
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25100
ac_compiler_gnu=$ac_cv_c_compiler_gnu
25105
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
25106
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25107
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
25109
if test -z "$F77" || test "X$F77" = "Xno"; then
25110
_lt_disable_F77=yes
25113
archive_cmds_need_lc_F77=no
25114
allow_undefined_flag_F77=
25115
always_export_symbols_F77=no
25116
archive_expsym_cmds_F77=
25117
export_dynamic_flag_spec_F77=
25118
hardcode_direct_F77=no
25119
hardcode_direct_absolute_F77=no
25120
hardcode_libdir_flag_spec_F77=
25121
hardcode_libdir_separator_F77=
25122
hardcode_minus_L_F77=no
25123
hardcode_automatic_F77=no
25124
inherit_rpath_F77=no
25126
module_expsym_cmds_F77=
25127
link_all_deplibs_F77=unknown
25128
old_archive_cmds_F77=$old_archive_cmds
25129
reload_flag_F77=$reload_flag
25130
reload_cmds_F77=$reload_cmds
25131
no_undefined_flag_F77=
25132
whole_archive_flag_spec_F77=
25133
enable_shared_with_static_runtimes_F77=no
25135
# Source file extension for f77 test sources.
25138
# Object file extension for compiled f77 test sources.
25142
# No sense in running all these tests if we already determined that
25143
# the F77 compiler isn't working. Some variables (like enable_shared)
25144
# are currently assumed to apply to all compilers on this platform,
25145
# and will be corrupted by setting them based on a non-working compiler.
25146
if test "$_lt_disable_F77" != yes; then
25147
# Code to be used in simple compile tests
25148
lt_simple_compile_test_code="\
25154
# Code to be used in simple link tests
25155
lt_simple_link_test_code="\
25160
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
25167
# If no C compiler was specified, use CC.
25170
# If no C compiler flags were specified, use CFLAGS.
25171
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
25173
# Allow CC to be a program name with arguments.
25177
# save warnings/boilerplate of simple test code
25178
ac_outfile=conftest.$ac_objext
25179
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
25180
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
25181
_lt_compiler_boilerplate=`cat conftest.err`
25184
ac_outfile=conftest.$ac_objext
25185
echo "$lt_simple_link_test_code" >conftest.$ac_ext
25186
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
25187
_lt_linker_boilerplate=`cat conftest.err`
25191
# Allow CC to be a program name with arguments.
25194
lt_save_CFLAGS=$CFLAGS
25199
for cc_temp in $compiler""; do
25201
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
25202
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
25207
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
25210
if test -n "$compiler"; then
25211
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
25212
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
25213
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
25214
$as_echo "$can_build_shared" >&6; }
25216
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
25217
$as_echo_n "checking whether to build shared libraries... " >&6; }
25218
test "$can_build_shared" = "no" && enable_shared=no
25220
# On AIX, shared libraries and static libraries use the same namespace, and
25221
# are all built from PIC.
25224
test "$enable_shared" = yes && enable_static=no
25225
if test -n "$RANLIB"; then
25226
archive_cmds="$archive_cmds~\$RANLIB \$lib"
25227
postinstall_cmds='$RANLIB $lib'
25231
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
25232
test "$enable_shared" = yes && enable_static=no
25236
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
25237
$as_echo "$enable_shared" >&6; }
25239
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
25240
$as_echo_n "checking whether to build static libraries... " >&6; }
25241
# Make sure either enable_shared or enable_static is yes.
25242
test "$enable_shared" = yes || enable_static=yes
25243
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
25244
$as_echo "$enable_static" >&6; }
25250
## There is no encapsulation within the following macros, do not change
25251
## the running order or otherwise move them around unless you know exactly
25252
## what you are doing...
25253
lt_prog_compiler_wl_F77=
25254
lt_prog_compiler_pic_F77=
25255
lt_prog_compiler_static_F77=
25258
if test "$GCC" = yes; then
25259
lt_prog_compiler_wl_F77='-Wl,'
25260
lt_prog_compiler_static_F77='-static'
25264
# All AIX code is PIC.
25265
if test "$host_cpu" = ia64; then
25266
# AIX 5 now supports IA64 processor
25267
lt_prog_compiler_static_F77='-Bstatic'
25274
# see comment about AmigaOS4 .so support
25275
lt_prog_compiler_pic_F77='-fPIC'
25278
# FIXME: we need at least 68020 code to build shared libraries, but
25279
# adding the `-m68020' flag to GCC prevents building anything better,
25281
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
25286
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
25287
# PIC is the default for these OSes.
25290
mingw* | cygwin* | pw32* | os2* | cegcc*)
25291
# This hack is so that the source file can tell whether it is being
25292
# built for inclusion in a dll (and should export symbols for example).
25293
# Although the cygwin gcc ignores -fPIC, still need this for old-style
25294
# (--disable-auto-import) libraries
25295
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
25298
darwin* | rhapsody*)
25299
# PIC is the default on this platform
25300
# Common symbols not allowed in MH_DYLIB files
25301
lt_prog_compiler_pic_F77='-fno-common'
25305
# PIC is the default for Haiku.
25306
# The "-static" flag exists, but is broken.
25307
lt_prog_compiler_static_F77=
25311
# PIC is the default for 64-bit PA HP-UX, but not for 32-bit
25312
# PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
25313
# sets the default TLS model and affects inlining.
25319
lt_prog_compiler_pic_F77='-fPIC'
25325
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
25326
# Instead, we relocate shared libraries at runtime.
25330
# Just because we use GCC doesn't mean we suddenly get shared libraries
25331
# on systems that don't support them.
25332
lt_prog_compiler_can_build_shared_F77=no
25337
# QNX uses GNU C++, but need to define -shared option too, otherwise
25338
# it will coredump.
25339
lt_prog_compiler_pic_F77='-fPIC -shared'
25343
if test -d /usr/nec; then
25344
lt_prog_compiler_pic_F77=-Kconform_pic
25349
lt_prog_compiler_pic_F77='-fPIC'
25353
case $cc_basename in
25354
nvcc*) # Cuda Compiler Driver 2.2
25355
lt_prog_compiler_wl_F77='-Xlinker '
25356
if test -n "$lt_prog_compiler_pic_F77"; then
25357
lt_prog_compiler_pic_F77="-Xcompiler $lt_prog_compiler_pic_F77"
25362
# PORTME Check for flag to pass linker flags through the system compiler.
25365
lt_prog_compiler_wl_F77='-Wl,'
25366
if test "$host_cpu" = ia64; then
25367
# AIX 5 now supports IA64 processor
25368
lt_prog_compiler_static_F77='-Bstatic'
25370
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
25374
mingw* | cygwin* | pw32* | os2* | cegcc*)
25375
# This hack is so that the source file can tell whether it is being
25376
# built for inclusion in a dll (and should export symbols for example).
25377
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
25380
hpux9* | hpux10* | hpux11*)
25381
lt_prog_compiler_wl_F77='-Wl,'
25382
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
25383
# not for PA HP-UX.
25389
lt_prog_compiler_pic_F77='+Z'
25392
# Is there a better lt_prog_compiler_static that works with the bundled CC?
25393
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
25396
irix5* | irix6* | nonstopux*)
25397
lt_prog_compiler_wl_F77='-Wl,'
25398
# PIC (with -KPIC) is the default.
25399
lt_prog_compiler_static_F77='-non_shared'
25402
linux* | k*bsd*-gnu | kopensolaris*-gnu)
25403
case $cc_basename in
25404
# old Intel for x86_64 which still supported -KPIC.
25406
lt_prog_compiler_wl_F77='-Wl,'
25407
lt_prog_compiler_pic_F77='-KPIC'
25408
lt_prog_compiler_static_F77='-static'
25410
# icc used to be incompatible with GCC.
25411
# ICC 10 doesn't accept -KPIC any more.
25413
lt_prog_compiler_wl_F77='-Wl,'
25414
lt_prog_compiler_pic_F77='-fPIC'
25415
lt_prog_compiler_static_F77='-static'
25417
# Lahey Fortran 8.1.
25419
lt_prog_compiler_wl_F77='-Wl,'
25420
lt_prog_compiler_pic_F77='--shared'
25421
lt_prog_compiler_static_F77='--static'
25424
# NAG Fortran compiler
25425
lt_prog_compiler_wl_F77='-Wl,-Wl,,'
25426
lt_prog_compiler_pic_F77='-PIC'
25427
lt_prog_compiler_static_F77='-Bstatic'
25429
pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
25430
# Portland Group compilers (*not* the Pentium gcc compiler,
25431
# which looks to be a dead project)
25432
lt_prog_compiler_wl_F77='-Wl,'
25433
lt_prog_compiler_pic_F77='-fpic'
25434
lt_prog_compiler_static_F77='-Bstatic'
25437
lt_prog_compiler_wl_F77='-Wl,'
25438
# All Alpha code is PIC.
25439
lt_prog_compiler_static_F77='-non_shared'
25441
xl* | bgxl* | bgf* | mpixl*)
25442
# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
25443
lt_prog_compiler_wl_F77='-Wl,'
25444
lt_prog_compiler_pic_F77='-qpic'
25445
lt_prog_compiler_static_F77='-qstaticlink'
25448
case `$CC -V 2>&1 | sed 5q` in
25449
*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
25450
# Sun Fortran 8.3 passes all unrecognized flags to the linker
25451
lt_prog_compiler_pic_F77='-KPIC'
25452
lt_prog_compiler_static_F77='-Bstatic'
25453
lt_prog_compiler_wl_F77=''
25455
*Sun\ F* | *Sun*Fortran*)
25456
lt_prog_compiler_pic_F77='-KPIC'
25457
lt_prog_compiler_static_F77='-Bstatic'
25458
lt_prog_compiler_wl_F77='-Qoption ld '
25462
lt_prog_compiler_pic_F77='-KPIC'
25463
lt_prog_compiler_static_F77='-Bstatic'
25464
lt_prog_compiler_wl_F77='-Wl,'
25466
*Intel*\ [CF]*Compiler*)
25467
lt_prog_compiler_wl_F77='-Wl,'
25468
lt_prog_compiler_pic_F77='-fPIC'
25469
lt_prog_compiler_static_F77='-static'
25472
lt_prog_compiler_wl_F77='-Wl,'
25473
lt_prog_compiler_pic_F77='-fpic'
25474
lt_prog_compiler_static_F77='-Bstatic'
25482
lt_prog_compiler_pic_F77='-KPIC'
25483
lt_prog_compiler_static_F77='-Bstatic'
25487
# QNX uses GNU C++, but need to define -shared option too, otherwise
25488
# it will coredump.
25489
lt_prog_compiler_pic_F77='-fPIC -shared'
25492
osf3* | osf4* | osf5*)
25493
lt_prog_compiler_wl_F77='-Wl,'
25494
# All OSF/1 code is PIC.
25495
lt_prog_compiler_static_F77='-non_shared'
25499
lt_prog_compiler_static_F77='-non_shared'
25503
lt_prog_compiler_pic_F77='-KPIC'
25504
lt_prog_compiler_static_F77='-Bstatic'
25505
case $cc_basename in
25506
f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
25507
lt_prog_compiler_wl_F77='-Qoption ld ';;
25509
lt_prog_compiler_wl_F77='-Wl,';;
25514
lt_prog_compiler_wl_F77='-Qoption ld '
25515
lt_prog_compiler_pic_F77='-PIC'
25516
lt_prog_compiler_static_F77='-Bstatic'
25519
sysv4 | sysv4.2uw2* | sysv4.3*)
25520
lt_prog_compiler_wl_F77='-Wl,'
25521
lt_prog_compiler_pic_F77='-KPIC'
25522
lt_prog_compiler_static_F77='-Bstatic'
25526
if test -d /usr/nec ;then
25527
lt_prog_compiler_pic_F77='-Kconform_pic'
25528
lt_prog_compiler_static_F77='-Bstatic'
25532
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
25533
lt_prog_compiler_wl_F77='-Wl,'
25534
lt_prog_compiler_pic_F77='-KPIC'
25535
lt_prog_compiler_static_F77='-Bstatic'
25539
lt_prog_compiler_wl_F77='-Wl,'
25540
lt_prog_compiler_can_build_shared_F77=no
25544
lt_prog_compiler_pic_F77='-pic'
25545
lt_prog_compiler_static_F77='-Bstatic'
25549
lt_prog_compiler_can_build_shared_F77=no
25555
# For platforms which do not support PIC, -DPIC is meaningless:
25557
lt_prog_compiler_pic_F77=
25560
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
25564
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
25565
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
25566
if ${lt_cv_prog_compiler_pic_F77+:} false; then :
25567
$as_echo_n "(cached) " >&6
25569
lt_cv_prog_compiler_pic_F77=$lt_prog_compiler_pic_F77
25571
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_F77" >&5
25572
$as_echo "$lt_cv_prog_compiler_pic_F77" >&6; }
25573
lt_prog_compiler_pic_F77=$lt_cv_prog_compiler_pic_F77
25576
# Check to make sure the PIC flag actually works.
25578
if test -n "$lt_prog_compiler_pic_F77"; then
25579
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
25580
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
25581
if ${lt_cv_prog_compiler_pic_works_F77+:} false; then :
25582
$as_echo_n "(cached) " >&6
25584
lt_cv_prog_compiler_pic_works_F77=no
25585
ac_outfile=conftest.$ac_objext
25586
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
25587
lt_compiler_flag="$lt_prog_compiler_pic_F77"
25588
# Insert the option either (1) after the last *FLAGS variable, or
25589
# (2) before a word containing "conftest.", or (3) at the end.
25590
# Note that $ac_compile itself does not contain backslashes and begins
25591
# with a dollar sign (not a hyphen), so the echo should work correctly.
25592
# The option is referenced via a variable to avoid confusing sed.
25593
lt_compile=`echo "$ac_compile" | $SED \
25594
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
25595
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
25596
-e 's:$: $lt_compiler_flag:'`
25597
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
25598
(eval "$lt_compile" 2>conftest.err)
25600
cat conftest.err >&5
25601
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25602
if (exit $ac_status) && test -s "$ac_outfile"; then
25603
# The compiler can only warn and ignore the option if not recognized
25604
# So say no if there are warnings other than the usual output.
25605
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
25606
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
25607
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
25608
lt_cv_prog_compiler_pic_works_F77=yes
25614
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_F77" >&5
25615
$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
25617
if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
25618
case $lt_prog_compiler_pic_F77 in
25620
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
25623
lt_prog_compiler_pic_F77=
25624
lt_prog_compiler_can_build_shared_F77=no
25634
# Check to make sure the static flag actually works.
25636
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
25637
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
25638
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
25639
if ${lt_cv_prog_compiler_static_works_F77+:} false; then :
25640
$as_echo_n "(cached) " >&6
25642
lt_cv_prog_compiler_static_works_F77=no
25643
save_LDFLAGS="$LDFLAGS"
25644
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
25645
echo "$lt_simple_link_test_code" > conftest.$ac_ext
25646
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
25647
# The linker can only warn and ignore the option if not recognized
25648
# So say no if there are warnings
25649
if test -s conftest.err; then
25650
# Append any errors to the config.log.
25651
cat conftest.err 1>&5
25652
$ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
25653
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
25654
if diff conftest.exp conftest.er2 >/dev/null; then
25655
lt_cv_prog_compiler_static_works_F77=yes
25658
lt_cv_prog_compiler_static_works_F77=yes
25662
LDFLAGS="$save_LDFLAGS"
25665
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_F77" >&5
25666
$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
25668
if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
25671
lt_prog_compiler_static_F77=
25677
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
25678
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
25679
if ${lt_cv_prog_compiler_c_o_F77+:} false; then :
25680
$as_echo_n "(cached) " >&6
25682
lt_cv_prog_compiler_c_o_F77=no
25683
$RM -r conftest 2>/dev/null
25687
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
25689
lt_compiler_flag="-o out/conftest2.$ac_objext"
25690
# Insert the option either (1) after the last *FLAGS variable, or
25691
# (2) before a word containing "conftest.", or (3) at the end.
25692
# Note that $ac_compile itself does not contain backslashes and begins
25693
# with a dollar sign (not a hyphen), so the echo should work correctly.
25694
lt_compile=`echo "$ac_compile" | $SED \
25695
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
25696
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
25697
-e 's:$: $lt_compiler_flag:'`
25698
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
25699
(eval "$lt_compile" 2>out/conftest.err)
25701
cat out/conftest.err >&5
25702
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25703
if (exit $ac_status) && test -s out/conftest2.$ac_objext
25705
# The compiler can only warn and ignore the option if not recognized
25706
# So say no if there are warnings
25707
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
25708
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
25709
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
25710
lt_cv_prog_compiler_c_o_F77=yes
25715
# SGI C++ compiler will create directory out/ii_files/ for
25716
# template instantiation
25717
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
25718
$RM out/* && rmdir out
25724
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
25725
$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
25729
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
25730
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
25731
if ${lt_cv_prog_compiler_c_o_F77+:} false; then :
25732
$as_echo_n "(cached) " >&6
25734
lt_cv_prog_compiler_c_o_F77=no
25735
$RM -r conftest 2>/dev/null
25739
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
25741
lt_compiler_flag="-o out/conftest2.$ac_objext"
25742
# Insert the option either (1) after the last *FLAGS variable, or
25743
# (2) before a word containing "conftest.", or (3) at the end.
25744
# Note that $ac_compile itself does not contain backslashes and begins
25745
# with a dollar sign (not a hyphen), so the echo should work correctly.
25746
lt_compile=`echo "$ac_compile" | $SED \
25747
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
25748
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
25749
-e 's:$: $lt_compiler_flag:'`
25750
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
25751
(eval "$lt_compile" 2>out/conftest.err)
25753
cat out/conftest.err >&5
25754
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25755
if (exit $ac_status) && test -s out/conftest2.$ac_objext
25757
# The compiler can only warn and ignore the option if not recognized
25758
# So say no if there are warnings
25759
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
25760
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
25761
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
25762
lt_cv_prog_compiler_c_o_F77=yes
25767
# SGI C++ compiler will create directory out/ii_files/ for
25768
# template instantiation
25769
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
25770
$RM out/* && rmdir out
25776
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
25777
$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
25782
hard_links="nottested"
25783
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
25784
# do not overwrite the value of need_locks provided by the user
25785
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
25786
$as_echo_n "checking if we can lock with hard links... " >&6; }
25789
ln conftest.a conftest.b 2>/dev/null && hard_links=no
25791
ln conftest.a conftest.b 2>&5 || hard_links=no
25792
ln conftest.a conftest.b 2>/dev/null && hard_links=no
25793
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
25794
$as_echo "$hard_links" >&6; }
25795
if test "$hard_links" = no; then
25796
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
25797
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
25806
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
25807
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
25810
allow_undefined_flag_F77=
25811
always_export_symbols_F77=no
25813
archive_expsym_cmds_F77=
25814
compiler_needs_object_F77=no
25815
enable_shared_with_static_runtimes_F77=no
25816
export_dynamic_flag_spec_F77=
25817
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
25818
hardcode_automatic_F77=no
25819
hardcode_direct_F77=no
25820
hardcode_direct_absolute_F77=no
25821
hardcode_libdir_flag_spec_F77=
25822
hardcode_libdir_separator_F77=
25823
hardcode_minus_L_F77=no
25824
hardcode_shlibpath_var_F77=unsupported
25825
inherit_rpath_F77=no
25826
link_all_deplibs_F77=unknown
25828
module_expsym_cmds_F77=
25829
old_archive_from_new_cmds_F77=
25830
old_archive_from_expsyms_cmds_F77=
25831
thread_safe_flag_spec_F77=
25832
whole_archive_flag_spec_F77=
25833
# include_expsyms should be a list of space-separated symbols to be *always*
25834
# included in the symbol list
25835
include_expsyms_F77=
25836
# exclude_expsyms can be an extended regexp of symbols to exclude
25837
# it will be wrapped by ` (' and `)$', so one must not match beginning or
25838
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
25839
# as well as any symbol that contains `d'.
25840
exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
25841
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
25842
# platforms (ab)use it in PIC code, but their linkers get confused if
25843
# the symbol is explicitly referenced. Since portable code cannot
25844
# rely on this symbol name, it's probably fine to never include it in
25845
# preloaded symbol tables.
25846
# Exclude shared library initialization/finalization symbols.
25847
extract_expsyms_cmds=
25850
cygwin* | mingw* | pw32* | cegcc*)
25851
# FIXME: the MSVC++ port hasn't been tested in a loooong time
25852
# When not using gcc, we currently assume that we are using
25853
# Microsoft Visual C++.
25854
if test "$GCC" != yes; then
25859
# we just hope/assume this is gcc and not c89 (= MSVC++)
25869
# On some targets, GNU ld is compatible enough with the native linker
25870
# that we're better off using the native interface for both.
25871
lt_use_gnu_ld_interface=no
25872
if test "$with_gnu_ld" = yes; then
25875
# The AIX port of GNU ld has always aspired to compatibility
25876
# with the native linker. However, as the warning in the GNU ld
25877
# block says, versions before 2.19.5* couldn't really create working
25878
# shared libraries, regardless of the interface used.
25879
case `$LD -v 2>&1` in
25880
*\ \(GNU\ Binutils\)\ 2.19.5*) ;;
25881
*\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
25882
*\ \(GNU\ Binutils\)\ [3-9]*) ;;
25884
lt_use_gnu_ld_interface=yes
25889
lt_use_gnu_ld_interface=yes
25894
if test "$lt_use_gnu_ld_interface" = yes; then
25895
# If archive_cmds runs LD, not CC, wlarc should be empty
25898
# Set some defaults for GNU ld with shared library support. These
25899
# are reset later if shared libraries are not supported. Putting them
25900
# here allows them to be overridden if necessary.
25901
runpath_var=LD_RUN_PATH
25902
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
25903
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
25904
# ancient GNU ld didn't support --whole-archive et. al.
25905
if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
25906
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
25908
whole_archive_flag_spec_F77=
25910
supports_anon_versioning=no
25911
case `$LD -v 2>&1` in
25912
*GNU\ gold*) supports_anon_versioning=yes ;;
25913
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
25914
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
25915
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
25916
*\ 2.11.*) ;; # other 2.11 versions
25917
*) supports_anon_versioning=yes ;;
25920
# See if GNU ld supports shared libraries.
25923
# On AIX/PPC, the GNU linker is very broken
25924
if test "$host_cpu" != ia64; then
25928
*** Warning: the GNU linker, at least up to release 2.19, is reported
25929
*** to be unable to reliably create shared libraries on AIX.
25930
*** Therefore, libtool is disabling shared libraries support. If you
25931
*** really care for shared libraries, you may want to install binutils
25932
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
25933
*** You will then need to restart the configuration process.
25942
# see comment about AmigaOS4 .so support
25943
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
25944
archive_expsym_cmds_F77=''
25947
archive_cmds_F77='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
25948
hardcode_libdir_flag_spec_F77='-L$libdir'
25949
hardcode_minus_L_F77=yes
25955
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
25956
allow_undefined_flag_F77=unsupported
25957
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
25958
# support --undefined. This deserves some investigation. FIXME
25959
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
25965
cygwin* | mingw* | pw32* | cegcc*)
25966
# _LT_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
25967
# as there is no search path for DLLs.
25968
hardcode_libdir_flag_spec_F77='-L$libdir'
25969
export_dynamic_flag_spec_F77='${wl}--export-all-symbols'
25970
allow_undefined_flag_F77=unsupported
25971
always_export_symbols_F77=no
25972
enable_shared_with_static_runtimes_F77=yes
25973
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
25974
exclude_expsyms_F77='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
25976
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
25977
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
25978
# If the export-symbols file already is a .def file (1st line
25979
# is EXPORTS), use it as is; otherwise, prepend...
25980
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
25981
cp $export_symbols $output_objdir/$soname.def;
25983
echo EXPORTS > $output_objdir/$soname.def;
25984
cat $export_symbols >> $output_objdir/$soname.def;
25986
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
25993
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
25994
link_all_deplibs_F77=yes
25998
hardcode_direct_F77=no
25999
hardcode_shlibpath_var_F77=no
26000
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
26001
export_dynamic_flag_spec_F77='${wl}-E'
26002
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
26003
# Instead, shared libraries are loaded at an image base (0x10000000 by
26004
# default) and relocated if they conflict, which is a slow very memory
26005
# consuming and fragmenting process. To avoid this, we pick a random,
26006
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
26007
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
26008
archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
26009
archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
26012
gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
26014
if test "$host_os" = linux-dietlibc; then
26015
case $cc_basename in
26016
diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
26019
if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
26020
&& test "$tmp_diet" = no
26022
tmp_addflag=' $pic_flag'
26023
tmp_sharedflag='-shared'
26024
case $cc_basename,$host_cpu in
26025
pgcc*) # Portland Group C compiler
26026
whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
26027
tmp_addflag=' $pic_flag'
26029
pgf77* | pgf90* | pgf95* | pgfortran*)
26030
# Portland Group f77 and f90 compilers
26031
whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
26032
tmp_addflag=' $pic_flag -Mnomain' ;;
26033
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
26034
tmp_addflag=' -i_dynamic' ;;
26035
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
26036
tmp_addflag=' -i_dynamic -nofor_main' ;;
26037
ifc* | ifort*) # Intel Fortran compiler
26038
tmp_addflag=' -nofor_main' ;;
26039
lf95*) # Lahey Fortran 8.1
26040
whole_archive_flag_spec_F77=
26041
tmp_sharedflag='--shared' ;;
26042
xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
26043
tmp_sharedflag='-qmkshrobj'
26045
nvcc*) # Cuda Compiler Driver 2.2
26046
whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
26047
compiler_needs_object_F77=yes
26050
case `$CC -V 2>&1 | sed 5q` in
26051
*Sun\ C*) # Sun C 5.9
26052
whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
26053
compiler_needs_object_F77=yes
26054
tmp_sharedflag='-G' ;;
26055
*Sun\ F*) # Sun Fortran 8.3
26056
tmp_sharedflag='-G' ;;
26058
archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
26060
if test "x$supports_anon_versioning" = xyes; then
26061
archive_expsym_cmds_F77='echo "{ global:" > $output_objdir/$libname.ver~
26062
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
26063
echo "local: *; };" >> $output_objdir/$libname.ver~
26064
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
26067
case $cc_basename in
26068
xlf* | bgf* | bgxlf* | mpixlf*)
26069
# IBM XL Fortran 10.1 on PPC cannot create shared libs itself
26070
whole_archive_flag_spec_F77='--whole-archive$convenience --no-whole-archive'
26071
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
26072
archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
26073
if test "x$supports_anon_versioning" = xyes; then
26074
archive_expsym_cmds_F77='echo "{ global:" > $output_objdir/$libname.ver~
26075
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
26076
echo "local: *; };" >> $output_objdir/$libname.ver~
26077
$LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
26087
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
26088
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
26091
archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
26092
archive_expsym_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
26097
if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
26101
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
26102
*** create shared libraries on Solaris systems. Therefore, libtool
26103
*** is disabling shared libraries support. We urge you to upgrade GNU
26104
*** binutils to release 2.9.1 or newer. Another option is to modify
26105
*** your PATH or compiler configuration so that the native linker is
26106
*** used, and then restart.
26109
elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
26110
archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
26111
archive_expsym_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
26117
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
26118
case `$LD -v 2>&1` in
26119
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
26123
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
26124
*** reliably create shared libraries on SCO systems. Therefore, libtool
26125
*** is disabling shared libraries support. We urge you to upgrade GNU
26126
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
26127
*** your PATH or compiler configuration so that the native linker is
26128
*** used, and then restart.
26133
# For security reasons, it is highly recommended that you always
26134
# use absolute paths for naming shared libraries, and exclude the
26135
# DT_RUNPATH tag from executables and libraries. But doing so
26136
# requires that you compile everything twice, which is a pain.
26137
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
26138
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
26139
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
26140
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
26149
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
26151
hardcode_direct_F77=yes
26152
hardcode_shlibpath_var_F77=no
26156
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
26157
archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
26158
archive_expsym_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
26165
if test "$ld_shlibs_F77" = no; then
26167
hardcode_libdir_flag_spec_F77=
26168
export_dynamic_flag_spec_F77=
26169
whole_archive_flag_spec_F77=
26172
# PORTME fill in a description of your system's linker (not GNU ld)
26175
allow_undefined_flag_F77=unsupported
26176
always_export_symbols_F77=yes
26177
archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
26178
# Note: this linker hardcodes the directories in LIBPATH if there
26179
# are no directories specified by -L.
26180
hardcode_minus_L_F77=yes
26181
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
26182
# Neither direct hardcoding nor static linking is supported with a
26184
hardcode_direct_F77=unsupported
26189
if test "$host_cpu" = ia64; then
26190
# On IA64, the linker does run time linking by default, so we don't
26191
# have to do anything special.
26192
aix_use_runtimelinking=no
26193
exp_sym_flag='-Bexport'
26196
# If we're using GNU nm, then we don't want the "-C" option.
26197
# -C means demangle to AIX nm, but means don't demangle with GNU nm
26198
# Also, AIX nm treats weak defined symbols like other global
26199
# defined symbols, whereas GNU nm marks them as "W".
26200
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
26201
export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
26203
export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
26205
aix_use_runtimelinking=no
26207
# Test if we are trying to use run time linking or normal
26208
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
26209
# need to do runtime linking.
26210
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
26211
for ld_flag in $LDFLAGS; do
26212
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
26213
aix_use_runtimelinking=yes
26220
exp_sym_flag='-bexport'
26221
no_entry_flag='-bnoentry'
26224
# When large executables or shared objects are built, AIX ld can
26225
# have problems creating the table of contents. If linking a library
26226
# or program results in "error TOC overflow" add -mminimal-toc to
26227
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
26228
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
26230
archive_cmds_F77=''
26231
hardcode_direct_F77=yes
26232
hardcode_direct_absolute_F77=yes
26233
hardcode_libdir_separator_F77=':'
26234
link_all_deplibs_F77=yes
26235
file_list_spec_F77='${wl}-f,'
26237
if test "$GCC" = yes; then
26238
case $host_os in aix4.[012]|aix4.[012].*)
26239
# We only want to do this on AIX 4.2 and lower, the check
26240
# below for broken collect2 doesn't work under 4.3+
26241
collect2name=`${CC} -print-prog-name=collect2`
26242
if test -f "$collect2name" &&
26243
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
26245
# We have reworked collect2
26248
# We have old collect2
26249
hardcode_direct_F77=unsupported
26250
# It fails to find uninstalled libraries when the uninstalled
26251
# path is not listed in the libpath. Setting hardcode_minus_L
26252
# to unsupported forces relinking
26253
hardcode_minus_L_F77=yes
26254
hardcode_libdir_flag_spec_F77='-L$libdir'
26255
hardcode_libdir_separator_F77=
26259
shared_flag='-shared'
26260
if test "$aix_use_runtimelinking" = yes; then
26261
shared_flag="$shared_flag "'${wl}-G'
26265
if test "$host_cpu" = ia64; then
26266
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
26267
# chokes on -Wl,-G. The following line is correct:
26270
if test "$aix_use_runtimelinking" = yes; then
26271
shared_flag='${wl}-G'
26273
shared_flag='${wl}-bM:SRE'
26278
export_dynamic_flag_spec_F77='${wl}-bexpall'
26279
# It seems that -bexpall does not export symbols beginning with
26280
# underscore (_), so it is better to generate a list of symbols to export.
26281
always_export_symbols_F77=yes
26282
if test "$aix_use_runtimelinking" = yes; then
26283
# Warning - without using the other runtime loading flags (-brtl),
26284
# -berok will link without error, but may produce a broken library.
26285
allow_undefined_flag_F77='-berok'
26286
# Determine the default libpath from the value encoded in an
26287
# empty executable.
26288
if test "${lt_cv_aix_libpath+set}" = set; then
26289
aix_libpath=$lt_cv_aix_libpath
26291
if ${lt_cv_aix_libpath__F77+:} false; then :
26292
$as_echo_n "(cached) " >&6
26294
cat > conftest.$ac_ext <<_ACEOF
26299
if ac_fn_f77_try_link "$LINENO"; then :
26301
lt_aix_libpath_sed='
26302
/Import File Strings/,/^$/ {
26304
s/^0 *\([^ ]*\) *$/\1/
26308
lt_cv_aix_libpath__F77=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
26309
# Check for a 64-bit object if we didn't find anything.
26310
if test -z "$lt_cv_aix_libpath__F77"; then
26311
lt_cv_aix_libpath__F77=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
26314
rm -f core conftest.err conftest.$ac_objext \
26315
conftest$ac_exeext conftest.$ac_ext
26316
if test -z "$lt_cv_aix_libpath__F77"; then
26317
lt_cv_aix_libpath__F77="/usr/lib:/lib"
26322
aix_libpath=$lt_cv_aix_libpath__F77
26325
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
26326
archive_expsym_cmds_F77='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
26328
if test "$host_cpu" = ia64; then
26329
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
26330
allow_undefined_flag_F77="-z nodefs"
26331
archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
26333
# Determine the default libpath from the value encoded in an
26334
# empty executable.
26335
if test "${lt_cv_aix_libpath+set}" = set; then
26336
aix_libpath=$lt_cv_aix_libpath
26338
if ${lt_cv_aix_libpath__F77+:} false; then :
26339
$as_echo_n "(cached) " >&6
26341
cat > conftest.$ac_ext <<_ACEOF
26346
if ac_fn_f77_try_link "$LINENO"; then :
26348
lt_aix_libpath_sed='
26349
/Import File Strings/,/^$/ {
26351
s/^0 *\([^ ]*\) *$/\1/
26355
lt_cv_aix_libpath__F77=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
26356
# Check for a 64-bit object if we didn't find anything.
26357
if test -z "$lt_cv_aix_libpath__F77"; then
26358
lt_cv_aix_libpath__F77=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
26361
rm -f core conftest.err conftest.$ac_objext \
26362
conftest$ac_exeext conftest.$ac_ext
26363
if test -z "$lt_cv_aix_libpath__F77"; then
26364
lt_cv_aix_libpath__F77="/usr/lib:/lib"
26369
aix_libpath=$lt_cv_aix_libpath__F77
26372
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
26373
# Warning - without using the other run time loading flags,
26374
# -berok will link without error, but may produce a broken library.
26375
no_undefined_flag_F77=' ${wl}-bernotok'
26376
allow_undefined_flag_F77=' ${wl}-berok'
26377
if test "$with_gnu_ld" = yes; then
26378
# We only use this code for GNU lds that support --whole-archive.
26379
whole_archive_flag_spec_F77='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
26381
# Exported symbols can be pulled into shared objects from archives
26382
whole_archive_flag_spec_F77='$convenience'
26384
archive_cmds_need_lc_F77=yes
26385
# This is similar to how AIX traditionally builds its shared libraries.
26386
archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
26394
# see comment about AmigaOS4 .so support
26395
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
26396
archive_expsym_cmds_F77=''
26399
archive_cmds_F77='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
26400
hardcode_libdir_flag_spec_F77='-L$libdir'
26401
hardcode_minus_L_F77=yes
26407
export_dynamic_flag_spec_F77=-rdynamic
26410
cygwin* | mingw* | pw32* | cegcc*)
26411
# When not using gcc, we currently assume that we are using
26412
# Microsoft Visual C++.
26413
# hardcode_libdir_flag_spec is actually meaningless, as there is
26414
# no search path for DLLs.
26415
case $cc_basename in
26418
hardcode_libdir_flag_spec_F77=' '
26419
allow_undefined_flag_F77=unsupported
26420
always_export_symbols_F77=yes
26421
file_list_spec_F77='@'
26422
# Tell ltmain to make .lib files, not .a files.
26424
# Tell ltmain to make .dll files, not .so files.
26426
# FIXME: Setting linknames here is a bad hack.
26427
archive_cmds_F77='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
26428
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
26429
sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
26431
sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
26433
$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
26435
# The linker will not automatically build a static lib if we build a DLL.
26436
# _LT_TAGVAR(old_archive_from_new_cmds, F77)='true'
26437
enable_shared_with_static_runtimes_F77=yes
26438
exclude_expsyms_F77='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
26439
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
26441
old_postinstall_cmds_F77='chmod 644 $oldlib'
26442
postlink_cmds_F77='lt_outputfile="@OUTPUT@"~
26443
lt_tool_outputfile="@TOOL_OUTPUT@"~
26444
case $lt_outputfile in
26447
lt_outputfile="$lt_outputfile.exe"
26448
lt_tool_outputfile="$lt_tool_outputfile.exe"
26451
if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
26452
$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
26453
$RM "$lt_outputfile.manifest";
26457
# Assume MSVC wrapper
26458
hardcode_libdir_flag_spec_F77=' '
26459
allow_undefined_flag_F77=unsupported
26460
# Tell ltmain to make .lib files, not .a files.
26462
# Tell ltmain to make .dll files, not .so files.
26464
# FIXME: Setting linknames here is a bad hack.
26465
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
26466
# The linker will automatically build a .lib file if we build a DLL.
26467
old_archive_from_new_cmds_F77='true'
26468
# FIXME: Should let the user specify the lib program.
26469
old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
26470
enable_shared_with_static_runtimes_F77=yes
26475
darwin* | rhapsody*)
26478
archive_cmds_need_lc_F77=no
26479
hardcode_direct_F77=no
26480
hardcode_automatic_F77=yes
26481
hardcode_shlibpath_var_F77=unsupported
26482
if test "$lt_cv_ld_force_load" = "yes"; then
26483
whole_archive_flag_spec_F77='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
26484
compiler_needs_object_F77=yes
26486
whole_archive_flag_spec_F77=''
26488
link_all_deplibs_F77=yes
26489
allow_undefined_flag_F77="$_lt_dar_allow_undefined"
26490
case $cc_basename in
26491
ifort*) _lt_dar_can_shared=yes ;;
26492
*) _lt_dar_can_shared=$GCC ;;
26494
if test "$_lt_dar_can_shared" = "yes"; then
26495
output_verbose_link_cmd=func_echo_all
26496
archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
26497
module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
26498
archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
26499
module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
26508
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
26509
hardcode_libdir_flag_spec_F77='-L$libdir'
26510
hardcode_shlibpath_var_F77=no
26513
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
26514
# support. Future versions do this automatically, but an explicit c++rt0.o
26515
# does not break anything, and helps significantly (at the cost of a little
26518
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
26519
hardcode_libdir_flag_spec_F77='-R$libdir'
26520
hardcode_direct_F77=yes
26521
hardcode_shlibpath_var_F77=no
26524
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
26526
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
26527
hardcode_direct_F77=yes
26528
hardcode_minus_L_F77=yes
26529
hardcode_shlibpath_var_F77=no
26532
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
26533
freebsd* | dragonfly*)
26534
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
26535
hardcode_libdir_flag_spec_F77='-R$libdir'
26536
hardcode_direct_F77=yes
26537
hardcode_shlibpath_var_F77=no
26541
if test "$GCC" = yes; then
26542
archive_cmds_F77='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
26544
archive_cmds_F77='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
26546
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
26547
hardcode_libdir_separator_F77=:
26548
hardcode_direct_F77=yes
26550
# hardcode_minus_L: Not really in the search PATH,
26551
# but as the default location of the library.
26552
hardcode_minus_L_F77=yes
26553
export_dynamic_flag_spec_F77='${wl}-E'
26557
if test "$GCC" = yes && test "$with_gnu_ld" = no; then
26558
archive_cmds_F77='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
26560
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
26562
if test "$with_gnu_ld" = no; then
26563
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
26564
hardcode_libdir_separator_F77=:
26565
hardcode_direct_F77=yes
26566
hardcode_direct_absolute_F77=yes
26567
export_dynamic_flag_spec_F77='${wl}-E'
26568
# hardcode_minus_L: Not really in the search PATH,
26569
# but as the default location of the library.
26570
hardcode_minus_L_F77=yes
26575
if test "$GCC" = yes && test "$with_gnu_ld" = no; then
26578
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
26581
archive_cmds_F77='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
26584
archive_cmds_F77='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
26590
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
26593
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
26596
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
26600
if test "$with_gnu_ld" = no; then
26601
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
26602
hardcode_libdir_separator_F77=:
26606
hardcode_direct_F77=no
26607
hardcode_shlibpath_var_F77=no
26610
hardcode_direct_F77=yes
26611
hardcode_direct_absolute_F77=yes
26612
export_dynamic_flag_spec_F77='${wl}-E'
26614
# hardcode_minus_L: Not really in the search PATH,
26615
# but as the default location of the library.
26616
hardcode_minus_L_F77=yes
26622
irix5* | irix6* | nonstopux*)
26623
if test "$GCC" = yes; then
26624
archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
26625
# Try to use the -exported_symbol ld option, if it does not
26626
# work, assume that -exports_file does not work either and
26627
# implicitly export all symbols.
26628
# This should be the same for all languages, so no per-tag cache variable.
26629
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
26630
$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
26631
if ${lt_cv_irix_exported_symbol+:} false; then :
26632
$as_echo_n "(cached) " >&6
26634
save_LDFLAGS="$LDFLAGS"
26635
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
26636
cat > conftest.$ac_ext <<_ACEOF
26641
if ac_fn_f77_try_link "$LINENO"; then :
26642
lt_cv_irix_exported_symbol=yes
26644
lt_cv_irix_exported_symbol=no
26646
rm -f core conftest.err conftest.$ac_objext \
26647
conftest$ac_exeext conftest.$ac_ext
26648
LDFLAGS="$save_LDFLAGS"
26650
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
26651
$as_echo "$lt_cv_irix_exported_symbol" >&6; }
26652
if test "$lt_cv_irix_exported_symbol" = yes; then
26653
archive_expsym_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
26656
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
26657
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
26659
archive_cmds_need_lc_F77='no'
26660
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
26661
hardcode_libdir_separator_F77=:
26662
inherit_rpath_F77=yes
26663
link_all_deplibs_F77=yes
26667
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
26668
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
26670
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
26672
hardcode_libdir_flag_spec_F77='-R$libdir'
26673
hardcode_direct_F77=yes
26674
hardcode_shlibpath_var_F77=no
26678
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
26679
hardcode_direct_F77=yes
26680
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
26681
hardcode_libdir_separator_F77=:
26682
hardcode_shlibpath_var_F77=no
26689
if test -f /usr/libexec/ld.so; then
26690
hardcode_direct_F77=yes
26691
hardcode_shlibpath_var_F77=no
26692
hardcode_direct_absolute_F77=yes
26693
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
26694
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
26695
archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
26696
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
26697
export_dynamic_flag_spec_F77='${wl}-E'
26700
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
26701
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
26702
hardcode_libdir_flag_spec_F77='-R$libdir'
26705
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
26706
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
26716
hardcode_libdir_flag_spec_F77='-L$libdir'
26717
hardcode_minus_L_F77=yes
26718
allow_undefined_flag_F77=unsupported
26719
archive_cmds_F77='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
26720
old_archive_from_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
26724
if test "$GCC" = yes; then
26725
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
26726
archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
26728
allow_undefined_flag_F77=' -expect_unresolved \*'
26729
archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
26731
archive_cmds_need_lc_F77='no'
26732
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
26733
hardcode_libdir_separator_F77=:
26736
osf4* | osf5*) # as osf3* with the addition of -msym flag
26737
if test "$GCC" = yes; then
26738
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
26739
archive_cmds_F77='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
26740
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
26742
allow_undefined_flag_F77=' -expect_unresolved \*'
26743
archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
26744
archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
26745
$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
26747
# Both c and cxx compiler support -rpath directly
26748
hardcode_libdir_flag_spec_F77='-rpath $libdir'
26750
archive_cmds_need_lc_F77='no'
26751
hardcode_libdir_separator_F77=:
26755
no_undefined_flag_F77=' -z defs'
26756
if test "$GCC" = yes; then
26758
archive_cmds_F77='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
26759
archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
26760
$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
26762
case `$CC -V 2>&1` in
26765
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
26766
archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
26767
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
26771
archive_cmds_F77='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
26772
archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
26773
$CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
26777
hardcode_libdir_flag_spec_F77='-R$libdir'
26778
hardcode_shlibpath_var_F77=no
26780
solaris2.[0-5] | solaris2.[0-5].*) ;;
26782
# The compiler driver will combine and reorder linker options,
26783
# but understands `-z linker_flag'. GCC discards it without `$wl',
26784
# but is careful enough not to reorder.
26785
# Supported since Solaris 2.6 (maybe 2.5.1?)
26786
if test "$GCC" = yes; then
26787
whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
26789
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
26793
link_all_deplibs_F77=yes
26797
if test "x$host_vendor" = xsequent; then
26798
# Use $CC to link under sequent, because it throws in some extra .o
26799
# files that make .init and .fini sections work.
26800
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
26802
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
26804
hardcode_libdir_flag_spec_F77='-L$libdir'
26805
hardcode_direct_F77=yes
26806
hardcode_minus_L_F77=yes
26807
hardcode_shlibpath_var_F77=no
26811
case $host_vendor in
26813
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
26814
hardcode_direct_F77=yes # is this really true???
26817
## LD is ld it makes a PLAMLIB
26818
## CC just makes a GrossModule.
26819
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
26820
reload_cmds_F77='$CC -r -o $output$reload_objs'
26821
hardcode_direct_F77=no
26824
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
26825
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
26828
runpath_var='LD_RUN_PATH'
26829
hardcode_shlibpath_var_F77=no
26833
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
26834
hardcode_shlibpath_var_F77=no
26835
export_dynamic_flag_spec_F77='-Bexport'
26839
if test -d /usr/nec; then
26840
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
26841
hardcode_shlibpath_var_F77=no
26842
runpath_var=LD_RUN_PATH
26843
hardcode_runpath_var=yes
26848
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
26849
no_undefined_flag_F77='${wl}-z,text'
26850
archive_cmds_need_lc_F77=no
26851
hardcode_shlibpath_var_F77=no
26852
runpath_var='LD_RUN_PATH'
26854
if test "$GCC" = yes; then
26855
archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
26856
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
26858
archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
26859
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
26863
sysv5* | sco3.2v5* | sco5v6*)
26864
# Note: We can NOT use -z defs as we might desire, because we do not
26865
# link with -lc, and that would cause any symbols used from libc to
26866
# always be unresolved, which means just about no library would
26867
# ever link correctly. If we're not using GNU ld we use -z text
26868
# though, which does catch some bad symbols but isn't as heavy-handed
26870
no_undefined_flag_F77='${wl}-z,text'
26871
allow_undefined_flag_F77='${wl}-z,nodefs'
26872
archive_cmds_need_lc_F77=no
26873
hardcode_shlibpath_var_F77=no
26874
hardcode_libdir_flag_spec_F77='${wl}-R,$libdir'
26875
hardcode_libdir_separator_F77=':'
26876
link_all_deplibs_F77=yes
26877
export_dynamic_flag_spec_F77='${wl}-Bexport'
26878
runpath_var='LD_RUN_PATH'
26880
if test "$GCC" = yes; then
26881
archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
26882
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
26884
archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
26885
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
26890
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
26891
hardcode_libdir_flag_spec_F77='-L$libdir'
26892
hardcode_shlibpath_var_F77=no
26900
if test x$host_vendor = xsni; then
26902
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
26903
export_dynamic_flag_spec_F77='${wl}-Blargedynsym'
26909
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5
26910
$as_echo "$ld_shlibs_F77" >&6; }
26911
test "$ld_shlibs_F77" = no && can_build_shared=no
26913
with_gnu_ld_F77=$with_gnu_ld
26921
# Do we need to explicitly link libc?
26923
case "x$archive_cmds_need_lc_F77" in
26925
# Assume -lc should be added
26926
archive_cmds_need_lc_F77=yes
26928
if test "$enable_shared" = yes && test "$GCC" = yes; then
26929
case $archive_cmds_F77 in
26931
# FIXME: we may have to deal with multi-command sequences.
26934
# Test whether the compiler implicitly links with -lc since on some
26935
# systems, -lgcc has to come before -lc. If gcc already passes -lc
26936
# to ld, don't add -lc before -lgcc.
26937
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
26938
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
26939
if ${lt_cv_archive_cmds_need_lc_F77+:} false; then :
26940
$as_echo_n "(cached) " >&6
26943
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
26945
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
26946
(eval $ac_compile) 2>&5
26948
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26949
test $ac_status = 0; } 2>conftest.err; then
26952
libobjs=conftest.$ac_objext
26954
wl=$lt_prog_compiler_wl_F77
26955
pic_flag=$lt_prog_compiler_pic_F77
26961
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
26962
allow_undefined_flag_F77=
26963
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
26964
(eval $archive_cmds_F77 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
26966
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26967
test $ac_status = 0; }
26969
lt_cv_archive_cmds_need_lc_F77=no
26971
lt_cv_archive_cmds_need_lc_F77=yes
26973
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
26975
cat conftest.err 1>&5
26980
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_F77" >&5
26981
$as_echo "$lt_cv_archive_cmds_need_lc_F77" >&6; }
26982
archive_cmds_need_lc_F77=$lt_cv_archive_cmds_need_lc_F77
27050
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
27051
$as_echo_n "checking dynamic linker characteristics... " >&6; }
27053
library_names_spec=
27054
libname_spec='lib$name'
27058
postuninstall_cmds=
27062
shlibpath_overrides_runpath=unknown
27064
dynamic_linker="$host_os ld.so"
27065
sys_lib_dlsearch_path_spec="/lib /usr/lib"
27066
need_lib_prefix=unknown
27067
hardcode_into_libs=no
27069
# when you set need_version to no, make sure it does not cause -set_version
27070
# flags to be left without arguments
27071
need_version=unknown
27075
version_type=linux # correct to gnu/linux during the next big refactor
27076
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
27077
shlibpath_var=LIBPATH
27079
# AIX 3 has no versioning support, so we append a major version to the name.
27080
soname_spec='${libname}${release}${shared_ext}$major'
27084
version_type=linux # correct to gnu/linux during the next big refactor
27087
hardcode_into_libs=yes
27088
if test "$host_cpu" = ia64; then
27089
# AIX 5 supports IA64
27090
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
27091
shlibpath_var=LD_LIBRARY_PATH
27093
# With GCC up to 2.95.x, collect2 would create an import file
27094
# for dependence libraries. The import file would start with
27095
# the line `#! .'. This would cause the generated library to
27096
# depend on `.', always an invalid library. This was fixed in
27097
# development snapshots of GCC prior to 3.0.
27099
aix4 | aix4.[01] | aix4.[01].*)
27100
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
27102
echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
27105
can_build_shared=no
27109
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
27110
# soname into executable. Probably we can add versioning support to
27111
# collect2, so additional links can be useful in future.
27112
if test "$aix_use_runtimelinking" = yes; then
27113
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
27114
# instead of lib<name>.a to let people know that these are not
27115
# typical AIX shared libraries.
27116
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
27118
# We preserve .a as extension for shared libraries through AIX4.2
27119
# and later when we are not doing run time linking.
27120
library_names_spec='${libname}${release}.a $libname.a'
27121
soname_spec='${libname}${release}${shared_ext}$major'
27123
shlibpath_var=LIBPATH
27130
# Since July 2007 AmigaOS4 officially supports .so libraries.
27131
# When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
27132
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
27135
library_names_spec='$libname.ixlibrary $libname.a'
27136
# Create ${libname}_ixlibrary.a entries in /sys/libs.
27137
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
27143
library_names_spec='${libname}${shared_ext}'
27144
dynamic_linker="$host_os ld.so"
27145
shlibpath_var=LIBRARY_PATH
27149
version_type=linux # correct to gnu/linux during the next big refactor
27151
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
27152
soname_spec='${libname}${release}${shared_ext}$major'
27153
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
27154
shlibpath_var=LD_LIBRARY_PATH
27155
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
27156
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
27157
# the default ld.so.conf also contains /usr/contrib/lib and
27158
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
27159
# libtool to hard-code these into programs
27162
cygwin* | mingw* | pw32* | cegcc*)
27163
version_type=windows
27168
case $GCC,$cc_basename in
27171
library_names_spec='$libname.dll.a'
27172
# DLL is installed to $(libdir)/../bin by postinstall_cmds
27173
postinstall_cmds='base_file=`basename \${file}`~
27174
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
27175
dldir=$destdir/`dirname \$dlpath`~
27176
test -d \$dldir || mkdir -p \$dldir~
27177
$install_prog $dir/$dlname \$dldir/$dlname~
27178
chmod a+x \$dldir/$dlname~
27179
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
27180
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
27182
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
27183
dlpath=$dir/\$dldll~
27185
shlibpath_overrides_runpath=yes
27189
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
27190
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
27194
# MinGW DLLs use traditional 'lib' prefix
27195
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
27198
# pw32 DLLs use 'pw' prefix rather than 'lib'
27199
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
27202
dynamic_linker='Win32 ld.exe'
27207
libname_spec='$name'
27208
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
27209
library_names_spec='${libname}.dll.lib'
27213
sys_lib_search_path_spec=
27216
for lt_path in $LIB
27219
# Let DOS variable expansion print the short 8.3 style file name.
27220
lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
27221
sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
27224
# Convert to MSYS style.
27225
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
27228
# Convert to unix form, then to dos form, then back to unix form
27229
# but this time dos style (no spaces!) so that the unix form looks
27230
# like /cygdrive/c/PROGRA~1:/cygdr...
27231
sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
27232
sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
27233
sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
27236
sys_lib_search_path_spec="$LIB"
27237
if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
27238
# It is most probably a Windows format PATH.
27239
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
27241
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
27243
# FIXME: find the short name or the path components, as spaces are
27244
# common. (e.g. "Program Files" -> "PROGRA~1")
27248
# DLL is installed to $(libdir)/../bin by postinstall_cmds
27249
postinstall_cmds='base_file=`basename \${file}`~
27250
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
27251
dldir=$destdir/`dirname \$dlpath`~
27252
test -d \$dldir || mkdir -p \$dldir~
27253
$install_prog $dir/$dlname \$dldir/$dlname'
27254
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
27255
dlpath=$dir/\$dldll~
27257
shlibpath_overrides_runpath=yes
27258
dynamic_linker='Win32 link.exe'
27262
# Assume MSVC wrapper
27263
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
27264
dynamic_linker='Win32 ld.exe'
27267
# FIXME: first we should search . and the directory the executable is in
27271
darwin* | rhapsody*)
27272
dynamic_linker="$host_os dyld"
27273
version_type=darwin
27276
library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
27277
soname_spec='${libname}${release}${major}$shared_ext'
27278
shlibpath_overrides_runpath=yes
27279
shlibpath_var=DYLD_LIBRARY_PATH
27280
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
27282
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
27286
version_type=linux # correct to gnu/linux during the next big refactor
27289
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
27290
soname_spec='${libname}${release}${shared_ext}$major'
27291
shlibpath_var=LD_LIBRARY_PATH
27294
freebsd* | dragonfly*)
27295
# DragonFly does not have aout. When/if they implement a new
27296
# versioning mechanism, adjust this.
27297
if test -x /usr/bin/objformat; then
27298
objformat=`/usr/bin/objformat`
27301
freebsd[23].*) objformat=aout ;;
27302
*) objformat=elf ;;
27305
version_type=freebsd-$objformat
27306
case $version_type in
27308
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
27313
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
27317
shlibpath_var=LD_LIBRARY_PATH
27320
shlibpath_overrides_runpath=yes
27322
freebsd3.[01]* | freebsdelf3.[01]*)
27323
shlibpath_overrides_runpath=yes
27324
hardcode_into_libs=yes
27326
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
27327
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
27328
shlibpath_overrides_runpath=no
27329
hardcode_into_libs=yes
27331
*) # from 4.6 on, and DragonFly
27332
shlibpath_overrides_runpath=yes
27333
hardcode_into_libs=yes
27339
version_type=linux # correct to gnu/linux during the next big refactor
27342
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
27343
soname_spec='${libname}${release}${shared_ext}$major'
27344
shlibpath_var=LD_LIBRARY_PATH
27345
shlibpath_overrides_runpath=no
27346
hardcode_into_libs=yes
27350
version_type=linux # correct to gnu/linux during the next big refactor
27353
dynamic_linker="$host_os runtime_loader"
27354
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
27355
soname_spec='${libname}${release}${shared_ext}$major'
27356
shlibpath_var=LIBRARY_PATH
27357
shlibpath_overrides_runpath=yes
27358
sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
27359
hardcode_into_libs=yes
27362
hpux9* | hpux10* | hpux11*)
27363
# Give a soname corresponding to the major version so that dld.sl refuses to
27364
# link against other versions.
27371
hardcode_into_libs=yes
27372
dynamic_linker="$host_os dld.so"
27373
shlibpath_var=LD_LIBRARY_PATH
27374
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
27375
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
27376
soname_spec='${libname}${release}${shared_ext}$major'
27377
if test "X$HPUX_IA64_MODE" = X32; then
27378
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
27380
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
27382
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
27386
hardcode_into_libs=yes
27387
dynamic_linker="$host_os dld.sl"
27388
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
27389
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
27390
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
27391
soname_spec='${libname}${release}${shared_ext}$major'
27392
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
27393
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
27397
dynamic_linker="$host_os dld.sl"
27398
shlibpath_var=SHLIB_PATH
27399
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
27400
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
27401
soname_spec='${libname}${release}${shared_ext}$major'
27404
# HP-UX runs *really* slowly unless shared libraries are mode 555, ...
27405
postinstall_cmds='chmod 555 $lib'
27406
# or fails outright, so override atomically:
27407
install_override_mode=555
27411
version_type=linux # correct to gnu/linux during the next big refactor
27414
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
27415
soname_spec='${libname}${release}${shared_ext}$major'
27416
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
27417
shlibpath_var=LD_LIBRARY_PATH
27418
shlibpath_overrides_runpath=no
27419
hardcode_into_libs=yes
27422
irix5* | irix6* | nonstopux*)
27424
nonstopux*) version_type=nonstopux ;;
27426
if test "$lt_cv_prog_gnu_ld" = yes; then
27427
version_type=linux # correct to gnu/linux during the next big refactor
27434
soname_spec='${libname}${release}${shared_ext}$major'
27435
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
27437
irix5* | nonstopux*)
27438
libsuff= shlibsuff=
27441
case $LD in # libtool.m4 will add one of these switches to LD
27442
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
27443
libsuff= shlibsuff= libmagic=32-bit;;
27444
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
27445
libsuff=32 shlibsuff=N32 libmagic=N32;;
27446
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
27447
libsuff=64 shlibsuff=64 libmagic=64-bit;;
27448
*) libsuff= shlibsuff= libmagic=never-match;;
27452
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
27453
shlibpath_overrides_runpath=no
27454
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
27455
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
27456
hardcode_into_libs=yes
27459
# No shared lib support for Linux oldld, aout, or coff.
27460
linux*oldld* | linux*aout* | linux*coff*)
27464
# This must be glibc/ELF.
27465
linux* | k*bsd*-gnu | kopensolaris*-gnu)
27466
version_type=linux # correct to gnu/linux during the next big refactor
27469
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
27470
soname_spec='${libname}${release}${shared_ext}$major'
27471
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
27472
shlibpath_var=LD_LIBRARY_PATH
27473
shlibpath_overrides_runpath=no
27475
# Some binutils ld are patched to set DT_RUNPATH
27476
if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
27477
$as_echo_n "(cached) " >&6
27479
lt_cv_shlibpath_overrides_runpath=no
27480
save_LDFLAGS=$LDFLAGS
27481
save_libdir=$libdir
27482
eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_F77\"; \
27483
LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_F77\""
27484
cat > conftest.$ac_ext <<_ACEOF
27489
if ac_fn_f77_try_link "$LINENO"; then :
27490
if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
27491
lt_cv_shlibpath_overrides_runpath=yes
27494
rm -f core conftest.err conftest.$ac_objext \
27495
conftest$ac_exeext conftest.$ac_ext
27496
LDFLAGS=$save_LDFLAGS
27497
libdir=$save_libdir
27501
shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
27503
# This implies no fast_install, which is unacceptable.
27504
# Some rework will be needed to allow for fast_install
27505
# before this can be enabled.
27506
hardcode_into_libs=yes
27508
# Append ld.so.conf contents to the search path
27509
if test -f /etc/ld.so.conf; then
27510
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
27511
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
27514
# We used to test for /lib/ld.so.1 and disable shared libraries on
27515
# powerpc, because MkLinux only supported shared libraries with the
27516
# GNU dynamic linker. Since this was broken with cross compilers,
27517
# most powerpc-linux boxes support dynamic linking these days and
27518
# people can always --disable-shared, the test was removed, and we
27519
# assume the GNU/Linux dynamic linker is in use.
27520
dynamic_linker='GNU/Linux ld.so'
27527
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
27528
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
27529
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
27530
dynamic_linker='NetBSD (a.out) ld.so'
27532
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
27533
soname_spec='${libname}${release}${shared_ext}$major'
27534
dynamic_linker='NetBSD ld.elf_so'
27536
shlibpath_var=LD_LIBRARY_PATH
27537
shlibpath_overrides_runpath=yes
27538
hardcode_into_libs=yes
27542
version_type=linux # correct to gnu/linux during the next big refactor
27543
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
27544
shlibpath_var=LD_LIBRARY_PATH
27545
shlibpath_overrides_runpath=yes
27552
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
27553
soname_spec='${libname}${release}${shared_ext}$major'
27554
shlibpath_var=LD_LIBRARY_PATH
27555
shlibpath_overrides_runpath=no
27556
hardcode_into_libs=yes
27557
dynamic_linker='ldqnx.so'
27562
sys_lib_dlsearch_path_spec="/usr/lib"
27564
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
27566
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
27567
*) need_version=no ;;
27569
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
27570
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
27571
shlibpath_var=LD_LIBRARY_PATH
27572
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
27574
openbsd2.[89] | openbsd2.[89].*)
27575
shlibpath_overrides_runpath=no
27578
shlibpath_overrides_runpath=yes
27582
shlibpath_overrides_runpath=yes
27587
libname_spec='$name'
27590
library_names_spec='$libname${shared_ext} $libname.a'
27591
dynamic_linker='OS/2 ld.exe'
27592
shlibpath_var=LIBPATH
27595
osf3* | osf4* | osf5*)
27599
soname_spec='${libname}${release}${shared_ext}$major'
27600
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
27601
shlibpath_var=LD_LIBRARY_PATH
27602
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
27603
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
27611
version_type=linux # correct to gnu/linux during the next big refactor
27614
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
27615
soname_spec='${libname}${release}${shared_ext}$major'
27616
shlibpath_var=LD_LIBRARY_PATH
27617
shlibpath_overrides_runpath=yes
27618
hardcode_into_libs=yes
27619
# ldd complains unless libraries are executable
27620
postinstall_cmds='chmod +x $lib'
27625
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
27626
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
27627
shlibpath_var=LD_LIBRARY_PATH
27628
shlibpath_overrides_runpath=yes
27629
if test "$with_gnu_ld" = yes; then
27636
version_type=linux # correct to gnu/linux during the next big refactor
27637
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
27638
soname_spec='${libname}${release}${shared_ext}$major'
27639
shlibpath_var=LD_LIBRARY_PATH
27640
case $host_vendor in
27642
shlibpath_overrides_runpath=no
27644
runpath_var=LD_RUN_PATH
27652
shlibpath_overrides_runpath=no
27653
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
27659
if test -d /usr/nec ;then
27660
version_type=linux # correct to gnu/linux during the next big refactor
27661
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
27662
soname_spec='$libname${shared_ext}.$major'
27663
shlibpath_var=LD_LIBRARY_PATH
27667
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
27668
version_type=freebsd-elf
27671
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
27672
soname_spec='${libname}${release}${shared_ext}$major'
27673
shlibpath_var=LD_LIBRARY_PATH
27674
shlibpath_overrides_runpath=yes
27675
hardcode_into_libs=yes
27676
if test "$with_gnu_ld" = yes; then
27677
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
27679
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
27682
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
27686
sys_lib_dlsearch_path_spec='/usr/lib'
27690
# TPF is a cross-target only. Preferred cross-host = GNU/Linux.
27691
version_type=linux # correct to gnu/linux during the next big refactor
27694
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
27695
shlibpath_var=LD_LIBRARY_PATH
27696
shlibpath_overrides_runpath=no
27697
hardcode_into_libs=yes
27701
version_type=linux # correct to gnu/linux during the next big refactor
27702
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
27703
soname_spec='${libname}${release}${shared_ext}$major'
27704
shlibpath_var=LD_LIBRARY_PATH
27711
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
27712
$as_echo "$dynamic_linker" >&6; }
27713
test "$dynamic_linker" = no && can_build_shared=no
27715
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
27716
if test "$GCC" = yes; then
27717
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
27720
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
27721
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
27723
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
27724
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
27764
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
27765
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
27766
hardcode_action_F77=
27767
if test -n "$hardcode_libdir_flag_spec_F77" ||
27768
test -n "$runpath_var_F77" ||
27769
test "X$hardcode_automatic_F77" = "Xyes" ; then
27771
# We can hardcode non-existent directories.
27772
if test "$hardcode_direct_F77" != no &&
27773
# If the only mechanism to avoid hardcoding is shlibpath_var, we
27774
# have to relink, otherwise we might link with an installed library
27775
# when we should be linking with a yet-to-be-installed one
27776
## test "$_LT_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
27777
test "$hardcode_minus_L_F77" != no; then
27778
# Linking always hardcodes the temporary library directory.
27779
hardcode_action_F77=relink
27781
# We can link without hardcoding, and we can hardcode nonexisting dirs.
27782
hardcode_action_F77=immediate
27785
# We cannot hardcode anything, or else we can only hardcode existing
27787
hardcode_action_F77=unsupported
27789
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5
27790
$as_echo "$hardcode_action_F77" >&6; }
27792
if test "$hardcode_action_F77" = relink ||
27793
test "$inherit_rpath_F77" = yes; then
27794
# Fast installation is not supported
27795
enable_fast_install=no
27796
elif test "$shlibpath_overrides_runpath" = yes ||
27797
test "$enable_shared" = no; then
27798
# Fast installation is not necessary
27799
enable_fast_install=needless
27808
fi # test -n "$compiler"
27812
CFLAGS="$lt_save_CFLAGS"
27813
fi # test "$_lt_disable_F77" != yes
27816
ac_cpp='$CPP $CPPFLAGS'
27817
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27818
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27819
ac_compiler_gnu=$ac_cv_c_compiler_gnu
27833
ac_config_commands="$ac_config_commands libtool"
27838
# Only expand once:
27841
# and now that that's over, put the MPI compilers back
27842
# also, the above hack incorrectly sets the base compiler as the linker
27843
if test x$with_mpi_wrappers = xyes; then :
27845
CC="$ga_mpi_unwrap_push_save_CC"
27846
CXX="$ga_mpi_unwrap_push_save_CXX"
27847
F77="$ga_mpi_unwrap_push_save_F77"
27848
FC="$ga_mpi_unwrap_push_save_FC"
27853
compiler_DEFAULT="$CC"
27854
compiler_CXX="$CXX"
27855
compiler_F77="$F77"
27858
###############################################################################
27860
###############################################################################
27861
ac_config_files="$ac_config_files Makefile"
27863
cat >confcache <<\_ACEOF
27864
# This file is a shell script that caches the results of configure
27865
# tests run on this system so they can be shared between configure
27866
# scripts and configure runs, see configure's option --config-cache.
27867
# It is not useful on other systems. If it contains results you don't
27868
# want to keep, you may remove or edit it.
27870
# config.status only pays attention to the cache file if you give it
27871
# the --recheck option to rerun configure.
27873
# `ac_cv_env_foo' variables (set or unset) will be overridden when
27874
# loading this file, other *unset* `ac_cv_foo' will be assigned the
27875
# following values.
27879
# The following way of writing the cache mishandles newlines in values,
27880
# but we know of no workaround that is simple, portable, and efficient.
27881
# So, we kill variables containing newlines.
27882
# Ultrix sh set writes to stderr and can't be redirected directly,
27883
# and sets the high bit in the cache file unless we assign to the vars.
27885
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27886
eval ac_val=\$$ac_var
27890
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27891
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27894
_ | IFS | as_nl) ;; #(
27895
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
27896
*) { eval $ac_var=; unset $ac_var;} ;;
27902
case $as_nl`(ac_space=' '; set) 2>&1` in #(
27903
*${as_nl}ac_space=\ *)
27904
# `set' does not quote correctly, so add quotes: double-quote
27905
# substitution turns \\\\ into \\, and sed turns \\ into \.
27908
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27911
# `set' quotes correctly as required by POSIX, so do not add quotes.
27912
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27921
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27923
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27925
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27926
if test -w "$cache_file"; then
27927
if test "x$cache_file" != "x/dev/null"; then
27928
{ $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27929
$as_echo "$as_me: updating cache $cache_file" >&6;}
27930
if test ! -f "$cache_file" || test -h "$cache_file"; then
27931
cat confcache >"$cache_file"
27933
case $cache_file in #(
27935
mv -f confcache "$cache_file"$$ &&
27936
mv -f "$cache_file"$$ "$cache_file" ;; #(
27938
mv -f confcache "$cache_file" ;;
27943
{ $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27944
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27949
test "x$prefix" = xNONE && prefix=$ac_default_prefix
27950
# Let make expand exec_prefix.
27951
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27953
DEFS=-DHAVE_CONFIG_H
27958
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27959
# 1. Remove the extension, and $U if already installed.
27960
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27961
ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
27962
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27963
# will be set to the directory where LIBOBJS objects are built.
27964
as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27965
as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
27967
LIBOBJS=$ac_libobjs
27969
LTLIBOBJS=$ac_ltlibobjs
27972
if test -z "${BGL_TRUE}" && test -z "${BGL_FALSE}"; then
27973
as_fn_error $? "conditional \"BGL\" was never defined.
27974
Usually this means the macro was only invoked conditionally." "$LINENO" 5
27976
if test -z "${BGP_TRUE}" && test -z "${BGP_FALSE}"; then
27977
as_fn_error $? "conditional \"BGP\" was never defined.
27978
Usually this means the macro was only invoked conditionally." "$LINENO" 5
27980
if test -z "${CATAMOUNT_TRUE}" && test -z "${CATAMOUNT_FALSE}"; then
27981
as_fn_error $? "conditional \"CATAMOUNT\" was never defined.
27982
Usually this means the macro was only invoked conditionally." "$LINENO" 5
27984
if test -z "${CRAY_SV1_TRUE}" && test -z "${CRAY_SV1_FALSE}"; then
27985
as_fn_error $? "conditional \"CRAY_SV1\" was never defined.
27986
Usually this means the macro was only invoked conditionally." "$LINENO" 5
27988
if test -z "${CRAY_SV2_TRUE}" && test -z "${CRAY_SV2_FALSE}"; then
27989
as_fn_error $? "conditional \"CRAY_SV2\" was never defined.
27990
Usually this means the macro was only invoked conditionally." "$LINENO" 5
27992
if test -z "${CRAY_T3E_TRUE}" && test -z "${CRAY_T3E_FALSE}"; then
27993
as_fn_error $? "conditional \"CRAY_T3E\" was never defined.
27994
Usually this means the macro was only invoked conditionally." "$LINENO" 5
27996
if test -z "${CRAY_XT_TRUE}" && test -z "${CRAY_XT_FALSE}"; then
27997
as_fn_error $? "conditional \"CRAY_XT\" was never defined.
27998
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28000
if test -z "${CRAY_YMP_TRUE}" && test -z "${CRAY_YMP_FALSE}"; then
28001
as_fn_error $? "conditional \"CRAY_YMP\" was never defined.
28002
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28004
if test -z "${CYGNUS_TRUE}" && test -z "${CYGNUS_FALSE}"; then
28005
as_fn_error $? "conditional \"CYGNUS\" was never defined.
28006
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28008
if test -z "${CYGWIN_TRUE}" && test -z "${CYGWIN_FALSE}"; then
28009
as_fn_error $? "conditional \"CYGWIN\" was never defined.
28010
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28012
if test -z "${DECOSF_TRUE}" && test -z "${DECOSF_FALSE}"; then
28013
as_fn_error $? "conditional \"DECOSF\" was never defined.
28014
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28016
if test -z "${FUJITSU_VPP_TRUE}" && test -z "${FUJITSU_VPP_FALSE}"; then
28017
as_fn_error $? "conditional \"FUJITSU_VPP\" was never defined.
28018
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28020
if test -z "${HITACHI_TRUE}" && test -z "${HITACHI_FALSE}"; then
28021
as_fn_error $? "conditional \"HITACHI\" was never defined.
28022
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28024
if test -z "${HPUX_TRUE}" && test -z "${HPUX_FALSE}"; then
28025
as_fn_error $? "conditional \"HPUX\" was never defined.
28026
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28028
if test -z "${IBM_TRUE}" && test -z "${IBM_FALSE}"; then
28029
as_fn_error $? "conditional \"IBM\" was never defined.
28030
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28032
if test -z "${INTERIX_TRUE}" && test -z "${INTERIX_FALSE}"; then
28033
as_fn_error $? "conditional \"INTERIX\" was never defined.
28034
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28036
if test -z "${LAPI_TRUE}" && test -z "${LAPI_FALSE}"; then
28037
as_fn_error $? "conditional \"LAPI\" was never defined.
28038
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28040
if test -z "${LINUX_TRUE}" && test -z "${LINUX_FALSE}"; then
28041
as_fn_error $? "conditional \"LINUX\" was never defined.
28042
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28044
if test -z "${MACX_TRUE}" && test -z "${MACX_FALSE}"; then
28045
as_fn_error $? "conditional \"MACX\" was never defined.
28046
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28048
if test -z "${NEC_TRUE}" && test -z "${NEC_FALSE}"; then
28049
as_fn_error $? "conditional \"NEC\" was never defined.
28050
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28052
if test -z "${SGI_TRUE}" && test -z "${SGI_FALSE}"; then
28053
as_fn_error $? "conditional \"SGI\" was never defined.
28054
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28056
if test -z "${SGI_N32_TRUE}" && test -z "${SGI_N32_FALSE}"; then
28057
as_fn_error $? "conditional \"SGI_N32\" was never defined.
28058
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28060
if test -z "${SGITFP_TRUE}" && test -z "${SGITFP_FALSE}"; then
28061
as_fn_error $? "conditional \"SGITFP\" was never defined.
28062
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28064
if test -z "${SOLARIS_TRUE}" && test -z "${SOLARIS_FALSE}"; then
28065
as_fn_error $? "conditional \"SOLARIS\" was never defined.
28066
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28068
if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then
28069
as_fn_error $? "conditional \"CROSS_COMPILING\" was never defined.
28070
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28072
if test -n "$EXEEXT"; then
28074
am__EXEEXT_FALSE='#'
28076
am__EXEEXT_TRUE='#'
28080
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
28081
as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
28082
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28084
if test -z "${TASCEL_STANDALONE_TRUE}" && test -z "${TASCEL_STANDALONE_FALSE}"; then
28085
as_fn_error $? "conditional \"TASCEL_STANDALONE\" was never defined.
28086
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28088
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
28089
as_fn_error $? "conditional \"AMDEP\" was never defined.
28090
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28092
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
28093
as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
28094
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28096
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
28097
as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
28098
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28100
if test -z "${NOFORT_TRUE}" && test -z "${NOFORT_FALSE}"; then
28101
as_fn_error $? "conditional \"NOFORT\" was never defined.
28102
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28104
if test -z "${ENABLE_F77_TRUE}" && test -z "${ENABLE_F77_FALSE}"; then
28105
as_fn_error $? "conditional \"ENABLE_F77\" was never defined.
28106
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28108
if test -z "${HAVE_BLAS_TRUE}" && test -z "${HAVE_BLAS_FALSE}"; then
28109
as_fn_error $? "conditional \"HAVE_BLAS\" was never defined.
28110
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28112
if test -z "${HAVE_LAPACK_TRUE}" && test -z "${HAVE_LAPACK_FALSE}"; then
28113
as_fn_error $? "conditional \"HAVE_LAPACK\" was never defined.
28114
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28116
if test -z "${HAVE_SCALAPACK_TRUE}" && test -z "${HAVE_SCALAPACK_FALSE}"; then
28117
as_fn_error $? "conditional \"HAVE_SCALAPACK\" was never defined.
28118
Usually this means the macro was only invoked conditionally." "$LINENO" 5
28121
: "${CONFIG_STATUS=./config.status}"
28123
ac_clean_files_save=$ac_clean_files
28124
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28125
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
28126
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
28128
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
28130
# Generated by $as_me.
28131
# Run this file to recreate the current configuration.
28132
# Compiler output produced by configure, useful for debugging
28133
# configure, is in config.log if it exists.
28136
ac_cs_recheck=false
28139
SHELL=\${CONFIG_SHELL-$SHELL}
28142
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
28143
## -------------------- ##
28144
## M4sh Initialization. ##
28145
## -------------------- ##
28147
# Be more Bourne compatible
28148
DUALCASE=1; export DUALCASE # for MKS sh
28149
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
28152
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
28153
# is contrary to our usage. Disable this feature.
28154
alias -g '${1+"$@"}'='"$@"'
28155
setopt NO_GLOB_SUBST
28157
case `(set -o) 2>/dev/null` in #(
28169
# Printing a long string crashes Solaris 7 /usr/bin/printf.
28170
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
28171
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
28172
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
28173
# Prefer a ksh shell builtin over an external printf program on Solaris,
28174
# but without wasting forks for bash or zsh.
28175
if test -z "$BASH_VERSION$ZSH_VERSION" \
28176
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
28177
as_echo='print -r --'
28178
as_echo_n='print -rn --'
28179
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
28180
as_echo='printf %s\n'
28181
as_echo_n='printf %s'
28183
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
28184
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
28185
as_echo_n='/usr/ucb/echo -n'
28187
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
28188
as_echo_n_body='eval
28192
expr "X$arg" : "X\\(.*\\)$as_nl";
28193
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
28195
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
28197
export as_echo_n_body
28198
as_echo_n='sh -c $as_echo_n_body as_echo'
28200
export as_echo_body
28201
as_echo='sh -c $as_echo_body as_echo'
28204
# The user is always right.
28205
if test "${PATH_SEPARATOR+set}" != set; then
28207
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
28208
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
28215
# We need space, tab and new line, in precisely that order. Quoting is
28216
# there to prevent editors from complaining about space-tab.
28217
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
28218
# splitting by setting IFS to empty value.)
28221
# Find who we are. Look in the path if we contain no directory separator.
28224
*[\\/]* ) as_myself=$0 ;;
28225
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28226
for as_dir in $PATH
28229
test -z "$as_dir" && as_dir=.
28230
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28236
# We did not find ourselves, most probably we were run as `sh COMMAND'
28237
# in which case we are not to be found in the path.
28238
if test "x$as_myself" = x; then
28241
if test ! -f "$as_myself"; then
28242
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28246
# Unset variables that we do not need and which cause bugs (e.g. in
28247
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
28248
# suppresses any "Segmentation fault" message there. '((' could
28249
# trigger a bug in pdksh 5.2.14.
28250
for as_var in BASH_ENV ENV MAIL MAILPATH
28251
do eval test x\${$as_var+set} = xset \
28252
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
28265
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
28268
# as_fn_error STATUS ERROR [LINENO LOG_FD]
28269
# ----------------------------------------
28270
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
28271
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
28272
# script with STATUS, using 1 if that was 0.
28275
as_status=$1; test $as_status -eq 0 && as_status=1
28277
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
28278
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
28280
$as_echo "$as_me: error: $2" >&2
28281
as_fn_exit $as_status
28285
# as_fn_set_status STATUS
28286
# -----------------------
28287
# Set $? to STATUS, without forking.
28288
as_fn_set_status ()
28291
} # as_fn_set_status
28293
# as_fn_exit STATUS
28294
# -----------------
28295
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
28299
as_fn_set_status $1
28305
# Portably unset VAR.
28308
{ eval $1=; unset $1;}
28310
as_unset=as_fn_unset
28311
# as_fn_append VAR VALUE
28312
# ----------------------
28313
# Append the text in VALUE to the end of the definition contained in VAR. Take
28314
# advantage of any shell optimizations that allow amortized linear growth over
28315
# repeated appends, instead of the typical quadratic growth present in naive
28317
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
28318
eval 'as_fn_append ()
28329
# as_fn_arith ARG...
28330
# ------------------
28331
# Perform arithmetic evaluation on the ARGs, and store the result in the
28332
# global $as_val. Take advantage of shells that can avoid forks. The arguments
28333
# must be portable across $(()) and expr.
28334
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
28335
eval 'as_fn_arith ()
28342
as_val=`expr "$@" || test $? -eq 1`
28347
if expr a : '\(a\)' >/dev/null 2>&1 &&
28348
test "X`expr 00001 : '.*\(...\)'`" = X001; then
28354
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
28355
as_basename=basename
28360
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
28366
as_me=`$as_basename -- "$0" ||
28367
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28368
X"$0" : 'X\(//\)$' \| \
28369
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28371
sed '/^.*\/\([^/][^/]*\)\/*$/{
28385
# Avoid depending upon Character Ranges.
28386
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28387
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28388
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28389
as_cr_digits='0123456789'
28390
as_cr_alnum=$as_cr_Letters$as_cr_digits
28392
ECHO_C= ECHO_N= ECHO_T=
28393
case `echo -n x` in #(((((
28395
case `echo 'xy\c'` in
28396
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
28398
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null
28405
rm -f conf$$ conf$$.exe conf$$.file
28406
if test -d conf$$.dir; then
28407
rm -f conf$$.dir/conf$$.file
28410
mkdir conf$$.dir 2>/dev/null
28412
if (echo >conf$$.file) 2>/dev/null; then
28413
if ln -s conf$$.file conf$$ 2>/dev/null; then
28415
# ... but there are two gotchas:
28416
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28417
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28418
# In both cases, we have to default to `cp -p'.
28419
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
28421
elif ln conf$$.file conf$$ 2>/dev/null; then
28429
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
28430
rmdir conf$$.dir 2>/dev/null
28435
# Create "$as_dir" as a directory, including parents if necessary.
28440
-*) as_dir=./$as_dir;;
28442
test -d "$as_dir" || eval $as_mkdir_p || {
28446
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
28447
*) as_qdir=$as_dir;;
28449
as_dirs="'$as_qdir' $as_dirs"
28450
as_dir=`$as_dirname -- "$as_dir" ||
28451
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28452
X"$as_dir" : 'X\(//\)[^/]' \| \
28453
X"$as_dir" : 'X\(//\)$' \| \
28454
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28455
$as_echo X"$as_dir" |
28456
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28460
/^X\(\/\/\)[^/].*/{
28473
test -d "$as_dir" && break
28475
test -z "$as_dirs" || eval "mkdir $as_dirs"
28476
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
28480
if mkdir -p . 2>/dev/null; then
28481
as_mkdir_p='mkdir -p "$as_dir"'
28483
test -d ./-p && rmdir ./-p
28487
if test -x / >/dev/null 2>&1; then
28488
as_test_x='test -x'
28490
if ls -dL / >/dev/null 2>&1; then
28497
if test -d "$1"; then
28503
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
28504
???[sx]*):;;*)false;;esac;fi
28508
as_executable_p=$as_test_x
28510
# Sed expression to map a string onto a valid CPP name.
28511
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28513
# Sed expression to map a string onto a valid variable name.
28514
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28518
## ----------------------------------- ##
28519
## Main body of $CONFIG_STATUS script. ##
28520
## ----------------------------------- ##
28522
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
28524
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28525
# Save the log message, to keep $0 and so on meaningful, and to
28526
# report actual input values of CONFIG_FILES etc. instead of their
28527
# values after options handling.
28529
This file was extended by Task Scheduling Library (tascel) $as_me 0.0.1, which was
28530
generated by GNU Autoconf 2.68. Invocation command line was
28532
CONFIG_FILES = $CONFIG_FILES
28533
CONFIG_HEADERS = $CONFIG_HEADERS
28534
CONFIG_LINKS = $CONFIG_LINKS
28535
CONFIG_COMMANDS = $CONFIG_COMMANDS
28538
on `(hostname || uname -n) 2>/dev/null | sed 1q`
28543
case $ac_config_files in *"
28544
"*) set x $ac_config_files; shift; ac_config_files=$*;;
28547
case $ac_config_headers in *"
28548
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
28552
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28553
# Files that config.status was made for.
28554
config_files="$ac_config_files"
28555
config_headers="$ac_config_headers"
28556
config_commands="$ac_config_commands"
28560
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28562
\`$as_me' instantiates files and other configuration actions
28563
from templates according to the current configuration. Unless the files
28564
and actions are specified as TAGs, all are instantiated by default.
28566
Usage: $0 [OPTION]... [TAG]...
28568
-h, --help print this help, then exit
28569
-V, --version print version number and configuration settings, then exit
28570
--config print configuration, then exit
28571
-q, --quiet, --silent
28572
do not print progress messages
28573
-d, --debug don't remove temporary files
28574
--recheck update $as_me by reconfiguring in the same conditions
28575
--file=FILE[:TEMPLATE]
28576
instantiate the configuration file FILE
28577
--header=FILE[:TEMPLATE]
28578
instantiate the configuration header FILE
28580
Configuration files:
28583
Configuration headers:
28586
Configuration commands:
28589
Report bugs to <hpctools@pnl.gov>.
28590
Task Scheduling Library (tascel) home page: <http://www.emsl.pnl.gov/docs/global/>."
28593
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28594
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
28596
Task Scheduling Library (tascel) config.status 0.0.1
28597
configured by $0, generated by GNU Autoconf 2.68,
28598
with options \\"\$ac_cs_config\\"
28600
Copyright (C) 2010 Free Software Foundation, Inc.
28601
This config.status script is free software; the Free Software Foundation
28602
gives unlimited permission to copy, distribute and modify it."
28609
test -n "\$AWK" || AWK=awk
28612
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28613
# The default lists apply if the user does not specify any file.
28619
ac_option=`expr "X$1" : 'X\([^=]*\)='`
28620
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
28624
ac_option=`expr "X$1" : 'X\([^=]*\)='`
28636
# Handling of the options.
28637
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28639
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
28640
$as_echo "$ac_cs_version"; exit ;;
28641
--config | --confi | --conf | --con | --co | --c )
28642
$as_echo "$ac_cs_config"; exit ;;
28643
--debug | --debu | --deb | --de | --d | -d )
28645
--file | --fil | --fi | --f )
28648
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28649
'') as_fn_error $? "missing file argument" ;;
28651
as_fn_append CONFIG_FILES " '$ac_optarg'"
28652
ac_need_defaults=false;;
28653
--header | --heade | --head | --hea )
28656
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28658
as_fn_append CONFIG_HEADERS " '$ac_optarg'"
28659
ac_need_defaults=false;;
28661
# Conflict between --help and --header
28662
as_fn_error $? "ambiguous option: \`$1'
28663
Try \`$0 --help' for more information.";;
28664
--help | --hel | -h )
28665
$as_echo "$ac_cs_usage"; exit ;;
28666
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
28667
| -silent | --silent | --silen | --sile | --sil | --si | --s)
28670
# This is an error.
28671
-*) as_fn_error $? "unrecognized option: \`$1'
28672
Try \`$0 --help' for more information." ;;
28674
*) as_fn_append ac_config_targets " $1"
28675
ac_need_defaults=false ;;
28681
ac_configure_extra_args=
28683
if $ac_cs_silent; then
28685
ac_configure_extra_args="$ac_configure_extra_args --silent"
28689
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28690
if \$ac_cs_recheck; then
28691
set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28693
\$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
28694
CONFIG_SHELL='$SHELL'
28695
export CONFIG_SHELL
28700
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28704
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28705
## Running $as_me. ##
28711
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28715
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
28718
# The HP-UX ksh and POSIX shell print the target directory to stdout
28719
# if CDPATH is set.
28720
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
28722
sed_quote_subst='$sed_quote_subst'
28723
double_quote_subst='$double_quote_subst'
28724
delay_variable_subst='$delay_variable_subst'
28725
macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
28726
macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
28727
enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
28728
enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
28729
pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
28730
enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
28731
SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
28732
ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
28733
PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
28734
host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
28735
host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
28736
host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
28737
build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
28738
build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
28739
build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
28740
SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
28741
Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
28742
GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
28743
EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
28744
FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
28745
LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
28746
NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
28747
LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
28748
max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
28749
ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
28750
exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
28751
lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
28752
lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
28753
lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
28754
lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
28755
lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
28756
reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
28757
reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
28758
OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
28759
deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
28760
file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
28761
file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
28762
want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
28763
DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
28764
sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
28765
AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
28766
AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
28767
archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
28768
STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
28769
RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
28770
old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
28771
old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
28772
old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
28773
lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
28774
CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
28775
CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
28776
compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
28777
GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
28778
lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
28779
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
28780
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
28781
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
28782
nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
28783
lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
28784
objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
28785
MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
28786
lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
28787
lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
28788
lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
28789
lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
28790
lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
28791
need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
28792
MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
28793
DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
28794
NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
28795
LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
28796
OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
28797
OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
28798
libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
28799
shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
28800
extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
28801
archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
28802
enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
28803
export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
28804
whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
28805
compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
28806
old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
28807
old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
28808
archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
28809
archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
28810
module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
28811
module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
28812
with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
28813
allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
28814
no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
28815
hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
28816
hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
28817
hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
28818
hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
28819
hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
28820
hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
28821
hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
28822
inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
28823
link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
28824
always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
28825
export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
28826
exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
28827
include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
28828
prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
28829
postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
28830
file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
28831
variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
28832
need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
28833
need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
28834
version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
28835
runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
28836
shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
28837
shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
28838
libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
28839
library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
28840
soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
28841
install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
28842
postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
28843
postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
28844
finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
28845
finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
28846
hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
28847
sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
28848
sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
28849
hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
28850
enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
28851
enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
28852
enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
28853
old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
28854
striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
28855
compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
28856
predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
28857
postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
28858
predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
28859
postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
28860
compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
28861
LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
28862
LD_F77='`$ECHO "$LD_F77" | $SED "$delay_single_quote_subst"`'
28863
reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
28864
reload_flag_F77='`$ECHO "$reload_flag_F77" | $SED "$delay_single_quote_subst"`'
28865
reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28866
reload_cmds_F77='`$ECHO "$reload_cmds_F77" | $SED "$delay_single_quote_subst"`'
28867
old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28868
old_archive_cmds_F77='`$ECHO "$old_archive_cmds_F77" | $SED "$delay_single_quote_subst"`'
28869
compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
28870
compiler_F77='`$ECHO "$compiler_F77" | $SED "$delay_single_quote_subst"`'
28871
GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
28872
GCC_F77='`$ECHO "$GCC_F77" | $SED "$delay_single_quote_subst"`'
28873
lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
28874
lt_prog_compiler_no_builtin_flag_F77='`$ECHO "$lt_prog_compiler_no_builtin_flag_F77" | $SED "$delay_single_quote_subst"`'
28875
lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
28876
lt_prog_compiler_pic_F77='`$ECHO "$lt_prog_compiler_pic_F77" | $SED "$delay_single_quote_subst"`'
28877
lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
28878
lt_prog_compiler_wl_F77='`$ECHO "$lt_prog_compiler_wl_F77" | $SED "$delay_single_quote_subst"`'
28879
lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
28880
lt_prog_compiler_static_F77='`$ECHO "$lt_prog_compiler_static_F77" | $SED "$delay_single_quote_subst"`'
28881
lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
28882
lt_cv_prog_compiler_c_o_F77='`$ECHO "$lt_cv_prog_compiler_c_o_F77" | $SED "$delay_single_quote_subst"`'
28883
archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
28884
archive_cmds_need_lc_F77='`$ECHO "$archive_cmds_need_lc_F77" | $SED "$delay_single_quote_subst"`'
28885
enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
28886
enable_shared_with_static_runtimes_F77='`$ECHO "$enable_shared_with_static_runtimes_F77" | $SED "$delay_single_quote_subst"`'
28887
export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
28888
export_dynamic_flag_spec_F77='`$ECHO "$export_dynamic_flag_spec_F77" | $SED "$delay_single_quote_subst"`'
28889
whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
28890
whole_archive_flag_spec_F77='`$ECHO "$whole_archive_flag_spec_F77" | $SED "$delay_single_quote_subst"`'
28891
compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
28892
compiler_needs_object_F77='`$ECHO "$compiler_needs_object_F77" | $SED "$delay_single_quote_subst"`'
28893
old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28894
old_archive_from_new_cmds_F77='`$ECHO "$old_archive_from_new_cmds_F77" | $SED "$delay_single_quote_subst"`'
28895
old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28896
old_archive_from_expsyms_cmds_F77='`$ECHO "$old_archive_from_expsyms_cmds_F77" | $SED "$delay_single_quote_subst"`'
28897
archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28898
archive_cmds_F77='`$ECHO "$archive_cmds_F77" | $SED "$delay_single_quote_subst"`'
28899
archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28900
archive_expsym_cmds_F77='`$ECHO "$archive_expsym_cmds_F77" | $SED "$delay_single_quote_subst"`'
28901
module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28902
module_cmds_F77='`$ECHO "$module_cmds_F77" | $SED "$delay_single_quote_subst"`'
28903
module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28904
module_expsym_cmds_F77='`$ECHO "$module_expsym_cmds_F77" | $SED "$delay_single_quote_subst"`'
28905
with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
28906
with_gnu_ld_F77='`$ECHO "$with_gnu_ld_F77" | $SED "$delay_single_quote_subst"`'
28907
allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
28908
allow_undefined_flag_F77='`$ECHO "$allow_undefined_flag_F77" | $SED "$delay_single_quote_subst"`'
28909
no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
28910
no_undefined_flag_F77='`$ECHO "$no_undefined_flag_F77" | $SED "$delay_single_quote_subst"`'
28911
hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
28912
hardcode_libdir_flag_spec_F77='`$ECHO "$hardcode_libdir_flag_spec_F77" | $SED "$delay_single_quote_subst"`'
28913
hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
28914
hardcode_libdir_separator_F77='`$ECHO "$hardcode_libdir_separator_F77" | $SED "$delay_single_quote_subst"`'
28915
hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
28916
hardcode_direct_F77='`$ECHO "$hardcode_direct_F77" | $SED "$delay_single_quote_subst"`'
28917
hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
28918
hardcode_direct_absolute_F77='`$ECHO "$hardcode_direct_absolute_F77" | $SED "$delay_single_quote_subst"`'
28919
hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
28920
hardcode_minus_L_F77='`$ECHO "$hardcode_minus_L_F77" | $SED "$delay_single_quote_subst"`'
28921
hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
28922
hardcode_shlibpath_var_F77='`$ECHO "$hardcode_shlibpath_var_F77" | $SED "$delay_single_quote_subst"`'
28923
hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
28924
hardcode_automatic_F77='`$ECHO "$hardcode_automatic_F77" | $SED "$delay_single_quote_subst"`'
28925
inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
28926
inherit_rpath_F77='`$ECHO "$inherit_rpath_F77" | $SED "$delay_single_quote_subst"`'
28927
link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
28928
link_all_deplibs_F77='`$ECHO "$link_all_deplibs_F77" | $SED "$delay_single_quote_subst"`'
28929
always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
28930
always_export_symbols_F77='`$ECHO "$always_export_symbols_F77" | $SED "$delay_single_quote_subst"`'
28931
export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28932
export_symbols_cmds_F77='`$ECHO "$export_symbols_cmds_F77" | $SED "$delay_single_quote_subst"`'
28933
exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
28934
exclude_expsyms_F77='`$ECHO "$exclude_expsyms_F77" | $SED "$delay_single_quote_subst"`'
28935
include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
28936
include_expsyms_F77='`$ECHO "$include_expsyms_F77" | $SED "$delay_single_quote_subst"`'
28937
prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28938
prelink_cmds_F77='`$ECHO "$prelink_cmds_F77" | $SED "$delay_single_quote_subst"`'
28939
postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28940
postlink_cmds_F77='`$ECHO "$postlink_cmds_F77" | $SED "$delay_single_quote_subst"`'
28941
file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
28942
file_list_spec_F77='`$ECHO "$file_list_spec_F77" | $SED "$delay_single_quote_subst"`'
28943
hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
28944
hardcode_action_F77='`$ECHO "$hardcode_action_F77" | $SED "$delay_single_quote_subst"`'
28945
compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
28946
compiler_lib_search_dirs_F77='`$ECHO "$compiler_lib_search_dirs_F77" | $SED "$delay_single_quote_subst"`'
28947
predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
28948
predep_objects_F77='`$ECHO "$predep_objects_F77" | $SED "$delay_single_quote_subst"`'
28949
postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
28950
postdep_objects_F77='`$ECHO "$postdep_objects_F77" | $SED "$delay_single_quote_subst"`'
28951
predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
28952
predeps_F77='`$ECHO "$predeps_F77" | $SED "$delay_single_quote_subst"`'
28953
postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
28954
postdeps_F77='`$ECHO "$postdeps_F77" | $SED "$delay_single_quote_subst"`'
28955
compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
28956
compiler_lib_search_path_F77='`$ECHO "$compiler_lib_search_path_F77" | $SED "$delay_single_quote_subst"`'
28959
LTCFLAGS='$LTCFLAGS'
28960
compiler='$compiler_DEFAULT'
28962
# A function that is used when there is no print builtin or printf.
28963
func_fallback_echo ()
28965
eval 'cat <<_LTECHO_EOF
28970
# Quote evaled strings.
28985
deplibs_check_method \
28990
sharedlib_from_linklib_cmd \
28993
archiver_list_spec \
28999
lt_cv_sys_global_symbol_pipe \
29000
lt_cv_sys_global_symbol_to_cdecl \
29001
lt_cv_sys_global_symbol_to_c_name_address \
29002
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
29003
nm_file_list_spec \
29004
lt_prog_compiler_no_builtin_flag \
29005
lt_prog_compiler_pic \
29006
lt_prog_compiler_wl \
29007
lt_prog_compiler_static \
29008
lt_cv_prog_compiler_c_o \
29017
export_dynamic_flag_spec \
29018
whole_archive_flag_spec \
29019
compiler_needs_object \
29021
allow_undefined_flag \
29022
no_undefined_flag \
29023
hardcode_libdir_flag_spec \
29024
hardcode_libdir_separator \
29028
variables_saved_for_relink \
29030
library_names_spec \
29032
install_override_mode \
29036
compiler_lib_search_dirs \
29041
compiler_lib_search_path \
29048
lt_prog_compiler_no_builtin_flag_CXX \
29049
lt_prog_compiler_no_builtin_flag_F77 \
29050
lt_prog_compiler_pic_CXX \
29051
lt_prog_compiler_pic_F77 \
29052
lt_prog_compiler_wl_CXX \
29053
lt_prog_compiler_wl_F77 \
29054
lt_prog_compiler_static_CXX \
29055
lt_prog_compiler_static_F77 \
29056
lt_cv_prog_compiler_c_o_CXX \
29057
lt_cv_prog_compiler_c_o_F77 \
29058
export_dynamic_flag_spec_CXX \
29059
export_dynamic_flag_spec_F77 \
29060
whole_archive_flag_spec_CXX \
29061
whole_archive_flag_spec_F77 \
29062
compiler_needs_object_CXX \
29063
compiler_needs_object_F77 \
29066
allow_undefined_flag_CXX \
29067
allow_undefined_flag_F77 \
29068
no_undefined_flag_CXX \
29069
no_undefined_flag_F77 \
29070
hardcode_libdir_flag_spec_CXX \
29071
hardcode_libdir_flag_spec_F77 \
29072
hardcode_libdir_separator_CXX \
29073
hardcode_libdir_separator_F77 \
29074
exclude_expsyms_CXX \
29075
exclude_expsyms_F77 \
29076
include_expsyms_CXX \
29077
include_expsyms_F77 \
29078
file_list_spec_CXX \
29079
file_list_spec_F77 \
29080
compiler_lib_search_dirs_CXX \
29081
compiler_lib_search_dirs_F77 \
29082
predep_objects_CXX \
29083
predep_objects_F77 \
29084
postdep_objects_CXX \
29085
postdep_objects_F77 \
29090
compiler_lib_search_path_CXX \
29091
compiler_lib_search_path_F77; do
29092
case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
29093
*[\\\\\\\`\\"\\\$]*)
29094
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
29097
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
29102
# Double-quote double-evaled strings.
29103
for var in reload_cmds \
29104
old_postinstall_cmds \
29105
old_postuninstall_cmds \
29107
extract_expsyms_cmds \
29108
old_archive_from_new_cmds \
29109
old_archive_from_expsyms_cmds \
29111
archive_expsym_cmds \
29113
module_expsym_cmds \
29114
export_symbols_cmds \
29118
postuninstall_cmds \
29120
sys_lib_search_path_spec \
29121
sys_lib_dlsearch_path_spec \
29124
old_archive_cmds_CXX \
29125
old_archive_cmds_F77 \
29126
old_archive_from_new_cmds_CXX \
29127
old_archive_from_new_cmds_F77 \
29128
old_archive_from_expsyms_cmds_CXX \
29129
old_archive_from_expsyms_cmds_F77 \
29132
archive_expsym_cmds_CXX \
29133
archive_expsym_cmds_F77 \
29136
module_expsym_cmds_CXX \
29137
module_expsym_cmds_F77 \
29138
export_symbols_cmds_CXX \
29139
export_symbols_cmds_F77 \
29142
postlink_cmds_CXX \
29143
postlink_cmds_F77; do
29144
case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
29145
*[\\\\\\\`\\"\\\$]*)
29146
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
29149
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
29154
ac_aux_dir='$ac_aux_dir'
29155
xsi_shell='$xsi_shell'
29156
lt_shell_append='$lt_shell_append'
29158
# See if we are running on zsh, and set the options which allow our
29159
# commands through without removal of \ escapes INIT.
29160
if test -n "\${ZSH_VERSION+set}" ; then
29161
setopt NO_GLOB_SUBST
29167
TIMESTAMP='$TIMESTAMP'
29180
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29182
# Handling of arguments.
29183
for ac_config_target in $ac_config_targets
29185
case $ac_config_target in
29186
"config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
29187
"depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
29188
"libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
29189
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
29191
*) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
29196
# If the user did not use the arguments to specify the items to instantiate,
29197
# then the envvar interface is used. Set only those that are not.
29198
# We use the long form for the default assignment because of an extremely
29199
# bizarre bug on SunOS 4.1.3.
29200
if $ac_need_defaults; then
29201
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29202
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29203
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29206
# Have a temporary directory for convenience. Make it in the build tree
29207
# simply because there is no reason against having it here, and in addition,
29208
# creating and moving files from /tmp can sometimes cause problems.
29209
# Hook for its removal unless debugging.
29210
# Note that there is a small window in which the directory will not be cleaned:
29211
# after its creation but before its name has been assigned to `$tmp'.
29215
trap 'exit_status=$?
29216
: "${ac_tmp:=$tmp}"
29217
{ test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
29219
trap 'as_fn_exit 1' 1 2 13 15
29221
# Create a (secure) tmp directory for tmp files.
29224
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29228
tmp=./conf$$-$RANDOM
29229
(umask 077 && mkdir "$tmp")
29230
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
29233
# Set up the scripts for CONFIG_FILES section.
29234
# No need to generate them if there are no CONFIG_FILES.
29235
# This happens for instance with `./config.status config.h'.
29236
if test -n "$CONFIG_FILES"; then
29239
ac_cr=`echo X | tr X '\015'`
29240
# On cygwin, bash can eat \r inside `` if the user requested igncr.
29241
# But we know of no other shell where ac_cr would be empty at this
29242
# point, so we can use a bashism as a fallback.
29243
if test "x$ac_cr" = x; then
29244
eval ac_cr=\$\'\\r\'
29246
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
29247
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
29250
ac_cs_awk_cr=$ac_cr
29253
echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
29258
echo "cat >conf$$subs.awk <<_ACEOF" &&
29259
echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
29261
} >conf$$subs.sh ||
29262
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
29263
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
29265
for ac_last_try in false false false false false :; do
29266
. ./conf$$subs.sh ||
29267
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
29269
ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
29270
if test $ac_delim_n = $ac_delim_num; then
29272
elif $ac_last_try; then
29273
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
29275
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29278
rm -f conf$$subs.sh
29280
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29281
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
29285
s/^/S["/; s/!.*/"]=/
29295
s/\(.\{148\}\)..*/\1/
29297
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
29302
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29309
s/\(.\{148\}\)..*/\1/
29311
s/["\\]/\\&/g; s/^/"/; s/$/"/
29315
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29320
' <conf$$subs.awk | sed '
29325
' >>$CONFIG_STATUS || ac_write_fail=1
29326
rm -f conf$$subs.awk
29327
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29329
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
29330
for (key in S) S_is_set[key] = 1
29336
nfields = split(line, field, "@")
29338
len = length(field[1])
29339
for (i = 2; i < nfields; i++) {
29341
keylen = length(key)
29342
if (S_is_set[key]) {
29344
line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
29345
len += length(value) + length(field[++i])
29356
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29357
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
29358
sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
29361
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
29362
|| as_fn_error $? "could not setup config files machinery" "$LINENO" 5
29365
# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
29366
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
29367
# trailing colons and then remove the whole line if VPATH becomes empty
29368
# (actually we leave an empty line to preserve line numbers).
29369
if test "x$srcdir" = x.; then
29370
ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
29388
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29389
fi # test -n "$CONFIG_FILES"
29391
# Set up the scripts for CONFIG_HEADERS section.
29392
# No need to generate them if there are no CONFIG_HEADERS.
29393
# This happens for instance with `./config.status Makefile'.
29394
if test -n "$CONFIG_HEADERS"; then
29395
cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
29399
# Transform confdefs.h into an awk script `defines.awk', embedded as
29400
# here-document in config.status, that substitutes the proper values into
29401
# config.h.in to produce config.h.
29403
# Create a delimiter string that does not exist in confdefs.h, to ease
29404
# handling of long lines.
29406
for ac_last_try in false false :; do
29407
ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
29408
if test -z "$ac_tt"; then
29410
elif $ac_last_try; then
29411
as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
29413
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29417
# For the awk script, D is an array of macro values keyed by name,
29418
# likewise P contains macro parameters if any. Preserve backslash
29419
# newline sequences.
29421
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29423
s/.\{148\}/&'"$ac_delim"'/g
29426
s/^[ ]*#[ ]*define[ ][ ]*/ /
29433
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
29435
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
29439
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
29440
D["\1"]=" \3\\\\\\n"\\/p
29442
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
29447
s/.\{148\}/&'"$ac_delim"'/g
29452
s/["\\]/\\&/g; s/^/"/; s/$/"/p
29455
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
29457
' <confdefs.h | sed '
29458
s/'"$ac_delim"'/"\\\
29459
"/g' >>$CONFIG_STATUS || ac_write_fail=1
29461
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29462
for (key in D) D_is_set[key] = 1
29465
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
29467
split(line, arg, " ")
29468
if (arg[1] == "#") {
29472
defundef = substr(arg[1], 2)
29475
split(mac1, mac2, "(") #)
29477
prefix = substr(line, 1, index(line, defundef) - 1)
29478
if (D_is_set[macro]) {
29479
# Preserve the white space surrounding the "#".
29480
print prefix "define", macro P[macro] D[macro]
29483
# Replace #undef with comments. This is necessary, for example,
29484
# in the case of _POSIX_SOURCE, which is predefined and required
29485
# on some systems where configure will not decide to define it.
29486
if (defundef == "undef") {
29487
print "/*", prefix defundef, macro, "*/"
29495
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29496
as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
29497
fi # test -n "$CONFIG_HEADERS"
29500
eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
29505
:[FHLC]) ac_mode=$ac_tag; continue;;
29507
case $ac_mode$ac_tag in
29509
:L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
29510
:[FH]-) ac_tag=-:-;;
29511
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
29528
-) ac_f="$ac_tmp/stdin";;
29529
*) # Look for the file first in the build tree, then in the source tree
29530
# (if the path is not absolute). The absolute path cannot be DOS-style,
29531
# because $ac_f cannot contain `:'.
29535
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
29537
as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
29539
case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
29540
as_fn_append ac_file_inputs " '$ac_f'"
29543
# Let's still pretend it is `configure' which instantiates (i.e., don't
29544
# use $as_me), people would be surprised to read:
29545
# /* config.h. Generated by config.status. */
29546
configure_input='Generated from '`
29547
$as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
29549
if test x"$ac_file" != x-; then
29550
configure_input="$ac_file. $configure_input"
29551
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
29552
$as_echo "$as_me: creating $ac_file" >&6;}
29554
# Neutralize special characters interpreted by sed in replacement strings.
29555
case $configure_input in #(
29556
*\&* | *\|* | *\\* )
29557
ac_sed_conf_input=`$as_echo "$configure_input" |
29558
sed 's/[\\\\&|]/\\\\&/g'`;; #(
29559
*) ac_sed_conf_input=$configure_input;;
29563
*:-:* | *:-) cat >"$ac_tmp/stdin" \
29564
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
29569
ac_dir=`$as_dirname -- "$ac_file" ||
29570
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29571
X"$ac_file" : 'X\(//\)[^/]' \| \
29572
X"$ac_file" : 'X\(//\)$' \| \
29573
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29574
$as_echo X"$ac_file" |
29575
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29579
/^X\(\/\/\)[^/].*/{
29592
as_dir="$ac_dir"; as_fn_mkdir_p
29596
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
29598
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
29599
# A ".." for each directory in $ac_dir_suffix.
29600
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
29601
case $ac_top_builddir_sub in
29602
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
29603
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
29606
ac_abs_top_builddir=$ac_pwd
29607
ac_abs_builddir=$ac_pwd$ac_dir_suffix
29608
# for backward compatibility:
29609
ac_top_builddir=$ac_top_build_prefix
29612
.) # We are building in place.
29614
ac_top_srcdir=$ac_top_builddir_sub
29615
ac_abs_top_srcdir=$ac_pwd ;;
29616
[\\/]* | ?:[\\/]* ) # Absolute name.
29617
ac_srcdir=$srcdir$ac_dir_suffix;
29618
ac_top_srcdir=$srcdir
29619
ac_abs_top_srcdir=$srcdir ;;
29620
*) # Relative name.
29621
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
29622
ac_top_srcdir=$ac_top_build_prefix$srcdir
29623
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
29625
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
29635
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
29636
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
29638
ac_MKDIR_P=$MKDIR_P
29640
[\\/$]* | ?:[\\/]* ) ;;
29641
*/*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
29645
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29646
# If the template does not know about datarootdir, expand it.
29647
# FIXME: This hack should be removed a few years after 2.60.
29648
ac_datarootdir_hack=; ac_datarootdir_seen=
29659
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
29660
*datarootdir*) ac_datarootdir_seen=yes;;
29661
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
29662
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29663
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29665
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29666
ac_datarootdir_hack='
29667
s&@datadir@&$datadir&g
29668
s&@docdir@&$docdir&g
29669
s&@infodir@&$infodir&g
29670
s&@localedir@&$localedir&g
29671
s&@mandir@&$mandir&g
29672
s&\\\${datarootdir}&$datarootdir&g' ;;
29676
# Neutralize VPATH when `$srcdir' = `.'.
29677
# Shell code in configure.ac might set extrasub.
29678
# FIXME: do we really want to maintain this feature?
29679
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29680
ac_sed_extra="$ac_vpsub
29683
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29685
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29686
s|@configure_input@|$ac_sed_conf_input|;t t
29687
s&@top_builddir@&$ac_top_builddir_sub&;t t
29688
s&@top_build_prefix@&$ac_top_build_prefix&;t t
29689
s&@srcdir@&$ac_srcdir&;t t
29690
s&@abs_srcdir@&$ac_abs_srcdir&;t t
29691
s&@top_srcdir@&$ac_top_srcdir&;t t
29692
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
29693
s&@builddir@&$ac_builddir&;t t
29694
s&@abs_builddir@&$ac_abs_builddir&;t t
29695
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
29696
s&@INSTALL@&$ac_INSTALL&;t t
29697
s&@MKDIR_P@&$ac_MKDIR_P&;t t
29698
$ac_datarootdir_hack
29700
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
29701
>$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
29703
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
29704
{ ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
29705
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
29706
"$ac_tmp/out"`; test -z "$ac_out"; } &&
29707
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29708
which seems to be undefined. Please make sure it is defined" >&5
29709
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29710
which seems to be undefined. Please make sure it is defined" >&2;}
29712
rm -f "$ac_tmp/stdin"
29714
-) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
29715
*) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
29717
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
29723
if test x"$ac_file" != x-; then
29725
$as_echo "/* $configure_input */" \
29726
&& eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
29727
} >"$ac_tmp/config.h" \
29728
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
29729
if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
29730
{ $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
29731
$as_echo "$as_me: $ac_file is unchanged" >&6;}
29734
mv "$ac_tmp/config.h" "$ac_file" \
29735
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
29738
$as_echo "/* $configure_input */" \
29739
&& eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
29740
|| as_fn_error $? "could not create -" "$LINENO" 5
29742
# Compute "$ac_file"'s index in $config_headers.
29745
for _am_header in $config_headers :; do
29746
case $_am_header in
29747
$_am_arg | $_am_arg:* )
29750
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
29753
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
29754
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29755
X"$_am_arg" : 'X\(//\)[^/]' \| \
29756
X"$_am_arg" : 'X\(//\)$' \| \
29757
X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
29758
$as_echo X"$_am_arg" |
29759
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29763
/^X\(\/\/\)[^/].*/{
29775
s/.*/./; q'`/stamp-h$_am_stamp_count
29778
:C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
29779
$as_echo "$as_me: executing $ac_file commands" >&6;}
29784
case $ac_file$ac_mode in
29785
"depfiles":C) test x"$AMDEP_TRUE" != x"" || {
29786
# Autoconf 2.62 quotes --file arguments for eval, but not when files
29787
# are listed without --file. Let's play safe and only enable the eval
29788
# if we detect the quoting.
29789
case $CONFIG_FILES in
29790
*\'*) eval set x "$CONFIG_FILES" ;;
29791
*) set x $CONFIG_FILES ;;
29796
# Strip MF so we end up with the name of the file.
29797
mf=`echo "$mf" | sed -e 's/:.*$//'`
29798
# Check whether this is an Automake generated Makefile or not.
29799
# We used to match only the files named `Makefile.in', but
29800
# some people rename them; so instead we look at the file content.
29801
# Grep'ing the first line is not enough: some people post-process
29802
# each Makefile.in and add a new line on top of each file to say so.
29803
# Grep'ing the whole file is not good either: AIX grep has a line
29804
# limit of 2048, but all sed's we know have understand at least 4000.
29805
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
29806
dirpart=`$as_dirname -- "$mf" ||
29807
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29808
X"$mf" : 'X\(//\)[^/]' \| \
29809
X"$mf" : 'X\(//\)$' \| \
29810
X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
29812
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29816
/^X\(\/\/\)[^/].*/{
29832
# Extract the definition of DEPDIR, am__include, and am__quote
29833
# from the Makefile without running `make'.
29834
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
29835
test -z "$DEPDIR" && continue
29836
am__include=`sed -n 's/^am__include = //p' < "$mf"`
29837
test -z "am__include" && continue
29838
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
29839
# When using ansi2knr, U may be empty or an underscore; expand it
29840
U=`sed -n 's/^U = //p' < "$mf"`
29841
# Find all dependency output files, they are included files with
29842
# $(DEPDIR) in their names. We invoke sed twice because it is the
29843
# simplest approach to changing $(DEPDIR) to its actual value in the
29845
for file in `sed -n "
29846
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
29847
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
29848
# Make sure the directory exists.
29849
test -f "$dirpart/$file" && continue
29850
fdir=`$as_dirname -- "$file" ||
29851
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29852
X"$file" : 'X\(//\)[^/]' \| \
29853
X"$file" : 'X\(//\)$' \| \
29854
X"$file" : 'X\(/\)' \| . 2>/dev/null ||
29855
$as_echo X"$file" |
29856
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29860
/^X\(\/\/\)[^/].*/{
29873
as_dir=$dirpart/$fdir; as_fn_mkdir_p
29874
# echo "creating $dirpart/$file"
29875
echo '# dummy' > "$dirpart/$file"
29882
# See if we are running on zsh, and set the options which allow our
29883
# commands through without removal of \ escapes.
29884
if test -n "${ZSH_VERSION+set}" ; then
29885
setopt NO_GLOB_SUBST
29888
cfgfile="${ofile}T"
29889
trap "$RM \"$cfgfile\"; exit 1" 1 2 15
29892
cat <<_LT_EOF >> "$cfgfile"
29895
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
29896
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
29897
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
29898
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
29900
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
29901
# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
29903
# Written by Gordon Matzigkeit, 1996
29905
# This file is part of GNU Libtool.
29907
# GNU Libtool is free software; you can redistribute it and/or
29908
# modify it under the terms of the GNU General Public License as
29909
# published by the Free Software Foundation; either version 2 of
29910
# the License, or (at your option) any later version.
29912
# As a special exception to the GNU General Public License,
29913
# if you distribute this file as part of a program or library that
29914
# is built using GNU Libtool, you may include this file under the
29915
# same distribution terms that you use for the rest of that program.
29917
# GNU Libtool is distributed in the hope that it will be useful,
29918
# but WITHOUT ANY WARRANTY; without even the implied warranty of
29919
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
29920
# GNU General Public License for more details.
29922
# You should have received a copy of the GNU General Public License
29923
# along with GNU Libtool; see the file COPYING. If not, a copy
29924
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
29925
# obtained by writing to the Free Software Foundation, Inc.,
29926
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
29929
# The names of the tagged configurations supported by this script.
29930
available_tags="CXX F77 "
29932
# ### BEGIN LIBTOOL CONFIG
29934
# Which release of libtool.m4 was used?
29935
macro_version=$macro_version
29936
macro_revision=$macro_revision
29938
# Whether or not to build shared libraries.
29939
build_libtool_libs=$enable_shared
29941
# Whether or not to build static libraries.
29942
build_old_libs=$enable_static
29944
# What type of objects to build.
29947
# Whether or not to optimize for fast installation.
29948
fast_install=$enable_fast_install
29950
# Shell to use when invoking shell scripts.
29953
# An echo program that protects backslashes.
29956
# The PATH separator for the build system.
29957
PATH_SEPARATOR=$lt_PATH_SEPARATOR
29960
host_alias=$host_alias
29964
# The build system.
29965
build_alias=$build_alias
29969
# A sed program that does not truncate output.
29972
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
29973
Xsed="\$SED -e 1s/^X//"
29975
# A grep program that handles long lines.
29981
# A literal string matcher.
29984
# A BSD- or MS-compatible name lister.
29987
# Whether we need soft or hard links.
29990
# What is the maximum length of a command?
29991
max_cmd_len=$max_cmd_len
29993
# Object file suffix (normally "o").
29996
# Executable file suffix (normally "").
29999
# whether the shell understands "unset".
30002
# turn spaces into newlines.
30005
# turn newlines into spaces.
30008
# convert \$build file names to \$host format.
30009
to_host_file_cmd=$lt_cv_to_host_file_cmd
30011
# convert \$build files to toolchain format.
30012
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
30014
# An object symbol dumper.
30015
OBJDUMP=$lt_OBJDUMP
30017
# Method to check whether dependent libraries are shared objects.
30018
deplibs_check_method=$lt_deplibs_check_method
30020
# Command to use when deplibs_check_method = "file_magic".
30021
file_magic_cmd=$lt_file_magic_cmd
30023
# How to find potential files when deplibs_check_method = "file_magic".
30024
file_magic_glob=$lt_file_magic_glob
30026
# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
30027
want_nocaseglob=$lt_want_nocaseglob
30029
# DLL creation program.
30030
DLLTOOL=$lt_DLLTOOL
30032
# Command to associate shared and link libraries.
30033
sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
30038
# Flags to create an archive.
30039
AR_FLAGS=$lt_AR_FLAGS
30041
# How to feed a file listing to the archiver.
30042
archiver_list_spec=$lt_archiver_list_spec
30044
# A symbol stripping program.
30047
# Commands used to install an old-style archive.
30049
old_postinstall_cmds=$lt_old_postinstall_cmds
30050
old_postuninstall_cmds=$lt_old_postuninstall_cmds
30052
# Whether to use a lock for old archive extraction.
30053
lock_old_archive_extraction=$lock_old_archive_extraction
30058
# LTCC compiler flags.
30059
LTCFLAGS=$lt_CFLAGS
30061
# Take the output of nm and produce a listing of raw symbols and C names.
30062
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
30064
# Transform the output of nm in a proper C declaration.
30065
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
30067
# Transform the output of nm in a C name address pair.
30068
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
30070
# Transform the output of nm in a C name address pair when lib prefix is needed.
30071
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
30073
# Specify filename containing input files for \$NM.
30074
nm_file_list_spec=$lt_nm_file_list_spec
30076
# The root where to search for dependent libraries,and in which our libraries should be installed.
30077
lt_sysroot=$lt_sysroot
30079
# The name of the directory that contains temporary libtool files.
30082
# Used to examine libraries when file_magic_cmd begins with "file".
30083
MAGIC_CMD=$MAGIC_CMD
30085
# Must we lock files when doing compilation?
30086
need_locks=$lt_need_locks
30089
MANIFEST_TOOL=$lt_MANIFEST_TOOL
30091
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
30092
DSYMUTIL=$lt_DSYMUTIL
30094
# Tool to change global to local symbols on Mac OS X.
30097
# Tool to manipulate fat objects and archives on Mac OS X.
30100
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
30103
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
30104
OTOOL64=$lt_OTOOL64
30106
# Old archive suffix (normally "a").
30109
# Shared library suffix (normally ".so").
30110
shrext_cmds=$lt_shrext_cmds
30112
# The commands to extract the exported symbol list from a shared archive.
30113
extract_expsyms_cmds=$lt_extract_expsyms_cmds
30115
# Variables whose values should be saved in libtool wrapper scripts and
30116
# restored at link time.
30117
variables_saved_for_relink=$lt_variables_saved_for_relink
30119
# Do we need the "lib" prefix for modules?
30120
need_lib_prefix=$need_lib_prefix
30122
# Do we need a version for libraries?
30123
need_version=$need_version
30125
# Library versioning type.
30126
version_type=$version_type
30128
# Shared library runtime path variable.
30129
runpath_var=$runpath_var
30131
# Shared library path variable.
30132
shlibpath_var=$shlibpath_var
30134
# Is shlibpath searched before the hard-coded library search path?
30135
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
30137
# Format of library name prefix.
30138
libname_spec=$lt_libname_spec
30140
# List of archive names. First name is the real one, the rest are links.
30141
# The last name is the one that the linker finds with -lNAME
30142
library_names_spec=$lt_library_names_spec
30144
# The coded name of the library, if different from the real name.
30145
soname_spec=$lt_soname_spec
30147
# Permission mode override for installation of shared libraries.
30148
install_override_mode=$lt_install_override_mode
30150
# Command to use after installation of a shared archive.
30151
postinstall_cmds=$lt_postinstall_cmds
30153
# Command to use after uninstallation of a shared archive.
30154
postuninstall_cmds=$lt_postuninstall_cmds
30156
# Commands used to finish a libtool library installation in a directory.
30157
finish_cmds=$lt_finish_cmds
30159
# As "finish_cmds", except a single script fragment to be evaled but
30161
finish_eval=$lt_finish_eval
30163
# Whether we should hardcode library paths into libraries.
30164
hardcode_into_libs=$hardcode_into_libs
30166
# Compile-time system search path for libraries.
30167
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
30169
# Run-time system search path for libraries.
30170
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
30172
# Whether dlopen is supported.
30173
dlopen_support=$enable_dlopen
30175
# Whether dlopen of programs is supported.
30176
dlopen_self=$enable_dlopen_self
30178
# Whether dlopen of statically linked programs is supported.
30179
dlopen_self_static=$enable_dlopen_self_static
30181
# Commands to strip libraries.
30182
old_striplib=$lt_old_striplib
30183
striplib=$lt_striplib
30186
# The linker used to build libraries.
30189
# How to create reloadable object files.
30190
reload_flag=$lt_reload_flag
30191
reload_cmds=$lt_reload_cmds
30193
# Commands used to build an old-style archive.
30194
old_archive_cmds=$lt_old_archive_cmds
30196
# A language specific compiler.
30199
# Is the compiler the GNU compiler?
30202
# Compiler flag to turn off builtin functions.
30203
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
30205
# Additional compiler flags for building library objects.
30206
pic_flag=$lt_lt_prog_compiler_pic
30208
# How to pass a linker flag through the compiler.
30209
wl=$lt_lt_prog_compiler_wl
30211
# Compiler flag to prevent dynamic linking.
30212
link_static_flag=$lt_lt_prog_compiler_static
30214
# Does compiler simultaneously support -c and -o options?
30215
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
30217
# Whether or not to add -lc for building shared libraries.
30218
build_libtool_need_lc=$archive_cmds_need_lc
30220
# Whether or not to disallow shared libs when runtime libs are static.
30221
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
30223
# Compiler flag to allow reflexive dlopens.
30224
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
30226
# Compiler flag to generate shared objects directly from archives.
30227
whole_archive_flag_spec=$lt_whole_archive_flag_spec
30229
# Whether the compiler copes with passing no objects directly.
30230
compiler_needs_object=$lt_compiler_needs_object
30232
# Create an old-style archive from a shared archive.
30233
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
30235
# Create a temporary old-style archive to link instead of a shared archive.
30236
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
30238
# Commands used to build a shared archive.
30239
archive_cmds=$lt_archive_cmds
30240
archive_expsym_cmds=$lt_archive_expsym_cmds
30242
# Commands used to build a loadable module if different from building
30243
# a shared archive.
30244
module_cmds=$lt_module_cmds
30245
module_expsym_cmds=$lt_module_expsym_cmds
30247
# Whether we are building with GNU ld or not.
30248
with_gnu_ld=$lt_with_gnu_ld
30250
# Flag that allows shared libraries with undefined symbols to be built.
30251
allow_undefined_flag=$lt_allow_undefined_flag
30253
# Flag that enforces no undefined symbols.
30254
no_undefined_flag=$lt_no_undefined_flag
30256
# Flag to hardcode \$libdir into a binary during linking.
30257
# This must work even if \$libdir does not exist
30258
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
30260
# Whether we need a single "-rpath" flag with a separated argument.
30261
hardcode_libdir_separator=$lt_hardcode_libdir_separator
30263
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30264
# DIR into the resulting binary.
30265
hardcode_direct=$hardcode_direct
30267
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30268
# DIR into the resulting binary and the resulting library dependency is
30269
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
30270
# library is relocated.
30271
hardcode_direct_absolute=$hardcode_direct_absolute
30273
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
30274
# into the resulting binary.
30275
hardcode_minus_L=$hardcode_minus_L
30277
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
30278
# into the resulting binary.
30279
hardcode_shlibpath_var=$hardcode_shlibpath_var
30281
# Set to "yes" if building a shared library automatically hardcodes DIR
30282
# into the library and all subsequent libraries and executables linked
30284
hardcode_automatic=$hardcode_automatic
30286
# Set to yes if linker adds runtime paths of dependent libraries
30287
# to runtime path list.
30288
inherit_rpath=$inherit_rpath
30290
# Whether libtool must link a program against all its dependency libraries.
30291
link_all_deplibs=$link_all_deplibs
30293
# Set to "yes" if exported symbols are required.
30294
always_export_symbols=$always_export_symbols
30296
# The commands to list exported symbols.
30297
export_symbols_cmds=$lt_export_symbols_cmds
30299
# Symbols that should not be listed in the preloaded symbols.
30300
exclude_expsyms=$lt_exclude_expsyms
30302
# Symbols that must always be exported.
30303
include_expsyms=$lt_include_expsyms
30305
# Commands necessary for linking programs (against libraries) with templates.
30306
prelink_cmds=$lt_prelink_cmds
30308
# Commands necessary for finishing linking programs.
30309
postlink_cmds=$lt_postlink_cmds
30311
# Specify filename containing input files.
30312
file_list_spec=$lt_file_list_spec
30314
# How to hardcode a shared library path into an executable.
30315
hardcode_action=$hardcode_action
30317
# The directories searched by this compiler when creating a shared library.
30318
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
30320
# Dependencies to place before and after the objects being linked to
30321
# create a shared library.
30322
predep_objects=$lt_predep_objects
30323
postdep_objects=$lt_postdep_objects
30324
predeps=$lt_predeps
30325
postdeps=$lt_postdeps
30327
# The library search path used internally by the compiler when linking
30328
# a shared library.
30329
compiler_lib_search_path=$lt_compiler_lib_search_path
30331
# ### END LIBTOOL CONFIG
30337
cat <<\_LT_EOF >> "$cfgfile"
30338
# AIX sometimes has problems with the GCC collect2 program. For some
30339
# reason, if we set the COLLECT_NAMES environment variable, the problems
30340
# vanish in a puff of smoke.
30341
if test "X${COLLECT_NAMES+set}" != Xset; then
30343
export COLLECT_NAMES
30350
ltmain="$ac_aux_dir/ltmain.sh"
30353
# We use sed instead of cat because bash on DJGPP gets confused if
30354
# if finds mixed CR/LF and LF-only lines. Since sed operates in
30355
# text mode, it properly converts lines to CR/LF. This bash problem
30356
# is reportedly fixed, but why not run on old versions too?
30357
sed '$q' "$ltmain" >> "$cfgfile" \
30358
|| (rm -f "$cfgfile"; exit 1)
30360
if test x"$xsi_shell" = xyes; then
30361
sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
30365
\ */*) func_dirname_result="${1%/*}${2}" ;;\
30366
\ * ) func_dirname_result="${3}" ;;\
30368
} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
30369
&& mv -f "$cfgfile.tmp" "$cfgfile" \
30370
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30371
test 0 -eq $? || _lt_function_replace_fail=:
30374
sed -e '/^func_basename ()$/,/^} # func_basename /c\
30377
\ func_basename_result="${1##*/}"\
30378
} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
30379
&& mv -f "$cfgfile.tmp" "$cfgfile" \
30380
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30381
test 0 -eq $? || _lt_function_replace_fail=:
30384
sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
30385
func_dirname_and_basename ()\
30388
\ */*) func_dirname_result="${1%/*}${2}" ;;\
30389
\ * ) func_dirname_result="${3}" ;;\
30391
\ func_basename_result="${1##*/}"\
30392
} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
30393
&& mv -f "$cfgfile.tmp" "$cfgfile" \
30394
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30395
test 0 -eq $? || _lt_function_replace_fail=:
30398
sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
30401
\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
30402
\ # positional parameters, so assign one to ordinary parameter first.\
30403
\ func_stripname_result=${3}\
30404
\ func_stripname_result=${func_stripname_result#"${1}"}\
30405
\ func_stripname_result=${func_stripname_result%"${2}"}\
30406
} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
30407
&& mv -f "$cfgfile.tmp" "$cfgfile" \
30408
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30409
test 0 -eq $? || _lt_function_replace_fail=:
30412
sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
30413
func_split_long_opt ()\
30415
\ func_split_long_opt_name=${1%%=*}\
30416
\ func_split_long_opt_arg=${1#*=}\
30417
} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
30418
&& mv -f "$cfgfile.tmp" "$cfgfile" \
30419
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30420
test 0 -eq $? || _lt_function_replace_fail=:
30423
sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
30424
func_split_short_opt ()\
30426
\ func_split_short_opt_arg=${1#??}\
30427
\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
30428
} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
30429
&& mv -f "$cfgfile.tmp" "$cfgfile" \
30430
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30431
test 0 -eq $? || _lt_function_replace_fail=:
30434
sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
30438
\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
30439
\ *) func_lo2o_result=${1} ;;\
30441
} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
30442
&& mv -f "$cfgfile.tmp" "$cfgfile" \
30443
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30444
test 0 -eq $? || _lt_function_replace_fail=:
30447
sed -e '/^func_xform ()$/,/^} # func_xform /c\
30450
func_xform_result=${1%.*}.lo\
30451
} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
30452
&& mv -f "$cfgfile.tmp" "$cfgfile" \
30453
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30454
test 0 -eq $? || _lt_function_replace_fail=:
30457
sed -e '/^func_arith ()$/,/^} # func_arith /c\
30460
func_arith_result=$(( $* ))\
30461
} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
30462
&& mv -f "$cfgfile.tmp" "$cfgfile" \
30463
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30464
test 0 -eq $? || _lt_function_replace_fail=:
30467
sed -e '/^func_len ()$/,/^} # func_len /c\
30470
func_len_result=${#1}\
30471
} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
30472
&& mv -f "$cfgfile.tmp" "$cfgfile" \
30473
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30474
test 0 -eq $? || _lt_function_replace_fail=:
30478
if test x"$lt_shell_append" = xyes; then
30479
sed -e '/^func_append ()$/,/^} # func_append /c\
30482
eval "${1}+=\\${2}"\
30483
} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
30484
&& mv -f "$cfgfile.tmp" "$cfgfile" \
30485
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30486
test 0 -eq $? || _lt_function_replace_fail=:
30489
sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
30490
func_append_quoted ()\
30492
\ func_quote_for_eval "${2}"\
30493
\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
30494
} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
30495
&& mv -f "$cfgfile.tmp" "$cfgfile" \
30496
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30497
test 0 -eq $? || _lt_function_replace_fail=:
30500
# Save a `func_append' function call where possible by direct use of '+='
30501
sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
30502
&& mv -f "$cfgfile.tmp" "$cfgfile" \
30503
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30504
test 0 -eq $? || _lt_function_replace_fail=:
30506
# Save a `func_append' function call even when '+=' is not available
30507
sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
30508
&& mv -f "$cfgfile.tmp" "$cfgfile" \
30509
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30510
test 0 -eq $? || _lt_function_replace_fail=:
30513
if test x"$_lt_function_replace_fail" = x":"; then
30514
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
30515
$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
30519
mv -f "$cfgfile" "$ofile" ||
30520
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
30524
cat <<_LT_EOF >> "$ofile"
30526
# ### BEGIN LIBTOOL TAG CONFIG: CXX
30528
# The linker used to build libraries.
30531
# How to create reloadable object files.
30532
reload_flag=$lt_reload_flag_CXX
30533
reload_cmds=$lt_reload_cmds_CXX
30535
# Commands used to build an old-style archive.
30536
old_archive_cmds=$lt_old_archive_cmds_CXX
30538
# A language specific compiler.
30539
CC=$lt_compiler_CXX
30541
# Is the compiler the GNU compiler?
30544
# Compiler flag to turn off builtin functions.
30545
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
30547
# Additional compiler flags for building library objects.
30548
pic_flag=$lt_lt_prog_compiler_pic_CXX
30550
# How to pass a linker flag through the compiler.
30551
wl=$lt_lt_prog_compiler_wl_CXX
30553
# Compiler flag to prevent dynamic linking.
30554
link_static_flag=$lt_lt_prog_compiler_static_CXX
30556
# Does compiler simultaneously support -c and -o options?
30557
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
30559
# Whether or not to add -lc for building shared libraries.
30560
build_libtool_need_lc=$archive_cmds_need_lc_CXX
30562
# Whether or not to disallow shared libs when runtime libs are static.
30563
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
30565
# Compiler flag to allow reflexive dlopens.
30566
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
30568
# Compiler flag to generate shared objects directly from archives.
30569
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
30571
# Whether the compiler copes with passing no objects directly.
30572
compiler_needs_object=$lt_compiler_needs_object_CXX
30574
# Create an old-style archive from a shared archive.
30575
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
30577
# Create a temporary old-style archive to link instead of a shared archive.
30578
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
30580
# Commands used to build a shared archive.
30581
archive_cmds=$lt_archive_cmds_CXX
30582
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
30584
# Commands used to build a loadable module if different from building
30585
# a shared archive.
30586
module_cmds=$lt_module_cmds_CXX
30587
module_expsym_cmds=$lt_module_expsym_cmds_CXX
30589
# Whether we are building with GNU ld or not.
30590
with_gnu_ld=$lt_with_gnu_ld_CXX
30592
# Flag that allows shared libraries with undefined symbols to be built.
30593
allow_undefined_flag=$lt_allow_undefined_flag_CXX
30595
# Flag that enforces no undefined symbols.
30596
no_undefined_flag=$lt_no_undefined_flag_CXX
30598
# Flag to hardcode \$libdir into a binary during linking.
30599
# This must work even if \$libdir does not exist
30600
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
30602
# Whether we need a single "-rpath" flag with a separated argument.
30603
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
30605
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30606
# DIR into the resulting binary.
30607
hardcode_direct=$hardcode_direct_CXX
30609
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30610
# DIR into the resulting binary and the resulting library dependency is
30611
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
30612
# library is relocated.
30613
hardcode_direct_absolute=$hardcode_direct_absolute_CXX
30615
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
30616
# into the resulting binary.
30617
hardcode_minus_L=$hardcode_minus_L_CXX
30619
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
30620
# into the resulting binary.
30621
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
30623
# Set to "yes" if building a shared library automatically hardcodes DIR
30624
# into the library and all subsequent libraries and executables linked
30626
hardcode_automatic=$hardcode_automatic_CXX
30628
# Set to yes if linker adds runtime paths of dependent libraries
30629
# to runtime path list.
30630
inherit_rpath=$inherit_rpath_CXX
30632
# Whether libtool must link a program against all its dependency libraries.
30633
link_all_deplibs=$link_all_deplibs_CXX
30635
# Set to "yes" if exported symbols are required.
30636
always_export_symbols=$always_export_symbols_CXX
30638
# The commands to list exported symbols.
30639
export_symbols_cmds=$lt_export_symbols_cmds_CXX
30641
# Symbols that should not be listed in the preloaded symbols.
30642
exclude_expsyms=$lt_exclude_expsyms_CXX
30644
# Symbols that must always be exported.
30645
include_expsyms=$lt_include_expsyms_CXX
30647
# Commands necessary for linking programs (against libraries) with templates.
30648
prelink_cmds=$lt_prelink_cmds_CXX
30650
# Commands necessary for finishing linking programs.
30651
postlink_cmds=$lt_postlink_cmds_CXX
30653
# Specify filename containing input files.
30654
file_list_spec=$lt_file_list_spec_CXX
30656
# How to hardcode a shared library path into an executable.
30657
hardcode_action=$hardcode_action_CXX
30659
# The directories searched by this compiler when creating a shared library.
30660
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
30662
# Dependencies to place before and after the objects being linked to
30663
# create a shared library.
30664
predep_objects=$lt_predep_objects_CXX
30665
postdep_objects=$lt_postdep_objects_CXX
30666
predeps=$lt_predeps_CXX
30667
postdeps=$lt_postdeps_CXX
30669
# The library search path used internally by the compiler when linking
30670
# a shared library.
30671
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
30673
# ### END LIBTOOL TAG CONFIG: CXX
30677
cat <<_LT_EOF >> "$ofile"
30679
# ### BEGIN LIBTOOL TAG CONFIG: F77
30681
# The linker used to build libraries.
30684
# How to create reloadable object files.
30685
reload_flag=$lt_reload_flag_F77
30686
reload_cmds=$lt_reload_cmds_F77
30688
# Commands used to build an old-style archive.
30689
old_archive_cmds=$lt_old_archive_cmds_F77
30691
# A language specific compiler.
30692
CC=$lt_compiler_F77
30694
# Is the compiler the GNU compiler?
30697
# Compiler flag to turn off builtin functions.
30698
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
30700
# Additional compiler flags for building library objects.
30701
pic_flag=$lt_lt_prog_compiler_pic_F77
30703
# How to pass a linker flag through the compiler.
30704
wl=$lt_lt_prog_compiler_wl_F77
30706
# Compiler flag to prevent dynamic linking.
30707
link_static_flag=$lt_lt_prog_compiler_static_F77
30709
# Does compiler simultaneously support -c and -o options?
30710
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
30712
# Whether or not to add -lc for building shared libraries.
30713
build_libtool_need_lc=$archive_cmds_need_lc_F77
30715
# Whether or not to disallow shared libs when runtime libs are static.
30716
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
30718
# Compiler flag to allow reflexive dlopens.
30719
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
30721
# Compiler flag to generate shared objects directly from archives.
30722
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
30724
# Whether the compiler copes with passing no objects directly.
30725
compiler_needs_object=$lt_compiler_needs_object_F77
30727
# Create an old-style archive from a shared archive.
30728
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
30730
# Create a temporary old-style archive to link instead of a shared archive.
30731
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
30733
# Commands used to build a shared archive.
30734
archive_cmds=$lt_archive_cmds_F77
30735
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
30737
# Commands used to build a loadable module if different from building
30738
# a shared archive.
30739
module_cmds=$lt_module_cmds_F77
30740
module_expsym_cmds=$lt_module_expsym_cmds_F77
30742
# Whether we are building with GNU ld or not.
30743
with_gnu_ld=$lt_with_gnu_ld_F77
30745
# Flag that allows shared libraries with undefined symbols to be built.
30746
allow_undefined_flag=$lt_allow_undefined_flag_F77
30748
# Flag that enforces no undefined symbols.
30749
no_undefined_flag=$lt_no_undefined_flag_F77
30751
# Flag to hardcode \$libdir into a binary during linking.
30752
# This must work even if \$libdir does not exist
30753
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
30755
# Whether we need a single "-rpath" flag with a separated argument.
30756
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
30758
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30759
# DIR into the resulting binary.
30760
hardcode_direct=$hardcode_direct_F77
30762
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30763
# DIR into the resulting binary and the resulting library dependency is
30764
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
30765
# library is relocated.
30766
hardcode_direct_absolute=$hardcode_direct_absolute_F77
30768
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
30769
# into the resulting binary.
30770
hardcode_minus_L=$hardcode_minus_L_F77
30772
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
30773
# into the resulting binary.
30774
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
30776
# Set to "yes" if building a shared library automatically hardcodes DIR
30777
# into the library and all subsequent libraries and executables linked
30779
hardcode_automatic=$hardcode_automatic_F77
30781
# Set to yes if linker adds runtime paths of dependent libraries
30782
# to runtime path list.
30783
inherit_rpath=$inherit_rpath_F77
30785
# Whether libtool must link a program against all its dependency libraries.
30786
link_all_deplibs=$link_all_deplibs_F77
30788
# Set to "yes" if exported symbols are required.
30789
always_export_symbols=$always_export_symbols_F77
30791
# The commands to list exported symbols.
30792
export_symbols_cmds=$lt_export_symbols_cmds_F77
30794
# Symbols that should not be listed in the preloaded symbols.
30795
exclude_expsyms=$lt_exclude_expsyms_F77
30797
# Symbols that must always be exported.
30798
include_expsyms=$lt_include_expsyms_F77
30800
# Commands necessary for linking programs (against libraries) with templates.
30801
prelink_cmds=$lt_prelink_cmds_F77
30803
# Commands necessary for finishing linking programs.
30804
postlink_cmds=$lt_postlink_cmds_F77
30806
# Specify filename containing input files.
30807
file_list_spec=$lt_file_list_spec_F77
30809
# How to hardcode a shared library path into an executable.
30810
hardcode_action=$hardcode_action_F77
30812
# The directories searched by this compiler when creating a shared library.
30813
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
30815
# Dependencies to place before and after the objects being linked to
30816
# create a shared library.
30817
predep_objects=$lt_predep_objects_F77
30818
postdep_objects=$lt_postdep_objects_F77
30819
predeps=$lt_predeps_F77
30820
postdeps=$lt_postdeps_F77
30822
# The library search path used internally by the compiler when linking
30823
# a shared library.
30824
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
30826
# ### END LIBTOOL TAG CONFIG: F77
30837
ac_clean_files=$ac_clean_files_save
30839
test $ac_write_fail = 0 ||
30840
as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
30843
# configure is writing to config.log, and then calls config.status.
30844
# config.status does its own redirection, appending to config.log.
30845
# Unfortunately, on DOS this fails, as config.log is still kept open
30846
# by configure, so config.status won't be able to write to it; its
30847
# output is simply discarded. So we exec the FD to /dev/null,
30848
# effectively closing config.log, so it can be properly (re)opened and
30849
# appended to by config.status. When coming back to configure, we
30850
# need to make the FD available again.
30851
if test "$no_create" != yes; then
30853
ac_config_status_args=
30854
test "$silent" = yes &&
30855
ac_config_status_args="$ac_config_status_args --quiet"
30857
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30859
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
30860
# would make configure fail if this is the last instruction.
30861
$ac_cs_success || as_fn_exit 1
30863
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
30864
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
30865
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
30869
# Report on what we found.
30870
{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30871
$as_echo "$as_me: " >&6;}
30872
{ $as_echo "$as_me:${as_lineno-$LINENO}: **************************************************************" >&5
30873
$as_echo "$as_me: **************************************************************" >&6;}
30874
{ $as_echo "$as_me:${as_lineno-$LINENO}: $PACKAGE_NAME configured as follows:" >&5
30875
$as_echo "$as_me: $PACKAGE_NAME configured as follows:" >&6;}
30876
{ $as_echo "$as_me:${as_lineno-$LINENO}: **************************************************************" >&5
30877
$as_echo "$as_me: **************************************************************" >&6;}
30878
{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30879
$as_echo "$as_me: " >&6;}
30880
{ $as_echo "$as_me:${as_lineno-$LINENO}: GA_MP_LIBS=$GA_MP_LIBS" >&5
30881
$as_echo "$as_me: GA_MP_LIBS=$GA_MP_LIBS" >&6;}
30882
{ $as_echo "$as_me:${as_lineno-$LINENO}: GA_MP_LDFLAGS=$GA_MP_LDFLAGS" >&5
30883
$as_echo "$as_me: GA_MP_LDFLAGS=$GA_MP_LDFLAGS" >&6;}
30884
{ $as_echo "$as_me:${as_lineno-$LINENO}: GA_MP_CPPFLAGS=$GA_MP_CPPFLAGS" >&5
30885
$as_echo "$as_me: GA_MP_CPPFLAGS=$GA_MP_CPPFLAGS" >&6;}
30886
{ $as_echo "$as_me:${as_lineno-$LINENO}: F77=$F77" >&5
30887
$as_echo "$as_me: F77=$F77" >&6;}
30888
{ $as_echo "$as_me:${as_lineno-$LINENO}: FFLAGS=$FFLAGS" >&5
30889
$as_echo "$as_me: FFLAGS=$FFLAGS" >&6;}
30890
{ $as_echo "$as_me:${as_lineno-$LINENO}: FFLAG_INT=$FFLAG_INT" >&5
30891
$as_echo "$as_me: FFLAG_INT=$FFLAG_INT" >&6;}
30892
{ $as_echo "$as_me:${as_lineno-$LINENO}: CC=$CC" >&5
30893
$as_echo "$as_me: CC=$CC" >&6;}
30894
{ $as_echo "$as_me:${as_lineno-$LINENO}: CFLAGS=$CFLAGS" >&5
30895
$as_echo "$as_me: CFLAGS=$CFLAGS" >&6;}
30896
{ $as_echo "$as_me:${as_lineno-$LINENO}: CXX=$CXX" >&5
30897
$as_echo "$as_me: CXX=$CXX" >&6;}
30898
{ $as_echo "$as_me:${as_lineno-$LINENO}: CXXFLAGS=$CXXFLAGS" >&5
30899
$as_echo "$as_me: CXXFLAGS=$CXXFLAGS" >&6;}
30900
{ $as_echo "$as_me:${as_lineno-$LINENO}: CPP=$CPP" >&5
30901
$as_echo "$as_me: CPP=$CPP" >&6;}
30902
{ $as_echo "$as_me:${as_lineno-$LINENO}: CPPFLAGS=$CPPFLAGS" >&5
30903
$as_echo "$as_me: CPPFLAGS=$CPPFLAGS" >&6;}
30904
{ $as_echo "$as_me:${as_lineno-$LINENO}: LDFLAGS=$LDFLAGS" >&5
30905
$as_echo "$as_me: LDFLAGS=$LDFLAGS" >&6;}
30906
{ $as_echo "$as_me:${as_lineno-$LINENO}: LIBS=$LIBS" >&5
30907
$as_echo "$as_me: LIBS=$LIBS" >&6;}
30908
{ $as_echo "$as_me:${as_lineno-$LINENO}: FLIBS=$FLIBS" >&5
30909
$as_echo "$as_me: FLIBS=$FLIBS" >&6;}
30910
{ $as_echo "$as_me:${as_lineno-$LINENO}: AR=$AR" >&5
30911
$as_echo "$as_me: AR=$AR" >&6;}
30912
{ $as_echo "$as_me:${as_lineno-$LINENO}: AR_FLAGS=$AR_FLAGS" >&5
30913
$as_echo "$as_me: AR_FLAGS=$AR_FLAGS" >&6;}
30914
{ $as_echo "$as_me:${as_lineno-$LINENO}: DEFS=$DEFS" >&5
30915
$as_echo "$as_me: DEFS=$DEFS" >&6;}
30916
{ $as_echo "$as_me:${as_lineno-$LINENO}: SHELL=$SHELL" >&5
30917
$as_echo "$as_me: SHELL=$SHELL" >&6;}
30918
{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30919
$as_echo "$as_me: " >&6;}