134
# Required to use basename.
135
if expr a : '\(a\)' >/dev/null 2>&1 &&
136
test "X`expr 00001 : '.*\(...\)'`" = X001; then
142
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
149
# Name of the executable.
150
as_me=`$as_basename -- "$0" ||
151
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152
X"$0" : 'X\(//\)$' \| \
153
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
155
sed '/^.*\/\([^/][^/]*\)\/*$/{
132
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
173
134
if test "x$CONFIG_SHELL" = x; then
174
if (eval ":") 2>/dev/null; then
135
as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138
# Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139
# is contrary to our usage. Disable this feature.
140
alias -g '\${1+\"\$@\"}'='\"\$@\"'
143
case \`(set -o) 2>/dev/null\` in #(
151
as_required="as_fn_return () { (exit \$1); }
152
as_fn_success () { as_fn_return 0; }
153
as_fn_failure () { as_fn_return 1; }
154
as_fn_ret_success () { return 0; }
155
as_fn_ret_failure () { return 1; }
158
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
exitcode=1; echo positional parameters were not saved.
167
test x\$exitcode = x0 || exit 1"
168
as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169
as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170
eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171
test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172
test \$(( 1 + 1 )) = 2 || exit 1"
173
if (eval "$as_required") 2>/dev/null; then :
175
174
as_have_required=yes
177
176
as_have_required=no
180
if test $as_have_required = yes && (eval ":
190
as_func_ret_success () {
193
as_func_ret_failure () {
198
if as_func_success; then
202
echo as_func_success failed.
205
if as_func_failure; then
207
echo as_func_failure succeeded.
210
if as_func_ret_success; then
214
echo as_func_ret_success failed.
217
if as_func_ret_failure; then
219
echo as_func_ret_failure succeeded.
222
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
226
echo positional parameters were not saved.
229
test \$exitcode = 0) || { (exit 1); exit 1; }
234
test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235
test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236
") 2> /dev/null; then
240
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
178
if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241
183
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244
186
test -z "$as_dir" && as_dir=.
247
190
for as_base in sh bash ksh sh5; do
248
as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
191
# Try only shells that exist, to save several forks.
192
as_shell=$as_dir/$as_base
193
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195
CONFIG_SHELL=$as_shell as_have_required=yes
196
if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
204
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206
CONFIG_SHELL=$SHELL as_have_required=yes
255
for as_shell in $as_candidate_shells $SHELL; do
256
# Try only shells that exist, to save several forks.
257
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258
{ ("$as_shell") 2> /dev/null <<\_ASEOF
259
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263
# is contrary to our usage. Disable this feature.
264
alias -g '${1+"$@"}'='"$@"'
267
case `(set -o) 2>/dev/null` in
268
*posix*) set -o posix ;;
277
CONFIG_SHELL=$as_shell
279
if { "$as_shell" 2> /dev/null <<\_ASEOF
280
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284
# is contrary to our usage. Disable this feature.
285
alias -g '${1+"$@"}'='"$@"'
288
case `(set -o) 2>/dev/null` in
289
*posix*) set -o posix ;;
305
as_func_ret_success () {
308
as_func_ret_failure () {
313
if as_func_success; then
317
echo as_func_success failed.
320
if as_func_failure; then
322
echo as_func_failure succeeded.
325
if as_func_ret_success; then
329
echo as_func_ret_success failed.
332
if as_func_ret_failure; then
334
echo as_func_ret_failure succeeded.
337
if ( set x; as_func_ret_success y && test x = "$1" ); then
341
echo positional parameters were not saved.
344
test $exitcode = 0) || { (exit 1); exit 1; }
349
test "x$as_lineno_1" != "x$as_lineno_2" &&
350
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
361
if test "x$CONFIG_SHELL" != x; then
362
for as_var in BASH_ENV ENV
363
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
211
if test "x$CONFIG_SHELL" != x; then :
212
# We cannot yet assume a decent shell, so we have to provide a
213
# neutralization value for shells without unset; and this also
214
# works around shells that cannot unset nonexistent variables.
217
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
365
218
export CONFIG_SHELL
366
219
exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370
if test $as_have_required = no; then
371
echo This script requires a shell more modern than all the
372
echo shells that I found on your system. Please install a
373
echo modern shell, or manually run the script under such a
374
echo shell if you do have one.
375
{ (exit 1); exit 1; }
385
(eval "as_func_return () {
394
as_func_ret_success () {
397
as_func_ret_failure () {
402
if as_func_success; then
406
echo as_func_success failed.
409
if as_func_failure; then
411
echo as_func_failure succeeded.
414
if as_func_ret_success; then
418
echo as_func_ret_success failed.
421
if as_func_ret_failure; then
423
echo as_func_ret_failure succeeded.
426
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
430
echo positional parameters were not saved.
433
test \$exitcode = 0") || {
434
echo No shell found that supports shell functions.
435
echo Please tell bug-autoconf@gnu.org about your system,
436
echo including any error possibly output before this message.
437
echo This can help us improve future autoconf versions.
438
echo Configuration will now proceed without shell functions.
445
test "x$as_lineno_1" != "x$as_lineno_2" &&
446
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
448
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449
# uniformly replaced by the line number. The first 'sed' inserts a
450
# line-number line after each line using $LINENO; the second 'sed'
451
# does the real work. The second script uses 'N' to pair each
452
# line-number line with the line containing $LINENO, and appends
453
# trailing '-' during substitution so that $LINENO is not a special
455
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456
# scripts with optimization help from Paolo Bonzini. Blame Lee
457
# E. McMahon (1931-1989) for sed's syntax. :-)
222
if test x$as_have_required = xno; then :
223
$as_echo "$0: This script requires a shell more modern than all"
224
$as_echo "$0: the shells that I found on your system."
225
if test x${ZSH_VERSION+set} = xset ; then
226
$as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227
$as_echo "$0: be upgraded to zsh 4.3.4 or later."
229
$as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230
$0: including any error possibly output before this
231
$0: message. Then install a modern shell, or manually run
232
$0: the script under such a shell if you do have one."
238
SHELL=${CONFIG_SHELL-/bin/sh}
240
# Unset more variables known to interfere with behavior of common tools.
241
CLICOLOR_FORCE= GREP_OPTIONS=
242
unset CLICOLOR_FORCE GREP_OPTIONS
244
## --------------------- ##
245
## M4sh Shell Functions. ##
246
## --------------------- ##
249
# Portably unset VAR.
252
{ eval $1=; unset $1;}
256
# as_fn_set_status STATUS
257
# -----------------------
258
# Set $? to STATUS, without forking.
266
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
276
# Create "$as_dir" as a directory, including parents if necessary.
281
-*) as_dir=./$as_dir;;
283
test -d "$as_dir" || eval $as_mkdir_p || {
287
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290
as_dirs="'$as_qdir' $as_dirs"
291
as_dir=`$as_dirname -- "$as_dir" ||
292
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293
X"$as_dir" : 'X\(//\)[^/]' \| \
294
X"$as_dir" : 'X\(//\)$' \| \
295
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296
$as_echo X"$as_dir" |
297
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
314
test -d "$as_dir" && break
316
test -z "$as_dirs" || eval "mkdir $as_dirs"
317
} || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
321
# as_fn_append VAR VALUE
322
# ----------------------
323
# Append the text in VALUE to the end of the definition contained in VAR. Take
324
# advantage of any shell optimizations that allow amortized linear growth over
325
# repeated appends, instead of the typical quadratic growth present in naive
327
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328
eval 'as_fn_append ()
341
# Perform arithmetic evaluation on the ARGs, and store the result in the
342
# global $as_val. Take advantage of shells that can avoid forks. The arguments
343
# must be portable across $(()) and expr.
344
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
352
as_val=`expr "$@" || test $? -eq 1`
357
# as_fn_error ERROR [LINENO LOG_FD]
358
# ---------------------------------
359
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361
# script with status $?, using 1 if that was 0.
364
as_status=$?; test $as_status -eq 0 && as_status=1
366
as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367
$as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
369
$as_echo "$as_me: error: $1" >&2
370
as_fn_exit $as_status
373
if expr a : '\(a\)' >/dev/null 2>&1 &&
374
test "X`expr 00001 : '.*\(...\)'`" = X001; then
380
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392
as_me=`$as_basename -- "$0" ||
393
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394
X"$0" : 'X\(//\)$' \| \
395
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
397
sed '/^.*\/\([^/][^/]*\)\/*$/{
411
# Avoid depending upon Character Ranges.
412
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415
as_cr_digits='0123456789'
416
as_cr_alnum=$as_cr_Letters$as_cr_digits
419
as_lineno_1=$LINENO as_lineno_1a=$LINENO
420
as_lineno_2=$LINENO as_lineno_2a=$LINENO
421
eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422
test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423
# Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
1624
1571
if $ac_init_version; then
1627
generated by GNU Autoconf 2.63
1574
generated by GNU Autoconf 2.64
1629
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1630
2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1576
Copyright (C) 2009 Free Software Foundation, Inc.
1631
1577
This configure script is free software; the Free Software Foundation
1632
1578
gives unlimited permission to copy, distribute and modify it.
1583
## ------------------------ ##
1584
## Autoconf initialization. ##
1585
## ------------------------ ##
1587
# ac_fn_c_try_compile LINENO
1588
# --------------------------
1589
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1590
ac_fn_c_try_compile ()
1592
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1593
rm -f conftest.$ac_objext
1594
if { { ac_try="$ac_compile"
1596
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1597
*) ac_try_echo=$ac_try;;
1599
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1600
$as_echo "$ac_try_echo"; } >&5
1601
(eval "$ac_compile") 2>conftest.err
1603
if test -s conftest.err; then
1604
grep -v '^ *+' conftest.err >conftest.er1
1605
cat conftest.er1 >&5
1606
mv -f conftest.er1 conftest.err
1608
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1609
test $ac_status = 0; } && {
1610
test -z "$ac_c_werror_flag" ||
1611
test ! -s conftest.err
1612
} && test -s conftest.$ac_objext; then :
1615
$as_echo "$as_me: failed program was:" >&5
1616
sed 's/^/| /' conftest.$ac_ext >&5
1620
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1623
} # ac_fn_c_try_compile
1625
# ac_fn_c_try_link LINENO
1626
# -----------------------
1627
# Try to link conftest.$ac_ext, and return whether this succeeded.
1630
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1631
rm -f conftest.$ac_objext conftest$ac_exeext
1632
if { { ac_try="$ac_link"
1634
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1635
*) ac_try_echo=$ac_try;;
1637
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1638
$as_echo "$ac_try_echo"; } >&5
1639
(eval "$ac_link") 2>conftest.err
1641
if test -s conftest.err; then
1642
grep -v '^ *+' conftest.err >conftest.er1
1643
cat conftest.er1 >&5
1644
mv -f conftest.er1 conftest.err
1646
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1647
test $ac_status = 0; } && {
1648
test -z "$ac_c_werror_flag" ||
1649
test ! -s conftest.err
1650
} && test -s conftest$ac_exeext && {
1651
test "$cross_compiling" = yes ||
1652
$as_test_x conftest$ac_exeext
1656
$as_echo "$as_me: failed program was:" >&5
1657
sed 's/^/| /' conftest.$ac_ext >&5
1661
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1662
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1663
# interfere with the next link command; also delete a directory that is
1664
# left behind by Apple's compiler. We do this before executing the actions.
1665
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1666
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1669
} # ac_fn_c_try_link
1671
# ac_fn_c_try_cpp LINENO
1672
# ----------------------
1673
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1676
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1677
if { { ac_try="$ac_cpp conftest.$ac_ext"
1679
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1680
*) ac_try_echo=$ac_try;;
1682
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1683
$as_echo "$ac_try_echo"; } >&5
1684
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1686
if test -s conftest.err; then
1687
grep -v '^ *+' conftest.err >conftest.er1
1688
cat conftest.er1 >&5
1689
mv -f conftest.er1 conftest.err
1691
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1692
test $ac_status = 0; } >/dev/null && {
1693
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1694
test ! -s conftest.err
1698
$as_echo "$as_me: failed program was:" >&5
1699
sed 's/^/| /' conftest.$ac_ext >&5
1703
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1708
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1709
# -------------------------------------------------------
1710
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1711
# the include files in INCLUDES and setting the cache variable VAR
1713
ac_fn_c_check_header_mongrel ()
1715
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1716
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1717
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1718
$as_echo_n "checking for $2... " >&6; }
1719
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1720
$as_echo_n "(cached) " >&6
1723
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1724
$as_echo "$ac_res" >&6; }
1726
# Is the header compilable?
1727
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1728
$as_echo_n "checking $2 usability... " >&6; }
1729
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1730
/* end confdefs.h. */
1734
if ac_fn_c_try_compile "$LINENO"; then :
1735
ac_header_compiler=yes
1737
ac_header_compiler=no
1739
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1740
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1741
$as_echo "$ac_header_compiler" >&6; }
1743
# Is the header present?
1744
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1745
$as_echo_n "checking $2 presence... " >&6; }
1746
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1747
/* end confdefs.h. */
1750
if ac_fn_c_try_cpp "$LINENO"; then :
1751
ac_header_preproc=yes
1753
ac_header_preproc=no
1755
rm -f conftest.err conftest.$ac_ext
1756
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1757
$as_echo "$ac_header_preproc" >&6; }
1759
# So? What about this header?
1760
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1762
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1763
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1764
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1765
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1768
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1769
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1770
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1771
$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1772
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1773
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1774
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1775
$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1776
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1777
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1780
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1781
$as_echo_n "checking for $2... " >&6; }
1782
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1783
$as_echo_n "(cached) " >&6
1785
eval "$3=\$ac_header_compiler"
1788
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1789
$as_echo "$ac_res" >&6; }
1791
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1793
} # ac_fn_c_check_header_mongrel
1795
# ac_fn_c_try_run LINENO
1796
# ----------------------
1797
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1798
# that executables *can* be run.
1801
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1802
if { { ac_try="$ac_link"
1804
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1805
*) ac_try_echo=$ac_try;;
1807
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1808
$as_echo "$ac_try_echo"; } >&5
1809
(eval "$ac_link") 2>&5
1811
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1812
test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1813
{ { case "(($ac_try" in
1814
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1815
*) ac_try_echo=$ac_try;;
1817
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1818
$as_echo "$ac_try_echo"; } >&5
1819
(eval "$ac_try") 2>&5
1821
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1822
test $ac_status = 0; }; }; then :
1825
$as_echo "$as_me: program exited with status $ac_status" >&5
1826
$as_echo "$as_me: failed program was:" >&5
1827
sed 's/^/| /' conftest.$ac_ext >&5
1829
ac_retval=$ac_status
1831
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1832
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1837
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1838
# -------------------------------------------------------
1839
# Tests whether HEADER exists and can be compiled using the include files in
1840
# INCLUDES, setting the cache variable VAR accordingly.
1841
ac_fn_c_check_header_compile ()
1843
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1844
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1845
$as_echo_n "checking for $2... " >&6; }
1846
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1847
$as_echo_n "(cached) " >&6
1849
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1850
/* end confdefs.h. */
1854
if ac_fn_c_try_compile "$LINENO"; then :
1859
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1862
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1863
$as_echo "$ac_res" >&6; }
1864
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1866
} # ac_fn_c_check_header_compile
1868
# ac_fn_c_check_func LINENO FUNC VAR
1869
# ----------------------------------
1870
# Tests whether FUNC exists, setting the cache variable VAR accordingly
1871
ac_fn_c_check_func ()
1873
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1874
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1875
$as_echo_n "checking for $2... " >&6; }
1876
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1877
$as_echo_n "(cached) " >&6
1879
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1880
/* end confdefs.h. */
1881
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1882
For example, HP-UX 11i <limits.h> declares gettimeofday. */
1883
#define $2 innocuous_$2
1885
/* System header to define __stub macros and hopefully few prototypes,
1886
which can conflict with char $2 (); below.
1887
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1888
<limits.h> exists even on freestanding compilers. */
1891
# include <limits.h>
1893
# include <assert.h>
1898
/* Override any GCC internal prototype to avoid an error.
1899
Use char because int might match the return type of a GCC
1900
builtin and then its argument prototype would still apply. */
1905
/* The GNU C library defines this for functions which it implements
1906
to always fail with ENOSYS. Some functions are actually named
1907
something starting with __ and the normal name is an alias. */
1908
#if defined __stub_$2 || defined __stub___$2
1920
if ac_fn_c_try_link "$LINENO"; then :
1925
rm -f core conftest.err conftest.$ac_objext \
1926
conftest$ac_exeext conftest.$ac_ext
1929
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1930
$as_echo "$ac_res" >&6; }
1931
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1933
} # ac_fn_c_check_func
1935
# ac_fn_cxx_try_compile LINENO
1936
# ----------------------------
1937
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1938
ac_fn_cxx_try_compile ()
1940
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1941
rm -f conftest.$ac_objext
1942
if { { ac_try="$ac_compile"
1944
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1945
*) ac_try_echo=$ac_try;;
1947
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1948
$as_echo "$ac_try_echo"; } >&5
1949
(eval "$ac_compile") 2>conftest.err
1951
if test -s conftest.err; then
1952
grep -v '^ *+' conftest.err >conftest.er1
1953
cat conftest.er1 >&5
1954
mv -f conftest.er1 conftest.err
1956
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1957
test $ac_status = 0; } && {
1958
test -z "$ac_cxx_werror_flag" ||
1959
test ! -s conftest.err
1960
} && test -s conftest.$ac_objext; then :
1963
$as_echo "$as_me: failed program was:" >&5
1964
sed 's/^/| /' conftest.$ac_ext >&5
1968
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1971
} # ac_fn_cxx_try_compile
1973
# ac_fn_cxx_try_cpp LINENO
1974
# ------------------------
1975
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1976
ac_fn_cxx_try_cpp ()
1978
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1979
if { { ac_try="$ac_cpp conftest.$ac_ext"
1981
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1982
*) ac_try_echo=$ac_try;;
1984
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1985
$as_echo "$ac_try_echo"; } >&5
1986
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1988
if test -s conftest.err; then
1989
grep -v '^ *+' conftest.err >conftest.er1
1990
cat conftest.er1 >&5
1991
mv -f conftest.er1 conftest.err
1993
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1994
test $ac_status = 0; } >/dev/null && {
1995
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1996
test ! -s conftest.err
2000
$as_echo "$as_me: failed program was:" >&5
2001
sed 's/^/| /' conftest.$ac_ext >&5
2005
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2008
} # ac_fn_cxx_try_cpp
2010
# ac_fn_cxx_try_link LINENO
2011
# -------------------------
2012
# Try to link conftest.$ac_ext, and return whether this succeeded.
2013
ac_fn_cxx_try_link ()
2015
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2016
rm -f conftest.$ac_objext conftest$ac_exeext
2017
if { { ac_try="$ac_link"
2019
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2020
*) ac_try_echo=$ac_try;;
2022
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2023
$as_echo "$ac_try_echo"; } >&5
2024
(eval "$ac_link") 2>conftest.err
2026
if test -s conftest.err; then
2027
grep -v '^ *+' conftest.err >conftest.er1
2028
cat conftest.er1 >&5
2029
mv -f conftest.er1 conftest.err
2031
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2032
test $ac_status = 0; } && {
2033
test -z "$ac_cxx_werror_flag" ||
2034
test ! -s conftest.err
2035
} && test -s conftest$ac_exeext && {
2036
test "$cross_compiling" = yes ||
2037
$as_test_x conftest$ac_exeext
2041
$as_echo "$as_me: failed program was:" >&5
2042
sed 's/^/| /' conftest.$ac_ext >&5
2046
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2047
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2048
# interfere with the next link command; also delete a directory that is
2049
# left behind by Apple's compiler. We do this before executing the actions.
2050
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2051
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2054
} # ac_fn_cxx_try_link
2056
# ac_fn_f77_try_compile LINENO
2057
# ----------------------------
2058
# Try to compile conftest.$ac_ext, and return whether this succeeded.
2059
ac_fn_f77_try_compile ()
2061
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2062
rm -f conftest.$ac_objext
2063
if { { ac_try="$ac_compile"
2065
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2066
*) ac_try_echo=$ac_try;;
2068
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2069
$as_echo "$ac_try_echo"; } >&5
2070
(eval "$ac_compile") 2>conftest.err
2072
if test -s conftest.err; then
2073
grep -v '^ *+' conftest.err >conftest.er1
2074
cat conftest.er1 >&5
2075
mv -f conftest.er1 conftest.err
2077
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2078
test $ac_status = 0; } && {
2079
test -z "$ac_f77_werror_flag" ||
2080
test ! -s conftest.err
2081
} && test -s conftest.$ac_objext; then :
2084
$as_echo "$as_me: failed program was:" >&5
2085
sed 's/^/| /' conftest.$ac_ext >&5
2089
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2092
} # ac_fn_f77_try_compile
2094
# ac_fn_f77_try_link LINENO
2095
# -------------------------
2096
# Try to link conftest.$ac_ext, and return whether this succeeded.
2097
ac_fn_f77_try_link ()
2099
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2100
rm -f conftest.$ac_objext conftest$ac_exeext
2101
if { { ac_try="$ac_link"
2103
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2104
*) ac_try_echo=$ac_try;;
2106
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2107
$as_echo "$ac_try_echo"; } >&5
2108
(eval "$ac_link") 2>conftest.err
2110
if test -s conftest.err; then
2111
grep -v '^ *+' conftest.err >conftest.er1
2112
cat conftest.er1 >&5
2113
mv -f conftest.er1 conftest.err
2115
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2116
test $ac_status = 0; } && {
2117
test -z "$ac_f77_werror_flag" ||
2118
test ! -s conftest.err
2119
} && test -s conftest$ac_exeext && {
2120
test "$cross_compiling" = yes ||
2121
$as_test_x conftest$ac_exeext
2125
$as_echo "$as_me: failed program was:" >&5
2126
sed 's/^/| /' conftest.$ac_ext >&5
2130
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2131
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2132
# interfere with the next link command; also delete a directory that is
2133
# left behind by Apple's compiler. We do this before executing the actions.
2134
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2135
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2138
} # ac_fn_f77_try_link
2140
# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2141
# -------------------------------------------
2142
# Tests whether TYPE exists after having included INCLUDES, setting cache
2143
# variable VAR accordingly.
2144
ac_fn_c_check_type ()
2146
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2147
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2148
$as_echo_n "checking for $2... " >&6; }
2149
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2150
$as_echo_n "(cached) " >&6
2153
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2154
/* end confdefs.h. */
2165
if ac_fn_c_try_compile "$LINENO"; then :
2166
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2167
/* end confdefs.h. */
2178
if ac_fn_c_try_compile "$LINENO"; then :
2183
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2185
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2188
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2189
$as_echo "$ac_res" >&6; }
2190
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2192
} # ac_fn_c_check_type
1636
2193
cat >config.log <<_ACEOF
1637
2194
This file contains any messages produced by compilers while
1638
2195
running configure, to aid debugging if configure makes a mistake.
1640
2197
It was created by $as_me, which was
1641
generated by GNU Autoconf 2.63. Invocation command line was
2198
generated by GNU Autoconf 2.64. Invocation command line was
2684
{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3186
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2685
3187
$as_echo "$ac_file" >&6; }
2686
if test -z "$ac_file"; then
3188
if test -z "$ac_file"; then :
2687
3189
$as_echo "$as_me: failed program was:" >&5
2688
3190
sed 's/^/| /' conftest.$ac_ext >&5
2690
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3192
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2691
3193
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2692
{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2693
See \`config.log' for more details." >&5
2694
$as_echo "$as_me: error: C compiler cannot create executables
2695
See \`config.log' for more details." >&2;}
2696
{ (exit 77); exit 77; }; }; }
3194
{ as_fn_set_status 77
3195
as_fn_error "C compiler cannot create executables
3196
See \`config.log' for more details." "$LINENO" 5; }; }
2699
3198
ac_exeext=$ac_cv_exeext
2701
3200
# Check that the compiler produces executables we can run. If not, either
2702
3201
# the compiler is broken, or we cross compile.
2703
{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3202
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2704
3203
$as_echo_n "checking whether the C compiler works... " >&6; }
2705
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2706
3204
# If not cross compiling, check that we can run a simple program.
2707
3205
if test "$cross_compiling" != yes; then
2708
3206
if { ac_try='./$ac_file'
2709
{ (case "(($ac_try" in
3207
{ { case "(($ac_try" in
2710
3208
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2711
3209
*) ac_try_echo=$ac_try;;
2713
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2714
$as_echo "$ac_try_echo") >&5
3211
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3212
$as_echo "$ac_try_echo"; } >&5
2715
3213
(eval "$ac_try") 2>&5
2717
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718
(exit $ac_status); }; }; then
3215
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3216
test $ac_status = 0; }; }; then
2719
3217
cross_compiling=no
2721
3219
if test "$cross_compiling" = maybe; then
2722
3220
cross_compiling=yes
2724
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3222
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2725
3223
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2726
{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2727
If you meant to cross compile, use \`--host'.
2728
See \`config.log' for more details." >&5
2729
$as_echo "$as_me: error: cannot run C compiled programs.
2730
If you meant to cross compile, use \`--host'.
2731
See \`config.log' for more details." >&2;}
2732
{ (exit 1); exit 1; }; }; }
3224
as_fn_error "cannot run C compiled programs.
3225
If you meant to cross compile, use \`--host'.
3226
See \`config.log' for more details." "$LINENO" 5; }
2736
{ $as_echo "$as_me:$LINENO: result: yes" >&5
3230
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2737
3231
$as_echo "yes" >&6; }
2739
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3233
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
2740
3234
ac_clean_files=$ac_clean_files_save
2741
3235
# Check that the compiler produces executables we can run. If not, either
2742
3236
# the compiler is broken, or we cross compile.
2743
{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3237
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2744
3238
$as_echo_n "checking whether we are cross compiling... " >&6; }
2745
{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3239
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2746
3240
$as_echo "$cross_compiling" >&6; }
2748
{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3242
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2749
3243
$as_echo_n "checking for suffix of executables... " >&6; }
2750
if { (ac_try="$ac_link"
3244
if { { ac_try="$ac_link"
2751
3245
case "(($ac_try" in
2752
3246
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2753
3247
*) ac_try_echo=$ac_try;;
2755
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2756
$as_echo "$ac_try_echo") >&5
3249
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3250
$as_echo "$ac_try_echo"; } >&5
2757
3251
(eval "$ac_link") 2>&5
2759
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760
(exit $ac_status); }; then
3253
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3254
test $ac_status = 0; }; then :
2761
3255
# If both `conftest.exe' and `conftest' are `present' (well, observable)
2762
3256
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2763
3257
# work properly (i.e., refer to `conftest.exe'), while it won't with
4752
4874
for ac_header in dlfcn.h
4754
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4755
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4756
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4757
$as_echo_n "checking for $ac_header... " >&6; }
4758
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4759
$as_echo_n "(cached) " >&6
4761
ac_res=`eval 'as_val=${'$as_ac_Header'}
4762
$as_echo "$as_val"'`
4763
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4764
$as_echo "$ac_res" >&6; }
4766
# Is the header compilable?
4767
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4768
$as_echo_n "checking $ac_header usability... " >&6; }
4769
cat >conftest.$ac_ext <<_ACEOF
4772
cat confdefs.h >>conftest.$ac_ext
4773
cat >>conftest.$ac_ext <<_ACEOF
4774
/* end confdefs.h. */
4775
$ac_includes_default
4776
#include <$ac_header>
4778
rm -f conftest.$ac_objext
4779
if { (ac_try="$ac_compile"
4781
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4782
*) ac_try_echo=$ac_try;;
4784
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4785
$as_echo "$ac_try_echo") >&5
4786
(eval "$ac_compile") 2>conftest.er1
4788
grep -v '^ *+' conftest.er1 >conftest.err
4790
cat conftest.err >&5
4791
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4792
(exit $ac_status); } && {
4793
test -z "$ac_c_werror_flag" ||
4794
test ! -s conftest.err
4795
} && test -s conftest.$ac_objext; then
4796
ac_header_compiler=yes
4798
$as_echo "$as_me: failed program was:" >&5
4799
sed 's/^/| /' conftest.$ac_ext >&5
4801
ac_header_compiler=no
4804
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4805
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4806
$as_echo "$ac_header_compiler" >&6; }
4808
# Is the header present?
4809
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4810
$as_echo_n "checking $ac_header presence... " >&6; }
4811
cat >conftest.$ac_ext <<_ACEOF
4814
cat confdefs.h >>conftest.$ac_ext
4815
cat >>conftest.$ac_ext <<_ACEOF
4816
/* end confdefs.h. */
4817
#include <$ac_header>
4819
if { (ac_try="$ac_cpp conftest.$ac_ext"
4821
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4822
*) ac_try_echo=$ac_try;;
4824
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4825
$as_echo "$ac_try_echo") >&5
4826
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4828
grep -v '^ *+' conftest.er1 >conftest.err
4830
cat conftest.err >&5
4831
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4832
(exit $ac_status); } >/dev/null && {
4833
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4834
test ! -s conftest.err
4836
ac_header_preproc=yes
4838
$as_echo "$as_me: failed program was:" >&5
4839
sed 's/^/| /' conftest.$ac_ext >&5
4841
ac_header_preproc=no
4844
rm -f conftest.err conftest.$ac_ext
4845
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4846
$as_echo "$ac_header_preproc" >&6; }
4848
# So? What about this header?
4849
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4851
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4852
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4853
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4854
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4855
ac_header_preproc=yes
4858
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4859
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4860
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4861
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4862
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4863
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4864
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4865
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4866
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4867
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4868
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4869
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4873
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4874
$as_echo_n "checking for $ac_header... " >&6; }
4875
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4876
$as_echo_n "(cached) " >&6
4878
eval "$as_ac_Header=\$ac_header_preproc"
4880
ac_res=`eval 'as_val=${'$as_ac_Header'}
4881
$as_echo "$as_val"'`
4882
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4883
$as_echo "$ac_res" >&6; }
4886
as_val=`eval 'as_val=${'$as_ac_Header'}
4887
$as_echo "$as_val"'`
4888
if test "x$as_val" = x""yes; then
4876
ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
4877
if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
4889
4878
cat >>confdefs.h <<_ACEOF
4890
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4879
#define HAVE_DLFCN_H 1
6362
rhapsody* | darwin*)
6363
if test -n "$ac_tool_prefix"; then
6364
# Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6365
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6366
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6367
$as_echo_n "checking for $ac_word... " >&6; }
6368
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6369
$as_echo_n "(cached) " >&6
6371
if test -n "$DSYMUTIL"; then
6372
ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6374
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6378
test -z "$as_dir" && as_dir=.
6379
for ac_exec_ext in '' $ac_executable_extensions; do
6380
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6381
ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6382
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6391
DSYMUTIL=$ac_cv_prog_DSYMUTIL
6392
if test -n "$DSYMUTIL"; then
6393
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6394
$as_echo "$DSYMUTIL" >&6; }
6396
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6397
$as_echo "no" >&6; }
6402
if test -z "$ac_cv_prog_DSYMUTIL"; then
6403
ac_ct_DSYMUTIL=$DSYMUTIL
6404
# Extract the first word of "dsymutil", so it can be a program name with args.
6405
set dummy dsymutil; ac_word=$2
6406
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6407
$as_echo_n "checking for $ac_word... " >&6; }
6408
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6409
$as_echo_n "(cached) " >&6
6411
if test -n "$ac_ct_DSYMUTIL"; then
6412
ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6414
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6418
test -z "$as_dir" && as_dir=.
6419
for ac_exec_ext in '' $ac_executable_extensions; do
6420
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6421
ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6422
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6431
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6432
if test -n "$ac_ct_DSYMUTIL"; then
6433
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6434
$as_echo "$ac_ct_DSYMUTIL" >&6; }
6436
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6437
$as_echo "no" >&6; }
6440
if test "x$ac_ct_DSYMUTIL" = x; then
6443
case $cross_compiling:$ac_tool_warned in
6445
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6446
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6447
ac_tool_warned=yes ;;
6449
DSYMUTIL=$ac_ct_DSYMUTIL
6452
DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6455
if test -n "$ac_tool_prefix"; then
6456
# Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6457
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6458
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6459
$as_echo_n "checking for $ac_word... " >&6; }
6460
if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6461
$as_echo_n "(cached) " >&6
6463
if test -n "$NMEDIT"; then
6464
ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6466
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6470
test -z "$as_dir" && as_dir=.
6471
for ac_exec_ext in '' $ac_executable_extensions; do
6472
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6473
ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6474
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6483
NMEDIT=$ac_cv_prog_NMEDIT
6484
if test -n "$NMEDIT"; then
6485
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6486
$as_echo "$NMEDIT" >&6; }
6488
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6489
$as_echo "no" >&6; }
6494
if test -z "$ac_cv_prog_NMEDIT"; then
6495
ac_ct_NMEDIT=$NMEDIT
6496
# Extract the first word of "nmedit", so it can be a program name with args.
6497
set dummy nmedit; ac_word=$2
6498
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6499
$as_echo_n "checking for $ac_word... " >&6; }
6500
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6501
$as_echo_n "(cached) " >&6
6503
if test -n "$ac_ct_NMEDIT"; then
6504
ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6506
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6510
test -z "$as_dir" && as_dir=.
6511
for ac_exec_ext in '' $ac_executable_extensions; do
6512
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6513
ac_cv_prog_ac_ct_NMEDIT="nmedit"
6514
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6523
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6524
if test -n "$ac_ct_NMEDIT"; then
6525
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6526
$as_echo "$ac_ct_NMEDIT" >&6; }
6528
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6529
$as_echo "no" >&6; }
6532
if test "x$ac_ct_NMEDIT" = x; then
6535
case $cross_compiling:$ac_tool_warned in
6537
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6538
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6539
ac_tool_warned=yes ;;
6541
NMEDIT=$ac_ct_NMEDIT
6544
NMEDIT="$ac_cv_prog_NMEDIT"
6548
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6549
$as_echo_n "checking for -single_module linker flag... " >&6; }
6550
if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6551
$as_echo_n "(cached) " >&6
6553
lt_cv_apple_cc_single_mod=no
6554
if test -z "${LT_MULTI_MODULE}"; then
6555
# By default we will add the -single_module flag. You can override
6556
# by either setting the environment variable LT_MULTI_MODULE
6557
# non-empty at configure time, or by adding -multi_module to the
6559
echo "int foo(void){return 1;}" > conftest.c
6560
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6561
-dynamiclib ${wl}-single_module conftest.c
6562
if test -f libconftest.dylib; then
6563
lt_cv_apple_cc_single_mod=yes
6564
rm -rf libconftest.dylib*
6569
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6570
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6571
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6572
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6573
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6574
$as_echo_n "(cached) " >&6
6576
lt_cv_ld_exported_symbols_list=no
6577
save_LDFLAGS=$LDFLAGS
6578
echo "_main" > conftest.sym
6579
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6580
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6581
/* end confdefs.h. */
6591
if ac_fn_c_try_link "$LINENO"; then :
6592
lt_cv_ld_exported_symbols_list=yes
6594
lt_cv_ld_exported_symbols_list=no
6596
rm -f core conftest.err conftest.$ac_objext \
6597
conftest$ac_exeext conftest.$ac_ext
6598
LDFLAGS="$save_LDFLAGS"
6601
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6602
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6604
rhapsody* | darwin1.[0123])
6605
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6607
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6609
# if running on 10.5 or later, the deployment target defaults
6610
# to the OS version, if on x86, and 10.4, the deployment
6611
# target defaults to 10.4. Don't you love it?
6612
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6613
10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6614
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6616
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6618
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6622
if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6623
_lt_dar_single_mod='$single_module'
6625
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6626
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6628
_lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
6630
if test "$DSYMUTIL" != ":"; then
6631
_lt_dsymutil="~$DSYMUTIL \$lib || :"
6637
6639
enable_dlopen=no
6638
6640
enable_win32_dll=yes
6640
6642
# Check whether --enable-libtool-lock was given.
6641
if test "${enable_libtool_lock+set}" = set; then
6643
if test "${enable_libtool_lock+set}" = set; then :
6642
6644
enableval=$enable_libtool_lock;
9072
rm -f conftest.$ac_objext conftest$ac_exeext
9073
if { (ac_try="$ac_link"
9075
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9076
*) ac_try_echo=$ac_try;;
9078
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9079
$as_echo "$ac_try_echo") >&5
9080
(eval "$ac_link") 2>conftest.er1
9082
grep -v '^ *+' conftest.er1 >conftest.err
9084
cat conftest.err >&5
9085
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9086
(exit $ac_status); } && {
9087
test -z "$ac_c_werror_flag" ||
9088
test ! -s conftest.err
9089
} && test -s conftest$ac_exeext && {
9090
test "$cross_compiling" = yes ||
9091
$as_test_x conftest$ac_exeext
8955
if ac_fn_c_try_link "$LINENO"; then :
9093
8956
ac_cv_lib_dld_shl_load=yes
9095
$as_echo "$as_me: failed program was:" >&5
9096
sed 's/^/| /' conftest.$ac_ext >&5
9098
ac_cv_lib_dld_shl_load=no
8958
ac_cv_lib_dld_shl_load=no
9101
rm -rf conftest.dSYM
9102
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9103
conftest$ac_exeext conftest.$ac_ext
8960
rm -f core conftest.err conftest.$ac_objext \
8961
conftest$ac_exeext conftest.$ac_ext
9104
8962
LIBS=$ac_check_lib_save_LIBS
9106
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8964
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9107
8965
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9108
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
9109
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9111
{ $as_echo "$as_me:$LINENO: checking for dlopen" >&5
9112
$as_echo_n "checking for dlopen... " >&6; }
9113
if test "${ac_cv_func_dlopen+set}" = set; then
9114
$as_echo_n "(cached) " >&6
9116
cat >conftest.$ac_ext <<_ACEOF
9119
cat confdefs.h >>conftest.$ac_ext
9120
cat >>conftest.$ac_ext <<_ACEOF
9121
/* end confdefs.h. */
9122
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9123
For example, HP-UX 11i <limits.h> declares gettimeofday. */
9124
#define dlopen innocuous_dlopen
9126
/* System header to define __stub macros and hopefully few prototypes,
9127
which can conflict with char dlopen (); below.
9128
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9129
<limits.h> exists even on freestanding compilers. */
9132
# include <limits.h>
9134
# include <assert.h>
9139
/* Override any GCC internal prototype to avoid an error.
9140
Use char because int might match the return type of a GCC
9141
builtin and then its argument prototype would still apply. */
9146
/* The GNU C library defines this for functions which it implements
9147
to always fail with ENOSYS. Some functions are actually named
9148
something starting with __ and the normal name is an alias. */
9149
#if defined __stub_dlopen || defined __stub___dlopen
9161
rm -f conftest.$ac_objext conftest$ac_exeext
9162
if { (ac_try="$ac_link"
9164
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9165
*) ac_try_echo=$ac_try;;
9167
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9168
$as_echo "$ac_try_echo") >&5
9169
(eval "$ac_link") 2>conftest.er1
9171
grep -v '^ *+' conftest.er1 >conftest.err
9173
cat conftest.err >&5
9174
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9175
(exit $ac_status); } && {
9176
test -z "$ac_c_werror_flag" ||
9177
test ! -s conftest.err
9178
} && test -s conftest$ac_exeext && {
9179
test "$cross_compiling" = yes ||
9180
$as_test_x conftest$ac_exeext
9182
ac_cv_func_dlopen=yes
9184
$as_echo "$as_me: failed program was:" >&5
9185
sed 's/^/| /' conftest.$ac_ext >&5
9187
ac_cv_func_dlopen=no
9190
rm -rf conftest.dSYM
9191
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9192
conftest$ac_exeext conftest.$ac_ext
9194
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9195
$as_echo "$ac_cv_func_dlopen" >&6; }
9196
if test "x$ac_cv_func_dlopen" = x""yes; then
8966
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
8967
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
8969
ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
8970
if test "x$ac_cv_func_dlopen" = x""yes; then :
9197
8971
lt_cv_dlopen="dlopen"
9199
{ $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8973
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9200
8974
$as_echo_n "checking for dlopen in -ldl... " >&6; }
9201
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8975
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9202
8976
$as_echo_n "(cached) " >&6
9204
8978
ac_check_lib_save_LIBS=$LIBS
9205
8979
LIBS="-ldl $LIBS"
9206
cat >conftest.$ac_ext <<_ACEOF
9209
cat confdefs.h >>conftest.$ac_ext
9210
cat >>conftest.$ac_ext <<_ACEOF
8980
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9211
8981
/* end confdefs.h. */
9213
8983
/* Override any GCC internal prototype to avoid an error.
10784
10424
darwin* | rhapsody*)
10786
rhapsody* | darwin1.[012])
10787
allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10790
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10791
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10793
case ${MACOSX_DEPLOYMENT_TARGET} in
10795
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10798
allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10804
10425
archive_cmds_need_lc_CXX=no
10805
10426
hardcode_direct_CXX=no
10806
10427
hardcode_automatic_CXX=yes
10807
10428
hardcode_shlibpath_var_CXX=unsupported
10808
10429
whole_archive_flag_spec_CXX=''
10809
10430
link_all_deplibs_CXX=yes
10811
if test "$GXX" = yes ; then
10812
lt_int_apple_cc_single_mod=no
10431
allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
10432
if test "$GXX" = yes ; then
10813
10433
output_verbose_link_cmd='echo'
10814
if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10815
lt_int_apple_cc_single_mod=yes
10434
archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10435
module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10436
archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
10437
module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
10438
if test "$lt_cv_apple_cc_single_mod" != "yes"; then
10439
archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
10440
archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
10817
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10818
archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10820
archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10822
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10823
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10824
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10825
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10827
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10829
module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10831
10443
case $cc_basename in
10833
10445
output_verbose_link_cmd='echo'
10834
archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10446
archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
10835
10447
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10836
10448
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10837
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10449
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10838
10450
module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19852
rm -f conftest$ac_exeext
19853
if { (ac_try="$ac_link"
19854
case "(($ac_try" in
19855
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19856
*) ac_try_echo=$ac_try;;
19858
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19859
$as_echo "$ac_try_echo") >&5
19860
(eval "$ac_link") 2>&5
19862
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19863
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19864
{ (case "(($ac_try" in
19865
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19866
*) ac_try_echo=$ac_try;;
19868
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19869
$as_echo "$ac_try_echo") >&5
19870
(eval "$ac_try") 2>&5
19872
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19873
(exit $ac_status); }; }; then
19259
if ac_fn_c_try_run "$LINENO"; then :
19876
$as_echo "$as_me: program exited with status $ac_status" >&5
19877
$as_echo "$as_me: failed program was:" >&5
19878
sed 's/^/| /' conftest.$ac_ext >&5
19880
( exit $ac_status )
19881
ac_cv_header_stdc=no
19883
rm -rf conftest.dSYM
19884
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19890
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19262
ac_cv_header_stdc=no
19264
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19265
conftest.$ac_objext conftest.beam conftest.$ac_ext
19270
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
19891
19271
$as_echo "$ac_cv_header_stdc" >&6; }
19892
19272
if test $ac_cv_header_stdc = yes; then
19894
cat >>confdefs.h <<\_ACEOF
19895
#define STDC_HEADERS 1
19274
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
19903
19278
for ac_header in fcntl.h unistd.h string.h
19905
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19906
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19907
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19908
$as_echo_n "checking for $ac_header... " >&6; }
19909
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19910
$as_echo_n "(cached) " >&6
19912
ac_res=`eval 'as_val=${'$as_ac_Header'}
19913
$as_echo "$as_val"'`
19914
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19915
$as_echo "$ac_res" >&6; }
19917
# Is the header compilable?
19918
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19919
$as_echo_n "checking $ac_header usability... " >&6; }
19920
cat >conftest.$ac_ext <<_ACEOF
19923
cat confdefs.h >>conftest.$ac_ext
19924
cat >>conftest.$ac_ext <<_ACEOF
19925
/* end confdefs.h. */
19926
$ac_includes_default
19927
#include <$ac_header>
19929
rm -f conftest.$ac_objext
19930
if { (ac_try="$ac_compile"
19931
case "(($ac_try" in
19932
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19933
*) ac_try_echo=$ac_try;;
19935
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19936
$as_echo "$ac_try_echo") >&5
19937
(eval "$ac_compile") 2>conftest.er1
19939
grep -v '^ *+' conftest.er1 >conftest.err
19941
cat conftest.err >&5
19942
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19943
(exit $ac_status); } && {
19944
test -z "$ac_c_werror_flag" ||
19945
test ! -s conftest.err
19946
} && test -s conftest.$ac_objext; then
19947
ac_header_compiler=yes
19949
$as_echo "$as_me: failed program was:" >&5
19950
sed 's/^/| /' conftest.$ac_ext >&5
19952
ac_header_compiler=no
19955
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19956
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19957
$as_echo "$ac_header_compiler" >&6; }
19959
# Is the header present?
19960
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19961
$as_echo_n "checking $ac_header presence... " >&6; }
19962
cat >conftest.$ac_ext <<_ACEOF
19965
cat confdefs.h >>conftest.$ac_ext
19966
cat >>conftest.$ac_ext <<_ACEOF
19967
/* end confdefs.h. */
19968
#include <$ac_header>
19970
if { (ac_try="$ac_cpp conftest.$ac_ext"
19971
case "(($ac_try" in
19972
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19973
*) ac_try_echo=$ac_try;;
19975
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19976
$as_echo "$ac_try_echo") >&5
19977
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19979
grep -v '^ *+' conftest.er1 >conftest.err
19981
cat conftest.err >&5
19982
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19983
(exit $ac_status); } >/dev/null && {
19984
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19985
test ! -s conftest.err
19987
ac_header_preproc=yes
19989
$as_echo "$as_me: failed program was:" >&5
19990
sed 's/^/| /' conftest.$ac_ext >&5
19992
ac_header_preproc=no
19995
rm -f conftest.err conftest.$ac_ext
19996
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19997
$as_echo "$ac_header_preproc" >&6; }
19999
# So? What about this header?
20000
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20002
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20003
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20004
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20005
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20006
ac_header_preproc=yes
20009
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20010
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20011
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20012
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20013
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20014
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20015
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20016
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20017
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20018
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20019
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20020
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20024
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20025
$as_echo_n "checking for $ac_header... " >&6; }
20026
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20027
$as_echo_n "(cached) " >&6
20029
eval "$as_ac_Header=\$ac_header_preproc"
20031
ac_res=`eval 'as_val=${'$as_ac_Header'}
20032
$as_echo "$as_val"'`
20033
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20034
$as_echo "$ac_res" >&6; }
20037
as_val=`eval 'as_val=${'$as_ac_Header'}
20038
$as_echo "$as_val"'`
20039
if test "x$as_val" = x""yes; then
19280
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19281
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19282
eval as_val=\$$as_ac_Header
19283
if test "x$as_val" = x""yes; then :
20040
19284
cat >>confdefs.h <<_ACEOF
20041
19285
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20875
19689
for ac_header in stdlib.h unistd.h
20877
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20878
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20879
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20880
$as_echo_n "checking for $ac_header... " >&6; }
20881
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20882
$as_echo_n "(cached) " >&6
20884
ac_res=`eval 'as_val=${'$as_ac_Header'}
20885
$as_echo "$as_val"'`
20886
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20887
$as_echo "$ac_res" >&6; }
20889
# Is the header compilable?
20890
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20891
$as_echo_n "checking $ac_header usability... " >&6; }
20892
cat >conftest.$ac_ext <<_ACEOF
20895
cat confdefs.h >>conftest.$ac_ext
20896
cat >>conftest.$ac_ext <<_ACEOF
20897
/* end confdefs.h. */
20898
$ac_includes_default
20899
#include <$ac_header>
20901
rm -f conftest.$ac_objext
20902
if { (ac_try="$ac_compile"
20903
case "(($ac_try" in
20904
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20905
*) ac_try_echo=$ac_try;;
20907
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20908
$as_echo "$ac_try_echo") >&5
20909
(eval "$ac_compile") 2>conftest.er1
20911
grep -v '^ *+' conftest.er1 >conftest.err
20913
cat conftest.err >&5
20914
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20915
(exit $ac_status); } && {
20916
test -z "$ac_c_werror_flag" ||
20917
test ! -s conftest.err
20918
} && test -s conftest.$ac_objext; then
20919
ac_header_compiler=yes
20921
$as_echo "$as_me: failed program was:" >&5
20922
sed 's/^/| /' conftest.$ac_ext >&5
20924
ac_header_compiler=no
20927
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20928
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20929
$as_echo "$ac_header_compiler" >&6; }
20931
# Is the header present?
20932
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20933
$as_echo_n "checking $ac_header presence... " >&6; }
20934
cat >conftest.$ac_ext <<_ACEOF
20937
cat confdefs.h >>conftest.$ac_ext
20938
cat >>conftest.$ac_ext <<_ACEOF
20939
/* end confdefs.h. */
20940
#include <$ac_header>
20942
if { (ac_try="$ac_cpp conftest.$ac_ext"
20943
case "(($ac_try" in
20944
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20945
*) ac_try_echo=$ac_try;;
20947
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20948
$as_echo "$ac_try_echo") >&5
20949
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20951
grep -v '^ *+' conftest.er1 >conftest.err
20953
cat conftest.err >&5
20954
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20955
(exit $ac_status); } >/dev/null && {
20956
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20957
test ! -s conftest.err
20959
ac_header_preproc=yes
20961
$as_echo "$as_me: failed program was:" >&5
20962
sed 's/^/| /' conftest.$ac_ext >&5
20964
ac_header_preproc=no
20967
rm -f conftest.err conftest.$ac_ext
20968
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20969
$as_echo "$ac_header_preproc" >&6; }
20971
# So? What about this header?
20972
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20974
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20975
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20976
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20977
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20978
ac_header_preproc=yes
20981
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20982
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20983
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20984
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20985
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20986
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20987
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20988
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20989
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20990
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20991
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20992
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20996
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20997
$as_echo_n "checking for $ac_header... " >&6; }
20998
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20999
$as_echo_n "(cached) " >&6
21001
eval "$as_ac_Header=\$ac_header_preproc"
21003
ac_res=`eval 'as_val=${'$as_ac_Header'}
21004
$as_echo "$as_val"'`
21005
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21006
$as_echo "$ac_res" >&6; }
21009
as_val=`eval 'as_val=${'$as_ac_Header'}
21010
$as_echo "$as_val"'`
21011
if test "x$as_val" = x""yes; then
19691
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19692
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19693
eval as_val=\$$as_ac_Header
19694
if test "x$as_val" = x""yes; then :
21012
19695
cat >>confdefs.h <<_ACEOF
21013
19696
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1