132
67
# Name of the executable.
133
as_me=`$as_basename -- "$0" ||
68
as_me=`$as_basename "$0" ||
134
69
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135
70
X"$0" : 'X\(//\)$' \| \
136
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
71
X"$0" : 'X\(/\)$' \| \
72
. : '\(.\)' 2>/dev/null ||
138
sed '/^.*\/\([^/][^/]*\)\/*$/{
156
if test "x$CONFIG_SHELL" = x; then
157
if (eval ":") 2>/dev/null; then
163
if test $as_have_required = yes && (eval ":
173
as_func_ret_success () {
176
as_func_ret_failure () {
181
if as_func_success; then
185
echo as_func_success failed.
188
if as_func_failure; then
190
echo as_func_failure succeeded.
193
if as_func_ret_success; then
197
echo as_func_ret_success failed.
200
if as_func_ret_failure; then
202
echo as_func_ret_failure succeeded.
205
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
209
echo positional parameters were not saved.
212
test \$exitcode = 0) || { (exit 1); exit 1; }
217
test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218
test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219
") 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
223
132
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224
133
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
227
136
test -z "$as_dir" && as_dir=.
137
for as_base in sh bash ksh sh5; do
230
for as_base in sh bash ksh sh5; do
231
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+"$@"}
238
for as_shell in $as_candidate_shells $SHELL; do
239
# Try only shells that exist, to save several forks.
240
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241
{ ("$as_shell") 2> /dev/null <<\_ASEOF
242
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
245
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246
# is contrary to our usage. Disable this feature.
247
alias -g '${1+"$@"}'='"$@"'
250
case `(set -o) 2>/dev/null` in
251
*posix*) set -o posix ;;
260
CONFIG_SHELL=$as_shell
262
if { "$as_shell" 2> /dev/null <<\_ASEOF
263
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
266
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267
# is contrary to our usage. Disable this feature.
268
alias -g '${1+"$@"}'='"$@"'
271
case `(set -o) 2>/dev/null` in
272
*posix*) set -o posix ;;
288
as_func_ret_success () {
291
as_func_ret_failure () {
296
if as_func_success; then
300
echo as_func_success failed.
303
if as_func_failure; then
305
echo as_func_failure succeeded.
308
if as_func_ret_success; then
312
echo as_func_ret_success failed.
315
if as_func_ret_failure; then
317
echo as_func_ret_failure succeeded.
320
if ( set x; as_func_ret_success y && test x = "$1" ); then
324
echo positional parameters were not saved.
327
test $exitcode = 0) || { (exit 1); exit 1; }
332
test "x$as_lineno_1" != "x$as_lineno_2" &&
333
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
344
if test "x$CONFIG_SHELL" != x; then
345
for as_var in BASH_ENV ENV
346
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
349
exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
353
if test $as_have_required = no; then
354
echo This script requires a shell more modern than all the
355
echo shells that I found on your system. Please install a
356
echo modern shell, or manually run the script under such a
357
echo shell if you do have one.
358
{ (exit 1); exit 1; }
368
(eval "as_func_return () {
377
as_func_ret_success () {
380
as_func_ret_failure () {
385
if as_func_success; then
389
echo as_func_success failed.
392
if as_func_failure; then
394
echo as_func_failure succeeded.
397
if as_func_ret_success; then
401
echo as_func_ret_success failed.
404
if as_func_ret_failure; then
406
echo as_func_ret_failure succeeded.
409
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
413
echo positional parameters were not saved.
416
test \$exitcode = 0") || {
417
echo No shell found that supports shell functions.
418
echo Please tell autoconf@gnu.org about your system,
419
echo including any error possibly output before this
427
test "x$as_lineno_1" != "x$as_lineno_2" &&
428
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430
158
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431
159
# uniformly replaced by the line number. The first 'sed' inserts a
432
# line-number line after each line using $LINENO; the second 'sed'
433
# does the real work. The second script uses 'N' to pair each
434
# line-number line with the line containing $LINENO, and appends
435
# 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.
437
164
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438
# scripts with optimization help from Paolo Bonzini. Blame Lee
439
# E. McMahon (1931-1989) for sed's syntax. :-)
165
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166
sed '=' <$as_myself |
451
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,,
454
175
' >$as_me.lineno &&
455
chmod +x "$as_me.lineno" ||
176
chmod +x $as_me.lineno ||
456
177
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457
178
{ (exit 1); exit 1; }; }
459
180
# Don't try to exec as it changes $[0], causing all sort of problems
460
181
# (the dirname of $[0] is not the place where we might find the
461
# original and so on. Autoconf is especially sensitive to this).
182
# original and so on. Autoconf is especially sensible to this).
463
184
# Exit status is that of the last command.
468
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
474
ECHO_C= ECHO_N= ECHO_T=
478
*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= ;;
485
if expr a : '\(a\)' >/dev/null 2>&1 &&
486
test "X`expr 00001 : '.*\(...\)'`" = X001; then
196
if expr a : '\(a\)' >/dev/null 2>&1; then
492
202
rm -f conf$$ conf$$.exe conf$$.file
493
if test -d conf$$.dir; then
494
rm -f conf$$.dir/conf$$.file
499
203
echo >conf$$.file
500
204
if ln -s conf$$.file conf$$ 2>/dev/null; then
502
# ... but there are two gotchas:
503
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505
# In both cases, we have to default to `cp -p'.
506
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
508
213
elif ln conf$$.file conf$$ 2>/dev/null; then
513
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514
rmdir conf$$.dir 2>/dev/null
218
rm -f conf$$ conf$$.exe conf$$.file
516
220
if mkdir -p . 2>/dev/null; then
1504
1047
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
1505
1048
--with-pic try to use only PIC/non-PIC objects [default=use
1507
--with-tags[=TAGS] include additional configurations [automatic]
1051
include additional configurations [automatic]
1508
1052
--with-x use the X Window System
1509
1053
--with-qtincdir=DIR Qt include directory default=$QTDIR/include
1510
1054
--with-qtlibdir=DIR Qt library directory default=$QTDIR/lib
1512
1056
Some influential environment variables:
1513
PKG_CONFIG path to pkg-config utility
1515
C compiler flags for XDRAWCHEM, overriding pkg-config
1517
linker flags for XDRAWCHEM, overriding pkg-config
1518
1057
CXX C++ compiler command
1519
1058
CXXFLAGS C++ compiler flags
1520
1059
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1521
1060
nonstandard directory <lib dir>
1522
LIBS libraries to pass to the linker, e.g. -l<library>
1523
CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1524
you have headers in a nonstandard directory <include dir>
1061
CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1062
headers in a nonstandard directory <include dir>
1525
1063
CC C compiler command
1526
1064
CFLAGS C compiler flags
1527
1065
CPP C preprocessor
1528
1066
CXXCPP C++ preprocessor
1529
1067
F77 Fortran 77 compiler command
1530
1068
FFLAGS Fortran 77 compiler flags
1531
XMKMF Path to xmkmf, Makefile generator for X Window System
1533
1070
Use these variables to override the choices made by `configure' or to help
1534
1071
it to find libraries and programs with nonstandard names/locations.
1536
1073
Report bugs to <bherger@users.sourceforge.net>.
1541
1077
if test "$ac_init_help" = "recursive"; then
1542
1078
# If there are subdirs, report their specific --help.
1543
1080
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1544
test -d "$ac_dir" || continue
1081
test -d $ac_dir || continue
1548
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1084
if test "$ac_dir" != .; then
1550
1085
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1551
# A ".." for each directory in $ac_dir_suffix.
1552
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1553
case $ac_top_builddir_sub in
1554
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1555
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1558
ac_abs_top_builddir=$ac_pwd
1559
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1560
# for backward compatibility:
1561
ac_top_builddir=$ac_top_build_prefix
1086
# A "../" for each directory in $ac_dir_suffix.
1087
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1089
ac_dir_suffix= ac_top_builddir=
1563
1092
case $srcdir in
1564
.) # We are building in place.
1093
.) # No --srcdir option. We are building in place.
1566
ac_top_srcdir=$ac_top_builddir_sub
1567
ac_abs_top_srcdir=$ac_pwd ;;
1568
[\\/]* | ?:[\\/]* ) # Absolute name.
1095
if test -z "$ac_top_builddir"; then
1098
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1100
[\\/]* | ?:[\\/]* ) # Absolute path.
1569
1101
ac_srcdir=$srcdir$ac_dir_suffix;
1570
ac_top_srcdir=$srcdir
1571
ac_abs_top_srcdir=$srcdir ;;
1573
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1574
ac_top_srcdir=$ac_top_build_prefix$srcdir
1575
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1577
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1579
cd "$ac_dir" || { ac_status=$?; continue; }
1580
# Check for guested configure.
1581
if test -f "$ac_srcdir/configure.gnu"; then
1583
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
1584
elif test -f "$ac_srcdir/configure"; then
1586
$SHELL "$ac_srcdir/configure" --help=recursive
1102
ac_top_srcdir=$srcdir ;;
1104
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1105
ac_top_srcdir=$ac_top_builddir$srcdir ;;
1108
# Do not use `cd foo && pwd` to compute absolute paths, because
1109
# the directories may not exist.
1111
.) ac_abs_builddir="$ac_dir";;
1114
.) ac_abs_builddir=`pwd`;;
1115
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1116
*) ac_abs_builddir=`pwd`/"$ac_dir";;
1119
case $ac_abs_builddir in
1120
.) ac_abs_top_builddir=${ac_top_builddir}.;;
1122
case ${ac_top_builddir}. in
1123
.) ac_abs_top_builddir=$ac_abs_builddir;;
1124
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1125
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1128
case $ac_abs_builddir in
1129
.) ac_abs_srcdir=$ac_srcdir;;
1132
.) ac_abs_srcdir=$ac_abs_builddir;;
1133
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1134
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1137
case $ac_abs_builddir in
1138
.) ac_abs_top_srcdir=$ac_top_srcdir;;
1140
case $ac_top_srcdir in
1141
.) ac_abs_top_srcdir=$ac_abs_builddir;;
1142
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1143
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1148
# Check for guested configure; otherwise get Cygnus style configure.
1149
if test -f $ac_srcdir/configure.gnu; then
1151
$SHELL $ac_srcdir/configure.gnu --help=recursive
1152
elif test -f $ac_srcdir/configure; then
1154
$SHELL $ac_srcdir/configure --help=recursive
1155
elif test -f $ac_srcdir/configure.ac ||
1156
test -f $ac_srcdir/configure.in; then
1158
$ac_configure --help
1588
1160
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1590
cd "$ac_pwd" || { ac_status=$?; break; }
1594
test -n "$ac_init_help" && exit $ac_status
1166
test -n "$ac_init_help" && exit 0
1595
1167
if $ac_init_version; then
1597
1169
xdrawchem configure 1.9.4
1598
generated by GNU Autoconf 2.61
1170
generated by GNU Autoconf 2.59
1600
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1601
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1172
Copyright (C) 2003 Free Software Foundation, Inc.
1602
1173
This configure script is free software; the Free Software Foundation
1603
1174
gives unlimited permission to copy, distribute and modify it.
1607
cat >config.log <<_ACEOF
1608
1180
This file contains any messages produced by compilers while
1609
1181
running configure, to aid debugging if configure makes a mistake.
1611
1183
It was created by xdrawchem $as_me 1.9.4, which was
1612
generated by GNU Autoconf 2.61. Invocation command line was
1184
generated by GNU Autoconf 2.59. Invocation command line was
1620
1191
## --------- ##
2470
1979
IFS=$as_save_IFS
2471
1980
test -z "$as_dir" && as_dir=.
2472
1981
for ac_exec_ext in '' $ac_executable_extensions; do
2473
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1982
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2474
1983
ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
2475
1984
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1990
test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
2485
1994
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
2486
1996
if test -n "$PKG_CONFIG"; then
2487
{ echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
2488
echo "${ECHO_T}$PKG_CONFIG" >&6; }
2490
{ echo "$as_me:$LINENO: result: no" >&5
2491
echo "${ECHO_T}no" >&6; }
2496
if test -z "$ac_cv_path_PKG_CONFIG"; then
2497
ac_pt_PKG_CONFIG=$PKG_CONFIG
2498
# Extract the first word of "pkg-config", so it can be a program name with args.
2499
set dummy pkg-config; ac_word=$2
2500
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2501
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2502
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
2503
echo $ECHO_N "(cached) $ECHO_C" >&6
2505
case $ac_pt_PKG_CONFIG in
2507
ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
2510
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2514
test -z "$as_dir" && as_dir=.
2515
for ac_exec_ext in '' $ac_executable_extensions; do
2516
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2517
ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
2518
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1997
echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
1998
echo "${ECHO_T}$PKG_CONFIG" >&6
2000
echo "$as_me:$LINENO: result: no" >&5
2001
echo "${ECHO_T}no" >&6
2528
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
2529
if test -n "$ac_pt_PKG_CONFIG"; then
2530
{ echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
2531
echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
2533
{ echo "$as_me:$LINENO: result: no" >&5
2534
echo "${ECHO_T}no" >&6; }
2537
if test "x$ac_pt_PKG_CONFIG" = x; then
2006
if test "$PKG_CONFIG" = "no" ; then
2007
echo "*** The pkg-config script could not be found. Make sure it is"
2008
echo "*** in your path, or set the PKG_CONFIG environment variable"
2009
echo "*** to the full path to pkg-config."
2010
echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
2540
case $cross_compiling:$ac_tool_warned in
2542
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2543
whose name does not start with the host triplet. If you think this
2544
configuration is useful to you, please write to autoconf@gnu.org." >&5
2545
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2546
whose name does not start with the host triplet. If you think this
2547
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2548
ac_tool_warned=yes ;;
2550
PKG_CONFIG=$ac_pt_PKG_CONFIG
2553
PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
2557
if test -n "$PKG_CONFIG"; then
2558
_pkg_min_version=0.9.0
2559
{ echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
2560
echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
2561
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
2562
{ echo "$as_me:$LINENO: result: yes" >&5
2563
echo "${ECHO_T}yes" >&6; }
2565
{ echo "$as_me:$LINENO: result: no" >&5
2566
echo "${ECHO_T}no" >&6; }
2573
{ echo "$as_me:$LINENO: checking for XDRAWCHEM" >&5
2574
echo $ECHO_N "checking for XDRAWCHEM... $ECHO_C" >&6; }
2576
if test -n "$PKG_CONFIG"; then
2577
if test -n "$XDRAWCHEM_CFLAGS"; then
2578
pkg_cv_XDRAWCHEM_CFLAGS="$XDRAWCHEM_CFLAGS"
2580
if test -n "$PKG_CONFIG" && \
2581
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"openbabel-2.0 >= 2.0.0\"") >&5
2582
($PKG_CONFIG --exists --print-errors "openbabel-2.0 >= 2.0.0") 2>&5
2584
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585
(exit $ac_status); }; then
2586
pkg_cv_XDRAWCHEM_CFLAGS=`$PKG_CONFIG --cflags "openbabel-2.0 >= 2.0.0" 2>/dev/null`
2594
if test -n "$PKG_CONFIG"; then
2595
if test -n "$XDRAWCHEM_LIBS"; then
2596
pkg_cv_XDRAWCHEM_LIBS="$XDRAWCHEM_LIBS"
2598
if test -n "$PKG_CONFIG" && \
2599
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"openbabel-2.0 >= 2.0.0\"") >&5
2600
($PKG_CONFIG --exists --print-errors "openbabel-2.0 >= 2.0.0") 2>&5
2602
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2603
(exit $ac_status); }; then
2604
pkg_cv_XDRAWCHEM_LIBS=`$PKG_CONFIG --libs "openbabel-2.0 >= 2.0.0" 2>/dev/null`
2615
if test $pkg_failed = yes; then
2617
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
2618
_pkg_short_errors_supported=yes
2620
_pkg_short_errors_supported=no
2622
if test $_pkg_short_errors_supported = yes; then
2623
XDRAWCHEM_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "openbabel-2.0 >= 2.0.0"`
2012
PKG_CONFIG_MIN_VERSION=0.9.0
2013
if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
2014
echo "$as_me:$LINENO: checking for openbabel-2.0 >= 2.0.0" >&5
2015
echo $ECHO_N "checking for openbabel-2.0 >= 2.0.0... $ECHO_C" >&6
2017
if $PKG_CONFIG --exists "openbabel-2.0 >= 2.0.0" ; then
2018
echo "$as_me:$LINENO: result: yes" >&5
2019
echo "${ECHO_T}yes" >&6
2022
echo "$as_me:$LINENO: checking XDRAWCHEM_CFLAGS" >&5
2023
echo $ECHO_N "checking XDRAWCHEM_CFLAGS... $ECHO_C" >&6
2024
XDRAWCHEM_CFLAGS=`$PKG_CONFIG --cflags "openbabel-2.0 >= 2.0.0"`
2025
echo "$as_me:$LINENO: result: $XDRAWCHEM_CFLAGS" >&5
2026
echo "${ECHO_T}$XDRAWCHEM_CFLAGS" >&6
2028
echo "$as_me:$LINENO: checking XDRAWCHEM_LIBS" >&5
2029
echo $ECHO_N "checking XDRAWCHEM_LIBS... $ECHO_C" >&6
2030
XDRAWCHEM_LIBS=`$PKG_CONFIG --libs "openbabel-2.0 >= 2.0.0"`
2031
echo "$as_me:$LINENO: result: $XDRAWCHEM_LIBS" >&5
2032
echo "${ECHO_T}$XDRAWCHEM_LIBS" >&6
2625
XDRAWCHEM_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "openbabel-2.0 >= 2.0.0"`
2036
## If we have a custom action on failure, don't print errors, but
2037
## do set a variable so people can do so.
2038
XDRAWCHEM_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "openbabel-2.0 >= 2.0.0"`
2039
echo $XDRAWCHEM_PKG_ERRORS
2627
# Put the nasty error message in config.log where it belongs
2628
echo "$XDRAWCHEM_PKG_ERRORS" >&5
2630
{ { echo "$as_me:$LINENO: error: Package requirements (openbabel-2.0 >= 2.0.0) were not met:
2632
$XDRAWCHEM_PKG_ERRORS
2634
Consider adjusting the PKG_CONFIG_PATH environment variable if you
2635
installed software in a non-standard prefix.
2637
Alternatively, you may set the environment variables XDRAWCHEM_CFLAGS
2638
and XDRAWCHEM_LIBS to avoid the need to call pkg-config.
2639
See the pkg-config man page for more details.
2641
echo "$as_me: error: Package requirements (openbabel-2.0 >= 2.0.0) were not met:
2643
$XDRAWCHEM_PKG_ERRORS
2645
Consider adjusting the PKG_CONFIG_PATH environment variable if you
2646
installed software in a non-standard prefix.
2648
Alternatively, you may set the environment variables XDRAWCHEM_CFLAGS
2649
and XDRAWCHEM_LIBS to avoid the need to call pkg-config.
2650
See the pkg-config man page for more details.
2652
{ (exit 1); exit 1; }; }
2653
elif test $pkg_failed = untried; then
2654
{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
2655
is in your PATH or set the PKG_CONFIG environment variable to the full
2658
Alternatively, you may set the environment variables XDRAWCHEM_CFLAGS
2659
and XDRAWCHEM_LIBS to avoid the need to call pkg-config.
2660
See the pkg-config man page for more details.
2662
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
2663
See \`config.log' for more details." >&5
2664
echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
2665
is in your PATH or set the PKG_CONFIG environment variable to the full
2668
Alternatively, you may set the environment variables XDRAWCHEM_CFLAGS
2669
and XDRAWCHEM_LIBS to avoid the need to call pkg-config.
2670
See the pkg-config man page for more details.
2672
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
2673
See \`config.log' for more details." >&2;}
2674
{ (exit 1); exit 1; }; }
2676
XDRAWCHEM_CFLAGS=$pkg_cv_XDRAWCHEM_CFLAGS
2677
XDRAWCHEM_LIBS=$pkg_cv_XDRAWCHEM_LIBS
2678
{ echo "$as_me:$LINENO: result: yes" >&5
2679
echo "${ECHO_T}yes" >&6; }
2045
echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
2046
echo "*** See http://www.freedesktop.org/software/pkgconfig"
2050
if test $succeeded = yes; then
2053
{ { echo "$as_me:$LINENO: error: Library requirements (openbabel-2.0 >= 2.0.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
2054
echo "$as_me: error: Library requirements (openbabel-2.0 >= 2.0.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
2055
{ (exit 1); exit 1; }; }
3107
2405
rm -f conftest.$ac_objext
3108
if { (ac_try="$ac_compile"
3110
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3111
*) ac_try_echo=$ac_try;;
3113
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3114
(eval "$ac_compile") 2>conftest.er1
2406
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2407
(eval $ac_compile) 2>conftest.er1
3116
2409
grep -v '^ *+' conftest.er1 >conftest.err
3117
2410
rm -f conftest.er1
3118
2411
cat conftest.err >&5
3119
2412
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3120
(exit $ac_status); } && {
3121
test -z "$ac_cxx_werror_flag" ||
3122
test ! -s conftest.err
3123
} && test -s conftest.$ac_objext; then
2413
(exit $ac_status); } &&
2414
{ ac_try='test -z "$ac_cxx_werror_flag"
2415
|| test ! -s conftest.err'
2416
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2419
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420
(exit $ac_status); }; } &&
2421
{ ac_try='test -s conftest.$ac_objext'
2422
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2425
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2426
(exit $ac_status); }; }; then
3124
2427
ac_compiler_gnu=yes
3126
2429
echo "$as_me: failed program was:" >&5
3127
2430
sed 's/^/| /' conftest.$ac_ext >&5
3132
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2434
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3133
2435
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3136
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3137
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2438
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2439
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3138
2440
GXX=`test $ac_compiler_gnu = yes && echo yes`
3139
2441
ac_test_CXXFLAGS=${CXXFLAGS+set}
3140
2442
ac_save_CXXFLAGS=$CXXFLAGS
3141
{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3142
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2444
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2445
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3143
2446
if test "${ac_cv_prog_cxx_g+set}" = set; then
3144
2447
echo $ECHO_N "(cached) $ECHO_C" >&6
3146
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3147
ac_cxx_werror_flag=yes
3150
cat >conftest.$ac_ext <<_ACEOF
3153
cat confdefs.h >>conftest.$ac_ext
3154
cat >>conftest.$ac_ext <<_ACEOF
3155
/* end confdefs.h. */
3165
rm -f conftest.$ac_objext
3166
if { (ac_try="$ac_compile"
3168
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3169
*) ac_try_echo=$ac_try;;
3171
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3172
(eval "$ac_compile") 2>conftest.er1
3174
grep -v '^ *+' conftest.er1 >conftest.err
3176
cat conftest.err >&5
3177
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178
(exit $ac_status); } && {
3179
test -z "$ac_cxx_werror_flag" ||
3180
test ! -s conftest.err
3181
} && test -s conftest.$ac_objext; then
3182
ac_cv_prog_cxx_g=yes
3184
echo "$as_me: failed program was:" >&5
3185
sed 's/^/| /' conftest.$ac_ext >&5
3188
cat >conftest.$ac_ext <<_ACEOF
3191
cat confdefs.h >>conftest.$ac_ext
3192
cat >>conftest.$ac_ext <<_ACEOF
3193
/* end confdefs.h. */
3203
rm -f conftest.$ac_objext
3204
if { (ac_try="$ac_compile"
3206
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3207
*) ac_try_echo=$ac_try;;
3209
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3210
(eval "$ac_compile") 2>conftest.er1
3212
grep -v '^ *+' conftest.er1 >conftest.err
3214
cat conftest.err >&5
3215
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3216
(exit $ac_status); } && {
3217
test -z "$ac_cxx_werror_flag" ||
3218
test ! -s conftest.err
3219
} && test -s conftest.$ac_objext; then
3222
echo "$as_me: failed program was:" >&5
3223
sed 's/^/| /' conftest.$ac_ext >&5
3225
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3227
cat >conftest.$ac_ext <<_ACEOF
3230
cat confdefs.h >>conftest.$ac_ext
3231
cat >>conftest.$ac_ext <<_ACEOF
3232
/* end confdefs.h. */
3242
rm -f conftest.$ac_objext
3243
if { (ac_try="$ac_compile"
3245
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3246
*) ac_try_echo=$ac_try;;
3248
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3249
(eval "$ac_compile") 2>conftest.er1
3251
grep -v '^ *+' conftest.er1 >conftest.err
3253
cat conftest.err >&5
3254
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3255
(exit $ac_status); } && {
3256
test -z "$ac_cxx_werror_flag" ||
3257
test ! -s conftest.err
3258
} && test -s conftest.$ac_objext; then
3259
ac_cv_prog_cxx_g=yes
3261
echo "$as_me: failed program was:" >&5
3262
sed 's/^/| /' conftest.$ac_ext >&5
3267
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3270
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3273
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3274
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3276
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3277
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
2449
cat >conftest.$ac_ext <<_ACEOF
2452
cat confdefs.h >>conftest.$ac_ext
2453
cat >>conftest.$ac_ext <<_ACEOF
2454
/* end confdefs.h. */
2464
rm -f conftest.$ac_objext
2465
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2466
(eval $ac_compile) 2>conftest.er1
2468
grep -v '^ *+' conftest.er1 >conftest.err
2470
cat conftest.err >&5
2471
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472
(exit $ac_status); } &&
2473
{ ac_try='test -z "$ac_cxx_werror_flag"
2474
|| test ! -s conftest.err'
2475
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2478
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479
(exit $ac_status); }; } &&
2480
{ ac_try='test -s conftest.$ac_objext'
2481
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2484
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2485
(exit $ac_status); }; }; then
2486
ac_cv_prog_cxx_g=yes
2488
echo "$as_me: failed program was:" >&5
2489
sed 's/^/| /' conftest.$ac_ext >&5
2493
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2495
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2496
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3278
2497
if test "$ac_test_CXXFLAGS" = set; then
3279
2498
CXXFLAGS=$ac_save_CXXFLAGS
3280
2499
elif test $ac_cv_prog_cxx_g = yes; then
3838
3156
rm -f conftest.$ac_objext
3839
if { (ac_try="$ac_compile"
3841
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3842
*) ac_try_echo=$ac_try;;
3844
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3845
(eval "$ac_compile") 2>conftest.er1
3157
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3158
(eval $ac_compile) 2>conftest.er1
3847
3160
grep -v '^ *+' conftest.er1 >conftest.err
3848
3161
rm -f conftest.er1
3849
3162
cat conftest.err >&5
3850
3163
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851
(exit $ac_status); } && {
3852
test -z "$ac_c_werror_flag" ||
3853
test ! -s conftest.err
3854
} && test -s conftest.$ac_objext; then
3164
(exit $ac_status); } &&
3165
{ ac_try='test -z "$ac_c_werror_flag"
3166
|| test ! -s conftest.err'
3167
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3170
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3171
(exit $ac_status); }; } &&
3172
{ ac_try='test -s conftest.$ac_objext'
3173
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3176
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177
(exit $ac_status); }; }; then
3855
3178
ac_compiler_gnu=yes
3857
3180
echo "$as_me: failed program was:" >&5
3858
3181
sed 's/^/| /' conftest.$ac_ext >&5
3863
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3185
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3864
3186
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3867
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3868
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3189
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3190
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3869
3191
GCC=`test $ac_compiler_gnu = yes && echo yes`
3870
3192
ac_test_CFLAGS=${CFLAGS+set}
3871
3193
ac_save_CFLAGS=$CFLAGS
3872
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3873
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3195
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3196
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3874
3197
if test "${ac_cv_prog_cc_g+set}" = set; then
3875
3198
echo $ECHO_N "(cached) $ECHO_C" >&6
3877
ac_save_c_werror_flag=$ac_c_werror_flag
3878
ac_c_werror_flag=yes
3881
cat >conftest.$ac_ext <<_ACEOF
3884
cat confdefs.h >>conftest.$ac_ext
3885
cat >>conftest.$ac_ext <<_ACEOF
3886
/* end confdefs.h. */
3896
rm -f conftest.$ac_objext
3897
if { (ac_try="$ac_compile"
3899
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3900
*) ac_try_echo=$ac_try;;
3902
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3903
(eval "$ac_compile") 2>conftest.er1
3905
grep -v '^ *+' conftest.er1 >conftest.err
3907
cat conftest.err >&5
3908
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3909
(exit $ac_status); } && {
3910
test -z "$ac_c_werror_flag" ||
3911
test ! -s conftest.err
3912
} && test -s conftest.$ac_objext; then
3915
echo "$as_me: failed program was:" >&5
3916
sed 's/^/| /' conftest.$ac_ext >&5
3919
cat >conftest.$ac_ext <<_ACEOF
3922
cat confdefs.h >>conftest.$ac_ext
3923
cat >>conftest.$ac_ext <<_ACEOF
3924
/* end confdefs.h. */
3934
rm -f conftest.$ac_objext
3935
if { (ac_try="$ac_compile"
3937
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3938
*) ac_try_echo=$ac_try;;
3940
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3941
(eval "$ac_compile") 2>conftest.er1
3943
grep -v '^ *+' conftest.er1 >conftest.err
3945
cat conftest.err >&5
3946
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3947
(exit $ac_status); } && {
3948
test -z "$ac_c_werror_flag" ||
3949
test ! -s conftest.err
3950
} && test -s conftest.$ac_objext; then
3953
echo "$as_me: failed program was:" >&5
3954
sed 's/^/| /' conftest.$ac_ext >&5
3956
ac_c_werror_flag=$ac_save_c_werror_flag
3958
cat >conftest.$ac_ext <<_ACEOF
3961
cat confdefs.h >>conftest.$ac_ext
3962
cat >>conftest.$ac_ext <<_ACEOF
3963
/* end confdefs.h. */
3973
rm -f conftest.$ac_objext
3974
if { (ac_try="$ac_compile"
3976
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3977
*) ac_try_echo=$ac_try;;
3979
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3980
(eval "$ac_compile") 2>conftest.er1
3982
grep -v '^ *+' conftest.er1 >conftest.err
3984
cat conftest.err >&5
3985
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986
(exit $ac_status); } && {
3987
test -z "$ac_c_werror_flag" ||
3988
test ! -s conftest.err
3989
} && test -s conftest.$ac_objext; then
3992
echo "$as_me: failed program was:" >&5
3993
sed 's/^/| /' conftest.$ac_ext >&5
3998
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4001
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4004
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4005
ac_c_werror_flag=$ac_save_c_werror_flag
4007
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4008
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3200
cat >conftest.$ac_ext <<_ACEOF
3203
cat confdefs.h >>conftest.$ac_ext
3204
cat >>conftest.$ac_ext <<_ACEOF
3205
/* end confdefs.h. */
3215
rm -f conftest.$ac_objext
3216
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3217
(eval $ac_compile) 2>conftest.er1
3219
grep -v '^ *+' conftest.er1 >conftest.err
3221
cat conftest.err >&5
3222
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3223
(exit $ac_status); } &&
3224
{ ac_try='test -z "$ac_c_werror_flag"
3225
|| test ! -s conftest.err'
3226
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3229
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230
(exit $ac_status); }; } &&
3231
{ ac_try='test -s conftest.$ac_objext'
3232
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3235
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3236
(exit $ac_status); }; }; then
3239
echo "$as_me: failed program was:" >&5
3240
sed 's/^/| /' conftest.$ac_ext >&5
3244
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3246
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3247
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4009
3248
if test "$ac_test_CFLAGS" = set; then
4010
3249
CFLAGS=$ac_save_CFLAGS
4011
3250
elif test $ac_cv_prog_cc_g = yes; then
4088
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4089
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3322
# Don't try gcc -ansi; that turns off useful extensions and
3323
# breaks some systems' header files.
3324
# AIX -qlanglvl=ansi
3325
# Ultrix and OSF/1 -std1
3326
# HP-UX 10.20 and later -Ae
3327
# HP-UX older versions -Aa -D_HPUX_SOURCE
3328
# SVR4 -Xc -D__EXTENSIONS__
3329
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4091
3331
CC="$ac_save_CC $ac_arg"
4092
3332
rm -f conftest.$ac_objext
4093
if { (ac_try="$ac_compile"
4095
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4096
*) ac_try_echo=$ac_try;;
4098
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4099
(eval "$ac_compile") 2>conftest.er1
3333
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3334
(eval $ac_compile) 2>conftest.er1
4101
3336
grep -v '^ *+' conftest.er1 >conftest.err
4102
3337
rm -f conftest.er1
4103
3338
cat conftest.err >&5
4104
3339
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4105
(exit $ac_status); } && {
4106
test -z "$ac_c_werror_flag" ||
4107
test ! -s conftest.err
4108
} && test -s conftest.$ac_objext; then
4109
ac_cv_prog_cc_c89=$ac_arg
3340
(exit $ac_status); } &&
3341
{ ac_try='test -z "$ac_c_werror_flag"
3342
|| test ! -s conftest.err'
3343
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3346
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347
(exit $ac_status); }; } &&
3348
{ ac_try='test -s conftest.$ac_objext'
3349
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3352
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353
(exit $ac_status); }; }; then
3354
ac_cv_prog_cc_stdc=$ac_arg
4111
3357
echo "$as_me: failed program was:" >&5
4112
3358
sed 's/^/| /' conftest.$ac_ext >&5
4117
rm -f core conftest.err conftest.$ac_objext
4118
test "x$ac_cv_prog_cc_c89" != "xno" && break
3361
rm -f conftest.err conftest.$ac_objext
4120
rm -f conftest.$ac_ext
3363
rm -f conftest.$ac_ext conftest.$ac_objext
4125
case "x$ac_cv_prog_cc_c89" in
4127
{ echo "$as_me:$LINENO: result: none needed" >&5
4128
echo "${ECHO_T}none needed" >&6; } ;;
4130
{ echo "$as_me:$LINENO: result: unsupported" >&5
4131
echo "${ECHO_T}unsupported" >&6; } ;;
3368
case "x$ac_cv_prog_cc_stdc" in
3370
echo "$as_me:$LINENO: result: none needed" >&5
3371
echo "${ECHO_T}none needed" >&6 ;;
4133
CC="$CC $ac_cv_prog_cc_c89"
4134
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4135
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3373
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3374
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3375
CC="$CC $ac_cv_prog_cc_stdc" ;;
3378
# Some people use a C++ compiler to compile C. Since we use `exit',
3379
# in C++ we need to declare it. In case someone uses the same compiler
3380
# for both compiling C and C++ we need to have the C++ compiler decide
3381
# the declaration of exit, since it's the most demanding environment.
3382
cat >conftest.$ac_ext <<_ACEOF
3387
rm -f conftest.$ac_objext
3388
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3389
(eval $ac_compile) 2>conftest.er1
3391
grep -v '^ *+' conftest.er1 >conftest.err
3393
cat conftest.err >&5
3394
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3395
(exit $ac_status); } &&
3396
{ ac_try='test -z "$ac_c_werror_flag"
3397
|| test ! -s conftest.err'
3398
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3401
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402
(exit $ac_status); }; } &&
3403
{ ac_try='test -s conftest.$ac_objext'
3404
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3407
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3408
(exit $ac_status); }; }; then
3409
for ac_declaration in \
3411
'extern "C" void std::exit (int) throw (); using std::exit;' \
3412
'extern "C" void std::exit (int); using std::exit;' \
3413
'extern "C" void exit (int) throw ();' \
3414
'extern "C" void exit (int);' \
3417
cat >conftest.$ac_ext <<_ACEOF
3420
cat confdefs.h >>conftest.$ac_ext
3421
cat >>conftest.$ac_ext <<_ACEOF
3422
/* end confdefs.h. */
3433
rm -f conftest.$ac_objext
3434
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3435
(eval $ac_compile) 2>conftest.er1
3437
grep -v '^ *+' conftest.er1 >conftest.err
3439
cat conftest.err >&5
3440
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441
(exit $ac_status); } &&
3442
{ ac_try='test -z "$ac_c_werror_flag"
3443
|| test ! -s conftest.err'
3444
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3447
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3448
(exit $ac_status); }; } &&
3449
{ ac_try='test -s conftest.$ac_objext'
3450
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3453
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454
(exit $ac_status); }; }; then
3457
echo "$as_me: failed program was:" >&5
3458
sed 's/^/| /' conftest.$ac_ext >&5
3462
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3463
cat >conftest.$ac_ext <<_ACEOF
3466
cat confdefs.h >>conftest.$ac_ext
3467
cat >>conftest.$ac_ext <<_ACEOF
3468
/* end confdefs.h. */
3478
rm -f conftest.$ac_objext
3479
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3480
(eval $ac_compile) 2>conftest.er1
3482
grep -v '^ *+' conftest.er1 >conftest.err
3484
cat conftest.err >&5
3485
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486
(exit $ac_status); } &&
3487
{ ac_try='test -z "$ac_c_werror_flag"
3488
|| test ! -s conftest.err'
3489
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3492
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3493
(exit $ac_status); }; } &&
3494
{ ac_try='test -s conftest.$ac_objext'
3495
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3498
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499
(exit $ac_status); }; }; then
3502
echo "$as_me: failed program was:" >&5
3503
sed 's/^/| /' conftest.$ac_ext >&5
3506
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3509
if test -n "$ac_declaration"; then
3510
echo '#ifdef __cplusplus' >>confdefs.h
3511
echo $ac_declaration >>confdefs.h
3512
echo '#endif' >>confdefs.h
3516
echo "$as_me: failed program was:" >&5
3517
sed 's/^/| /' conftest.$ac_ext >&5
3520
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4140
3522
ac_cpp='$CPP $CPPFLAGS'
4141
3523
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4542
3894
SED=$lt_cv_path_SED
4544
{ echo "$as_me:$LINENO: result: $SED" >&5
4545
echo "${ECHO_T}$SED" >&6; }
4547
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4548
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4549
if test "${ac_cv_path_GREP+set}" = set; then
4550
echo $ECHO_N "(cached) $ECHO_C" >&6
4552
# Extract the first word of "grep ggrep" to use in msg output
4553
if test -z "$GREP"; then
4554
set dummy grep ggrep; ac_prog_name=$2
4555
if test "${ac_cv_path_GREP+set}" = set; then
4556
echo $ECHO_N "(cached) $ECHO_C" >&6
4558
ac_path_GREP_found=false
4559
# Loop through the user's path and test for each of PROGNAME-LIST
4560
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4561
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4564
test -z "$as_dir" && as_dir=.
4565
for ac_prog in grep ggrep; do
4566
for ac_exec_ext in '' $ac_executable_extensions; do
4567
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4568
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4569
# Check for GNU ac_path_GREP and select it if it is found.
4570
# Check for GNU $ac_path_GREP
4571
case `"$ac_path_GREP" --version 2>&1` in
4573
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4576
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4579
cat "conftest.in" "conftest.in" >"conftest.tmp"
4580
mv "conftest.tmp" "conftest.in"
4581
cp "conftest.in" "conftest.nl"
4582
echo 'GREP' >> "conftest.nl"
4583
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4584
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4585
ac_count=`expr $ac_count + 1`
4586
if test $ac_count -gt ${ac_path_GREP_max-0}; then
4587
# Best one so far, save it but keep looking for a better one
4588
ac_cv_path_GREP="$ac_path_GREP"
4589
ac_path_GREP_max=$ac_count
4591
# 10*(2^10) chars as input seems more than enough
4592
test $ac_count -gt 10 && break
4594
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4598
$ac_path_GREP_found && break 3
4608
GREP="$ac_cv_path_GREP"
4609
if test -z "$GREP"; then
4610
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4611
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4612
{ (exit 1); exit 1; }; }
4616
ac_cv_path_GREP=$GREP
4621
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4622
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4623
GREP="$ac_cv_path_GREP"
4626
{ echo "$as_me:$LINENO: checking for egrep" >&5
4627
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4628
if test "${ac_cv_path_EGREP+set}" = set; then
4629
echo $ECHO_N "(cached) $ECHO_C" >&6
4631
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4632
then ac_cv_path_EGREP="$GREP -E"
4634
# Extract the first word of "egrep" to use in msg output
4635
if test -z "$EGREP"; then
4636
set dummy egrep; ac_prog_name=$2
4637
if test "${ac_cv_path_EGREP+set}" = set; then
4638
echo $ECHO_N "(cached) $ECHO_C" >&6
4640
ac_path_EGREP_found=false
4641
# Loop through the user's path and test for each of PROGNAME-LIST
4642
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4643
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4646
test -z "$as_dir" && as_dir=.
4647
for ac_prog in egrep; do
4648
for ac_exec_ext in '' $ac_executable_extensions; do
4649
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4650
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4651
# Check for GNU ac_path_EGREP and select it if it is found.
4652
# Check for GNU $ac_path_EGREP
4653
case `"$ac_path_EGREP" --version 2>&1` in
4655
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4658
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4661
cat "conftest.in" "conftest.in" >"conftest.tmp"
4662
mv "conftest.tmp" "conftest.in"
4663
cp "conftest.in" "conftest.nl"
4664
echo 'EGREP' >> "conftest.nl"
4665
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4666
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4667
ac_count=`expr $ac_count + 1`
4668
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4669
# Best one so far, save it but keep looking for a better one
4670
ac_cv_path_EGREP="$ac_path_EGREP"
4671
ac_path_EGREP_max=$ac_count
4673
# 10*(2^10) chars as input seems more than enough
4674
test $ac_count -gt 10 && break
4676
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4680
$ac_path_EGREP_found && break 3
4690
EGREP="$ac_cv_path_EGREP"
4691
if test -z "$EGREP"; then
4692
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4693
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4694
{ (exit 1); exit 1; }; }
4698
ac_cv_path_EGREP=$EGREP
4704
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4705
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4706
EGREP="$ac_cv_path_EGREP"
4710
# Check whether --with-gnu-ld was given.
3895
echo "$as_me:$LINENO: result: $SED" >&5
3896
echo "${ECHO_T}$SED" >&6
3898
echo "$as_me:$LINENO: checking for egrep" >&5
3899
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3900
if test "${ac_cv_prog_egrep+set}" = set; then
3901
echo $ECHO_N "(cached) $ECHO_C" >&6
3903
if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3904
then ac_cv_prog_egrep='grep -E'
3905
else ac_cv_prog_egrep='egrep'
3908
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3909
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3910
EGREP=$ac_cv_prog_egrep
3914
# Check whether --with-gnu-ld or --without-gnu-ld was given.
4711
3915
if test "${with_gnu_ld+set}" = set; then
4712
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3916
withval="$with_gnu_ld"
3917
test "$withval" = no || with_gnu_ld=yes
4718
3922
if test "$GCC" = yes; then
4719
3923
# Check if gcc -print-prog-name=ld gives a path.
4720
{ echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4721
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3924
echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3925
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4724
3928
# gcc leaves a trailing carriage return which upsets mingw
13543
12238
enable_fast_install=needless
12243
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12244
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12245
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12246
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12247
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12248
echo "$as_me:$LINENO: result: yes" >&5
12249
echo "${ECHO_T}yes" >&6
12251
# FIXME - insert some real tests, host_os isn't really good enough
12254
if test -n "$STRIP" ; then
12255
striplib="$STRIP -x"
12256
echo "$as_me:$LINENO: result: yes" >&5
12257
echo "${ECHO_T}yes" >&6
12259
echo "$as_me:$LINENO: result: no" >&5
12260
echo "${ECHO_T}no" >&6
12264
echo "$as_me:$LINENO: result: no" >&5
12265
echo "${ECHO_T}no" >&6
12270
if test "x$enable_dlopen" != xyes; then
12271
enable_dlopen=unknown
12272
enable_dlopen_self=unknown
12273
enable_dlopen_self_static=unknown
12280
lt_cv_dlopen="load_add_on"
12282
lt_cv_dlopen_self=yes
12286
lt_cv_dlopen="LoadLibrary"
12291
lt_cv_dlopen="dlopen"
12296
# if libdl is installed we need to link against it
12297
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12298
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12299
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12300
echo $ECHO_N "(cached) $ECHO_C" >&6
12302
ac_check_lib_save_LIBS=$LIBS
12304
cat >conftest.$ac_ext <<_ACEOF
12307
cat confdefs.h >>conftest.$ac_ext
12308
cat >>conftest.$ac_ext <<_ACEOF
12309
/* end confdefs.h. */
12311
/* Override any gcc2 internal prototype to avoid an error. */
12315
/* We use char because int might match the return type of a gcc2
12316
builtin and then its argument prototype would still apply. */
12326
rm -f conftest.$ac_objext conftest$ac_exeext
12327
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12328
(eval $ac_link) 2>conftest.er1
12330
grep -v '^ *+' conftest.er1 >conftest.err
12332
cat conftest.err >&5
12333
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12334
(exit $ac_status); } &&
12335
{ ac_try='test -z "$ac_cxx_werror_flag"
12336
|| test ! -s conftest.err'
12337
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12338
(eval $ac_try) 2>&5
12340
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12341
(exit $ac_status); }; } &&
12342
{ ac_try='test -s conftest$ac_exeext'
12343
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12344
(eval $ac_try) 2>&5
12346
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12347
(exit $ac_status); }; }; then
12348
ac_cv_lib_dl_dlopen=yes
12350
echo "$as_me: failed program was:" >&5
12351
sed 's/^/| /' conftest.$ac_ext >&5
12353
ac_cv_lib_dl_dlopen=no
12355
rm -f conftest.err conftest.$ac_objext \
12356
conftest$ac_exeext conftest.$ac_ext
12357
LIBS=$ac_check_lib_save_LIBS
12359
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12360
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12361
if test $ac_cv_lib_dl_dlopen = yes; then
12362
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12365
lt_cv_dlopen="dyld"
12367
lt_cv_dlopen_self=yes
12374
echo "$as_me:$LINENO: checking for shl_load" >&5
12375
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12376
if test "${ac_cv_func_shl_load+set}" = set; then
12377
echo $ECHO_N "(cached) $ECHO_C" >&6
12379
cat >conftest.$ac_ext <<_ACEOF
12382
cat confdefs.h >>conftest.$ac_ext
12383
cat >>conftest.$ac_ext <<_ACEOF
12384
/* end confdefs.h. */
12385
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12386
For example, HP-UX 11i <limits.h> declares gettimeofday. */
12387
#define shl_load innocuous_shl_load
12389
/* System header to define __stub macros and hopefully few prototypes,
12390
which can conflict with char shl_load (); below.
12391
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12392
<limits.h> exists even on freestanding compilers. */
12395
# include <limits.h>
12397
# include <assert.h>
12402
/* Override any gcc2 internal prototype to avoid an error. */
12407
/* We use char because int might match the return type of a gcc2
12408
builtin and then its argument prototype would still apply. */
12410
/* The GNU C library defines this for functions which it implements
12411
to always fail with ENOSYS. Some functions are actually named
12412
something starting with __ and the normal name is an alias. */
12413
#if defined (__stub_shl_load) || defined (__stub___shl_load)
12416
char (*f) () = shl_load;
12425
return f != shl_load;
12430
rm -f conftest.$ac_objext conftest$ac_exeext
12431
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12432
(eval $ac_link) 2>conftest.er1
12434
grep -v '^ *+' conftest.er1 >conftest.err
12436
cat conftest.err >&5
12437
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12438
(exit $ac_status); } &&
12439
{ ac_try='test -z "$ac_cxx_werror_flag"
12440
|| test ! -s conftest.err'
12441
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12442
(eval $ac_try) 2>&5
12444
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12445
(exit $ac_status); }; } &&
12446
{ ac_try='test -s conftest$ac_exeext'
12447
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12448
(eval $ac_try) 2>&5
12450
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12451
(exit $ac_status); }; }; then
12452
ac_cv_func_shl_load=yes
12454
echo "$as_me: failed program was:" >&5
12455
sed 's/^/| /' conftest.$ac_ext >&5
12457
ac_cv_func_shl_load=no
12459
rm -f conftest.err conftest.$ac_objext \
12460
conftest$ac_exeext conftest.$ac_ext
12462
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12463
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12464
if test $ac_cv_func_shl_load = yes; then
12465
lt_cv_dlopen="shl_load"
12467
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12468
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12469
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12470
echo $ECHO_N "(cached) $ECHO_C" >&6
12472
ac_check_lib_save_LIBS=$LIBS
12474
cat >conftest.$ac_ext <<_ACEOF
12477
cat confdefs.h >>conftest.$ac_ext
12478
cat >>conftest.$ac_ext <<_ACEOF
12479
/* end confdefs.h. */
12481
/* Override any gcc2 internal prototype to avoid an error. */
12485
/* We use char because int might match the return type of a gcc2
12486
builtin and then its argument prototype would still apply. */
12496
rm -f conftest.$ac_objext conftest$ac_exeext
12497
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12498
(eval $ac_link) 2>conftest.er1
12500
grep -v '^ *+' conftest.er1 >conftest.err
12502
cat conftest.err >&5
12503
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12504
(exit $ac_status); } &&
12505
{ ac_try='test -z "$ac_cxx_werror_flag"
12506
|| test ! -s conftest.err'
12507
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12508
(eval $ac_try) 2>&5
12510
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12511
(exit $ac_status); }; } &&
12512
{ ac_try='test -s conftest$ac_exeext'
12513
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12514
(eval $ac_try) 2>&5
12516
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12517
(exit $ac_status); }; }; then
12518
ac_cv_lib_dld_shl_load=yes
12520
echo "$as_me: failed program was:" >&5
12521
sed 's/^/| /' conftest.$ac_ext >&5
12523
ac_cv_lib_dld_shl_load=no
12525
rm -f conftest.err conftest.$ac_objext \
12526
conftest$ac_exeext conftest.$ac_ext
12527
LIBS=$ac_check_lib_save_LIBS
12529
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12530
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12531
if test $ac_cv_lib_dld_shl_load = yes; then
12532
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12534
echo "$as_me:$LINENO: checking for dlopen" >&5
12535
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12536
if test "${ac_cv_func_dlopen+set}" = set; then
12537
echo $ECHO_N "(cached) $ECHO_C" >&6
12539
cat >conftest.$ac_ext <<_ACEOF
12542
cat confdefs.h >>conftest.$ac_ext
12543
cat >>conftest.$ac_ext <<_ACEOF
12544
/* end confdefs.h. */
12545
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12546
For example, HP-UX 11i <limits.h> declares gettimeofday. */
12547
#define dlopen innocuous_dlopen
12549
/* System header to define __stub macros and hopefully few prototypes,
12550
which can conflict with char dlopen (); below.
12551
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12552
<limits.h> exists even on freestanding compilers. */
12555
# include <limits.h>
12557
# include <assert.h>
12562
/* Override any gcc2 internal prototype to avoid an error. */
12567
/* We use char because int might match the return type of a gcc2
12568
builtin and then its argument prototype would still apply. */
12570
/* The GNU C library defines this for functions which it implements
12571
to always fail with ENOSYS. Some functions are actually named
12572
something starting with __ and the normal name is an alias. */
12573
#if defined (__stub_dlopen) || defined (__stub___dlopen)
12576
char (*f) () = dlopen;
12585
return f != dlopen;
12590
rm -f conftest.$ac_objext conftest$ac_exeext
12591
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12592
(eval $ac_link) 2>conftest.er1
12594
grep -v '^ *+' conftest.er1 >conftest.err
12596
cat conftest.err >&5
12597
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12598
(exit $ac_status); } &&
12599
{ ac_try='test -z "$ac_cxx_werror_flag"
12600
|| test ! -s conftest.err'
12601
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12602
(eval $ac_try) 2>&5
12604
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12605
(exit $ac_status); }; } &&
12606
{ ac_try='test -s conftest$ac_exeext'
12607
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12608
(eval $ac_try) 2>&5
12610
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12611
(exit $ac_status); }; }; then
12612
ac_cv_func_dlopen=yes
12614
echo "$as_me: failed program was:" >&5
12615
sed 's/^/| /' conftest.$ac_ext >&5
12617
ac_cv_func_dlopen=no
12619
rm -f conftest.err conftest.$ac_objext \
12620
conftest$ac_exeext conftest.$ac_ext
12622
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12623
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12624
if test $ac_cv_func_dlopen = yes; then
12625
lt_cv_dlopen="dlopen"
12627
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12628
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12629
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12630
echo $ECHO_N "(cached) $ECHO_C" >&6
12632
ac_check_lib_save_LIBS=$LIBS
12634
cat >conftest.$ac_ext <<_ACEOF
12637
cat confdefs.h >>conftest.$ac_ext
12638
cat >>conftest.$ac_ext <<_ACEOF
12639
/* end confdefs.h. */
12641
/* Override any gcc2 internal prototype to avoid an error. */
12645
/* We use char because int might match the return type of a gcc2
12646
builtin and then its argument prototype would still apply. */
12656
rm -f conftest.$ac_objext conftest$ac_exeext
12657
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12658
(eval $ac_link) 2>conftest.er1
12660
grep -v '^ *+' conftest.er1 >conftest.err
12662
cat conftest.err >&5
12663
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12664
(exit $ac_status); } &&
12665
{ ac_try='test -z "$ac_cxx_werror_flag"
12666
|| test ! -s conftest.err'
12667
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12668
(eval $ac_try) 2>&5
12670
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12671
(exit $ac_status); }; } &&
12672
{ ac_try='test -s conftest$ac_exeext'
12673
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12674
(eval $ac_try) 2>&5
12676
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12677
(exit $ac_status); }; }; then
12678
ac_cv_lib_dl_dlopen=yes
12680
echo "$as_me: failed program was:" >&5
12681
sed 's/^/| /' conftest.$ac_ext >&5
12683
ac_cv_lib_dl_dlopen=no
12685
rm -f conftest.err conftest.$ac_objext \
12686
conftest$ac_exeext conftest.$ac_ext
12687
LIBS=$ac_check_lib_save_LIBS
12689
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12690
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12691
if test $ac_cv_lib_dl_dlopen = yes; then
12692
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12694
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12695
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12696
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12697
echo $ECHO_N "(cached) $ECHO_C" >&6
12699
ac_check_lib_save_LIBS=$LIBS
12700
LIBS="-lsvld $LIBS"
12701
cat >conftest.$ac_ext <<_ACEOF
12704
cat confdefs.h >>conftest.$ac_ext
12705
cat >>conftest.$ac_ext <<_ACEOF
12706
/* end confdefs.h. */
12708
/* Override any gcc2 internal prototype to avoid an error. */
12712
/* We use char because int might match the return type of a gcc2
12713
builtin and then its argument prototype would still apply. */
12723
rm -f conftest.$ac_objext conftest$ac_exeext
12724
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12725
(eval $ac_link) 2>conftest.er1
12727
grep -v '^ *+' conftest.er1 >conftest.err
12729
cat conftest.err >&5
12730
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12731
(exit $ac_status); } &&
12732
{ ac_try='test -z "$ac_cxx_werror_flag"
12733
|| test ! -s conftest.err'
12734
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12735
(eval $ac_try) 2>&5
12737
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12738
(exit $ac_status); }; } &&
12739
{ ac_try='test -s conftest$ac_exeext'
12740
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12741
(eval $ac_try) 2>&5
12743
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12744
(exit $ac_status); }; }; then
12745
ac_cv_lib_svld_dlopen=yes
12747
echo "$as_me: failed program was:" >&5
12748
sed 's/^/| /' conftest.$ac_ext >&5
12750
ac_cv_lib_svld_dlopen=no
12752
rm -f conftest.err conftest.$ac_objext \
12753
conftest$ac_exeext conftest.$ac_ext
12754
LIBS=$ac_check_lib_save_LIBS
12756
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12757
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12758
if test $ac_cv_lib_svld_dlopen = yes; then
12759
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12761
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12762
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12763
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12764
echo $ECHO_N "(cached) $ECHO_C" >&6
12766
ac_check_lib_save_LIBS=$LIBS
12768
cat >conftest.$ac_ext <<_ACEOF
12771
cat confdefs.h >>conftest.$ac_ext
12772
cat >>conftest.$ac_ext <<_ACEOF
12773
/* end confdefs.h. */
12775
/* Override any gcc2 internal prototype to avoid an error. */
12779
/* We use char because int might match the return type of a gcc2
12780
builtin and then its argument prototype would still apply. */
12790
rm -f conftest.$ac_objext conftest$ac_exeext
12791
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12792
(eval $ac_link) 2>conftest.er1
12794
grep -v '^ *+' conftest.er1 >conftest.err
12796
cat conftest.err >&5
12797
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12798
(exit $ac_status); } &&
12799
{ ac_try='test -z "$ac_cxx_werror_flag"
12800
|| test ! -s conftest.err'
12801
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12802
(eval $ac_try) 2>&5
12804
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12805
(exit $ac_status); }; } &&
12806
{ ac_try='test -s conftest$ac_exeext'
12807
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12808
(eval $ac_try) 2>&5
12810
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12811
(exit $ac_status); }; }; then
12812
ac_cv_lib_dld_dld_link=yes
12814
echo "$as_me: failed program was:" >&5
12815
sed 's/^/| /' conftest.$ac_ext >&5
12817
ac_cv_lib_dld_dld_link=no
12819
rm -f conftest.err conftest.$ac_objext \
12820
conftest$ac_exeext conftest.$ac_ext
12821
LIBS=$ac_check_lib_save_LIBS
12823
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12824
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12825
if test $ac_cv_lib_dld_dld_link = yes; then
12826
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12847
if test "x$lt_cv_dlopen" != xno; then
12853
case $lt_cv_dlopen in
12855
save_CPPFLAGS="$CPPFLAGS"
12856
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12858
save_LDFLAGS="$LDFLAGS"
12859
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12862
LIBS="$lt_cv_dlopen_libs $LIBS"
12864
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12865
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12866
if test "${lt_cv_dlopen_self+set}" = set; then
12867
echo $ECHO_N "(cached) $ECHO_C" >&6
12869
if test "$cross_compiling" = yes; then :
12870
lt_cv_dlopen_self=cross
12872
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12873
lt_status=$lt_dlunknown
12874
cat > conftest.$ac_ext <<EOF
12875
#line 12875 "configure"
12876
#include "confdefs.h"
12885
# define LT_DLGLOBAL RTLD_GLOBAL
12888
# define LT_DLGLOBAL DL_GLOBAL
12890
# define LT_DLGLOBAL 0
12894
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12895
find out it does not work in some platform. */
12896
#ifndef LT_DLLAZY_OR_NOW
12898
# define LT_DLLAZY_OR_NOW RTLD_LAZY
12901
# define LT_DLLAZY_OR_NOW DL_LAZY
12904
# define LT_DLLAZY_OR_NOW RTLD_NOW
12907
# define LT_DLLAZY_OR_NOW DL_NOW
12909
# define LT_DLLAZY_OR_NOW 0
12917
extern "C" void exit (int);
12920
void fnord() { int i=42;}
12923
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12924
int status = $lt_dlunknown;
12928
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12929
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12930
/* dlclose (self); */
12936
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12937
(eval $ac_link) 2>&5
12939
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12940
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12941
(./conftest; exit; ) 2>/dev/null
12943
case x$lt_status in
12944
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12945
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12946
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12949
# compilation failed
12950
lt_cv_dlopen_self=no
12957
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12958
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12960
if test "x$lt_cv_dlopen_self" = xyes; then
12961
LDFLAGS="$LDFLAGS $link_static_flag"
12962
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12963
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12964
if test "${lt_cv_dlopen_self_static+set}" = set; then
12965
echo $ECHO_N "(cached) $ECHO_C" >&6
12967
if test "$cross_compiling" = yes; then :
12968
lt_cv_dlopen_self_static=cross
12970
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12971
lt_status=$lt_dlunknown
12972
cat > conftest.$ac_ext <<EOF
12973
#line 12973 "configure"
12974
#include "confdefs.h"
12983
# define LT_DLGLOBAL RTLD_GLOBAL
12986
# define LT_DLGLOBAL DL_GLOBAL
12988
# define LT_DLGLOBAL 0
12992
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12993
find out it does not work in some platform. */
12994
#ifndef LT_DLLAZY_OR_NOW
12996
# define LT_DLLAZY_OR_NOW RTLD_LAZY
12999
# define LT_DLLAZY_OR_NOW DL_LAZY
13002
# define LT_DLLAZY_OR_NOW RTLD_NOW
13005
# define LT_DLLAZY_OR_NOW DL_NOW
13007
# define LT_DLLAZY_OR_NOW 0
13015
extern "C" void exit (int);
13018
void fnord() { int i=42;}
13021
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13022
int status = $lt_dlunknown;
13026
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13027
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13028
/* dlclose (self); */
13034
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13035
(eval $ac_link) 2>&5
13037
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13038
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13039
(./conftest; exit; ) 2>/dev/null
13041
case x$lt_status in
13042
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13043
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13044
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13047
# compilation failed
13048
lt_cv_dlopen_self_static=no
13055
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13056
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
13059
CPPFLAGS="$save_CPPFLAGS"
13060
LDFLAGS="$save_LDFLAGS"
13065
case $lt_cv_dlopen_self in
13066
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13067
*) enable_dlopen_self=unknown ;;
13070
case $lt_cv_dlopen_self_static in
13071
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13072
*) enable_dlopen_self_static=unknown ;;
13547
13077
# The else clause should only fire when bootstrapping the
13548
13078
# libtool distribution, otherwise you forgot to ship ltmain.sh
18771
17969
enable_fast_install=needless
17974
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17975
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17976
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17977
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17978
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17979
echo "$as_me:$LINENO: result: yes" >&5
17980
echo "${ECHO_T}yes" >&6
17982
# FIXME - insert some real tests, host_os isn't really good enough
17985
if test -n "$STRIP" ; then
17986
striplib="$STRIP -x"
17987
echo "$as_me:$LINENO: result: yes" >&5
17988
echo "${ECHO_T}yes" >&6
17990
echo "$as_me:$LINENO: result: no" >&5
17991
echo "${ECHO_T}no" >&6
17995
echo "$as_me:$LINENO: result: no" >&5
17996
echo "${ECHO_T}no" >&6
18001
if test "x$enable_dlopen" != xyes; then
18002
enable_dlopen=unknown
18003
enable_dlopen_self=unknown
18004
enable_dlopen_self_static=unknown
18011
lt_cv_dlopen="load_add_on"
18013
lt_cv_dlopen_self=yes
18017
lt_cv_dlopen="LoadLibrary"
18022
lt_cv_dlopen="dlopen"
18027
# if libdl is installed we need to link against it
18028
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18029
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18030
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18031
echo $ECHO_N "(cached) $ECHO_C" >&6
18033
ac_check_lib_save_LIBS=$LIBS
18035
cat >conftest.$ac_ext <<_ACEOF
18038
cat confdefs.h >>conftest.$ac_ext
18039
cat >>conftest.$ac_ext <<_ACEOF
18040
/* end confdefs.h. */
18042
/* Override any gcc2 internal prototype to avoid an error. */
18046
/* We use char because int might match the return type of a gcc2
18047
builtin and then its argument prototype would still apply. */
18057
rm -f conftest.$ac_objext conftest$ac_exeext
18058
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18059
(eval $ac_link) 2>conftest.er1
18061
grep -v '^ *+' conftest.er1 >conftest.err
18063
cat conftest.err >&5
18064
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18065
(exit $ac_status); } &&
18066
{ ac_try='test -z "$ac_c_werror_flag"
18067
|| test ! -s conftest.err'
18068
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18069
(eval $ac_try) 2>&5
18071
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18072
(exit $ac_status); }; } &&
18073
{ ac_try='test -s conftest$ac_exeext'
18074
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18075
(eval $ac_try) 2>&5
18077
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18078
(exit $ac_status); }; }; then
18079
ac_cv_lib_dl_dlopen=yes
18081
echo "$as_me: failed program was:" >&5
18082
sed 's/^/| /' conftest.$ac_ext >&5
18084
ac_cv_lib_dl_dlopen=no
18086
rm -f conftest.err conftest.$ac_objext \
18087
conftest$ac_exeext conftest.$ac_ext
18088
LIBS=$ac_check_lib_save_LIBS
18090
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18091
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18092
if test $ac_cv_lib_dl_dlopen = yes; then
18093
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18096
lt_cv_dlopen="dyld"
18098
lt_cv_dlopen_self=yes
18105
echo "$as_me:$LINENO: checking for shl_load" >&5
18106
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
18107
if test "${ac_cv_func_shl_load+set}" = set; then
18108
echo $ECHO_N "(cached) $ECHO_C" >&6
18110
cat >conftest.$ac_ext <<_ACEOF
18113
cat confdefs.h >>conftest.$ac_ext
18114
cat >>conftest.$ac_ext <<_ACEOF
18115
/* end confdefs.h. */
18116
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18117
For example, HP-UX 11i <limits.h> declares gettimeofday. */
18118
#define shl_load innocuous_shl_load
18120
/* System header to define __stub macros and hopefully few prototypes,
18121
which can conflict with char shl_load (); below.
18122
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18123
<limits.h> exists even on freestanding compilers. */
18126
# include <limits.h>
18128
# include <assert.h>
18133
/* Override any gcc2 internal prototype to avoid an error. */
18138
/* We use char because int might match the return type of a gcc2
18139
builtin and then its argument prototype would still apply. */
18141
/* The GNU C library defines this for functions which it implements
18142
to always fail with ENOSYS. Some functions are actually named
18143
something starting with __ and the normal name is an alias. */
18144
#if defined (__stub_shl_load) || defined (__stub___shl_load)
18147
char (*f) () = shl_load;
18156
return f != shl_load;
18161
rm -f conftest.$ac_objext conftest$ac_exeext
18162
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18163
(eval $ac_link) 2>conftest.er1
18165
grep -v '^ *+' conftest.er1 >conftest.err
18167
cat conftest.err >&5
18168
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18169
(exit $ac_status); } &&
18170
{ ac_try='test -z "$ac_c_werror_flag"
18171
|| test ! -s conftest.err'
18172
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18173
(eval $ac_try) 2>&5
18175
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18176
(exit $ac_status); }; } &&
18177
{ ac_try='test -s conftest$ac_exeext'
18178
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18179
(eval $ac_try) 2>&5
18181
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18182
(exit $ac_status); }; }; then
18183
ac_cv_func_shl_load=yes
18185
echo "$as_me: failed program was:" >&5
18186
sed 's/^/| /' conftest.$ac_ext >&5
18188
ac_cv_func_shl_load=no
18190
rm -f conftest.err conftest.$ac_objext \
18191
conftest$ac_exeext conftest.$ac_ext
18193
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18194
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18195
if test $ac_cv_func_shl_load = yes; then
18196
lt_cv_dlopen="shl_load"
18198
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18199
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18200
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18201
echo $ECHO_N "(cached) $ECHO_C" >&6
18203
ac_check_lib_save_LIBS=$LIBS
18205
cat >conftest.$ac_ext <<_ACEOF
18208
cat confdefs.h >>conftest.$ac_ext
18209
cat >>conftest.$ac_ext <<_ACEOF
18210
/* end confdefs.h. */
18212
/* Override any gcc2 internal prototype to avoid an error. */
18216
/* We use char because int might match the return type of a gcc2
18217
builtin and then its argument prototype would still apply. */
18227
rm -f conftest.$ac_objext conftest$ac_exeext
18228
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18229
(eval $ac_link) 2>conftest.er1
18231
grep -v '^ *+' conftest.er1 >conftest.err
18233
cat conftest.err >&5
18234
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18235
(exit $ac_status); } &&
18236
{ ac_try='test -z "$ac_c_werror_flag"
18237
|| test ! -s conftest.err'
18238
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18239
(eval $ac_try) 2>&5
18241
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18242
(exit $ac_status); }; } &&
18243
{ ac_try='test -s conftest$ac_exeext'
18244
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18245
(eval $ac_try) 2>&5
18247
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18248
(exit $ac_status); }; }; then
18249
ac_cv_lib_dld_shl_load=yes
18251
echo "$as_me: failed program was:" >&5
18252
sed 's/^/| /' conftest.$ac_ext >&5
18254
ac_cv_lib_dld_shl_load=no
18256
rm -f conftest.err conftest.$ac_objext \
18257
conftest$ac_exeext conftest.$ac_ext
18258
LIBS=$ac_check_lib_save_LIBS
18260
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18261
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18262
if test $ac_cv_lib_dld_shl_load = yes; then
18263
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18265
echo "$as_me:$LINENO: checking for dlopen" >&5
18266
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18267
if test "${ac_cv_func_dlopen+set}" = set; then
18268
echo $ECHO_N "(cached) $ECHO_C" >&6
18270
cat >conftest.$ac_ext <<_ACEOF
18273
cat confdefs.h >>conftest.$ac_ext
18274
cat >>conftest.$ac_ext <<_ACEOF
18275
/* end confdefs.h. */
18276
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18277
For example, HP-UX 11i <limits.h> declares gettimeofday. */
18278
#define dlopen innocuous_dlopen
18280
/* System header to define __stub macros and hopefully few prototypes,
18281
which can conflict with char dlopen (); below.
18282
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18283
<limits.h> exists even on freestanding compilers. */
18286
# include <limits.h>
18288
# include <assert.h>
18293
/* Override any gcc2 internal prototype to avoid an error. */
18298
/* We use char because int might match the return type of a gcc2
18299
builtin and then its argument prototype would still apply. */
18301
/* The GNU C library defines this for functions which it implements
18302
to always fail with ENOSYS. Some functions are actually named
18303
something starting with __ and the normal name is an alias. */
18304
#if defined (__stub_dlopen) || defined (__stub___dlopen)
18307
char (*f) () = dlopen;
18316
return f != dlopen;
18321
rm -f conftest.$ac_objext conftest$ac_exeext
18322
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18323
(eval $ac_link) 2>conftest.er1
18325
grep -v '^ *+' conftest.er1 >conftest.err
18327
cat conftest.err >&5
18328
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18329
(exit $ac_status); } &&
18330
{ ac_try='test -z "$ac_c_werror_flag"
18331
|| test ! -s conftest.err'
18332
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18333
(eval $ac_try) 2>&5
18335
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18336
(exit $ac_status); }; } &&
18337
{ ac_try='test -s conftest$ac_exeext'
18338
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18339
(eval $ac_try) 2>&5
18341
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18342
(exit $ac_status); }; }; then
18343
ac_cv_func_dlopen=yes
18345
echo "$as_me: failed program was:" >&5
18346
sed 's/^/| /' conftest.$ac_ext >&5
18348
ac_cv_func_dlopen=no
18350
rm -f conftest.err conftest.$ac_objext \
18351
conftest$ac_exeext conftest.$ac_ext
18353
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18354
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18355
if test $ac_cv_func_dlopen = yes; then
18356
lt_cv_dlopen="dlopen"
18358
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18359
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18360
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18361
echo $ECHO_N "(cached) $ECHO_C" >&6
18363
ac_check_lib_save_LIBS=$LIBS
18365
cat >conftest.$ac_ext <<_ACEOF
18368
cat confdefs.h >>conftest.$ac_ext
18369
cat >>conftest.$ac_ext <<_ACEOF
18370
/* end confdefs.h. */
18372
/* Override any gcc2 internal prototype to avoid an error. */
18376
/* We use char because int might match the return type of a gcc2
18377
builtin and then its argument prototype would still apply. */
18387
rm -f conftest.$ac_objext conftest$ac_exeext
18388
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18389
(eval $ac_link) 2>conftest.er1
18391
grep -v '^ *+' conftest.er1 >conftest.err
18393
cat conftest.err >&5
18394
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18395
(exit $ac_status); } &&
18396
{ ac_try='test -z "$ac_c_werror_flag"
18397
|| test ! -s conftest.err'
18398
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18399
(eval $ac_try) 2>&5
18401
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18402
(exit $ac_status); }; } &&
18403
{ ac_try='test -s conftest$ac_exeext'
18404
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18405
(eval $ac_try) 2>&5
18407
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18408
(exit $ac_status); }; }; then
18409
ac_cv_lib_dl_dlopen=yes
18411
echo "$as_me: failed program was:" >&5
18412
sed 's/^/| /' conftest.$ac_ext >&5
18414
ac_cv_lib_dl_dlopen=no
18416
rm -f conftest.err conftest.$ac_objext \
18417
conftest$ac_exeext conftest.$ac_ext
18418
LIBS=$ac_check_lib_save_LIBS
18420
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18421
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18422
if test $ac_cv_lib_dl_dlopen = yes; then
18423
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18425
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18426
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18427
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18428
echo $ECHO_N "(cached) $ECHO_C" >&6
18430
ac_check_lib_save_LIBS=$LIBS
18431
LIBS="-lsvld $LIBS"
18432
cat >conftest.$ac_ext <<_ACEOF
18435
cat confdefs.h >>conftest.$ac_ext
18436
cat >>conftest.$ac_ext <<_ACEOF
18437
/* end confdefs.h. */
18439
/* Override any gcc2 internal prototype to avoid an error. */
18443
/* We use char because int might match the return type of a gcc2
18444
builtin and then its argument prototype would still apply. */
18454
rm -f conftest.$ac_objext conftest$ac_exeext
18455
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18456
(eval $ac_link) 2>conftest.er1
18458
grep -v '^ *+' conftest.er1 >conftest.err
18460
cat conftest.err >&5
18461
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18462
(exit $ac_status); } &&
18463
{ ac_try='test -z "$ac_c_werror_flag"
18464
|| test ! -s conftest.err'
18465
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18466
(eval $ac_try) 2>&5
18468
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18469
(exit $ac_status); }; } &&
18470
{ ac_try='test -s conftest$ac_exeext'
18471
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18472
(eval $ac_try) 2>&5
18474
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18475
(exit $ac_status); }; }; then
18476
ac_cv_lib_svld_dlopen=yes
18478
echo "$as_me: failed program was:" >&5
18479
sed 's/^/| /' conftest.$ac_ext >&5
18481
ac_cv_lib_svld_dlopen=no
18483
rm -f conftest.err conftest.$ac_objext \
18484
conftest$ac_exeext conftest.$ac_ext
18485
LIBS=$ac_check_lib_save_LIBS
18487
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18488
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18489
if test $ac_cv_lib_svld_dlopen = yes; then
18490
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18492
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18493
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18494
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18495
echo $ECHO_N "(cached) $ECHO_C" >&6
18497
ac_check_lib_save_LIBS=$LIBS
18499
cat >conftest.$ac_ext <<_ACEOF
18502
cat confdefs.h >>conftest.$ac_ext
18503
cat >>conftest.$ac_ext <<_ACEOF
18504
/* end confdefs.h. */
18506
/* Override any gcc2 internal prototype to avoid an error. */
18510
/* We use char because int might match the return type of a gcc2
18511
builtin and then its argument prototype would still apply. */
18521
rm -f conftest.$ac_objext conftest$ac_exeext
18522
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18523
(eval $ac_link) 2>conftest.er1
18525
grep -v '^ *+' conftest.er1 >conftest.err
18527
cat conftest.err >&5
18528
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18529
(exit $ac_status); } &&
18530
{ ac_try='test -z "$ac_c_werror_flag"
18531
|| test ! -s conftest.err'
18532
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18533
(eval $ac_try) 2>&5
18535
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18536
(exit $ac_status); }; } &&
18537
{ ac_try='test -s conftest$ac_exeext'
18538
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18539
(eval $ac_try) 2>&5
18541
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18542
(exit $ac_status); }; }; then
18543
ac_cv_lib_dld_dld_link=yes
18545
echo "$as_me: failed program was:" >&5
18546
sed 's/^/| /' conftest.$ac_ext >&5
18548
ac_cv_lib_dld_dld_link=no
18550
rm -f conftest.err conftest.$ac_objext \
18551
conftest$ac_exeext conftest.$ac_ext
18552
LIBS=$ac_check_lib_save_LIBS
18554
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18555
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18556
if test $ac_cv_lib_dld_dld_link = yes; then
18557
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18578
if test "x$lt_cv_dlopen" != xno; then
18584
case $lt_cv_dlopen in
18586
save_CPPFLAGS="$CPPFLAGS"
18587
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18589
save_LDFLAGS="$LDFLAGS"
18590
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18593
LIBS="$lt_cv_dlopen_libs $LIBS"
18595
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18596
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18597
if test "${lt_cv_dlopen_self+set}" = set; then
18598
echo $ECHO_N "(cached) $ECHO_C" >&6
18600
if test "$cross_compiling" = yes; then :
18601
lt_cv_dlopen_self=cross
18603
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18604
lt_status=$lt_dlunknown
18605
cat > conftest.$ac_ext <<EOF
18606
#line 18606 "configure"
18607
#include "confdefs.h"
18616
# define LT_DLGLOBAL RTLD_GLOBAL
18619
# define LT_DLGLOBAL DL_GLOBAL
18621
# define LT_DLGLOBAL 0
18625
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18626
find out it does not work in some platform. */
18627
#ifndef LT_DLLAZY_OR_NOW
18629
# define LT_DLLAZY_OR_NOW RTLD_LAZY
18632
# define LT_DLLAZY_OR_NOW DL_LAZY
18635
# define LT_DLLAZY_OR_NOW RTLD_NOW
18638
# define LT_DLLAZY_OR_NOW DL_NOW
18640
# define LT_DLLAZY_OR_NOW 0
18648
extern "C" void exit (int);
18651
void fnord() { int i=42;}
18654
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18655
int status = $lt_dlunknown;
18659
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18660
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18661
/* dlclose (self); */
18667
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18668
(eval $ac_link) 2>&5
18670
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18671
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18672
(./conftest; exit; ) 2>/dev/null
18674
case x$lt_status in
18675
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18676
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18677
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18680
# compilation failed
18681
lt_cv_dlopen_self=no
18688
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18689
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18691
if test "x$lt_cv_dlopen_self" = xyes; then
18692
LDFLAGS="$LDFLAGS $link_static_flag"
18693
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18694
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18695
if test "${lt_cv_dlopen_self_static+set}" = set; then
18696
echo $ECHO_N "(cached) $ECHO_C" >&6
18698
if test "$cross_compiling" = yes; then :
18699
lt_cv_dlopen_self_static=cross
18701
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18702
lt_status=$lt_dlunknown
18703
cat > conftest.$ac_ext <<EOF
18704
#line 18704 "configure"
18705
#include "confdefs.h"
18714
# define LT_DLGLOBAL RTLD_GLOBAL
18717
# define LT_DLGLOBAL DL_GLOBAL
18719
# define LT_DLGLOBAL 0
18723
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18724
find out it does not work in some platform. */
18725
#ifndef LT_DLLAZY_OR_NOW
18727
# define LT_DLLAZY_OR_NOW RTLD_LAZY
18730
# define LT_DLLAZY_OR_NOW DL_LAZY
18733
# define LT_DLLAZY_OR_NOW RTLD_NOW
18736
# define LT_DLLAZY_OR_NOW DL_NOW
18738
# define LT_DLLAZY_OR_NOW 0
18746
extern "C" void exit (int);
18749
void fnord() { int i=42;}
18752
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18753
int status = $lt_dlunknown;
18757
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18758
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18759
/* dlclose (self); */
18765
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18766
(eval $ac_link) 2>&5
18768
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18769
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18770
(./conftest; exit; ) 2>/dev/null
18772
case x$lt_status in
18773
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18774
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18775
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18778
# compilation failed
18779
lt_cv_dlopen_self_static=no
18786
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18787
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18790
CPPFLAGS="$save_CPPFLAGS"
18791
LDFLAGS="$save_LDFLAGS"
18796
case $lt_cv_dlopen_self in
18797
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18798
*) enable_dlopen_self=unknown ;;
18801
case $lt_cv_dlopen_self_static in
18802
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18803
*) enable_dlopen_self_static=unknown ;;
18775
18808
# The else clause should only fire when bootstrapping the
18776
18809
# libtool distribution, otherwise you forgot to ship ltmain.sh
21569
21524
# Name of the executable.
21570
as_me=`$as_basename -- "$0" ||
21525
as_me=`$as_basename "$0" ||
21571
21526
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21572
21527
X"$0" : 'X\(//\)$' \| \
21573
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21528
X"$0" : 'X\(/\)$' \| \
21529
. : '\(.\)' 2>/dev/null ||
21574
21530
echo X/"$0" |
21575
sed '/^.*\/\([^/][^/]*\)\/*$/{
21594
as_lineno_1=$LINENO
21595
as_lineno_2=$LINENO
21596
test "x$as_lineno_1" != "x$as_lineno_2" &&
21597
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21531
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21532
/^X\/\(\/\/\)$/{ s//\1/; q; }
21533
/^X\/\(\/\).*/{ s//\1/; q; }
21537
# PATH needs CR, and LINENO needs CR and PATH.
21538
# Avoid depending upon Character Ranges.
21539
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21540
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21541
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21542
as_cr_digits='0123456789'
21543
as_cr_alnum=$as_cr_Letters$as_cr_digits
21545
# The user is always right.
21546
if test "${PATH_SEPARATOR+set}" != set; then
21547
echo "#! /bin/sh" >conf$$.sh
21548
echo "exit 0" >>conf$$.sh
21550
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21559
as_lineno_1=$LINENO
21560
as_lineno_2=$LINENO
21561
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21562
test "x$as_lineno_1" != "x$as_lineno_2" &&
21563
test "x$as_lineno_3" = "x$as_lineno_2" || {
21564
# Find who we are. Look in the path if we contain no path at all
21567
*[\\/]* ) as_myself=$0 ;;
21568
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21569
for as_dir in $PATH
21572
test -z "$as_dir" && as_dir=.
21573
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21578
# We did not find ourselves, most probably we were run as `sh COMMAND'
21579
# in which case we are not to be found in the path.
21580
if test "x$as_myself" = x; then
21583
if test ! -f "$as_myself"; then
21584
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21585
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21586
{ (exit 1); exit 1; }; }
21588
case $CONFIG_SHELL in
21590
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21591
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21594
test -z "$as_dir" && as_dir=.
21595
for as_base in sh bash ksh sh5; do
21598
if ("$as_dir/$as_base" -c '
21599
as_lineno_1=$LINENO
21600
as_lineno_2=$LINENO
21601
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21602
test "x$as_lineno_1" != "x$as_lineno_2" &&
21603
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
21604
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21605
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21606
CONFIG_SHELL=$as_dir/$as_base
21607
export CONFIG_SHELL
21608
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21599
21616
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21600
21617
# uniformly replaced by the line number. The first 'sed' inserts a
21601
# line-number line after each line using $LINENO; the second 'sed'
21602
# does the real work. The second script uses 'N' to pair each
21603
# line-number line with the line containing $LINENO, and appends
21604
# trailing '-' during substitution so that $LINENO is not a special
21605
# case at line end.
21618
# line-number line before each line; the second 'sed' does the real
21619
# work. The second script uses 'N' to pair each line-number line
21620
# with the numbered line, and appends trailing '-' during
21621
# substitution so that $LINENO is not a special case at line end.
21606
21622
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21607
# scripts with optimization help from Paolo Bonzini. Blame Lee
21608
# E. McMahon (1931-1989) for sed's syntax. :-)
21623
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
21624
sed '=' <$as_myself |
21620
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21629
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21632
s,^['$as_cr_digits']*\n,,
21623
21633
' >$as_me.lineno &&
21624
chmod +x "$as_me.lineno" ||
21625
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21634
chmod +x $as_me.lineno ||
21635
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21636
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21626
21637
{ (exit 1); exit 1; }; }
21628
21639
# Don't try to exec as it changes $[0], causing all sort of problems
21629
21640
# (the dirname of $[0] is not the place where we might find the
21630
# original and so on. Autoconf is especially sensitive to this).
21631
. "./$as_me.lineno"
21641
# original and so on. Autoconf is especially sensible to this).
21632
21643
# Exit status is that of the last command.
21637
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21643
ECHO_C= ECHO_N= ECHO_T=
21644
case `echo -n x` in
21646
case `echo 'x\c'` in
21647
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
21648
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21649
*c*,-n*) ECHO_N= ECHO_C='
21651
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21652
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
21654
if expr a : '\(a\)' >/dev/null 2>&1 &&
21655
test "X`expr 00001 : '.*\(...\)'`" = X001; then
21655
if expr a : '\(a\)' >/dev/null 2>&1; then
21658
21658
as_expr=false
21661
21661
rm -f conf$$ conf$$.exe conf$$.file
21662
if test -d conf$$.dir; then
21663
rm -f conf$$.dir/conf$$.file
21668
21662
echo >conf$$.file
21669
21663
if ln -s conf$$.file conf$$ 2>/dev/null; then
21671
# ... but there are two gotchas:
21672
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21673
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21674
# In both cases, we have to default to `cp -p'.
21675
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21664
# We could just check for DJGPP; but this test a) works b) is more generic
21665
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21666
if test -f conf$$.exe; then
21667
# Don't use ln at all; we don't have any links
21676
21668
as_ln_s='cp -p'
21677
21672
elif ln conf$$.file conf$$ 2>/dev/null; then
21680
21675
as_ln_s='cp -p'
21682
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21683
rmdir conf$$.dir 2>/dev/null
21677
rm -f conf$$ conf$$.exe conf$$.file
21685
21679
if mkdir -p . 2>/dev/null; then
21919
21913
# Have a temporary directory for convenience. Make it in the build tree
21920
# simply because there is no reason against having it here, and in addition,
21914
# simply because there is no reason to put it here, and in addition,
21921
21915
# creating and moving files from /tmp can sometimes cause problems.
21922
# Hook for its removal unless debugging.
21923
# Note that there is a small window in which the directory will not be cleaned:
21924
# after its creation but before its name has been assigned to `$tmp'.
21916
# Create a temporary directory, and hook for its removal unless debugging.
21928
trap 'exit_status=$?
21929
{ test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21919
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21931
21920
trap '{ (exit 1); exit 1; }' 1 2 13 15
21933
21923
# Create a (secure) tmp directory for tmp files.
21936
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21926
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21937
21927
test -n "$tmp" && test -d "$tmp"
21940
tmp=./conf$$-$RANDOM
21941
(umask 077 && mkdir "$tmp")
21930
tmp=./confstat$$-$RANDOM
21931
(umask 077 && mkdir $tmp)
21944
21934
echo "$me: cannot create a temporary directory in ." >&2
21945
21935
{ (exit 1); exit 1; }
21940
cat >>$CONFIG_STATUS <<_ACEOF
21949
# Set up the sed scripts for CONFIG_FILES section.
21943
# CONFIG_FILES section.
21952
21946
# No need to generate the scripts if there are no CONFIG_FILES.
21953
21947
# This happens for instance when ./config.status config.h
21954
if test -n "$CONFIG_FILES"; then
21961
for ac_last_try in false false false false false :; do
21962
cat >conf$$subs.sed <<_ACEOF
21963
SHELL!$SHELL$ac_delim
21964
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21965
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21966
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21967
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21968
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21969
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21970
exec_prefix!$exec_prefix$ac_delim
21971
prefix!$prefix$ac_delim
21972
program_transform_name!$program_transform_name$ac_delim
21973
bindir!$bindir$ac_delim
21974
sbindir!$sbindir$ac_delim
21975
libexecdir!$libexecdir$ac_delim
21976
datarootdir!$datarootdir$ac_delim
21977
datadir!$datadir$ac_delim
21978
sysconfdir!$sysconfdir$ac_delim
21979
sharedstatedir!$sharedstatedir$ac_delim
21980
localstatedir!$localstatedir$ac_delim
21981
includedir!$includedir$ac_delim
21982
oldincludedir!$oldincludedir$ac_delim
21983
docdir!$docdir$ac_delim
21984
infodir!$infodir$ac_delim
21985
htmldir!$htmldir$ac_delim
21986
dvidir!$dvidir$ac_delim
21987
pdfdir!$pdfdir$ac_delim
21988
psdir!$psdir$ac_delim
21989
libdir!$libdir$ac_delim
21990
localedir!$localedir$ac_delim
21991
mandir!$mandir$ac_delim
21992
DEFS!$DEFS$ac_delim
21993
ECHO_C!$ECHO_C$ac_delim
21994
ECHO_N!$ECHO_N$ac_delim
21995
ECHO_T!$ECHO_T$ac_delim
21996
LIBS!$LIBS$ac_delim
21997
build_alias!$build_alias$ac_delim
21998
host_alias!$host_alias$ac_delim
21999
target_alias!$target_alias$ac_delim
22000
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22001
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22002
INSTALL_DATA!$INSTALL_DATA$ac_delim
22003
am__isrc!$am__isrc$ac_delim
22004
CYGPATH_W!$CYGPATH_W$ac_delim
22005
PACKAGE!$PACKAGE$ac_delim
22006
VERSION!$VERSION$ac_delim
22007
ACLOCAL!$ACLOCAL$ac_delim
22008
AUTOCONF!$AUTOCONF$ac_delim
22009
AUTOMAKE!$AUTOMAKE$ac_delim
22010
AUTOHEADER!$AUTOHEADER$ac_delim
22011
MAKEINFO!$MAKEINFO$ac_delim
22012
install_sh!$install_sh$ac_delim
22013
STRIP!$STRIP$ac_delim
22014
INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
22015
mkdir_p!$mkdir_p$ac_delim
22017
SET_MAKE!$SET_MAKE$ac_delim
22018
am__leading_dot!$am__leading_dot$ac_delim
22019
AMTAR!$AMTAR$ac_delim
22020
am__tar!$am__tar$ac_delim
22021
am__untar!$am__untar$ac_delim
22022
PKG_CONFIG!$PKG_CONFIG$ac_delim
22023
XDRAWCHEM_CFLAGS!$XDRAWCHEM_CFLAGS$ac_delim
22024
XDRAWCHEM_LIBS!$XDRAWCHEM_LIBS$ac_delim
22025
openbabel_version!$openbabel_version$ac_delim
22027
CXXFLAGS!$CXXFLAGS$ac_delim
22028
LDFLAGS!$LDFLAGS$ac_delim
22029
CPPFLAGS!$CPPFLAGS$ac_delim
22030
ac_ct_CXX!$ac_ct_CXX$ac_delim
22031
EXEEXT!$EXEEXT$ac_delim
22032
OBJEXT!$OBJEXT$ac_delim
22033
DEPDIR!$DEPDIR$ac_delim
22034
am__include!$am__include$ac_delim
22035
am__quote!$am__quote$ac_delim
22036
AMDEP_TRUE!$AMDEP_TRUE$ac_delim
22037
AMDEP_FALSE!$AMDEP_FALSE$ac_delim
22038
AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
22039
CXXDEPMODE!$CXXDEPMODE$ac_delim
22040
am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
22041
am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
22043
CFLAGS!$CFLAGS$ac_delim
22044
ac_ct_CC!$ac_ct_CC$ac_delim
22045
CCDEPMODE!$CCDEPMODE$ac_delim
22046
am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
22047
am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
22048
build!$build$ac_delim
22049
build_cpu!$build_cpu$ac_delim
22050
build_vendor!$build_vendor$ac_delim
22051
build_os!$build_os$ac_delim
22052
host!$host$ac_delim
22053
host_cpu!$host_cpu$ac_delim
22054
host_vendor!$host_vendor$ac_delim
22055
host_os!$host_os$ac_delim
22057
GREP!$GREP$ac_delim
22058
EGREP!$EGREP$ac_delim
22059
LN_S!$LN_S$ac_delim
22062
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22064
elif $ac_last_try; then
22065
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22066
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22067
{ (exit 1); exit 1; }; }
22069
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22073
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22074
if test -n "$ac_eof"; then
22075
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22076
ac_eof=`expr $ac_eof + 1`
22079
cat >>$CONFIG_STATUS <<_ACEOF
22080
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22081
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22084
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22085
s/^/s,@/; s/!/@,|#_!!_#|/
22088
s/'"$ac_delim"'$/,g/; t
22090
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22091
' >>$CONFIG_STATUS <conf$$subs.sed
22092
rm -f conf$$subs.sed
22093
cat >>$CONFIG_STATUS <<_ACEOF
22099
for ac_last_try in false false false false false :; do
22100
cat >conf$$subs.sed <<_ACEOF
22101
ECHO!$ECHO$ac_delim
22103
RANLIB!$RANLIB$ac_delim
22105
CXXCPP!$CXXCPP$ac_delim
22107
FFLAGS!$FFLAGS$ac_delim
22108
ac_ct_F77!$ac_ct_F77$ac_delim
22109
LIBTOOL!$LIBTOOL$ac_delim
22110
LIBTOOL_DEPS!$LIBTOOL_DEPS$ac_delim
22111
XMKMF!$XMKMF$ac_delim
22114
QEMBED!$QEMBED$ac_delim
22115
QT_CXXFLAGS!$QT_CXXFLAGS$ac_delim
22116
QT_LDADD!$QT_LDADD$ac_delim
22117
QT_GUILINK!$QT_GUILINK$ac_delim
22118
QASSISTANTCLIENT_LDADD!$QASSISTANTCLIENT_LDADD$ac_delim
22119
LIBOBJS!$LIBOBJS$ac_delim
22120
MY_SUBDIRS!$MY_SUBDIRS$ac_delim
22121
LTLIBOBJS!$LTLIBOBJS$ac_delim
22124
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 21; then
22126
elif $ac_last_try; then
22127
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22128
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22129
{ (exit 1); exit 1; }; }
22131
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22135
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22136
if test -n "$ac_eof"; then
22137
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22138
ac_eof=`expr $ac_eof + 1`
22141
cat >>$CONFIG_STATUS <<_ACEOF
22142
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22143
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22146
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22147
s/^/s,@/; s/!/@,|#_!!_#|/
22150
s/'"$ac_delim"'$/,g/; t
22152
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22153
' >>$CONFIG_STATUS <conf$$subs.sed
22154
rm -f conf$$subs.sed
22155
cat >>$CONFIG_STATUS <<_ACEOF
22162
# VPATH may cause trouble with some makes, so we remove $(srcdir),
22163
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22164
# trailing colons and then remove the whole line if VPATH becomes empty
22165
# (actually we leave an empty line to preserve line numbers).
22166
if test "x$srcdir" = x.; then
22167
ac_vpsub='/^[ ]*VPATH[ ]*=/{
22168
s/:*\$(srcdir):*/:/
22169
s/:*\${srcdir}:*/:/
22171
s/^\([^=]*=[ ]*\):*/\1/
22177
cat >>$CONFIG_STATUS <<\_ACEOF
21948
if test -n "\$CONFIG_FILES"; then
21949
# Protect against being on the right side of a sed subst in config.status.
21950
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21951
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21952
s,@SHELL@,$SHELL,;t t
21953
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21954
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21955
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21956
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21957
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21958
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21959
s,@exec_prefix@,$exec_prefix,;t t
21960
s,@prefix@,$prefix,;t t
21961
s,@program_transform_name@,$program_transform_name,;t t
21962
s,@bindir@,$bindir,;t t
21963
s,@sbindir@,$sbindir,;t t
21964
s,@libexecdir@,$libexecdir,;t t
21965
s,@datadir@,$datadir,;t t
21966
s,@sysconfdir@,$sysconfdir,;t t
21967
s,@sharedstatedir@,$sharedstatedir,;t t
21968
s,@localstatedir@,$localstatedir,;t t
21969
s,@libdir@,$libdir,;t t
21970
s,@includedir@,$includedir,;t t
21971
s,@oldincludedir@,$oldincludedir,;t t
21972
s,@infodir@,$infodir,;t t
21973
s,@mandir@,$mandir,;t t
21974
s,@build_alias@,$build_alias,;t t
21975
s,@host_alias@,$host_alias,;t t
21976
s,@target_alias@,$target_alias,;t t
21977
s,@DEFS@,$DEFS,;t t
21978
s,@ECHO_C@,$ECHO_C,;t t
21979
s,@ECHO_N@,$ECHO_N,;t t
21980
s,@ECHO_T@,$ECHO_T,;t t
21981
s,@LIBS@,$LIBS,;t t
21982
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21983
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21984
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21985
s,@CYGPATH_W@,$CYGPATH_W,;t t
21986
s,@PACKAGE@,$PACKAGE,;t t
21987
s,@VERSION@,$VERSION,;t t
21988
s,@ACLOCAL@,$ACLOCAL,;t t
21989
s,@AUTOCONF@,$AUTOCONF,;t t
21990
s,@AUTOMAKE@,$AUTOMAKE,;t t
21991
s,@AUTOHEADER@,$AUTOHEADER,;t t
21992
s,@MAKEINFO@,$MAKEINFO,;t t
21993
s,@install_sh@,$install_sh,;t t
21994
s,@STRIP@,$STRIP,;t t
21995
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21996
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
21997
s,@mkdir_p@,$mkdir_p,;t t
21999
s,@SET_MAKE@,$SET_MAKE,;t t
22000
s,@am__leading_dot@,$am__leading_dot,;t t
22001
s,@AMTAR@,$AMTAR,;t t
22002
s,@am__tar@,$am__tar,;t t
22003
s,@am__untar@,$am__untar,;t t
22004
s,@PKG_CONFIG@,$PKG_CONFIG,;t t
22005
s,@XDRAWCHEM_CFLAGS@,$XDRAWCHEM_CFLAGS,;t t
22006
s,@XDRAWCHEM_LIBS@,$XDRAWCHEM_LIBS,;t t
22007
s,@openbabel_version@,$openbabel_version,;t t
22009
s,@CXXFLAGS@,$CXXFLAGS,;t t
22010
s,@LDFLAGS@,$LDFLAGS,;t t
22011
s,@CPPFLAGS@,$CPPFLAGS,;t t
22012
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22013
s,@EXEEXT@,$EXEEXT,;t t
22014
s,@OBJEXT@,$OBJEXT,;t t
22015
s,@DEPDIR@,$DEPDIR,;t t
22016
s,@am__include@,$am__include,;t t
22017
s,@am__quote@,$am__quote,;t t
22018
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
22019
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
22020
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
22021
s,@CXXDEPMODE@,$CXXDEPMODE,;t t
22022
s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
22023
s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
22025
s,@CFLAGS@,$CFLAGS,;t t
22026
s,@ac_ct_CC@,$ac_ct_CC,;t t
22027
s,@CCDEPMODE@,$CCDEPMODE,;t t
22028
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
22029
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
22030
s,@build@,$build,;t t
22031
s,@build_cpu@,$build_cpu,;t t
22032
s,@build_vendor@,$build_vendor,;t t
22033
s,@build_os@,$build_os,;t t
22034
s,@host@,$host,;t t
22035
s,@host_cpu@,$host_cpu,;t t
22036
s,@host_vendor@,$host_vendor,;t t
22037
s,@host_os@,$host_os,;t t
22038
s,@EGREP@,$EGREP,;t t
22039
s,@LN_S@,$LN_S,;t t
22040
s,@ECHO@,$ECHO,;t t
22042
s,@ac_ct_AR@,$ac_ct_AR,;t t
22043
s,@RANLIB@,$RANLIB,;t t
22044
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22046
s,@CXXCPP@,$CXXCPP,;t t
22048
s,@FFLAGS@,$FFLAGS,;t t
22049
s,@ac_ct_F77@,$ac_ct_F77,;t t
22050
s,@LIBTOOL@,$LIBTOOL,;t t
22051
s,@LIBTOOL_DEPS@,$LIBTOOL_DEPS,;t t
22054
s,@QEMBED@,$QEMBED,;t t
22055
s,@QT_CXXFLAGS@,$QT_CXXFLAGS,;t t
22056
s,@QT_LDADD@,$QT_LDADD,;t t
22057
s,@QT_GUILINK@,$QT_GUILINK,;t t
22058
s,@QASSISTANTCLIENT_LDADD@,$QASSISTANTCLIENT_LDADD,;t t
22059
s,@LIBOBJS@,$LIBOBJS,;t t
22060
s,@MY_SUBDIRS@,$MY_SUBDIRS,;t t
22061
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22066
cat >>$CONFIG_STATUS <<\_ACEOF
22067
# Split the substitutions into bite-sized pieces for seds with
22068
# small command number limits, like on Digital OSF/1 and HP-UX.
22069
ac_max_sed_lines=48
22070
ac_sed_frag=1 # Number of current file.
22071
ac_beg=1 # First line for current file.
22072
ac_end=$ac_max_sed_lines # Line after last line for current file.
22075
while $ac_more_lines; do
22076
if test $ac_beg -gt 1; then
22077
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22079
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22081
if test ! -s $tmp/subs.frag; then
22082
ac_more_lines=false
22084
# The purpose of the label and of the branching condition is to
22085
# speed up the sed processing (if there are no `@' at all, there
22086
# is no need to browse any of the substitutions).
22087
# These are the two extra sed commands mentioned above.
22089
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22090
if test -z "$ac_sed_cmds"; then
22091
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22093
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22095
ac_sed_frag=`expr $ac_sed_frag + 1`
22097
ac_end=`expr $ac_end + $ac_max_sed_lines`
22100
if test -z "$ac_sed_cmds"; then
22178
22103
fi # test -n "$CONFIG_FILES"
22181
for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
22184
:[FHLC]) ac_mode=$ac_tag; continue;;
22186
case $ac_mode$ac_tag in
22188
:L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22189
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22190
{ (exit 1); exit 1; }; };;
22191
:[FH]-) ac_tag=-:-;;
22192
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22209
-) ac_f="$tmp/stdin";;
22210
*) # Look for the file first in the build tree, then in the source tree
22211
# (if the path is not absolute). The absolute path cannot be DOS-style,
22212
# because $ac_f cannot contain `:'.
22216
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22218
{ { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22219
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22220
{ (exit 1); exit 1; }; };;
22222
ac_file_inputs="$ac_file_inputs $ac_f"
22225
# Let's still pretend it is `configure' which instantiates (i.e., don't
22226
# use $as_me), people would be surprised to read:
22227
# /* config.h. Generated by config.status. */
22228
configure_input="Generated from "`IFS=:
22229
echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22230
if test x"$ac_file" != x-; then
22231
configure_input="$ac_file. $configure_input"
22232
{ echo "$as_me:$LINENO: creating $ac_file" >&5
22233
echo "$as_me: creating $ac_file" >&6;}
22237
*:-:* | *:-) cat >"$tmp/stdin";;
22242
ac_dir=`$as_dirname -- "$ac_file" ||
22106
cat >>$CONFIG_STATUS <<\_ACEOF
22107
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22108
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22110
- | *:- | *:-:* ) # input from stdin
22112
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22113
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22114
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22115
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22116
* ) ac_file_in=$ac_file.in ;;
22119
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22120
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22243
22121
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22244
22122
X"$ac_file" : 'X\(//\)[^/]' \| \
22245
22123
X"$ac_file" : 'X\(//\)$' \| \
22246
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22124
X"$ac_file" : 'X\(/\)' \| \
22125
. : '\(.\)' 2>/dev/null ||
22247
22126
echo X"$ac_file" |
22248
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22252
/^X\(\/\/\)[^/].*/{
22267
-*) as_dir=./$as_dir;;
22269
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22127
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22128
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
22129
/^X\(\/\/\)$/{ s//\1/; q; }
22130
/^X\(\/\).*/{ s//\1/; q; }
22132
{ if $as_mkdir_p; then
22273
*\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22274
*) as_qdir=$as_dir;;
22276
as_dirs="'$as_qdir' $as_dirs"
22277
as_dir=`$as_dirname -- "$as_dir" ||
22137
while test ! -d "$as_dir"; do
22138
as_dirs="$as_dir $as_dirs"
22139
as_dir=`(dirname "$as_dir") 2>/dev/null ||
22278
22140
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22279
22141
X"$as_dir" : 'X\(//\)[^/]' \| \
22280
22142
X"$as_dir" : 'X\(//\)$' \| \
22281
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22143
X"$as_dir" : 'X\(/\)' \| \
22144
. : '\(.\)' 2>/dev/null ||
22282
22145
echo X"$as_dir" |
22283
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22287
/^X\(\/\/\)[^/].*/{
22300
test -d "$as_dir" && break
22146
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22147
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
22148
/^X\(\/\/\)$/{ s//\1/; q; }
22149
/^X\(\/\).*/{ s//\1/; q; }
22302
test -z "$as_dirs" || eval "mkdir $as_dirs"
22303
} || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22304
echo "$as_me: error: cannot create directory $as_dir" >&2;}
22152
test ! -n "$as_dirs" || mkdir $as_dirs
22153
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22154
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22305
22155
{ (exit 1); exit 1; }; }; }
22306
22157
ac_builddir=.
22309
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22159
if test "$ac_dir" != .; then
22311
22160
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22312
# A ".." for each directory in $ac_dir_suffix.
22313
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22314
case $ac_top_builddir_sub in
22315
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22316
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22319
ac_abs_top_builddir=$ac_pwd
22320
ac_abs_builddir=$ac_pwd$ac_dir_suffix
22321
# for backward compatibility:
22322
ac_top_builddir=$ac_top_build_prefix
22161
# A "../" for each directory in $ac_dir_suffix.
22162
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22164
ac_dir_suffix= ac_top_builddir=
22324
22167
case $srcdir in
22325
.) # We are building in place.
22168
.) # No --srcdir option. We are building in place.
22327
ac_top_srcdir=$ac_top_builddir_sub
22328
ac_abs_top_srcdir=$ac_pwd ;;
22329
[\\/]* | ?:[\\/]* ) # Absolute name.
22170
if test -z "$ac_top_builddir"; then
22173
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22175
[\\/]* | ?:[\\/]* ) # Absolute path.
22330
22176
ac_srcdir=$srcdir$ac_dir_suffix;
22331
ac_top_srcdir=$srcdir
22332
ac_abs_top_srcdir=$srcdir ;;
22333
*) # Relative name.
22334
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22335
ac_top_srcdir=$ac_top_build_prefix$srcdir
22336
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22338
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22177
ac_top_srcdir=$srcdir ;;
22178
*) # Relative path.
22179
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22180
ac_top_srcdir=$ac_top_builddir$srcdir ;;
22183
# Do not use `cd foo && pwd` to compute absolute paths, because
22184
# the directories may not exist.
22186
.) ac_abs_builddir="$ac_dir";;
22189
.) ac_abs_builddir=`pwd`;;
22190
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22191
*) ac_abs_builddir=`pwd`/"$ac_dir";;
22194
case $ac_abs_builddir in
22195
.) ac_abs_top_builddir=${ac_top_builddir}.;;
22197
case ${ac_top_builddir}. in
22198
.) ac_abs_top_builddir=$ac_abs_builddir;;
22199
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22200
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22203
case $ac_abs_builddir in
22204
.) ac_abs_srcdir=$ac_srcdir;;
22207
.) ac_abs_srcdir=$ac_abs_builddir;;
22208
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22209
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22212
case $ac_abs_builddir in
22213
.) ac_abs_top_srcdir=$ac_top_srcdir;;
22215
case $ac_top_srcdir in
22216
.) ac_abs_top_srcdir=$ac_abs_builddir;;
22217
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22218
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22347
22223
case $INSTALL in
22348
22224
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22349
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22351
ac_MKDIR_P=$MKDIR_P
22353
[\\/$]* | ?:[\\/]* ) ;;
22354
*/*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22358
cat >>$CONFIG_STATUS <<\_ACEOF
22359
# If the template does not know about datarootdir, expand it.
22360
# FIXME: This hack should be removed a few years after 2.60.
22361
ac_datarootdir_hack=; ac_datarootdir_seen=
22363
case `sed -n '/datarootdir/ {
22372
' $ac_file_inputs` in
22373
*datarootdir*) ac_datarootdir_seen=yes;;
22374
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22375
{ echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22376
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22378
cat >>$CONFIG_STATUS <<_ACEOF
22379
ac_datarootdir_hack='
22380
s&@datadir@&$datadir&g
22381
s&@docdir@&$docdir&g
22382
s&@infodir@&$infodir&g
22383
s&@localedir@&$localedir&g
22384
s&@mandir@&$mandir&g
22385
s&\\\${datarootdir}&$datarootdir&g' ;;
22389
# Neutralize VPATH when `$srcdir' = `.'.
22390
# Shell code in configure.ac might set extrasub.
22391
# FIXME: do we really want to maintain this feature?
22225
*) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22228
if test x"$ac_file" != x-; then
22229
{ echo "$as_me:$LINENO: creating $ac_file" >&5
22230
echo "$as_me: creating $ac_file" >&6;}
22233
# Let's still pretend it is `configure' which instantiates (i.e., don't
22234
# use $as_me), people would be surprised to read:
22235
# /* config.h. Generated by config.status. */
22236
if test x"$ac_file" = x-; then
22239
configure_input="$ac_file. "
22241
configure_input=$configure_input"Generated from `echo $ac_file_in |
22242
sed 's,.*/,,'` by configure."
22244
# First look for the input files in the build tree, otherwise in the
22246
ac_file_inputs=`IFS=:
22247
for f in $ac_file_in; do
22249
-) echo $tmp/stdin ;;
22251
# Absolute (can't be DOS-style, as IFS=:)
22252
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22253
echo "$as_me: error: cannot find input file: $f" >&2;}
22254
{ (exit 1); exit 1; }; }
22257
if test -f "$f"; then
22260
elif test -f "$srcdir/$f"; then
22265
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22266
echo "$as_me: error: cannot find input file: $f" >&2;}
22267
{ (exit 1); exit 1; }; }
22270
done` || { (exit 1); exit 1; }
22392
22272
cat >>$CONFIG_STATUS <<_ACEOF
22393
22273
sed "$ac_vpsub
22396
22276
cat >>$CONFIG_STATUS <<\_ACEOF
22398
22278
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22399
s&@configure_input@&$configure_input&;t t
22400
s&@top_builddir@&$ac_top_builddir_sub&;t t
22401
s&@srcdir@&$ac_srcdir&;t t
22402
s&@abs_srcdir@&$ac_abs_srcdir&;t t
22403
s&@top_srcdir@&$ac_top_srcdir&;t t
22404
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22405
s&@builddir@&$ac_builddir&;t t
22406
s&@abs_builddir@&$ac_abs_builddir&;t t
22407
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22408
s&@INSTALL@&$ac_INSTALL&;t t
22409
s&@MKDIR_P@&$ac_MKDIR_P&;t t
22410
$ac_datarootdir_hack
22411
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22413
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22414
{ ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22415
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22416
{ echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22417
which seems to be undefined. Please make sure it is defined." >&5
22418
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22419
which seems to be undefined. Please make sure it is defined." >&2;}
22423
-) cat "$tmp/out"; rm -f "$tmp/out";;
22424
*) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22279
s,@configure_input@,$configure_input,;t t
22280
s,@srcdir@,$ac_srcdir,;t t
22281
s,@abs_srcdir@,$ac_abs_srcdir,;t t
22282
s,@top_srcdir@,$ac_top_srcdir,;t t
22283
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22284
s,@builddir@,$ac_builddir,;t t
22285
s,@abs_builddir@,$ac_abs_builddir,;t t
22286
s,@top_builddir@,$ac_top_builddir,;t t
22287
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22288
s,@INSTALL@,$ac_INSTALL,;t t
22289
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22291
if test x"$ac_file" != x-; then
22292
mv $tmp/out $ac_file
22433
# Transform confdefs.h into a sed script `conftest.defines', that
22434
# substitutes the proper values into config.h.in to produce config.h.
22435
rm -f conftest.defines conftest.tail
22436
# First, append a space to every undef/define line, to ease matching.
22437
echo 's/$/ /' >conftest.defines
22438
# Then, protect against being on the right side of a sed subst, or in
22439
# an unquoted here document, in config.status. If some macros were
22440
# called several times there might be several #defines for the same
22441
# symbol, which is useless. But do not sort them, since the last
22442
# AC_DEFINE must be honored.
22443
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22444
# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22445
# NAME is the cpp macro being defined, VALUE is the value it is being given.
22446
# PARAMS is the parameter list in the macro definition--in most cases, it's
22447
# just an empty string.
22448
ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22449
ac_dB='\\)[ (].*,\\1define\\2'
22300
cat >>$CONFIG_STATUS <<\_ACEOF
22303
# CONFIG_HEADER section.
22306
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22307
# NAME is the cpp macro being defined and VALUE is the value it is being given.
22309
# ac_d sets the value in "#define NAME VALUE" lines.
22310
ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22311
ac_dB='[ ].*$,\1#\2'
22457
s/^[ ]*#[ ]*define[ ][ ]*//
22462
s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22463
s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22464
' >>conftest.defines
22466
# Remove the space that was appended to ease matching.
22467
# Then replace #undef with comments. This is necessary, for
22314
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22315
ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22316
ac_uB='$,\1#\2define\3'
22320
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22321
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22323
- | *:- | *:-:* ) # input from stdin
22325
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22326
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22327
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22328
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22329
* ) ac_file_in=$ac_file.in ;;
22332
test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22333
echo "$as_me: creating $ac_file" >&6;}
22335
# First look for the input files in the build tree, otherwise in the
22337
ac_file_inputs=`IFS=:
22338
for f in $ac_file_in; do
22340
-) echo $tmp/stdin ;;
22342
# Absolute (can't be DOS-style, as IFS=:)
22343
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22344
echo "$as_me: error: cannot find input file: $f" >&2;}
22345
{ (exit 1); exit 1; }; }
22346
# Do quote $f, to prevent DOS paths from being IFS'd.
22349
if test -f "$f"; then
22352
elif test -f "$srcdir/$f"; then
22357
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22358
echo "$as_me: error: cannot find input file: $f" >&2;}
22359
{ (exit 1); exit 1; }; }
22362
done` || { (exit 1); exit 1; }
22363
# Remove the trailing spaces.
22364
sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22368
# Transform confdefs.h into two sed scripts, `conftest.defines' and
22369
# `conftest.undefs', that substitutes the proper values into
22370
# config.h.in to produce config.h. The first handles `#define'
22371
# templates, and the second `#undef' templates.
22372
# And first: Protect against being on the right side of a sed subst in
22373
# config.status. Protect against being in an unquoted here document
22374
# in config.status.
22375
rm -f conftest.defines conftest.undefs
22376
# Using a here document instead of a string reduces the quoting nightmare.
22377
# Putting comments in sed scripts is not portable.
22379
# `end' is used to avoid that the second main sed command (meant for
22380
# 0-ary CPP macros) applies to n-ary macro definitions.
22381
# See the Autoconf documentation for `clear'.
22382
cat >confdef2sed.sed <<\_ACEOF
22387
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22389
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22392
# If some macros were called several times there might be several times
22393
# the same #defines, which is useless. Nevertheless, we may not want to
22394
# sort them, since we want the *last* AC-DEFINE to be honored.
22395
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22396
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22397
rm -f confdef2sed.sed
22399
# This sed command replaces #undef with comments. This is necessary, for
22468
22400
# example, in the case of _POSIX_SOURCE, which is predefined and required
22469
22401
# on some systems where configure will not decide to define it.
22470
# (The regexp can be short, since the line contains either #define or #undef.)
22472
s,^[ #]*u.*,/* & */,' >>conftest.defines
22474
# Break up conftest.defines:
22475
ac_max_sed_lines=50
22477
# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22478
# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22479
# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22481
ac_in='$ac_file_inputs'
22482
ac_out='"$tmp/out1"'
22483
ac_nxt='"$tmp/out2"'
22402
cat >>conftest.undefs <<\_ACEOF
22403
s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22406
# Break up conftest.defines because some shells have a limit on the size
22407
# of here documents, and old seds have small limits too (100 cmds).
22408
echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22409
echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22410
echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22411
echo ' :' >>$CONFIG_STATUS
22412
rm -f conftest.tail
22413
while grep . conftest.defines >/dev/null
22487
# Write a here document:
22488
cat >>$CONFIG_STATUS <<_ACEOF
22489
# First, check the format of the line:
22490
cat >"\$tmp/defines.sed" <<\\CEOF
22491
/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22492
/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22496
sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22415
# Write a limited-size here document to $tmp/defines.sed.
22416
echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22417
# Speed up: don't consider the non `#define' lines.
22418
echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22419
# Work around the forget-to-reset-the-flag bug.
22420
echo 't clr' >>$CONFIG_STATUS
22421
echo ': clr' >>$CONFIG_STATUS
22422
sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22498
sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22499
ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22500
sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22501
grep . conftest.tail >/dev/null || break
22424
sed -f $tmp/defines.sed $tmp/in >$tmp/out
22426
mv $tmp/out $tmp/in
22428
sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22502
22429
rm -f conftest.defines
22503
22430
mv conftest.tail conftest.defines
22505
rm -f conftest.defines conftest.tail
22507
echo "ac_result=$ac_in" >>$CONFIG_STATUS
22432
rm -f conftest.defines
22433
echo ' fi # grep' >>$CONFIG_STATUS
22434
echo >>$CONFIG_STATUS
22436
# Break up conftest.undefs because some shells have a limit on the size
22437
# of here documents, and old seds have small limits too (100 cmds).
22438
echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22439
rm -f conftest.tail
22440
while grep . conftest.undefs >/dev/null
22442
# Write a limited-size here document to $tmp/undefs.sed.
22443
echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22444
# Speed up: don't consider the non `#undef'
22445
echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22446
# Work around the forget-to-reset-the-flag bug.
22447
echo 't clr' >>$CONFIG_STATUS
22448
echo ': clr' >>$CONFIG_STATUS
22449
sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22451
sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22453
mv $tmp/out $tmp/in
22455
sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22456
rm -f conftest.undefs
22457
mv conftest.tail conftest.undefs
22459
rm -f conftest.undefs
22508
22461
cat >>$CONFIG_STATUS <<\_ACEOF
22462
# Let's still pretend it is `configure' which instantiates (i.e., don't
22463
# use $as_me), people would be surprised to read:
22464
# /* config.h. Generated by config.status. */
22465
if test x"$ac_file" = x-; then
22466
echo "/* Generated by configure. */" >$tmp/config.h
22468
echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22470
cat $tmp/in >>$tmp/config.h
22509
22472
if test x"$ac_file" != x-; then
22510
echo "/* $configure_input */" >"$tmp/config.h"
22511
cat "$ac_result" >>"$tmp/config.h"
22512
if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22473
if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22513
22474
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22514
22475
echo "$as_me: $ac_file is unchanged" >&6;}
22477
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22478
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22479
X"$ac_file" : 'X\(//\)[^/]' \| \
22480
X"$ac_file" : 'X\(//\)$' \| \
22481
X"$ac_file" : 'X\(/\)' \| \
22482
. : '\(.\)' 2>/dev/null ||
22484
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22485
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
22486
/^X\(\/\/\)$/{ s//\1/; q; }
22487
/^X\(\/\).*/{ s//\1/; q; }
22489
{ if $as_mkdir_p; then
22494
while test ! -d "$as_dir"; do
22495
as_dirs="$as_dir $as_dirs"
22496
as_dir=`(dirname "$as_dir") 2>/dev/null ||
22497
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22498
X"$as_dir" : 'X\(//\)[^/]' \| \
22499
X"$as_dir" : 'X\(//\)$' \| \
22500
X"$as_dir" : 'X\(/\)' \| \
22501
. : '\(.\)' 2>/dev/null ||
22503
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22504
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
22505
/^X\(\/\/\)$/{ s//\1/; q; }
22506
/^X\(\/\).*/{ s//\1/; q; }
22509
test ! -n "$as_dirs" || mkdir $as_dirs
22510
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22511
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22512
{ (exit 1); exit 1; }; }; }
22516
22514
rm -f $ac_file
22517
mv "$tmp/config.h" $ac_file
22515
mv $tmp/config.h $ac_file
22520
echo "/* $configure_input */"
22519
rm -f $tmp/config.h
22524
22521
# Compute $ac_file's index in $config_headers.
22525
22522
_am_stamp_count=1
22526
22523
for _am_header in $config_headers :; do