128
67
# Name of the executable.
129
as_me=`$as_basename -- "$0" ||
68
as_me=`$as_basename "$0" ||
130
69
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
131
70
X"$0" : 'X\(//\)$' \| \
132
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
71
X"$0" : 'X\(/\)$' \| \
72
. : '\(.\)' 2>/dev/null ||
134
sed '/^.*\/\([^/][^/]*\)\/*$/{
152
if test "x$CONFIG_SHELL" = x; then
153
if (eval ":") 2>/dev/null; then
159
if test $as_have_required = yes && (eval ":
169
as_func_ret_success () {
172
as_func_ret_failure () {
177
if as_func_success; then
181
echo as_func_success failed.
184
if as_func_failure; then
186
echo as_func_failure succeeded.
189
if as_func_ret_success; then
193
echo as_func_ret_success failed.
196
if as_func_ret_failure; then
198
echo as_func_ret_failure succeeded.
201
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205
echo positional parameters were not saved.
208
test \$exitcode = 0) || { (exit 1); exit 1; }
213
test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
214
test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
215
") 2> /dev/null; then
74
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75
/^X\/\(\/\/\)$/{ s//\1/; q; }
76
/^X\/\(\/\).*/{ s//\1/; q; }
80
# PATH needs CR, and LINENO needs CR and PATH.
81
# Avoid depending upon Character Ranges.
82
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85
as_cr_digits='0123456789'
86
as_cr_alnum=$as_cr_Letters$as_cr_digits
88
# The user is always right.
89
if test "${PATH_SEPARATOR+set}" != set; then
90
echo "#! /bin/sh" >conf$$.sh
91
echo "exit 0" >>conf$$.sh
93
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
104
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105
test "x$as_lineno_1" != "x$as_lineno_2" &&
106
test "x$as_lineno_3" = "x$as_lineno_2" || {
107
# Find who we are. Look in the path if we contain no path at all
110
*[\\/]* ) as_myself=$0 ;;
111
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
115
test -z "$as_dir" && as_dir=.
116
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
121
# We did not find ourselves, most probably we were run as `sh COMMAND'
122
# in which case we are not to be found in the path.
123
if test "x$as_myself" = x; then
126
if test ! -f "$as_myself"; then
127
{ echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128
{ (exit 1); exit 1; }; }
130
case $CONFIG_SHELL in
219
132
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220
for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223
136
test -z "$as_dir" && as_dir=.
137
for as_base in sh bash ksh sh5; do
226
for as_base in sh bash ksh sh5; do
227
as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
140
if ("$as_dir/$as_base" -c '
143
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144
test "x$as_lineno_1" != "x$as_lineno_2" &&
145
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148
CONFIG_SHELL=$as_dir/$as_base
150
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
234
for as_shell in $as_candidate_shells $SHELL; do
235
# Try only shells that exist, to save several forks.
236
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
237
{ ("$as_shell") 2> /dev/null <<\_ASEOF
238
# Be Bourne compatible
239
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
243
# is contrary to our usage. Disable this feature.
244
alias -g '${1+"$@"}'='"$@"'
247
case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
249
BIN_SH=xpg4; export BIN_SH # for Tru64
250
DUALCASE=1; export DUALCASE # for MKS sh
255
CONFIG_SHELL=$as_shell
257
if { "$as_shell" 2> /dev/null <<\_ASEOF
258
# Be Bourne compatible
259
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
263
# is contrary to our usage. Disable this feature.
264
alias -g '${1+"$@"}'='"$@"'
267
case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
269
BIN_SH=xpg4; export BIN_SH # for Tru64
270
DUALCASE=1; export DUALCASE # for MKS sh
282
as_func_ret_success () {
285
as_func_ret_failure () {
290
if as_func_success; then
294
echo as_func_success failed.
297
if as_func_failure; then
299
echo as_func_failure succeeded.
302
if as_func_ret_success; then
306
echo as_func_ret_success failed.
309
if as_func_ret_failure; then
311
echo as_func_ret_failure succeeded.
314
if ( set x; as_func_ret_success y && test x = "$1" ); then
318
echo positional parameters were not saved.
321
test $exitcode = 0) || { (exit 1); exit 1; }
326
test "x$as_lineno_1" != "x$as_lineno_2" &&
327
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
338
if test "x$CONFIG_SHELL" != x; then
339
for as_var in BASH_ENV ENV
340
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343
exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
347
if test $as_have_required = no; then
348
echo This script requires a shell more modern than all the
349
echo shells that I found on your system. Please install a
350
echo modern shell, or manually run the script under such a
351
echo shell if you do have one.
352
{ (exit 1); exit 1; }
362
(eval "as_func_return () {
371
as_func_ret_success () {
374
as_func_ret_failure () {
379
if as_func_success; then
383
echo as_func_success failed.
386
if as_func_failure; then
388
echo as_func_failure succeeded.
391
if as_func_ret_success; then
395
echo as_func_ret_success failed.
398
if as_func_ret_failure; then
400
echo as_func_ret_failure succeeded.
403
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
407
echo positional parameters were not saved.
410
test \$exitcode = 0") || {
411
echo No shell found that supports shell functions.
412
echo Please tell autoconf@gnu.org about your system,
413
echo including any error possibly output before this
421
test "x$as_lineno_1" != "x$as_lineno_2" &&
422
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
424
158
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
425
159
# uniformly replaced by the line number. The first 'sed' inserts a
426
# line-number line after each line using $LINENO; the second 'sed'
427
# does the real work. The second script uses 'N' to pair each
428
# line-number line with the line containing $LINENO, and appends
429
# trailing '-' during substitution so that $LINENO is not a special
160
# line-number line before each line; the second 'sed' does the real
161
# work. The second script uses 'N' to pair each line-number line
162
# with the numbered line, and appends trailing '-' during
163
# substitution so that $LINENO is not a special case at line end.
431
164
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
432
# scripts with optimization help from Paolo Bonzini. Blame Lee
433
# E. McMahon (1931-1989) for sed's syntax. :-)
165
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166
sed '=' <$as_myself |
445
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
171
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174
s,^['$as_cr_digits']*\n,,
448
175
' >$as_me.lineno &&
449
chmod +x "$as_me.lineno" ||
176
chmod +x $as_me.lineno ||
450
177
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
451
178
{ (exit 1); exit 1; }; }
453
180
# Don't try to exec as it changes $[0], causing all sort of problems
454
181
# (the dirname of $[0] is not the place where we might find the
455
# original and so on. Autoconf is especially sensitive to this).
182
# original and so on. Autoconf is especially sensible to this).
457
184
# Exit status is that of the last command.
462
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
468
ECHO_C= ECHO_N= ECHO_T=
472
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
189
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190
*c*,-n*) ECHO_N= ECHO_C='
192
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
479
if expr a : '\(a\)' >/dev/null 2>&1 &&
480
test "X`expr 00001 : '.*\(...\)'`" = X001; then
196
if expr a : '\(a\)' >/dev/null 2>&1; then
486
202
rm -f conf$$ conf$$.exe conf$$.file
487
if test -d conf$$.dir; then
488
rm -f conf$$.dir/conf$$.file
493
203
echo >conf$$.file
494
204
if ln -s conf$$.file conf$$ 2>/dev/null; then
496
# ... but there are two gotchas:
497
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
498
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
499
# In both cases, we have to default to `cp -p'.
500
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
205
# We could just check for DJGPP; but this test a) works b) is more generic
206
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207
if test -f conf$$.exe; then
208
# Don't use ln at all; we don't have any links
502
213
elif ln conf$$.file conf$$ 2>/dev/null; then
507
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
508
rmdir conf$$.dir 2>/dev/null
218
rm -f conf$$ conf$$.exe conf$$.file
510
220
if mkdir -p . 2>/dev/null; then
1270
858
test "$silent" = yes && exec 6>/dev/null
1273
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1274
ac_ls_di=`ls -di .` &&
1275
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1276
{ echo "$as_me: error: Working directory cannot be determined" >&2
1277
{ (exit 1); exit 1; }; }
1278
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1279
{ echo "$as_me: error: pwd does not report name of working directory" >&2
1280
{ (exit 1); exit 1; }; }
1283
861
# Find the source files, if location was not specified.
1284
862
if test -z "$srcdir"; then
1285
863
ac_srcdir_defaulted=yes
1286
# Try the directory containing this script, then the parent directory.
1287
ac_confdir=`$as_dirname -- "$0" ||
864
# Try the directory containing this script, then its parent.
865
ac_confdir=`(dirname "$0") 2>/dev/null ||
1288
866
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1289
867
X"$0" : 'X\(//\)[^/]' \| \
1290
868
X"$0" : 'X\(//\)$' \| \
1291
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
869
X"$0" : 'X\(/\)' \| \
870
. : '\(.\)' 2>/dev/null ||
1293
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
872
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
874
/^X\(\/\/\)$/{ s//\1/; q; }
875
/^X\(\/\).*/{ s//\1/; q; }
1310
877
srcdir=$ac_confdir
1311
if test ! -r "$srcdir/$ac_unique_file"; then
878
if test ! -r $srcdir/$ac_unique_file; then
1315
882
ac_srcdir_defaulted=no
1317
if test ! -r "$srcdir/$ac_unique_file"; then
1318
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1319
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1320
{ (exit 1); exit 1; }; }
1322
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1324
cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1325
{ (exit 1); exit 1; }; }
1327
# When building in place, set srcdir=.
1328
if test "$ac_abs_confdir" = "$ac_pwd"; then
1331
# Remove unnecessary trailing slashes from srcdir.
1332
# Double slashes in file names in object file debugging info
1333
# mess up M-x gdb in Emacs.
1335
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1337
for ac_var in $ac_precious_vars; do
1338
eval ac_env_${ac_var}_set=\${${ac_var}+set}
1339
eval ac_env_${ac_var}_value=\$${ac_var}
1340
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1341
eval ac_cv_env_${ac_var}_value=\$${ac_var}
884
if test ! -r $srcdir/$ac_unique_file; then
885
if test "$ac_srcdir_defaulted" = yes; then
886
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887
{ (exit 1); exit 1; }; }
889
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890
{ (exit 1); exit 1; }; }
893
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894
{ echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895
{ (exit 1); exit 1; }; }
896
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897
ac_env_build_alias_set=${build_alias+set}
898
ac_env_build_alias_value=$build_alias
899
ac_cv_env_build_alias_set=${build_alias+set}
900
ac_cv_env_build_alias_value=$build_alias
901
ac_env_host_alias_set=${host_alias+set}
902
ac_env_host_alias_value=$host_alias
903
ac_cv_env_host_alias_set=${host_alias+set}
904
ac_cv_env_host_alias_value=$host_alias
905
ac_env_target_alias_set=${target_alias+set}
906
ac_env_target_alias_value=$target_alias
907
ac_cv_env_target_alias_set=${target_alias+set}
908
ac_cv_env_target_alias_value=$target_alias
909
ac_env_CC_set=${CC+set}
911
ac_cv_env_CC_set=${CC+set}
912
ac_cv_env_CC_value=$CC
913
ac_env_CFLAGS_set=${CFLAGS+set}
914
ac_env_CFLAGS_value=$CFLAGS
915
ac_cv_env_CFLAGS_set=${CFLAGS+set}
916
ac_cv_env_CFLAGS_value=$CFLAGS
917
ac_env_LDFLAGS_set=${LDFLAGS+set}
918
ac_env_LDFLAGS_value=$LDFLAGS
919
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920
ac_cv_env_LDFLAGS_value=$LDFLAGS
921
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922
ac_env_CPPFLAGS_value=$CPPFLAGS
923
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925
ac_env_CPP_set=${CPP+set}
926
ac_env_CPP_value=$CPP
927
ac_cv_env_CPP_set=${CPP+set}
928
ac_cv_env_CPP_value=$CPP
929
ac_env_CXX_set=${CXX+set}
930
ac_env_CXX_value=$CXX
931
ac_cv_env_CXX_set=${CXX+set}
932
ac_cv_env_CXX_value=$CXX
933
ac_env_CXXFLAGS_set=${CXXFLAGS+set}
934
ac_env_CXXFLAGS_value=$CXXFLAGS
935
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
936
ac_cv_env_CXXFLAGS_value=$CXXFLAGS
937
ac_env_CXXCPP_set=${CXXCPP+set}
938
ac_env_CXXCPP_value=$CXXCPP
939
ac_cv_env_CXXCPP_set=${CXXCPP+set}
940
ac_cv_env_CXXCPP_value=$CXXCPP
941
ac_env_F77_set=${F77+set}
942
ac_env_F77_value=$F77
943
ac_cv_env_F77_set=${F77+set}
944
ac_cv_env_F77_value=$F77
945
ac_env_FFLAGS_set=${FFLAGS+set}
946
ac_env_FFLAGS_value=$FFLAGS
947
ac_cv_env_FFLAGS_set=${FFLAGS+set}
948
ac_cv_env_FFLAGS_value=$FFLAGS
1345
951
# Report the --help message.
1432
1036
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
1433
1037
--with-pic try to use only PIC/non-PIC objects [default=use
1435
--with-tags[=TAGS] include additional configurations [automatic]
1040
include additional configurations [automatic]
1437
1042
Some influential environment variables:
1438
1043
CC C compiler command
1439
1044
CFLAGS C compiler flags
1440
1045
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1441
1046
nonstandard directory <lib dir>
1442
CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1443
you have headers in a nonstandard directory <include dir>
1047
CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1048
headers in a nonstandard directory <include dir>
1444
1049
CPP C preprocessor
1445
1050
CXX C++ compiler command
1446
1051
CXXFLAGS C++ compiler flags
1447
1052
CXXCPP C++ preprocessor
1448
1053
F77 Fortran 77 compiler command
1449
1054
FFLAGS Fortran 77 compiler flags
1450
YACC The `Yet Another C Compiler' implementation to use. Defaults to
1451
the first program found out of: `bison -y', `byacc', `yacc'.
1452
YFLAGS The list of arguments that will be passed by default to $YACC.
1453
This script will default YFLAGS to the empty string to avoid a
1454
default value of `-d' given by some make applications.
1456
1056
Use these variables to override the choices made by `configure' or to help
1457
1057
it to find libraries and programs with nonstandard names/locations.
1459
1059
Report bugs to <jon@radscan.com>.
1464
1063
if test "$ac_init_help" = "recursive"; then
1465
1064
# If there are subdirs, report their specific --help.
1466
1066
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1467
test -d "$ac_dir" || continue
1067
test -d $ac_dir || continue
1471
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1070
if test "$ac_dir" != .; then
1473
1071
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1474
# A ".." for each directory in $ac_dir_suffix.
1475
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1476
case $ac_top_builddir_sub in
1477
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1478
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1481
ac_abs_top_builddir=$ac_pwd
1482
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1483
# for backward compatibility:
1484
ac_top_builddir=$ac_top_build_prefix
1072
# A "../" for each directory in $ac_dir_suffix.
1073
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1075
ac_dir_suffix= ac_top_builddir=
1486
1078
case $srcdir in
1487
.) # We are building in place.
1079
.) # No --srcdir option. We are building in place.
1489
ac_top_srcdir=$ac_top_builddir_sub
1490
ac_abs_top_srcdir=$ac_pwd ;;
1491
[\\/]* | ?:[\\/]* ) # Absolute name.
1081
if test -z "$ac_top_builddir"; then
1084
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1086
[\\/]* | ?:[\\/]* ) # Absolute path.
1492
1087
ac_srcdir=$srcdir$ac_dir_suffix;
1493
ac_top_srcdir=$srcdir
1494
ac_abs_top_srcdir=$srcdir ;;
1496
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1497
ac_top_srcdir=$ac_top_build_prefix$srcdir
1498
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1500
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1502
cd "$ac_dir" || { ac_status=$?; continue; }
1503
# Check for guested configure.
1504
if test -f "$ac_srcdir/configure.gnu"; then
1506
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
1507
elif test -f "$ac_srcdir/configure"; then
1509
$SHELL "$ac_srcdir/configure" --help=recursive
1088
ac_top_srcdir=$srcdir ;;
1090
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1091
ac_top_srcdir=$ac_top_builddir$srcdir ;;
1094
# Do not use `cd foo && pwd` to compute absolute paths, because
1095
# the directories may not exist.
1097
.) ac_abs_builddir="$ac_dir";;
1100
.) ac_abs_builddir=`pwd`;;
1101
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1102
*) ac_abs_builddir=`pwd`/"$ac_dir";;
1105
case $ac_abs_builddir in
1106
.) ac_abs_top_builddir=${ac_top_builddir}.;;
1108
case ${ac_top_builddir}. in
1109
.) ac_abs_top_builddir=$ac_abs_builddir;;
1110
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1111
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1114
case $ac_abs_builddir in
1115
.) ac_abs_srcdir=$ac_srcdir;;
1118
.) ac_abs_srcdir=$ac_abs_builddir;;
1119
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1120
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1123
case $ac_abs_builddir in
1124
.) ac_abs_top_srcdir=$ac_top_srcdir;;
1126
case $ac_top_srcdir in
1127
.) ac_abs_top_srcdir=$ac_abs_builddir;;
1128
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1129
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1134
# Check for guested configure; otherwise get Cygnus style configure.
1135
if test -f $ac_srcdir/configure.gnu; then
1137
$SHELL $ac_srcdir/configure.gnu --help=recursive
1138
elif test -f $ac_srcdir/configure; then
1140
$SHELL $ac_srcdir/configure --help=recursive
1141
elif test -f $ac_srcdir/configure.ac ||
1142
test -f $ac_srcdir/configure.in; then
1144
$ac_configure --help
1511
1146
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1513
cd "$ac_pwd" || { ac_status=$?; break; }
1517
test -n "$ac_init_help" && exit $ac_status
1152
test -n "$ac_init_help" && exit 0
1518
1153
if $ac_init_version; then
1520
1155
nas configure 1.6
1521
generated by GNU Autoconf 2.60
1156
generated by GNU Autoconf 2.59
1523
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1524
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1158
Copyright (C) 2003 Free Software Foundation, Inc.
1525
1159
This configure script is free software; the Free Software Foundation
1526
1160
gives unlimited permission to copy, distribute and modify it.
1530
cat >config.log <<_ACEOF
1531
1166
This file contains any messages produced by compilers while
1532
1167
running configure, to aid debugging if configure makes a mistake.
1534
1169
It was created by nas $as_me 1.6, which was
1535
generated by GNU Autoconf 2.60. Invocation command line was
1170
generated by GNU Autoconf 2.59. Invocation command line was
1543
1177
## --------- ##
1957
1576
enable_fast_install=yes
1962
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1963
if test -f "$ac_dir/install-sh"; then
1580
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1581
if test -f $ac_dir/install-sh; then
1964
1582
ac_aux_dir=$ac_dir
1965
1583
ac_install_sh="$ac_aux_dir/install-sh -c"
1967
elif test -f "$ac_dir/install.sh"; then
1585
elif test -f $ac_dir/install.sh; then
1968
1586
ac_aux_dir=$ac_dir
1969
1587
ac_install_sh="$ac_aux_dir/install.sh -c"
1971
elif test -f "$ac_dir/shtool"; then
1589
elif test -f $ac_dir/shtool; then
1972
1590
ac_aux_dir=$ac_dir
1973
1591
ac_install_sh="$ac_aux_dir/shtool install -c"
1977
1595
if test -z "$ac_aux_dir"; then
1978
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1979
echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1596
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1597
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1980
1598
{ (exit 1); exit 1; }; }
1983
# These three variables are undocumented and unsupported,
1984
# and are intended to be withdrawn in a future Autoconf release.
1985
# They can cause serious problems if a builder's source tree is in a directory
1986
# whose full name contains unusual characters.
1987
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1988
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1989
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1600
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1601
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1602
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1992
1604
# Make sure we can run config.sub.
1993
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1994
{ { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1995
echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1605
$ac_config_sub sun4 >/dev/null 2>&1 ||
1606
{ { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1607
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1996
1608
{ (exit 1); exit 1; }; }
1998
{ echo "$as_me:$LINENO: checking build system type" >&5
1999
echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1610
echo "$as_me:$LINENO: checking build system type" >&5
1611
echo $ECHO_N "checking build system type... $ECHO_C" >&6
2000
1612
if test "${ac_cv_build+set}" = set; then
2001
1613
echo $ECHO_N "(cached) $ECHO_C" >&6
2003
ac_build_alias=$build_alias
2004
test "x$ac_build_alias" = x &&
2005
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2006
test "x$ac_build_alias" = x &&
1615
ac_cv_build_alias=$build_alias
1616
test -z "$ac_cv_build_alias" &&
1617
ac_cv_build_alias=`$ac_config_guess`
1618
test -z "$ac_cv_build_alias" &&
2007
1619
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2008
1620
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2009
1621
{ (exit 1); exit 1; }; }
2010
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2011
{ { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2012
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1622
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1623
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1624
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2013
1625
{ (exit 1); exit 1; }; }
2016
{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2017
echo "${ECHO_T}$ac_cv_build" >&6; }
2018
case $ac_cv_build in
2020
*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2021
echo "$as_me: error: invalid value of canonical build" >&2;}
2022
{ (exit 1); exit 1; }; };;
1628
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1629
echo "${ECHO_T}$ac_cv_build" >&6
2024
1630
build=$ac_cv_build
2025
ac_save_IFS=$IFS; IFS='-'
2031
# Remember, the first character of IFS is used to create $*,
2032
# except with old shells:
2035
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2038
{ echo "$as_me:$LINENO: checking host system type" >&5
2039
echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1631
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1632
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1633
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1636
echo "$as_me:$LINENO: checking host system type" >&5
1637
echo $ECHO_N "checking host system type... $ECHO_C" >&6
2040
1638
if test "${ac_cv_host+set}" = set; then
2041
1639
echo $ECHO_N "(cached) $ECHO_C" >&6
2043
if test "x$host_alias" = x; then
2044
ac_cv_host=$ac_cv_build
2046
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2047
{ { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2048
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1641
ac_cv_host_alias=$host_alias
1642
test -z "$ac_cv_host_alias" &&
1643
ac_cv_host_alias=$ac_cv_build_alias
1644
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1645
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1646
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2049
1647
{ (exit 1); exit 1; }; }
2053
{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2054
echo "${ECHO_T}$ac_cv_host" >&6; }
2057
*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2058
echo "$as_me: error: invalid value of canonical host" >&2;}
2059
{ (exit 1); exit 1; }; };;
1650
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1651
echo "${ECHO_T}$ac_cv_host" >&6
2061
1652
host=$ac_cv_host
2062
ac_save_IFS=$IFS; IFS='-'
2068
# Remember, the first character of IFS is used to create $*,
2069
# except with old shells:
2072
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1653
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1654
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1655
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2719
2241
echo "$as_me: failed program was:" >&5
2720
2242
sed 's/^/| /' conftest.$ac_ext >&5
2725
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2246
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2726
2247
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2729
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2730
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2250
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2251
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2731
2252
GCC=`test $ac_compiler_gnu = yes && echo yes`
2732
2253
ac_test_CFLAGS=${CFLAGS+set}
2733
2254
ac_save_CFLAGS=$CFLAGS
2734
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2735
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2256
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2257
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2736
2258
if test "${ac_cv_prog_cc_g+set}" = set; then
2737
2259
echo $ECHO_N "(cached) $ECHO_C" >&6
2739
ac_save_c_werror_flag=$ac_c_werror_flag
2740
ac_c_werror_flag=yes
2743
cat >conftest.$ac_ext <<_ACEOF
2746
cat confdefs.h >>conftest.$ac_ext
2747
cat >>conftest.$ac_ext <<_ACEOF
2748
/* end confdefs.h. */
2758
rm -f conftest.$ac_objext
2759
if { (ac_try="$ac_compile"
2761
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2762
*) ac_try_echo=$ac_try;;
2764
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2765
(eval "$ac_compile") 2>conftest.er1
2767
grep -v '^ *+' conftest.er1 >conftest.err
2769
cat conftest.err >&5
2770
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771
(exit $ac_status); } &&
2772
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2773
{ (case "(($ac_try" in
2774
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2775
*) ac_try_echo=$ac_try;;
2777
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2778
(eval "$ac_try") 2>&5
2780
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781
(exit $ac_status); }; } &&
2782
{ ac_try='test -s conftest.$ac_objext'
2783
{ (case "(($ac_try" in
2784
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2785
*) ac_try_echo=$ac_try;;
2787
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2788
(eval "$ac_try") 2>&5
2790
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791
(exit $ac_status); }; }; then
2794
echo "$as_me: failed program was:" >&5
2795
sed 's/^/| /' conftest.$ac_ext >&5
2798
cat >conftest.$ac_ext <<_ACEOF
2801
cat confdefs.h >>conftest.$ac_ext
2802
cat >>conftest.$ac_ext <<_ACEOF
2803
/* end confdefs.h. */
2813
rm -f conftest.$ac_objext
2814
if { (ac_try="$ac_compile"
2816
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2817
*) ac_try_echo=$ac_try;;
2819
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2820
(eval "$ac_compile") 2>conftest.er1
2822
grep -v '^ *+' conftest.er1 >conftest.err
2824
cat conftest.err >&5
2825
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826
(exit $ac_status); } &&
2827
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2828
{ (case "(($ac_try" in
2829
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2830
*) ac_try_echo=$ac_try;;
2832
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2833
(eval "$ac_try") 2>&5
2835
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836
(exit $ac_status); }; } &&
2837
{ ac_try='test -s conftest.$ac_objext'
2838
{ (case "(($ac_try" in
2839
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2840
*) ac_try_echo=$ac_try;;
2842
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2843
(eval "$ac_try") 2>&5
2845
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846
(exit $ac_status); }; }; then
2849
echo "$as_me: failed program was:" >&5
2850
sed 's/^/| /' conftest.$ac_ext >&5
2852
ac_c_werror_flag=$ac_save_c_werror_flag
2854
cat >conftest.$ac_ext <<_ACEOF
2857
cat confdefs.h >>conftest.$ac_ext
2858
cat >>conftest.$ac_ext <<_ACEOF
2859
/* end confdefs.h. */
2869
rm -f conftest.$ac_objext
2870
if { (ac_try="$ac_compile"
2872
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2873
*) ac_try_echo=$ac_try;;
2875
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2876
(eval "$ac_compile") 2>conftest.er1
2878
grep -v '^ *+' conftest.er1 >conftest.err
2880
cat conftest.err >&5
2881
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882
(exit $ac_status); } &&
2883
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2884
{ (case "(($ac_try" in
2885
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2886
*) ac_try_echo=$ac_try;;
2888
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2889
(eval "$ac_try") 2>&5
2891
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892
(exit $ac_status); }; } &&
2893
{ ac_try='test -s conftest.$ac_objext'
2894
{ (case "(($ac_try" in
2895
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2896
*) ac_try_echo=$ac_try;;
2898
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2899
(eval "$ac_try") 2>&5
2901
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902
(exit $ac_status); }; }; then
2905
echo "$as_me: failed program was:" >&5
2906
sed 's/^/| /' conftest.$ac_ext >&5
2911
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2914
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2917
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2918
ac_c_werror_flag=$ac_save_c_werror_flag
2920
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2921
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2261
cat >conftest.$ac_ext <<_ACEOF
2264
cat confdefs.h >>conftest.$ac_ext
2265
cat >>conftest.$ac_ext <<_ACEOF
2266
/* end confdefs.h. */
2276
rm -f conftest.$ac_objext
2277
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2278
(eval $ac_compile) 2>conftest.er1
2280
grep -v '^ *+' conftest.er1 >conftest.err
2282
cat conftest.err >&5
2283
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2284
(exit $ac_status); } &&
2285
{ ac_try='test -z "$ac_c_werror_flag"
2286
|| test ! -s conftest.err'
2287
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2290
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2291
(exit $ac_status); }; } &&
2292
{ ac_try='test -s conftest.$ac_objext'
2293
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2296
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2297
(exit $ac_status); }; }; then
2300
echo "$as_me: failed program was:" >&5
2301
sed 's/^/| /' conftest.$ac_ext >&5
2305
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2307
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2308
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2922
2309
if test "$ac_test_CFLAGS" = set; then
2923
2310
CFLAGS=$ac_save_CFLAGS
2924
2311
elif test $ac_cv_prog_cc_g = yes; then
3001
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3002
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2383
# Don't try gcc -ansi; that turns off useful extensions and
2384
# breaks some systems' header files.
2385
# AIX -qlanglvl=ansi
2386
# Ultrix and OSF/1 -std1
2387
# HP-UX 10.20 and later -Ae
2388
# HP-UX older versions -Aa -D_HPUX_SOURCE
2389
# SVR4 -Xc -D__EXTENSIONS__
2390
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3004
2392
CC="$ac_save_CC $ac_arg"
3005
2393
rm -f conftest.$ac_objext
3006
if { (ac_try="$ac_compile"
3008
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3009
*) ac_try_echo=$ac_try;;
3011
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3012
(eval "$ac_compile") 2>conftest.er1
2394
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2395
(eval $ac_compile) 2>conftest.er1
3014
2397
grep -v '^ *+' conftest.er1 >conftest.err
3015
2398
rm -f conftest.er1
3016
2399
cat conftest.err >&5
3017
2400
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018
2401
(exit $ac_status); } &&
3019
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3020
{ (case "(($ac_try" in
3021
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3022
*) ac_try_echo=$ac_try;;
3024
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3025
(eval "$ac_try") 2>&5
2402
{ ac_try='test -z "$ac_c_werror_flag"
2403
|| test ! -s conftest.err'
2404
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3027
2407
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028
2408
(exit $ac_status); }; } &&
3029
2409
{ ac_try='test -s conftest.$ac_objext'
3030
{ (case "(($ac_try" in
3031
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3032
*) ac_try_echo=$ac_try;;
3034
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3035
(eval "$ac_try") 2>&5
2410
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3037
2413
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038
2414
(exit $ac_status); }; }; then
3039
ac_cv_prog_cc_c89=$ac_arg
2415
ac_cv_prog_cc_stdc=$ac_arg
3041
2418
echo "$as_me: failed program was:" >&5
3042
2419
sed 's/^/| /' conftest.$ac_ext >&5
3047
rm -f core conftest.err conftest.$ac_objext
3048
test "x$ac_cv_prog_cc_c89" != "xno" && break
2422
rm -f conftest.err conftest.$ac_objext
3050
rm -f conftest.$ac_ext
2424
rm -f conftest.$ac_ext conftest.$ac_objext
3055
case "x$ac_cv_prog_cc_c89" in
3057
{ echo "$as_me:$LINENO: result: none needed" >&5
3058
echo "${ECHO_T}none needed" >&6; } ;;
3060
{ echo "$as_me:$LINENO: result: unsupported" >&5
3061
echo "${ECHO_T}unsupported" >&6; } ;;
2429
case "x$ac_cv_prog_cc_stdc" in
2431
echo "$as_me:$LINENO: result: none needed" >&5
2432
echo "${ECHO_T}none needed" >&6 ;;
3063
CC="$CC $ac_cv_prog_cc_c89"
3064
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3065
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2434
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2435
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2436
CC="$CC $ac_cv_prog_cc_stdc" ;;
2439
# Some people use a C++ compiler to compile C. Since we use `exit',
2440
# in C++ we need to declare it. In case someone uses the same compiler
2441
# for both compiling C and C++ we need to have the C++ compiler decide
2442
# the declaration of exit, since it's the most demanding environment.
2443
cat >conftest.$ac_ext <<_ACEOF
2448
rm -f conftest.$ac_objext
2449
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2450
(eval $ac_compile) 2>conftest.er1
2452
grep -v '^ *+' conftest.er1 >conftest.err
2454
cat conftest.err >&5
2455
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456
(exit $ac_status); } &&
2457
{ ac_try='test -z "$ac_c_werror_flag"
2458
|| test ! -s conftest.err'
2459
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2462
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463
(exit $ac_status); }; } &&
2464
{ ac_try='test -s conftest.$ac_objext'
2465
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2468
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469
(exit $ac_status); }; }; then
2470
for ac_declaration in \
2472
'extern "C" void std::exit (int) throw (); using std::exit;' \
2473
'extern "C" void std::exit (int); using std::exit;' \
2474
'extern "C" void exit (int) throw ();' \
2475
'extern "C" void exit (int);' \
2478
cat >conftest.$ac_ext <<_ACEOF
2481
cat confdefs.h >>conftest.$ac_ext
2482
cat >>conftest.$ac_ext <<_ACEOF
2483
/* end confdefs.h. */
2494
rm -f conftest.$ac_objext
2495
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2496
(eval $ac_compile) 2>conftest.er1
2498
grep -v '^ *+' conftest.er1 >conftest.err
2500
cat conftest.err >&5
2501
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2502
(exit $ac_status); } &&
2503
{ ac_try='test -z "$ac_c_werror_flag"
2504
|| test ! -s conftest.err'
2505
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2508
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509
(exit $ac_status); }; } &&
2510
{ ac_try='test -s conftest.$ac_objext'
2511
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2514
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515
(exit $ac_status); }; }; then
2518
echo "$as_me: failed program was:" >&5
2519
sed 's/^/| /' conftest.$ac_ext >&5
2523
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2524
cat >conftest.$ac_ext <<_ACEOF
2527
cat confdefs.h >>conftest.$ac_ext
2528
cat >>conftest.$ac_ext <<_ACEOF
2529
/* end confdefs.h. */
2539
rm -f conftest.$ac_objext
2540
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2541
(eval $ac_compile) 2>conftest.er1
2543
grep -v '^ *+' conftest.er1 >conftest.err
2545
cat conftest.err >&5
2546
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547
(exit $ac_status); } &&
2548
{ ac_try='test -z "$ac_c_werror_flag"
2549
|| test ! -s conftest.err'
2550
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2553
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554
(exit $ac_status); }; } &&
2555
{ ac_try='test -s conftest.$ac_objext'
2556
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2559
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560
(exit $ac_status); }; }; then
2563
echo "$as_me: failed program was:" >&5
2564
sed 's/^/| /' conftest.$ac_ext >&5
2567
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2570
if test -n "$ac_declaration"; then
2571
echo '#ifdef __cplusplus' >>confdefs.h
2572
echo $ac_declaration >>confdefs.h
2573
echo '#endif' >>confdefs.h
2577
echo "$as_me: failed program was:" >&5
2578
sed 's/^/| /' conftest.$ac_ext >&5
2581
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3070
2583
ac_cpp='$CPP $CPPFLAGS'
3071
2584
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3072
2585
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3073
2586
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3075
{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3076
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
2588
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
2589
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3077
2590
if test "${lt_cv_path_SED+set}" = set; then
3078
2591
echo $ECHO_N "(cached) $ECHO_C" >&6
3128
2641
SED=$lt_cv_path_SED
3129
{ echo "$as_me:$LINENO: result: $SED" >&5
3130
echo "${ECHO_T}$SED" >&6; }
3132
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3133
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3134
if test "${ac_cv_path_GREP+set}" = set; then
3135
echo $ECHO_N "(cached) $ECHO_C" >&6
3137
# Extract the first word of "grep ggrep" to use in msg output
3138
if test -z "$GREP"; then
3139
set dummy grep ggrep; ac_prog_name=$2
3140
if test "${ac_cv_path_GREP+set}" = set; then
3141
echo $ECHO_N "(cached) $ECHO_C" >&6
3143
ac_path_GREP_found=false
3144
# Loop through the user's path and test for each of PROGNAME-LIST
3145
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3146
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3149
test -z "$as_dir" && as_dir=.
3150
for ac_prog in grep ggrep; do
3151
for ac_exec_ext in '' $ac_executable_extensions; do
3152
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3153
{ test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3154
# Check for GNU ac_path_GREP and select it if it is found.
3155
# Check for GNU $ac_path_GREP
3156
case `"$ac_path_GREP" --version 2>&1` in
3158
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3161
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3164
cat "conftest.in" "conftest.in" >"conftest.tmp"
3165
mv "conftest.tmp" "conftest.in"
3166
cp "conftest.in" "conftest.nl"
3167
echo 'GREP' >> "conftest.nl"
3168
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3169
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3170
ac_count=`expr $ac_count + 1`
3171
if test $ac_count -gt ${ac_path_GREP_max-0}; then
3172
# Best one so far, save it but keep looking for a better one
3173
ac_cv_path_GREP="$ac_path_GREP"
3174
ac_path_GREP_max=$ac_count
3176
# 10*(2^10) chars as input seems more than enough
3177
test $ac_count -gt 10 && break
3179
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3183
$ac_path_GREP_found && break 3
3193
GREP="$ac_cv_path_GREP"
3194
if test -z "$GREP"; then
3195
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3196
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3197
{ (exit 1); exit 1; }; }
3201
ac_cv_path_GREP=$GREP
3206
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3207
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3208
GREP="$ac_cv_path_GREP"
3211
{ echo "$as_me:$LINENO: checking for egrep" >&5
3212
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3213
if test "${ac_cv_path_EGREP+set}" = set; then
3214
echo $ECHO_N "(cached) $ECHO_C" >&6
3216
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3217
then ac_cv_path_EGREP="$GREP -E"
3219
# Extract the first word of "egrep" to use in msg output
3220
if test -z "$EGREP"; then
3221
set dummy egrep; ac_prog_name=$2
3222
if test "${ac_cv_path_EGREP+set}" = set; then
3223
echo $ECHO_N "(cached) $ECHO_C" >&6
3225
ac_path_EGREP_found=false
3226
# Loop through the user's path and test for each of PROGNAME-LIST
3227
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3228
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3231
test -z "$as_dir" && as_dir=.
3232
for ac_prog in egrep; do
3233
for ac_exec_ext in '' $ac_executable_extensions; do
3234
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3235
{ test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3236
# Check for GNU ac_path_EGREP and select it if it is found.
3237
# Check for GNU $ac_path_EGREP
3238
case `"$ac_path_EGREP" --version 2>&1` in
3240
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3243
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3246
cat "conftest.in" "conftest.in" >"conftest.tmp"
3247
mv "conftest.tmp" "conftest.in"
3248
cp "conftest.in" "conftest.nl"
3249
echo 'EGREP' >> "conftest.nl"
3250
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3251
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3252
ac_count=`expr $ac_count + 1`
3253
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3254
# Best one so far, save it but keep looking for a better one
3255
ac_cv_path_EGREP="$ac_path_EGREP"
3256
ac_path_EGREP_max=$ac_count
3258
# 10*(2^10) chars as input seems more than enough
3259
test $ac_count -gt 10 && break
3261
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3265
$ac_path_EGREP_found && break 3
3275
EGREP="$ac_cv_path_EGREP"
3276
if test -z "$EGREP"; then
3277
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3278
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3279
{ (exit 1); exit 1; }; }
3283
ac_cv_path_EGREP=$EGREP
3289
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3290
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3291
EGREP="$ac_cv_path_EGREP"
3295
# Check whether --with-gnu-ld was given.
2642
echo "$as_me:$LINENO: result: $SED" >&5
2643
echo "${ECHO_T}$SED" >&6
2645
echo "$as_me:$LINENO: checking for egrep" >&5
2646
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2647
if test "${ac_cv_prog_egrep+set}" = set; then
2648
echo $ECHO_N "(cached) $ECHO_C" >&6
2650
if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2651
then ac_cv_prog_egrep='grep -E'
2652
else ac_cv_prog_egrep='egrep'
2655
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2656
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2657
EGREP=$ac_cv_prog_egrep
2661
# Check whether --with-gnu-ld or --without-gnu-ld was given.
3296
2662
if test "${with_gnu_ld+set}" = set; then
3297
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
2663
withval="$with_gnu_ld"
2664
test "$withval" = no || with_gnu_ld=yes
3303
2669
if test "$GCC" = yes; then
3304
2670
# Check if gcc -print-prog-name=ld gives a path.
3305
{ echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3306
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
2671
echo "$as_me:$LINENO: checking for ld used by $CC" >&5
2672
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3309
2675
# gcc leaves a trailing carriage return which upsets mingw
4824
4013
echo "$as_me: failed program was:" >&5
4825
4014
sed 's/^/| /' conftest.$ac_ext >&5
4830
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4018
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4831
4019
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4834
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4835
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
4022
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4023
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4836
4024
GXX=`test $ac_compiler_gnu = yes && echo yes`
4837
4025
ac_test_CXXFLAGS=${CXXFLAGS+set}
4838
4026
ac_save_CXXFLAGS=$CXXFLAGS
4839
{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4840
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
4028
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4029
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4841
4030
if test "${ac_cv_prog_cxx_g+set}" = set; then
4842
4031
echo $ECHO_N "(cached) $ECHO_C" >&6
4844
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4845
ac_cxx_werror_flag=yes
4848
cat >conftest.$ac_ext <<_ACEOF
4851
cat confdefs.h >>conftest.$ac_ext
4852
cat >>conftest.$ac_ext <<_ACEOF
4853
/* end confdefs.h. */
4863
rm -f conftest.$ac_objext
4864
if { (ac_try="$ac_compile"
4866
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4867
*) ac_try_echo=$ac_try;;
4869
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4870
(eval "$ac_compile") 2>conftest.er1
4872
grep -v '^ *+' conftest.er1 >conftest.err
4874
cat conftest.err >&5
4875
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4876
(exit $ac_status); } &&
4877
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4878
{ (case "(($ac_try" in
4879
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4880
*) ac_try_echo=$ac_try;;
4882
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4883
(eval "$ac_try") 2>&5
4885
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886
(exit $ac_status); }; } &&
4887
{ ac_try='test -s conftest.$ac_objext'
4888
{ (case "(($ac_try" in
4889
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4890
*) ac_try_echo=$ac_try;;
4892
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4893
(eval "$ac_try") 2>&5
4895
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896
(exit $ac_status); }; }; then
4897
ac_cv_prog_cxx_g=yes
4899
echo "$as_me: failed program was:" >&5
4900
sed 's/^/| /' conftest.$ac_ext >&5
4903
cat >conftest.$ac_ext <<_ACEOF
4906
cat confdefs.h >>conftest.$ac_ext
4907
cat >>conftest.$ac_ext <<_ACEOF
4908
/* end confdefs.h. */
4918
rm -f conftest.$ac_objext
4919
if { (ac_try="$ac_compile"
4921
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4922
*) ac_try_echo=$ac_try;;
4924
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4925
(eval "$ac_compile") 2>conftest.er1
4927
grep -v '^ *+' conftest.er1 >conftest.err
4929
cat conftest.err >&5
4930
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4931
(exit $ac_status); } &&
4932
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4933
{ (case "(($ac_try" in
4934
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4935
*) ac_try_echo=$ac_try;;
4937
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4938
(eval "$ac_try") 2>&5
4940
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941
(exit $ac_status); }; } &&
4942
{ ac_try='test -s conftest.$ac_objext'
4943
{ (case "(($ac_try" in
4944
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4945
*) ac_try_echo=$ac_try;;
4947
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4948
(eval "$ac_try") 2>&5
4950
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4951
(exit $ac_status); }; }; then
4954
echo "$as_me: failed program was:" >&5
4955
sed 's/^/| /' conftest.$ac_ext >&5
4957
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4959
cat >conftest.$ac_ext <<_ACEOF
4962
cat confdefs.h >>conftest.$ac_ext
4963
cat >>conftest.$ac_ext <<_ACEOF
4964
/* end confdefs.h. */
4974
rm -f conftest.$ac_objext
4975
if { (ac_try="$ac_compile"
4977
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4978
*) ac_try_echo=$ac_try;;
4980
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4981
(eval "$ac_compile") 2>conftest.er1
4983
grep -v '^ *+' conftest.er1 >conftest.err
4985
cat conftest.err >&5
4986
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4987
(exit $ac_status); } &&
4988
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4989
{ (case "(($ac_try" in
4990
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4991
*) ac_try_echo=$ac_try;;
4993
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4994
(eval "$ac_try") 2>&5
4996
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4997
(exit $ac_status); }; } &&
4998
{ ac_try='test -s conftest.$ac_objext'
4999
{ (case "(($ac_try" in
5000
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5001
*) ac_try_echo=$ac_try;;
5003
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5004
(eval "$ac_try") 2>&5
5006
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5007
(exit $ac_status); }; }; then
5008
ac_cv_prog_cxx_g=yes
5010
echo "$as_me: failed program was:" >&5
5011
sed 's/^/| /' conftest.$ac_ext >&5
5016
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5019
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5022
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5023
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5025
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5026
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4033
cat >conftest.$ac_ext <<_ACEOF
4036
cat confdefs.h >>conftest.$ac_ext
4037
cat >>conftest.$ac_ext <<_ACEOF
4038
/* end confdefs.h. */
4048
rm -f conftest.$ac_objext
4049
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4050
(eval $ac_compile) 2>conftest.er1
4052
grep -v '^ *+' conftest.er1 >conftest.err
4054
cat conftest.err >&5
4055
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4056
(exit $ac_status); } &&
4057
{ ac_try='test -z "$ac_cxx_werror_flag"
4058
|| test ! -s conftest.err'
4059
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4062
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4063
(exit $ac_status); }; } &&
4064
{ ac_try='test -s conftest.$ac_objext'
4065
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4068
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4069
(exit $ac_status); }; }; then
4070
ac_cv_prog_cxx_g=yes
4072
echo "$as_me: failed program was:" >&5
4073
sed 's/^/| /' conftest.$ac_ext >&5
4077
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4079
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4080
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5027
4081
if test "$ac_test_CXXFLAGS" = set; then
5028
4082
CXXFLAGS=$ac_save_CXXFLAGS
5029
4083
elif test $ac_cv_prog_cxx_g = yes; then
12722
11363
enable_fast_install=needless
11368
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11369
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11370
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11371
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11372
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11373
echo "$as_me:$LINENO: result: yes" >&5
11374
echo "${ECHO_T}yes" >&6
11376
# FIXME - insert some real tests, host_os isn't really good enough
11379
if test -n "$STRIP" ; then
11380
striplib="$STRIP -x"
11381
echo "$as_me:$LINENO: result: yes" >&5
11382
echo "${ECHO_T}yes" >&6
11384
echo "$as_me:$LINENO: result: no" >&5
11385
echo "${ECHO_T}no" >&6
11389
echo "$as_me:$LINENO: result: no" >&5
11390
echo "${ECHO_T}no" >&6
11395
if test "x$enable_dlopen" != xyes; then
11396
enable_dlopen=unknown
11397
enable_dlopen_self=unknown
11398
enable_dlopen_self_static=unknown
11405
lt_cv_dlopen="load_add_on"
11407
lt_cv_dlopen_self=yes
11411
lt_cv_dlopen="LoadLibrary"
11416
lt_cv_dlopen="dlopen"
11421
# if libdl is installed we need to link against it
11422
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11423
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11424
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11425
echo $ECHO_N "(cached) $ECHO_C" >&6
11427
ac_check_lib_save_LIBS=$LIBS
11429
cat >conftest.$ac_ext <<_ACEOF
11432
cat confdefs.h >>conftest.$ac_ext
11433
cat >>conftest.$ac_ext <<_ACEOF
11434
/* end confdefs.h. */
11436
/* Override any gcc2 internal prototype to avoid an error. */
11440
/* We use char because int might match the return type of a gcc2
11441
builtin and then its argument prototype would still apply. */
11451
rm -f conftest.$ac_objext conftest$ac_exeext
11452
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11453
(eval $ac_link) 2>conftest.er1
11455
grep -v '^ *+' conftest.er1 >conftest.err
11457
cat conftest.err >&5
11458
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11459
(exit $ac_status); } &&
11460
{ ac_try='test -z "$ac_cxx_werror_flag"
11461
|| test ! -s conftest.err'
11462
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11463
(eval $ac_try) 2>&5
11465
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11466
(exit $ac_status); }; } &&
11467
{ ac_try='test -s conftest$ac_exeext'
11468
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11469
(eval $ac_try) 2>&5
11471
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11472
(exit $ac_status); }; }; then
11473
ac_cv_lib_dl_dlopen=yes
11475
echo "$as_me: failed program was:" >&5
11476
sed 's/^/| /' conftest.$ac_ext >&5
11478
ac_cv_lib_dl_dlopen=no
11480
rm -f conftest.err conftest.$ac_objext \
11481
conftest$ac_exeext conftest.$ac_ext
11482
LIBS=$ac_check_lib_save_LIBS
11484
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11485
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11486
if test $ac_cv_lib_dl_dlopen = yes; then
11487
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11490
lt_cv_dlopen="dyld"
11492
lt_cv_dlopen_self=yes
11499
echo "$as_me:$LINENO: checking for shl_load" >&5
11500
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11501
if test "${ac_cv_func_shl_load+set}" = set; then
11502
echo $ECHO_N "(cached) $ECHO_C" >&6
11504
cat >conftest.$ac_ext <<_ACEOF
11507
cat confdefs.h >>conftest.$ac_ext
11508
cat >>conftest.$ac_ext <<_ACEOF
11509
/* end confdefs.h. */
11510
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11511
For example, HP-UX 11i <limits.h> declares gettimeofday. */
11512
#define shl_load innocuous_shl_load
11514
/* System header to define __stub macros and hopefully few prototypes,
11515
which can conflict with char shl_load (); below.
11516
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11517
<limits.h> exists even on freestanding compilers. */
11520
# include <limits.h>
11522
# include <assert.h>
11527
/* Override any gcc2 internal prototype to avoid an error. */
11532
/* We use char because int might match the return type of a gcc2
11533
builtin and then its argument prototype would still apply. */
11535
/* The GNU C library defines this for functions which it implements
11536
to always fail with ENOSYS. Some functions are actually named
11537
something starting with __ and the normal name is an alias. */
11538
#if defined (__stub_shl_load) || defined (__stub___shl_load)
11541
char (*f) () = shl_load;
11550
return f != shl_load;
11555
rm -f conftest.$ac_objext conftest$ac_exeext
11556
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11557
(eval $ac_link) 2>conftest.er1
11559
grep -v '^ *+' conftest.er1 >conftest.err
11561
cat conftest.err >&5
11562
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11563
(exit $ac_status); } &&
11564
{ ac_try='test -z "$ac_cxx_werror_flag"
11565
|| test ! -s conftest.err'
11566
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11567
(eval $ac_try) 2>&5
11569
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11570
(exit $ac_status); }; } &&
11571
{ ac_try='test -s conftest$ac_exeext'
11572
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11573
(eval $ac_try) 2>&5
11575
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11576
(exit $ac_status); }; }; then
11577
ac_cv_func_shl_load=yes
11579
echo "$as_me: failed program was:" >&5
11580
sed 's/^/| /' conftest.$ac_ext >&5
11582
ac_cv_func_shl_load=no
11584
rm -f conftest.err conftest.$ac_objext \
11585
conftest$ac_exeext conftest.$ac_ext
11587
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11588
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11589
if test $ac_cv_func_shl_load = yes; then
11590
lt_cv_dlopen="shl_load"
11592
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11593
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11594
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11595
echo $ECHO_N "(cached) $ECHO_C" >&6
11597
ac_check_lib_save_LIBS=$LIBS
11599
cat >conftest.$ac_ext <<_ACEOF
11602
cat confdefs.h >>conftest.$ac_ext
11603
cat >>conftest.$ac_ext <<_ACEOF
11604
/* end confdefs.h. */
11606
/* Override any gcc2 internal prototype to avoid an error. */
11610
/* We use char because int might match the return type of a gcc2
11611
builtin and then its argument prototype would still apply. */
11621
rm -f conftest.$ac_objext conftest$ac_exeext
11622
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11623
(eval $ac_link) 2>conftest.er1
11625
grep -v '^ *+' conftest.er1 >conftest.err
11627
cat conftest.err >&5
11628
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11629
(exit $ac_status); } &&
11630
{ ac_try='test -z "$ac_cxx_werror_flag"
11631
|| test ! -s conftest.err'
11632
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11633
(eval $ac_try) 2>&5
11635
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11636
(exit $ac_status); }; } &&
11637
{ ac_try='test -s conftest$ac_exeext'
11638
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11639
(eval $ac_try) 2>&5
11641
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11642
(exit $ac_status); }; }; then
11643
ac_cv_lib_dld_shl_load=yes
11645
echo "$as_me: failed program was:" >&5
11646
sed 's/^/| /' conftest.$ac_ext >&5
11648
ac_cv_lib_dld_shl_load=no
11650
rm -f conftest.err conftest.$ac_objext \
11651
conftest$ac_exeext conftest.$ac_ext
11652
LIBS=$ac_check_lib_save_LIBS
11654
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11655
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11656
if test $ac_cv_lib_dld_shl_load = yes; then
11657
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11659
echo "$as_me:$LINENO: checking for dlopen" >&5
11660
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11661
if test "${ac_cv_func_dlopen+set}" = set; then
11662
echo $ECHO_N "(cached) $ECHO_C" >&6
11664
cat >conftest.$ac_ext <<_ACEOF
11667
cat confdefs.h >>conftest.$ac_ext
11668
cat >>conftest.$ac_ext <<_ACEOF
11669
/* end confdefs.h. */
11670
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11671
For example, HP-UX 11i <limits.h> declares gettimeofday. */
11672
#define dlopen innocuous_dlopen
11674
/* System header to define __stub macros and hopefully few prototypes,
11675
which can conflict with char dlopen (); below.
11676
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11677
<limits.h> exists even on freestanding compilers. */
11680
# include <limits.h>
11682
# include <assert.h>
11687
/* Override any gcc2 internal prototype to avoid an error. */
11692
/* We use char because int might match the return type of a gcc2
11693
builtin and then its argument prototype would still apply. */
11695
/* The GNU C library defines this for functions which it implements
11696
to always fail with ENOSYS. Some functions are actually named
11697
something starting with __ and the normal name is an alias. */
11698
#if defined (__stub_dlopen) || defined (__stub___dlopen)
11701
char (*f) () = dlopen;
11710
return f != dlopen;
11715
rm -f conftest.$ac_objext conftest$ac_exeext
11716
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11717
(eval $ac_link) 2>conftest.er1
11719
grep -v '^ *+' conftest.er1 >conftest.err
11721
cat conftest.err >&5
11722
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11723
(exit $ac_status); } &&
11724
{ ac_try='test -z "$ac_cxx_werror_flag"
11725
|| test ! -s conftest.err'
11726
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11727
(eval $ac_try) 2>&5
11729
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11730
(exit $ac_status); }; } &&
11731
{ ac_try='test -s conftest$ac_exeext'
11732
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11733
(eval $ac_try) 2>&5
11735
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11736
(exit $ac_status); }; }; then
11737
ac_cv_func_dlopen=yes
11739
echo "$as_me: failed program was:" >&5
11740
sed 's/^/| /' conftest.$ac_ext >&5
11742
ac_cv_func_dlopen=no
11744
rm -f conftest.err conftest.$ac_objext \
11745
conftest$ac_exeext conftest.$ac_ext
11747
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11748
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11749
if test $ac_cv_func_dlopen = yes; then
11750
lt_cv_dlopen="dlopen"
11752
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11753
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11754
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11755
echo $ECHO_N "(cached) $ECHO_C" >&6
11757
ac_check_lib_save_LIBS=$LIBS
11759
cat >conftest.$ac_ext <<_ACEOF
11762
cat confdefs.h >>conftest.$ac_ext
11763
cat >>conftest.$ac_ext <<_ACEOF
11764
/* end confdefs.h. */
11766
/* Override any gcc2 internal prototype to avoid an error. */
11770
/* We use char because int might match the return type of a gcc2
11771
builtin and then its argument prototype would still apply. */
11781
rm -f conftest.$ac_objext conftest$ac_exeext
11782
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11783
(eval $ac_link) 2>conftest.er1
11785
grep -v '^ *+' conftest.er1 >conftest.err
11787
cat conftest.err >&5
11788
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11789
(exit $ac_status); } &&
11790
{ ac_try='test -z "$ac_cxx_werror_flag"
11791
|| test ! -s conftest.err'
11792
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11793
(eval $ac_try) 2>&5
11795
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11796
(exit $ac_status); }; } &&
11797
{ ac_try='test -s conftest$ac_exeext'
11798
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11799
(eval $ac_try) 2>&5
11801
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11802
(exit $ac_status); }; }; then
11803
ac_cv_lib_dl_dlopen=yes
11805
echo "$as_me: failed program was:" >&5
11806
sed 's/^/| /' conftest.$ac_ext >&5
11808
ac_cv_lib_dl_dlopen=no
11810
rm -f conftest.err conftest.$ac_objext \
11811
conftest$ac_exeext conftest.$ac_ext
11812
LIBS=$ac_check_lib_save_LIBS
11814
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11815
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11816
if test $ac_cv_lib_dl_dlopen = yes; then
11817
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11819
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11820
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11821
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11822
echo $ECHO_N "(cached) $ECHO_C" >&6
11824
ac_check_lib_save_LIBS=$LIBS
11825
LIBS="-lsvld $LIBS"
11826
cat >conftest.$ac_ext <<_ACEOF
11829
cat confdefs.h >>conftest.$ac_ext
11830
cat >>conftest.$ac_ext <<_ACEOF
11831
/* end confdefs.h. */
11833
/* Override any gcc2 internal prototype to avoid an error. */
11837
/* We use char because int might match the return type of a gcc2
11838
builtin and then its argument prototype would still apply. */
11848
rm -f conftest.$ac_objext conftest$ac_exeext
11849
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11850
(eval $ac_link) 2>conftest.er1
11852
grep -v '^ *+' conftest.er1 >conftest.err
11854
cat conftest.err >&5
11855
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11856
(exit $ac_status); } &&
11857
{ ac_try='test -z "$ac_cxx_werror_flag"
11858
|| test ! -s conftest.err'
11859
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11860
(eval $ac_try) 2>&5
11862
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11863
(exit $ac_status); }; } &&
11864
{ ac_try='test -s conftest$ac_exeext'
11865
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11866
(eval $ac_try) 2>&5
11868
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11869
(exit $ac_status); }; }; then
11870
ac_cv_lib_svld_dlopen=yes
11872
echo "$as_me: failed program was:" >&5
11873
sed 's/^/| /' conftest.$ac_ext >&5
11875
ac_cv_lib_svld_dlopen=no
11877
rm -f conftest.err conftest.$ac_objext \
11878
conftest$ac_exeext conftest.$ac_ext
11879
LIBS=$ac_check_lib_save_LIBS
11881
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11882
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11883
if test $ac_cv_lib_svld_dlopen = yes; then
11884
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11886
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11887
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11888
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11889
echo $ECHO_N "(cached) $ECHO_C" >&6
11891
ac_check_lib_save_LIBS=$LIBS
11893
cat >conftest.$ac_ext <<_ACEOF
11896
cat confdefs.h >>conftest.$ac_ext
11897
cat >>conftest.$ac_ext <<_ACEOF
11898
/* end confdefs.h. */
11900
/* Override any gcc2 internal prototype to avoid an error. */
11904
/* We use char because int might match the return type of a gcc2
11905
builtin and then its argument prototype would still apply. */
11915
rm -f conftest.$ac_objext conftest$ac_exeext
11916
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11917
(eval $ac_link) 2>conftest.er1
11919
grep -v '^ *+' conftest.er1 >conftest.err
11921
cat conftest.err >&5
11922
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11923
(exit $ac_status); } &&
11924
{ ac_try='test -z "$ac_cxx_werror_flag"
11925
|| test ! -s conftest.err'
11926
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11927
(eval $ac_try) 2>&5
11929
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11930
(exit $ac_status); }; } &&
11931
{ ac_try='test -s conftest$ac_exeext'
11932
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11933
(eval $ac_try) 2>&5
11935
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11936
(exit $ac_status); }; }; then
11937
ac_cv_lib_dld_dld_link=yes
11939
echo "$as_me: failed program was:" >&5
11940
sed 's/^/| /' conftest.$ac_ext >&5
11942
ac_cv_lib_dld_dld_link=no
11944
rm -f conftest.err conftest.$ac_objext \
11945
conftest$ac_exeext conftest.$ac_ext
11946
LIBS=$ac_check_lib_save_LIBS
11948
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11949
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11950
if test $ac_cv_lib_dld_dld_link = yes; then
11951
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11972
if test "x$lt_cv_dlopen" != xno; then
11978
case $lt_cv_dlopen in
11980
save_CPPFLAGS="$CPPFLAGS"
11981
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11983
save_LDFLAGS="$LDFLAGS"
11984
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11987
LIBS="$lt_cv_dlopen_libs $LIBS"
11989
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11990
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11991
if test "${lt_cv_dlopen_self+set}" = set; then
11992
echo $ECHO_N "(cached) $ECHO_C" >&6
11994
if test "$cross_compiling" = yes; then :
11995
lt_cv_dlopen_self=cross
11997
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11998
lt_status=$lt_dlunknown
11999
cat > conftest.$ac_ext <<EOF
12000
#line 12000 "configure"
12001
#include "confdefs.h"
12010
# define LT_DLGLOBAL RTLD_GLOBAL
12013
# define LT_DLGLOBAL DL_GLOBAL
12015
# define LT_DLGLOBAL 0
12019
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12020
find out it does not work in some platform. */
12021
#ifndef LT_DLLAZY_OR_NOW
12023
# define LT_DLLAZY_OR_NOW RTLD_LAZY
12026
# define LT_DLLAZY_OR_NOW DL_LAZY
12029
# define LT_DLLAZY_OR_NOW RTLD_NOW
12032
# define LT_DLLAZY_OR_NOW DL_NOW
12034
# define LT_DLLAZY_OR_NOW 0
12042
extern "C" void exit (int);
12045
void fnord() { int i=42;}
12048
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12049
int status = $lt_dlunknown;
12053
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12054
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12055
/* dlclose (self); */
12061
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12062
(eval $ac_link) 2>&5
12064
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12065
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12066
(./conftest; exit; ) >&5 2>/dev/null
12068
case x$lt_status in
12069
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12070
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12071
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12074
# compilation failed
12075
lt_cv_dlopen_self=no
12082
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12083
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12085
if test "x$lt_cv_dlopen_self" = xyes; then
12086
LDFLAGS="$LDFLAGS $link_static_flag"
12087
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12088
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12089
if test "${lt_cv_dlopen_self_static+set}" = set; then
12090
echo $ECHO_N "(cached) $ECHO_C" >&6
12092
if test "$cross_compiling" = yes; then :
12093
lt_cv_dlopen_self_static=cross
12095
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12096
lt_status=$lt_dlunknown
12097
cat > conftest.$ac_ext <<EOF
12098
#line 12098 "configure"
12099
#include "confdefs.h"
12108
# define LT_DLGLOBAL RTLD_GLOBAL
12111
# define LT_DLGLOBAL DL_GLOBAL
12113
# define LT_DLGLOBAL 0
12117
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12118
find out it does not work in some platform. */
12119
#ifndef LT_DLLAZY_OR_NOW
12121
# define LT_DLLAZY_OR_NOW RTLD_LAZY
12124
# define LT_DLLAZY_OR_NOW DL_LAZY
12127
# define LT_DLLAZY_OR_NOW RTLD_NOW
12130
# define LT_DLLAZY_OR_NOW DL_NOW
12132
# define LT_DLLAZY_OR_NOW 0
12140
extern "C" void exit (int);
12143
void fnord() { int i=42;}
12146
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12147
int status = $lt_dlunknown;
12151
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12152
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12153
/* dlclose (self); */
12159
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12160
(eval $ac_link) 2>&5
12162
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12163
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12164
(./conftest; exit; ) >&5 2>/dev/null
12166
case x$lt_status in
12167
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12168
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12169
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12172
# compilation failed
12173
lt_cv_dlopen_self_static=no
12180
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12181
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12184
CPPFLAGS="$save_CPPFLAGS"
12185
LDFLAGS="$save_LDFLAGS"
12190
case $lt_cv_dlopen_self in
12191
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12192
*) enable_dlopen_self=unknown ;;
12195
case $lt_cv_dlopen_self_static in
12196
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12197
*) enable_dlopen_self_static=unknown ;;
12726
12202
# The else clause should only fire when bootstrapping the
12727
12203
# libtool distribution, otherwise you forgot to ship ltmain.sh
17937
17110
enable_fast_install=needless
17115
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17116
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17117
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17118
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17119
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17120
echo "$as_me:$LINENO: result: yes" >&5
17121
echo "${ECHO_T}yes" >&6
17123
# FIXME - insert some real tests, host_os isn't really good enough
17126
if test -n "$STRIP" ; then
17127
striplib="$STRIP -x"
17128
echo "$as_me:$LINENO: result: yes" >&5
17129
echo "${ECHO_T}yes" >&6
17131
echo "$as_me:$LINENO: result: no" >&5
17132
echo "${ECHO_T}no" >&6
17136
echo "$as_me:$LINENO: result: no" >&5
17137
echo "${ECHO_T}no" >&6
17142
if test "x$enable_dlopen" != xyes; then
17143
enable_dlopen=unknown
17144
enable_dlopen_self=unknown
17145
enable_dlopen_self_static=unknown
17152
lt_cv_dlopen="load_add_on"
17154
lt_cv_dlopen_self=yes
17158
lt_cv_dlopen="LoadLibrary"
17163
lt_cv_dlopen="dlopen"
17168
# if libdl is installed we need to link against it
17169
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17170
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17171
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17172
echo $ECHO_N "(cached) $ECHO_C" >&6
17174
ac_check_lib_save_LIBS=$LIBS
17176
cat >conftest.$ac_ext <<_ACEOF
17179
cat confdefs.h >>conftest.$ac_ext
17180
cat >>conftest.$ac_ext <<_ACEOF
17181
/* end confdefs.h. */
17183
/* Override any gcc2 internal prototype to avoid an error. */
17187
/* We use char because int might match the return type of a gcc2
17188
builtin and then its argument prototype would still apply. */
17198
rm -f conftest.$ac_objext conftest$ac_exeext
17199
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17200
(eval $ac_link) 2>conftest.er1
17202
grep -v '^ *+' conftest.er1 >conftest.err
17204
cat conftest.err >&5
17205
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17206
(exit $ac_status); } &&
17207
{ ac_try='test -z "$ac_c_werror_flag"
17208
|| test ! -s conftest.err'
17209
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17210
(eval $ac_try) 2>&5
17212
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17213
(exit $ac_status); }; } &&
17214
{ ac_try='test -s conftest$ac_exeext'
17215
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17216
(eval $ac_try) 2>&5
17218
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17219
(exit $ac_status); }; }; then
17220
ac_cv_lib_dl_dlopen=yes
17222
echo "$as_me: failed program was:" >&5
17223
sed 's/^/| /' conftest.$ac_ext >&5
17225
ac_cv_lib_dl_dlopen=no
17227
rm -f conftest.err conftest.$ac_objext \
17228
conftest$ac_exeext conftest.$ac_ext
17229
LIBS=$ac_check_lib_save_LIBS
17231
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17232
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17233
if test $ac_cv_lib_dl_dlopen = yes; then
17234
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17237
lt_cv_dlopen="dyld"
17239
lt_cv_dlopen_self=yes
17246
echo "$as_me:$LINENO: checking for shl_load" >&5
17247
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17248
if test "${ac_cv_func_shl_load+set}" = set; then
17249
echo $ECHO_N "(cached) $ECHO_C" >&6
17251
cat >conftest.$ac_ext <<_ACEOF
17254
cat confdefs.h >>conftest.$ac_ext
17255
cat >>conftest.$ac_ext <<_ACEOF
17256
/* end confdefs.h. */
17257
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17258
For example, HP-UX 11i <limits.h> declares gettimeofday. */
17259
#define shl_load innocuous_shl_load
17261
/* System header to define __stub macros and hopefully few prototypes,
17262
which can conflict with char shl_load (); below.
17263
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17264
<limits.h> exists even on freestanding compilers. */
17267
# include <limits.h>
17269
# include <assert.h>
17274
/* Override any gcc2 internal prototype to avoid an error. */
17279
/* We use char because int might match the return type of a gcc2
17280
builtin and then its argument prototype would still apply. */
17282
/* The GNU C library defines this for functions which it implements
17283
to always fail with ENOSYS. Some functions are actually named
17284
something starting with __ and the normal name is an alias. */
17285
#if defined (__stub_shl_load) || defined (__stub___shl_load)
17288
char (*f) () = shl_load;
17297
return f != shl_load;
17302
rm -f conftest.$ac_objext conftest$ac_exeext
17303
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17304
(eval $ac_link) 2>conftest.er1
17306
grep -v '^ *+' conftest.er1 >conftest.err
17308
cat conftest.err >&5
17309
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17310
(exit $ac_status); } &&
17311
{ ac_try='test -z "$ac_c_werror_flag"
17312
|| test ! -s conftest.err'
17313
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17314
(eval $ac_try) 2>&5
17316
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17317
(exit $ac_status); }; } &&
17318
{ ac_try='test -s conftest$ac_exeext'
17319
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17320
(eval $ac_try) 2>&5
17322
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17323
(exit $ac_status); }; }; then
17324
ac_cv_func_shl_load=yes
17326
echo "$as_me: failed program was:" >&5
17327
sed 's/^/| /' conftest.$ac_ext >&5
17329
ac_cv_func_shl_load=no
17331
rm -f conftest.err conftest.$ac_objext \
17332
conftest$ac_exeext conftest.$ac_ext
17334
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17335
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17336
if test $ac_cv_func_shl_load = yes; then
17337
lt_cv_dlopen="shl_load"
17339
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17340
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17341
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17342
echo $ECHO_N "(cached) $ECHO_C" >&6
17344
ac_check_lib_save_LIBS=$LIBS
17346
cat >conftest.$ac_ext <<_ACEOF
17349
cat confdefs.h >>conftest.$ac_ext
17350
cat >>conftest.$ac_ext <<_ACEOF
17351
/* end confdefs.h. */
17353
/* Override any gcc2 internal prototype to avoid an error. */
17357
/* We use char because int might match the return type of a gcc2
17358
builtin and then its argument prototype would still apply. */
17368
rm -f conftest.$ac_objext conftest$ac_exeext
17369
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17370
(eval $ac_link) 2>conftest.er1
17372
grep -v '^ *+' conftest.er1 >conftest.err
17374
cat conftest.err >&5
17375
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17376
(exit $ac_status); } &&
17377
{ ac_try='test -z "$ac_c_werror_flag"
17378
|| test ! -s conftest.err'
17379
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17380
(eval $ac_try) 2>&5
17382
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17383
(exit $ac_status); }; } &&
17384
{ ac_try='test -s conftest$ac_exeext'
17385
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17386
(eval $ac_try) 2>&5
17388
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17389
(exit $ac_status); }; }; then
17390
ac_cv_lib_dld_shl_load=yes
17392
echo "$as_me: failed program was:" >&5
17393
sed 's/^/| /' conftest.$ac_ext >&5
17395
ac_cv_lib_dld_shl_load=no
17397
rm -f conftest.err conftest.$ac_objext \
17398
conftest$ac_exeext conftest.$ac_ext
17399
LIBS=$ac_check_lib_save_LIBS
17401
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17402
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17403
if test $ac_cv_lib_dld_shl_load = yes; then
17404
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17406
echo "$as_me:$LINENO: checking for dlopen" >&5
17407
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17408
if test "${ac_cv_func_dlopen+set}" = set; then
17409
echo $ECHO_N "(cached) $ECHO_C" >&6
17411
cat >conftest.$ac_ext <<_ACEOF
17414
cat confdefs.h >>conftest.$ac_ext
17415
cat >>conftest.$ac_ext <<_ACEOF
17416
/* end confdefs.h. */
17417
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17418
For example, HP-UX 11i <limits.h> declares gettimeofday. */
17419
#define dlopen innocuous_dlopen
17421
/* System header to define __stub macros and hopefully few prototypes,
17422
which can conflict with char dlopen (); below.
17423
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17424
<limits.h> exists even on freestanding compilers. */
17427
# include <limits.h>
17429
# include <assert.h>
17434
/* Override any gcc2 internal prototype to avoid an error. */
17439
/* We use char because int might match the return type of a gcc2
17440
builtin and then its argument prototype would still apply. */
17442
/* The GNU C library defines this for functions which it implements
17443
to always fail with ENOSYS. Some functions are actually named
17444
something starting with __ and the normal name is an alias. */
17445
#if defined (__stub_dlopen) || defined (__stub___dlopen)
17448
char (*f) () = dlopen;
17457
return f != dlopen;
17462
rm -f conftest.$ac_objext conftest$ac_exeext
17463
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17464
(eval $ac_link) 2>conftest.er1
17466
grep -v '^ *+' conftest.er1 >conftest.err
17468
cat conftest.err >&5
17469
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17470
(exit $ac_status); } &&
17471
{ ac_try='test -z "$ac_c_werror_flag"
17472
|| test ! -s conftest.err'
17473
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17474
(eval $ac_try) 2>&5
17476
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17477
(exit $ac_status); }; } &&
17478
{ ac_try='test -s conftest$ac_exeext'
17479
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17480
(eval $ac_try) 2>&5
17482
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17483
(exit $ac_status); }; }; then
17484
ac_cv_func_dlopen=yes
17486
echo "$as_me: failed program was:" >&5
17487
sed 's/^/| /' conftest.$ac_ext >&5
17489
ac_cv_func_dlopen=no
17491
rm -f conftest.err conftest.$ac_objext \
17492
conftest$ac_exeext conftest.$ac_ext
17494
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17495
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17496
if test $ac_cv_func_dlopen = yes; then
17497
lt_cv_dlopen="dlopen"
17499
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17500
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17501
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17502
echo $ECHO_N "(cached) $ECHO_C" >&6
17504
ac_check_lib_save_LIBS=$LIBS
17506
cat >conftest.$ac_ext <<_ACEOF
17509
cat confdefs.h >>conftest.$ac_ext
17510
cat >>conftest.$ac_ext <<_ACEOF
17511
/* end confdefs.h. */
17513
/* Override any gcc2 internal prototype to avoid an error. */
17517
/* We use char because int might match the return type of a gcc2
17518
builtin and then its argument prototype would still apply. */
17528
rm -f conftest.$ac_objext conftest$ac_exeext
17529
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17530
(eval $ac_link) 2>conftest.er1
17532
grep -v '^ *+' conftest.er1 >conftest.err
17534
cat conftest.err >&5
17535
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17536
(exit $ac_status); } &&
17537
{ ac_try='test -z "$ac_c_werror_flag"
17538
|| test ! -s conftest.err'
17539
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17540
(eval $ac_try) 2>&5
17542
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17543
(exit $ac_status); }; } &&
17544
{ ac_try='test -s conftest$ac_exeext'
17545
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17546
(eval $ac_try) 2>&5
17548
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17549
(exit $ac_status); }; }; then
17550
ac_cv_lib_dl_dlopen=yes
17552
echo "$as_me: failed program was:" >&5
17553
sed 's/^/| /' conftest.$ac_ext >&5
17555
ac_cv_lib_dl_dlopen=no
17557
rm -f conftest.err conftest.$ac_objext \
17558
conftest$ac_exeext conftest.$ac_ext
17559
LIBS=$ac_check_lib_save_LIBS
17561
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17562
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17563
if test $ac_cv_lib_dl_dlopen = yes; then
17564
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17566
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17567
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17568
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17569
echo $ECHO_N "(cached) $ECHO_C" >&6
17571
ac_check_lib_save_LIBS=$LIBS
17572
LIBS="-lsvld $LIBS"
17573
cat >conftest.$ac_ext <<_ACEOF
17576
cat confdefs.h >>conftest.$ac_ext
17577
cat >>conftest.$ac_ext <<_ACEOF
17578
/* end confdefs.h. */
17580
/* Override any gcc2 internal prototype to avoid an error. */
17584
/* We use char because int might match the return type of a gcc2
17585
builtin and then its argument prototype would still apply. */
17595
rm -f conftest.$ac_objext conftest$ac_exeext
17596
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17597
(eval $ac_link) 2>conftest.er1
17599
grep -v '^ *+' conftest.er1 >conftest.err
17601
cat conftest.err >&5
17602
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17603
(exit $ac_status); } &&
17604
{ ac_try='test -z "$ac_c_werror_flag"
17605
|| test ! -s conftest.err'
17606
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17607
(eval $ac_try) 2>&5
17609
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17610
(exit $ac_status); }; } &&
17611
{ ac_try='test -s conftest$ac_exeext'
17612
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17613
(eval $ac_try) 2>&5
17615
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17616
(exit $ac_status); }; }; then
17617
ac_cv_lib_svld_dlopen=yes
17619
echo "$as_me: failed program was:" >&5
17620
sed 's/^/| /' conftest.$ac_ext >&5
17622
ac_cv_lib_svld_dlopen=no
17624
rm -f conftest.err conftest.$ac_objext \
17625
conftest$ac_exeext conftest.$ac_ext
17626
LIBS=$ac_check_lib_save_LIBS
17628
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17629
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17630
if test $ac_cv_lib_svld_dlopen = yes; then
17631
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17633
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17634
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17635
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17636
echo $ECHO_N "(cached) $ECHO_C" >&6
17638
ac_check_lib_save_LIBS=$LIBS
17640
cat >conftest.$ac_ext <<_ACEOF
17643
cat confdefs.h >>conftest.$ac_ext
17644
cat >>conftest.$ac_ext <<_ACEOF
17645
/* end confdefs.h. */
17647
/* Override any gcc2 internal prototype to avoid an error. */
17651
/* We use char because int might match the return type of a gcc2
17652
builtin and then its argument prototype would still apply. */
17662
rm -f conftest.$ac_objext conftest$ac_exeext
17663
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17664
(eval $ac_link) 2>conftest.er1
17666
grep -v '^ *+' conftest.er1 >conftest.err
17668
cat conftest.err >&5
17669
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17670
(exit $ac_status); } &&
17671
{ ac_try='test -z "$ac_c_werror_flag"
17672
|| test ! -s conftest.err'
17673
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17674
(eval $ac_try) 2>&5
17676
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17677
(exit $ac_status); }; } &&
17678
{ ac_try='test -s conftest$ac_exeext'
17679
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17680
(eval $ac_try) 2>&5
17682
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17683
(exit $ac_status); }; }; then
17684
ac_cv_lib_dld_dld_link=yes
17686
echo "$as_me: failed program was:" >&5
17687
sed 's/^/| /' conftest.$ac_ext >&5
17689
ac_cv_lib_dld_dld_link=no
17691
rm -f conftest.err conftest.$ac_objext \
17692
conftest$ac_exeext conftest.$ac_ext
17693
LIBS=$ac_check_lib_save_LIBS
17695
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17696
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17697
if test $ac_cv_lib_dld_dld_link = yes; then
17698
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17719
if test "x$lt_cv_dlopen" != xno; then
17725
case $lt_cv_dlopen in
17727
save_CPPFLAGS="$CPPFLAGS"
17728
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17730
save_LDFLAGS="$LDFLAGS"
17731
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17734
LIBS="$lt_cv_dlopen_libs $LIBS"
17736
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17737
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17738
if test "${lt_cv_dlopen_self+set}" = set; then
17739
echo $ECHO_N "(cached) $ECHO_C" >&6
17741
if test "$cross_compiling" = yes; then :
17742
lt_cv_dlopen_self=cross
17744
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17745
lt_status=$lt_dlunknown
17746
cat > conftest.$ac_ext <<EOF
17747
#line 17747 "configure"
17748
#include "confdefs.h"
17757
# define LT_DLGLOBAL RTLD_GLOBAL
17760
# define LT_DLGLOBAL DL_GLOBAL
17762
# define LT_DLGLOBAL 0
17766
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17767
find out it does not work in some platform. */
17768
#ifndef LT_DLLAZY_OR_NOW
17770
# define LT_DLLAZY_OR_NOW RTLD_LAZY
17773
# define LT_DLLAZY_OR_NOW DL_LAZY
17776
# define LT_DLLAZY_OR_NOW RTLD_NOW
17779
# define LT_DLLAZY_OR_NOW DL_NOW
17781
# define LT_DLLAZY_OR_NOW 0
17789
extern "C" void exit (int);
17792
void fnord() { int i=42;}
17795
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17796
int status = $lt_dlunknown;
17800
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17801
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17802
/* dlclose (self); */
17808
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17809
(eval $ac_link) 2>&5
17811
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17812
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17813
(./conftest; exit; ) >&5 2>/dev/null
17815
case x$lt_status in
17816
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17817
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17818
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17821
# compilation failed
17822
lt_cv_dlopen_self=no
17829
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17830
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17832
if test "x$lt_cv_dlopen_self" = xyes; then
17833
LDFLAGS="$LDFLAGS $link_static_flag"
17834
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17835
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17836
if test "${lt_cv_dlopen_self_static+set}" = set; then
17837
echo $ECHO_N "(cached) $ECHO_C" >&6
17839
if test "$cross_compiling" = yes; then :
17840
lt_cv_dlopen_self_static=cross
17842
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17843
lt_status=$lt_dlunknown
17844
cat > conftest.$ac_ext <<EOF
17845
#line 17845 "configure"
17846
#include "confdefs.h"
17855
# define LT_DLGLOBAL RTLD_GLOBAL
17858
# define LT_DLGLOBAL DL_GLOBAL
17860
# define LT_DLGLOBAL 0
17864
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17865
find out it does not work in some platform. */
17866
#ifndef LT_DLLAZY_OR_NOW
17868
# define LT_DLLAZY_OR_NOW RTLD_LAZY
17871
# define LT_DLLAZY_OR_NOW DL_LAZY
17874
# define LT_DLLAZY_OR_NOW RTLD_NOW
17877
# define LT_DLLAZY_OR_NOW DL_NOW
17879
# define LT_DLLAZY_OR_NOW 0
17887
extern "C" void exit (int);
17890
void fnord() { int i=42;}
17893
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17894
int status = $lt_dlunknown;
17898
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17899
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17900
/* dlclose (self); */
17906
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17907
(eval $ac_link) 2>&5
17909
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17910
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17911
(./conftest; exit; ) >&5 2>/dev/null
17913
case x$lt_status in
17914
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17915
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17916
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17919
# compilation failed
17920
lt_cv_dlopen_self_static=no
17927
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17928
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17931
CPPFLAGS="$save_CPPFLAGS"
17932
LDFLAGS="$save_LDFLAGS"
17937
case $lt_cv_dlopen_self in
17938
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17939
*) enable_dlopen_self=unknown ;;
17942
case $lt_cv_dlopen_self_static in
17943
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17944
*) enable_dlopen_self_static=unknown ;;
17941
17949
# The else clause should only fire when bootstrapping the
17942
17950
# libtool distribution, otherwise you forgot to ship ltmain.sh
19669
19597
echo "$as_me: failed program was:" >&5
19670
19598
sed 's/^/| /' conftest.$ac_ext >&5
19675
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19602
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19676
19603
ac_cv_c_compiler_gnu=$ac_compiler_gnu
19679
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19680
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
19606
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19607
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
19681
19608
GCC=`test $ac_compiler_gnu = yes && echo yes`
19682
19609
ac_test_CFLAGS=${CFLAGS+set}
19683
19610
ac_save_CFLAGS=$CFLAGS
19684
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19685
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
19612
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19613
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
19686
19614
if test "${ac_cv_prog_cc_g+set}" = set; then
19687
19615
echo $ECHO_N "(cached) $ECHO_C" >&6
19689
ac_save_c_werror_flag=$ac_c_werror_flag
19690
ac_c_werror_flag=yes
19693
cat >conftest.$ac_ext <<_ACEOF
19696
cat confdefs.h >>conftest.$ac_ext
19697
cat >>conftest.$ac_ext <<_ACEOF
19698
/* end confdefs.h. */
19708
rm -f conftest.$ac_objext
19709
if { (ac_try="$ac_compile"
19710
case "(($ac_try" in
19711
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19712
*) ac_try_echo=$ac_try;;
19714
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19715
(eval "$ac_compile") 2>conftest.er1
19717
grep -v '^ *+' conftest.er1 >conftest.err
19719
cat conftest.err >&5
19720
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19721
(exit $ac_status); } &&
19722
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19723
{ (case "(($ac_try" in
19724
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19725
*) ac_try_echo=$ac_try;;
19727
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19728
(eval "$ac_try") 2>&5
19730
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19731
(exit $ac_status); }; } &&
19732
{ ac_try='test -s conftest.$ac_objext'
19733
{ (case "(($ac_try" in
19734
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19735
*) ac_try_echo=$ac_try;;
19737
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19738
(eval "$ac_try") 2>&5
19740
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19741
(exit $ac_status); }; }; then
19742
ac_cv_prog_cc_g=yes
19744
echo "$as_me: failed program was:" >&5
19745
sed 's/^/| /' conftest.$ac_ext >&5
19748
cat >conftest.$ac_ext <<_ACEOF
19751
cat confdefs.h >>conftest.$ac_ext
19752
cat >>conftest.$ac_ext <<_ACEOF
19753
/* end confdefs.h. */
19763
rm -f conftest.$ac_objext
19764
if { (ac_try="$ac_compile"
19765
case "(($ac_try" in
19766
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19767
*) ac_try_echo=$ac_try;;
19769
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19770
(eval "$ac_compile") 2>conftest.er1
19772
grep -v '^ *+' conftest.er1 >conftest.err
19774
cat conftest.err >&5
19775
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19776
(exit $ac_status); } &&
19777
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19778
{ (case "(($ac_try" in
19779
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19780
*) ac_try_echo=$ac_try;;
19782
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19783
(eval "$ac_try") 2>&5
19785
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19786
(exit $ac_status); }; } &&
19787
{ ac_try='test -s conftest.$ac_objext'
19788
{ (case "(($ac_try" in
19789
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19790
*) ac_try_echo=$ac_try;;
19792
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19793
(eval "$ac_try") 2>&5
19795
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19796
(exit $ac_status); }; }; then
19799
echo "$as_me: failed program was:" >&5
19800
sed 's/^/| /' conftest.$ac_ext >&5
19802
ac_c_werror_flag=$ac_save_c_werror_flag
19804
cat >conftest.$ac_ext <<_ACEOF
19807
cat confdefs.h >>conftest.$ac_ext
19808
cat >>conftest.$ac_ext <<_ACEOF
19809
/* end confdefs.h. */
19819
rm -f conftest.$ac_objext
19820
if { (ac_try="$ac_compile"
19821
case "(($ac_try" in
19822
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19823
*) ac_try_echo=$ac_try;;
19825
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19826
(eval "$ac_compile") 2>conftest.er1
19828
grep -v '^ *+' conftest.er1 >conftest.err
19830
cat conftest.err >&5
19831
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19832
(exit $ac_status); } &&
19833
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19834
{ (case "(($ac_try" in
19835
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19836
*) ac_try_echo=$ac_try;;
19838
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19839
(eval "$ac_try") 2>&5
19841
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19842
(exit $ac_status); }; } &&
19843
{ ac_try='test -s conftest.$ac_objext'
19844
{ (case "(($ac_try" in
19845
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19846
*) ac_try_echo=$ac_try;;
19848
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19849
(eval "$ac_try") 2>&5
19851
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19852
(exit $ac_status); }; }; then
19853
ac_cv_prog_cc_g=yes
19855
echo "$as_me: failed program was:" >&5
19856
sed 's/^/| /' conftest.$ac_ext >&5
19861
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19864
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19867
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19868
ac_c_werror_flag=$ac_save_c_werror_flag
19870
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19871
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
19617
cat >conftest.$ac_ext <<_ACEOF
19620
cat confdefs.h >>conftest.$ac_ext
19621
cat >>conftest.$ac_ext <<_ACEOF
19622
/* end confdefs.h. */
19632
rm -f conftest.$ac_objext
19633
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19634
(eval $ac_compile) 2>conftest.er1
19636
grep -v '^ *+' conftest.er1 >conftest.err
19638
cat conftest.err >&5
19639
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19640
(exit $ac_status); } &&
19641
{ ac_try='test -z "$ac_c_werror_flag"
19642
|| test ! -s conftest.err'
19643
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19644
(eval $ac_try) 2>&5
19646
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19647
(exit $ac_status); }; } &&
19648
{ ac_try='test -s conftest.$ac_objext'
19649
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19650
(eval $ac_try) 2>&5
19652
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19653
(exit $ac_status); }; }; then
19654
ac_cv_prog_cc_g=yes
19656
echo "$as_me: failed program was:" >&5
19657
sed 's/^/| /' conftest.$ac_ext >&5
19661
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19663
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19664
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
19872
19665
if test "$ac_test_CFLAGS" = set; then
19873
19666
CFLAGS=$ac_save_CFLAGS
19874
19667
elif test $ac_cv_prog_cc_g = yes; then
19951
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
19952
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19739
# Don't try gcc -ansi; that turns off useful extensions and
19740
# breaks some systems' header files.
19741
# AIX -qlanglvl=ansi
19742
# Ultrix and OSF/1 -std1
19743
# HP-UX 10.20 and later -Ae
19744
# HP-UX older versions -Aa -D_HPUX_SOURCE
19745
# SVR4 -Xc -D__EXTENSIONS__
19746
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19954
19748
CC="$ac_save_CC $ac_arg"
19955
19749
rm -f conftest.$ac_objext
19956
if { (ac_try="$ac_compile"
19957
case "(($ac_try" in
19958
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19959
*) ac_try_echo=$ac_try;;
19961
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19962
(eval "$ac_compile") 2>conftest.er1
19750
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19751
(eval $ac_compile) 2>conftest.er1
19964
19753
grep -v '^ *+' conftest.er1 >conftest.err
19965
19754
rm -f conftest.er1
19966
19755
cat conftest.err >&5
19967
19756
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19968
19757
(exit $ac_status); } &&
19969
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19970
{ (case "(($ac_try" in
19971
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19972
*) ac_try_echo=$ac_try;;
19974
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19975
(eval "$ac_try") 2>&5
19758
{ ac_try='test -z "$ac_c_werror_flag"
19759
|| test ! -s conftest.err'
19760
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19761
(eval $ac_try) 2>&5
19977
19763
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19978
19764
(exit $ac_status); }; } &&
19979
19765
{ ac_try='test -s conftest.$ac_objext'
19980
{ (case "(($ac_try" in
19981
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19982
*) ac_try_echo=$ac_try;;
19984
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19985
(eval "$ac_try") 2>&5
19766
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19767
(eval $ac_try) 2>&5
19987
19769
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19988
19770
(exit $ac_status); }; }; then
19989
ac_cv_prog_cc_c89=$ac_arg
19771
ac_cv_prog_cc_stdc=$ac_arg
19991
19774
echo "$as_me: failed program was:" >&5
19992
19775
sed 's/^/| /' conftest.$ac_ext >&5
19997
rm -f core conftest.err conftest.$ac_objext
19998
test "x$ac_cv_prog_cc_c89" != "xno" && break
19778
rm -f conftest.err conftest.$ac_objext
20000
rm -f conftest.$ac_ext
19780
rm -f conftest.$ac_ext conftest.$ac_objext
20001
19781
CC=$ac_save_CC
20005
case "x$ac_cv_prog_cc_c89" in
20007
{ echo "$as_me:$LINENO: result: none needed" >&5
20008
echo "${ECHO_T}none needed" >&6; } ;;
20010
{ echo "$as_me:$LINENO: result: unsupported" >&5
20011
echo "${ECHO_T}unsupported" >&6; } ;;
19785
case "x$ac_cv_prog_cc_stdc" in
19787
echo "$as_me:$LINENO: result: none needed" >&5
19788
echo "${ECHO_T}none needed" >&6 ;;
20013
CC="$CC $ac_cv_prog_cc_c89"
20014
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
20015
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
19790
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
19791
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
19792
CC="$CC $ac_cv_prog_cc_stdc" ;;
19795
# Some people use a C++ compiler to compile C. Since we use `exit',
19796
# in C++ we need to declare it. In case someone uses the same compiler
19797
# for both compiling C and C++ we need to have the C++ compiler decide
19798
# the declaration of exit, since it's the most demanding environment.
19799
cat >conftest.$ac_ext <<_ACEOF
19800
#ifndef __cplusplus
19804
rm -f conftest.$ac_objext
19805
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19806
(eval $ac_compile) 2>conftest.er1
19808
grep -v '^ *+' conftest.er1 >conftest.err
19810
cat conftest.err >&5
19811
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19812
(exit $ac_status); } &&
19813
{ ac_try='test -z "$ac_c_werror_flag"
19814
|| test ! -s conftest.err'
19815
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19816
(eval $ac_try) 2>&5
19818
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19819
(exit $ac_status); }; } &&
19820
{ ac_try='test -s conftest.$ac_objext'
19821
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19822
(eval $ac_try) 2>&5
19824
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19825
(exit $ac_status); }; }; then
19826
for ac_declaration in \
19828
'extern "C" void std::exit (int) throw (); using std::exit;' \
19829
'extern "C" void std::exit (int); using std::exit;' \
19830
'extern "C" void exit (int) throw ();' \
19831
'extern "C" void exit (int);' \
19834
cat >conftest.$ac_ext <<_ACEOF
19837
cat confdefs.h >>conftest.$ac_ext
19838
cat >>conftest.$ac_ext <<_ACEOF
19839
/* end confdefs.h. */
19841
#include <stdlib.h>
19850
rm -f conftest.$ac_objext
19851
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19852
(eval $ac_compile) 2>conftest.er1
19854
grep -v '^ *+' conftest.er1 >conftest.err
19856
cat conftest.err >&5
19857
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19858
(exit $ac_status); } &&
19859
{ ac_try='test -z "$ac_c_werror_flag"
19860
|| test ! -s conftest.err'
19861
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19862
(eval $ac_try) 2>&5
19864
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19865
(exit $ac_status); }; } &&
19866
{ ac_try='test -s conftest.$ac_objext'
19867
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19868
(eval $ac_try) 2>&5
19870
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19871
(exit $ac_status); }; }; then
19874
echo "$as_me: failed program was:" >&5
19875
sed 's/^/| /' conftest.$ac_ext >&5
19879
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19880
cat >conftest.$ac_ext <<_ACEOF
19883
cat confdefs.h >>conftest.$ac_ext
19884
cat >>conftest.$ac_ext <<_ACEOF
19885
/* end confdefs.h. */
19895
rm -f conftest.$ac_objext
19896
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19897
(eval $ac_compile) 2>conftest.er1
19899
grep -v '^ *+' conftest.er1 >conftest.err
19901
cat conftest.err >&5
19902
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19903
(exit $ac_status); } &&
19904
{ ac_try='test -z "$ac_c_werror_flag"
19905
|| test ! -s conftest.err'
19906
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19907
(eval $ac_try) 2>&5
19909
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19910
(exit $ac_status); }; } &&
19911
{ ac_try='test -s conftest.$ac_objext'
19912
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19913
(eval $ac_try) 2>&5
19915
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19916
(exit $ac_status); }; }; then
19919
echo "$as_me: failed program was:" >&5
19920
sed 's/^/| /' conftest.$ac_ext >&5
19923
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19926
if test -n "$ac_declaration"; then
19927
echo '#ifdef __cplusplus' >>confdefs.h
19928
echo $ac_declaration >>confdefs.h
19929
echo '#endif' >>confdefs.h
19933
echo "$as_me: failed program was:" >&5
19934
sed 's/^/| /' conftest.$ac_ext >&5
19937
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20020
19939
ac_cpp='$CPP $CPPFLAGS'
20021
19940
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22936
22479
# Name of the executable.
22937
as_me=`$as_basename -- "$0" ||
22480
as_me=`$as_basename "$0" ||
22938
22481
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22939
22482
X"$0" : 'X\(//\)$' \| \
22940
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22483
X"$0" : 'X\(/\)$' \| \
22484
. : '\(.\)' 2>/dev/null ||
22941
22485
echo X/"$0" |
22942
sed '/^.*\/\([^/][^/]*\)\/*$/{
22961
as_lineno_1=$LINENO
22962
as_lineno_2=$LINENO
22963
test "x$as_lineno_1" != "x$as_lineno_2" &&
22964
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22486
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22487
/^X\/\(\/\/\)$/{ s//\1/; q; }
22488
/^X\/\(\/\).*/{ s//\1/; q; }
22492
# PATH needs CR, and LINENO needs CR and PATH.
22493
# Avoid depending upon Character Ranges.
22494
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22495
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22496
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22497
as_cr_digits='0123456789'
22498
as_cr_alnum=$as_cr_Letters$as_cr_digits
22500
# The user is always right.
22501
if test "${PATH_SEPARATOR+set}" != set; then
22502
echo "#! /bin/sh" >conf$$.sh
22503
echo "exit 0" >>conf$$.sh
22505
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22514
as_lineno_1=$LINENO
22515
as_lineno_2=$LINENO
22516
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22517
test "x$as_lineno_1" != "x$as_lineno_2" &&
22518
test "x$as_lineno_3" = "x$as_lineno_2" || {
22519
# Find who we are. Look in the path if we contain no path at all
22522
*[\\/]* ) as_myself=$0 ;;
22523
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22524
for as_dir in $PATH
22527
test -z "$as_dir" && as_dir=.
22528
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22533
# We did not find ourselves, most probably we were run as `sh COMMAND'
22534
# in which case we are not to be found in the path.
22535
if test "x$as_myself" = x; then
22538
if test ! -f "$as_myself"; then
22539
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22540
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22541
{ (exit 1); exit 1; }; }
22543
case $CONFIG_SHELL in
22545
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22546
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22549
test -z "$as_dir" && as_dir=.
22550
for as_base in sh bash ksh sh5; do
22553
if ("$as_dir/$as_base" -c '
22554
as_lineno_1=$LINENO
22555
as_lineno_2=$LINENO
22556
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22557
test "x$as_lineno_1" != "x$as_lineno_2" &&
22558
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22559
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22560
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22561
CONFIG_SHELL=$as_dir/$as_base
22562
export CONFIG_SHELL
22563
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22966
22571
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22967
22572
# uniformly replaced by the line number. The first 'sed' inserts a
22968
# line-number line after each line using $LINENO; the second 'sed'
22969
# does the real work. The second script uses 'N' to pair each
22970
# line-number line with the line containing $LINENO, and appends
22971
# trailing '-' during substitution so that $LINENO is not a special
22972
# case at line end.
22573
# line-number line before each line; the second 'sed' does the real
22574
# work. The second script uses 'N' to pair each line-number line
22575
# with the numbered line, and appends trailing '-' during
22576
# substitution so that $LINENO is not a special case at line end.
22973
22577
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22974
# scripts with optimization help from Paolo Bonzini. Blame Lee
22975
# E. McMahon (1931-1989) for sed's syntax. :-)
22578
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22579
sed '=' <$as_myself |
22987
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22584
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22587
s,^['$as_cr_digits']*\n,,
22990
22588
' >$as_me.lineno &&
22991
chmod +x "$as_me.lineno" ||
22992
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22589
chmod +x $as_me.lineno ||
22590
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22591
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22993
22592
{ (exit 1); exit 1; }; }
22995
22594
# Don't try to exec as it changes $[0], causing all sort of problems
22996
22595
# (the dirname of $[0] is not the place where we might find the
22997
# original and so on. Autoconf is especially sensitive to this).
22998
. "./$as_me.lineno"
22596
# original and so on. Autoconf is especially sensible to this).
22999
22598
# Exit status is that of the last command.
23004
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23010
ECHO_C= ECHO_N= ECHO_T=
23011
case `echo -n x` in
23013
case `echo 'x\c'` in
23014
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
22603
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22604
*c*,-n*) ECHO_N= ECHO_C='
22606
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22607
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
23021
if expr a : '\(a\)' >/dev/null 2>&1 &&
23022
test "X`expr 00001 : '.*\(...\)'`" = X001; then
22610
if expr a : '\(a\)' >/dev/null 2>&1; then
23025
22613
as_expr=false
23028
22616
rm -f conf$$ conf$$.exe conf$$.file
23029
if test -d conf$$.dir; then
23030
rm -f conf$$.dir/conf$$.file
23035
22617
echo >conf$$.file
23036
22618
if ln -s conf$$.file conf$$ 2>/dev/null; then
23038
# ... but there are two gotchas:
23039
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23040
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23041
# In both cases, we have to default to `cp -p'.
23042
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22619
# We could just check for DJGPP; but this test a) works b) is more generic
22620
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22621
if test -f conf$$.exe; then
22622
# Don't use ln at all; we don't have any links
23043
22623
as_ln_s='cp -p'
23044
22627
elif ln conf$$.file conf$$ 2>/dev/null; then
23047
22630
as_ln_s='cp -p'
23049
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23050
rmdir conf$$.dir 2>/dev/null
22632
rm -f conf$$ conf$$.exe conf$$.file
23052
22634
if mkdir -p . 2>/dev/null; then
23249
22845
# Have a temporary directory for convenience. Make it in the build tree
23250
# simply because there is no reason against having it here, and in addition,
22846
# simply because there is no reason to put it here, and in addition,
23251
22847
# creating and moving files from /tmp can sometimes cause problems.
23252
# Hook for its removal unless debugging.
23253
# Note that there is a small window in which the directory will not be cleaned:
23254
# after its creation but before its name has been assigned to `$tmp'.
22848
# Create a temporary directory, and hook for its removal unless debugging.
23258
trap 'exit_status=$?
23259
{ test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22851
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23261
22852
trap '{ (exit 1); exit 1; }' 1 2 13 15
23263
22855
# Create a (secure) tmp directory for tmp files.
23266
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22858
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23267
22859
test -n "$tmp" && test -d "$tmp"
23270
tmp=./conf$$-$RANDOM
23271
(umask 077 && mkdir "$tmp")
22862
tmp=./confstat$$-$RANDOM
22863
(umask 077 && mkdir $tmp)
23274
22866
echo "$me: cannot create a temporary directory in ." >&2
23275
22867
{ (exit 1); exit 1; }
23279
for ac_tag in :H $CONFIG_HEADERS
23282
:[FHLC]) ac_mode=$ac_tag; continue;;
23284
case $ac_mode$ac_tag in
23286
:L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23287
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23288
{ (exit 1); exit 1; }; };;
23289
:[FH]-) ac_tag=-:-;;
23290
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23307
-) ac_f="$tmp/stdin";;
23308
*) # Look for the file first in the build tree, then in the source tree
23309
# (if the path is not absolute). The absolute path cannot be DOS-style,
23310
# because $ac_f cannot contain `:'.
23314
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23316
{ { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23317
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23318
{ (exit 1); exit 1; }; };;
23320
ac_file_inputs="$ac_file_inputs $ac_f"
23323
# Let's still pretend it is `configure' which instantiates (i.e., don't
23324
# use $as_me), people would be surprised to read:
23325
# /* config.h. Generated by config.status. */
23326
configure_input="Generated from "`IFS=:
23327
echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23328
if test x"$ac_file" != x-; then
23329
configure_input="$ac_file. $configure_input"
23330
{ echo "$as_me:$LINENO: creating $ac_file" >&5
22872
cat >>$CONFIG_STATUS <<\_ACEOF
22875
# CONFIG_HEADER section.
22878
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22879
# NAME is the cpp macro being defined and VALUE is the value it is being given.
22881
# ac_d sets the value in "#define NAME VALUE" lines.
22882
ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22883
ac_dB='[ ].*$,\1#\2'
22886
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22887
ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22888
ac_uB='$,\1#\2define\3'
22892
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22893
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22895
- | *:- | *:-:* ) # input from stdin
22897
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22898
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22899
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22900
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22901
* ) ac_file_in=$ac_file.in ;;
22904
test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23331
22905
echo "$as_me: creating $ac_file" >&6;}
23335
*:-:* | *:-) cat >"$tmp/stdin";;
23340
ac_dir=`$as_dirname -- "$ac_file" ||
22907
# First look for the input files in the build tree, otherwise in the
22909
ac_file_inputs=`IFS=:
22910
for f in $ac_file_in; do
22912
-) echo $tmp/stdin ;;
22914
# Absolute (can't be DOS-style, as IFS=:)
22915
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22916
echo "$as_me: error: cannot find input file: $f" >&2;}
22917
{ (exit 1); exit 1; }; }
22918
# Do quote $f, to prevent DOS paths from being IFS'd.
22921
if test -f "$f"; then
22924
elif test -f "$srcdir/$f"; then
22929
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22930
echo "$as_me: error: cannot find input file: $f" >&2;}
22931
{ (exit 1); exit 1; }; }
22934
done` || { (exit 1); exit 1; }
22935
# Remove the trailing spaces.
22936
sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22940
# Transform confdefs.h into two sed scripts, `conftest.defines' and
22941
# `conftest.undefs', that substitutes the proper values into
22942
# config.h.in to produce config.h. The first handles `#define'
22943
# templates, and the second `#undef' templates.
22944
# And first: Protect against being on the right side of a sed subst in
22945
# config.status. Protect against being in an unquoted here document
22946
# in config.status.
22947
rm -f conftest.defines conftest.undefs
22948
# Using a here document instead of a string reduces the quoting nightmare.
22949
# Putting comments in sed scripts is not portable.
22951
# `end' is used to avoid that the second main sed command (meant for
22952
# 0-ary CPP macros) applies to n-ary macro definitions.
22953
# See the Autoconf documentation for `clear'.
22954
cat >confdef2sed.sed <<\_ACEOF
22959
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22961
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22964
# If some macros were called several times there might be several times
22965
# the same #defines, which is useless. Nevertheless, we may not want to
22966
# sort them, since we want the *last* AC-DEFINE to be honored.
22967
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22968
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22969
rm -f confdef2sed.sed
22971
# This sed command replaces #undef with comments. This is necessary, for
22972
# example, in the case of _POSIX_SOURCE, which is predefined and required
22973
# on some systems where configure will not decide to define it.
22974
cat >>conftest.undefs <<\_ACEOF
22975
s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22978
# Break up conftest.defines because some shells have a limit on the size
22979
# of here documents, and old seds have small limits too (100 cmds).
22980
echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22981
echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22982
echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22983
echo ' :' >>$CONFIG_STATUS
22984
rm -f conftest.tail
22985
while grep . conftest.defines >/dev/null
22987
# Write a limited-size here document to $tmp/defines.sed.
22988
echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22989
# Speed up: don't consider the non `#define' lines.
22990
echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22991
# Work around the forget-to-reset-the-flag bug.
22992
echo 't clr' >>$CONFIG_STATUS
22993
echo ': clr' >>$CONFIG_STATUS
22994
sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22996
sed -f $tmp/defines.sed $tmp/in >$tmp/out
22998
mv $tmp/out $tmp/in
23000
sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23001
rm -f conftest.defines
23002
mv conftest.tail conftest.defines
23004
rm -f conftest.defines
23005
echo ' fi # grep' >>$CONFIG_STATUS
23006
echo >>$CONFIG_STATUS
23008
# Break up conftest.undefs because some shells have a limit on the size
23009
# of here documents, and old seds have small limits too (100 cmds).
23010
echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23011
rm -f conftest.tail
23012
while grep . conftest.undefs >/dev/null
23014
# Write a limited-size here document to $tmp/undefs.sed.
23015
echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23016
# Speed up: don't consider the non `#undef'
23017
echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23018
# Work around the forget-to-reset-the-flag bug.
23019
echo 't clr' >>$CONFIG_STATUS
23020
echo ': clr' >>$CONFIG_STATUS
23021
sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23023
sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23025
mv $tmp/out $tmp/in
23027
sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23028
rm -f conftest.undefs
23029
mv conftest.tail conftest.undefs
23031
rm -f conftest.undefs
23033
cat >>$CONFIG_STATUS <<\_ACEOF
23034
# Let's still pretend it is `configure' which instantiates (i.e., don't
23035
# use $as_me), people would be surprised to read:
23036
# /* config.h. Generated by config.status. */
23037
if test x"$ac_file" = x-; then
23038
echo "/* Generated by configure. */" >$tmp/config.h
23040
echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23042
cat $tmp/in >>$tmp/config.h
23044
if test x"$ac_file" != x-; then
23045
if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23046
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23047
echo "$as_me: $ac_file is unchanged" >&6;}
23049
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23341
23050
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23342
23051
X"$ac_file" : 'X\(//\)[^/]' \| \
23343
23052
X"$ac_file" : 'X\(//\)$' \| \
23344
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23053
X"$ac_file" : 'X\(/\)' \| \
23054
. : '\(.\)' 2>/dev/null ||
23345
23055
echo X"$ac_file" |
23346
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23350
/^X\(\/\/\)[^/].*/{
23365
-*) as_dir=./$as_dir;;
23367
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23056
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23057
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
23058
/^X\(\/\/\)$/{ s//\1/; q; }
23059
/^X\(\/\).*/{ s//\1/; q; }
23061
{ if $as_mkdir_p; then
23371
*\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23372
*) as_qdir=$as_dir;;
23374
as_dirs="'$as_qdir' $as_dirs"
23375
as_dir=`$as_dirname -- "$as_dir" ||
23066
while test ! -d "$as_dir"; do
23067
as_dirs="$as_dir $as_dirs"
23068
as_dir=`(dirname "$as_dir") 2>/dev/null ||
23376
23069
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23377
23070
X"$as_dir" : 'X\(//\)[^/]' \| \
23378
23071
X"$as_dir" : 'X\(//\)$' \| \
23379
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23072
X"$as_dir" : 'X\(/\)' \| \
23073
. : '\(.\)' 2>/dev/null ||
23380
23074
echo X"$as_dir" |
23381
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23385
/^X\(\/\/\)[^/].*/{
23398
test -d "$as_dir" && break
23075
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23076
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
23077
/^X\(\/\/\)$/{ s//\1/; q; }
23078
/^X\(\/\).*/{ s//\1/; q; }
23400
test -z "$as_dirs" || eval "mkdir $as_dirs"
23401
} || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23402
echo "$as_me: error: cannot create directory $as_dir" >&2;}
23081
test ! -n "$as_dirs" || mkdir $as_dirs
23082
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23083
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23403
23084
{ (exit 1); exit 1; }; }; }
23407
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23409
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23410
# A ".." for each directory in $ac_dir_suffix.
23411
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23412
case $ac_top_builddir_sub in
23413
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23414
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23417
ac_abs_top_builddir=$ac_pwd
23418
ac_abs_builddir=$ac_pwd$ac_dir_suffix
23419
# for backward compatibility:
23420
ac_top_builddir=$ac_top_build_prefix
23423
.) # We are building in place.
23425
ac_top_srcdir=$ac_top_builddir_sub
23426
ac_abs_top_srcdir=$ac_pwd ;;
23427
[\\/]* | ?:[\\/]* ) # Absolute name.
23428
ac_srcdir=$srcdir$ac_dir_suffix;
23429
ac_top_srcdir=$srcdir
23430
ac_abs_top_srcdir=$srcdir ;;
23431
*) # Relative name.
23432
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23433
ac_top_srcdir=$ac_top_build_prefix$srcdir
23434
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23436
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23447
# Transform confdefs.h into a sed script `conftest.defines', that
23448
# substitutes the proper values into config.h.in to produce config.h.
23449
rm -f conftest.defines conftest.tail
23450
# First, append a space to every undef/define line, to ease matching.
23451
echo 's/$/ /' >conftest.defines
23452
# Then, protect against being on the right side of a sed subst, or in
23453
# an unquoted here document, in config.status. If some macros were
23454
# called several times there might be several #defines for the same
23455
# symbol, which is useless. But do not sort them, since the last
23456
# AC_DEFINE must be honored.
23457
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23458
# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23459
# NAME is the cpp macro being defined, VALUE is the value it is being given.
23460
# PARAMS is the parameter list in the macro definition--in most cases, it's
23461
# just an empty string.
23462
ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
23463
ac_dB='\\)[ (].*,\\1define\\2'
23471
s/^[ ]*#[ ]*define[ ][ ]*//
23476
s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23477
s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23478
' >>conftest.defines
23480
# Remove the space that was appended to ease matching.
23481
# Then replace #undef with comments. This is necessary, for
23482
# example, in the case of _POSIX_SOURCE, which is predefined and required
23483
# on some systems where configure will not decide to define it.
23484
# (The regexp can be short, since the line contains either #define or #undef.)
23486
s,^[ #]*u.*,/* & */,' >>conftest.defines
23488
# Break up conftest.defines:
23489
ac_max_sed_lines=50
23491
# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23492
# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23493
# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23495
ac_in='$ac_file_inputs'
23496
ac_out='"$tmp/out1"'
23497
ac_nxt='"$tmp/out2"'
23501
# Write a here document:
23502
cat >>$CONFIG_STATUS <<_ACEOF
23503
# First, check the format of the line:
23504
cat >"\$tmp/defines.sed" <<\\CEOF
23505
/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
23506
/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
23510
sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23512
sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23513
ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23514
sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23515
grep . conftest.tail >/dev/null || break
23516
rm -f conftest.defines
23517
mv conftest.tail conftest.defines
23519
rm -f conftest.defines conftest.tail
23521
echo "ac_result=$ac_in" >>$CONFIG_STATUS
23522
cat >>$CONFIG_STATUS <<\_ACEOF
23523
if test x"$ac_file" != x-; then
23524
echo "/* $configure_input */" >"$tmp/config.h"
23525
cat "$ac_result" >>"$tmp/config.h"
23526
if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23527
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23528
echo "$as_me: $ac_file is unchanged" >&6;}
23530
23086
rm -f $ac_file
23531
mv "$tmp/config.h" $ac_file
23087
mv $tmp/config.h $ac_file
23534
echo "/* $configure_input */"
23091
rm -f $tmp/config.h
23096
cat >>$CONFIG_STATUS <<\_ACEOF
23546
23098
{ (exit 0); exit 0; }