2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.59 for curl -.
5
# Report bugs to <curl-bug@haxx.se>.
7
# Copyright (C) 2003 Free Software Foundation, Inc.
8
# This configure script is free software; the Free Software Foundation
9
# gives unlimited permission to copy, distribute and modify it.
11
# Copyright (c) 1998 - 2004 Daniel Stenberg, <daniel@haxx.se>
12
# This configure script may be copied, distributed and modified under the
13
# terms of the curl license; see COPYING for more details
14
## --------------------- ##
15
## M4sh Initialization. ##
16
## --------------------- ##
18
# Be Bourne compatible
19
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23
# is contrary to our usage. Disable this feature.
24
alias -g '${1+"$@"}'='"$@"'
25
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28
DUALCASE=1; export DUALCASE # for MKS sh
30
# Support unset when possible.
31
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
38
# Work around bugs in pre-3.0 UWIN ksh.
39
$as_unset ENV MAIL MAILPATH
46
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
47
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
51
eval $as_var=C; export $as_var
57
# Required to use basename.
58
if expr a : '\(a\)' >/dev/null 2>&1; then
64
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
71
# Name of the executable.
72
as_me=`$as_basename "$0" ||
73
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
74
X"$0" : 'X\(//\)$' \| \
75
X"$0" : 'X\(/\)$' \| \
76
. : '\(.\)' 2>/dev/null ||
78
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
79
/^X\/\(\/\/\)$/{ s//\1/; q; }
80
/^X\/\(\/\).*/{ s//\1/; q; }
84
# PATH needs CR, and LINENO needs CR and PATH.
85
# Avoid depending upon Character Ranges.
86
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
87
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
88
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
89
as_cr_digits='0123456789'
90
as_cr_alnum=$as_cr_Letters$as_cr_digits
92
# The user is always right.
93
if test "${PATH_SEPARATOR+set}" != set; then
94
echo "#! /bin/sh" >conf$$.sh
95
echo "exit 0" >>conf$$.sh
97
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
108
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
109
test "x$as_lineno_1" != "x$as_lineno_2" &&
110
test "x$as_lineno_3" = "x$as_lineno_2" || {
111
# Find who we are. Look in the path if we contain no path at all
114
*[\\/]* ) as_myself=$0 ;;
115
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
119
test -z "$as_dir" && as_dir=.
120
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
125
# We did not find ourselves, most probably we were run as `sh COMMAND'
126
# in which case we are not to be found in the path.
127
if test "x$as_myself" = x; then
130
if test ! -f "$as_myself"; then
131
{ echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
132
{ (exit 1); exit 1; }; }
134
case $CONFIG_SHELL in
136
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
137
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140
test -z "$as_dir" && as_dir=.
141
for as_base in sh bash ksh sh5; do
144
if ("$as_dir/$as_base" -c '
147
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
148
test "x$as_lineno_1" != "x$as_lineno_2" &&
149
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
150
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
151
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
152
CONFIG_SHELL=$as_dir/$as_base
154
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
162
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
163
# uniformly replaced by the line number. The first 'sed' inserts a
164
# line-number line before each line; the second 'sed' does the real
165
# work. The second script uses 'N' to pair each line-number line
166
# with the numbered line, and appends trailing '-' during
167
# substitution so that $LINENO is not a special case at line end.
168
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
169
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
170
sed '=' <$as_myself |
175
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178
s,^['$as_cr_digits']*\n,,
180
chmod +x $as_me.lineno ||
181
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
182
{ (exit 1); exit 1; }; }
184
# Don't try to exec as it changes $[0], causing all sort of problems
185
# (the dirname of $[0] is not the place where we might find the
186
# original and so on. Autoconf is especially sensible to this).
188
# Exit status is that of the last command.
193
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
194
*c*,-n*) ECHO_N= ECHO_C='
196
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
197
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
200
if expr a : '\(a\)' >/dev/null 2>&1; then
206
rm -f conf$$ conf$$.exe conf$$.file
208
if ln -s conf$$.file conf$$ 2>/dev/null; then
209
# We could just check for DJGPP; but this test a) works b) is more generic
210
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
211
if test -f conf$$.exe; then
212
# Don't use ln at all; we don't have any links
217
elif ln conf$$.file conf$$ 2>/dev/null; then
222
rm -f conf$$ conf$$.exe conf$$.file
224
if mkdir -p . 2>/dev/null; then
227
test -d ./-p && rmdir ./-p
231
as_executable_p="test -f"
233
# Sed expression to map a string onto a valid CPP name.
234
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
236
# Sed expression to map a string onto a valid variable name.
237
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
241
# We need space, tab and new line, in precisely that order.
251
# Check that we are running under the correct shell.
252
SHELL=${CONFIG_SHELL-/bin/sh}
256
# Remove one level of quotation (which was required for Make).
257
ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
262
if test "X$1" = X--no-reexec; then
263
# Discard the --no-reexec flag, and continue.
265
elif test "X$1" = X--fallback-echo; then
266
# Avoid inline document here, it may be left over
268
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
269
# Yippee, $echo works!
272
# Restart under the correct shell.
273
exec $SHELL "$0" --no-reexec ${1+"$@"}
276
if test "X$1" = X--fallback-echo; then
277
# used as fallback echo
285
# The HP-UX ksh and POSIX shell print the target directory to stdout
287
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
289
if test -z "$ECHO"; then
290
if test "X${echo_test_string+set}" != Xset; then
291
# find a string as large as possible, as long as the shell can cope with it
292
for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
293
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
294
if (echo_test_string="`eval $cmd`") 2>/dev/null &&
295
echo_test_string="`eval $cmd`" &&
296
(test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
303
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
304
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
305
test "X$echo_testing_string" = "X$echo_test_string"; then
308
# The Solaris, AIX, and Digital Unix default echo programs unquote
309
# backslashes. This makes it impossible to quote backslashes using
310
# echo "$something" | sed 's/\\/\\\\/g'
312
# So, first we look for a working echo in the user's PATH.
314
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
315
for dir in $PATH /usr/ucb; do
317
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
318
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
319
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
320
test "X$echo_testing_string" = "X$echo_test_string"; then
327
if test "X$echo" = Xecho; then
328
# We didn't find a better echo, so look for alternatives.
329
if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
330
echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
331
test "X$echo_testing_string" = "X$echo_test_string"; then
332
# This shell has a builtin print -r that does the trick.
334
elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
335
test "X$CONFIG_SHELL" != X/bin/ksh; then
336
# If we have ksh, try running configure again with it.
337
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
338
export ORIGINAL_CONFIG_SHELL
339
CONFIG_SHELL=/bin/ksh
341
exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
345
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
346
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
347
test "X$echo_testing_string" = "X$echo_test_string"; then
350
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
351
test "X$echo_testing_string" = 'X\t' &&
352
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
353
test "X$echo_testing_string" = "X$echo_test_string"; then
354
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
356
SHELL="$CONFIG_SHELL"
358
echo="$CONFIG_SHELL $0 --fallback-echo"
359
elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
360
test "X$echo_testing_string" = 'X\t' &&
361
echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
362
test "X$echo_testing_string" = "X$echo_test_string"; then
363
echo="$CONFIG_SHELL $0 --fallback-echo"
365
# maybe with a smaller string...
368
for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
369
if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
376
if test "$prev" != 'sed 50q "$0"'; then
377
echo_test_string=`eval $prev`
378
export echo_test_string
379
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
381
# Oops. We lost completely, so just stick with echo.
390
# Copy echo and quote the copy suitably for passing to libtool from
391
# the Makefile, instead of quoting the original, which is used later.
393
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
394
ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
400
tagnames=${tagnames+${tagnames},}CXX
402
tagnames=${tagnames+${tagnames},}F77
405
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
406
# so uname gets run too.
407
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
414
ac_default_prefix=/usr/local
415
ac_config_libobj_dir=.
420
SHELL=${CONFIG_SHELL-/bin/sh}
422
# Maximum number of lines to put in a shell here document.
423
# This variable seems obsolete. It should probably be removed, and
424
# only ac_max_sed_lines should be used.
425
: ${ac_max_here_lines=38}
427
# Identity of this package.
429
PACKAGE_TARNAME='curl'
431
PACKAGE_STRING='curl -'
432
PACKAGE_BUGREPORT='curl-bug@haxx.se'
434
ac_unique_file="lib/urldata.h"
435
# Factoring default headers for most tests.
436
ac_includes_default="\
439
# include <sys/types.h>
442
# include <sys/stat.h>
453
# if !STDC_HEADERS && HAVE_MEMORY_H
459
# include <strings.h>
462
# include <inttypes.h>
472
ac_subdirs_all="$ac_subdirs_all ares"
473
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT SED AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot VERSIONNUM PKGADD_PKG PKGADD_NAME PKGADD_VENDOR build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP LN_S ECHO ac_ct_AR RANLIB ac_ct_RANLIB DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL NO_UNDEFINED_TRUE NO_UNDEFINED_FALSE MIMPURE_TRUE MIMPURE_FALSE CURL_DISABLE_HTTP CURL_DISABLE_GOPHER CURL_DISABLE_FTP CURL_DISABLE_FILE CURL_DISABLE_LDAP CURL_DISABLE_DICT CURL_DISABLE_TELNET IPV6_ENABLED RANDOM_FILE KRB4_ENABLED PKGCONFIG OPENSSL_ENABLED CURL_CA_BUNDLE CABUNDLE_TRUE CABUNDLE_FALSE HAVE_LIBZ HAVE_LIBZ_TRUE HAVE_LIBZ_FALSE PERL NROFF MANOPT YACC USE_MANUAL_TRUE USE_MANUAL_FALSE HAVE_ARES subdirs LIBOBJS LTLIBOBJS'
476
# Initialize some variables set by options.
478
ac_init_version=false
479
# The variables have the same names as the options, with
480
# dashes changed to underlines.
488
program_transform_name=s,x,x,
496
# Installation directory options.
497
# These are left unexpanded so users can "make install exec_prefix=/foo"
498
# and all the variables that are supposed to be based on exec_prefix
499
# by default will actually change.
500
# Use braces instead of parens because sh, perl, etc. also accept them.
501
bindir='${exec_prefix}/bin'
502
sbindir='${exec_prefix}/sbin'
503
libexecdir='${exec_prefix}/libexec'
504
datadir='${prefix}/share'
505
sysconfdir='${prefix}/etc'
506
sharedstatedir='${prefix}/com'
507
localstatedir='${prefix}/var'
508
libdir='${exec_prefix}/lib'
509
includedir='${prefix}/include'
510
oldincludedir='/usr/include'
511
infodir='${prefix}/info'
512
mandir='${prefix}/man'
517
# If the previous option needs an argument, assign it.
518
if test -n "$ac_prev"; then
519
eval "$ac_prev=\$ac_option"
524
ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
526
# Accept the important Cygnus configure options, so we can diagnose typos.
530
-bindir | --bindir | --bindi | --bind | --bin | --bi)
532
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535
-build | --build | --buil | --bui | --bu)
536
ac_prev=build_alias ;;
537
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
538
build_alias=$ac_optarg ;;
540
-cache-file | --cache-file | --cache-fil | --cache-fi \
541
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
542
ac_prev=cache_file ;;
543
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
544
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
545
cache_file=$ac_optarg ;;
548
cache_file=config.cache ;;
550
-datadir | --datadir | --datadi | --datad | --data | --dat | --da)
552
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
554
datadir=$ac_optarg ;;
556
-disable-* | --disable-*)
557
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
558
# Reject names that are not valid shell variable names.
559
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
560
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
561
{ (exit 1); exit 1; }; }
562
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
563
eval "enable_$ac_feature=no" ;;
565
-enable-* | --enable-*)
566
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
567
# Reject names that are not valid shell variable names.
568
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
569
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
570
{ (exit 1); exit 1; }; }
571
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
573
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576
eval "enable_$ac_feature='$ac_optarg'" ;;
578
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
579
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
580
| --exec | --exe | --ex)
581
ac_prev=exec_prefix ;;
582
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
583
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
584
| --exec=* | --exe=* | --ex=*)
585
exec_prefix=$ac_optarg ;;
587
-gas | --gas | --ga | --g)
588
# Obsolete; use --with-gas.
591
-help | --help | --hel | --he | -h)
593
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
594
ac_init_help=recursive ;;
595
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
596
ac_init_help=short ;;
598
-host | --host | --hos | --ho)
599
ac_prev=host_alias ;;
600
-host=* | --host=* | --hos=* | --ho=*)
601
host_alias=$ac_optarg ;;
603
-includedir | --includedir | --includedi | --included | --include \
604
| --includ | --inclu | --incl | --inc)
605
ac_prev=includedir ;;
606
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
607
| --includ=* | --inclu=* | --incl=* | --inc=*)
608
includedir=$ac_optarg ;;
610
-infodir | --infodir | --infodi | --infod | --info | --inf)
612
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
613
infodir=$ac_optarg ;;
615
-libdir | --libdir | --libdi | --libd)
617
-libdir=* | --libdir=* | --libdi=* | --libd=*)
620
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
621
| --libexe | --libex | --libe)
622
ac_prev=libexecdir ;;
623
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
624
| --libexe=* | --libex=* | --libe=*)
625
libexecdir=$ac_optarg ;;
627
-localstatedir | --localstatedir | --localstatedi | --localstated \
628
| --localstate | --localstat | --localsta | --localst \
629
| --locals | --local | --loca | --loc | --lo)
630
ac_prev=localstatedir ;;
631
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
632
| --localstate=* | --localstat=* | --localsta=* | --localst=* \
633
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
634
localstatedir=$ac_optarg ;;
636
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
638
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
642
# Obsolete; use --without-fp.
645
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
646
| --no-cr | --no-c | -n)
649
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
650
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
654
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
655
| --oldin | --oldi | --old | --ol | --o)
656
ac_prev=oldincludedir ;;
657
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
658
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
659
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
660
oldincludedir=$ac_optarg ;;
662
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
664
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667
-program-prefix | --program-prefix | --program-prefi | --program-pref \
668
| --program-pre | --program-pr | --program-p)
669
ac_prev=program_prefix ;;
670
-program-prefix=* | --program-prefix=* | --program-prefi=* \
671
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
672
program_prefix=$ac_optarg ;;
674
-program-suffix | --program-suffix | --program-suffi | --program-suff \
675
| --program-suf | --program-su | --program-s)
676
ac_prev=program_suffix ;;
677
-program-suffix=* | --program-suffix=* | --program-suffi=* \
678
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
679
program_suffix=$ac_optarg ;;
681
-program-transform-name | --program-transform-name \
682
| --program-transform-nam | --program-transform-na \
683
| --program-transform-n | --program-transform- \
684
| --program-transform | --program-transfor \
685
| --program-transfo | --program-transf \
686
| --program-trans | --program-tran \
687
| --progr-tra | --program-tr | --program-t)
688
ac_prev=program_transform_name ;;
689
-program-transform-name=* | --program-transform-name=* \
690
| --program-transform-nam=* | --program-transform-na=* \
691
| --program-transform-n=* | --program-transform-=* \
692
| --program-transform=* | --program-transfor=* \
693
| --program-transfo=* | --program-transf=* \
694
| --program-trans=* | --program-tran=* \
695
| --progr-tra=* | --program-tr=* | --program-t=*)
696
program_transform_name=$ac_optarg ;;
698
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
699
| -silent | --silent | --silen | --sile | --sil)
702
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
704
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
706
sbindir=$ac_optarg ;;
708
-sharedstatedir | --sharedstatedir | --sharedstatedi \
709
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
710
| --sharedst | --shareds | --shared | --share | --shar \
712
ac_prev=sharedstatedir ;;
713
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
714
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
715
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
717
sharedstatedir=$ac_optarg ;;
719
-site | --site | --sit)
721
-site=* | --site=* | --sit=*)
724
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
726
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
730
| --syscon | --sysco | --sysc | --sys | --sy)
731
ac_prev=sysconfdir ;;
732
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
733
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
734
sysconfdir=$ac_optarg ;;
736
-target | --target | --targe | --targ | --tar | --ta | --t)
737
ac_prev=target_alias ;;
738
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
739
target_alias=$ac_optarg ;;
741
-v | -verbose | --verbose | --verbos | --verbo | --verb)
744
-version | --version | --versio | --versi | --vers | -V)
748
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
749
# Reject names that are not valid shell variable names.
750
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
751
{ echo "$as_me: error: invalid package name: $ac_package" >&2
752
{ (exit 1); exit 1; }; }
753
ac_package=`echo $ac_package| sed 's/-/_/g'`
755
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758
eval "with_$ac_package='$ac_optarg'" ;;
760
-without-* | --without-*)
761
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
762
# Reject names that are not valid shell variable names.
763
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
764
{ echo "$as_me: error: invalid package name: $ac_package" >&2
765
{ (exit 1); exit 1; }; }
766
ac_package=`echo $ac_package | sed 's/-/_/g'`
767
eval "with_$ac_package=no" ;;
770
# Obsolete; use --with-x.
773
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
774
| --x-incl | --x-inc | --x-in | --x-i)
775
ac_prev=x_includes ;;
776
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
777
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
778
x_includes=$ac_optarg ;;
780
-x-libraries | --x-libraries | --x-librarie | --x-librari \
781
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
782
ac_prev=x_libraries ;;
783
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
784
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
785
x_libraries=$ac_optarg ;;
787
-*) { echo "$as_me: error: unrecognized option: $ac_option
788
Try \`$0 --help' for more information." >&2
789
{ (exit 1); exit 1; }; }
793
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
794
# Reject names that are not valid shell variable names.
795
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
796
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2
797
{ (exit 1); exit 1; }; }
798
ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
799
eval "$ac_envvar='$ac_optarg'"
803
# FIXME: should be removed in autoconf 3.0.
804
echo "$as_me: WARNING: you should use --build, --host, --target" >&2
805
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
806
echo "$as_me: WARNING: invalid host type: $ac_option" >&2
807
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
813
if test -n "$ac_prev"; then
814
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
815
{ echo "$as_me: error: missing argument to $ac_option" >&2
816
{ (exit 1); exit 1; }; }
819
# Be sure to have absolute paths.
820
for ac_var in exec_prefix prefix
822
eval ac_val=$`echo $ac_var`
824
[\\/$]* | ?:[\\/]* | NONE | '' ) ;;
825
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
826
{ (exit 1); exit 1; }; };;
830
# Be sure to have absolute paths.
831
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
832
localstatedir libdir includedir oldincludedir infodir mandir
834
eval ac_val=$`echo $ac_var`
836
[\\/$]* | ?:[\\/]* ) ;;
837
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
838
{ (exit 1); exit 1; }; };;
842
# There might be people who depend on the old broken behavior: `$host'
843
# used to hold the argument of --host etc.
844
# FIXME: To remove some day.
849
# FIXME: To remove some day.
850
if test "x$host_alias" != x; then
851
if test "x$build_alias" = x; then
852
cross_compiling=maybe
853
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
854
If a cross compiler is detected then cross compile mode will be used." >&2
855
elif test "x$build_alias" != "x$host_alias"; then
861
test -n "$host_alias" && ac_tool_prefix=$host_alias-
863
test "$silent" = yes && exec 6>/dev/null
866
# Find the source files, if location was not specified.
867
if test -z "$srcdir"; then
868
ac_srcdir_defaulted=yes
869
# Try the directory containing this script, then its parent.
870
ac_confdir=`(dirname "$0") 2>/dev/null ||
871
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
872
X"$0" : 'X\(//\)[^/]' \| \
873
X"$0" : 'X\(//\)$' \| \
874
X"$0" : 'X\(/\)' \| \
875
. : '\(.\)' 2>/dev/null ||
877
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
878
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
879
/^X\(\/\/\)$/{ s//\1/; q; }
880
/^X\(\/\).*/{ s//\1/; q; }
883
if test ! -r $srcdir/$ac_unique_file; then
887
ac_srcdir_defaulted=no
889
if test ! -r $srcdir/$ac_unique_file; then
890
if test "$ac_srcdir_defaulted" = yes; then
891
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
892
{ (exit 1); exit 1; }; }
894
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
895
{ (exit 1); exit 1; }; }
898
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
899
{ echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
900
{ (exit 1); exit 1; }; }
901
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
902
ac_env_build_alias_set=${build_alias+set}
903
ac_env_build_alias_value=$build_alias
904
ac_cv_env_build_alias_set=${build_alias+set}
905
ac_cv_env_build_alias_value=$build_alias
906
ac_env_host_alias_set=${host_alias+set}
907
ac_env_host_alias_value=$host_alias
908
ac_cv_env_host_alias_set=${host_alias+set}
909
ac_cv_env_host_alias_value=$host_alias
910
ac_env_target_alias_set=${target_alias+set}
911
ac_env_target_alias_value=$target_alias
912
ac_cv_env_target_alias_set=${target_alias+set}
913
ac_cv_env_target_alias_value=$target_alias
914
ac_env_CC_set=${CC+set}
916
ac_cv_env_CC_set=${CC+set}
917
ac_cv_env_CC_value=$CC
918
ac_env_CFLAGS_set=${CFLAGS+set}
919
ac_env_CFLAGS_value=$CFLAGS
920
ac_cv_env_CFLAGS_set=${CFLAGS+set}
921
ac_cv_env_CFLAGS_value=$CFLAGS
922
ac_env_LDFLAGS_set=${LDFLAGS+set}
923
ac_env_LDFLAGS_value=$LDFLAGS
924
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
925
ac_cv_env_LDFLAGS_value=$LDFLAGS
926
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
927
ac_env_CPPFLAGS_value=$CPPFLAGS
928
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
929
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
930
ac_env_CPP_set=${CPP+set}
931
ac_env_CPP_value=$CPP
932
ac_cv_env_CPP_set=${CPP+set}
933
ac_cv_env_CPP_value=$CPP
934
ac_env_CXX_set=${CXX+set}
935
ac_env_CXX_value=$CXX
936
ac_cv_env_CXX_set=${CXX+set}
937
ac_cv_env_CXX_value=$CXX
938
ac_env_CXXFLAGS_set=${CXXFLAGS+set}
939
ac_env_CXXFLAGS_value=$CXXFLAGS
940
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
941
ac_cv_env_CXXFLAGS_value=$CXXFLAGS
942
ac_env_CXXCPP_set=${CXXCPP+set}
943
ac_env_CXXCPP_value=$CXXCPP
944
ac_cv_env_CXXCPP_set=${CXXCPP+set}
945
ac_cv_env_CXXCPP_value=$CXXCPP
946
ac_env_F77_set=${F77+set}
947
ac_env_F77_value=$F77
948
ac_cv_env_F77_set=${F77+set}
949
ac_cv_env_F77_value=$F77
950
ac_env_FFLAGS_set=${FFLAGS+set}
951
ac_env_FFLAGS_value=$FFLAGS
952
ac_cv_env_FFLAGS_set=${FFLAGS+set}
953
ac_cv_env_FFLAGS_value=$FFLAGS
956
# Report the --help message.
958
if test "$ac_init_help" = "long"; then
959
# Omit some internal or obsolete options to make the list less imposing.
960
# This message is too long to be a string in the A/UX 3.1 sh.
962
\`configure' configures curl - to adapt to many kinds of systems.
964
Usage: $0 [OPTION]... [VAR=VALUE]...
966
To assign environment variables (e.g., CC, CFLAGS...), specify them as
967
VAR=VALUE. See below for descriptions of some of the useful variables.
969
Defaults for the options are specified in brackets.
972
-h, --help display this help and exit
973
--help=short display options specific to this package
974
--help=recursive display the short help of all the included packages
975
-V, --version display version information and exit
976
-q, --quiet, --silent do not print \`checking...' messages
977
--cache-file=FILE cache test results in FILE [disabled]
978
-C, --config-cache alias for \`--cache-file=config.cache'
979
-n, --no-create do not create output files
980
--srcdir=DIR find the sources in DIR [configure dir or \`..']
985
Installation directories:
986
--prefix=PREFIX install architecture-independent files in PREFIX
988
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
991
By default, \`make install' will install all the files in
992
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
993
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
994
for instance \`--prefix=\$HOME'.
996
For better control, use the options below.
998
Fine tuning of the installation directories:
999
--bindir=DIR user executables [EPREFIX/bin]
1000
--sbindir=DIR system admin executables [EPREFIX/sbin]
1001
--libexecdir=DIR program executables [EPREFIX/libexec]
1002
--datadir=DIR read-only architecture-independent data [PREFIX/share]
1003
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1004
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1005
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1006
--libdir=DIR object code libraries [EPREFIX/lib]
1007
--includedir=DIR C header files [PREFIX/include]
1008
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1009
--infodir=DIR info documentation [PREFIX/info]
1010
--mandir=DIR man documentation [PREFIX/man]
1016
--program-prefix=PREFIX prepend PREFIX to installed program names
1017
--program-suffix=SUFFIX append SUFFIX to installed program names
1018
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
1021
--build=BUILD configure for building on BUILD [guessed]
1022
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1026
if test -n "$ac_init_help"; then
1027
case $ac_init_help in
1028
short | recursive ) echo "Configuration of curl -:";;
1033
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1034
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1035
--enable-maintainer-mode enable make rules and dependencies not useful
1036
(and sometimes confusing) to the casual installer
1037
--disable-dependency-tracking speeds up one-time build
1038
--enable-dependency-tracking do not reject slow dependency extractors
1039
--disable-largefile omit support for large files
1040
--enable-shared[=PKGS]
1041
build shared libraries [default=yes]
1042
--enable-static[=PKGS]
1043
build static libraries [default=yes]
1044
--enable-fast-install[=PKGS]
1045
optimize for fast installation [default=yes]
1046
--disable-libtool-lock avoid locking (might break parallel builds)
1047
--enable-http Enable HTTP support
1048
--disable-http Disable HTTP support
1049
--enable-ftp Enable FTP support
1050
--disable-ftp Disable FTP support
1051
--enable-gopher Enable GOPHER support
1052
--disable-gopher Disable GOPHER support
1053
--enable-file Enable FILE support
1054
--disable-file Disable FILE support
1055
--enable-ldap Enable LDAP support
1056
--disable-ldap Disable LDAP support
1057
--enable-dict Enable DICT support
1058
--disable-dict Disable DICT support
1059
--enable-telnet Enable TELNET support
1060
--disable-telnet Disable TELNET support
1061
--enable-manual Enable built-in manual
1062
--disable-manual Disable built-in manual
1063
--enable-libgcc use libgcc when linking
1064
--enable-ipv6 Enable ipv6 (with ipv4) support
1065
--disable-ipv6 Disable ipv6 support
1066
--enable-nonblocking Enable detecting how to do it
1067
--disable-nonblocking Disable non-blocking socket detection
1068
--disable-thread don't look for thread-safe functions
1069
--enable-thread look for thread-safe functions
1070
--enable-debug Enable pedantic debug options
1071
--disable-debug Disable debug options
1072
--enable-ares=PATH Enable ares for name lookups
1073
--disable-ares Disable ares for name lookups
1076
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1077
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1078
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
1079
--with-pic try to use only PIC/non-PIC objects [default=use
1082
include additional configurations [automatic]
1083
--with-egd-socket=FILE Entropy Gathering Daemon socket pathname
1084
--with-random=FILE read randomness from FILE (default=/dev/urandom)
1085
--with-krb4-includes=DIR
1086
Specify location of kerberos4 headers
1087
--with-krb4-libs=DIR Specify location of kerberos4 libs
1088
--with-krb4=DIR where to look for Kerberos4
1089
--with-spnego=DIR Specify location of SPNEGO library fbopenssl
1090
--with-gssapi-includes=DIR
1091
Specify location of GSSAPI header
1092
--with-gssapi-libs=DIR Specify location of GSSAPI libs
1093
--with-gssapi=DIR Where to look for GSSAPI
1094
--with-ssl=PATH where to look for SSL, PATH points to the SSL
1095
installation (default: /usr/local/ssl)
1096
--without-ssl disable SSL
1097
--with-ca-bundle=FILE File name to install the CA bundle as
1098
--without-ca-bundle Don't install the CA bundle
1099
--with-zlib=PATH search for zlib in PATH
1100
--without-zlib disable use of zlib
1102
Some influential environment variables:
1103
CC C compiler command
1104
CFLAGS C compiler flags
1105
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1106
nonstandard directory <lib dir>
1107
CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1108
headers in a nonstandard directory <include dir>
1110
CXX C++ compiler command
1111
CXXFLAGS C++ compiler flags
1112
CXXCPP C++ preprocessor
1113
F77 Fortran 77 compiler command
1114
FFLAGS Fortran 77 compiler flags
1116
Use these variables to override the choices made by `configure' or to help
1117
it to find libraries and programs with nonstandard names/locations.
1119
Report bugs to <curl-bug@haxx.se>.
1123
if test "$ac_init_help" = "recursive"; then
1124
# If there are subdirs, report their specific --help.
1126
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1127
test -d $ac_dir || continue
1130
if test "$ac_dir" != .; then
1131
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1132
# A "../" for each directory in $ac_dir_suffix.
1133
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1135
ac_dir_suffix= ac_top_builddir=
1139
.) # No --srcdir option. We are building in place.
1141
if test -z "$ac_top_builddir"; then
1144
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1146
[\\/]* | ?:[\\/]* ) # Absolute path.
1147
ac_srcdir=$srcdir$ac_dir_suffix;
1148
ac_top_srcdir=$srcdir ;;
1150
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1151
ac_top_srcdir=$ac_top_builddir$srcdir ;;
1154
# Do not use `cd foo && pwd` to compute absolute paths, because
1155
# the directories may not exist.
1157
.) ac_abs_builddir="$ac_dir";;
1160
.) ac_abs_builddir=`pwd`;;
1161
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1162
*) ac_abs_builddir=`pwd`/"$ac_dir";;
1165
case $ac_abs_builddir in
1166
.) ac_abs_top_builddir=${ac_top_builddir}.;;
1168
case ${ac_top_builddir}. in
1169
.) ac_abs_top_builddir=$ac_abs_builddir;;
1170
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1171
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1174
case $ac_abs_builddir in
1175
.) ac_abs_srcdir=$ac_srcdir;;
1178
.) ac_abs_srcdir=$ac_abs_builddir;;
1179
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1180
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1183
case $ac_abs_builddir in
1184
.) ac_abs_top_srcdir=$ac_top_srcdir;;
1186
case $ac_top_srcdir in
1187
.) ac_abs_top_srcdir=$ac_abs_builddir;;
1188
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1189
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1194
# Check for guested configure; otherwise get Cygnus style configure.
1195
if test -f $ac_srcdir/configure.gnu; then
1197
$SHELL $ac_srcdir/configure.gnu --help=recursive
1198
elif test -f $ac_srcdir/configure; then
1200
$SHELL $ac_srcdir/configure --help=recursive
1201
elif test -f $ac_srcdir/configure.ac ||
1202
test -f $ac_srcdir/configure.in; then
1204
$ac_configure --help
1206
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1212
test -n "$ac_init_help" && exit 0
1213
if $ac_init_version; then
1216
generated by GNU Autoconf 2.59
1218
Copyright (C) 2003 Free Software Foundation, Inc.
1219
This configure script is free software; the Free Software Foundation
1220
gives unlimited permission to copy, distribute and modify it.
1222
Copyright (c) 1998 - 2004 Daniel Stenberg, <daniel@haxx.se>
1223
This configure script may be copied, distributed and modified under the
1224
terms of the curl license; see COPYING for more details
1230
This file contains any messages produced by compilers while
1231
running configure, to aid debugging if configure makes a mistake.
1233
It was created by curl $as_me -, which was
1234
generated by GNU Autoconf 2.59. Invocation command line was
1245
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1246
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1247
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1248
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1249
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1251
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1252
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1254
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1255
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1256
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1257
hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1258
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1259
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1260
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1264
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1268
test -z "$as_dir" && as_dir=.
1269
echo "PATH: $as_dir"
1284
# Keep a trace of the command line.
1285
# Strip out --no-create and --no-recursion so they do not pile up.
1286
# Strip out --silent because we don't want to record it for future runs.
1287
# Also quote any args containing shell meta-characters.
1288
# Make two passes to allow for proper duplicate-argument suppression.
1293
ac_must_keep_next=false
1299
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1300
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1301
| -silent | --silent | --silen | --sile | --sil)
1303
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1304
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1307
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1309
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1310
if test $ac_must_keep_next = true; then
1311
ac_must_keep_next=false # Got value, back to normal.
1314
*=* | --config-cache | -C | -disable-* | --disable-* \
1315
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1316
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1317
| -with-* | --with-* | -without-* | --without-* | --x)
1318
case "$ac_configure_args0 " in
1319
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1322
-* ) ac_must_keep_next=true ;;
1325
ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1326
# Get rid of the leading space.
1332
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1333
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1335
# When interrupted or exit'd, cleanup temporary files, and complete
1336
# config.log. We remove comments because anyway the quotes in there
1337
# would cause problems or look ugly.
1338
# WARNING: Be sure not to use single quotes in there, as some shells,
1339
# such as our DU 5.0 friend, will then `close' the trap.
1340
trap 'exit_status=$?
1341
# Save into config.log some information that might help in debugging.
1346
## ---------------- ##
1347
## Cache variables. ##
1348
## ---------------- ##
1351
# The following way of writing the cache mishandles newlines in values,
1354
case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1357
"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1358
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1362
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1369
## ----------------- ##
1370
## Output variables. ##
1371
## ----------------- ##
1374
for ac_var in $ac_subst_vars
1376
eval ac_val=$`echo $ac_var`
1377
echo "$ac_var='"'"'$ac_val'"'"'"
1381
if test -n "$ac_subst_files"; then
1388
for ac_var in $ac_subst_files
1390
eval ac_val=$`echo $ac_var`
1391
echo "$ac_var='"'"'$ac_val'"'"'"
1396
if test -s confdefs.h; then
1403
sed "/^$/d" confdefs.h | sort
1406
test "$ac_signal" != 0 &&
1407
echo "$as_me: caught signal $ac_signal"
1408
echo "$as_me: exit $exit_status"
1410
rm -f core *.core &&
1411
rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1414
for ac_signal in 1 2 13 15; do
1415
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1419
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1420
rm -rf conftest* confdefs.h
1421
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1424
# Predefined preprocessor variables.
1426
cat >>confdefs.h <<_ACEOF
1427
#define PACKAGE_NAME "$PACKAGE_NAME"
1431
cat >>confdefs.h <<_ACEOF
1432
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1436
cat >>confdefs.h <<_ACEOF
1437
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1441
cat >>confdefs.h <<_ACEOF
1442
#define PACKAGE_STRING "$PACKAGE_STRING"
1446
cat >>confdefs.h <<_ACEOF
1447
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1451
# Let the site file select an alternate cache file if it wants to.
1452
# Prefer explicitly selected file to automatically selected ones.
1453
if test -z "$CONFIG_SITE"; then
1454
if test "x$prefix" != xNONE; then
1455
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1457
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1460
for ac_site_file in $CONFIG_SITE; do
1461
if test -r "$ac_site_file"; then
1462
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1463
echo "$as_me: loading site script $ac_site_file" >&6;}
1464
sed 's/^/| /' "$ac_site_file" >&5
1469
if test -r "$cache_file"; then
1470
# Some versions of bash will fail to source /dev/null (special
1471
# files actually), so we avoid doing that.
1472
if test -f "$cache_file"; then
1473
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
1474
echo "$as_me: loading cache $cache_file" >&6;}
1476
[\\/]* | ?:[\\/]* ) . $cache_file;;
1477
*) . ./$cache_file;;
1481
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
1482
echo "$as_me: creating cache $cache_file" >&6;}
1486
# Check that the precious variables saved in the cache have kept the same
1488
ac_cache_corrupted=false
1489
for ac_var in `(set) 2>&1 |
1490
sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1491
eval ac_old_set=\$ac_cv_env_${ac_var}_set
1492
eval ac_new_set=\$ac_env_${ac_var}_set
1493
eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1494
eval ac_new_val="\$ac_env_${ac_var}_value"
1495
case $ac_old_set,$ac_new_set in
1497
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1498
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1499
ac_cache_corrupted=: ;;
1501
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1502
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1503
ac_cache_corrupted=: ;;
1506
if test "x$ac_old_val" != "x$ac_new_val"; then
1507
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1508
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1509
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1510
echo "$as_me: former value: $ac_old_val" >&2;}
1511
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1512
echo "$as_me: current value: $ac_new_val" >&2;}
1513
ac_cache_corrupted=:
1516
# Pass precious variables to config.status.
1517
if test "$ac_new_set" = set; then
1519
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1520
ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1521
*) ac_arg=$ac_var=$ac_new_val ;;
1523
case " $ac_configure_args " in
1524
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1525
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1529
if $ac_cache_corrupted; then
1530
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1531
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1532
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1533
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1534
{ (exit 1); exit 1; }; }
1538
ac_cpp='$CPP $CPPFLAGS'
1539
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1540
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1541
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1573
ac_config_headers="$ac_config_headers lib/config.h src/config.h"
1575
echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1576
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1577
# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1578
if test "${enable_maintainer_mode+set}" = set; then
1579
enableval="$enable_maintainer_mode"
1580
USE_MAINTAINER_MODE=$enableval
1582
USE_MAINTAINER_MODE=no
1584
echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1585
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1588
if test $USE_MAINTAINER_MODE = yes; then
1589
MAINTAINER_MODE_TRUE=
1590
MAINTAINER_MODE_FALSE='#'
1592
MAINTAINER_MODE_TRUE='#'
1593
MAINTAINER_MODE_FALSE=
1596
MAINT=$MAINTAINER_MODE_TRUE
1600
# Extract the first word of "sed", so it can be a program name with args.
1601
set dummy sed; ac_word=$2
1602
echo "$as_me:$LINENO: checking for $ac_word" >&5
1603
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1604
if test "${ac_cv_path_SED+set}" = set; then
1605
echo $ECHO_N "(cached) $ECHO_C" >&6
1609
ac_cv_path_SED="$SED" # Let the user override the test with a path.
1612
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1613
as_dummy="$PATH:/usr/bin:/usr/local/bin"
1614
for as_dir in $as_dummy
1617
test -z "$as_dir" && as_dir=.
1618
for ac_exec_ext in '' $ac_executable_extensions; do
1619
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1620
ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
1621
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1632
if test -n "$SED"; then
1633
echo "$as_me:$LINENO: result: $SED" >&5
1634
echo "${ECHO_T}$SED" >&6
1636
echo "$as_me:$LINENO: result: no" >&5
1637
echo "${ECHO_T}no" >&6
1642
# Extract the first word of "ar", so it can be a program name with args.
1643
set dummy ar; ac_word=$2
1644
echo "$as_me:$LINENO: checking for $ac_word" >&5
1645
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1646
if test "${ac_cv_path_AR+set}" = set; then
1647
echo $ECHO_N "(cached) $ECHO_C" >&6
1651
ac_cv_path_AR="$AR" # Let the user override the test with a path.
1654
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1655
as_dummy="$PATH:/usr/bin:/usr/local/bin:/usr/ccs/bin"
1656
for as_dir in $as_dummy
1659
test -z "$as_dir" && as_dir=.
1660
for ac_exec_ext in '' $ac_executable_extensions; do
1661
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1662
ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
1663
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1674
if test -n "$AR"; then
1675
echo "$as_me:$LINENO: result: $AR" >&5
1676
echo "${ECHO_T}$AR" >&6
1678
echo "$as_me:$LINENO: result: no" >&5
1679
echo "${ECHO_T}no" >&6
1684
VERSION=`$SED -ne 's/^#define LIBCURL_VERSION "\(.*\)"/\1/p' ${srcdir}/include/curl/curlver.h`
1685
am__api_version="1.8"
1687
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1688
if test -f $ac_dir/install-sh; then
1690
ac_install_sh="$ac_aux_dir/install-sh -c"
1692
elif test -f $ac_dir/install.sh; then
1694
ac_install_sh="$ac_aux_dir/install.sh -c"
1696
elif test -f $ac_dir/shtool; then
1698
ac_install_sh="$ac_aux_dir/shtool install -c"
1702
if test -z "$ac_aux_dir"; then
1703
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1704
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1705
{ (exit 1); exit 1; }; }
1707
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1708
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1709
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1711
# Find a good install program. We prefer a C program (faster),
1712
# so one script is as good as another. But avoid the broken or
1713
# incompatible versions:
1714
# SysV /etc/install, /usr/sbin/install
1715
# SunOS /usr/etc/install
1716
# IRIX /sbin/install
1718
# AmigaOS /C/install, which installs bootblocks on floppy discs
1719
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1720
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1721
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1722
# OS/2's system install, which has a completely different semantic
1723
# ./install, which can be erroneously created by make from ./install.sh.
1724
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1725
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1726
if test -z "$INSTALL"; then
1727
if test "${ac_cv_path_install+set}" = set; then
1728
echo $ECHO_N "(cached) $ECHO_C" >&6
1730
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1734
test -z "$as_dir" && as_dir=.
1735
# Account for people who put trailing slashes in PATH elements.
1737
./ | .// | /cC/* | \
1738
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1739
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1742
# OSF1 and SCO ODT 3.0 have their own names for install.
1743
# Don't use installbsd from OSF since it installs stuff as root
1745
for ac_prog in ginstall scoinst install; do
1746
for ac_exec_ext in '' $ac_executable_extensions; do
1747
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1748
if test $ac_prog = install &&
1749
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1750
# AIX install. It has an incompatible calling convention.
1752
elif test $ac_prog = install &&
1753
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1754
# program-specific install script used by HP pwplus--don't use.
1757
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1769
if test "${ac_cv_path_install+set}" = set; then
1770
INSTALL=$ac_cv_path_install
1772
# As a last resort, use the slow shell script. We don't cache a
1773
# path for INSTALL within a source directory, because that will
1774
# break other packages using the cache if that directory is
1775
# removed, or if the path is relative.
1776
INSTALL=$ac_install_sh
1779
echo "$as_me:$LINENO: result: $INSTALL" >&5
1780
echo "${ECHO_T}$INSTALL" >&6
1782
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1783
# It thinks the first close brace ends the variable substitution.
1784
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1786
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1788
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1790
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1791
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1794
echo timestamp > conftest.file
1795
# Do `set' in a subshell so we don't clobber the current shell's
1796
# arguments. Must try -L first in case configure is actually a
1797
# symlink; some systems play weird games with the mod time of symlinks
1798
# (eg FreeBSD returns the mod time of the symlink's containing
1801
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1802
if test "$*" = "X"; then
1804
set X `ls -t $srcdir/configure conftest.file`
1807
if test "$*" != "X $srcdir/configure conftest.file" \
1808
&& test "$*" != "X conftest.file $srcdir/configure"; then
1810
# If neither matched, then we have a broken ls. This can happen
1811
# if, for instance, CONFIG_SHELL is bash and it inherits a
1812
# broken ls alias from the environment. This has actually
1813
# happened. Such a system could not be considered "sane".
1814
{ { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1815
alias in your environment" >&5
1816
echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1817
alias in your environment" >&2;}
1818
{ (exit 1); exit 1; }; }
1821
test "$2" = conftest.file
1827
{ { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1828
Check your system clock" >&5
1829
echo "$as_me: error: newly created file is older than distributed files!
1830
Check your system clock" >&2;}
1831
{ (exit 1); exit 1; }; }
1833
echo "$as_me:$LINENO: result: yes" >&5
1834
echo "${ECHO_T}yes" >&6
1835
test "$program_prefix" != NONE &&
1836
program_transform_name="s,^,$program_prefix,;$program_transform_name"
1837
# Use a double $ so make ignores it.
1838
test "$program_suffix" != NONE &&
1839
program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1840
# Double any \ or $. echo might interpret backslashes.
1841
# By default was `s,x,x', remove it if useless.
1842
cat <<\_ACEOF >conftest.sed
1843
s/[\\$]/&&/g;s/;s,x,x,$//
1845
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1848
# expand $ac_aux_dir to an absolute path
1849
am_aux_dir=`cd $ac_aux_dir && pwd`
1851
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1852
# Use eval to expand $SHELL
1853
if eval "$MISSING --run true"; then
1854
am_missing_run="$MISSING --run "
1857
{ echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1858
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1861
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1862
# Keeping the `.' argument allows $(mkdir_p) to be used without
1863
# argument. Indeed, we sometimes output rules like
1864
# $(mkdir_p) $(somedir)
1865
# where $(somedir) is conditionally defined.
1866
# (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1867
# expensive solution, as it forces Make to start a sub-shell.)
1868
mkdir_p='mkdir -p -- .'
1870
# On NextStep and OpenStep, the `mkdir' command does not
1871
# recognize any option. It will interpret all options as
1872
# directories to create, and then abort because `.' already
1874
for d in ./-p ./--version;
1876
test -d $d && rmdir $d
1878
# $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1879
if test -f "$ac_aux_dir/mkinstalldirs"; then
1880
mkdir_p='$(mkinstalldirs)'
1882
mkdir_p='$(install_sh) -d'
1886
for ac_prog in gawk mawk nawk awk
1888
# Extract the first word of "$ac_prog", so it can be a program name with args.
1889
set dummy $ac_prog; ac_word=$2
1890
echo "$as_me:$LINENO: checking for $ac_word" >&5
1891
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1892
if test "${ac_cv_prog_AWK+set}" = set; then
1893
echo $ECHO_N "(cached) $ECHO_C" >&6
1895
if test -n "$AWK"; then
1896
ac_cv_prog_AWK="$AWK" # Let the user override the test.
1898
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1902
test -z "$as_dir" && as_dir=.
1903
for ac_exec_ext in '' $ac_executable_extensions; do
1904
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1905
ac_cv_prog_AWK="$ac_prog"
1906
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1915
if test -n "$AWK"; then
1916
echo "$as_me:$LINENO: result: $AWK" >&5
1917
echo "${ECHO_T}$AWK" >&6
1919
echo "$as_me:$LINENO: result: no" >&5
1920
echo "${ECHO_T}no" >&6
1923
test -n "$AWK" && break
1926
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1927
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1928
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1929
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1930
echo $ECHO_N "(cached) $ECHO_C" >&6
1932
cat >conftest.make <<\_ACEOF
1934
@echo 'ac_maketemp="$(MAKE)"'
1936
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1937
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1938
if test -n "$ac_maketemp"; then
1939
eval ac_cv_prog_make_${ac_make}_set=yes
1941
eval ac_cv_prog_make_${ac_make}_set=no
1945
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1946
echo "$as_me:$LINENO: result: yes" >&5
1947
echo "${ECHO_T}yes" >&6
1950
echo "$as_me:$LINENO: result: no" >&5
1951
echo "${ECHO_T}no" >&6
1952
SET_MAKE="MAKE=${MAKE-make}"
1955
rm -rf .tst 2>/dev/null
1956
mkdir .tst 2>/dev/null
1957
if test -d .tst; then
1962
rmdir .tst 2>/dev/null
1964
# test to see if srcdir already configured
1965
if test "`cd $srcdir && pwd`" != "`pwd`" &&
1966
test -f $srcdir/config.status; then
1967
{ { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1968
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1969
{ (exit 1); exit 1; }; }
1972
# test whether we have cygpath
1973
if test -z "$CYGPATH_W"; then
1974
if (cygpath --version) >/dev/null 2>/dev/null; then
1975
CYGPATH_W='cygpath -w'
1982
# Define the identity of the package.
1987
cat >>confdefs.h <<_ACEOF
1988
#define PACKAGE "$PACKAGE"
1992
cat >>confdefs.h <<_ACEOF
1993
#define VERSION "$VERSION"
1996
# Some tools Automake needs.
1998
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2001
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2004
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2007
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2010
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2013
AMTAR=${AMTAR-"${am_missing_run}tar"}
2015
install_sh=${install_sh-"$am_aux_dir/install-sh"}
2017
# Installed binaries are usually stripped using `strip' when the user
2018
# run `make install-strip'. However `strip' might not be the right
2019
# tool to use in cross-compilation environments, therefore Automake
2020
# will honor the `STRIP' environment variable to overrule this program.
2021
if test "$cross_compiling" != no; then
2022
if test -n "$ac_tool_prefix"; then
2023
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2024
set dummy ${ac_tool_prefix}strip; ac_word=$2
2025
echo "$as_me:$LINENO: checking for $ac_word" >&5
2026
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2027
if test "${ac_cv_prog_STRIP+set}" = set; then
2028
echo $ECHO_N "(cached) $ECHO_C" >&6
2030
if test -n "$STRIP"; then
2031
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2033
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2037
test -z "$as_dir" && as_dir=.
2038
for ac_exec_ext in '' $ac_executable_extensions; do
2039
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2040
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2041
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2049
STRIP=$ac_cv_prog_STRIP
2050
if test -n "$STRIP"; then
2051
echo "$as_me:$LINENO: result: $STRIP" >&5
2052
echo "${ECHO_T}$STRIP" >&6
2054
echo "$as_me:$LINENO: result: no" >&5
2055
echo "${ECHO_T}no" >&6
2059
if test -z "$ac_cv_prog_STRIP"; then
2061
# Extract the first word of "strip", so it can be a program name with args.
2062
set dummy strip; ac_word=$2
2063
echo "$as_me:$LINENO: checking for $ac_word" >&5
2064
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2065
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2066
echo $ECHO_N "(cached) $ECHO_C" >&6
2068
if test -n "$ac_ct_STRIP"; then
2069
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2071
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2075
test -z "$as_dir" && as_dir=.
2076
for ac_exec_ext in '' $ac_executable_extensions; do
2077
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2078
ac_cv_prog_ac_ct_STRIP="strip"
2079
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2085
test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2088
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2089
if test -n "$ac_ct_STRIP"; then
2090
echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2091
echo "${ECHO_T}$ac_ct_STRIP" >&6
2093
echo "$as_me:$LINENO: result: no" >&5
2094
echo "${ECHO_T}no" >&6
2099
STRIP="$ac_cv_prog_STRIP"
2103
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2105
# We need awk for the "check" target. The system "awk" is bad on
2110
echo "$as_me:$LINENO: checking curl version" >&5
2111
echo $ECHO_N "checking curl version... $ECHO_C" >&6
2112
echo "$as_me:$LINENO: result: $VERSION" >&5
2113
echo "${ECHO_T}$VERSION" >&6
2115
VERSIONNUM=`$SED -ne 's/^#define LIBCURL_VERSION_NUM 0x\(.*\)/\1/p' ${srcdir}/include/curl/curlver.h`
2118
PKGADD_PKG="HAXXcurl"
2119
PKGADD_NAME="cURL - a client that groks URLs"
2120
PKGADD_VENDOR="curl.haxx.se"
2127
# Make sure we can run config.sub.
2128
$ac_config_sub sun4 >/dev/null 2>&1 ||
2129
{ { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2130
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2131
{ (exit 1); exit 1; }; }
2133
echo "$as_me:$LINENO: checking build system type" >&5
2134
echo $ECHO_N "checking build system type... $ECHO_C" >&6
2135
if test "${ac_cv_build+set}" = set; then
2136
echo $ECHO_N "(cached) $ECHO_C" >&6
2138
ac_cv_build_alias=$build_alias
2139
test -z "$ac_cv_build_alias" &&
2140
ac_cv_build_alias=`$ac_config_guess`
2141
test -z "$ac_cv_build_alias" &&
2142
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2143
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2144
{ (exit 1); exit 1; }; }
2145
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2146
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2147
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2148
{ (exit 1); exit 1; }; }
2151
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2152
echo "${ECHO_T}$ac_cv_build" >&6
2154
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2155
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2156
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2159
echo "$as_me:$LINENO: checking host system type" >&5
2160
echo $ECHO_N "checking host system type... $ECHO_C" >&6
2161
if test "${ac_cv_host+set}" = set; then
2162
echo $ECHO_N "(cached) $ECHO_C" >&6
2164
ac_cv_host_alias=$host_alias
2165
test -z "$ac_cv_host_alias" &&
2166
ac_cv_host_alias=$ac_cv_build_alias
2167
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2168
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2169
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2170
{ (exit 1); exit 1; }; }
2173
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2174
echo "${ECHO_T}$ac_cv_host" >&6
2176
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2177
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2178
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2182
cat >>confdefs.h <<_ACEOF
2183
#define OS "${host}"
2187
DEPDIR="${am__leading_dot}deps"
2189
ac_config_commands="$ac_config_commands depfiles"
2192
am_make=${MAKE-make}
2193
cat > confinc << 'END'
2198
# If we don't find an include directive, just comment out the code.
2199
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2200
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2204
# First try GNU make style include.
2205
echo "include confinc" > confmf
2206
# We grep out `Entering directory' and `Leaving directory'
2207
# messages which can occur if `w' ends up in MAKEFLAGS.
2208
# In particular we don't look at `^make:' because GNU make might
2209
# be invoked under some other name (usually "gmake"), in which
2210
# case it prints its new name instead of `make'.
2211
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2216
# Now try BSD make style include.
2217
if test "$am__include" = "#"; then
2218
echo '.include "confinc"' > confmf
2219
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2220
am__include=.include
2227
echo "$as_me:$LINENO: result: $_am_result" >&5
2228
echo "${ECHO_T}$_am_result" >&6
2229
rm -f confinc confmf
2231
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2232
if test "${enable_dependency_tracking+set}" = set; then
2233
enableval="$enable_dependency_tracking"
2236
if test "x$enable_dependency_tracking" != xno; then
2237
am_depcomp="$ac_aux_dir/depcomp"
2242
if test "x$enable_dependency_tracking" != xno; then
2253
ac_cpp='$CPP $CPPFLAGS'
2254
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2255
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2256
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2257
if test -n "$ac_tool_prefix"; then
2258
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2259
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2260
echo "$as_me:$LINENO: checking for $ac_word" >&5
2261
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2262
if test "${ac_cv_prog_CC+set}" = set; then
2263
echo $ECHO_N "(cached) $ECHO_C" >&6
2265
if test -n "$CC"; then
2266
ac_cv_prog_CC="$CC" # Let the user override the test.
2268
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2272
test -z "$as_dir" && as_dir=.
2273
for ac_exec_ext in '' $ac_executable_extensions; do
2274
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2275
ac_cv_prog_CC="${ac_tool_prefix}gcc"
2276
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2285
if test -n "$CC"; then
2286
echo "$as_me:$LINENO: result: $CC" >&5
2287
echo "${ECHO_T}$CC" >&6
2289
echo "$as_me:$LINENO: result: no" >&5
2290
echo "${ECHO_T}no" >&6
2294
if test -z "$ac_cv_prog_CC"; then
2296
# Extract the first word of "gcc", so it can be a program name with args.
2297
set dummy gcc; ac_word=$2
2298
echo "$as_me:$LINENO: checking for $ac_word" >&5
2299
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2300
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2301
echo $ECHO_N "(cached) $ECHO_C" >&6
2303
if test -n "$ac_ct_CC"; then
2304
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2306
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2310
test -z "$as_dir" && as_dir=.
2311
for ac_exec_ext in '' $ac_executable_extensions; do
2312
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2313
ac_cv_prog_ac_ct_CC="gcc"
2314
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2322
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2323
if test -n "$ac_ct_CC"; then
2324
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2325
echo "${ECHO_T}$ac_ct_CC" >&6
2327
echo "$as_me:$LINENO: result: no" >&5
2328
echo "${ECHO_T}no" >&6
2336
if test -z "$CC"; then
2337
if test -n "$ac_tool_prefix"; then
2338
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2339
set dummy ${ac_tool_prefix}cc; ac_word=$2
2340
echo "$as_me:$LINENO: checking for $ac_word" >&5
2341
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2342
if test "${ac_cv_prog_CC+set}" = set; then
2343
echo $ECHO_N "(cached) $ECHO_C" >&6
2345
if test -n "$CC"; then
2346
ac_cv_prog_CC="$CC" # Let the user override the test.
2348
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2352
test -z "$as_dir" && as_dir=.
2353
for ac_exec_ext in '' $ac_executable_extensions; do
2354
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2355
ac_cv_prog_CC="${ac_tool_prefix}cc"
2356
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2365
if test -n "$CC"; then
2366
echo "$as_me:$LINENO: result: $CC" >&5
2367
echo "${ECHO_T}$CC" >&6
2369
echo "$as_me:$LINENO: result: no" >&5
2370
echo "${ECHO_T}no" >&6
2374
if test -z "$ac_cv_prog_CC"; then
2376
# Extract the first word of "cc", so it can be a program name with args.
2377
set dummy cc; ac_word=$2
2378
echo "$as_me:$LINENO: checking for $ac_word" >&5
2379
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2380
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2381
echo $ECHO_N "(cached) $ECHO_C" >&6
2383
if test -n "$ac_ct_CC"; then
2384
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2386
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2390
test -z "$as_dir" && as_dir=.
2391
for ac_exec_ext in '' $ac_executable_extensions; do
2392
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2393
ac_cv_prog_ac_ct_CC="cc"
2394
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2402
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2403
if test -n "$ac_ct_CC"; then
2404
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2405
echo "${ECHO_T}$ac_ct_CC" >&6
2407
echo "$as_me:$LINENO: result: no" >&5
2408
echo "${ECHO_T}no" >&6
2417
if test -z "$CC"; then
2418
# Extract the first word of "cc", so it can be a program name with args.
2419
set dummy cc; ac_word=$2
2420
echo "$as_me:$LINENO: checking for $ac_word" >&5
2421
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2422
if test "${ac_cv_prog_CC+set}" = set; then
2423
echo $ECHO_N "(cached) $ECHO_C" >&6
2425
if test -n "$CC"; then
2426
ac_cv_prog_CC="$CC" # Let the user override the test.
2429
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2433
test -z "$as_dir" && as_dir=.
2434
for ac_exec_ext in '' $ac_executable_extensions; do
2435
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2436
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2437
ac_prog_rejected=yes
2441
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2447
if test $ac_prog_rejected = yes; then
2448
# We found a bogon in the path, so make sure we never use it.
2449
set dummy $ac_cv_prog_CC
2451
if test $# != 0; then
2452
# We chose a different compiler from the bogus one.
2453
# However, it has the same basename, so the bogon will be chosen
2454
# first if we set CC to just the basename; use the full file name.
2456
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2462
if test -n "$CC"; then
2463
echo "$as_me:$LINENO: result: $CC" >&5
2464
echo "${ECHO_T}$CC" >&6
2466
echo "$as_me:$LINENO: result: no" >&5
2467
echo "${ECHO_T}no" >&6
2471
if test -z "$CC"; then
2472
if test -n "$ac_tool_prefix"; then
2475
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2476
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2477
echo "$as_me:$LINENO: checking for $ac_word" >&5
2478
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2479
if test "${ac_cv_prog_CC+set}" = set; then
2480
echo $ECHO_N "(cached) $ECHO_C" >&6
2482
if test -n "$CC"; then
2483
ac_cv_prog_CC="$CC" # Let the user override the test.
2485
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2489
test -z "$as_dir" && as_dir=.
2490
for ac_exec_ext in '' $ac_executable_extensions; do
2491
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2492
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2493
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2502
if test -n "$CC"; then
2503
echo "$as_me:$LINENO: result: $CC" >&5
2504
echo "${ECHO_T}$CC" >&6
2506
echo "$as_me:$LINENO: result: no" >&5
2507
echo "${ECHO_T}no" >&6
2510
test -n "$CC" && break
2513
if test -z "$CC"; then
2517
# Extract the first word of "$ac_prog", so it can be a program name with args.
2518
set dummy $ac_prog; ac_word=$2
2519
echo "$as_me:$LINENO: checking for $ac_word" >&5
2520
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2521
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2522
echo $ECHO_N "(cached) $ECHO_C" >&6
2524
if test -n "$ac_ct_CC"; then
2525
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2527
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2531
test -z "$as_dir" && as_dir=.
2532
for ac_exec_ext in '' $ac_executable_extensions; do
2533
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2534
ac_cv_prog_ac_ct_CC="$ac_prog"
2535
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2543
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2544
if test -n "$ac_ct_CC"; then
2545
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2546
echo "${ECHO_T}$ac_ct_CC" >&6
2548
echo "$as_me:$LINENO: result: no" >&5
2549
echo "${ECHO_T}no" >&6
2552
test -n "$ac_ct_CC" && break
2561
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2562
See \`config.log' for more details." >&5
2563
echo "$as_me: error: no acceptable C compiler found in \$PATH
2564
See \`config.log' for more details." >&2;}
2565
{ (exit 1); exit 1; }; }
2567
# Provide some information about the compiler.
2568
echo "$as_me:$LINENO:" \
2569
"checking for C compiler version" >&5
2570
ac_compiler=`set X $ac_compile; echo $2`
2571
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2572
(eval $ac_compiler --version </dev/null >&5) 2>&5
2574
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575
(exit $ac_status); }
2576
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2577
(eval $ac_compiler -v </dev/null >&5) 2>&5
2579
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580
(exit $ac_status); }
2581
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2582
(eval $ac_compiler -V </dev/null >&5) 2>&5
2584
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585
(exit $ac_status); }
2587
cat >conftest.$ac_ext <<_ACEOF
2590
cat confdefs.h >>conftest.$ac_ext
2591
cat >>conftest.$ac_ext <<_ACEOF
2592
/* end confdefs.h. */
2602
ac_clean_files_save=$ac_clean_files
2603
ac_clean_files="$ac_clean_files a.out a.exe b.out"
2604
# Try to create an executable without -o first, disregard a.out.
2605
# It will help us diagnose broken compilers, and finding out an intuition
2607
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2608
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2609
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2610
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2611
(eval $ac_link_default) 2>&5
2613
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614
(exit $ac_status); }; then
2615
# Find the output, starting from the most likely. This scheme is
2616
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2619
# Be careful to initialize this variable, since it used to be cached.
2620
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2622
# b.out is created by i960 compilers.
2623
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2625
test -f "$ac_file" || continue
2627
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2630
# This is the source file.
2633
# We found the default executable, but exeext='' is most
2637
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2638
# FIXME: I believe we export ac_cv_exeext for Libtool,
2639
# but it would be cool to find out if it's true. Does anybody
2640
# maintain Libtool? --akim.
2648
echo "$as_me: failed program was:" >&5
2649
sed 's/^/| /' conftest.$ac_ext >&5
2651
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2652
See \`config.log' for more details." >&5
2653
echo "$as_me: error: C compiler cannot create executables
2654
See \`config.log' for more details." >&2;}
2655
{ (exit 77); exit 77; }; }
2658
ac_exeext=$ac_cv_exeext
2659
echo "$as_me:$LINENO: result: $ac_file" >&5
2660
echo "${ECHO_T}$ac_file" >&6
2662
# Check the compiler produces executables we can run. If not, either
2663
# the compiler is broken, or we cross compile.
2664
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2665
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2666
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2667
# If not cross compiling, check that we can run a simple program.
2668
if test "$cross_compiling" != yes; then
2669
if { ac_try='./$ac_file'
2670
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2673
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674
(exit $ac_status); }; }; then
2677
if test "$cross_compiling" = maybe; then
2680
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2681
If you meant to cross compile, use \`--host'.
2682
See \`config.log' for more details." >&5
2683
echo "$as_me: error: cannot run C compiled programs.
2684
If you meant to cross compile, use \`--host'.
2685
See \`config.log' for more details." >&2;}
2686
{ (exit 1); exit 1; }; }
2690
echo "$as_me:$LINENO: result: yes" >&5
2691
echo "${ECHO_T}yes" >&6
2693
rm -f a.out a.exe conftest$ac_cv_exeext b.out
2694
ac_clean_files=$ac_clean_files_save
2695
# Check the compiler produces executables we can run. If not, either
2696
# the compiler is broken, or we cross compile.
2697
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2698
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2699
echo "$as_me:$LINENO: result: $cross_compiling" >&5
2700
echo "${ECHO_T}$cross_compiling" >&6
2702
echo "$as_me:$LINENO: checking for suffix of executables" >&5
2703
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2704
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2705
(eval $ac_link) 2>&5
2707
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708
(exit $ac_status); }; then
2709
# If both `conftest.exe' and `conftest' are `present' (well, observable)
2710
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2711
# work properly (i.e., refer to `conftest.exe'), while it won't with
2713
for ac_file in conftest.exe conftest conftest.*; do
2714
test -f "$ac_file" || continue
2716
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2717
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2724
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2725
See \`config.log' for more details." >&5
2726
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2727
See \`config.log' for more details." >&2;}
2728
{ (exit 1); exit 1; }; }
2731
rm -f conftest$ac_cv_exeext
2732
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2733
echo "${ECHO_T}$ac_cv_exeext" >&6
2735
rm -f conftest.$ac_ext
2736
EXEEXT=$ac_cv_exeext
2738
echo "$as_me:$LINENO: checking for suffix of object files" >&5
2739
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2740
if test "${ac_cv_objext+set}" = set; then
2741
echo $ECHO_N "(cached) $ECHO_C" >&6
2743
cat >conftest.$ac_ext <<_ACEOF
2746
cat confdefs.h >>conftest.$ac_ext
2747
cat >>conftest.$ac_ext <<_ACEOF
2748
/* end confdefs.h. */
2758
rm -f conftest.o conftest.obj
2759
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2760
(eval $ac_compile) 2>&5
2762
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2763
(exit $ac_status); }; then
2764
for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2766
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2767
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2772
echo "$as_me: failed program was:" >&5
2773
sed 's/^/| /' conftest.$ac_ext >&5
2775
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2776
See \`config.log' for more details." >&5
2777
echo "$as_me: error: cannot compute suffix of object files: cannot compile
2778
See \`config.log' for more details." >&2;}
2779
{ (exit 1); exit 1; }; }
2782
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2784
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2785
echo "${ECHO_T}$ac_cv_objext" >&6
2786
OBJEXT=$ac_cv_objext
2788
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2789
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2790
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2791
echo $ECHO_N "(cached) $ECHO_C" >&6
2793
cat >conftest.$ac_ext <<_ACEOF
2796
cat confdefs.h >>conftest.$ac_ext
2797
cat >>conftest.$ac_ext <<_ACEOF
2798
/* end confdefs.h. */
2811
rm -f conftest.$ac_objext
2812
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2813
(eval $ac_compile) 2>conftest.er1
2815
grep -v '^ *+' conftest.er1 >conftest.err
2817
cat conftest.err >&5
2818
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2819
(exit $ac_status); } &&
2820
{ ac_try='test -z "$ac_c_werror_flag"
2821
|| test ! -s conftest.err'
2822
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2825
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826
(exit $ac_status); }; } &&
2827
{ ac_try='test -s conftest.$ac_objext'
2828
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2831
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2832
(exit $ac_status); }; }; then
2835
echo "$as_me: failed program was:" >&5
2836
sed 's/^/| /' conftest.$ac_ext >&5
2840
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2841
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2844
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2845
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2846
GCC=`test $ac_compiler_gnu = yes && echo yes`
2847
ac_test_CFLAGS=${CFLAGS+set}
2848
ac_save_CFLAGS=$CFLAGS
2850
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2851
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2852
if test "${ac_cv_prog_cc_g+set}" = set; then
2853
echo $ECHO_N "(cached) $ECHO_C" >&6
2855
cat >conftest.$ac_ext <<_ACEOF
2858
cat confdefs.h >>conftest.$ac_ext
2859
cat >>conftest.$ac_ext <<_ACEOF
2860
/* end confdefs.h. */
2870
rm -f conftest.$ac_objext
2871
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2872
(eval $ac_compile) 2>conftest.er1
2874
grep -v '^ *+' conftest.er1 >conftest.err
2876
cat conftest.err >&5
2877
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2878
(exit $ac_status); } &&
2879
{ ac_try='test -z "$ac_c_werror_flag"
2880
|| test ! -s conftest.err'
2881
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2884
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885
(exit $ac_status); }; } &&
2886
{ ac_try='test -s conftest.$ac_objext'
2887
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2890
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891
(exit $ac_status); }; }; then
2894
echo "$as_me: failed program was:" >&5
2895
sed 's/^/| /' conftest.$ac_ext >&5
2899
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2901
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2902
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2903
if test "$ac_test_CFLAGS" = set; then
2904
CFLAGS=$ac_save_CFLAGS
2905
elif test $ac_cv_prog_cc_g = yes; then
2906
if test "$GCC" = yes; then
2912
if test "$GCC" = yes; then
2918
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2919
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2920
if test "${ac_cv_prog_cc_stdc+set}" = set; then
2921
echo $ECHO_N "(cached) $ECHO_C" >&6
2923
ac_cv_prog_cc_stdc=no
2925
cat >conftest.$ac_ext <<_ACEOF
2928
cat confdefs.h >>conftest.$ac_ext
2929
cat >>conftest.$ac_ext <<_ACEOF
2930
/* end confdefs.h. */
2933
#include <sys/types.h>
2934
#include <sys/stat.h>
2935
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2936
struct buf { int x; };
2937
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2938
static char *e (p, i)
2944
static char *f (char * (*g) (char **, int), char **p, ...)
2949
s = g (p, va_arg (v,int));
2954
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2955
function prototypes and stuff, but not '\xHH' hex character constants.
2956
These don't provoke an error unfortunately, instead are silently treated
2957
as 'x'. The following induces an error, until -std1 is added to get
2958
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2959
array size at least. It's necessary to write '\x00'==0 to get something
2960
that's true only with -std1. */
2961
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2963
int test (int i, double x);
2964
struct s1 {int (*f) (int a);};
2965
struct s2 {int (*f) (double a);};
2966
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2972
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2977
# Don't try gcc -ansi; that turns off useful extensions and
2978
# breaks some systems' header files.
2979
# AIX -qlanglvl=ansi
2980
# Ultrix and OSF/1 -std1
2981
# HP-UX 10.20 and later -Ae
2982
# HP-UX older versions -Aa -D_HPUX_SOURCE
2983
# SVR4 -Xc -D__EXTENSIONS__
2984
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2986
CC="$ac_save_CC $ac_arg"
2987
rm -f conftest.$ac_objext
2988
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2989
(eval $ac_compile) 2>conftest.er1
2991
grep -v '^ *+' conftest.er1 >conftest.err
2993
cat conftest.err >&5
2994
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995
(exit $ac_status); } &&
2996
{ ac_try='test -z "$ac_c_werror_flag"
2997
|| test ! -s conftest.err'
2998
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3001
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002
(exit $ac_status); }; } &&
3003
{ ac_try='test -s conftest.$ac_objext'
3004
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3007
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008
(exit $ac_status); }; }; then
3009
ac_cv_prog_cc_stdc=$ac_arg
3012
echo "$as_me: failed program was:" >&5
3013
sed 's/^/| /' conftest.$ac_ext >&5
3016
rm -f conftest.err conftest.$ac_objext
3018
rm -f conftest.$ac_ext conftest.$ac_objext
3023
case "x$ac_cv_prog_cc_stdc" in
3025
echo "$as_me:$LINENO: result: none needed" >&5
3026
echo "${ECHO_T}none needed" >&6 ;;
3028
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3029
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3030
CC="$CC $ac_cv_prog_cc_stdc" ;;
3033
# Some people use a C++ compiler to compile C. Since we use `exit',
3034
# in C++ we need to declare it. In case someone uses the same compiler
3035
# for both compiling C and C++ we need to have the C++ compiler decide
3036
# the declaration of exit, since it's the most demanding environment.
3037
cat >conftest.$ac_ext <<_ACEOF
3042
rm -f conftest.$ac_objext
3043
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3044
(eval $ac_compile) 2>conftest.er1
3046
grep -v '^ *+' conftest.er1 >conftest.err
3048
cat conftest.err >&5
3049
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050
(exit $ac_status); } &&
3051
{ ac_try='test -z "$ac_c_werror_flag"
3052
|| test ! -s conftest.err'
3053
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3056
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057
(exit $ac_status); }; } &&
3058
{ ac_try='test -s conftest.$ac_objext'
3059
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3062
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063
(exit $ac_status); }; }; then
3064
for ac_declaration in \
3066
'extern "C" void std::exit (int) throw (); using std::exit;' \
3067
'extern "C" void std::exit (int); using std::exit;' \
3068
'extern "C" void exit (int) throw ();' \
3069
'extern "C" void exit (int);' \
3072
cat >conftest.$ac_ext <<_ACEOF
3075
cat confdefs.h >>conftest.$ac_ext
3076
cat >>conftest.$ac_ext <<_ACEOF
3077
/* end confdefs.h. */
3088
rm -f conftest.$ac_objext
3089
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3090
(eval $ac_compile) 2>conftest.er1
3092
grep -v '^ *+' conftest.er1 >conftest.err
3094
cat conftest.err >&5
3095
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096
(exit $ac_status); } &&
3097
{ ac_try='test -z "$ac_c_werror_flag"
3098
|| test ! -s conftest.err'
3099
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3102
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103
(exit $ac_status); }; } &&
3104
{ ac_try='test -s conftest.$ac_objext'
3105
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3108
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109
(exit $ac_status); }; }; then
3112
echo "$as_me: failed program was:" >&5
3113
sed 's/^/| /' conftest.$ac_ext >&5
3117
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3118
cat >conftest.$ac_ext <<_ACEOF
3121
cat confdefs.h >>conftest.$ac_ext
3122
cat >>conftest.$ac_ext <<_ACEOF
3123
/* end confdefs.h. */
3133
rm -f conftest.$ac_objext
3134
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3135
(eval $ac_compile) 2>conftest.er1
3137
grep -v '^ *+' conftest.er1 >conftest.err
3139
cat conftest.err >&5
3140
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141
(exit $ac_status); } &&
3142
{ ac_try='test -z "$ac_c_werror_flag"
3143
|| test ! -s conftest.err'
3144
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3147
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148
(exit $ac_status); }; } &&
3149
{ ac_try='test -s conftest.$ac_objext'
3150
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3153
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154
(exit $ac_status); }; }; then
3157
echo "$as_me: failed program was:" >&5
3158
sed 's/^/| /' conftest.$ac_ext >&5
3161
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3164
if test -n "$ac_declaration"; then
3165
echo '#ifdef __cplusplus' >>confdefs.h
3166
echo $ac_declaration >>confdefs.h
3167
echo '#endif' >>confdefs.h
3171
echo "$as_me: failed program was:" >&5
3172
sed 's/^/| /' conftest.$ac_ext >&5
3175
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3177
ac_cpp='$CPP $CPPFLAGS'
3178
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3179
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3180
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3182
depcc="$CC" am_compiler_list=
3184
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3185
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3186
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3187
echo $ECHO_N "(cached) $ECHO_C" >&6
3189
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3190
# We make a subdir and do the tests there. Otherwise we can end up
3191
# making bogus files that we don't know about and never remove. For
3192
# instance it was reported that on HP-UX the gcc test will end up
3193
# making a dummy file named `D' -- because `-MD' means `put the output
3196
# Copy depcomp to subdir because otherwise we won't find it if we're
3197
# using a relative directory.
3198
cp "$am_depcomp" conftest.dir
3200
# We will build objects and dependencies in a subdirectory because
3201
# it helps to detect inapplicable dependency modes. For instance
3202
# both Tru64's cc and ICC support -MD to output dependencies as a
3203
# side effect of compilation, but ICC will put the dependencies in
3204
# the current directory while Tru64 will put them in the object
3208
am_cv_CC_dependencies_compiler_type=none
3209
if test "$am_compiler_list" = ""; then
3210
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3212
for depmode in $am_compiler_list; do
3213
# Setup a source with many dependencies, because some compilers
3214
# like to wrap large dependency lists on column 80 (with \), and
3215
# we should not choose a depcomp mode which is confused by this.
3217
# We need to recreate these files for each test, as the compiler may
3218
# overwrite some of them when testing with obscure command lines.
3219
# This happens at least with the AIX C compiler.
3221
for i in 1 2 3 4 5 6; do
3222
echo '#include "conftst'$i'.h"' >> sub/conftest.c
3223
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3224
# Solaris 8's {/usr,}/bin/sh.
3225
touch sub/conftst$i.h
3227
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3231
# after this tag, mechanisms are not by side-effect, so they'll
3232
# only be used when explicitly requested
3233
if test "x$enable_dependency_tracking" = xyes; then
3241
# We check with `-c' and `-o' for the sake of the "dashmstdout"
3242
# mode. It turns out that the SunPro C++ compiler does not properly
3243
# handle `-M -o', and we need to detect this.
3244
if depmode=$depmode \
3245
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3246
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3247
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3248
>/dev/null 2>conftest.err &&
3249
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3250
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3251
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3252
# icc doesn't choke on unknown options, it will just issue warnings
3253
# (even with -Werror). So we grep stderr for any message
3254
# that says an option was ignored.
3255
if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3256
am_cv_CC_dependencies_compiler_type=$depmode
3265
am_cv_CC_dependencies_compiler_type=none
3269
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3270
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3271
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3276
test "x$enable_dependency_tracking" != xno \
3277
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3279
am__fastdepCC_FALSE='#'
3281
am__fastdepCC_TRUE='#'
3282
am__fastdepCC_FALSE=
3288
ac_cpp='$CPP $CPPFLAGS'
3289
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3290
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3291
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3292
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3293
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3294
# On Suns, sometimes $CPP names a directory.
3295
if test -n "$CPP" && test -d "$CPP"; then
3298
if test -z "$CPP"; then
3299
if test "${ac_cv_prog_CPP+set}" = set; then
3300
echo $ECHO_N "(cached) $ECHO_C" >&6
3302
# Double quotes because CPP needs to be expanded
3303
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3306
for ac_c_preproc_warn_flag in '' yes
3308
# Use a header file that comes with gcc, so configuring glibc
3309
# with a fresh cross-compiler works.
3310
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3311
# <limits.h> exists even on freestanding compilers.
3312
# On the NeXT, cc -E runs the code through the compiler's parser,
3313
# not just through cpp. "Syntax error" is here to catch this case.
3314
cat >conftest.$ac_ext <<_ACEOF
3317
cat confdefs.h >>conftest.$ac_ext
3318
cat >>conftest.$ac_ext <<_ACEOF
3319
/* end confdefs.h. */
3321
# include <limits.h>
3323
# include <assert.h>
3327
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3328
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3330
grep -v '^ *+' conftest.er1 >conftest.err
3332
cat conftest.err >&5
3333
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3334
(exit $ac_status); } >/dev/null; then
3335
if test -s conftest.err; then
3336
ac_cpp_err=$ac_c_preproc_warn_flag
3337
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3344
if test -z "$ac_cpp_err"; then
3347
echo "$as_me: failed program was:" >&5
3348
sed 's/^/| /' conftest.$ac_ext >&5
3350
# Broken: fails on valid input.
3353
rm -f conftest.err conftest.$ac_ext
3355
# OK, works on sane cases. Now check whether non-existent headers
3356
# can be detected and how.
3357
cat >conftest.$ac_ext <<_ACEOF
3360
cat confdefs.h >>conftest.$ac_ext
3361
cat >>conftest.$ac_ext <<_ACEOF
3362
/* end confdefs.h. */
3363
#include <ac_nonexistent.h>
3365
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3366
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3368
grep -v '^ *+' conftest.er1 >conftest.err
3370
cat conftest.err >&5
3371
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3372
(exit $ac_status); } >/dev/null; then
3373
if test -s conftest.err; then
3374
ac_cpp_err=$ac_c_preproc_warn_flag
3375
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3382
if test -z "$ac_cpp_err"; then
3383
# Broken: success on invalid input.
3386
echo "$as_me: failed program was:" >&5
3387
sed 's/^/| /' conftest.$ac_ext >&5
3389
# Passes both tests.
3393
rm -f conftest.err conftest.$ac_ext
3396
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3397
rm -f conftest.err conftest.$ac_ext
3398
if $ac_preproc_ok; then
3410
echo "$as_me:$LINENO: result: $CPP" >&5
3411
echo "${ECHO_T}$CPP" >&6
3413
for ac_c_preproc_warn_flag in '' yes
3415
# Use a header file that comes with gcc, so configuring glibc
3416
# with a fresh cross-compiler works.
3417
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3418
# <limits.h> exists even on freestanding compilers.
3419
# On the NeXT, cc -E runs the code through the compiler's parser,
3420
# not just through cpp. "Syntax error" is here to catch this case.
3421
cat >conftest.$ac_ext <<_ACEOF
3424
cat confdefs.h >>conftest.$ac_ext
3425
cat >>conftest.$ac_ext <<_ACEOF
3426
/* end confdefs.h. */
3428
# include <limits.h>
3430
# include <assert.h>
3434
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3435
(eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
3442
if test -s conftest.err; then
3443
ac_cpp_err=$ac_c_preproc_warn_flag
3444
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3451
if test -z "$ac_cpp_err"; then
3454
echo "$as_me: failed program was:" >&5
3455
sed 's/^/| /' conftest.$ac_ext >&5
3457
# Broken: fails on valid input.
3460
rm -f conftest.err conftest.$ac_ext
3462
# OK, works on sane cases. Now check whether non-existent headers
3463
# can be detected and how.
3464
cat >conftest.$ac_ext <<_ACEOF
3467
cat confdefs.h >>conftest.$ac_ext
3468
cat >>conftest.$ac_ext <<_ACEOF
3469
/* end confdefs.h. */
3470
#include <ac_nonexistent.h>
3472
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3473
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3475
grep -v '^ *+' conftest.er1 >conftest.err
3477
cat conftest.err >&5
3478
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479
(exit $ac_status); } >/dev/null; then
3480
if test -s conftest.err; then
3481
ac_cpp_err=$ac_c_preproc_warn_flag
3482
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3489
if test -z "$ac_cpp_err"; then
3490
# Broken: success on invalid input.
3493
echo "$as_me: failed program was:" >&5
3494
sed 's/^/| /' conftest.$ac_ext >&5
3496
# Passes both tests.
3500
rm -f conftest.err conftest.$ac_ext
3503
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3504
rm -f conftest.err conftest.$ac_ext
3505
if $ac_preproc_ok; then
3508
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3509
See \`config.log' for more details." >&5
3510
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3511
See \`config.log' for more details." >&2;}
3512
{ (exit 1); exit 1; }; }
3516
ac_cpp='$CPP $CPPFLAGS'
3517
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3518
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3519
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3522
echo "$as_me:$LINENO: checking for egrep" >&5
3523
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3524
if test "${ac_cv_prog_egrep+set}" = set; then
3525
echo $ECHO_N "(cached) $ECHO_C" >&6
3527
if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3528
then ac_cv_prog_egrep='grep -E'
3529
else ac_cv_prog_egrep='egrep'
3532
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3533
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3534
EGREP=$ac_cv_prog_egrep
3538
echo "$as_me:$LINENO: checking for AIX" >&5
3539
echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3540
cat >conftest.$ac_ext <<_ACEOF
3543
cat confdefs.h >>conftest.$ac_ext
3544
cat >>conftest.$ac_ext <<_ACEOF
3545
/* end confdefs.h. */
3551
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3552
$EGREP "yes" >/dev/null 2>&1; then
3553
echo "$as_me:$LINENO: result: yes" >&5
3554
echo "${ECHO_T}yes" >&6
3555
cat >>confdefs.h <<\_ACEOF
3556
#define _ALL_SOURCE 1
3560
echo "$as_me:$LINENO: result: no" >&5
3561
echo "${ECHO_T}no" >&6
3568
ac_cpp='$CPP $CPPFLAGS'
3569
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3570
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3571
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3572
if test -n "$ac_tool_prefix"; then
3573
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3574
set dummy ${ac_tool_prefix}gcc; ac_word=$2
3575
echo "$as_me:$LINENO: checking for $ac_word" >&5
3576
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3577
if test "${ac_cv_prog_CC+set}" = set; then
3578
echo $ECHO_N "(cached) $ECHO_C" >&6
3580
if test -n "$CC"; then
3581
ac_cv_prog_CC="$CC" # Let the user override the test.
3583
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3587
test -z "$as_dir" && as_dir=.
3588
for ac_exec_ext in '' $ac_executable_extensions; do
3589
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3590
ac_cv_prog_CC="${ac_tool_prefix}gcc"
3591
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3600
if test -n "$CC"; then
3601
echo "$as_me:$LINENO: result: $CC" >&5
3602
echo "${ECHO_T}$CC" >&6
3604
echo "$as_me:$LINENO: result: no" >&5
3605
echo "${ECHO_T}no" >&6
3609
if test -z "$ac_cv_prog_CC"; then
3611
# Extract the first word of "gcc", so it can be a program name with args.
3612
set dummy gcc; ac_word=$2
3613
echo "$as_me:$LINENO: checking for $ac_word" >&5
3614
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3615
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3616
echo $ECHO_N "(cached) $ECHO_C" >&6
3618
if test -n "$ac_ct_CC"; then
3619
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3621
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3625
test -z "$as_dir" && as_dir=.
3626
for ac_exec_ext in '' $ac_executable_extensions; do
3627
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3628
ac_cv_prog_ac_ct_CC="gcc"
3629
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3637
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3638
if test -n "$ac_ct_CC"; then
3639
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3640
echo "${ECHO_T}$ac_ct_CC" >&6
3642
echo "$as_me:$LINENO: result: no" >&5
3643
echo "${ECHO_T}no" >&6
3651
if test -z "$CC"; then
3652
if test -n "$ac_tool_prefix"; then
3653
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3654
set dummy ${ac_tool_prefix}cc; ac_word=$2
3655
echo "$as_me:$LINENO: checking for $ac_word" >&5
3656
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3657
if test "${ac_cv_prog_CC+set}" = set; then
3658
echo $ECHO_N "(cached) $ECHO_C" >&6
3660
if test -n "$CC"; then
3661
ac_cv_prog_CC="$CC" # Let the user override the test.
3663
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3667
test -z "$as_dir" && as_dir=.
3668
for ac_exec_ext in '' $ac_executable_extensions; do
3669
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3670
ac_cv_prog_CC="${ac_tool_prefix}cc"
3671
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3680
if test -n "$CC"; then
3681
echo "$as_me:$LINENO: result: $CC" >&5
3682
echo "${ECHO_T}$CC" >&6
3684
echo "$as_me:$LINENO: result: no" >&5
3685
echo "${ECHO_T}no" >&6
3689
if test -z "$ac_cv_prog_CC"; then
3691
# Extract the first word of "cc", so it can be a program name with args.
3692
set dummy cc; ac_word=$2
3693
echo "$as_me:$LINENO: checking for $ac_word" >&5
3694
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3695
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3696
echo $ECHO_N "(cached) $ECHO_C" >&6
3698
if test -n "$ac_ct_CC"; then
3699
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3701
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3705
test -z "$as_dir" && as_dir=.
3706
for ac_exec_ext in '' $ac_executable_extensions; do
3707
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3708
ac_cv_prog_ac_ct_CC="cc"
3709
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3717
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3718
if test -n "$ac_ct_CC"; then
3719
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3720
echo "${ECHO_T}$ac_ct_CC" >&6
3722
echo "$as_me:$LINENO: result: no" >&5
3723
echo "${ECHO_T}no" >&6
3732
if test -z "$CC"; then
3733
# Extract the first word of "cc", so it can be a program name with args.
3734
set dummy cc; ac_word=$2
3735
echo "$as_me:$LINENO: checking for $ac_word" >&5
3736
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3737
if test "${ac_cv_prog_CC+set}" = set; then
3738
echo $ECHO_N "(cached) $ECHO_C" >&6
3740
if test -n "$CC"; then
3741
ac_cv_prog_CC="$CC" # Let the user override the test.
3744
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3748
test -z "$as_dir" && as_dir=.
3749
for ac_exec_ext in '' $ac_executable_extensions; do
3750
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3751
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3752
ac_prog_rejected=yes
3756
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3762
if test $ac_prog_rejected = yes; then
3763
# We found a bogon in the path, so make sure we never use it.
3764
set dummy $ac_cv_prog_CC
3766
if test $# != 0; then
3767
# We chose a different compiler from the bogus one.
3768
# However, it has the same basename, so the bogon will be chosen
3769
# first if we set CC to just the basename; use the full file name.
3771
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3777
if test -n "$CC"; then
3778
echo "$as_me:$LINENO: result: $CC" >&5
3779
echo "${ECHO_T}$CC" >&6
3781
echo "$as_me:$LINENO: result: no" >&5
3782
echo "${ECHO_T}no" >&6
3786
if test -z "$CC"; then
3787
if test -n "$ac_tool_prefix"; then
3790
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3791
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3792
echo "$as_me:$LINENO: checking for $ac_word" >&5
3793
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3794
if test "${ac_cv_prog_CC+set}" = set; then
3795
echo $ECHO_N "(cached) $ECHO_C" >&6
3797
if test -n "$CC"; then
3798
ac_cv_prog_CC="$CC" # Let the user override the test.
3800
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3804
test -z "$as_dir" && as_dir=.
3805
for ac_exec_ext in '' $ac_executable_extensions; do
3806
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3807
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3808
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3817
if test -n "$CC"; then
3818
echo "$as_me:$LINENO: result: $CC" >&5
3819
echo "${ECHO_T}$CC" >&6
3821
echo "$as_me:$LINENO: result: no" >&5
3822
echo "${ECHO_T}no" >&6
3825
test -n "$CC" && break
3828
if test -z "$CC"; then
3832
# Extract the first word of "$ac_prog", so it can be a program name with args.
3833
set dummy $ac_prog; ac_word=$2
3834
echo "$as_me:$LINENO: checking for $ac_word" >&5
3835
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3836
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3837
echo $ECHO_N "(cached) $ECHO_C" >&6
3839
if test -n "$ac_ct_CC"; then
3840
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3842
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3846
test -z "$as_dir" && as_dir=.
3847
for ac_exec_ext in '' $ac_executable_extensions; do
3848
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3849
ac_cv_prog_ac_ct_CC="$ac_prog"
3850
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3858
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3859
if test -n "$ac_ct_CC"; then
3860
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3861
echo "${ECHO_T}$ac_ct_CC" >&6
3863
echo "$as_me:$LINENO: result: no" >&5
3864
echo "${ECHO_T}no" >&6
3867
test -n "$ac_ct_CC" && break
3876
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3877
See \`config.log' for more details." >&5
3878
echo "$as_me: error: no acceptable C compiler found in \$PATH
3879
See \`config.log' for more details." >&2;}
3880
{ (exit 1); exit 1; }; }
3882
# Provide some information about the compiler.
3883
echo "$as_me:$LINENO:" \
3884
"checking for C compiler version" >&5
3885
ac_compiler=`set X $ac_compile; echo $2`
3886
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3887
(eval $ac_compiler --version </dev/null >&5) 2>&5
3889
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3890
(exit $ac_status); }
3891
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3892
(eval $ac_compiler -v </dev/null >&5) 2>&5
3894
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3895
(exit $ac_status); }
3896
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3897
(eval $ac_compiler -V </dev/null >&5) 2>&5
3899
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3900
(exit $ac_status); }
3902
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3903
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3904
if test "${ac_cv_c_compiler_gnu+set}" = set; then
3905
echo $ECHO_N "(cached) $ECHO_C" >&6
3907
cat >conftest.$ac_ext <<_ACEOF
3910
cat confdefs.h >>conftest.$ac_ext
3911
cat >>conftest.$ac_ext <<_ACEOF
3912
/* end confdefs.h. */
3925
rm -f conftest.$ac_objext
3926
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3927
(eval $ac_compile) 2>conftest.er1
3929
grep -v '^ *+' conftest.er1 >conftest.err
3931
cat conftest.err >&5
3932
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3933
(exit $ac_status); } &&
3934
{ ac_try='test -z "$ac_c_werror_flag"
3935
|| test ! -s conftest.err'
3936
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3939
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940
(exit $ac_status); }; } &&
3941
{ ac_try='test -s conftest.$ac_objext'
3942
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3945
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3946
(exit $ac_status); }; }; then
3949
echo "$as_me: failed program was:" >&5
3950
sed 's/^/| /' conftest.$ac_ext >&5
3954
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3955
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3958
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3959
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3960
GCC=`test $ac_compiler_gnu = yes && echo yes`
3961
ac_test_CFLAGS=${CFLAGS+set}
3962
ac_save_CFLAGS=$CFLAGS
3964
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3965
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3966
if test "${ac_cv_prog_cc_g+set}" = set; then
3967
echo $ECHO_N "(cached) $ECHO_C" >&6
3969
cat >conftest.$ac_ext <<_ACEOF
3972
cat confdefs.h >>conftest.$ac_ext
3973
cat >>conftest.$ac_ext <<_ACEOF
3974
/* end confdefs.h. */
3984
rm -f conftest.$ac_objext
3985
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3986
(eval $ac_compile) 2>conftest.er1
3988
grep -v '^ *+' conftest.er1 >conftest.err
3990
cat conftest.err >&5
3991
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3992
(exit $ac_status); } &&
3993
{ ac_try='test -z "$ac_c_werror_flag"
3994
|| test ! -s conftest.err'
3995
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3998
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3999
(exit $ac_status); }; } &&
4000
{ ac_try='test -s conftest.$ac_objext'
4001
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4004
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4005
(exit $ac_status); }; }; then
4008
echo "$as_me: failed program was:" >&5
4009
sed 's/^/| /' conftest.$ac_ext >&5
4013
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4015
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4016
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4017
if test "$ac_test_CFLAGS" = set; then
4018
CFLAGS=$ac_save_CFLAGS
4019
elif test $ac_cv_prog_cc_g = yes; then
4020
if test "$GCC" = yes; then
4026
if test "$GCC" = yes; then
4032
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4033
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4034
if test "${ac_cv_prog_cc_stdc+set}" = set; then
4035
echo $ECHO_N "(cached) $ECHO_C" >&6
4037
ac_cv_prog_cc_stdc=no
4039
cat >conftest.$ac_ext <<_ACEOF
4042
cat confdefs.h >>conftest.$ac_ext
4043
cat >>conftest.$ac_ext <<_ACEOF
4044
/* end confdefs.h. */
4047
#include <sys/types.h>
4048
#include <sys/stat.h>
4049
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4050
struct buf { int x; };
4051
FILE * (*rcsopen) (struct buf *, struct stat *, int);
4052
static char *e (p, i)
4058
static char *f (char * (*g) (char **, int), char **p, ...)
4063
s = g (p, va_arg (v,int));
4068
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4069
function prototypes and stuff, but not '\xHH' hex character constants.
4070
These don't provoke an error unfortunately, instead are silently treated
4071
as 'x'. The following induces an error, until -std1 is added to get
4072
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4073
array size at least. It's necessary to write '\x00'==0 to get something
4074
that's true only with -std1. */
4075
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4077
int test (int i, double x);
4078
struct s1 {int (*f) (int a);};
4079
struct s2 {int (*f) (double a);};
4080
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4086
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4091
# Don't try gcc -ansi; that turns off useful extensions and
4092
# breaks some systems' header files.
4093
# AIX -qlanglvl=ansi
4094
# Ultrix and OSF/1 -std1
4095
# HP-UX 10.20 and later -Ae
4096
# HP-UX older versions -Aa -D_HPUX_SOURCE
4097
# SVR4 -Xc -D__EXTENSIONS__
4098
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4100
CC="$ac_save_CC $ac_arg"
4101
rm -f conftest.$ac_objext
4102
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4103
(eval $ac_compile) 2>conftest.er1
4105
grep -v '^ *+' conftest.er1 >conftest.err
4107
cat conftest.err >&5
4108
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4109
(exit $ac_status); } &&
4110
{ ac_try='test -z "$ac_c_werror_flag"
4111
|| test ! -s conftest.err'
4112
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4115
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4116
(exit $ac_status); }; } &&
4117
{ ac_try='test -s conftest.$ac_objext'
4118
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4121
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122
(exit $ac_status); }; }; then
4123
ac_cv_prog_cc_stdc=$ac_arg
4126
echo "$as_me: failed program was:" >&5
4127
sed 's/^/| /' conftest.$ac_ext >&5
4130
rm -f conftest.err conftest.$ac_objext
4132
rm -f conftest.$ac_ext conftest.$ac_objext
4137
case "x$ac_cv_prog_cc_stdc" in
4139
echo "$as_me:$LINENO: result: none needed" >&5
4140
echo "${ECHO_T}none needed" >&6 ;;
4142
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4143
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4144
CC="$CC $ac_cv_prog_cc_stdc" ;;
4147
# Some people use a C++ compiler to compile C. Since we use `exit',
4148
# in C++ we need to declare it. In case someone uses the same compiler
4149
# for both compiling C and C++ we need to have the C++ compiler decide
4150
# the declaration of exit, since it's the most demanding environment.
4151
cat >conftest.$ac_ext <<_ACEOF
4156
rm -f conftest.$ac_objext
4157
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4158
(eval $ac_compile) 2>conftest.er1
4160
grep -v '^ *+' conftest.er1 >conftest.err
4162
cat conftest.err >&5
4163
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164
(exit $ac_status); } &&
4165
{ ac_try='test -z "$ac_c_werror_flag"
4166
|| test ! -s conftest.err'
4167
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4170
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4171
(exit $ac_status); }; } &&
4172
{ ac_try='test -s conftest.$ac_objext'
4173
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4176
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177
(exit $ac_status); }; }; then
4178
for ac_declaration in \
4180
'extern "C" void std::exit (int) throw (); using std::exit;' \
4181
'extern "C" void std::exit (int); using std::exit;' \
4182
'extern "C" void exit (int) throw ();' \
4183
'extern "C" void exit (int);' \
4186
cat >conftest.$ac_ext <<_ACEOF
4189
cat confdefs.h >>conftest.$ac_ext
4190
cat >>conftest.$ac_ext <<_ACEOF
4191
/* end confdefs.h. */
4202
rm -f conftest.$ac_objext
4203
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4204
(eval $ac_compile) 2>conftest.er1
4206
grep -v '^ *+' conftest.er1 >conftest.err
4208
cat conftest.err >&5
4209
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210
(exit $ac_status); } &&
4211
{ ac_try='test -z "$ac_c_werror_flag"
4212
|| test ! -s conftest.err'
4213
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4216
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217
(exit $ac_status); }; } &&
4218
{ ac_try='test -s conftest.$ac_objext'
4219
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4222
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223
(exit $ac_status); }; }; then
4226
echo "$as_me: failed program was:" >&5
4227
sed 's/^/| /' conftest.$ac_ext >&5
4231
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4232
cat >conftest.$ac_ext <<_ACEOF
4235
cat confdefs.h >>conftest.$ac_ext
4236
cat >>conftest.$ac_ext <<_ACEOF
4237
/* end confdefs.h. */
4247
rm -f conftest.$ac_objext
4248
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4249
(eval $ac_compile) 2>conftest.er1
4251
grep -v '^ *+' conftest.er1 >conftest.err
4253
cat conftest.err >&5
4254
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255
(exit $ac_status); } &&
4256
{ ac_try='test -z "$ac_c_werror_flag"
4257
|| test ! -s conftest.err'
4258
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4261
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262
(exit $ac_status); }; } &&
4263
{ ac_try='test -s conftest.$ac_objext'
4264
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4267
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268
(exit $ac_status); }; }; then
4271
echo "$as_me: failed program was:" >&5
4272
sed 's/^/| /' conftest.$ac_ext >&5
4275
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4278
if test -n "$ac_declaration"; then
4279
echo '#ifdef __cplusplus' >>confdefs.h
4280
echo $ac_declaration >>confdefs.h
4281
echo '#endif' >>confdefs.h
4285
echo "$as_me: failed program was:" >&5
4286
sed 's/^/| /' conftest.$ac_ext >&5
4289
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4291
ac_cpp='$CPP $CPPFLAGS'
4292
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4293
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4294
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4296
depcc="$CC" am_compiler_list=
4298
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4299
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4300
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4301
echo $ECHO_N "(cached) $ECHO_C" >&6
4303
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4304
# We make a subdir and do the tests there. Otherwise we can end up
4305
# making bogus files that we don't know about and never remove. For
4306
# instance it was reported that on HP-UX the gcc test will end up
4307
# making a dummy file named `D' -- because `-MD' means `put the output
4310
# Copy depcomp to subdir because otherwise we won't find it if we're
4311
# using a relative directory.
4312
cp "$am_depcomp" conftest.dir
4314
# We will build objects and dependencies in a subdirectory because
4315
# it helps to detect inapplicable dependency modes. For instance
4316
# both Tru64's cc and ICC support -MD to output dependencies as a
4317
# side effect of compilation, but ICC will put the dependencies in
4318
# the current directory while Tru64 will put them in the object
4322
am_cv_CC_dependencies_compiler_type=none
4323
if test "$am_compiler_list" = ""; then
4324
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4326
for depmode in $am_compiler_list; do
4327
# Setup a source with many dependencies, because some compilers
4328
# like to wrap large dependency lists on column 80 (with \), and
4329
# we should not choose a depcomp mode which is confused by this.
4331
# We need to recreate these files for each test, as the compiler may
4332
# overwrite some of them when testing with obscure command lines.
4333
# This happens at least with the AIX C compiler.
4335
for i in 1 2 3 4 5 6; do
4336
echo '#include "conftst'$i'.h"' >> sub/conftest.c
4337
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4338
# Solaris 8's {/usr,}/bin/sh.
4339
touch sub/conftst$i.h
4341
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4345
# after this tag, mechanisms are not by side-effect, so they'll
4346
# only be used when explicitly requested
4347
if test "x$enable_dependency_tracking" = xyes; then
4355
# We check with `-c' and `-o' for the sake of the "dashmstdout"
4356
# mode. It turns out that the SunPro C++ compiler does not properly
4357
# handle `-M -o', and we need to detect this.
4358
if depmode=$depmode \
4359
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4360
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4361
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4362
>/dev/null 2>conftest.err &&
4363
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4364
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4365
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4366
# icc doesn't choke on unknown options, it will just issue warnings
4367
# (even with -Werror). So we grep stderr for any message
4368
# that says an option was ignored.
4369
if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
4370
am_cv_CC_dependencies_compiler_type=$depmode
4379
am_cv_CC_dependencies_compiler_type=none
4383
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4384
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4385
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4390
test "x$enable_dependency_tracking" != xno \
4391
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4393
am__fastdepCC_FALSE='#'
4395
am__fastdepCC_TRUE='#'
4396
am__fastdepCC_FALSE=
4401
# Check whether --enable-largefile or --disable-largefile was given.
4402
if test "${enable_largefile+set}" = set; then
4403
enableval="$enable_largefile"
4406
if test "$enable_largefile" != no; then
4408
echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4409
echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4410
if test "${ac_cv_sys_largefile_CC+set}" = set; then
4411
echo $ECHO_N "(cached) $ECHO_C" >&6
4413
ac_cv_sys_largefile_CC=no
4414
if test "$GCC" != yes; then
4417
# IRIX 6.2 and later do not support large files by default,
4418
# so use the C compiler's -n32 option if that helps.
4419
cat >conftest.$ac_ext <<_ACEOF
4422
cat confdefs.h >>conftest.$ac_ext
4423
cat >>conftest.$ac_ext <<_ACEOF
4424
/* end confdefs.h. */
4425
#include <sys/types.h>
4426
/* Check that off_t can represent 2**63 - 1 correctly.
4427
We can't simply define LARGE_OFF_T to be 9223372036854775807,
4428
since some C++ compilers masquerading as C compilers
4429
incorrectly reject 9223372036854775807. */
4430
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4431
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4432
&& LARGE_OFF_T % 2147483647 == 1)
4442
rm -f conftest.$ac_objext
4443
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4444
(eval $ac_compile) 2>conftest.er1
4446
grep -v '^ *+' conftest.er1 >conftest.err
4448
cat conftest.err >&5
4449
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4450
(exit $ac_status); } &&
4451
{ ac_try='test -z "$ac_c_werror_flag"
4452
|| test ! -s conftest.err'
4453
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4456
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4457
(exit $ac_status); }; } &&
4458
{ ac_try='test -s conftest.$ac_objext'
4459
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4462
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4463
(exit $ac_status); }; }; then
4466
echo "$as_me: failed program was:" >&5
4467
sed 's/^/| /' conftest.$ac_ext >&5
4470
rm -f conftest.err conftest.$ac_objext
4472
rm -f conftest.$ac_objext
4473
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4474
(eval $ac_compile) 2>conftest.er1
4476
grep -v '^ *+' conftest.er1 >conftest.err
4478
cat conftest.err >&5
4479
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4480
(exit $ac_status); } &&
4481
{ ac_try='test -z "$ac_c_werror_flag"
4482
|| test ! -s conftest.err'
4483
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4486
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4487
(exit $ac_status); }; } &&
4488
{ ac_try='test -s conftest.$ac_objext'
4489
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4492
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4493
(exit $ac_status); }; }; then
4494
ac_cv_sys_largefile_CC=' -n32'; break
4496
echo "$as_me: failed program was:" >&5
4497
sed 's/^/| /' conftest.$ac_ext >&5
4500
rm -f conftest.err conftest.$ac_objext
4504
rm -f conftest.$ac_ext
4507
echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4508
echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4509
if test "$ac_cv_sys_largefile_CC" != no; then
4510
CC=$CC$ac_cv_sys_largefile_CC
4513
echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4514
echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4515
if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4516
echo $ECHO_N "(cached) $ECHO_C" >&6
4519
ac_cv_sys_file_offset_bits=no
4520
cat >conftest.$ac_ext <<_ACEOF
4523
cat confdefs.h >>conftest.$ac_ext
4524
cat >>conftest.$ac_ext <<_ACEOF
4525
/* end confdefs.h. */
4526
#include <sys/types.h>
4527
/* Check that off_t can represent 2**63 - 1 correctly.
4528
We can't simply define LARGE_OFF_T to be 9223372036854775807,
4529
since some C++ compilers masquerading as C compilers
4530
incorrectly reject 9223372036854775807. */
4531
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4532
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4533
&& LARGE_OFF_T % 2147483647 == 1)
4543
rm -f conftest.$ac_objext
4544
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4545
(eval $ac_compile) 2>conftest.er1
4547
grep -v '^ *+' conftest.er1 >conftest.err
4549
cat conftest.err >&5
4550
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551
(exit $ac_status); } &&
4552
{ ac_try='test -z "$ac_c_werror_flag"
4553
|| test ! -s conftest.err'
4554
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4557
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558
(exit $ac_status); }; } &&
4559
{ ac_try='test -s conftest.$ac_objext'
4560
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4563
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564
(exit $ac_status); }; }; then
4567
echo "$as_me: failed program was:" >&5
4568
sed 's/^/| /' conftest.$ac_ext >&5
4571
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4572
cat >conftest.$ac_ext <<_ACEOF
4575
cat confdefs.h >>conftest.$ac_ext
4576
cat >>conftest.$ac_ext <<_ACEOF
4577
/* end confdefs.h. */
4578
#define _FILE_OFFSET_BITS 64
4579
#include <sys/types.h>
4580
/* Check that off_t can represent 2**63 - 1 correctly.
4581
We can't simply define LARGE_OFF_T to be 9223372036854775807,
4582
since some C++ compilers masquerading as C compilers
4583
incorrectly reject 9223372036854775807. */
4584
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4585
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4586
&& LARGE_OFF_T % 2147483647 == 1)
4596
rm -f conftest.$ac_objext
4597
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4598
(eval $ac_compile) 2>conftest.er1
4600
grep -v '^ *+' conftest.er1 >conftest.err
4602
cat conftest.err >&5
4603
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604
(exit $ac_status); } &&
4605
{ ac_try='test -z "$ac_c_werror_flag"
4606
|| test ! -s conftest.err'
4607
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4610
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4611
(exit $ac_status); }; } &&
4612
{ ac_try='test -s conftest.$ac_objext'
4613
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4616
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617
(exit $ac_status); }; }; then
4618
ac_cv_sys_file_offset_bits=64; break
4620
echo "$as_me: failed program was:" >&5
4621
sed 's/^/| /' conftest.$ac_ext >&5
4624
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4628
echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4629
echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4630
if test "$ac_cv_sys_file_offset_bits" != no; then
4632
cat >>confdefs.h <<_ACEOF
4633
#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4638
echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4639
echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4640
if test "${ac_cv_sys_large_files+set}" = set; then
4641
echo $ECHO_N "(cached) $ECHO_C" >&6
4644
ac_cv_sys_large_files=no
4645
cat >conftest.$ac_ext <<_ACEOF
4648
cat confdefs.h >>conftest.$ac_ext
4649
cat >>conftest.$ac_ext <<_ACEOF
4650
/* end confdefs.h. */
4651
#include <sys/types.h>
4652
/* Check that off_t can represent 2**63 - 1 correctly.
4653
We can't simply define LARGE_OFF_T to be 9223372036854775807,
4654
since some C++ compilers masquerading as C compilers
4655
incorrectly reject 9223372036854775807. */
4656
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4657
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4658
&& LARGE_OFF_T % 2147483647 == 1)
4668
rm -f conftest.$ac_objext
4669
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4670
(eval $ac_compile) 2>conftest.er1
4672
grep -v '^ *+' conftest.er1 >conftest.err
4674
cat conftest.err >&5
4675
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4676
(exit $ac_status); } &&
4677
{ ac_try='test -z "$ac_c_werror_flag"
4678
|| test ! -s conftest.err'
4679
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4682
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4683
(exit $ac_status); }; } &&
4684
{ ac_try='test -s conftest.$ac_objext'
4685
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4688
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689
(exit $ac_status); }; }; then
4692
echo "$as_me: failed program was:" >&5
4693
sed 's/^/| /' conftest.$ac_ext >&5
4696
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4697
cat >conftest.$ac_ext <<_ACEOF
4700
cat confdefs.h >>conftest.$ac_ext
4701
cat >>conftest.$ac_ext <<_ACEOF
4702
/* end confdefs.h. */
4703
#define _LARGE_FILES 1
4704
#include <sys/types.h>
4705
/* Check that off_t can represent 2**63 - 1 correctly.
4706
We can't simply define LARGE_OFF_T to be 9223372036854775807,
4707
since some C++ compilers masquerading as C compilers
4708
incorrectly reject 9223372036854775807. */
4709
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4710
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4711
&& LARGE_OFF_T % 2147483647 == 1)
4721
rm -f conftest.$ac_objext
4722
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4723
(eval $ac_compile) 2>conftest.er1
4725
grep -v '^ *+' conftest.er1 >conftest.err
4727
cat conftest.err >&5
4728
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4729
(exit $ac_status); } &&
4730
{ ac_try='test -z "$ac_c_werror_flag"
4731
|| test ! -s conftest.err'
4732
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4735
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736
(exit $ac_status); }; } &&
4737
{ ac_try='test -s conftest.$ac_objext'
4738
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4741
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742
(exit $ac_status); }; }; then
4743
ac_cv_sys_large_files=1; break
4745
echo "$as_me: failed program was:" >&5
4746
sed 's/^/| /' conftest.$ac_ext >&5
4749
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4753
echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4754
echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4755
if test "$ac_cv_sys_large_files" != no; then
4757
cat >>confdefs.h <<_ACEOF
4758
#define _LARGE_FILES $ac_cv_sys_large_files
4769
# Check whether --enable-shared or --disable-shared was given.
4770
if test "${enable_shared+set}" = set; then
4771
enableval="$enable_shared"
4772
p=${PACKAGE-default}
4774
yes) enable_shared=yes ;;
4775
no) enable_shared=no ;;
4778
# Look at the argument we got. We use all the common list separators.
4779
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4780
for pkg in $enableval; do
4782
if test "X$pkg" = "X$p"; then
4793
# Check whether --enable-static or --disable-static was given.
4794
if test "${enable_static+set}" = set; then
4795
enableval="$enable_static"
4796
p=${PACKAGE-default}
4798
yes) enable_static=yes ;;
4799
no) enable_static=no ;;
4802
# Look at the argument we got. We use all the common list separators.
4803
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4804
for pkg in $enableval; do
4806
if test "X$pkg" = "X$p"; then
4817
# Check whether --enable-fast-install or --disable-fast-install was given.
4818
if test "${enable_fast_install+set}" = set; then
4819
enableval="$enable_fast_install"
4820
p=${PACKAGE-default}
4822
yes) enable_fast_install=yes ;;
4823
no) enable_fast_install=no ;;
4825
enable_fast_install=no
4826
# Look at the argument we got. We use all the common list separators.
4827
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4828
for pkg in $enableval; do
4830
if test "X$pkg" = "X$p"; then
4831
enable_fast_install=yes
4838
enable_fast_install=yes
4841
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4842
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4843
if test "${lt_cv_path_SED+set}" = set; then
4844
echo $ECHO_N "(cached) $ECHO_C" >&6
4846
# Loop through the user's path and test for sed and gsed.
4847
# Then use that list of sed's as ones to test for truncation.
4848
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4852
test -z "$as_dir" && as_dir=.
4853
for lt_ac_prog in sed gsed; do
4854
for ac_exec_ext in '' $ac_executable_extensions; do
4855
if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4856
lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4863
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4864
# along with /bin/sed that truncates output.
4865
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4866
test ! -f $lt_ac_sed && break
4867
cat /dev/null > conftest.in
4869
echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4870
# Check for GNU sed and select it if it is found.
4871
if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4872
lt_cv_path_SED=$lt_ac_sed
4876
cat conftest.in conftest.in >conftest.tmp
4877
mv -f conftest.tmp conftest.in
4878
cp conftest.in conftest.nl
4880
$lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4881
cmp -s conftest.out conftest.nl || break
4882
# 10000 chars as input seems more than enough
4883
test $lt_ac_count -gt 10 && break
4884
lt_ac_count=`expr $lt_ac_count + 1`
4885
if test $lt_ac_count -gt $lt_ac_max; then
4886
lt_ac_max=$lt_ac_count
4887
lt_cv_path_SED=$lt_ac_sed
4895
echo "$as_me:$LINENO: result: $SED" >&5
4896
echo "${ECHO_T}$SED" >&6
4899
# Check whether --with-gnu-ld or --without-gnu-ld was given.
4900
if test "${with_gnu_ld+set}" = set; then
4901
withval="$with_gnu_ld"
4902
test "$withval" = no || with_gnu_ld=yes
4907
if test "$GCC" = yes; then
4908
# Check if gcc -print-prog-name=ld gives a path.
4909
echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4910
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4913
# gcc leaves a trailing carriage return which upsets mingw
4914
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4916
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4919
# Accept absolute paths.
4921
re_direlt='/[^/][^/]*/\.\./'
4922
# Canonicalize the pathname of ld
4923
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4924
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4925
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4927
test -z "$LD" && LD="$ac_prog"
4930
# If it fails, then pretend we aren't using GCC.
4934
# If it is relative, then search for the first ld in PATH.
4938
elif test "$with_gnu_ld" = yes; then
4939
echo "$as_me:$LINENO: checking for GNU ld" >&5
4940
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4942
echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4943
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4945
if test "${lt_cv_path_LD+set}" = set; then
4946
echo $ECHO_N "(cached) $ECHO_C" >&6
4948
if test -z "$LD"; then
4949
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4950
for ac_dir in $PATH; do
4952
test -z "$ac_dir" && ac_dir=.
4953
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4954
lt_cv_path_LD="$ac_dir/$ac_prog"
4955
# Check to see if the program is GNU ld. I'd rather use --version,
4956
# but apparently some GNU ld's only accept -v.
4957
# Break only if it was the GNU/non-GNU ld that we prefer.
4958
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4959
*GNU* | *'with BFD'*)
4960
test "$with_gnu_ld" != no && break
4963
test "$with_gnu_ld" != yes && break
4970
lt_cv_path_LD="$LD" # Let the user override the test with a path.
4975
if test -n "$LD"; then
4976
echo "$as_me:$LINENO: result: $LD" >&5
4977
echo "${ECHO_T}$LD" >&6
4979
echo "$as_me:$LINENO: result: no" >&5
4980
echo "${ECHO_T}no" >&6
4982
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4983
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4984
{ (exit 1); exit 1; }; }
4985
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4986
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4987
if test "${lt_cv_prog_gnu_ld+set}" = set; then
4988
echo $ECHO_N "(cached) $ECHO_C" >&6
4990
# I'd rather use --version here, but apparently some GNU ld's only accept -v.
4991
case `$LD -v 2>&1 </dev/null` in
4992
*GNU* | *'with BFD'*)
4993
lt_cv_prog_gnu_ld=yes
4996
lt_cv_prog_gnu_ld=no
5000
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5001
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5002
with_gnu_ld=$lt_cv_prog_gnu_ld
5005
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5006
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5007
if test "${lt_cv_ld_reload_flag+set}" = set; then
5008
echo $ECHO_N "(cached) $ECHO_C" >&6
5010
lt_cv_ld_reload_flag='-r'
5012
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5013
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5014
reload_flag=$lt_cv_ld_reload_flag
5015
case $reload_flag in
5017
*) reload_flag=" $reload_flag" ;;
5019
reload_cmds='$LD$reload_flag -o $output$reload_objs'
5021
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5022
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5023
if test "${lt_cv_path_NM+set}" = set; then
5024
echo $ECHO_N "(cached) $ECHO_C" >&6
5026
if test -n "$NM"; then
5027
# Let the user override the test.
5030
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5031
for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5033
test -z "$ac_dir" && ac_dir=.
5034
tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5035
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5036
# Check to see if the nm accepts a BSD-compat flag.
5037
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5038
# nm: unknown option "B" ignored
5039
# Tru64's nm complains that /dev/null is an invalid object file
5040
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5041
*/dev/null* | *'Invalid file or object type'*)
5042
lt_cv_path_NM="$tmp_nm -B"
5046
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5048
lt_cv_path_NM="$tmp_nm -p"
5052
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5053
continue # so that we can try to find one that supports BSD flags
5060
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5063
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5064
echo "${ECHO_T}$lt_cv_path_NM" >&6
5067
echo "$as_me:$LINENO: checking whether ln -s works" >&5
5068
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5070
if test "$LN_S" = "ln -s"; then
5071
echo "$as_me:$LINENO: result: yes" >&5
5072
echo "${ECHO_T}yes" >&6
5074
echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5075
echo "${ECHO_T}no, using $LN_S" >&6
5078
echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5079
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5080
if test "${lt_cv_deplibs_check_method+set}" = set; then
5081
echo $ECHO_N "(cached) $ECHO_C" >&6
5083
lt_cv_file_magic_cmd='$MAGIC_CMD'
5084
lt_cv_file_magic_test_file=
5085
lt_cv_deplibs_check_method='unknown'
5086
# Need to set the preceding variable on all platforms that support
5087
# interlibrary dependencies.
5088
# 'none' -- dependencies not supported.
5089
# `unknown' -- same as none, but documents that we really don't know.
5090
# 'pass_all' -- all dependencies passed with no checks.
5091
# 'test_compile' -- check by making test program.
5092
# 'file_magic [[regex]]' -- check by looking for files in library path
5093
# which responds to the $file_magic_cmd with a given extended regex.
5094
# If you have `file' or equivalent on your system and you're not sure
5095
# whether `pass_all' will *always* work, you probably want this one.
5099
lt_cv_deplibs_check_method=pass_all
5103
lt_cv_deplibs_check_method=pass_all
5107
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5108
lt_cv_file_magic_cmd='/usr/bin/file -L'
5109
lt_cv_file_magic_test_file=/shlib/libc.so
5113
# func_win32_libid is a shell function defined in ltmain.sh
5114
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5115
lt_cv_file_magic_cmd='func_win32_libid'
5119
# Base MSYS/MinGW do not provide the 'file' command needed by
5120
# func_win32_libid shell function, so use a weaker test based on 'objdump'.
5121
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5122
lt_cv_file_magic_cmd='$OBJDUMP -f'
5125
darwin* | rhapsody*)
5126
lt_cv_deplibs_check_method=pass_all
5129
freebsd* | kfreebsd*-gnu)
5130
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5133
# Not sure whether the presence of OpenBSD here was a mistake.
5134
# Let's accept both of them until this is cleared up.
5135
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
5136
lt_cv_file_magic_cmd=/usr/bin/file
5137
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5141
lt_cv_deplibs_check_method=pass_all
5146
lt_cv_deplibs_check_method=pass_all
5149
hpux10.20* | hpux11*)
5150
lt_cv_file_magic_cmd=/usr/bin/file
5153
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5154
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5157
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5158
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5161
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5162
lt_cv_file_magic_test_file=/usr/lib/libc.sl
5167
irix5* | irix6* | nonstopux*)
5169
*-32|*"-32 ") libmagic=32-bit;;
5170
*-n32|*"-n32 ") libmagic=N32;;
5171
*-64|*"-64 ") libmagic=64-bit;;
5172
*) libmagic=never-match;;
5174
lt_cv_deplibs_check_method=pass_all
5177
# This must be Linux ELF.
5180
alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*)
5181
lt_cv_deplibs_check_method=pass_all ;;
5183
# glibc up to 2.1.1 does not perform some relocations on ARM
5184
# this will be overridden with pass_all, but let us keep it just in case
5185
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
5187
lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
5188
lt_cv_deplibs_check_method=pass_all
5192
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5193
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5195
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5200
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5201
lt_cv_file_magic_cmd=/usr/bin/file
5202
lt_cv_file_magic_test_file=/usr/lib/libnls.so
5206
lt_cv_deplibs_check_method=unknown
5210
lt_cv_file_magic_cmd=/usr/bin/file
5211
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5212
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5213
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
5215
lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
5219
osf3* | osf4* | osf5*)
5220
lt_cv_deplibs_check_method=pass_all
5224
lt_cv_deplibs_check_method=pass_all
5228
lt_cv_deplibs_check_method=pass_all
5231
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5232
case $host_vendor in
5234
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
5235
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5238
lt_cv_deplibs_check_method=pass_all
5241
lt_cv_file_magic_cmd='/bin/file'
5242
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5245
lt_cv_file_magic_cmd='/bin/file'
5246
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5247
lt_cv_file_magic_test_file=/lib/libc.so
5250
lt_cv_deplibs_check_method=pass_all
5255
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5256
lt_cv_deplibs_check_method=pass_all
5261
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5262
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5263
file_magic_cmd=$lt_cv_file_magic_cmd
5264
deplibs_check_method=$lt_cv_deplibs_check_method
5265
test -z "$deplibs_check_method" && deplibs_check_method=unknown
5270
# If no C compiler was specified, use CC.
5273
# Allow CC to be a program name with arguments.
5276
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5277
if test "${enable_libtool_lock+set}" = set; then
5278
enableval="$enable_libtool_lock"
5281
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5283
# Some flags need to be propagated to the compiler or linker for good
5287
# Find out which ABI we are using.
5288
echo 'int i;' > conftest.$ac_ext
5289
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5290
(eval $ac_compile) 2>&5
5292
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5293
(exit $ac_status); }; then
5294
case `/usr/bin/file conftest.$ac_objext` in
5306
# Find out which ABI we are using.
5307
echo '#line 5307 "configure"' > conftest.$ac_ext
5308
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5309
(eval $ac_compile) 2>&5
5311
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312
(exit $ac_status); }; then
5313
if test "$lt_cv_prog_gnu_ld" = yes; then
5314
case `/usr/bin/file conftest.$ac_objext` in
5316
LD="${LD-ld} -melf32bsmip"
5319
LD="${LD-ld} -melf32bmipn32"
5322
LD="${LD-ld} -melf64bmip"
5326
case `/usr/bin/file conftest.$ac_objext` in
5342
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5343
# Find out which ABI we are using.
5344
echo 'int i;' > conftest.$ac_ext
5345
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5346
(eval $ac_compile) 2>&5
5348
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5349
(exit $ac_status); }; then
5350
case "`/usr/bin/file conftest.o`" in
5354
LD="${LD-ld} -m elf_i386"
5356
ppc64-*linux*|powerpc64-*linux*)
5357
LD="${LD-ld} -m elf32ppclinux"
5360
LD="${LD-ld} -m elf_s390"
5363
LD="${LD-ld} -m elf32_sparc"
5370
LD="${LD-ld} -m elf_x86_64"
5372
ppc*-*linux*|powerpc*-*linux*)
5373
LD="${LD-ld} -m elf64ppc"
5376
LD="${LD-ld} -m elf64_s390"
5379
LD="${LD-ld} -m elf64_sparc"
5389
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
5390
SAVE_CFLAGS="$CFLAGS"
5391
CFLAGS="$CFLAGS -belf"
5392
echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5393
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5394
if test "${lt_cv_cc_needs_belf+set}" = set; then
5395
echo $ECHO_N "(cached) $ECHO_C" >&6
5398
ac_cpp='$CPP $CPPFLAGS'
5399
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5400
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5401
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5403
cat >conftest.$ac_ext <<_ACEOF
5406
cat confdefs.h >>conftest.$ac_ext
5407
cat >>conftest.$ac_ext <<_ACEOF
5408
/* end confdefs.h. */
5418
rm -f conftest.$ac_objext conftest$ac_exeext
5419
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5420
(eval $ac_link) 2>conftest.er1
5422
grep -v '^ *+' conftest.er1 >conftest.err
5424
cat conftest.err >&5
5425
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5426
(exit $ac_status); } &&
5427
{ ac_try='test -z "$ac_c_werror_flag"
5428
|| test ! -s conftest.err'
5429
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5432
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5433
(exit $ac_status); }; } &&
5434
{ ac_try='test -s conftest$ac_exeext'
5435
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5438
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439
(exit $ac_status); }; }; then
5440
lt_cv_cc_needs_belf=yes
5442
echo "$as_me: failed program was:" >&5
5443
sed 's/^/| /' conftest.$ac_ext >&5
5445
lt_cv_cc_needs_belf=no
5447
rm -f conftest.err conftest.$ac_objext \
5448
conftest$ac_exeext conftest.$ac_ext
5450
ac_cpp='$CPP $CPPFLAGS'
5451
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5452
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5453
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5456
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5457
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5458
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5459
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5460
CFLAGS="$SAVE_CFLAGS"
5463
*-*-cygwin* | *-*-mingw* | *-*-pw32*)
5464
if test -n "$ac_tool_prefix"; then
5465
# Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5466
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5467
echo "$as_me:$LINENO: checking for $ac_word" >&5
5468
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5469
if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5470
echo $ECHO_N "(cached) $ECHO_C" >&6
5472
if test -n "$DLLTOOL"; then
5473
ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5475
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5479
test -z "$as_dir" && as_dir=.
5480
for ac_exec_ext in '' $ac_executable_extensions; do
5481
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5482
ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5483
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5491
DLLTOOL=$ac_cv_prog_DLLTOOL
5492
if test -n "$DLLTOOL"; then
5493
echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5494
echo "${ECHO_T}$DLLTOOL" >&6
5496
echo "$as_me:$LINENO: result: no" >&5
5497
echo "${ECHO_T}no" >&6
5501
if test -z "$ac_cv_prog_DLLTOOL"; then
5502
ac_ct_DLLTOOL=$DLLTOOL
5503
# Extract the first word of "dlltool", so it can be a program name with args.
5504
set dummy dlltool; ac_word=$2
5505
echo "$as_me:$LINENO: checking for $ac_word" >&5
5506
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5507
if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5508
echo $ECHO_N "(cached) $ECHO_C" >&6
5510
if test -n "$ac_ct_DLLTOOL"; then
5511
ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5513
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5517
test -z "$as_dir" && as_dir=.
5518
for ac_exec_ext in '' $ac_executable_extensions; do
5519
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5520
ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5521
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5527
test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
5530
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5531
if test -n "$ac_ct_DLLTOOL"; then
5532
echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5533
echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
5535
echo "$as_me:$LINENO: result: no" >&5
5536
echo "${ECHO_T}no" >&6
5539
DLLTOOL=$ac_ct_DLLTOOL
5541
DLLTOOL="$ac_cv_prog_DLLTOOL"
5544
if test -n "$ac_tool_prefix"; then
5545
# Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5546
set dummy ${ac_tool_prefix}as; ac_word=$2
5547
echo "$as_me:$LINENO: checking for $ac_word" >&5
5548
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5549
if test "${ac_cv_prog_AS+set}" = set; then
5550
echo $ECHO_N "(cached) $ECHO_C" >&6
5552
if test -n "$AS"; then
5553
ac_cv_prog_AS="$AS" # Let the user override the test.
5555
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5559
test -z "$as_dir" && as_dir=.
5560
for ac_exec_ext in '' $ac_executable_extensions; do
5561
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5562
ac_cv_prog_AS="${ac_tool_prefix}as"
5563
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5572
if test -n "$AS"; then
5573
echo "$as_me:$LINENO: result: $AS" >&5
5574
echo "${ECHO_T}$AS" >&6
5576
echo "$as_me:$LINENO: result: no" >&5
5577
echo "${ECHO_T}no" >&6
5581
if test -z "$ac_cv_prog_AS"; then
5583
# Extract the first word of "as", so it can be a program name with args.
5584
set dummy as; ac_word=$2
5585
echo "$as_me:$LINENO: checking for $ac_word" >&5
5586
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5587
if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5588
echo $ECHO_N "(cached) $ECHO_C" >&6
5590
if test -n "$ac_ct_AS"; then
5591
ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5593
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5597
test -z "$as_dir" && as_dir=.
5598
for ac_exec_ext in '' $ac_executable_extensions; do
5599
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5600
ac_cv_prog_ac_ct_AS="as"
5601
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5607
test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
5610
ac_ct_AS=$ac_cv_prog_ac_ct_AS
5611
if test -n "$ac_ct_AS"; then
5612
echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5613
echo "${ECHO_T}$ac_ct_AS" >&6
5615
echo "$as_me:$LINENO: result: no" >&5
5616
echo "${ECHO_T}no" >&6
5624
if test -n "$ac_tool_prefix"; then
5625
# Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5626
set dummy ${ac_tool_prefix}objdump; ac_word=$2
5627
echo "$as_me:$LINENO: checking for $ac_word" >&5
5628
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5629
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5630
echo $ECHO_N "(cached) $ECHO_C" >&6
5632
if test -n "$OBJDUMP"; then
5633
ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5635
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5639
test -z "$as_dir" && as_dir=.
5640
for ac_exec_ext in '' $ac_executable_extensions; do
5641
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5642
ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5643
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5651
OBJDUMP=$ac_cv_prog_OBJDUMP
5652
if test -n "$OBJDUMP"; then
5653
echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5654
echo "${ECHO_T}$OBJDUMP" >&6
5656
echo "$as_me:$LINENO: result: no" >&5
5657
echo "${ECHO_T}no" >&6
5661
if test -z "$ac_cv_prog_OBJDUMP"; then
5662
ac_ct_OBJDUMP=$OBJDUMP
5663
# Extract the first word of "objdump", so it can be a program name with args.
5664
set dummy objdump; ac_word=$2
5665
echo "$as_me:$LINENO: checking for $ac_word" >&5
5666
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5667
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5668
echo $ECHO_N "(cached) $ECHO_C" >&6
5670
if test -n "$ac_ct_OBJDUMP"; then
5671
ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5673
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5677
test -z "$as_dir" && as_dir=.
5678
for ac_exec_ext in '' $ac_executable_extensions; do
5679
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5680
ac_cv_prog_ac_ct_OBJDUMP="objdump"
5681
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5687
test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
5690
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5691
if test -n "$ac_ct_OBJDUMP"; then
5692
echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5693
echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
5695
echo "$as_me:$LINENO: result: no" >&5
5696
echo "${ECHO_T}no" >&6
5699
OBJDUMP=$ac_ct_OBJDUMP
5701
OBJDUMP="$ac_cv_prog_OBJDUMP"
5708
need_locks="$enable_libtool_lock"
5711
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5712
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5713
if test "${ac_cv_header_stdc+set}" = set; then
5714
echo $ECHO_N "(cached) $ECHO_C" >&6
5716
cat >conftest.$ac_ext <<_ACEOF
5719
cat confdefs.h >>conftest.$ac_ext
5720
cat >>conftest.$ac_ext <<_ACEOF
5721
/* end confdefs.h. */
5735
rm -f conftest.$ac_objext
5736
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5737
(eval $ac_compile) 2>conftest.er1
5739
grep -v '^ *+' conftest.er1 >conftest.err
5741
cat conftest.err >&5
5742
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743
(exit $ac_status); } &&
5744
{ ac_try='test -z "$ac_c_werror_flag"
5745
|| test ! -s conftest.err'
5746
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5749
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750
(exit $ac_status); }; } &&
5751
{ ac_try='test -s conftest.$ac_objext'
5752
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5755
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5756
(exit $ac_status); }; }; then
5757
ac_cv_header_stdc=yes
5759
echo "$as_me: failed program was:" >&5
5760
sed 's/^/| /' conftest.$ac_ext >&5
5762
ac_cv_header_stdc=no
5764
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5766
if test $ac_cv_header_stdc = yes; then
5767
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5768
cat >conftest.$ac_ext <<_ACEOF
5771
cat confdefs.h >>conftest.$ac_ext
5772
cat >>conftest.$ac_ext <<_ACEOF
5773
/* end confdefs.h. */
5777
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5778
$EGREP "memchr" >/dev/null 2>&1; then
5781
ac_cv_header_stdc=no
5787
if test $ac_cv_header_stdc = yes; then
5788
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5789
cat >conftest.$ac_ext <<_ACEOF
5792
cat confdefs.h >>conftest.$ac_ext
5793
cat >>conftest.$ac_ext <<_ACEOF
5794
/* end confdefs.h. */
5798
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5799
$EGREP "free" >/dev/null 2>&1; then
5802
ac_cv_header_stdc=no
5808
if test $ac_cv_header_stdc = yes; then
5809
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5810
if test "$cross_compiling" = yes; then
5813
cat >conftest.$ac_ext <<_ACEOF
5816
cat confdefs.h >>conftest.$ac_ext
5817
cat >>conftest.$ac_ext <<_ACEOF
5818
/* end confdefs.h. */
5820
#if ((' ' & 0x0FF) == 0x020)
5821
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5822
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5824
# define ISLOWER(c) \
5825
(('a' <= (c) && (c) <= 'i') \
5826
|| ('j' <= (c) && (c) <= 'r') \
5827
|| ('s' <= (c) && (c) <= 'z'))
5828
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5831
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5836
for (i = 0; i < 256; i++)
5837
if (XOR (islower (i), ISLOWER (i))
5838
|| toupper (i) != TOUPPER (i))
5843
rm -f conftest$ac_exeext
5844
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5845
(eval $ac_link) 2>&5
5847
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5848
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5849
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5852
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5853
(exit $ac_status); }; }; then
5856
echo "$as_me: program exited with status $ac_status" >&5
5857
echo "$as_me: failed program was:" >&5
5858
sed 's/^/| /' conftest.$ac_ext >&5
5861
ac_cv_header_stdc=no
5863
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5867
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5868
echo "${ECHO_T}$ac_cv_header_stdc" >&6
5869
if test $ac_cv_header_stdc = yes; then
5871
cat >>confdefs.h <<\_ACEOF
5872
#define STDC_HEADERS 1
5877
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5887
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5888
inttypes.h stdint.h unistd.h
5890
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5891
echo "$as_me:$LINENO: checking for $ac_header" >&5
5892
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5893
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5894
echo $ECHO_N "(cached) $ECHO_C" >&6
5896
cat >conftest.$ac_ext <<_ACEOF
5899
cat confdefs.h >>conftest.$ac_ext
5900
cat >>conftest.$ac_ext <<_ACEOF
5901
/* end confdefs.h. */
5902
$ac_includes_default
5904
#include <$ac_header>
5906
rm -f conftest.$ac_objext
5907
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5908
(eval $ac_compile) 2>conftest.er1
5910
grep -v '^ *+' conftest.er1 >conftest.err
5912
cat conftest.err >&5
5913
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5914
(exit $ac_status); } &&
5915
{ ac_try='test -z "$ac_c_werror_flag"
5916
|| test ! -s conftest.err'
5917
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5920
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921
(exit $ac_status); }; } &&
5922
{ ac_try='test -s conftest.$ac_objext'
5923
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5926
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5927
(exit $ac_status); }; }; then
5928
eval "$as_ac_Header=yes"
5930
echo "$as_me: failed program was:" >&5
5931
sed 's/^/| /' conftest.$ac_ext >&5
5933
eval "$as_ac_Header=no"
5935
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5937
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5938
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5939
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5940
cat >>confdefs.h <<_ACEOF
5941
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5950
for ac_header in dlfcn.h
5952
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5953
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5954
echo "$as_me:$LINENO: checking for $ac_header" >&5
5955
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5956
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5957
echo $ECHO_N "(cached) $ECHO_C" >&6
5959
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5960
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5962
# Is the header compilable?
5963
echo "$as_me:$LINENO: checking $ac_header usability" >&5
5964
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5965
cat >conftest.$ac_ext <<_ACEOF
5968
cat confdefs.h >>conftest.$ac_ext
5969
cat >>conftest.$ac_ext <<_ACEOF
5970
/* end confdefs.h. */
5971
$ac_includes_default
5972
#include <$ac_header>
5974
rm -f conftest.$ac_objext
5975
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5976
(eval $ac_compile) 2>conftest.er1
5978
grep -v '^ *+' conftest.er1 >conftest.err
5980
cat conftest.err >&5
5981
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982
(exit $ac_status); } &&
5983
{ ac_try='test -z "$ac_c_werror_flag"
5984
|| test ! -s conftest.err'
5985
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5988
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5989
(exit $ac_status); }; } &&
5990
{ ac_try='test -s conftest.$ac_objext'
5991
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5994
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995
(exit $ac_status); }; }; then
5996
ac_header_compiler=yes
5998
echo "$as_me: failed program was:" >&5
5999
sed 's/^/| /' conftest.$ac_ext >&5
6001
ac_header_compiler=no
6003
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6004
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6005
echo "${ECHO_T}$ac_header_compiler" >&6
6007
# Is the header present?
6008
echo "$as_me:$LINENO: checking $ac_header presence" >&5
6009
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6010
cat >conftest.$ac_ext <<_ACEOF
6013
cat confdefs.h >>conftest.$ac_ext
6014
cat >>conftest.$ac_ext <<_ACEOF
6015
/* end confdefs.h. */
6016
#include <$ac_header>
6018
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6019
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6021
grep -v '^ *+' conftest.er1 >conftest.err
6023
cat conftest.err >&5
6024
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6025
(exit $ac_status); } >/dev/null; then
6026
if test -s conftest.err; then
6027
ac_cpp_err=$ac_c_preproc_warn_flag
6028
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6035
if test -z "$ac_cpp_err"; then
6036
ac_header_preproc=yes
6038
echo "$as_me: failed program was:" >&5
6039
sed 's/^/| /' conftest.$ac_ext >&5
6041
ac_header_preproc=no
6043
rm -f conftest.err conftest.$ac_ext
6044
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6045
echo "${ECHO_T}$ac_header_preproc" >&6
6047
# So? What about this header?
6048
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6050
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6051
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6052
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6053
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6054
ac_header_preproc=yes
6057
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6058
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6059
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6060
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6061
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6062
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6063
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6064
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6065
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6066
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6067
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6068
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6071
## ------------------------------- ##
6072
## Report this to curl-bug@haxx.se ##
6073
## ------------------------------- ##
6076
sed "s/^/$as_me: WARNING: /" >&2
6079
echo "$as_me:$LINENO: checking for $ac_header" >&5
6080
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6081
if eval "test \"\${$as_ac_Header+set}\" = set"; then
6082
echo $ECHO_N "(cached) $ECHO_C" >&6
6084
eval "$as_ac_Header=\$ac_header_preproc"
6086
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6087
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6090
if test `eval echo '${'$as_ac_Header'}'` = yes; then
6091
cat >>confdefs.h <<_ACEOF
6092
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6100
ac_cpp='$CXXCPP $CPPFLAGS'
6101
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6102
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6103
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6104
if test -n "$ac_tool_prefix"; then
6105
for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6107
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6108
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6109
echo "$as_me:$LINENO: checking for $ac_word" >&5
6110
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6111
if test "${ac_cv_prog_CXX+set}" = set; then
6112
echo $ECHO_N "(cached) $ECHO_C" >&6
6114
if test -n "$CXX"; then
6115
ac_cv_prog_CXX="$CXX" # Let the user override the test.
6117
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6121
test -z "$as_dir" && as_dir=.
6122
for ac_exec_ext in '' $ac_executable_extensions; do
6123
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6124
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6125
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6134
if test -n "$CXX"; then
6135
echo "$as_me:$LINENO: result: $CXX" >&5
6136
echo "${ECHO_T}$CXX" >&6
6138
echo "$as_me:$LINENO: result: no" >&5
6139
echo "${ECHO_T}no" >&6
6142
test -n "$CXX" && break
6145
if test -z "$CXX"; then
6147
for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6149
# Extract the first word of "$ac_prog", so it can be a program name with args.
6150
set dummy $ac_prog; ac_word=$2
6151
echo "$as_me:$LINENO: checking for $ac_word" >&5
6152
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6153
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6154
echo $ECHO_N "(cached) $ECHO_C" >&6
6156
if test -n "$ac_ct_CXX"; then
6157
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6159
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6163
test -z "$as_dir" && as_dir=.
6164
for ac_exec_ext in '' $ac_executable_extensions; do
6165
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6166
ac_cv_prog_ac_ct_CXX="$ac_prog"
6167
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6175
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6176
if test -n "$ac_ct_CXX"; then
6177
echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6178
echo "${ECHO_T}$ac_ct_CXX" >&6
6180
echo "$as_me:$LINENO: result: no" >&5
6181
echo "${ECHO_T}no" >&6
6184
test -n "$ac_ct_CXX" && break
6186
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
6192
# Provide some information about the compiler.
6193
echo "$as_me:$LINENO:" \
6194
"checking for C++ compiler version" >&5
6195
ac_compiler=`set X $ac_compile; echo $2`
6196
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6197
(eval $ac_compiler --version </dev/null >&5) 2>&5
6199
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6200
(exit $ac_status); }
6201
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6202
(eval $ac_compiler -v </dev/null >&5) 2>&5
6204
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6205
(exit $ac_status); }
6206
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6207
(eval $ac_compiler -V </dev/null >&5) 2>&5
6209
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6210
(exit $ac_status); }
6212
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6213
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
6214
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6215
echo $ECHO_N "(cached) $ECHO_C" >&6
6217
cat >conftest.$ac_ext <<_ACEOF
6220
cat confdefs.h >>conftest.$ac_ext
6221
cat >>conftest.$ac_ext <<_ACEOF
6222
/* end confdefs.h. */
6235
rm -f conftest.$ac_objext
6236
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6237
(eval $ac_compile) 2>conftest.er1
6239
grep -v '^ *+' conftest.er1 >conftest.err
6241
cat conftest.err >&5
6242
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6243
(exit $ac_status); } &&
6244
{ ac_try='test -z "$ac_cxx_werror_flag"
6245
|| test ! -s conftest.err'
6246
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6249
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250
(exit $ac_status); }; } &&
6251
{ ac_try='test -s conftest.$ac_objext'
6252
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6255
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256
(exit $ac_status); }; }; then
6259
echo "$as_me: failed program was:" >&5
6260
sed 's/^/| /' conftest.$ac_ext >&5
6264
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6265
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6268
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6269
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
6270
GXX=`test $ac_compiler_gnu = yes && echo yes`
6271
ac_test_CXXFLAGS=${CXXFLAGS+set}
6272
ac_save_CXXFLAGS=$CXXFLAGS
6274
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6275
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
6276
if test "${ac_cv_prog_cxx_g+set}" = set; then
6277
echo $ECHO_N "(cached) $ECHO_C" >&6
6279
cat >conftest.$ac_ext <<_ACEOF
6282
cat confdefs.h >>conftest.$ac_ext
6283
cat >>conftest.$ac_ext <<_ACEOF
6284
/* end confdefs.h. */
6294
rm -f conftest.$ac_objext
6295
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6296
(eval $ac_compile) 2>conftest.er1
6298
grep -v '^ *+' conftest.er1 >conftest.err
6300
cat conftest.err >&5
6301
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6302
(exit $ac_status); } &&
6303
{ ac_try='test -z "$ac_cxx_werror_flag"
6304
|| test ! -s conftest.err'
6305
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6308
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6309
(exit $ac_status); }; } &&
6310
{ ac_try='test -s conftest.$ac_objext'
6311
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6314
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6315
(exit $ac_status); }; }; then
6316
ac_cv_prog_cxx_g=yes
6318
echo "$as_me: failed program was:" >&5
6319
sed 's/^/| /' conftest.$ac_ext >&5
6323
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6325
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6326
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
6327
if test "$ac_test_CXXFLAGS" = set; then
6328
CXXFLAGS=$ac_save_CXXFLAGS
6329
elif test $ac_cv_prog_cxx_g = yes; then
6330
if test "$GXX" = yes; then
6336
if test "$GXX" = yes; then
6342
for ac_declaration in \
6344
'extern "C" void std::exit (int) throw (); using std::exit;' \
6345
'extern "C" void std::exit (int); using std::exit;' \
6346
'extern "C" void exit (int) throw ();' \
6347
'extern "C" void exit (int);' \
6350
cat >conftest.$ac_ext <<_ACEOF
6353
cat confdefs.h >>conftest.$ac_ext
6354
cat >>conftest.$ac_ext <<_ACEOF
6355
/* end confdefs.h. */
6366
rm -f conftest.$ac_objext
6367
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6368
(eval $ac_compile) 2>conftest.er1
6370
grep -v '^ *+' conftest.er1 >conftest.err
6372
cat conftest.err >&5
6373
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6374
(exit $ac_status); } &&
6375
{ ac_try='test -z "$ac_cxx_werror_flag"
6376
|| test ! -s conftest.err'
6377
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6380
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6381
(exit $ac_status); }; } &&
6382
{ ac_try='test -s conftest.$ac_objext'
6383
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6386
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6387
(exit $ac_status); }; }; then
6390
echo "$as_me: failed program was:" >&5
6391
sed 's/^/| /' conftest.$ac_ext >&5
6395
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6396
cat >conftest.$ac_ext <<_ACEOF
6399
cat confdefs.h >>conftest.$ac_ext
6400
cat >>conftest.$ac_ext <<_ACEOF
6401
/* end confdefs.h. */
6411
rm -f conftest.$ac_objext
6412
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6413
(eval $ac_compile) 2>conftest.er1
6415
grep -v '^ *+' conftest.er1 >conftest.err
6417
cat conftest.err >&5
6418
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419
(exit $ac_status); } &&
6420
{ ac_try='test -z "$ac_cxx_werror_flag"
6421
|| test ! -s conftest.err'
6422
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6425
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6426
(exit $ac_status); }; } &&
6427
{ ac_try='test -s conftest.$ac_objext'
6428
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6431
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432
(exit $ac_status); }; }; then
6435
echo "$as_me: failed program was:" >&5
6436
sed 's/^/| /' conftest.$ac_ext >&5
6439
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6442
if test -n "$ac_declaration"; then
6443
echo '#ifdef __cplusplus' >>confdefs.h
6444
echo $ac_declaration >>confdefs.h
6445
echo '#endif' >>confdefs.h
6449
ac_cpp='$CXXCPP $CPPFLAGS'
6450
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6451
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6452
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6454
depcc="$CXX" am_compiler_list=
6456
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6457
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6458
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6459
echo $ECHO_N "(cached) $ECHO_C" >&6
6461
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6462
# We make a subdir and do the tests there. Otherwise we can end up
6463
# making bogus files that we don't know about and never remove. For
6464
# instance it was reported that on HP-UX the gcc test will end up
6465
# making a dummy file named `D' -- because `-MD' means `put the output
6468
# Copy depcomp to subdir because otherwise we won't find it if we're
6469
# using a relative directory.
6470
cp "$am_depcomp" conftest.dir
6472
# We will build objects and dependencies in a subdirectory because
6473
# it helps to detect inapplicable dependency modes. For instance
6474
# both Tru64's cc and ICC support -MD to output dependencies as a
6475
# side effect of compilation, but ICC will put the dependencies in
6476
# the current directory while Tru64 will put them in the object
6480
am_cv_CXX_dependencies_compiler_type=none
6481
if test "$am_compiler_list" = ""; then
6482
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6484
for depmode in $am_compiler_list; do
6485
# Setup a source with many dependencies, because some compilers
6486
# like to wrap large dependency lists on column 80 (with \), and
6487
# we should not choose a depcomp mode which is confused by this.
6489
# We need to recreate these files for each test, as the compiler may
6490
# overwrite some of them when testing with obscure command lines.
6491
# This happens at least with the AIX C compiler.
6493
for i in 1 2 3 4 5 6; do
6494
echo '#include "conftst'$i'.h"' >> sub/conftest.c
6495
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6496
# Solaris 8's {/usr,}/bin/sh.
6497
touch sub/conftst$i.h
6499
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6503
# after this tag, mechanisms are not by side-effect, so they'll
6504
# only be used when explicitly requested
6505
if test "x$enable_dependency_tracking" = xyes; then
6513
# We check with `-c' and `-o' for the sake of the "dashmstdout"
6514
# mode. It turns out that the SunPro C++ compiler does not properly
6515
# handle `-M -o', and we need to detect this.
6516
if depmode=$depmode \
6517
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6518
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6519
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6520
>/dev/null 2>conftest.err &&
6521
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6522
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6523
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6524
# icc doesn't choke on unknown options, it will just issue warnings
6525
# (even with -Werror). So we grep stderr for any message
6526
# that says an option was ignored.
6527
if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
6528
am_cv_CXX_dependencies_compiler_type=$depmode
6537
am_cv_CXX_dependencies_compiler_type=none
6541
echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6542
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
6543
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6548
test "x$enable_dependency_tracking" != xno \
6549
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6550
am__fastdepCXX_TRUE=
6551
am__fastdepCXX_FALSE='#'
6553
am__fastdepCXX_TRUE='#'
6554
am__fastdepCXX_FALSE=
6559
ac_cpp='$CXXCPP $CPPFLAGS'
6560
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6561
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6562
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6563
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6564
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6565
if test -z "$CXXCPP"; then
6566
if test "${ac_cv_prog_CXXCPP+set}" = set; then
6567
echo $ECHO_N "(cached) $ECHO_C" >&6
6569
# Double quotes because CXXCPP needs to be expanded
6570
for CXXCPP in "$CXX -E" "/lib/cpp"
6573
for ac_cxx_preproc_warn_flag in '' yes
6575
# Use a header file that comes with gcc, so configuring glibc
6576
# with a fresh cross-compiler works.
6577
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6578
# <limits.h> exists even on freestanding compilers.
6579
# On the NeXT, cc -E runs the code through the compiler's parser,
6580
# not just through cpp. "Syntax error" is here to catch this case.
6581
cat >conftest.$ac_ext <<_ACEOF
6584
cat confdefs.h >>conftest.$ac_ext
6585
cat >>conftest.$ac_ext <<_ACEOF
6586
/* end confdefs.h. */
6588
# include <limits.h>
6590
# include <assert.h>
6594
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6595
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6597
grep -v '^ *+' conftest.er1 >conftest.err
6599
cat conftest.err >&5
6600
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601
(exit $ac_status); } >/dev/null; then
6602
if test -s conftest.err; then
6603
ac_cpp_err=$ac_cxx_preproc_warn_flag
6604
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6611
if test -z "$ac_cpp_err"; then
6614
echo "$as_me: failed program was:" >&5
6615
sed 's/^/| /' conftest.$ac_ext >&5
6617
# Broken: fails on valid input.
6620
rm -f conftest.err conftest.$ac_ext
6622
# OK, works on sane cases. Now check whether non-existent headers
6623
# can be detected and how.
6624
cat >conftest.$ac_ext <<_ACEOF
6627
cat confdefs.h >>conftest.$ac_ext
6628
cat >>conftest.$ac_ext <<_ACEOF
6629
/* end confdefs.h. */
6630
#include <ac_nonexistent.h>
6632
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6633
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6635
grep -v '^ *+' conftest.er1 >conftest.err
6637
cat conftest.err >&5
6638
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6639
(exit $ac_status); } >/dev/null; then
6640
if test -s conftest.err; then
6641
ac_cpp_err=$ac_cxx_preproc_warn_flag
6642
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6649
if test -z "$ac_cpp_err"; then
6650
# Broken: success on invalid input.
6653
echo "$as_me: failed program was:" >&5
6654
sed 's/^/| /' conftest.$ac_ext >&5
6656
# Passes both tests.
6660
rm -f conftest.err conftest.$ac_ext
6663
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6664
rm -f conftest.err conftest.$ac_ext
6665
if $ac_preproc_ok; then
6670
ac_cv_prog_CXXCPP=$CXXCPP
6673
CXXCPP=$ac_cv_prog_CXXCPP
6675
ac_cv_prog_CXXCPP=$CXXCPP
6677
echo "$as_me:$LINENO: result: $CXXCPP" >&5
6678
echo "${ECHO_T}$CXXCPP" >&6
6680
for ac_cxx_preproc_warn_flag in '' yes
6682
# Use a header file that comes with gcc, so configuring glibc
6683
# with a fresh cross-compiler works.
6684
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6685
# <limits.h> exists even on freestanding compilers.
6686
# On the NeXT, cc -E runs the code through the compiler's parser,
6687
# not just through cpp. "Syntax error" is here to catch this case.
6688
cat >conftest.$ac_ext <<_ACEOF
6691
cat confdefs.h >>conftest.$ac_ext
6692
cat >>conftest.$ac_ext <<_ACEOF
6693
/* end confdefs.h. */
6695
# include <limits.h>
6697
# include <assert.h>
6701
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6702
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6704
grep -v '^ *+' conftest.er1 >conftest.err
6706
cat conftest.err >&5
6707
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6708
(exit $ac_status); } >/dev/null; then
6709
if test -s conftest.err; then
6710
ac_cpp_err=$ac_cxx_preproc_warn_flag
6711
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6718
if test -z "$ac_cpp_err"; then
6721
echo "$as_me: failed program was:" >&5
6722
sed 's/^/| /' conftest.$ac_ext >&5
6724
# Broken: fails on valid input.
6727
rm -f conftest.err conftest.$ac_ext
6729
# OK, works on sane cases. Now check whether non-existent headers
6730
# can be detected and how.
6731
cat >conftest.$ac_ext <<_ACEOF
6734
cat confdefs.h >>conftest.$ac_ext
6735
cat >>conftest.$ac_ext <<_ACEOF
6736
/* end confdefs.h. */
6737
#include <ac_nonexistent.h>
6739
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6740
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6742
grep -v '^ *+' conftest.er1 >conftest.err
6744
cat conftest.err >&5
6745
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6746
(exit $ac_status); } >/dev/null; then
6747
if test -s conftest.err; then
6748
ac_cpp_err=$ac_cxx_preproc_warn_flag
6749
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6756
if test -z "$ac_cpp_err"; then
6757
# Broken: success on invalid input.
6760
echo "$as_me: failed program was:" >&5
6761
sed 's/^/| /' conftest.$ac_ext >&5
6763
# Passes both tests.
6767
rm -f conftest.err conftest.$ac_ext
6770
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6771
rm -f conftest.err conftest.$ac_ext
6772
if $ac_preproc_ok; then
6775
{ { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6776
See \`config.log' for more details." >&5
6777
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6778
See \`config.log' for more details." >&2;}
6779
{ (exit 1); exit 1; }; }
6783
ac_cpp='$CXXCPP $CPPFLAGS'
6784
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6785
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6786
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6790
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6791
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6792
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6793
if test -n "$ac_tool_prefix"; then
6794
for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6796
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6797
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6798
echo "$as_me:$LINENO: checking for $ac_word" >&5
6799
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6800
if test "${ac_cv_prog_F77+set}" = set; then
6801
echo $ECHO_N "(cached) $ECHO_C" >&6
6803
if test -n "$F77"; then
6804
ac_cv_prog_F77="$F77" # Let the user override the test.
6806
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6810
test -z "$as_dir" && as_dir=.
6811
for ac_exec_ext in '' $ac_executable_extensions; do
6812
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6813
ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6814
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6823
if test -n "$F77"; then
6824
echo "$as_me:$LINENO: result: $F77" >&5
6825
echo "${ECHO_T}$F77" >&6
6827
echo "$as_me:$LINENO: result: no" >&5
6828
echo "${ECHO_T}no" >&6
6831
test -n "$F77" && break
6834
if test -z "$F77"; then
6836
for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6838
# Extract the first word of "$ac_prog", so it can be a program name with args.
6839
set dummy $ac_prog; ac_word=$2
6840
echo "$as_me:$LINENO: checking for $ac_word" >&5
6841
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6842
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6843
echo $ECHO_N "(cached) $ECHO_C" >&6
6845
if test -n "$ac_ct_F77"; then
6846
ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6848
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6852
test -z "$as_dir" && as_dir=.
6853
for ac_exec_ext in '' $ac_executable_extensions; do
6854
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6855
ac_cv_prog_ac_ct_F77="$ac_prog"
6856
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6864
ac_ct_F77=$ac_cv_prog_ac_ct_F77
6865
if test -n "$ac_ct_F77"; then
6866
echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6867
echo "${ECHO_T}$ac_ct_F77" >&6
6869
echo "$as_me:$LINENO: result: no" >&5
6870
echo "${ECHO_T}no" >&6
6873
test -n "$ac_ct_F77" && break
6880
# Provide some information about the compiler.
6881
echo "$as_me:6881:" \
6882
"checking for Fortran 77 compiler version" >&5
6883
ac_compiler=`set X $ac_compile; echo $2`
6884
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6885
(eval $ac_compiler --version </dev/null >&5) 2>&5
6887
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6888
(exit $ac_status); }
6889
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6890
(eval $ac_compiler -v </dev/null >&5) 2>&5
6892
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6893
(exit $ac_status); }
6894
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6895
(eval $ac_compiler -V </dev/null >&5) 2>&5
6897
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6898
(exit $ac_status); }
6901
# If we don't use `.F' as extension, the preprocessor is not run on the
6902
# input file. (Note that this only needs to work for GNU compilers.)
6905
echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6906
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
6907
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6908
echo $ECHO_N "(cached) $ECHO_C" >&6
6910
cat >conftest.$ac_ext <<_ACEOF
6918
rm -f conftest.$ac_objext
6919
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6920
(eval $ac_compile) 2>conftest.er1
6922
grep -v '^ *+' conftest.er1 >conftest.err
6924
cat conftest.err >&5
6925
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6926
(exit $ac_status); } &&
6927
{ ac_try='test -z "$ac_f77_werror_flag"
6928
|| test ! -s conftest.err'
6929
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6932
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6933
(exit $ac_status); }; } &&
6934
{ ac_try='test -s conftest.$ac_objext'
6935
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6938
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6939
(exit $ac_status); }; }; then
6942
echo "$as_me: failed program was:" >&5
6943
sed 's/^/| /' conftest.$ac_ext >&5
6947
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6948
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6951
echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6952
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
6954
ac_test_FFLAGS=${FFLAGS+set}
6955
ac_save_FFLAGS=$FFLAGS
6957
echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6958
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
6959
if test "${ac_cv_prog_f77_g+set}" = set; then
6960
echo $ECHO_N "(cached) $ECHO_C" >&6
6963
cat >conftest.$ac_ext <<_ACEOF
6968
rm -f conftest.$ac_objext
6969
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6970
(eval $ac_compile) 2>conftest.er1
6972
grep -v '^ *+' conftest.er1 >conftest.err
6974
cat conftest.err >&5
6975
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6976
(exit $ac_status); } &&
6977
{ ac_try='test -z "$ac_f77_werror_flag"
6978
|| test ! -s conftest.err'
6979
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6982
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6983
(exit $ac_status); }; } &&
6984
{ ac_try='test -s conftest.$ac_objext'
6985
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6988
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6989
(exit $ac_status); }; }; then
6990
ac_cv_prog_f77_g=yes
6992
echo "$as_me: failed program was:" >&5
6993
sed 's/^/| /' conftest.$ac_ext >&5
6997
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7000
echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7001
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
7002
if test "$ac_test_FFLAGS" = set; then
7003
FFLAGS=$ac_save_FFLAGS
7004
elif test $ac_cv_prog_f77_g = yes; then
7005
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7011
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7018
G77=`test $ac_compiler_gnu = yes && echo yes`
7020
ac_cpp='$CPP $CPPFLAGS'
7021
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7022
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7023
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7027
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7029
# find the maximum length of command line arguments
7030
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7031
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7032
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7033
echo $ECHO_N "(cached) $ECHO_C" >&6
7040
# On DJGPP, this test can blow up pretty badly due to problems in libc
7041
# (any single argument exceeding 2000 bytes causes a buffer overrun
7042
# during glob expansion). Even if it were fixed, the result of this
7043
# check would be larger than it should be.
7044
lt_cv_sys_max_cmd_len=12288; # 12K is about right
7048
# Under GNU Hurd, this test is not required because there is
7049
# no limit to the length of command line arguments.
7050
# Libtool will interpret -1 as no limit whatsoever
7051
lt_cv_sys_max_cmd_len=-1;
7055
# On Win9x/ME, this test blows up -- it succeeds, but takes
7056
# about 5 minutes as the teststring grows exponentially.
7057
# Worse, since 9x/ME are not pre-emptively multitasking,
7058
# you end up with a "frozen" computer, even though with patience
7059
# the test eventually succeeds (with a max line length of 256k).
7060
# Instead, let's just punt: use the minimum linelength reported by
7061
# all of the supported platforms: 8192 (on NT/2K/XP).
7062
lt_cv_sys_max_cmd_len=8192;
7066
# On AmigaOS with pdksh, this test takes hours, literally.
7067
# So we just punt and use a minimum line length of 8192.
7068
lt_cv_sys_max_cmd_len=8192;
7072
# If test is not a shell built-in, we'll probably end up computing a
7073
# maximum length that is only half of the actual maximum length, but
7075
while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7076
= "XX$teststring") >/dev/null 2>&1 &&
7077
new_result=`expr "X$teststring" : ".*" 2>&1` &&
7078
lt_cv_sys_max_cmd_len=$new_result &&
7079
test $i != 17 # 1/2 MB should be enough
7082
teststring=$teststring$teststring
7085
# Add a significant safety factor because C++ compilers can tack on massive
7086
# amounts of additional arguments before passing them to the linker.
7087
# It appears as though 1/2 is a usable value.
7088
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7094
if test -n $lt_cv_sys_max_cmd_len ; then
7095
echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7096
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7098
echo "$as_me:$LINENO: result: none" >&5
7099
echo "${ECHO_T}none" >&6
7105
# Check for command to grab the raw symbol name followed by C symbol from nm.
7106
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7107
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7108
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7109
echo $ECHO_N "(cached) $ECHO_C" >&6
7112
# These are sane defaults that work on at least a few old systems.
7113
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7115
# Character class describing NM global symbol codes.
7116
symcode='[BCDEGRST]'
7118
# Regexp to match symbols that can be accessed directly from C.
7119
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7121
# Transform the above into a raw symbol and a C symbol.
7122
symxfrm='\1 \2\3 \3'
7124
# Transform an extracted symbol line into a proper C declaration
7125
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7127
# Transform an extracted symbol line into symbol name and symbol address
7128
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
7130
# Define system-specific variables.
7135
cygwin* | mingw* | pw32*)
7136
symcode='[ABCDGISTW]'
7138
hpux*) # Its linker distinguishes data from code symbols
7139
if test "$host_cpu" = ia64; then
7140
symcode='[ABCDEGRST]'
7142
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7143
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
7146
symcode='[BCDEGRST]'
7149
symcode='[BCDEGQRST]'
7159
# Handle CRLF in mingw tool chain
7163
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7167
# If we're using GNU nm, then use its standard symbol codes.
7168
case `$NM -V 2>&1` in
7169
*GNU* | *'with BFD'*)
7170
symcode='[ABCDGIRSTW]' ;;
7173
# Try without a prefix undercore, then with it.
7174
for ac_symprfx in "" "_"; do
7176
# Write the raw and C identifiers.
7177
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7179
# Check to see that the pipe works correctly.
7183
cat > conftest.$ac_ext <<EOF
7188
void nm_test_func(){}
7192
int main(){nm_test_var='a';nm_test_func();return(0);}
7195
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7196
(eval $ac_compile) 2>&5
7198
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7199
(exit $ac_status); }; then
7200
# Now try to grab the symbols.
7202
if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7203
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7205
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7206
(exit $ac_status); } && test -s "$nlist"; then
7207
# Try sorting and uniquifying the output.
7208
if sort "$nlist" | uniq > "$nlist"T; then
7209
mv -f "$nlist"T "$nlist"
7214
# Make sure that we snagged all the symbols we need.
7215
if grep ' nm_test_var$' "$nlist" >/dev/null; then
7216
if grep ' nm_test_func$' "$nlist" >/dev/null; then
7217
cat <<EOF > conftest.$ac_ext
7223
# Now generate the symbol file.
7224
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7226
cat <<EOF >> conftest.$ac_ext
7227
#if defined (__STDC__) && __STDC__
7228
# define lt_ptr_t void *
7230
# define lt_ptr_t char *
7234
/* The mapping between symbol names and symbols. */
7239
lt_preloaded_symbols[] =
7242
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7243
cat <<\EOF >> conftest.$ac_ext
7251
# Now try linking the two files.
7252
mv -f conftest.$ac_objext conftstm.$ac_objext
7253
lt_save_LIBS="$LIBS"
7254
lt_save_CFLAGS="$CFLAGS"
7255
LIBS="conftstm.$ac_objext"
7256
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7257
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7258
(eval $ac_link) 2>&5
7260
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7261
(exit $ac_status); } && test -s conftest${ac_exeext}; then
7264
LIBS="$lt_save_LIBS"
7265
CFLAGS="$lt_save_CFLAGS"
7267
echo "cannot find nm_test_func in $nlist" >&5
7270
echo "cannot find nm_test_var in $nlist" >&5
7273
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7276
echo "$progname: failed program was:" >&5
7277
cat conftest.$ac_ext >&5
7279
rm -f conftest* conftst*
7281
# Do not use the global_symbol_pipe unless it works.
7282
if test "$pipe_works" = yes; then
7285
lt_cv_sys_global_symbol_pipe=
7291
if test -z "$lt_cv_sys_global_symbol_pipe"; then
7292
lt_cv_sys_global_symbol_to_cdecl=
7294
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7295
echo "$as_me:$LINENO: result: failed" >&5
7296
echo "${ECHO_T}failed" >&6
7298
echo "$as_me:$LINENO: result: ok" >&5
7299
echo "${ECHO_T}ok" >&6
7302
echo "$as_me:$LINENO: checking for objdir" >&5
7303
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7304
if test "${lt_cv_objdir+set}" = set; then
7305
echo $ECHO_N "(cached) $ECHO_C" >&6
7307
rm -f .libs 2>/dev/null
7308
mkdir .libs 2>/dev/null
7309
if test -d .libs; then
7312
# MS-DOS does not allow filenames that begin with a dot.
7315
rmdir .libs 2>/dev/null
7317
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7318
echo "${ECHO_T}$lt_cv_objdir" >&6
7319
objdir=$lt_cv_objdir
7327
# AIX sometimes has problems with the GCC collect2 program. For some
7328
# reason, if we set the COLLECT_NAMES environment variable, the problems
7329
# vanish in a puff of smoke.
7330
if test "X${COLLECT_NAMES+set}" != Xset; then
7332
export COLLECT_NAMES
7337
# Sed substitution that helps us do robust quoting. It backslashifies
7338
# metacharacters that are still active within double-quoted strings.
7339
Xsed='sed -e s/^X//'
7340
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7342
# Same as above, but do not quote variable references.
7343
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7345
# Sed substitution to delay expansion of an escaped shell variable in a
7346
# double_quote_subst'ed string.
7347
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7349
# Sed substitution to avoid accidental globbing in evaled expressions
7350
no_glob_subst='s/\*/\\\*/g'
7356
default_ofile=libtool
7357
can_build_shared=yes
7359
# All known linkers require a `.a' archive for static linking (except M$VC,
7360
# which needs '.lib').
7362
ltmain="$ac_aux_dir/ltmain.sh"
7363
ofile="$default_ofile"
7364
with_gnu_ld="$lt_cv_prog_gnu_ld"
7366
if test -n "$ac_tool_prefix"; then
7367
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7368
set dummy ${ac_tool_prefix}ar; ac_word=$2
7369
echo "$as_me:$LINENO: checking for $ac_word" >&5
7370
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7371
if test "${ac_cv_prog_AR+set}" = set; then
7372
echo $ECHO_N "(cached) $ECHO_C" >&6
7374
if test -n "$AR"; then
7375
ac_cv_prog_AR="$AR" # Let the user override the test.
7377
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7381
test -z "$as_dir" && as_dir=.
7382
for ac_exec_ext in '' $ac_executable_extensions; do
7383
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7384
ac_cv_prog_AR="${ac_tool_prefix}ar"
7385
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7394
if test -n "$AR"; then
7395
echo "$as_me:$LINENO: result: $AR" >&5
7396
echo "${ECHO_T}$AR" >&6
7398
echo "$as_me:$LINENO: result: no" >&5
7399
echo "${ECHO_T}no" >&6
7403
if test -z "$ac_cv_prog_AR"; then
7405
# Extract the first word of "ar", so it can be a program name with args.
7406
set dummy ar; ac_word=$2
7407
echo "$as_me:$LINENO: checking for $ac_word" >&5
7408
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7409
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7410
echo $ECHO_N "(cached) $ECHO_C" >&6
7412
if test -n "$ac_ct_AR"; then
7413
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7415
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7419
test -z "$as_dir" && as_dir=.
7420
for ac_exec_ext in '' $ac_executable_extensions; do
7421
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7422
ac_cv_prog_ac_ct_AR="ar"
7423
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7429
test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7432
ac_ct_AR=$ac_cv_prog_ac_ct_AR
7433
if test -n "$ac_ct_AR"; then
7434
echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7435
echo "${ECHO_T}$ac_ct_AR" >&6
7437
echo "$as_me:$LINENO: result: no" >&5
7438
echo "${ECHO_T}no" >&6
7446
if test -n "$ac_tool_prefix"; then
7447
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7448
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7449
echo "$as_me:$LINENO: checking for $ac_word" >&5
7450
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7451
if test "${ac_cv_prog_RANLIB+set}" = set; then
7452
echo $ECHO_N "(cached) $ECHO_C" >&6
7454
if test -n "$RANLIB"; then
7455
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7457
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7461
test -z "$as_dir" && as_dir=.
7462
for ac_exec_ext in '' $ac_executable_extensions; do
7463
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7464
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7465
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7473
RANLIB=$ac_cv_prog_RANLIB
7474
if test -n "$RANLIB"; then
7475
echo "$as_me:$LINENO: result: $RANLIB" >&5
7476
echo "${ECHO_T}$RANLIB" >&6
7478
echo "$as_me:$LINENO: result: no" >&5
7479
echo "${ECHO_T}no" >&6
7483
if test -z "$ac_cv_prog_RANLIB"; then
7484
ac_ct_RANLIB=$RANLIB
7485
# Extract the first word of "ranlib", so it can be a program name with args.
7486
set dummy ranlib; ac_word=$2
7487
echo "$as_me:$LINENO: checking for $ac_word" >&5
7488
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7489
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7490
echo $ECHO_N "(cached) $ECHO_C" >&6
7492
if test -n "$ac_ct_RANLIB"; then
7493
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7495
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7499
test -z "$as_dir" && as_dir=.
7500
for ac_exec_ext in '' $ac_executable_extensions; do
7501
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7502
ac_cv_prog_ac_ct_RANLIB="ranlib"
7503
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7509
test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7512
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7513
if test -n "$ac_ct_RANLIB"; then
7514
echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7515
echo "${ECHO_T}$ac_ct_RANLIB" >&6
7517
echo "$as_me:$LINENO: result: no" >&5
7518
echo "${ECHO_T}no" >&6
7521
RANLIB=$ac_ct_RANLIB
7523
RANLIB="$ac_cv_prog_RANLIB"
7526
if test -n "$ac_tool_prefix"; then
7527
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7528
set dummy ${ac_tool_prefix}strip; ac_word=$2
7529
echo "$as_me:$LINENO: checking for $ac_word" >&5
7530
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7531
if test "${ac_cv_prog_STRIP+set}" = set; then
7532
echo $ECHO_N "(cached) $ECHO_C" >&6
7534
if test -n "$STRIP"; then
7535
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7537
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7541
test -z "$as_dir" && as_dir=.
7542
for ac_exec_ext in '' $ac_executable_extensions; do
7543
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7544
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7545
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7553
STRIP=$ac_cv_prog_STRIP
7554
if test -n "$STRIP"; then
7555
echo "$as_me:$LINENO: result: $STRIP" >&5
7556
echo "${ECHO_T}$STRIP" >&6
7558
echo "$as_me:$LINENO: result: no" >&5
7559
echo "${ECHO_T}no" >&6
7563
if test -z "$ac_cv_prog_STRIP"; then
7565
# Extract the first word of "strip", so it can be a program name with args.
7566
set dummy strip; ac_word=$2
7567
echo "$as_me:$LINENO: checking for $ac_word" >&5
7568
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7569
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7570
echo $ECHO_N "(cached) $ECHO_C" >&6
7572
if test -n "$ac_ct_STRIP"; then
7573
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7575
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7579
test -z "$as_dir" && as_dir=.
7580
for ac_exec_ext in '' $ac_executable_extensions; do
7581
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7582
ac_cv_prog_ac_ct_STRIP="strip"
7583
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7589
test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7592
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7593
if test -n "$ac_ct_STRIP"; then
7594
echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7595
echo "${ECHO_T}$ac_ct_STRIP" >&6
7597
echo "$as_me:$LINENO: result: no" >&5
7598
echo "${ECHO_T}no" >&6
7603
STRIP="$ac_cv_prog_STRIP"
7608
old_CFLAGS="$CFLAGS"
7610
# Set sane defaults for various variables
7611
test -z "$AR" && AR=ar
7612
test -z "$AR_FLAGS" && AR_FLAGS=cru
7613
test -z "$AS" && AS=as
7614
test -z "$CC" && CC=cc
7615
test -z "$LTCC" && LTCC=$CC
7616
test -z "$DLLTOOL" && DLLTOOL=dlltool
7617
test -z "$LD" && LD=ld
7618
test -z "$LN_S" && LN_S="ln -s"
7619
test -z "$MAGIC_CMD" && MAGIC_CMD=file
7620
test -z "$NM" && NM=nm
7621
test -z "$SED" && SED=sed
7622
test -z "$OBJDUMP" && OBJDUMP=objdump
7623
test -z "$RANLIB" && RANLIB=:
7624
test -z "$STRIP" && STRIP=:
7625
test -z "$ac_objext" && ac_objext=o
7627
# Determine commands to create old-style static archives.
7628
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7629
old_postinstall_cmds='chmod 644 $oldlib'
7630
old_postuninstall_cmds=
7632
if test -n "$RANLIB"; then
7635
old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7638
old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7641
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7644
# Only perform the check for file, if the check method requires it
7645
case $deplibs_check_method in
7647
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7648
echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7649
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7650
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7651
echo $ECHO_N "(cached) $ECHO_C" >&6
7655
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7658
lt_save_MAGIC_CMD="$MAGIC_CMD"
7659
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7660
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7661
for ac_dir in $ac_dummy; do
7663
test -z "$ac_dir" && ac_dir=.
7664
if test -f $ac_dir/${ac_tool_prefix}file; then
7665
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7666
if test -n "$file_magic_test_file"; then
7667
case $deplibs_check_method in
7669
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7670
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7671
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7672
$EGREP "$file_magic_regex" > /dev/null; then
7677
*** Warning: the command libtool uses to detect shared libraries,
7678
*** $file_magic_cmd, produces output that libtool cannot recognize.
7679
*** The result is that libtool may fail to recognize shared libraries
7680
*** as such. This will affect the creation of libtool libraries that
7681
*** depend on shared libraries, but programs linked with such libtool
7682
*** libraries will work regardless of this problem. Nevertheless, you
7683
*** may want to report the problem to your system manager and/or to
7684
*** bug-libtool@gnu.org
7694
MAGIC_CMD="$lt_save_MAGIC_CMD"
7699
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7700
if test -n "$MAGIC_CMD"; then
7701
echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7702
echo "${ECHO_T}$MAGIC_CMD" >&6
7704
echo "$as_me:$LINENO: result: no" >&5
7705
echo "${ECHO_T}no" >&6
7708
if test -z "$lt_cv_path_MAGIC_CMD"; then
7709
if test -n "$ac_tool_prefix"; then
7710
echo "$as_me:$LINENO: checking for file" >&5
7711
echo $ECHO_N "checking for file... $ECHO_C" >&6
7712
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7713
echo $ECHO_N "(cached) $ECHO_C" >&6
7717
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7720
lt_save_MAGIC_CMD="$MAGIC_CMD"
7721
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7722
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7723
for ac_dir in $ac_dummy; do
7725
test -z "$ac_dir" && ac_dir=.
7726
if test -f $ac_dir/file; then
7727
lt_cv_path_MAGIC_CMD="$ac_dir/file"
7728
if test -n "$file_magic_test_file"; then
7729
case $deplibs_check_method in
7731
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7732
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7733
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7734
$EGREP "$file_magic_regex" > /dev/null; then
7739
*** Warning: the command libtool uses to detect shared libraries,
7740
*** $file_magic_cmd, produces output that libtool cannot recognize.
7741
*** The result is that libtool may fail to recognize shared libraries
7742
*** as such. This will affect the creation of libtool libraries that
7743
*** depend on shared libraries, but programs linked with such libtool
7744
*** libraries will work regardless of this problem. Nevertheless, you
7745
*** may want to report the problem to your system manager and/or to
7746
*** bug-libtool@gnu.org
7756
MAGIC_CMD="$lt_save_MAGIC_CMD"
7761
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7762
if test -n "$MAGIC_CMD"; then
7763
echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7764
echo "${ECHO_T}$MAGIC_CMD" >&6
7766
echo "$as_me:$LINENO: result: no" >&5
7767
echo "${ECHO_T}no" >&6
7780
enable_win32_dll=yes
7782
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7783
if test "${enable_libtool_lock+set}" = set; then
7784
enableval="$enable_libtool_lock"
7787
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7790
# Check whether --with-pic or --without-pic was given.
7791
if test "${with_pic+set}" = set; then
7797
test -z "$pic_mode" && pic_mode=default
7799
# Use C for the default configuration in the libtool script
7803
ac_cpp='$CPP $CPPFLAGS'
7804
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7805
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7806
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7809
# Source file extension for C test sources.
7812
# Object file extension for compiled C test sources.
7816
# Code to be used in simple compile tests
7817
lt_simple_compile_test_code="int some_variable = 0;\n"
7819
# Code to be used in simple link tests
7820
lt_simple_link_test_code='int main(){return(0);}\n'
7823
# If no C compiler was specified, use CC.
7826
# Allow CC to be a program name with arguments.
7831
# Check for any special shared library compilation flags.
7834
if test "$GCC" = no; then
7837
lt_prog_cc_shlib='-belf'
7841
if test -n "$lt_prog_cc_shlib"; then
7842
{ echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7843
echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7844
if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
7846
{ echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7847
echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7848
lt_cv_prog_cc_can_build_shared=no
7854
# Check to make sure the static flag actually works.
7856
echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7857
echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
7858
if test "${lt_prog_compiler_static_works+set}" = set; then
7859
echo $ECHO_N "(cached) $ECHO_C" >&6
7861
lt_prog_compiler_static_works=no
7862
save_LDFLAGS="$LDFLAGS"
7863
LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7864
printf "$lt_simple_link_test_code" > conftest.$ac_ext
7865
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7866
# The compiler can only warn and ignore the option if not recognized
7867
# So say no if there are warnings
7868
if test -s conftest.err; then
7869
# Append any errors to the config.log.
7870
cat conftest.err 1>&5
7872
lt_prog_compiler_static_works=yes
7876
LDFLAGS="$save_LDFLAGS"
7879
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7880
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7882
if test x"$lt_prog_compiler_static_works" = xyes; then
7885
lt_prog_compiler_static=
7891
lt_prog_compiler_no_builtin_flag=
7893
if test "$GCC" = yes; then
7894
lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7897
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7898
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7899
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7900
echo $ECHO_N "(cached) $ECHO_C" >&6
7902
lt_cv_prog_compiler_rtti_exceptions=no
7903
ac_outfile=conftest.$ac_objext
7904
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7905
lt_compiler_flag="-fno-rtti -fno-exceptions"
7906
# Insert the option either (1) after the last *FLAGS variable, or
7907
# (2) before a word containing "conftest.", or (3) at the end.
7908
# Note that $ac_compile itself does not contain backslashes and begins
7909
# with a dollar sign (not a hyphen), so the echo should work correctly.
7910
# The option is referenced via a variable to avoid confusing sed.
7911
lt_compile=`echo "$ac_compile" | $SED \
7912
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7913
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7914
-e 's:$: $lt_compiler_flag:'`
7915
(eval echo "\"\$as_me:7915: $lt_compile\"" >&5)
7916
(eval "$lt_compile" 2>conftest.err)
7918
cat conftest.err >&5
7919
echo "$as_me:7919: \$? = $ac_status" >&5
7920
if (exit $ac_status) && test -s "$ac_outfile"; then
7921
# The compiler can only warn and ignore the option if not recognized
7922
# So say no if there are warnings
7923
if test ! -s conftest.err; then
7924
lt_cv_prog_compiler_rtti_exceptions=yes
7930
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7931
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7933
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7934
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7941
lt_prog_compiler_wl=
7942
lt_prog_compiler_pic=
7943
lt_prog_compiler_static=
7945
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7946
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7948
if test "$GCC" = yes; then
7949
lt_prog_compiler_wl='-Wl,'
7950
lt_prog_compiler_static='-static'
7954
# All AIX code is PIC.
7955
if test "$host_cpu" = ia64; then
7956
# AIX 5 now supports IA64 processor
7957
lt_prog_compiler_static='-Bstatic'
7962
# FIXME: we need at least 68020 code to build shared libraries, but
7963
# adding the `-m68020' flag to GCC prevents building anything better,
7965
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7968
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7969
# PIC is the default for these OSes.
7972
mingw* | pw32* | os2*)
7973
# This hack is so that the source file can tell whether it is being
7974
# built for inclusion in a dll (and should export symbols for example).
7975
lt_prog_compiler_pic='-DDLL_EXPORT'
7978
darwin* | rhapsody*)
7979
# PIC is the default on this platform
7980
# Common symbols not allowed in MH_DYLIB files
7981
lt_prog_compiler_pic='-fno-common'
7985
# Just because we use GCC doesn't mean we suddenly get shared libraries
7986
# on systems that don't support them.
7987
lt_prog_compiler_can_build_shared=no
7992
if test -d /usr/nec; then
7993
lt_prog_compiler_pic=-Kconform_pic
7998
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8005
lt_prog_compiler_pic='-fPIC'
8011
lt_prog_compiler_pic='-fPIC'
8015
# PORTME Check for flag to pass linker flags through the system compiler.
8018
lt_prog_compiler_wl='-Wl,'
8019
if test "$host_cpu" = ia64; then
8020
# AIX 5 now supports IA64 processor
8021
lt_prog_compiler_static='-Bstatic'
8023
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8027
mingw* | pw32* | os2*)
8028
# This hack is so that the source file can tell whether it is being
8029
# built for inclusion in a dll (and should export symbols for example).
8030
lt_prog_compiler_pic='-DDLL_EXPORT'
8033
hpux9* | hpux10* | hpux11*)
8034
lt_prog_compiler_wl='-Wl,'
8035
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8042
lt_prog_compiler_pic='+Z'
8045
# Is there a better lt_prog_compiler_static that works with the bundled CC?
8046
lt_prog_compiler_static='${wl}-a ${wl}archive'
8049
irix5* | irix6* | nonstopux*)
8050
lt_prog_compiler_wl='-Wl,'
8051
# PIC (with -KPIC) is the default.
8052
lt_prog_compiler_static='-non_shared'
8056
lt_prog_compiler_pic='-KPIC'
8057
lt_prog_compiler_static='-Bstatic'
8063
lt_prog_compiler_wl='-Wl,'
8064
lt_prog_compiler_pic='-KPIC'
8065
lt_prog_compiler_static='-static'
8068
lt_prog_compiler_wl='-Wl,'
8069
# All Alpha code is PIC.
8070
lt_prog_compiler_static='-non_shared'
8075
osf3* | osf4* | osf5*)
8076
lt_prog_compiler_wl='-Wl,'
8077
# All OSF/1 code is PIC.
8078
lt_prog_compiler_static='-non_shared'
8082
lt_prog_compiler_pic='-Kpic'
8083
lt_prog_compiler_static='-dn'
8087
lt_prog_compiler_wl='-Wl,'
8088
lt_prog_compiler_pic='-KPIC'
8089
lt_prog_compiler_static='-Bstatic'
8093
lt_prog_compiler_wl='-Qoption ld '
8094
lt_prog_compiler_pic='-PIC'
8095
lt_prog_compiler_static='-Bstatic'
8098
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8099
lt_prog_compiler_wl='-Wl,'
8100
lt_prog_compiler_pic='-KPIC'
8101
lt_prog_compiler_static='-Bstatic'
8105
if test -d /usr/nec ;then
8106
lt_prog_compiler_pic='-Kconform_pic'
8107
lt_prog_compiler_static='-Bstatic'
8112
lt_prog_compiler_pic='-pic'
8113
lt_prog_compiler_static='-Bstatic'
8117
lt_prog_compiler_can_build_shared=no
8122
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8123
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8126
# Check to make sure the PIC flag actually works.
8128
if test -n "$lt_prog_compiler_pic"; then
8130
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8131
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8132
if test "${lt_prog_compiler_pic_works+set}" = set; then
8133
echo $ECHO_N "(cached) $ECHO_C" >&6
8135
lt_prog_compiler_pic_works=no
8136
ac_outfile=conftest.$ac_objext
8137
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8138
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8139
# Insert the option either (1) after the last *FLAGS variable, or
8140
# (2) before a word containing "conftest.", or (3) at the end.
8141
# Note that $ac_compile itself does not contain backslashes and begins
8142
# with a dollar sign (not a hyphen), so the echo should work correctly.
8143
# The option is referenced via a variable to avoid confusing sed.
8144
lt_compile=`echo "$ac_compile" | $SED \
8145
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8146
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8147
-e 's:$: $lt_compiler_flag:'`
8148
(eval echo "\"\$as_me:8148: $lt_compile\"" >&5)
8149
(eval "$lt_compile" 2>conftest.err)
8151
cat conftest.err >&5
8152
echo "$as_me:8152: \$? = $ac_status" >&5
8153
if (exit $ac_status) && test -s "$ac_outfile"; then
8154
# The compiler can only warn and ignore the option if not recognized
8155
# So say no if there are warnings
8156
if test ! -s conftest.err; then
8157
lt_prog_compiler_pic_works=yes
8163
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8164
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8166
if test x"$lt_prog_compiler_pic_works" = xyes; then
8167
case $lt_prog_compiler_pic in
8169
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8172
lt_prog_compiler_pic=
8173
lt_prog_compiler_can_build_shared=no
8178
# For platforms which do not support PIC, -DPIC is meaningless:
8180
lt_prog_compiler_pic=
8183
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8187
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8188
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8189
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8190
echo $ECHO_N "(cached) $ECHO_C" >&6
8192
lt_cv_prog_compiler_c_o=no
8193
$rm -r conftest 2>/dev/null
8197
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8199
lt_compiler_flag="-o out/conftest2.$ac_objext"
8200
# Insert the option either (1) after the last *FLAGS variable, or
8201
# (2) before a word containing "conftest.", or (3) at the end.
8202
# Note that $ac_compile itself does not contain backslashes and begins
8203
# with a dollar sign (not a hyphen), so the echo should work correctly.
8204
lt_compile=`echo "$ac_compile" | $SED \
8205
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8206
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8207
-e 's:$: $lt_compiler_flag:'`
8208
(eval echo "\"\$as_me:8208: $lt_compile\"" >&5)
8209
(eval "$lt_compile" 2>out/conftest.err)
8211
cat out/conftest.err >&5
8212
echo "$as_me:8212: \$? = $ac_status" >&5
8213
if (exit $ac_status) && test -s out/conftest2.$ac_objext
8215
# The compiler can only warn and ignore the option if not recognized
8216
# So say no if there are warnings
8217
if test ! -s out/conftest.err; then
8218
lt_cv_prog_compiler_c_o=yes
8223
# SGI C++ compiler will create directory out/ii_files/ for
8224
# template instantiation
8225
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8226
$rm out/* && rmdir out
8232
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8233
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8236
hard_links="nottested"
8237
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8238
# do not overwrite the value of need_locks provided by the user
8239
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8240
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8243
ln conftest.a conftest.b 2>/dev/null && hard_links=no
8245
ln conftest.a conftest.b 2>&5 || hard_links=no
8246
ln conftest.a conftest.b 2>/dev/null && hard_links=no
8247
echo "$as_me:$LINENO: result: $hard_links" >&5
8248
echo "${ECHO_T}$hard_links" >&6
8249
if test "$hard_links" = no; then
8250
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8251
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8258
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8259
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8262
allow_undefined_flag=
8263
enable_shared_with_static_runtimes=no
8265
archive_expsym_cmds=
8266
old_archive_From_new_cmds=
8267
old_archive_from_expsyms_cmds=
8268
export_dynamic_flag_spec=
8269
whole_archive_flag_spec=
8270
thread_safe_flag_spec=
8271
hardcode_libdir_flag_spec=
8272
hardcode_libdir_flag_spec_ld=
8273
hardcode_libdir_separator=
8276
hardcode_shlibpath_var=unsupported
8277
link_all_deplibs=unknown
8278
hardcode_automatic=no
8281
always_export_symbols=no
8282
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8283
# include_expsyms should be a list of space-separated symbols to be *always*
8284
# included in the symbol list
8286
# exclude_expsyms can be an extended regexp of symbols to exclude
8287
# it will be wrapped by ` (' and `)$', so one must not match beginning or
8288
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8289
# as well as any symbol that contains `d'.
8290
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8291
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8292
# platforms (ab)use it in PIC code, but their linkers get confused if
8293
# the symbol is explicitly referenced. Since portable code cannot
8294
# rely on this symbol name, it's probably fine to never include it in
8295
# preloaded symbol tables.
8296
extract_expsyms_cmds=
8299
cygwin* | mingw* | pw32*)
8300
# FIXME: the MSVC++ port hasn't been tested in a loooong time
8301
# When not using gcc, we currently assume that we are using
8302
# Microsoft Visual C++.
8303
if test "$GCC" != yes; then
8313
if test "$with_gnu_ld" = yes; then
8314
# If archive_cmds runs LD, not CC, wlarc should be empty
8317
# See if GNU ld supports shared libraries.
8319
aix3* | aix4* | aix5*)
8320
# On AIX/PPC, the GNU linker is very broken
8321
if test "$host_cpu" != ia64; then
8325
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8326
*** to be unable to reliably create shared libraries on AIX.
8327
*** Therefore, libtool is disabling shared libraries support. If you
8328
*** really care for shared libraries, you may want to modify your PATH
8329
*** so that a non-GNU linker is found, and then restart.
8336
archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8337
hardcode_libdir_flag_spec='-L$libdir'
8338
hardcode_minus_L=yes
8340
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8341
# that the semantics of dynamic libraries on AmigaOS, at least up
8342
# to version 4, is to share data among multiple programs linked
8343
# with the same dynamic library. Since this doesn't match the
8344
# behavior of shared libraries on other platforms, we can't use
8350
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8351
allow_undefined_flag=unsupported
8352
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8353
# support --undefined. This deserves some investigation. FIXME
8354
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8360
cygwin* | mingw* | pw32*)
8361
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8362
# as there is no search path for DLLs.
8363
hardcode_libdir_flag_spec='-L$libdir'
8364
allow_undefined_flag=unsupported
8365
always_export_symbols=no
8366
enable_shared_with_static_runtimes=yes
8367
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8369
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8370
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8371
# If the export-symbols file already is a .def file (1st line
8372
# is EXPORTS), use it as is; otherwise, prepend...
8373
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8374
cp $export_symbols $output_objdir/$soname.def;
8376
echo EXPORTS > $output_objdir/$soname.def;
8377
cat $export_symbols >> $output_objdir/$soname.def;
8379
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8386
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8387
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8390
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8391
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8396
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8400
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8401
*** create shared libraries on Solaris systems. Therefore, libtool
8402
*** is disabling shared libraries support. We urge you to upgrade GNU
8403
*** binutils to release 2.9.1 or newer. Another option is to modify
8404
*** your PATH or compiler configuration so that the native linker is
8405
*** used, and then restart.
8408
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8409
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8410
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8417
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8420
hardcode_shlibpath_var=no
8424
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8425
tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8426
archive_cmds="$tmp_archive_cmds"
8427
supports_anon_versioning=no
8428
case `$LD -v 2>/dev/null` in
8429
*\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8430
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8431
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8432
*\ 2.11.*) ;; # other 2.11 versions
8433
*) supports_anon_versioning=yes ;;
8435
if test $supports_anon_versioning = yes; then
8436
archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8437
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8438
$echo "local: *; };" >> $output_objdir/$libname.ver~
8439
$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8441
archive_expsym_cmds="$tmp_archive_cmds"
8449
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8450
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8451
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8458
if test "$ld_shlibs" = yes; then
8459
runpath_var=LD_RUN_PATH
8460
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8461
export_dynamic_flag_spec='${wl}--export-dynamic'
8462
# ancient GNU ld didn't support --whole-archive et. al.
8463
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8464
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8466
whole_archive_flag_spec=
8470
# PORTME fill in a description of your system's linker (not GNU ld)
8473
allow_undefined_flag=unsupported
8474
always_export_symbols=yes
8475
archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
8476
# Note: this linker hardcodes the directories in LIBPATH if there
8477
# are no directories specified by -L.
8478
hardcode_minus_L=yes
8479
if test "$GCC" = yes && test -z "$link_static_flag"; then
8480
# Neither direct hardcoding nor static linking is supported with a
8482
hardcode_direct=unsupported
8487
if test "$host_cpu" = ia64; then
8488
# On IA64, the linker does run time linking by default, so we don't
8489
# have to do anything special.
8490
aix_use_runtimelinking=no
8491
exp_sym_flag='-Bexport'
8494
# If we're using GNU nm, then we don't want the "-C" option.
8495
# -C means demangle to AIX nm, but means don't demangle with GNU nm
8496
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8497
export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8499
export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8501
aix_use_runtimelinking=no
8503
# Test if we are trying to use run time linking or normal
8504
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8505
# need to do runtime linking.
8506
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8507
for ld_flag in $LDFLAGS; do
8508
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8509
aix_use_runtimelinking=yes
8515
exp_sym_flag='-bexport'
8516
no_entry_flag='-bnoentry'
8519
# When large executables or shared objects are built, AIX ld can
8520
# have problems creating the table of contents. If linking a library
8521
# or program results in "error TOC overflow" add -mminimal-toc to
8522
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8523
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8527
hardcode_libdir_separator=':'
8528
link_all_deplibs=yes
8530
if test "$GCC" = yes; then
8531
case $host_os in aix4.012|aix4.012.*)
8532
# We only want to do this on AIX 4.2 and lower, the check
8533
# below for broken collect2 doesn't work under 4.3+
8534
collect2name=`${CC} -print-prog-name=collect2`
8535
if test -f "$collect2name" && \
8536
strings "$collect2name" | grep resolve_lib_name >/dev/null
8538
# We have reworked collect2
8541
# We have old collect2
8542
hardcode_direct=unsupported
8543
# It fails to find uninstalled libraries when the uninstalled
8544
# path is not listed in the libpath. Setting hardcode_minus_L
8545
# to unsupported forces relinking
8546
hardcode_minus_L=yes
8547
hardcode_libdir_flag_spec='-L$libdir'
8548
hardcode_libdir_separator=
8551
shared_flag='-shared'
8554
if test "$host_cpu" = ia64; then
8555
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8556
# chokes on -Wl,-G. The following line is correct:
8559
if test "$aix_use_runtimelinking" = yes; then
8560
shared_flag='${wl}-G'
8562
shared_flag='${wl}-bM:SRE'
8567
# It seems that -bexpall does not export symbols beginning with
8568
# underscore (_), so it is better to generate a list of symbols to export.
8569
always_export_symbols=yes
8570
if test "$aix_use_runtimelinking" = yes; then
8571
# Warning - without using the other runtime loading flags (-brtl),
8572
# -berok will link without error, but may produce a broken library.
8573
allow_undefined_flag='-berok'
8574
# Determine the default libpath from the value encoded in an empty executable.
8575
cat >conftest.$ac_ext <<_ACEOF
8578
cat confdefs.h >>conftest.$ac_ext
8579
cat >>conftest.$ac_ext <<_ACEOF
8580
/* end confdefs.h. */
8590
rm -f conftest.$ac_objext conftest$ac_exeext
8591
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8592
(eval $ac_link) 2>conftest.er1
8594
grep -v '^ *+' conftest.er1 >conftest.err
8596
cat conftest.err >&5
8597
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8598
(exit $ac_status); } &&
8599
{ ac_try='test -z "$ac_c_werror_flag"
8600
|| test ! -s conftest.err'
8601
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8604
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8605
(exit $ac_status); }; } &&
8606
{ ac_try='test -s conftest$ac_exeext'
8607
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8610
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8611
(exit $ac_status); }; }; then
8613
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8615
# Check for a 64-bit object if we didn't find anything.
8616
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8619
echo "$as_me: failed program was:" >&5
8620
sed 's/^/| /' conftest.$ac_ext >&5
8623
rm -f conftest.err conftest.$ac_objext \
8624
conftest$ac_exeext conftest.$ac_ext
8625
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8627
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8628
archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8630
if test "$host_cpu" = ia64; then
8631
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8632
allow_undefined_flag="-z nodefs"
8633
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
8635
# Determine the default libpath from the value encoded in an empty executable.
8636
cat >conftest.$ac_ext <<_ACEOF
8639
cat confdefs.h >>conftest.$ac_ext
8640
cat >>conftest.$ac_ext <<_ACEOF
8641
/* end confdefs.h. */
8651
rm -f conftest.$ac_objext conftest$ac_exeext
8652
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8653
(eval $ac_link) 2>conftest.er1
8655
grep -v '^ *+' conftest.er1 >conftest.err
8657
cat conftest.err >&5
8658
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8659
(exit $ac_status); } &&
8660
{ ac_try='test -z "$ac_c_werror_flag"
8661
|| test ! -s conftest.err'
8662
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8665
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8666
(exit $ac_status); }; } &&
8667
{ ac_try='test -s conftest$ac_exeext'
8668
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8671
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8672
(exit $ac_status); }; }; then
8674
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8676
# Check for a 64-bit object if we didn't find anything.
8677
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8680
echo "$as_me: failed program was:" >&5
8681
sed 's/^/| /' conftest.$ac_ext >&5
8684
rm -f conftest.err conftest.$ac_objext \
8685
conftest$ac_exeext conftest.$ac_ext
8686
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8688
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8689
# Warning - without using the other run time loading flags,
8690
# -berok will link without error, but may produce a broken library.
8691
no_undefined_flag=' ${wl}-bernotok'
8692
allow_undefined_flag=' ${wl}-berok'
8693
# -bexpall does not export symbols beginning with underscore (_)
8694
always_export_symbols=yes
8695
# Exported symbols can be pulled into shared objects from archives
8696
whole_archive_flag_spec=' '
8697
archive_cmds_need_lc=yes
8698
# This is similar to how AIX traditionally builds it's shared libraries.
8699
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8705
archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8706
hardcode_libdir_flag_spec='-L$libdir'
8707
hardcode_minus_L=yes
8708
# see comment about different semantics on the GNU ld section
8713
export_dynamic_flag_spec=-rdynamic
8716
cygwin* | mingw* | pw32*)
8717
# When not using gcc, we currently assume that we are using
8718
# Microsoft Visual C++.
8719
# hardcode_libdir_flag_spec is actually meaningless, as there is
8720
# no search path for DLLs.
8721
hardcode_libdir_flag_spec=' '
8722
allow_undefined_flag=unsupported
8723
# Tell ltmain to make .lib files, not .a files.
8725
# Tell ltmain to make .dll files, not .so files.
8727
# FIXME: Setting linknames here is a bad hack.
8728
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8729
# The linker will automatically build a .lib file if we build a DLL.
8730
old_archive_From_new_cmds='true'
8731
# FIXME: Should let the user specify the lib program.
8732
old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8733
fix_srcfile_path='`cygpath -w "$srcfile"`'
8734
enable_shared_with_static_runtimes=yes
8737
darwin* | rhapsody*)
8738
if test "$GXX" = yes ; then
8739
archive_cmds_need_lc=no
8741
rhapsody* | darwin1.[012])
8742
allow_undefined_flag='-undefined suppress'
8745
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8746
allow_undefined_flag='-flat_namespace -undefined suppress'
8748
case ${MACOSX_DEPLOYMENT_TARGET} in
8750
allow_undefined_flag='-flat_namespace -undefined suppress'
8753
allow_undefined_flag='-undefined dynamic_lookup'
8759
lt_int_apple_cc_single_mod=no
8760
output_verbose_link_cmd='echo'
8761
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
8762
lt_int_apple_cc_single_mod=yes
8764
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
8765
archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8767
archive_cmds='$CC -r ${wl}-bind_at_load -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'
8769
module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8770
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8771
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
8772
archive_expsym_cmds='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}'
8774
archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
8776
module_expsym_cmds='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}'
8778
hardcode_automatic=yes
8779
hardcode_shlibpath_var=unsupported
8780
whole_archive_flag_spec='-all_load $convenience'
8781
link_all_deplibs=yes
8788
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8789
hardcode_libdir_flag_spec='-L$libdir'
8790
hardcode_shlibpath_var=no
8797
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8798
# support. Future versions do this automatically, but an explicit c++rt0.o
8799
# does not break anything, and helps significantly (at the cost of a little
8802
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8803
hardcode_libdir_flag_spec='-R$libdir'
8805
hardcode_shlibpath_var=no
8808
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
8810
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8812
hardcode_minus_L=yes
8813
hardcode_shlibpath_var=no
8816
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8817
freebsd* | kfreebsd*-gnu)
8818
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8819
hardcode_libdir_flag_spec='-R$libdir'
8821
hardcode_shlibpath_var=no
8825
if test "$GCC" = yes; then
8826
archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv -f $output_objdir/$soname $lib'
8828
archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv -f $output_objdir/$soname $lib'
8830
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8831
hardcode_libdir_separator=:
8834
# hardcode_minus_L: Not really in the search PATH,
8835
# but as the default location of the library.
8836
hardcode_minus_L=yes
8837
export_dynamic_flag_spec='${wl}-E'
8841
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8844
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8847
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8853
archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8856
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8860
if test "$with_gnu_ld" = no; then
8863
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8864
hardcode_libdir_flag_spec_ld='+b $libdir'
8865
hardcode_libdir_separator=:
8867
hardcode_shlibpath_var=no
8870
hardcode_libdir_flag_spec='-L$libdir'
8872
hardcode_shlibpath_var=no
8874
# hardcode_minus_L: Not really in the search PATH,
8875
# but as the default location of the library.
8876
hardcode_minus_L=yes
8879
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8880
hardcode_libdir_separator=:
8882
export_dynamic_flag_spec='${wl}-E'
8884
# hardcode_minus_L: Not really in the search PATH,
8885
# but as the default location of the library.
8886
hardcode_minus_L=yes
8892
irix5* | irix6* | nonstopux*)
8893
if test "$GCC" = yes; then
8894
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8896
archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8897
hardcode_libdir_flag_spec_ld='-rpath $libdir'
8899
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8900
hardcode_libdir_separator=:
8901
link_all_deplibs=yes
8905
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8906
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8908
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8910
hardcode_libdir_flag_spec='-R$libdir'
8912
hardcode_shlibpath_var=no
8916
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8918
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8919
hardcode_libdir_separator=:
8920
hardcode_shlibpath_var=no
8925
hardcode_shlibpath_var=no
8926
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8927
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8928
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8929
export_dynamic_flag_spec='${wl}-E'
8932
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8933
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8934
hardcode_libdir_flag_spec='-R$libdir'
8937
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8938
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8945
hardcode_libdir_flag_spec='-L$libdir'
8946
hardcode_minus_L=yes
8947
allow_undefined_flag=unsupported
8948
archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
8949
old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8953
if test "$GCC" = yes; then
8954
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8955
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8957
allow_undefined_flag=' -expect_unresolved \*'
8958
archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8960
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8961
hardcode_libdir_separator=:
8964
osf4* | osf5*) # as osf3* with the addition of -msym flag
8965
if test "$GCC" = yes; then
8966
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8967
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8968
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8970
allow_undefined_flag=' -expect_unresolved \*'
8971
archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8972
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8973
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
8975
# Both c and cxx compiler support -rpath directly
8976
hardcode_libdir_flag_spec='-rpath $libdir'
8978
hardcode_libdir_separator=:
8982
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8983
hardcode_shlibpath_var=no
8984
export_dynamic_flag_spec='${wl}-Bexport'
8985
runpath_var=LD_RUN_PATH
8986
hardcode_runpath_var=yes
8990
no_undefined_flag=' -z text'
8991
if test "$GCC" = yes; then
8992
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8993
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8994
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8996
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8997
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8998
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9000
hardcode_libdir_flag_spec='-R$libdir'
9001
hardcode_shlibpath_var=no
9003
solaris2.[0-5] | solaris2.[0-5].*) ;;
9004
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
9005
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9007
link_all_deplibs=yes
9011
if test "x$host_vendor" = xsequent; then
9012
# Use $CC to link under sequent, because it throws in some extra .o
9013
# files that make .init and .fini sections work.
9014
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9016
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9018
hardcode_libdir_flag_spec='-L$libdir'
9020
hardcode_minus_L=yes
9021
hardcode_shlibpath_var=no
9025
case $host_vendor in
9027
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9028
hardcode_direct=yes # is this really true???
9031
## LD is ld it makes a PLAMLIB
9032
## CC just makes a GrossModule.
9033
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9034
reload_cmds='$CC -r -o $output$reload_objs'
9038
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9039
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9042
runpath_var='LD_RUN_PATH'
9043
hardcode_shlibpath_var=no
9047
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9048
hardcode_shlibpath_var=no
9049
export_dynamic_flag_spec='-Bexport'
9053
if test -d /usr/nec; then
9054
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9055
hardcode_shlibpath_var=no
9056
runpath_var=LD_RUN_PATH
9057
hardcode_runpath_var=yes
9063
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9066
hardcode_shlibpath_var=no
9067
hardcode_runpath_var=yes
9068
runpath_var=LD_RUN_PATH
9071
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
9072
no_undefined_flag='${wl}-z ${wl}text'
9073
if test "$GCC" = yes; then
9074
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9076
archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9078
runpath_var='LD_RUN_PATH'
9079
hardcode_shlibpath_var=no
9083
no_undefined_flag=' -z text'
9084
# $CC -shared without GNU ld will not create a library from C++
9085
# object files and a static libstdc++, better avoid it by now
9086
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9087
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9088
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9089
hardcode_libdir_flag_spec=
9090
hardcode_shlibpath_var=no
9091
runpath_var='LD_RUN_PATH'
9095
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9096
hardcode_libdir_flag_spec='-L$libdir'
9097
hardcode_shlibpath_var=no
9106
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9107
echo "${ECHO_T}$ld_shlibs" >&6
9108
test "$ld_shlibs" = no && can_build_shared=no
9110
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9111
if test "$GCC" = yes; then
9112
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9116
# Do we need to explicitly link libc?
9118
case "x$archive_cmds_need_lc" in
9120
# Assume -lc should be added
9121
archive_cmds_need_lc=yes
9123
if test "$enable_shared" = yes && test "$GCC" = yes; then
9124
case $archive_cmds in
9126
# FIXME: we may have to deal with multi-command sequences.
9129
# Test whether the compiler implicitly links with -lc since on some
9130
# systems, -lgcc has to come before -lc. If gcc already passes -lc
9131
# to ld, don't add -lc before -lgcc.
9132
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9133
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9135
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9137
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9138
(eval $ac_compile) 2>&5
9140
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9141
(exit $ac_status); } 2>conftest.err; then
9144
libobjs=conftest.$ac_objext
9146
wl=$lt_prog_compiler_wl
9152
lt_save_allow_undefined_flag=$allow_undefined_flag
9153
allow_undefined_flag=
9154
if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9155
(eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9157
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9158
(exit $ac_status); }
9160
archive_cmds_need_lc=no
9162
archive_cmds_need_lc=yes
9164
allow_undefined_flag=$lt_save_allow_undefined_flag
9166
cat conftest.err 1>&5
9169
echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9170
echo "${ECHO_T}$archive_cmds_need_lc" >&6
9177
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9178
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9180
libname_spec='lib$name'
9188
shlibpath_overrides_runpath=unknown
9190
dynamic_linker="$host_os ld.so"
9191
sys_lib_dlsearch_path_spec="/lib /usr/lib"
9192
if test "$GCC" = yes; then
9193
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9194
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9195
# if the path contains ";" then we assume it to be the separator
9196
# otherwise default to the standard path separator (i.e. ":") - it is
9197
# assumed that no part of a normal pathname contains ";" but that should
9198
# okay in the real world where ";" in dirpaths is itself problematic.
9199
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9201
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9204
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9206
need_lib_prefix=unknown
9207
hardcode_into_libs=no
9209
# when you set need_version to no, make sure it does not cause -set_version
9210
# flags to be left without arguments
9211
need_version=unknown
9216
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9217
shlibpath_var=LIBPATH
9219
# AIX 3 has no versioning support, so we append a major version to the name.
9220
soname_spec='${libname}${release}${shared_ext}$major'
9227
hardcode_into_libs=yes
9228
if test "$host_cpu" = ia64; then
9229
# AIX 5 supports IA64
9230
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9231
shlibpath_var=LD_LIBRARY_PATH
9233
# With GCC up to 2.95.x, collect2 would create an import file
9234
# for dependence libraries. The import file would start with
9235
# the line `#! .'. This would cause the generated library to
9236
# depend on `.', always an invalid library. This was fixed in
9237
# development snapshots of GCC prior to 3.0.
9239
aix4 | aix4.[01] | aix4.[01].*)
9240
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9242
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9249
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9250
# soname into executable. Probably we can add versioning support to
9251
# collect2, so additional links can be useful in future.
9252
if test "$aix_use_runtimelinking" = yes; then
9253
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
9254
# instead of lib<name>.a to let people know that these are not
9255
# typical AIX shared libraries.
9256
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9258
# We preserve .a as extension for shared libraries through AIX4.2
9259
# and later when we are not doing run time linking.
9260
library_names_spec='${libname}${release}.a $libname.a'
9261
soname_spec='${libname}${release}${shared_ext}$major'
9263
shlibpath_var=LIBPATH
9268
library_names_spec='$libname.ixlibrary $libname.a'
9269
# Create ${libname}_ixlibrary.a entries in /sys/libs.
9270
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9274
library_names_spec='${libname}${shared_ext}'
9275
dynamic_linker="$host_os ld.so"
9276
shlibpath_var=LIBRARY_PATH
9282
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9283
soname_spec='${libname}${release}${shared_ext}$major'
9284
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9285
shlibpath_var=LD_LIBRARY_PATH
9286
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9287
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9288
# the default ld.so.conf also contains /usr/contrib/lib and
9289
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9290
# libtool to hard-code these into programs
9293
cygwin* | mingw* | pw32*)
9294
version_type=windows
9299
case $GCC,$host_os in
9300
yes,cygwin* | yes,mingw* | yes,pw32*)
9301
library_names_spec='$libname.dll.a'
9302
# DLL is installed to $(libdir)/../bin by postinstall_cmds
9303
postinstall_cmds='base_file=`basename \${file}`~
9304
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9305
dldir=$destdir/`dirname \$dlpath`~
9306
test -d \$dldir || mkdir -p \$dldir~
9307
$install_prog $dir/$dlname \$dldir/$dlname'
9308
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9309
dlpath=$dir/\$dldll~
9311
shlibpath_overrides_runpath=yes
9315
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
9316
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9317
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9320
# MinGW DLLs use traditional 'lib' prefix
9321
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9322
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9323
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9324
# It is most probably a Windows format PATH printed by
9325
# mingw gcc, but we are running on Cygwin. Gcc prints its search
9326
# path with ; separators, and with drive letters. We can handle the
9327
# drive letters (cygwin fileutils understands them), so leave them,
9328
# especially as we might pass files found there to a mingw objdump,
9329
# which wouldn't understand a cygwinified path. Ahh.
9330
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9332
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9336
# pw32 DLLs use 'pw' prefix rather than 'lib'
9337
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
9343
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9346
dynamic_linker='Win32 ld.exe'
9347
# FIXME: first we should search . and the directory the executable is in
9351
darwin* | rhapsody*)
9352
dynamic_linker="$host_os dyld"
9356
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9357
soname_spec='${libname}${release}${major}$shared_ext'
9358
shlibpath_overrides_runpath=yes
9359
shlibpath_var=DYLD_LIBRARY_PATH
9360
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
9361
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9362
if test "$GCC" = yes; then
9363
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
9365
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9367
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9374
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9375
soname_spec='${libname}${release}${shared_ext}$major'
9376
shlibpath_var=LD_LIBRARY_PATH
9387
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9388
soname_spec='${libname}${release}${shared_ext}$major'
9389
shlibpath_var=LD_LIBRARY_PATH
9390
shlibpath_overrides_runpath=no
9391
hardcode_into_libs=yes
9392
dynamic_linker='GNU ld.so'
9396
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
9397
version_type=freebsd-$objformat
9398
case $version_type in
9400
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9405
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9409
shlibpath_var=LD_LIBRARY_PATH
9412
shlibpath_overrides_runpath=yes
9414
freebsd3.01* | freebsdelf3.01*)
9415
shlibpath_overrides_runpath=yes
9416
hardcode_into_libs=yes
9419
shlibpath_overrides_runpath=no
9420
hardcode_into_libs=yes
9429
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9430
soname_spec='${libname}${release}${shared_ext}$major'
9431
shlibpath_var=LD_LIBRARY_PATH
9432
hardcode_into_libs=yes
9435
hpux9* | hpux10* | hpux11*)
9436
# Give a soname corresponding to the major version so that dld.sl refuses to
9437
# link against other versions.
9444
hardcode_into_libs=yes
9445
dynamic_linker="$host_os dld.so"
9446
shlibpath_var=LD_LIBRARY_PATH
9447
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9448
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9449
soname_spec='${libname}${release}${shared_ext}$major'
9450
if test "X$HPUX_IA64_MODE" = X32; then
9451
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9453
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9455
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9459
hardcode_into_libs=yes
9460
dynamic_linker="$host_os dld.sl"
9461
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9462
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9463
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9464
soname_spec='${libname}${release}${shared_ext}$major'
9465
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9466
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9470
dynamic_linker="$host_os dld.sl"
9471
shlibpath_var=SHLIB_PATH
9472
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9473
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9474
soname_spec='${libname}${release}${shared_ext}$major'
9477
# HP-UX runs *really* slowly unless shared libraries are mode 555.
9478
postinstall_cmds='chmod 555 $lib'
9481
irix5* | irix6* | nonstopux*)
9483
nonstopux*) version_type=nonstopux ;;
9485
if test "$lt_cv_prog_gnu_ld" = yes; then
9493
soname_spec='${libname}${release}${shared_ext}$major'
9494
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9496
irix5* | nonstopux*)
9500
case $LD in # libtool.m4 will add one of these switches to LD
9501
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9502
libsuff= shlibsuff= libmagic=32-bit;;
9503
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9504
libsuff=32 shlibsuff=N32 libmagic=N32;;
9505
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9506
libsuff=64 shlibsuff=64 libmagic=64-bit;;
9507
*) libsuff= shlibsuff= libmagic=never-match;;
9511
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9512
shlibpath_overrides_runpath=no
9513
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9514
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9515
hardcode_into_libs=yes
9518
# No shared lib support for Linux oldld, aout, or coff.
9519
linux*oldld* | linux*aout* | linux*coff*)
9523
# This must be Linux ELF.
9528
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9529
soname_spec='${libname}${release}${shared_ext}$major'
9530
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9531
shlibpath_var=LD_LIBRARY_PATH
9532
shlibpath_overrides_runpath=no
9533
# This implies no fast_install, which is unacceptable.
9534
# Some rework will be needed to allow for fast_install
9535
# before this can be enabled.
9536
hardcode_into_libs=yes
9538
# Append ld.so.conf contents to the search path
9539
if test -f /etc/ld.so.conf; then
9540
lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
9541
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9544
# We used to test for /lib/ld.so.1 and disable shared libraries on
9545
# powerpc, because MkLinux only supported shared libraries with the
9546
# GNU dynamic linker. Since this was broken with cross compilers,
9547
# most powerpc-linux boxes support dynamic linking these days and
9548
# people can always --disable-shared, the test was removed, and we
9549
# assume the GNU/Linux dynamic linker is in use.
9550
dynamic_linker='GNU/Linux ld.so'
9557
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9558
soname_spec='${libname}${release}${shared_ext}$major'
9559
shlibpath_var=LD_LIBRARY_PATH
9560
shlibpath_overrides_runpath=no
9561
hardcode_into_libs=yes
9562
dynamic_linker='GNU ld.so'
9569
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9570
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9571
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9572
dynamic_linker='NetBSD (a.out) ld.so'
9574
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9575
soname_spec='${libname}${release}${shared_ext}$major'
9576
dynamic_linker='NetBSD ld.elf_so'
9578
shlibpath_var=LD_LIBRARY_PATH
9579
shlibpath_overrides_runpath=yes
9580
hardcode_into_libs=yes
9585
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9586
shlibpath_var=LD_LIBRARY_PATH
9587
shlibpath_overrides_runpath=yes
9594
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9595
soname_spec='${libname}${release}${shared_ext}$major'
9596
shlibpath_var=LD_LIBRARY_PATH
9597
shlibpath_overrides_runpath=yes
9604
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9605
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9606
shlibpath_var=LD_LIBRARY_PATH
9607
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9609
openbsd2.[89] | openbsd2.[89].*)
9610
shlibpath_overrides_runpath=no
9613
shlibpath_overrides_runpath=yes
9617
shlibpath_overrides_runpath=yes
9622
libname_spec='$name'
9625
library_names_spec='$libname${shared_ext} $libname.a'
9626
dynamic_linker='OS/2 ld.exe'
9627
shlibpath_var=LIBPATH
9630
osf3* | osf4* | osf5*)
9634
soname_spec='${libname}${release}${shared_ext}$major'
9635
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9636
shlibpath_var=LD_LIBRARY_PATH
9637
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9638
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9643
soname_spec='${libname}${release}${shared_ext}$major'
9644
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9645
shlibpath_var=LD_LIBRARY_PATH
9652
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9653
soname_spec='${libname}${release}${shared_ext}$major'
9654
shlibpath_var=LD_LIBRARY_PATH
9655
shlibpath_overrides_runpath=yes
9656
hardcode_into_libs=yes
9657
# ldd complains unless libraries are executable
9658
postinstall_cmds='chmod +x $lib'
9663
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9664
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9665
shlibpath_var=LD_LIBRARY_PATH
9666
shlibpath_overrides_runpath=yes
9667
if test "$with_gnu_ld" = yes; then
9673
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9675
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9676
soname_spec='${libname}${release}${shared_ext}$major'
9677
shlibpath_var=LD_LIBRARY_PATH
9678
case $host_vendor in
9680
shlibpath_overrides_runpath=no
9682
export_dynamic_flag_spec='${wl}-Blargedynsym'
9683
runpath_var=LD_RUN_PATH
9691
shlibpath_overrides_runpath=no
9692
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9698
if test -d /usr/nec ;then
9700
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9701
soname_spec='$libname${shared_ext}.$major'
9702
shlibpath_var=LD_LIBRARY_PATH
9708
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9709
soname_spec='${libname}${release}${shared_ext}$major'
9710
shlibpath_var=LD_LIBRARY_PATH
9717
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9718
echo "${ECHO_T}$dynamic_linker" >&6
9719
test "$dynamic_linker" = no && can_build_shared=no
9721
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9722
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9724
if test -n "$hardcode_libdir_flag_spec" || \
9725
test -n "$runpath_var " || \
9726
test "X$hardcode_automatic"="Xyes" ; then
9728
# We can hardcode non-existant directories.
9729
if test "$hardcode_direct" != no &&
9730
# If the only mechanism to avoid hardcoding is shlibpath_var, we
9731
# have to relink, otherwise we might link with an installed library
9732
# when we should be linking with a yet-to-be-installed one
9733
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9734
test "$hardcode_minus_L" != no; then
9735
# Linking always hardcodes the temporary library directory.
9736
hardcode_action=relink
9738
# We can link without hardcoding, and we can hardcode nonexisting dirs.
9739
hardcode_action=immediate
9742
# We cannot hardcode anything, or else we can only hardcode existing
9744
hardcode_action=unsupported
9746
echo "$as_me:$LINENO: result: $hardcode_action" >&5
9747
echo "${ECHO_T}$hardcode_action" >&6
9749
if test "$hardcode_action" = relink; then
9750
# Fast installation is not supported
9751
enable_fast_install=no
9752
elif test "$shlibpath_overrides_runpath" = yes ||
9753
test "$enable_shared" = no; then
9754
# Fast installation is not necessary
9755
enable_fast_install=needless
9760
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9761
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9762
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9763
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9764
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9765
echo "$as_me:$LINENO: result: yes" >&5
9766
echo "${ECHO_T}yes" >&6
9768
# FIXME - insert some real tests, host_os isn't really good enough
9771
if test -n "$STRIP" ; then
9772
striplib="$STRIP -x"
9773
echo "$as_me:$LINENO: result: yes" >&5
9774
echo "${ECHO_T}yes" >&6
9776
echo "$as_me:$LINENO: result: no" >&5
9777
echo "${ECHO_T}no" >&6
9781
echo "$as_me:$LINENO: result: no" >&5
9782
echo "${ECHO_T}no" >&6
9787
if test "x$enable_dlopen" != xyes; then
9788
enable_dlopen=unknown
9789
enable_dlopen_self=unknown
9790
enable_dlopen_self_static=unknown
9797
lt_cv_dlopen="load_add_on"
9799
lt_cv_dlopen_self=yes
9803
lt_cv_dlopen="LoadLibrary"
9808
lt_cv_dlopen="dlopen"
9813
# if libdl is installed we need to link against it
9814
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9815
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9816
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9817
echo $ECHO_N "(cached) $ECHO_C" >&6
9819
ac_check_lib_save_LIBS=$LIBS
9821
cat >conftest.$ac_ext <<_ACEOF
9824
cat confdefs.h >>conftest.$ac_ext
9825
cat >>conftest.$ac_ext <<_ACEOF
9826
/* end confdefs.h. */
9828
/* Override any gcc2 internal prototype to avoid an error. */
9832
/* We use char because int might match the return type of a gcc2
9833
builtin and then its argument prototype would still apply. */
9843
rm -f conftest.$ac_objext conftest$ac_exeext
9844
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9845
(eval $ac_link) 2>conftest.er1
9847
grep -v '^ *+' conftest.er1 >conftest.err
9849
cat conftest.err >&5
9850
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9851
(exit $ac_status); } &&
9852
{ ac_try='test -z "$ac_c_werror_flag"
9853
|| test ! -s conftest.err'
9854
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9857
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858
(exit $ac_status); }; } &&
9859
{ ac_try='test -s conftest$ac_exeext'
9860
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9863
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9864
(exit $ac_status); }; }; then
9865
ac_cv_lib_dl_dlopen=yes
9867
echo "$as_me: failed program was:" >&5
9868
sed 's/^/| /' conftest.$ac_ext >&5
9870
ac_cv_lib_dl_dlopen=no
9872
rm -f conftest.err conftest.$ac_objext \
9873
conftest$ac_exeext conftest.$ac_ext
9874
LIBS=$ac_check_lib_save_LIBS
9876
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9877
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9878
if test $ac_cv_lib_dl_dlopen = yes; then
9879
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9884
lt_cv_dlopen_self=yes
9891
echo "$as_me:$LINENO: checking for shl_load" >&5
9892
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9893
if test "${ac_cv_func_shl_load+set}" = set; then
9894
echo $ECHO_N "(cached) $ECHO_C" >&6
9896
cat >conftest.$ac_ext <<_ACEOF
9899
cat confdefs.h >>conftest.$ac_ext
9900
cat >>conftest.$ac_ext <<_ACEOF
9901
/* end confdefs.h. */
9902
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9903
For example, HP-UX 11i <limits.h> declares gettimeofday. */
9904
#define shl_load innocuous_shl_load
9906
/* System header to define __stub macros and hopefully few prototypes,
9907
which can conflict with char shl_load (); below.
9908
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9909
<limits.h> exists even on freestanding compilers. */
9912
# include <limits.h>
9914
# include <assert.h>
9919
/* Override any gcc2 internal prototype to avoid an error. */
9924
/* We use char because int might match the return type of a gcc2
9925
builtin and then its argument prototype would still apply. */
9927
/* The GNU C library defines this for functions which it implements
9928
to always fail with ENOSYS. Some functions are actually named
9929
something starting with __ and the normal name is an alias. */
9930
#if defined (__stub_shl_load) || defined (__stub___shl_load)
9933
char (*f) () = shl_load;
9942
return f != shl_load;
9947
rm -f conftest.$ac_objext conftest$ac_exeext
9948
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9949
(eval $ac_link) 2>conftest.er1
9951
grep -v '^ *+' conftest.er1 >conftest.err
9953
cat conftest.err >&5
9954
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9955
(exit $ac_status); } &&
9956
{ ac_try='test -z "$ac_c_werror_flag"
9957
|| test ! -s conftest.err'
9958
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9961
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9962
(exit $ac_status); }; } &&
9963
{ ac_try='test -s conftest$ac_exeext'
9964
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9967
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9968
(exit $ac_status); }; }; then
9969
ac_cv_func_shl_load=yes
9971
echo "$as_me: failed program was:" >&5
9972
sed 's/^/| /' conftest.$ac_ext >&5
9974
ac_cv_func_shl_load=no
9976
rm -f conftest.err conftest.$ac_objext \
9977
conftest$ac_exeext conftest.$ac_ext
9979
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9980
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9981
if test $ac_cv_func_shl_load = yes; then
9982
lt_cv_dlopen="shl_load"
9984
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9985
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9986
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9987
echo $ECHO_N "(cached) $ECHO_C" >&6
9989
ac_check_lib_save_LIBS=$LIBS
9991
cat >conftest.$ac_ext <<_ACEOF
9994
cat confdefs.h >>conftest.$ac_ext
9995
cat >>conftest.$ac_ext <<_ACEOF
9996
/* end confdefs.h. */
9998
/* Override any gcc2 internal prototype to avoid an error. */
10002
/* We use char because int might match the return type of a gcc2
10003
builtin and then its argument prototype would still apply. */
10013
rm -f conftest.$ac_objext conftest$ac_exeext
10014
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10015
(eval $ac_link) 2>conftest.er1
10017
grep -v '^ *+' conftest.er1 >conftest.err
10019
cat conftest.err >&5
10020
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10021
(exit $ac_status); } &&
10022
{ ac_try='test -z "$ac_c_werror_flag"
10023
|| test ! -s conftest.err'
10024
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10025
(eval $ac_try) 2>&5
10027
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10028
(exit $ac_status); }; } &&
10029
{ ac_try='test -s conftest$ac_exeext'
10030
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10031
(eval $ac_try) 2>&5
10033
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10034
(exit $ac_status); }; }; then
10035
ac_cv_lib_dld_shl_load=yes
10037
echo "$as_me: failed program was:" >&5
10038
sed 's/^/| /' conftest.$ac_ext >&5
10040
ac_cv_lib_dld_shl_load=no
10042
rm -f conftest.err conftest.$ac_objext \
10043
conftest$ac_exeext conftest.$ac_ext
10044
LIBS=$ac_check_lib_save_LIBS
10046
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10047
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10048
if test $ac_cv_lib_dld_shl_load = yes; then
10049
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10051
echo "$as_me:$LINENO: checking for dlopen" >&5
10052
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10053
if test "${ac_cv_func_dlopen+set}" = set; then
10054
echo $ECHO_N "(cached) $ECHO_C" >&6
10056
cat >conftest.$ac_ext <<_ACEOF
10059
cat confdefs.h >>conftest.$ac_ext
10060
cat >>conftest.$ac_ext <<_ACEOF
10061
/* end confdefs.h. */
10062
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10063
For example, HP-UX 11i <limits.h> declares gettimeofday. */
10064
#define dlopen innocuous_dlopen
10066
/* System header to define __stub macros and hopefully few prototypes,
10067
which can conflict with char dlopen (); below.
10068
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10069
<limits.h> exists even on freestanding compilers. */
10072
# include <limits.h>
10074
# include <assert.h>
10079
/* Override any gcc2 internal prototype to avoid an error. */
10084
/* We use char because int might match the return type of a gcc2
10085
builtin and then its argument prototype would still apply. */
10087
/* The GNU C library defines this for functions which it implements
10088
to always fail with ENOSYS. Some functions are actually named
10089
something starting with __ and the normal name is an alias. */
10090
#if defined (__stub_dlopen) || defined (__stub___dlopen)
10093
char (*f) () = dlopen;
10102
return f != dlopen;
10107
rm -f conftest.$ac_objext conftest$ac_exeext
10108
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10109
(eval $ac_link) 2>conftest.er1
10111
grep -v '^ *+' conftest.er1 >conftest.err
10113
cat conftest.err >&5
10114
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10115
(exit $ac_status); } &&
10116
{ ac_try='test -z "$ac_c_werror_flag"
10117
|| test ! -s conftest.err'
10118
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10119
(eval $ac_try) 2>&5
10121
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10122
(exit $ac_status); }; } &&
10123
{ ac_try='test -s conftest$ac_exeext'
10124
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10125
(eval $ac_try) 2>&5
10127
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10128
(exit $ac_status); }; }; then
10129
ac_cv_func_dlopen=yes
10131
echo "$as_me: failed program was:" >&5
10132
sed 's/^/| /' conftest.$ac_ext >&5
10134
ac_cv_func_dlopen=no
10136
rm -f conftest.err conftest.$ac_objext \
10137
conftest$ac_exeext conftest.$ac_ext
10139
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10140
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10141
if test $ac_cv_func_dlopen = yes; then
10142
lt_cv_dlopen="dlopen"
10144
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10145
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10146
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10147
echo $ECHO_N "(cached) $ECHO_C" >&6
10149
ac_check_lib_save_LIBS=$LIBS
10151
cat >conftest.$ac_ext <<_ACEOF
10154
cat confdefs.h >>conftest.$ac_ext
10155
cat >>conftest.$ac_ext <<_ACEOF
10156
/* end confdefs.h. */
10158
/* Override any gcc2 internal prototype to avoid an error. */
10162
/* We use char because int might match the return type of a gcc2
10163
builtin and then its argument prototype would still apply. */
10173
rm -f conftest.$ac_objext conftest$ac_exeext
10174
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10175
(eval $ac_link) 2>conftest.er1
10177
grep -v '^ *+' conftest.er1 >conftest.err
10179
cat conftest.err >&5
10180
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10181
(exit $ac_status); } &&
10182
{ ac_try='test -z "$ac_c_werror_flag"
10183
|| test ! -s conftest.err'
10184
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10185
(eval $ac_try) 2>&5
10187
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10188
(exit $ac_status); }; } &&
10189
{ ac_try='test -s conftest$ac_exeext'
10190
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10191
(eval $ac_try) 2>&5
10193
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194
(exit $ac_status); }; }; then
10195
ac_cv_lib_dl_dlopen=yes
10197
echo "$as_me: failed program was:" >&5
10198
sed 's/^/| /' conftest.$ac_ext >&5
10200
ac_cv_lib_dl_dlopen=no
10202
rm -f conftest.err conftest.$ac_objext \
10203
conftest$ac_exeext conftest.$ac_ext
10204
LIBS=$ac_check_lib_save_LIBS
10206
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10207
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10208
if test $ac_cv_lib_dl_dlopen = yes; then
10209
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10211
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10212
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10213
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10214
echo $ECHO_N "(cached) $ECHO_C" >&6
10216
ac_check_lib_save_LIBS=$LIBS
10217
LIBS="-lsvld $LIBS"
10218
cat >conftest.$ac_ext <<_ACEOF
10221
cat confdefs.h >>conftest.$ac_ext
10222
cat >>conftest.$ac_ext <<_ACEOF
10223
/* end confdefs.h. */
10225
/* Override any gcc2 internal prototype to avoid an error. */
10229
/* We use char because int might match the return type of a gcc2
10230
builtin and then its argument prototype would still apply. */
10240
rm -f conftest.$ac_objext conftest$ac_exeext
10241
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10242
(eval $ac_link) 2>conftest.er1
10244
grep -v '^ *+' conftest.er1 >conftest.err
10246
cat conftest.err >&5
10247
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10248
(exit $ac_status); } &&
10249
{ ac_try='test -z "$ac_c_werror_flag"
10250
|| test ! -s conftest.err'
10251
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10252
(eval $ac_try) 2>&5
10254
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10255
(exit $ac_status); }; } &&
10256
{ ac_try='test -s conftest$ac_exeext'
10257
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10258
(eval $ac_try) 2>&5
10260
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261
(exit $ac_status); }; }; then
10262
ac_cv_lib_svld_dlopen=yes
10264
echo "$as_me: failed program was:" >&5
10265
sed 's/^/| /' conftest.$ac_ext >&5
10267
ac_cv_lib_svld_dlopen=no
10269
rm -f conftest.err conftest.$ac_objext \
10270
conftest$ac_exeext conftest.$ac_ext
10271
LIBS=$ac_check_lib_save_LIBS
10273
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10274
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10275
if test $ac_cv_lib_svld_dlopen = yes; then
10276
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10278
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10279
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10280
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10281
echo $ECHO_N "(cached) $ECHO_C" >&6
10283
ac_check_lib_save_LIBS=$LIBS
10285
cat >conftest.$ac_ext <<_ACEOF
10288
cat confdefs.h >>conftest.$ac_ext
10289
cat >>conftest.$ac_ext <<_ACEOF
10290
/* end confdefs.h. */
10292
/* Override any gcc2 internal prototype to avoid an error. */
10296
/* We use char because int might match the return type of a gcc2
10297
builtin and then its argument prototype would still apply. */
10307
rm -f conftest.$ac_objext conftest$ac_exeext
10308
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10309
(eval $ac_link) 2>conftest.er1
10311
grep -v '^ *+' conftest.er1 >conftest.err
10313
cat conftest.err >&5
10314
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10315
(exit $ac_status); } &&
10316
{ ac_try='test -z "$ac_c_werror_flag"
10317
|| test ! -s conftest.err'
10318
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10319
(eval $ac_try) 2>&5
10321
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10322
(exit $ac_status); }; } &&
10323
{ ac_try='test -s conftest$ac_exeext'
10324
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10325
(eval $ac_try) 2>&5
10327
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10328
(exit $ac_status); }; }; then
10329
ac_cv_lib_dld_dld_link=yes
10331
echo "$as_me: failed program was:" >&5
10332
sed 's/^/| /' conftest.$ac_ext >&5
10334
ac_cv_lib_dld_dld_link=no
10336
rm -f conftest.err conftest.$ac_objext \
10337
conftest$ac_exeext conftest.$ac_ext
10338
LIBS=$ac_check_lib_save_LIBS
10340
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10341
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10342
if test $ac_cv_lib_dld_dld_link = yes; then
10343
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10364
if test "x$lt_cv_dlopen" != xno; then
10370
case $lt_cv_dlopen in
10372
save_CPPFLAGS="$CPPFLAGS"
10373
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10375
save_LDFLAGS="$LDFLAGS"
10376
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10379
LIBS="$lt_cv_dlopen_libs $LIBS"
10381
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10382
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10383
if test "${lt_cv_dlopen_self+set}" = set; then
10384
echo $ECHO_N "(cached) $ECHO_C" >&6
10386
if test "$cross_compiling" = yes; then :
10387
lt_cv_dlopen_self=cross
10389
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10390
lt_status=$lt_dlunknown
10391
cat > conftest.$ac_ext <<EOF
10392
#line 10392 "configure"
10393
#include "confdefs.h"
10402
# define LT_DLGLOBAL RTLD_GLOBAL
10405
# define LT_DLGLOBAL DL_GLOBAL
10407
# define LT_DLGLOBAL 0
10411
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10412
find out it does not work in some platform. */
10413
#ifndef LT_DLLAZY_OR_NOW
10415
# define LT_DLLAZY_OR_NOW RTLD_LAZY
10418
# define LT_DLLAZY_OR_NOW DL_LAZY
10421
# define LT_DLLAZY_OR_NOW RTLD_NOW
10424
# define LT_DLLAZY_OR_NOW DL_NOW
10426
# define LT_DLLAZY_OR_NOW 0
10434
extern "C" void exit (int);
10437
void fnord() { int i=42;}
10440
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10441
int status = $lt_dlunknown;
10445
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10446
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10447
/* dlclose (self); */
10453
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10454
(eval $ac_link) 2>&5
10456
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10457
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10458
(./conftest; exit; ) 2>/dev/null
10460
case x$lt_status in
10461
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10462
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10463
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10466
# compilation failed
10467
lt_cv_dlopen_self=no
10474
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10475
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10477
if test "x$lt_cv_dlopen_self" = xyes; then
10478
LDFLAGS="$LDFLAGS $link_static_flag"
10479
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10480
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10481
if test "${lt_cv_dlopen_self_static+set}" = set; then
10482
echo $ECHO_N "(cached) $ECHO_C" >&6
10484
if test "$cross_compiling" = yes; then :
10485
lt_cv_dlopen_self_static=cross
10487
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10488
lt_status=$lt_dlunknown
10489
cat > conftest.$ac_ext <<EOF
10490
#line 10490 "configure"
10491
#include "confdefs.h"
10500
# define LT_DLGLOBAL RTLD_GLOBAL
10503
# define LT_DLGLOBAL DL_GLOBAL
10505
# define LT_DLGLOBAL 0
10509
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10510
find out it does not work in some platform. */
10511
#ifndef LT_DLLAZY_OR_NOW
10513
# define LT_DLLAZY_OR_NOW RTLD_LAZY
10516
# define LT_DLLAZY_OR_NOW DL_LAZY
10519
# define LT_DLLAZY_OR_NOW RTLD_NOW
10522
# define LT_DLLAZY_OR_NOW DL_NOW
10524
# define LT_DLLAZY_OR_NOW 0
10532
extern "C" void exit (int);
10535
void fnord() { int i=42;}
10538
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10539
int status = $lt_dlunknown;
10543
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10544
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10545
/* dlclose (self); */
10551
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10552
(eval $ac_link) 2>&5
10554
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10555
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10556
(./conftest; exit; ) 2>/dev/null
10558
case x$lt_status in
10559
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10560
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10561
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10564
# compilation failed
10565
lt_cv_dlopen_self_static=no
10572
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10573
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10576
CPPFLAGS="$save_CPPFLAGS"
10577
LDFLAGS="$save_LDFLAGS"
10582
case $lt_cv_dlopen_self in
10583
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10584
*) enable_dlopen_self=unknown ;;
10587
case $lt_cv_dlopen_self_static in
10588
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10589
*) enable_dlopen_self_static=unknown ;;
10594
# Report which librarie types wil actually be built
10595
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10596
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10597
echo "$as_me:$LINENO: result: $can_build_shared" >&5
10598
echo "${ECHO_T}$can_build_shared" >&6
10600
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10601
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10602
test "$can_build_shared" = "no" && enable_shared=no
10604
# On AIX, shared libraries and static libraries use the same namespace, and
10605
# are all built from PIC.
10608
test "$enable_shared" = yes && enable_static=no
10609
if test -n "$RANLIB"; then
10610
archive_cmds="$archive_cmds~\$RANLIB \$lib"
10611
postinstall_cmds='$RANLIB $lib'
10616
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10617
test "$enable_shared" = yes && enable_static=no
10620
darwin* | rhapsody*)
10621
if test "$GCC" = yes; then
10622
archive_cmds_need_lc=no
10624
rhapsody* | darwin1.[012])
10625
allow_undefined_flag='-undefined suppress'
10628
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10629
allow_undefined_flag='-flat_namespace -undefined suppress'
10631
case ${MACOSX_DEPLOYMENT_TARGET} in
10633
allow_undefined_flag='-flat_namespace -undefined suppress'
10636
allow_undefined_flag='-undefined dynamic_lookup'
10642
output_verbose_link_cmd='echo'
10643
archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
10644
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10645
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10646
archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10647
module_expsym_cmds='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}'
10649
hardcode_automatic=yes
10650
hardcode_shlibpath_var=unsupported
10651
whole_archive_flag_spec='-all_load $convenience'
10652
link_all_deplibs=yes
10658
echo "$as_me:$LINENO: result: $enable_shared" >&5
10659
echo "${ECHO_T}$enable_shared" >&6
10661
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10662
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10663
# Make sure either enable_shared or enable_static is yes.
10664
test "$enable_shared" = yes || enable_static=yes
10665
echo "$as_me:$LINENO: result: $enable_static" >&5
10666
echo "${ECHO_T}$enable_static" >&6
10668
# The else clause should only fire when bootstrapping the
10669
# libtool distribution, otherwise you forgot to ship ltmain.sh
10670
# with your package, and you will get complaints that there are
10671
# no rules to generate ltmain.sh.
10672
if test -f "$ltmain"; then
10673
# See if we are running on zsh, and set the options which allow our commands through
10674
# without removal of \ escapes.
10675
if test -n "${ZSH_VERSION+set}" ; then
10676
setopt NO_GLOB_SUBST
10678
# Now quote all the things that may contain metacharacters while being
10679
# careful not to overquote the AC_SUBSTed values. We take copies of the
10680
# variables and quote the copies for generation of the libtool script.
10681
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
10683
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10684
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10685
deplibs_check_method reload_flag reload_cmds need_locks \
10686
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10687
lt_cv_sys_global_symbol_to_c_name_address \
10688
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10689
old_postinstall_cmds old_postuninstall_cmds \
10693
lt_prog_compiler_wl \
10694
lt_prog_compiler_pic \
10695
lt_prog_compiler_static \
10696
lt_prog_compiler_no_builtin_flag \
10697
export_dynamic_flag_spec \
10698
thread_safe_flag_spec \
10699
whole_archive_flag_spec \
10700
enable_shared_with_static_runtimes \
10702
old_archive_from_new_cmds \
10707
compiler_lib_search_path \
10709
archive_expsym_cmds \
10711
postuninstall_cmds \
10712
old_archive_from_expsyms_cmds \
10713
allow_undefined_flag \
10714
no_undefined_flag \
10715
export_symbols_cmds \
10716
hardcode_libdir_flag_spec \
10717
hardcode_libdir_flag_spec_ld \
10718
hardcode_libdir_separator \
10719
hardcode_automatic \
10721
module_expsym_cmds \
10722
lt_cv_prog_compiler_c_o \
10724
include_expsyms; do
10727
old_archive_cmds | \
10728
old_archive_from_new_cmds | \
10730
archive_expsym_cmds | \
10732
module_expsym_cmds | \
10733
old_archive_from_expsyms_cmds | \
10734
export_symbols_cmds | \
10735
extract_expsyms_cmds | reload_cmds | finish_cmds | \
10736
postinstall_cmds | postuninstall_cmds | \
10737
old_postinstall_cmds | old_postuninstall_cmds | \
10738
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10739
# Double-quote double-evaled strings.
10740
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10743
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10749
*'\$0 --fallback-echo"')
10750
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10754
cfgfile="${ofile}T"
10755
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10757
{ echo "$as_me:$LINENO: creating $ofile" >&5
10758
echo "$as_me: creating $ofile" >&6;}
10760
cat <<__EOF__ >> "$cfgfile"
10763
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10764
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10765
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10767
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10768
# Free Software Foundation, Inc.
10770
# This file is part of GNU Libtool:
10771
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10773
# This program is free software; you can redistribute it and/or modify
10774
# it under the terms of the GNU General Public License as published by
10775
# the Free Software Foundation; either version 2 of the License, or
10776
# (at your option) any later version.
10778
# This program is distributed in the hope that it will be useful, but
10779
# WITHOUT ANY WARRANTY; without even the implied warranty of
10780
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10781
# General Public License for more details.
10783
# You should have received a copy of the GNU General Public License
10784
# along with this program; if not, write to the Free Software
10785
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
10787
# As a special exception to the GNU General Public License, if you
10788
# distribute this file as part of a program that contains a
10789
# configuration script generated by Autoconf, you may include it under
10790
# the same distribution terms that you use for the rest of that program.
10792
# A sed program that does not truncate output.
10795
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10796
Xsed="$SED -e s/^X//"
10798
# The HP-UX ksh and POSIX shell print the target directory to stdout
10799
# if CDPATH is set.
10800
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
10802
# The names of the tagged configurations supported by this script.
10805
# ### BEGIN LIBTOOL CONFIG
10807
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10809
# Shell to use when invoking shell scripts.
10812
# Whether or not to build shared libraries.
10813
build_libtool_libs=$enable_shared
10815
# Whether or not to build static libraries.
10816
build_old_libs=$enable_static
10818
# Whether or not to add -lc for building shared libraries.
10819
build_libtool_need_lc=$archive_cmds_need_lc
10821
# Whether or not to disallow shared libs when runtime libs are static
10822
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10824
# Whether or not to optimize for fast installation.
10825
fast_install=$enable_fast_install
10828
host_alias=$host_alias
10831
# An echo program that does not interpret backslashes.
10836
AR_FLAGS=$lt_AR_FLAGS
10841
# A language-specific compiler.
10844
# Is the compiler the GNU C compiler?
10850
# The linker used to build libraries.
10853
# Whether we need hard or soft links.
10856
# A BSD-compatible nm program.
10859
# A symbol stripping program
10862
# Used to examine libraries when file_magic_cmd begins "file"
10863
MAGIC_CMD=$MAGIC_CMD
10865
# Used on cygwin: DLL creation program.
10868
# Used on cygwin: object dumper.
10871
# Used on cygwin: assembler.
10874
# The name of the directory that contains temporary libtool files.
10877
# How to create reloadable object files.
10878
reload_flag=$lt_reload_flag
10879
reload_cmds=$lt_reload_cmds
10881
# How to pass a linker flag through the compiler.
10882
wl=$lt_lt_prog_compiler_wl
10884
# Object file suffix (normally "o").
10885
objext="$ac_objext"
10887
# Old archive suffix (normally "a").
10890
# Shared library suffix (normally ".so").
10891
shrext_cmds='$shrext_cmds'
10893
# Executable file suffix (normally "").
10896
# Additional compiler flags for building library objects.
10897
pic_flag=$lt_lt_prog_compiler_pic
10900
# What is the maximum length of a command?
10901
max_cmd_len=$lt_cv_sys_max_cmd_len
10903
# Does compiler simultaneously support -c and -o options?
10904
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10906
# Must we lock files when doing compilation ?
10907
need_locks=$lt_need_locks
10909
# Do we need the lib prefix for modules?
10910
need_lib_prefix=$need_lib_prefix
10912
# Do we need a version for libraries?
10913
need_version=$need_version
10915
# Whether dlopen is supported.
10916
dlopen_support=$enable_dlopen
10918
# Whether dlopen of programs is supported.
10919
dlopen_self=$enable_dlopen_self
10921
# Whether dlopen of statically linked programs is supported.
10922
dlopen_self_static=$enable_dlopen_self_static
10924
# Compiler flag to prevent dynamic linking.
10925
link_static_flag=$lt_lt_prog_compiler_static
10927
# Compiler flag to turn off builtin functions.
10928
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10930
# Compiler flag to allow reflexive dlopens.
10931
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10933
# Compiler flag to generate shared objects directly from archives.
10934
whole_archive_flag_spec=$lt_whole_archive_flag_spec
10936
# Compiler flag to generate thread-safe objects.
10937
thread_safe_flag_spec=$lt_thread_safe_flag_spec
10939
# Library versioning type.
10940
version_type=$version_type
10942
# Format of library name prefix.
10943
libname_spec=$lt_libname_spec
10945
# List of archive names. First name is the real one, the rest are links.
10946
# The last name is the one that the linker finds with -lNAME.
10947
library_names_spec=$lt_library_names_spec
10949
# The coded name of the library, if different from the real name.
10950
soname_spec=$lt_soname_spec
10952
# Commands used to build and install an old-style archive.
10954
old_archive_cmds=$lt_old_archive_cmds
10955
old_postinstall_cmds=$lt_old_postinstall_cmds
10956
old_postuninstall_cmds=$lt_old_postuninstall_cmds
10958
# Create an old-style archive from a shared archive.
10959
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10961
# Create a temporary old-style archive to link instead of a shared archive.
10962
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10964
# Commands used to build and install a shared archive.
10965
archive_cmds=$lt_archive_cmds
10966
archive_expsym_cmds=$lt_archive_expsym_cmds
10967
postinstall_cmds=$lt_postinstall_cmds
10968
postuninstall_cmds=$lt_postuninstall_cmds
10970
# Commands used to build a loadable module (assumed same as above if empty)
10971
module_cmds=$lt_module_cmds
10972
module_expsym_cmds=$lt_module_expsym_cmds
10974
# Commands to strip libraries.
10975
old_striplib=$lt_old_striplib
10976
striplib=$lt_striplib
10978
# Dependencies to place before the objects being linked to create a
10980
predep_objects=$lt_predep_objects
10982
# Dependencies to place after the objects being linked to create a
10984
postdep_objects=$lt_postdep_objects
10986
# Dependencies to place before the objects being linked to create a
10988
predeps=$lt_predeps
10990
# Dependencies to place after the objects being linked to create a
10992
postdeps=$lt_postdeps
10994
# The library search path used internally by the compiler when linking
10995
# a shared library.
10996
compiler_lib_search_path=$lt_compiler_lib_search_path
10998
# Method to check whether dependent libraries are shared objects.
10999
deplibs_check_method=$lt_deplibs_check_method
11001
# Command to use when deplibs_check_method == file_magic.
11002
file_magic_cmd=$lt_file_magic_cmd
11004
# Flag that allows shared libraries with undefined symbols to be built.
11005
allow_undefined_flag=$lt_allow_undefined_flag
11007
# Flag that forces no undefined symbols.
11008
no_undefined_flag=$lt_no_undefined_flag
11010
# Commands used to finish a libtool library installation in a directory.
11011
finish_cmds=$lt_finish_cmds
11013
# Same as above, but a single script fragment to be evaled but not shown.
11014
finish_eval=$lt_finish_eval
11016
# Take the output of nm and produce a listing of raw symbols and C names.
11017
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11019
# Transform the output of nm in a proper C declaration
11020
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11022
# Transform the output of nm in a C name address pair
11023
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11025
# This is the shared library runtime path variable.
11026
runpath_var=$runpath_var
11028
# This is the shared library path variable.
11029
shlibpath_var=$shlibpath_var
11031
# Is shlibpath searched before the hard-coded library search path?
11032
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11034
# How to hardcode a shared library path into an executable.
11035
hardcode_action=$hardcode_action
11037
# Whether we should hardcode library paths into libraries.
11038
hardcode_into_libs=$hardcode_into_libs
11040
# Flag to hardcode \$libdir into a binary during linking.
11041
# This must work even if \$libdir does not exist.
11042
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11044
# If ld is used when linking, flag to hardcode \$libdir into
11045
# a binary during linking. This must work even if \$libdir does
11047
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11049
# Whether we need a single -rpath flag with a separated argument.
11050
hardcode_libdir_separator=$lt_hardcode_libdir_separator
11052
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11053
# resulting binary.
11054
hardcode_direct=$hardcode_direct
11056
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11057
# resulting binary.
11058
hardcode_minus_L=$hardcode_minus_L
11060
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11061
# the resulting binary.
11062
hardcode_shlibpath_var=$hardcode_shlibpath_var
11064
# Set to yes if building a shared library automatically hardcodes DIR into the library
11065
# and all subsequent libraries and executables linked against it.
11066
hardcode_automatic=$hardcode_automatic
11068
# Variables whose values should be saved in libtool wrapper scripts and
11069
# restored at relink time.
11070
variables_saved_for_relink="$variables_saved_for_relink"
11072
# Whether libtool must link a program against all its dependency libraries.
11073
link_all_deplibs=$link_all_deplibs
11075
# Compile-time system search path for libraries
11076
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11078
# Run-time system search path for libraries
11079
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11081
# Fix the shell variable \$srcfile for the compiler.
11082
fix_srcfile_path="$fix_srcfile_path"
11084
# Set to yes if exported symbols are required.
11085
always_export_symbols=$always_export_symbols
11087
# The commands to list exported symbols.
11088
export_symbols_cmds=$lt_export_symbols_cmds
11090
# The commands to extract the exported symbol list from a shared archive.
11091
extract_expsyms_cmds=$lt_extract_expsyms_cmds
11093
# Symbols that should not be listed in the preloaded symbols.
11094
exclude_expsyms=$lt_exclude_expsyms
11096
# Symbols that must always be exported.
11097
include_expsyms=$lt_include_expsyms
11099
# ### END LIBTOOL CONFIG
11106
cat <<\EOF >> "$cfgfile"
11108
# AIX sometimes has problems with the GCC collect2 program. For some
11109
# reason, if we set the COLLECT_NAMES environment variable, the problems
11110
# vanish in a puff of smoke.
11111
if test "X${COLLECT_NAMES+set}" != Xset; then
11113
export COLLECT_NAMES
11119
# We use sed instead of cat because bash on DJGPP gets confused if
11120
# if finds mixed CR/LF and LF-only lines. Since sed operates in
11121
# text mode, it properly converts lines to CR/LF. This bash problem
11122
# is reportedly fixed, but why not run on old versions too?
11123
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11125
mv -f "$cfgfile" "$ofile" || \
11126
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11130
# If there is no Makefile yet, we rely on a make rule to execute
11131
# `config.status --recheck' to rerun these tests and create the
11132
# libtool script then.
11133
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11134
if test -f "$ltmain_in"; then
11135
test -f Makefile && make "$ltmain"
11141
ac_cpp='$CPP $CPPFLAGS'
11142
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11143
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11144
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11149
# Check whether --with-tags or --without-tags was given.
11150
if test "${with_tags+set}" = set; then
11151
withval="$with_tags"
11152
tagnames="$withval"
11155
if test -f "$ltmain" && test -n "$tagnames"; then
11156
if test ! -f "${ofile}"; then
11157
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11158
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11161
if test -z "$LTCC"; then
11162
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11163
if test -z "$LTCC"; then
11164
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11165
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11167
{ echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11168
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11172
# Extract list of available tagged configurations in $ofile.
11173
# Note that this assumes the entire list is on one line.
11174
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11176
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11177
for tagname in $tagnames; do
11179
# Check whether tagname contains only valid characters
11180
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11182
*) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11183
echo "$as_me: error: invalid tag name: $tagname" >&2;}
11184
{ (exit 1); exit 1; }; }
11188
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11190
{ { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11191
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11192
{ (exit 1); exit 1; }; }
11195
# Update the list of available tags.
11196
if test -n "$tagname"; then
11197
echo appending configuration tag \"$tagname\" to $ofile
11201
if test -n "$CXX" && test "X$CXX" != "Xno"; then
11203
ac_cpp='$CXXCPP $CPPFLAGS'
11204
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11205
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11206
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11211
archive_cmds_need_lc_CXX=no
11212
allow_undefined_flag_CXX=
11213
always_export_symbols_CXX=no
11214
archive_expsym_cmds_CXX=
11215
export_dynamic_flag_spec_CXX=
11216
hardcode_direct_CXX=no
11217
hardcode_libdir_flag_spec_CXX=
11218
hardcode_libdir_flag_spec_ld_CXX=
11219
hardcode_libdir_separator_CXX=
11220
hardcode_minus_L_CXX=no
11221
hardcode_automatic_CXX=no
11223
module_expsym_cmds_CXX=
11224
link_all_deplibs_CXX=unknown
11225
old_archive_cmds_CXX=$old_archive_cmds
11226
no_undefined_flag_CXX=
11227
whole_archive_flag_spec_CXX=
11228
enable_shared_with_static_runtimes_CXX=no
11230
# Dependencies to place before and after the object being linked:
11231
predep_objects_CXX=
11232
postdep_objects_CXX=
11235
compiler_lib_search_path_CXX=
11237
# Source file extension for C++ test sources.
11240
# Object file extension for compiled C++ test sources.
11244
# Code to be used in simple compile tests
11245
lt_simple_compile_test_code="int some_variable = 0;\n"
11247
# Code to be used in simple link tests
11248
lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
11250
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11252
# If no C compiler was specified, use CC.
11255
# Allow CC to be a program name with arguments.
11259
# Allow CC to be a program name with arguments.
11264
lt_save_with_gnu_ld=$with_gnu_ld
11265
lt_save_path_LD=$lt_cv_path_LD
11266
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11267
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11269
unset lt_cv_prog_gnu_ld
11271
if test -n "${lt_cv_path_LDCXX+set}"; then
11272
lt_cv_path_LD=$lt_cv_path_LDCXX
11274
unset lt_cv_path_LD
11276
test -z "${LDCXX+set}" || LD=$LDCXX
11280
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11282
# We don't want -fno-exception wen compiling C++ code, so set the
11283
# no_builtin_flag separately
11284
if test "$GXX" = yes; then
11285
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11287
lt_prog_compiler_no_builtin_flag_CXX=
11290
if test "$GXX" = yes; then
11291
# Set up default GNU C++ configuration
11294
# Check whether --with-gnu-ld or --without-gnu-ld was given.
11295
if test "${with_gnu_ld+set}" = set; then
11296
withval="$with_gnu_ld"
11297
test "$withval" = no || with_gnu_ld=yes
11302
if test "$GCC" = yes; then
11303
# Check if gcc -print-prog-name=ld gives a path.
11304
echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11305
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
11308
# gcc leaves a trailing carriage return which upsets mingw
11309
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11311
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11314
# Accept absolute paths.
11316
re_direlt='/[^/][^/]*/\.\./'
11317
# Canonicalize the pathname of ld
11318
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11319
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11320
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11322
test -z "$LD" && LD="$ac_prog"
11325
# If it fails, then pretend we aren't using GCC.
11329
# If it is relative, then search for the first ld in PATH.
11330
with_gnu_ld=unknown
11333
elif test "$with_gnu_ld" = yes; then
11334
echo "$as_me:$LINENO: checking for GNU ld" >&5
11335
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
11337
echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11338
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
11340
if test "${lt_cv_path_LD+set}" = set; then
11341
echo $ECHO_N "(cached) $ECHO_C" >&6
11343
if test -z "$LD"; then
11344
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11345
for ac_dir in $PATH; do
11347
test -z "$ac_dir" && ac_dir=.
11348
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11349
lt_cv_path_LD="$ac_dir/$ac_prog"
11350
# Check to see if the program is GNU ld. I'd rather use --version,
11351
# but apparently some GNU ld's only accept -v.
11352
# Break only if it was the GNU/non-GNU ld that we prefer.
11353
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11354
*GNU* | *'with BFD'*)
11355
test "$with_gnu_ld" != no && break
11358
test "$with_gnu_ld" != yes && break
11365
lt_cv_path_LD="$LD" # Let the user override the test with a path.
11369
LD="$lt_cv_path_LD"
11370
if test -n "$LD"; then
11371
echo "$as_me:$LINENO: result: $LD" >&5
11372
echo "${ECHO_T}$LD" >&6
11374
echo "$as_me:$LINENO: result: no" >&5
11375
echo "${ECHO_T}no" >&6
11377
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11378
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11379
{ (exit 1); exit 1; }; }
11380
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11381
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
11382
if test "${lt_cv_prog_gnu_ld+set}" = set; then
11383
echo $ECHO_N "(cached) $ECHO_C" >&6
11385
# I'd rather use --version here, but apparently some GNU ld's only accept -v.
11386
case `$LD -v 2>&1 </dev/null` in
11387
*GNU* | *'with BFD'*)
11388
lt_cv_prog_gnu_ld=yes
11391
lt_cv_prog_gnu_ld=no
11395
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11396
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
11397
with_gnu_ld=$lt_cv_prog_gnu_ld
11401
# Check if GNU C++ uses GNU ld as the underlying linker, since the
11402
# archiving commands below assume that GNU ld is being used.
11403
if test "$with_gnu_ld" = yes; then
11404
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11405
archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11407
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11408
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11410
# If archive_cmds runs LD, not CC, wlarc should be empty
11411
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11412
# investigate it a little bit more. (MM)
11415
# ancient GNU ld didn't support --whole-archive et. al.
11416
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11417
grep 'no-whole-archive' > /dev/null; then
11418
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11420
whole_archive_flag_spec_CXX=
11426
# A generic and very simple default shared library creation
11427
# command for GNU C++ for the case where it uses the native
11428
# linker, instead of GNU ld. If possible, this setting should
11429
# overridden to take advantage of the native linker features on
11430
# the platform it is being used on.
11431
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11434
# Commands to make compiler produce verbose output that lists
11435
# what "hidden" libraries, object files and flags are used when
11436
# linking a shared library.
11437
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11445
# PORTME: fill in a description of your system's C++ link characteristics
11446
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11447
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11451
# FIXME: insert proper C++ library support
11455
if test "$host_cpu" = ia64; then
11456
# On IA64, the linker does run time linking by default, so we don't
11457
# have to do anything special.
11458
aix_use_runtimelinking=no
11459
exp_sym_flag='-Bexport'
11462
aix_use_runtimelinking=no
11464
# Test if we are trying to use run time linking or normal
11465
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11466
# need to do runtime linking.
11467
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11468
for ld_flag in $LDFLAGS; do
11471
aix_use_runtimelinking=yes
11478
exp_sym_flag='-bexport'
11479
no_entry_flag='-bnoentry'
11482
# When large executables or shared objects are built, AIX ld can
11483
# have problems creating the table of contents. If linking a library
11484
# or program results in "error TOC overflow" add -mminimal-toc to
11485
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11486
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11488
archive_cmds_CXX=''
11489
hardcode_direct_CXX=yes
11490
hardcode_libdir_separator_CXX=':'
11491
link_all_deplibs_CXX=yes
11493
if test "$GXX" = yes; then
11494
case $host_os in aix4.012|aix4.012.*)
11495
# We only want to do this on AIX 4.2 and lower, the check
11496
# below for broken collect2 doesn't work under 4.3+
11497
collect2name=`${CC} -print-prog-name=collect2`
11498
if test -f "$collect2name" && \
11499
strings "$collect2name" | grep resolve_lib_name >/dev/null
11501
# We have reworked collect2
11502
hardcode_direct_CXX=yes
11504
# We have old collect2
11505
hardcode_direct_CXX=unsupported
11506
# It fails to find uninstalled libraries when the uninstalled
11507
# path is not listed in the libpath. Setting hardcode_minus_L
11508
# to unsupported forces relinking
11509
hardcode_minus_L_CXX=yes
11510
hardcode_libdir_flag_spec_CXX='-L$libdir'
11511
hardcode_libdir_separator_CXX=
11514
shared_flag='-shared'
11517
if test "$host_cpu" = ia64; then
11518
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11519
# chokes on -Wl,-G. The following line is correct:
11522
if test "$aix_use_runtimelinking" = yes; then
11523
shared_flag='${wl}-G'
11525
shared_flag='${wl}-bM:SRE'
11530
# It seems that -bexpall does not export symbols beginning with
11531
# underscore (_), so it is better to generate a list of symbols to export.
11532
always_export_symbols_CXX=yes
11533
if test "$aix_use_runtimelinking" = yes; then
11534
# Warning - without using the other runtime loading flags (-brtl),
11535
# -berok will link without error, but may produce a broken library.
11536
allow_undefined_flag_CXX='-berok'
11537
# Determine the default libpath from the value encoded in an empty executable.
11538
cat >conftest.$ac_ext <<_ACEOF
11541
cat confdefs.h >>conftest.$ac_ext
11542
cat >>conftest.$ac_ext <<_ACEOF
11543
/* end confdefs.h. */
11553
rm -f conftest.$ac_objext conftest$ac_exeext
11554
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11555
(eval $ac_link) 2>conftest.er1
11557
grep -v '^ *+' conftest.er1 >conftest.err
11559
cat conftest.err >&5
11560
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11561
(exit $ac_status); } &&
11562
{ ac_try='test -z "$ac_cxx_werror_flag"
11563
|| test ! -s conftest.err'
11564
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11565
(eval $ac_try) 2>&5
11567
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11568
(exit $ac_status); }; } &&
11569
{ ac_try='test -s conftest$ac_exeext'
11570
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11571
(eval $ac_try) 2>&5
11573
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11574
(exit $ac_status); }; }; then
11576
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11578
# Check for a 64-bit object if we didn't find anything.
11579
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11582
echo "$as_me: failed program was:" >&5
11583
sed 's/^/| /' conftest.$ac_ext >&5
11586
rm -f conftest.err conftest.$ac_objext \
11587
conftest$ac_exeext conftest.$ac_ext
11588
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11590
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11592
archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11594
if test "$host_cpu" = ia64; then
11595
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11596
allow_undefined_flag_CXX="-z nodefs"
11597
archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
11599
# Determine the default libpath from the value encoded in an empty executable.
11600
cat >conftest.$ac_ext <<_ACEOF
11603
cat confdefs.h >>conftest.$ac_ext
11604
cat >>conftest.$ac_ext <<_ACEOF
11605
/* end confdefs.h. */
11615
rm -f conftest.$ac_objext conftest$ac_exeext
11616
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11617
(eval $ac_link) 2>conftest.er1
11619
grep -v '^ *+' conftest.er1 >conftest.err
11621
cat conftest.err >&5
11622
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11623
(exit $ac_status); } &&
11624
{ ac_try='test -z "$ac_cxx_werror_flag"
11625
|| test ! -s conftest.err'
11626
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11627
(eval $ac_try) 2>&5
11629
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11630
(exit $ac_status); }; } &&
11631
{ ac_try='test -s conftest$ac_exeext'
11632
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11633
(eval $ac_try) 2>&5
11635
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11636
(exit $ac_status); }; }; then
11638
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11640
# Check for a 64-bit object if we didn't find anything.
11641
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11644
echo "$as_me: failed program was:" >&5
11645
sed 's/^/| /' conftest.$ac_ext >&5
11648
rm -f conftest.err conftest.$ac_objext \
11649
conftest$ac_exeext conftest.$ac_ext
11650
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11652
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11653
# Warning - without using the other run time loading flags,
11654
# -berok will link without error, but may produce a broken library.
11655
no_undefined_flag_CXX=' ${wl}-bernotok'
11656
allow_undefined_flag_CXX=' ${wl}-berok'
11657
# -bexpall does not export symbols beginning with underscore (_)
11658
always_export_symbols_CXX=yes
11659
# Exported symbols can be pulled into shared objects from archives
11660
whole_archive_flag_spec_CXX=' '
11661
archive_cmds_need_lc_CXX=yes
11662
# This is similar to how AIX traditionally builds it's shared libraries.
11663
archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11668
case $cc_basename in
11670
# FIXME: insert proper C++ library support
11676
cygwin* | mingw* | pw32*)
11677
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11678
# as there is no search path for DLLs.
11679
hardcode_libdir_flag_spec_CXX='-L$libdir'
11680
allow_undefined_flag_CXX=unsupported
11681
always_export_symbols_CXX=no
11682
enable_shared_with_static_runtimes_CXX=yes
11684
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11685
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
11686
# If the export-symbols file already is a .def file (1st line
11687
# is EXPORTS), use it as is; otherwise, prepend...
11688
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11689
cp $export_symbols $output_objdir/$soname.def;
11691
echo EXPORTS > $output_objdir/$soname.def;
11692
cat $export_symbols >> $output_objdir/$soname.def;
11694
$CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
11700
darwin* | rhapsody*)
11701
if test "$GXX" = yes; then
11702
archive_cmds_need_lc_CXX=no
11704
rhapsody* | darwin1.[012])
11705
allow_undefined_flag_CXX='-undefined suppress'
11708
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11709
allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
11711
case ${MACOSX_DEPLOYMENT_TARGET} in
11713
allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
11716
allow_undefined_flag_CXX='-undefined dynamic_lookup'
11722
lt_int_apple_cc_single_mod=no
11723
output_verbose_link_cmd='echo'
11724
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
11725
lt_int_apple_cc_single_mod=yes
11727
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11728
archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11730
archive_cmds_CXX='$CC -r ${wl}-bind_at_load -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'
11732
module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11734
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
11735
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11736
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}'
11738
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
11740
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}'
11741
hardcode_direct_CXX=no
11742
hardcode_automatic_CXX=yes
11743
hardcode_shlibpath_var_CXX=unsupported
11744
whole_archive_flag_spec_CXX='-all_load $convenience'
11745
link_all_deplibs_CXX=yes
11752
case $cc_basename in
11754
# FIXME: insert proper C++ library support
11758
# Green Hills C++ Compiler
11759
# FIXME: insert proper C++ library support
11763
# FIXME: insert proper C++ library support
11769
# C++ shared libraries reported to be fairly broken before switch to ELF
11773
archive_cmds_need_lc_CXX=no
11775
freebsd* | kfreebsd*-gnu)
11776
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11783
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11784
hardcode_libdir_separator_CXX=:
11785
export_dynamic_flag_spec_CXX='${wl}-E'
11786
hardcode_direct_CXX=yes
11787
hardcode_minus_L_CXX=yes # Not in the search PATH,
11788
# but as the default
11789
# location of the library.
11791
case $cc_basename in
11793
# FIXME: insert proper C++ library support
11797
archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv -f $output_objdir/$soname $lib'
11798
# Commands to make compiler produce verbose output that lists
11799
# what "hidden" libraries, object files and flags are used when
11800
# linking a shared library.
11802
# There doesn't appear to be a way to prevent this compiler from
11803
# explicitly linking system object files so we need to strip them
11804
# from the output so that they don't get included in the library
11806
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11809
if test "$GXX" = yes; then
11810
archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv -f $output_objdir/$soname $lib'
11812
# FIXME: insert proper C++ library support
11819
if test $with_gnu_ld = no; then
11820
case "$host_cpu" in
11822
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11823
hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11824
hardcode_libdir_separator_CXX=:
11827
hardcode_libdir_flag_spec_CXX='-L$libdir'
11830
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11831
hardcode_libdir_separator_CXX=:
11832
export_dynamic_flag_spec_CXX='${wl}-E'
11836
case "$host_cpu" in
11838
hardcode_direct_CXX=no
11839
hardcode_shlibpath_var_CXX=no
11842
hardcode_direct_CXX=no
11843
hardcode_shlibpath_var_CXX=no
11844
hardcode_minus_L_CXX=yes # Not in the search PATH,
11845
# but as the default
11846
# location of the library.
11849
hardcode_direct_CXX=yes
11850
hardcode_minus_L_CXX=yes # Not in the search PATH,
11851
# but as the default
11852
# location of the library.
11856
case $cc_basename in
11858
# FIXME: insert proper C++ library support
11862
case "$host_cpu" in
11864
archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11867
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11870
# Commands to make compiler produce verbose output that lists
11871
# what "hidden" libraries, object files and flags are used when
11872
# linking a shared library.
11874
# There doesn't appear to be a way to prevent this compiler from
11875
# explicitly linking system object files so we need to strip them
11876
# from the output so that they don't get included in the library
11878
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11881
if test "$GXX" = yes; then
11882
if test $with_gnu_ld = no; then
11883
case "$host_cpu" in
11885
archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11888
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11893
# FIXME: insert proper C++ library support
11900
case $cc_basename in
11903
archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
11905
# Archives containing C++ object files must be created using
11906
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
11907
# necessary to make sure instantiated templates are included
11909
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11912
if test "$GXX" = yes; then
11913
if test "$with_gnu_ld" = no; then
11914
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
11916
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
11919
link_all_deplibs_CXX=yes
11922
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11923
hardcode_libdir_separator_CXX=:
11926
case $cc_basename in
11928
# Kuck and Associates, Inc. (KAI) C++ Compiler
11930
# KCC will only create a shared library if the output file
11931
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11932
# to its proper name (with version) after linking.
11933
archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv -f \$templib $lib'
11934
archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv -f \$templib $lib'
11935
# Commands to make compiler produce verbose output that lists
11936
# what "hidden" libraries, object files and flags are used when
11937
# linking a shared library.
11939
# There doesn't appear to be a way to prevent this compiler from
11940
# explicitly linking system object files so we need to strip them
11941
# from the output so that they don't get included in the library
11943
output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11945
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11946
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11948
# Archives containing C++ object files must be created using
11949
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11950
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11955
archive_cmds_need_lc_CXX=no
11956
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11957
archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11958
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11959
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11960
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11964
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11965
archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
11967
runpath_var=LD_RUN_PATH
11968
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11969
hardcode_libdir_separator_CXX=:
11971
# Commands to make compiler produce verbose output that lists
11972
# what "hidden" libraries, object files and flags are used when
11973
# linking a shared library.
11975
# There doesn't appear to be a way to prevent this compiler from
11976
# explicitly linking system object files so we need to strip them
11977
# from the output so that they don't get included in the library
11979
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11984
# FIXME: insert proper C++ library support
11988
# FIXME: insert proper C++ library support
11992
case $cc_basename in
11994
# FIXME: insert proper C++ library support
11998
# FIXME: insert proper C++ library support
12004
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12005
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12007
hardcode_libdir_flag_spec_CXX='-R$libdir'
12008
hardcode_direct_CXX=yes
12009
hardcode_shlibpath_var_CXX=no
12011
# Workaround some broken pre-1.5 toolchains
12012
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12015
case $cc_basename in
12017
# Kuck and Associates, Inc. (KAI) C++ Compiler
12019
# KCC will only create a shared library if the output file
12020
# ends with ".so" (or ".sl" for HP-UX), so rename the library
12021
# to its proper name (with version) after linking.
12022
archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv -f \$templib $lib'
12024
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12025
hardcode_libdir_separator_CXX=:
12027
# Archives containing C++ object files must be created using
12028
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12029
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12033
# Rational C++ 2.4.1
12034
# FIXME: insert proper C++ library support
12038
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12039
archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
12041
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12042
hardcode_libdir_separator_CXX=:
12044
# Commands to make compiler produce verbose output that lists
12045
# what "hidden" libraries, object files and flags are used when
12046
# linking a shared library.
12048
# There doesn't appear to be a way to prevent this compiler from
12049
# explicitly linking system object files so we need to strip them
12050
# from the output so that they don't get included in the library
12052
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12055
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12056
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12057
archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
12059
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12060
hardcode_libdir_separator_CXX=:
12062
# Commands to make compiler produce verbose output that lists
12063
# what "hidden" libraries, object files and flags are used when
12064
# linking a shared library.
12065
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12068
# FIXME: insert proper C++ library support
12075
case $cc_basename in
12077
# Kuck and Associates, Inc. (KAI) C++ Compiler
12079
# KCC will only create a shared library if the output file
12080
# ends with ".so" (or ".sl" for HP-UX), so rename the library
12081
# to its proper name (with version) after linking.
12082
archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv -f \$templib $lib'
12084
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12085
hardcode_libdir_separator_CXX=:
12087
# Archives containing C++ object files must be created using
12088
# the KAI C++ compiler.
12089
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12092
# Rational C++ 2.4.1
12093
# FIXME: insert proper C++ library support
12097
allow_undefined_flag_CXX=' -expect_unresolved \*'
12098
archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
12099
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12100
echo "-hidden">> $lib.exp~
12101
$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
12104
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12105
hardcode_libdir_separator_CXX=:
12107
# Commands to make compiler produce verbose output that lists
12108
# what "hidden" libraries, object files and flags are used when
12109
# linking a shared library.
12111
# There doesn't appear to be a way to prevent this compiler from
12112
# explicitly linking system object files so we need to strip them
12113
# from the output so that they don't get included in the library
12115
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12118
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12119
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12120
archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
12122
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12123
hardcode_libdir_separator_CXX=:
12125
# Commands to make compiler produce verbose output that lists
12126
# what "hidden" libraries, object files and flags are used when
12127
# linking a shared library.
12128
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12131
# FIXME: insert proper C++ library support
12138
# FIXME: insert proper C++ library support
12142
archive_cmds_need_lc_CXX=no
12143
case $cc_basename in
12145
# FIXME: insert proper C++ library support
12149
# FIXME: insert proper C++ library support
12155
case $cc_basename in
12158
# FIXME: insert proper C++ library support
12163
# FIXME: insert proper C++ library support
12167
# FIXME: insert proper C++ library support
12173
case $cc_basename in
12175
# Sun C++ 4.2, 5.x and Centerline C++
12176
no_undefined_flag_CXX=' -zdefs'
12177
archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12178
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12179
$CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12181
hardcode_libdir_flag_spec_CXX='-R$libdir'
12182
hardcode_shlibpath_var_CXX=no
12184
solaris2.0-5 | solaris2.0-5.*) ;;
12186
# The C++ compiler is used as linker so we must use $wl
12187
# flag to pass the commands to the underlying system
12189
# Supported since Solaris 2.6 (maybe 2.5.1?)
12190
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12193
link_all_deplibs_CXX=yes
12195
# Commands to make compiler produce verbose output that lists
12196
# what "hidden" libraries, object files and flags are used when
12197
# linking a shared library.
12199
# There doesn't appear to be a way to prevent this compiler from
12200
# explicitly linking system object files so we need to strip them
12201
# from the output so that they don't get included in the library
12203
output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12205
# Archives containing C++ object files must be created using
12206
# "CC -xar", where "CC" is the Sun C++ compiler. This is
12207
# necessary to make sure instantiated templates are included
12209
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12212
# Green Hills C++ Compiler
12213
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12215
# The C++ compiler must be used to create the archive.
12216
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12219
# GNU C++ compiler with Solaris linker
12220
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12221
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12222
if $CC --version | grep -v '^2\.7' > /dev/null; then
12223
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12224
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12225
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12227
# Commands to make compiler produce verbose output that lists
12228
# what "hidden" libraries, object files and flags are used when
12229
# linking a shared library.
12230
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12232
# g++ 2.7 appears to require `-G' NOT `-shared' on this
12234
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12235
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12236
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12238
# Commands to make compiler produce verbose output that lists
12239
# what "hidden" libraries, object files and flags are used when
12240
# linking a shared library.
12241
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12244
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12249
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
12250
archive_cmds_need_lc_CXX=no
12253
case $cc_basename in
12255
# NonStop-UX NCC 3.20
12256
# FIXME: insert proper C++ library support
12260
# FIXME: insert proper C++ library support
12266
# FIXME: insert proper C++ library support
12270
# FIXME: insert proper C++ library support
12274
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12275
echo "${ECHO_T}$ld_shlibs_CXX" >&6
12276
test "$ld_shlibs_CXX" = no && can_build_shared=no
12282
cat > conftest.$ac_ext <<EOF
12286
Foo (void) { a = 0; }
12292
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12293
(eval $ac_compile) 2>&5
12295
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12296
(exit $ac_status); }; then
12297
# Parse the compiler output and extract the necessary
12298
# objects, libraries and library flags.
12300
# Sentinel used to keep track of whether or not we are before
12301
# the conftest object file.
12302
pre_test_object_deps_done=no
12304
# The `*' in the case matches for architectures that use `case' in
12305
# $output_verbose_cmd can trigger glob expansion during the loop
12306
# eval without this substitution.
12307
output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
12309
for p in `eval $output_verbose_link_cmd`; do
12313
# Some compilers place space between "-{L,R}" and the path.
12314
# Remove the space.
12315
if test $p = "-L" \
12316
|| test $p = "-R"; then
12323
if test "$pre_test_object_deps_done" = no; then
12326
# Internal compiler library paths should come after those
12327
# provided the user. The postdeps already come after the
12328
# user supplied libs so there is no need to process them.
12329
if test -z "$compiler_lib_search_path_CXX"; then
12330
compiler_lib_search_path_CXX="${prev}${p}"
12332
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12335
# The "-l" case would never come before the object being
12336
# linked, so don't bother handling this case.
12339
if test -z "$postdeps_CXX"; then
12340
postdeps_CXX="${prev}${p}"
12342
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12348
# This assumes that the test object file only shows up
12349
# once in the compiler output.
12350
if test "$p" = "conftest.$objext"; then
12351
pre_test_object_deps_done=yes
12355
if test "$pre_test_object_deps_done" = no; then
12356
if test -z "$predep_objects_CXX"; then
12357
predep_objects_CXX="$p"
12359
predep_objects_CXX="$predep_objects_CXX $p"
12362
if test -z "$postdep_objects_CXX"; then
12363
postdep_objects_CXX="$p"
12365
postdep_objects_CXX="$postdep_objects_CXX $p"
12370
*) ;; # Ignore the rest.
12378
echo "libtool.m4: error: problem compiling CXX test program"
12381
$rm -f confest.$objext
12383
case " $postdeps_CXX " in
12384
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12387
lt_prog_compiler_wl_CXX=
12388
lt_prog_compiler_pic_CXX=
12389
lt_prog_compiler_static_CXX=
12391
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12392
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12394
# C++ specific cases for pic, static, wl, etc.
12395
if test "$GXX" = yes; then
12396
lt_prog_compiler_wl_CXX='-Wl,'
12397
lt_prog_compiler_static_CXX='-static'
12401
# All AIX code is PIC.
12402
if test "$host_cpu" = ia64; then
12403
# AIX 5 now supports IA64 processor
12404
lt_prog_compiler_static_CXX='-Bstatic'
12408
# FIXME: we need at least 68020 code to build shared libraries, but
12409
# adding the `-m68020' flag to GCC prevents building anything better,
12411
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12413
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12414
# PIC is the default for these OSes.
12416
mingw* | os2* | pw32*)
12417
# This hack is so that the source file can tell whether it is being
12418
# built for inclusion in a dll (and should export symbols for example).
12419
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12421
darwin* | rhapsody*)
12422
# PIC is the default on this platform
12423
# Common symbols not allowed in MH_DYLIB files
12424
lt_prog_compiler_pic_CXX='-fno-common'
12427
# DJGPP does not support shared libraries at all
12428
lt_prog_compiler_pic_CXX=
12431
if test -d /usr/nec; then
12432
lt_prog_compiler_pic_CXX=-Kconform_pic
12436
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12437
# not for PA HP-UX.
12438
case "$host_cpu" in
12442
lt_prog_compiler_pic_CXX='-fPIC'
12447
lt_prog_compiler_pic_CXX='-fPIC'
12453
# All AIX code is PIC.
12454
if test "$host_cpu" = ia64; then
12455
# AIX 5 now supports IA64 processor
12456
lt_prog_compiler_static_CXX='-Bstatic'
12458
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12462
case $cc_basename in
12464
# Green Hills C++ Compiler
12465
# _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
12470
case $cc_basename in
12472
lt_prog_compiler_pic_CXX='-KPIC'
12475
# Green Hills C++ Compiler
12476
lt_prog_compiler_pic_CXX='-pic'
12482
freebsd* | kfreebsd*-gnu)
12483
# FreeBSD uses GNU C++
12485
hpux9* | hpux10* | hpux11*)
12486
case $cc_basename in
12488
lt_prog_compiler_wl_CXX='-Wl,'
12489
lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
12490
if test "$host_cpu" != ia64; then
12491
lt_prog_compiler_pic_CXX='+Z'
12495
lt_prog_compiler_wl_CXX='-Wl,'
12496
lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
12497
case "$host_cpu" in
12502
lt_prog_compiler_pic_CXX='+Z'
12510
irix5* | irix6* | nonstopux*)
12511
case $cc_basename in
12513
lt_prog_compiler_wl_CXX='-Wl,'
12514
lt_prog_compiler_static_CXX='-non_shared'
12515
# CC pic flag -KPIC is the default.
12522
case $cc_basename in
12525
lt_prog_compiler_wl_CXX='--backend -Wl,'
12526
lt_prog_compiler_pic_CXX='-fPIC'
12530
lt_prog_compiler_wl_CXX='-Wl,'
12531
lt_prog_compiler_pic_CXX='-KPIC'
12532
lt_prog_compiler_static_CXX='-static'
12536
# Make sure the PIC flag is empty. It appears that all Alpha
12537
# Linux and Compaq Tru64 Unix objects are PIC.
12538
lt_prog_compiler_pic_CXX=
12539
lt_prog_compiler_static_CXX='-non_shared'
12550
case $cc_basename in
12552
lt_prog_compiler_pic_CXX='-W c,exportall'
12560
osf3* | osf4* | osf5*)
12561
case $cc_basename in
12563
lt_prog_compiler_wl_CXX='--backend -Wl,'
12566
# Rational C++ 2.4.1
12567
lt_prog_compiler_pic_CXX='-pic'
12570
# Digital/Compaq C++
12571
lt_prog_compiler_wl_CXX='-Wl,'
12572
# Make sure the PIC flag is empty. It appears that all Alpha
12573
# Linux and Compaq Tru64 Unix objects are PIC.
12574
lt_prog_compiler_pic_CXX=
12575
lt_prog_compiler_static_CXX='-non_shared'
12584
case $cc_basename in
12586
lt_prog_compiler_pic_CXX='-fPIC'
12593
case $cc_basename in
12595
# Sun C++ 4.2, 5.x and Centerline C++
12596
lt_prog_compiler_pic_CXX='-KPIC'
12597
lt_prog_compiler_static_CXX='-Bstatic'
12598
lt_prog_compiler_wl_CXX='-Qoption ld '
12601
# Green Hills C++ Compiler
12602
lt_prog_compiler_pic_CXX='-PIC'
12609
case $cc_basename in
12612
lt_prog_compiler_pic_CXX='-pic'
12613
lt_prog_compiler_static_CXX='-Bstatic'
12617
lt_prog_compiler_pic_CXX='-pic'
12624
case $cc_basename in
12626
# NonStop-UX NCC 3.20
12627
lt_prog_compiler_pic_CXX='-KPIC'
12638
lt_prog_compiler_can_build_shared_CXX=no
12643
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12644
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
12647
# Check to make sure the PIC flag actually works.
12649
if test -n "$lt_prog_compiler_pic_CXX"; then
12651
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12652
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
12653
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12654
echo $ECHO_N "(cached) $ECHO_C" >&6
12656
lt_prog_compiler_pic_works_CXX=no
12657
ac_outfile=conftest.$ac_objext
12658
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12659
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12660
# Insert the option either (1) after the last *FLAGS variable, or
12661
# (2) before a word containing "conftest.", or (3) at the end.
12662
# Note that $ac_compile itself does not contain backslashes and begins
12663
# with a dollar sign (not a hyphen), so the echo should work correctly.
12664
# The option is referenced via a variable to avoid confusing sed.
12665
lt_compile=`echo "$ac_compile" | $SED \
12666
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12667
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12668
-e 's:$: $lt_compiler_flag:'`
12669
(eval echo "\"\$as_me:12669: $lt_compile\"" >&5)
12670
(eval "$lt_compile" 2>conftest.err)
12672
cat conftest.err >&5
12673
echo "$as_me:12673: \$? = $ac_status" >&5
12674
if (exit $ac_status) && test -s "$ac_outfile"; then
12675
# The compiler can only warn and ignore the option if not recognized
12676
# So say no if there are warnings
12677
if test ! -s conftest.err; then
12678
lt_prog_compiler_pic_works_CXX=yes
12684
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12685
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
12687
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12688
case $lt_prog_compiler_pic_CXX in
12690
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12693
lt_prog_compiler_pic_CXX=
12694
lt_prog_compiler_can_build_shared_CXX=no
12699
# For platforms which do not support PIC, -DPIC is meaningless:
12701
lt_prog_compiler_pic_CXX=
12704
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12708
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12709
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12710
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12711
echo $ECHO_N "(cached) $ECHO_C" >&6
12713
lt_cv_prog_compiler_c_o_CXX=no
12714
$rm -r conftest 2>/dev/null
12718
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12720
lt_compiler_flag="-o out/conftest2.$ac_objext"
12721
# Insert the option either (1) after the last *FLAGS variable, or
12722
# (2) before a word containing "conftest.", or (3) at the end.
12723
# Note that $ac_compile itself does not contain backslashes and begins
12724
# with a dollar sign (not a hyphen), so the echo should work correctly.
12725
lt_compile=`echo "$ac_compile" | $SED \
12726
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12727
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12728
-e 's:$: $lt_compiler_flag:'`
12729
(eval echo "\"\$as_me:12729: $lt_compile\"" >&5)
12730
(eval "$lt_compile" 2>out/conftest.err)
12732
cat out/conftest.err >&5
12733
echo "$as_me:12733: \$? = $ac_status" >&5
12734
if (exit $ac_status) && test -s out/conftest2.$ac_objext
12736
# The compiler can only warn and ignore the option if not recognized
12737
# So say no if there are warnings
12738
if test ! -s out/conftest.err; then
12739
lt_cv_prog_compiler_c_o_CXX=yes
12744
# SGI C++ compiler will create directory out/ii_files/ for
12745
# template instantiation
12746
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12747
$rm out/* && rmdir out
12753
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12754
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
12757
hard_links="nottested"
12758
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12759
# do not overwrite the value of need_locks provided by the user
12760
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12761
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12764
ln conftest.a conftest.b 2>/dev/null && hard_links=no
12766
ln conftest.a conftest.b 2>&5 || hard_links=no
12767
ln conftest.a conftest.b 2>/dev/null && hard_links=no
12768
echo "$as_me:$LINENO: result: $hard_links" >&5
12769
echo "${ECHO_T}$hard_links" >&6
12770
if test "$hard_links" = no; then
12771
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12772
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12779
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12780
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12782
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12785
# If we're using GNU nm, then we don't want the "-C" option.
12786
# -C means demangle to AIX nm, but means don't demangle with GNU nm
12787
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12788
export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12790
export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12794
export_symbols_cmds_CXX="$ltdll_cmds"
12797
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12800
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12804
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12805
echo "${ECHO_T}$ld_shlibs_CXX" >&6
12806
test "$ld_shlibs_CXX" = no && can_build_shared=no
12808
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12809
if test "$GCC" = yes; then
12810
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12814
# Do we need to explicitly link libc?
12816
case "x$archive_cmds_need_lc_CXX" in
12818
# Assume -lc should be added
12819
archive_cmds_need_lc_CXX=yes
12821
if test "$enable_shared" = yes && test "$GCC" = yes; then
12822
case $archive_cmds_CXX in
12824
# FIXME: we may have to deal with multi-command sequences.
12827
# Test whether the compiler implicitly links with -lc since on some
12828
# systems, -lgcc has to come before -lc. If gcc already passes -lc
12829
# to ld, don't add -lc before -lgcc.
12830
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12831
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12833
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12835
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12836
(eval $ac_compile) 2>&5
12838
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12839
(exit $ac_status); } 2>conftest.err; then
12842
libobjs=conftest.$ac_objext
12844
wl=$lt_prog_compiler_wl_CXX
12850
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12851
allow_undefined_flag_CXX=
12852
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12853
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12855
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12856
(exit $ac_status); }
12858
archive_cmds_need_lc_CXX=no
12860
archive_cmds_need_lc_CXX=yes
12862
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12864
cat conftest.err 1>&5
12867
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12868
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
12875
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12876
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12877
library_names_spec=
12878
libname_spec='lib$name'
12882
postuninstall_cmds=
12886
shlibpath_overrides_runpath=unknown
12888
dynamic_linker="$host_os ld.so"
12889
sys_lib_dlsearch_path_spec="/lib /usr/lib"
12890
if test "$GCC" = yes; then
12891
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12892
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12893
# if the path contains ";" then we assume it to be the separator
12894
# otherwise default to the standard path separator (i.e. ":") - it is
12895
# assumed that no part of a normal pathname contains ";" but that should
12896
# okay in the real world where ";" in dirpaths is itself problematic.
12897
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12899
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12902
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12904
need_lib_prefix=unknown
12905
hardcode_into_libs=no
12907
# when you set need_version to no, make sure it does not cause -set_version
12908
# flags to be left without arguments
12909
need_version=unknown
12914
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12915
shlibpath_var=LIBPATH
12917
# AIX 3 has no versioning support, so we append a major version to the name.
12918
soname_spec='${libname}${release}${shared_ext}$major'
12925
hardcode_into_libs=yes
12926
if test "$host_cpu" = ia64; then
12927
# AIX 5 supports IA64
12928
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12929
shlibpath_var=LD_LIBRARY_PATH
12931
# With GCC up to 2.95.x, collect2 would create an import file
12932
# for dependence libraries. The import file would start with
12933
# the line `#! .'. This would cause the generated library to
12934
# depend on `.', always an invalid library. This was fixed in
12935
# development snapshots of GCC prior to 3.0.
12937
aix4 | aix4.[01] | aix4.[01].*)
12938
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12940
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12943
can_build_shared=no
12947
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12948
# soname into executable. Probably we can add versioning support to
12949
# collect2, so additional links can be useful in future.
12950
if test "$aix_use_runtimelinking" = yes; then
12951
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
12952
# instead of lib<name>.a to let people know that these are not
12953
# typical AIX shared libraries.
12954
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12956
# We preserve .a as extension for shared libraries through AIX4.2
12957
# and later when we are not doing run time linking.
12958
library_names_spec='${libname}${release}.a $libname.a'
12959
soname_spec='${libname}${release}${shared_ext}$major'
12961
shlibpath_var=LIBPATH
12966
library_names_spec='$libname.ixlibrary $libname.a'
12967
# Create ${libname}_ixlibrary.a entries in /sys/libs.
12968
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
12972
library_names_spec='${libname}${shared_ext}'
12973
dynamic_linker="$host_os ld.so"
12974
shlibpath_var=LIBRARY_PATH
12980
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12981
soname_spec='${libname}${release}${shared_ext}$major'
12982
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12983
shlibpath_var=LD_LIBRARY_PATH
12984
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12985
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12986
# the default ld.so.conf also contains /usr/contrib/lib and
12987
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12988
# libtool to hard-code these into programs
12991
cygwin* | mingw* | pw32*)
12992
version_type=windows
12997
case $GCC,$host_os in
12998
yes,cygwin* | yes,mingw* | yes,pw32*)
12999
library_names_spec='$libname.dll.a'
13000
# DLL is installed to $(libdir)/../bin by postinstall_cmds
13001
postinstall_cmds='base_file=`basename \${file}`~
13002
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13003
dldir=$destdir/`dirname \$dlpath`~
13004
test -d \$dldir || mkdir -p \$dldir~
13005
$install_prog $dir/$dlname \$dldir/$dlname'
13006
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13007
dlpath=$dir/\$dldll~
13009
shlibpath_overrides_runpath=yes
13013
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
13014
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13015
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13018
# MinGW DLLs use traditional 'lib' prefix
13019
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13020
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13021
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13022
# It is most probably a Windows format PATH printed by
13023
# mingw gcc, but we are running on Cygwin. Gcc prints its search
13024
# path with ; separators, and with drive letters. We can handle the
13025
# drive letters (cygwin fileutils understands them), so leave them,
13026
# especially as we might pass files found there to a mingw objdump,
13027
# which wouldn't understand a cygwinified path. Ahh.
13028
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13030
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13034
# pw32 DLLs use 'pw' prefix rather than 'lib'
13035
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13041
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13044
dynamic_linker='Win32 ld.exe'
13045
# FIXME: first we should search . and the directory the executable is in
13049
darwin* | rhapsody*)
13050
dynamic_linker="$host_os dyld"
13051
version_type=darwin
13054
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13055
soname_spec='${libname}${release}${major}$shared_ext'
13056
shlibpath_overrides_runpath=yes
13057
shlibpath_var=DYLD_LIBRARY_PATH
13058
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13059
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13060
if test "$GCC" = yes; then
13061
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
13063
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13065
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13072
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13073
soname_spec='${libname}${release}${shared_ext}$major'
13074
shlibpath_var=LD_LIBRARY_PATH
13085
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13086
soname_spec='${libname}${release}${shared_ext}$major'
13087
shlibpath_var=LD_LIBRARY_PATH
13088
shlibpath_overrides_runpath=no
13089
hardcode_into_libs=yes
13090
dynamic_linker='GNU ld.so'
13094
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13095
version_type=freebsd-$objformat
13096
case $version_type in
13098
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13103
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13107
shlibpath_var=LD_LIBRARY_PATH
13110
shlibpath_overrides_runpath=yes
13112
freebsd3.01* | freebsdelf3.01*)
13113
shlibpath_overrides_runpath=yes
13114
hardcode_into_libs=yes
13117
shlibpath_overrides_runpath=no
13118
hardcode_into_libs=yes
13127
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13128
soname_spec='${libname}${release}${shared_ext}$major'
13129
shlibpath_var=LD_LIBRARY_PATH
13130
hardcode_into_libs=yes
13133
hpux9* | hpux10* | hpux11*)
13134
# Give a soname corresponding to the major version so that dld.sl refuses to
13135
# link against other versions.
13139
case "$host_cpu" in
13142
hardcode_into_libs=yes
13143
dynamic_linker="$host_os dld.so"
13144
shlibpath_var=LD_LIBRARY_PATH
13145
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13146
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13147
soname_spec='${libname}${release}${shared_ext}$major'
13148
if test "X$HPUX_IA64_MODE" = X32; then
13149
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13151
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13153
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13157
hardcode_into_libs=yes
13158
dynamic_linker="$host_os dld.sl"
13159
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13160
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13161
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13162
soname_spec='${libname}${release}${shared_ext}$major'
13163
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13164
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13168
dynamic_linker="$host_os dld.sl"
13169
shlibpath_var=SHLIB_PATH
13170
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13171
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13172
soname_spec='${libname}${release}${shared_ext}$major'
13175
# HP-UX runs *really* slowly unless shared libraries are mode 555.
13176
postinstall_cmds='chmod 555 $lib'
13179
irix5* | irix6* | nonstopux*)
13181
nonstopux*) version_type=nonstopux ;;
13183
if test "$lt_cv_prog_gnu_ld" = yes; then
13191
soname_spec='${libname}${release}${shared_ext}$major'
13192
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13194
irix5* | nonstopux*)
13195
libsuff= shlibsuff=
13198
case $LD in # libtool.m4 will add one of these switches to LD
13199
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13200
libsuff= shlibsuff= libmagic=32-bit;;
13201
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13202
libsuff=32 shlibsuff=N32 libmagic=N32;;
13203
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13204
libsuff=64 shlibsuff=64 libmagic=64-bit;;
13205
*) libsuff= shlibsuff= libmagic=never-match;;
13209
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13210
shlibpath_overrides_runpath=no
13211
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13212
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13213
hardcode_into_libs=yes
13216
# No shared lib support for Linux oldld, aout, or coff.
13217
linux*oldld* | linux*aout* | linux*coff*)
13221
# This must be Linux ELF.
13226
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13227
soname_spec='${libname}${release}${shared_ext}$major'
13228
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13229
shlibpath_var=LD_LIBRARY_PATH
13230
shlibpath_overrides_runpath=no
13231
# This implies no fast_install, which is unacceptable.
13232
# Some rework will be needed to allow for fast_install
13233
# before this can be enabled.
13234
hardcode_into_libs=yes
13236
# Append ld.so.conf contents to the search path
13237
if test -f /etc/ld.so.conf; then
13238
lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13239
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13242
# We used to test for /lib/ld.so.1 and disable shared libraries on
13243
# powerpc, because MkLinux only supported shared libraries with the
13244
# GNU dynamic linker. Since this was broken with cross compilers,
13245
# most powerpc-linux boxes support dynamic linking these days and
13246
# people can always --disable-shared, the test was removed, and we
13247
# assume the GNU/Linux dynamic linker is in use.
13248
dynamic_linker='GNU/Linux ld.so'
13255
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13256
soname_spec='${libname}${release}${shared_ext}$major'
13257
shlibpath_var=LD_LIBRARY_PATH
13258
shlibpath_overrides_runpath=no
13259
hardcode_into_libs=yes
13260
dynamic_linker='GNU ld.so'
13267
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13268
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13269
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13270
dynamic_linker='NetBSD (a.out) ld.so'
13272
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13273
soname_spec='${libname}${release}${shared_ext}$major'
13274
dynamic_linker='NetBSD ld.elf_so'
13276
shlibpath_var=LD_LIBRARY_PATH
13277
shlibpath_overrides_runpath=yes
13278
hardcode_into_libs=yes
13283
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13284
shlibpath_var=LD_LIBRARY_PATH
13285
shlibpath_overrides_runpath=yes
13292
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13293
soname_spec='${libname}${release}${shared_ext}$major'
13294
shlibpath_var=LD_LIBRARY_PATH
13295
shlibpath_overrides_runpath=yes
13302
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13303
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13304
shlibpath_var=LD_LIBRARY_PATH
13305
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13307
openbsd2.[89] | openbsd2.[89].*)
13308
shlibpath_overrides_runpath=no
13311
shlibpath_overrides_runpath=yes
13315
shlibpath_overrides_runpath=yes
13320
libname_spec='$name'
13323
library_names_spec='$libname${shared_ext} $libname.a'
13324
dynamic_linker='OS/2 ld.exe'
13325
shlibpath_var=LIBPATH
13328
osf3* | osf4* | osf5*)
13332
soname_spec='${libname}${release}${shared_ext}$major'
13333
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13334
shlibpath_var=LD_LIBRARY_PATH
13335
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13336
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13341
soname_spec='${libname}${release}${shared_ext}$major'
13342
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13343
shlibpath_var=LD_LIBRARY_PATH
13350
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13351
soname_spec='${libname}${release}${shared_ext}$major'
13352
shlibpath_var=LD_LIBRARY_PATH
13353
shlibpath_overrides_runpath=yes
13354
hardcode_into_libs=yes
13355
# ldd complains unless libraries are executable
13356
postinstall_cmds='chmod +x $lib'
13361
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13362
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13363
shlibpath_var=LD_LIBRARY_PATH
13364
shlibpath_overrides_runpath=yes
13365
if test "$with_gnu_ld" = yes; then
13371
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13373
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13374
soname_spec='${libname}${release}${shared_ext}$major'
13375
shlibpath_var=LD_LIBRARY_PATH
13376
case $host_vendor in
13378
shlibpath_overrides_runpath=no
13380
export_dynamic_flag_spec='${wl}-Blargedynsym'
13381
runpath_var=LD_RUN_PATH
13389
shlibpath_overrides_runpath=no
13390
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13396
if test -d /usr/nec ;then
13398
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13399
soname_spec='$libname${shared_ext}.$major'
13400
shlibpath_var=LD_LIBRARY_PATH
13406
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13407
soname_spec='${libname}${release}${shared_ext}$major'
13408
shlibpath_var=LD_LIBRARY_PATH
13415
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13416
echo "${ECHO_T}$dynamic_linker" >&6
13417
test "$dynamic_linker" = no && can_build_shared=no
13419
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13420
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13421
hardcode_action_CXX=
13422
if test -n "$hardcode_libdir_flag_spec_CXX" || \
13423
test -n "$runpath_var CXX" || \
13424
test "X$hardcode_automatic_CXX"="Xyes" ; then
13426
# We can hardcode non-existant directories.
13427
if test "$hardcode_direct_CXX" != no &&
13428
# If the only mechanism to avoid hardcoding is shlibpath_var, we
13429
# have to relink, otherwise we might link with an installed library
13430
# when we should be linking with a yet-to-be-installed one
13431
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13432
test "$hardcode_minus_L_CXX" != no; then
13433
# Linking always hardcodes the temporary library directory.
13434
hardcode_action_CXX=relink
13436
# We can link without hardcoding, and we can hardcode nonexisting dirs.
13437
hardcode_action_CXX=immediate
13440
# We cannot hardcode anything, or else we can only hardcode existing
13442
hardcode_action_CXX=unsupported
13444
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13445
echo "${ECHO_T}$hardcode_action_CXX" >&6
13447
if test "$hardcode_action_CXX" = relink; then
13448
# Fast installation is not supported
13449
enable_fast_install=no
13450
elif test "$shlibpath_overrides_runpath" = yes ||
13451
test "$enable_shared" = no; then
13452
# Fast installation is not necessary
13453
enable_fast_install=needless
13458
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13459
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13460
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13461
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13462
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13463
echo "$as_me:$LINENO: result: yes" >&5
13464
echo "${ECHO_T}yes" >&6
13466
# FIXME - insert some real tests, host_os isn't really good enough
13469
if test -n "$STRIP" ; then
13470
striplib="$STRIP -x"
13471
echo "$as_me:$LINENO: result: yes" >&5
13472
echo "${ECHO_T}yes" >&6
13474
echo "$as_me:$LINENO: result: no" >&5
13475
echo "${ECHO_T}no" >&6
13479
echo "$as_me:$LINENO: result: no" >&5
13480
echo "${ECHO_T}no" >&6
13485
if test "x$enable_dlopen" != xyes; then
13486
enable_dlopen=unknown
13487
enable_dlopen_self=unknown
13488
enable_dlopen_self_static=unknown
13495
lt_cv_dlopen="load_add_on"
13497
lt_cv_dlopen_self=yes
13501
lt_cv_dlopen="LoadLibrary"
13506
lt_cv_dlopen="dlopen"
13511
# if libdl is installed we need to link against it
13512
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13513
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13514
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13515
echo $ECHO_N "(cached) $ECHO_C" >&6
13517
ac_check_lib_save_LIBS=$LIBS
13519
cat >conftest.$ac_ext <<_ACEOF
13522
cat confdefs.h >>conftest.$ac_ext
13523
cat >>conftest.$ac_ext <<_ACEOF
13524
/* end confdefs.h. */
13526
/* Override any gcc2 internal prototype to avoid an error. */
13530
/* We use char because int might match the return type of a gcc2
13531
builtin and then its argument prototype would still apply. */
13541
rm -f conftest.$ac_objext conftest$ac_exeext
13542
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13543
(eval $ac_link) 2>conftest.er1
13545
grep -v '^ *+' conftest.er1 >conftest.err
13547
cat conftest.err >&5
13548
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13549
(exit $ac_status); } &&
13550
{ ac_try='test -z "$ac_cxx_werror_flag"
13551
|| test ! -s conftest.err'
13552
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13553
(eval $ac_try) 2>&5
13555
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13556
(exit $ac_status); }; } &&
13557
{ ac_try='test -s conftest$ac_exeext'
13558
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13559
(eval $ac_try) 2>&5
13561
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13562
(exit $ac_status); }; }; then
13563
ac_cv_lib_dl_dlopen=yes
13565
echo "$as_me: failed program was:" >&5
13566
sed 's/^/| /' conftest.$ac_ext >&5
13568
ac_cv_lib_dl_dlopen=no
13570
rm -f conftest.err conftest.$ac_objext \
13571
conftest$ac_exeext conftest.$ac_ext
13572
LIBS=$ac_check_lib_save_LIBS
13574
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13575
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13576
if test $ac_cv_lib_dl_dlopen = yes; then
13577
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13580
lt_cv_dlopen="dyld"
13582
lt_cv_dlopen_self=yes
13589
echo "$as_me:$LINENO: checking for shl_load" >&5
13590
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13591
if test "${ac_cv_func_shl_load+set}" = set; then
13592
echo $ECHO_N "(cached) $ECHO_C" >&6
13594
cat >conftest.$ac_ext <<_ACEOF
13597
cat confdefs.h >>conftest.$ac_ext
13598
cat >>conftest.$ac_ext <<_ACEOF
13599
/* end confdefs.h. */
13600
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13601
For example, HP-UX 11i <limits.h> declares gettimeofday. */
13602
#define shl_load innocuous_shl_load
13604
/* System header to define __stub macros and hopefully few prototypes,
13605
which can conflict with char shl_load (); below.
13606
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13607
<limits.h> exists even on freestanding compilers. */
13610
# include <limits.h>
13612
# include <assert.h>
13617
/* Override any gcc2 internal prototype to avoid an error. */
13622
/* We use char because int might match the return type of a gcc2
13623
builtin and then its argument prototype would still apply. */
13625
/* The GNU C library defines this for functions which it implements
13626
to always fail with ENOSYS. Some functions are actually named
13627
something starting with __ and the normal name is an alias. */
13628
#if defined (__stub_shl_load) || defined (__stub___shl_load)
13631
char (*f) () = shl_load;
13640
return f != shl_load;
13645
rm -f conftest.$ac_objext conftest$ac_exeext
13646
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13647
(eval $ac_link) 2>conftest.er1
13649
grep -v '^ *+' conftest.er1 >conftest.err
13651
cat conftest.err >&5
13652
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13653
(exit $ac_status); } &&
13654
{ ac_try='test -z "$ac_cxx_werror_flag"
13655
|| test ! -s conftest.err'
13656
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13657
(eval $ac_try) 2>&5
13659
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13660
(exit $ac_status); }; } &&
13661
{ ac_try='test -s conftest$ac_exeext'
13662
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13663
(eval $ac_try) 2>&5
13665
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13666
(exit $ac_status); }; }; then
13667
ac_cv_func_shl_load=yes
13669
echo "$as_me: failed program was:" >&5
13670
sed 's/^/| /' conftest.$ac_ext >&5
13672
ac_cv_func_shl_load=no
13674
rm -f conftest.err conftest.$ac_objext \
13675
conftest$ac_exeext conftest.$ac_ext
13677
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13678
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13679
if test $ac_cv_func_shl_load = yes; then
13680
lt_cv_dlopen="shl_load"
13682
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13683
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13684
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13685
echo $ECHO_N "(cached) $ECHO_C" >&6
13687
ac_check_lib_save_LIBS=$LIBS
13689
cat >conftest.$ac_ext <<_ACEOF
13692
cat confdefs.h >>conftest.$ac_ext
13693
cat >>conftest.$ac_ext <<_ACEOF
13694
/* end confdefs.h. */
13696
/* Override any gcc2 internal prototype to avoid an error. */
13700
/* We use char because int might match the return type of a gcc2
13701
builtin and then its argument prototype would still apply. */
13711
rm -f conftest.$ac_objext conftest$ac_exeext
13712
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13713
(eval $ac_link) 2>conftest.er1
13715
grep -v '^ *+' conftest.er1 >conftest.err
13717
cat conftest.err >&5
13718
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13719
(exit $ac_status); } &&
13720
{ ac_try='test -z "$ac_cxx_werror_flag"
13721
|| test ! -s conftest.err'
13722
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13723
(eval $ac_try) 2>&5
13725
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13726
(exit $ac_status); }; } &&
13727
{ ac_try='test -s conftest$ac_exeext'
13728
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13729
(eval $ac_try) 2>&5
13731
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13732
(exit $ac_status); }; }; then
13733
ac_cv_lib_dld_shl_load=yes
13735
echo "$as_me: failed program was:" >&5
13736
sed 's/^/| /' conftest.$ac_ext >&5
13738
ac_cv_lib_dld_shl_load=no
13740
rm -f conftest.err conftest.$ac_objext \
13741
conftest$ac_exeext conftest.$ac_ext
13742
LIBS=$ac_check_lib_save_LIBS
13744
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13745
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
13746
if test $ac_cv_lib_dld_shl_load = yes; then
13747
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13749
echo "$as_me:$LINENO: checking for dlopen" >&5
13750
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
13751
if test "${ac_cv_func_dlopen+set}" = set; then
13752
echo $ECHO_N "(cached) $ECHO_C" >&6
13754
cat >conftest.$ac_ext <<_ACEOF
13757
cat confdefs.h >>conftest.$ac_ext
13758
cat >>conftest.$ac_ext <<_ACEOF
13759
/* end confdefs.h. */
13760
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13761
For example, HP-UX 11i <limits.h> declares gettimeofday. */
13762
#define dlopen innocuous_dlopen
13764
/* System header to define __stub macros and hopefully few prototypes,
13765
which can conflict with char dlopen (); below.
13766
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13767
<limits.h> exists even on freestanding compilers. */
13770
# include <limits.h>
13772
# include <assert.h>
13777
/* Override any gcc2 internal prototype to avoid an error. */
13782
/* We use char because int might match the return type of a gcc2
13783
builtin and then its argument prototype would still apply. */
13785
/* The GNU C library defines this for functions which it implements
13786
to always fail with ENOSYS. Some functions are actually named
13787
something starting with __ and the normal name is an alias. */
13788
#if defined (__stub_dlopen) || defined (__stub___dlopen)
13791
char (*f) () = dlopen;
13800
return f != dlopen;
13805
rm -f conftest.$ac_objext conftest$ac_exeext
13806
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13807
(eval $ac_link) 2>conftest.er1
13809
grep -v '^ *+' conftest.er1 >conftest.err
13811
cat conftest.err >&5
13812
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13813
(exit $ac_status); } &&
13814
{ ac_try='test -z "$ac_cxx_werror_flag"
13815
|| test ! -s conftest.err'
13816
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13817
(eval $ac_try) 2>&5
13819
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13820
(exit $ac_status); }; } &&
13821
{ ac_try='test -s conftest$ac_exeext'
13822
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13823
(eval $ac_try) 2>&5
13825
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13826
(exit $ac_status); }; }; then
13827
ac_cv_func_dlopen=yes
13829
echo "$as_me: failed program was:" >&5
13830
sed 's/^/| /' conftest.$ac_ext >&5
13832
ac_cv_func_dlopen=no
13834
rm -f conftest.err conftest.$ac_objext \
13835
conftest$ac_exeext conftest.$ac_ext
13837
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13838
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
13839
if test $ac_cv_func_dlopen = yes; then
13840
lt_cv_dlopen="dlopen"
13842
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13843
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13844
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13845
echo $ECHO_N "(cached) $ECHO_C" >&6
13847
ac_check_lib_save_LIBS=$LIBS
13849
cat >conftest.$ac_ext <<_ACEOF
13852
cat confdefs.h >>conftest.$ac_ext
13853
cat >>conftest.$ac_ext <<_ACEOF
13854
/* end confdefs.h. */
13856
/* Override any gcc2 internal prototype to avoid an error. */
13860
/* We use char because int might match the return type of a gcc2
13861
builtin and then its argument prototype would still apply. */
13871
rm -f conftest.$ac_objext conftest$ac_exeext
13872
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13873
(eval $ac_link) 2>conftest.er1
13875
grep -v '^ *+' conftest.er1 >conftest.err
13877
cat conftest.err >&5
13878
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13879
(exit $ac_status); } &&
13880
{ ac_try='test -z "$ac_cxx_werror_flag"
13881
|| test ! -s conftest.err'
13882
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13883
(eval $ac_try) 2>&5
13885
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13886
(exit $ac_status); }; } &&
13887
{ ac_try='test -s conftest$ac_exeext'
13888
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13889
(eval $ac_try) 2>&5
13891
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13892
(exit $ac_status); }; }; then
13893
ac_cv_lib_dl_dlopen=yes
13895
echo "$as_me: failed program was:" >&5
13896
sed 's/^/| /' conftest.$ac_ext >&5
13898
ac_cv_lib_dl_dlopen=no
13900
rm -f conftest.err conftest.$ac_objext \
13901
conftest$ac_exeext conftest.$ac_ext
13902
LIBS=$ac_check_lib_save_LIBS
13904
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13905
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13906
if test $ac_cv_lib_dl_dlopen = yes; then
13907
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13909
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
13910
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
13911
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
13912
echo $ECHO_N "(cached) $ECHO_C" >&6
13914
ac_check_lib_save_LIBS=$LIBS
13915
LIBS="-lsvld $LIBS"
13916
cat >conftest.$ac_ext <<_ACEOF
13919
cat confdefs.h >>conftest.$ac_ext
13920
cat >>conftest.$ac_ext <<_ACEOF
13921
/* end confdefs.h. */
13923
/* Override any gcc2 internal prototype to avoid an error. */
13927
/* We use char because int might match the return type of a gcc2
13928
builtin and then its argument prototype would still apply. */
13938
rm -f conftest.$ac_objext conftest$ac_exeext
13939
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13940
(eval $ac_link) 2>conftest.er1
13942
grep -v '^ *+' conftest.er1 >conftest.err
13944
cat conftest.err >&5
13945
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13946
(exit $ac_status); } &&
13947
{ ac_try='test -z "$ac_cxx_werror_flag"
13948
|| test ! -s conftest.err'
13949
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13950
(eval $ac_try) 2>&5
13952
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13953
(exit $ac_status); }; } &&
13954
{ ac_try='test -s conftest$ac_exeext'
13955
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13956
(eval $ac_try) 2>&5
13958
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13959
(exit $ac_status); }; }; then
13960
ac_cv_lib_svld_dlopen=yes
13962
echo "$as_me: failed program was:" >&5
13963
sed 's/^/| /' conftest.$ac_ext >&5
13965
ac_cv_lib_svld_dlopen=no
13967
rm -f conftest.err conftest.$ac_objext \
13968
conftest$ac_exeext conftest.$ac_ext
13969
LIBS=$ac_check_lib_save_LIBS
13971
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
13972
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
13973
if test $ac_cv_lib_svld_dlopen = yes; then
13974
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13976
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
13977
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
13978
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
13979
echo $ECHO_N "(cached) $ECHO_C" >&6
13981
ac_check_lib_save_LIBS=$LIBS
13983
cat >conftest.$ac_ext <<_ACEOF
13986
cat confdefs.h >>conftest.$ac_ext
13987
cat >>conftest.$ac_ext <<_ACEOF
13988
/* end confdefs.h. */
13990
/* Override any gcc2 internal prototype to avoid an error. */
13994
/* We use char because int might match the return type of a gcc2
13995
builtin and then its argument prototype would still apply. */
14005
rm -f conftest.$ac_objext conftest$ac_exeext
14006
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14007
(eval $ac_link) 2>conftest.er1
14009
grep -v '^ *+' conftest.er1 >conftest.err
14011
cat conftest.err >&5
14012
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14013
(exit $ac_status); } &&
14014
{ ac_try='test -z "$ac_cxx_werror_flag"
14015
|| test ! -s conftest.err'
14016
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14017
(eval $ac_try) 2>&5
14019
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14020
(exit $ac_status); }; } &&
14021
{ ac_try='test -s conftest$ac_exeext'
14022
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14023
(eval $ac_try) 2>&5
14025
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14026
(exit $ac_status); }; }; then
14027
ac_cv_lib_dld_dld_link=yes
14029
echo "$as_me: failed program was:" >&5
14030
sed 's/^/| /' conftest.$ac_ext >&5
14032
ac_cv_lib_dld_dld_link=no
14034
rm -f conftest.err conftest.$ac_objext \
14035
conftest$ac_exeext conftest.$ac_ext
14036
LIBS=$ac_check_lib_save_LIBS
14038
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14039
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14040
if test $ac_cv_lib_dld_dld_link = yes; then
14041
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14062
if test "x$lt_cv_dlopen" != xno; then
14068
case $lt_cv_dlopen in
14070
save_CPPFLAGS="$CPPFLAGS"
14071
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14073
save_LDFLAGS="$LDFLAGS"
14074
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14077
LIBS="$lt_cv_dlopen_libs $LIBS"
14079
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14080
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14081
if test "${lt_cv_dlopen_self+set}" = set; then
14082
echo $ECHO_N "(cached) $ECHO_C" >&6
14084
if test "$cross_compiling" = yes; then :
14085
lt_cv_dlopen_self=cross
14087
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14088
lt_status=$lt_dlunknown
14089
cat > conftest.$ac_ext <<EOF
14090
#line 14090 "configure"
14091
#include "confdefs.h"
14100
# define LT_DLGLOBAL RTLD_GLOBAL
14103
# define LT_DLGLOBAL DL_GLOBAL
14105
# define LT_DLGLOBAL 0
14109
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14110
find out it does not work in some platform. */
14111
#ifndef LT_DLLAZY_OR_NOW
14113
# define LT_DLLAZY_OR_NOW RTLD_LAZY
14116
# define LT_DLLAZY_OR_NOW DL_LAZY
14119
# define LT_DLLAZY_OR_NOW RTLD_NOW
14122
# define LT_DLLAZY_OR_NOW DL_NOW
14124
# define LT_DLLAZY_OR_NOW 0
14132
extern "C" void exit (int);
14135
void fnord() { int i=42;}
14138
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14139
int status = $lt_dlunknown;
14143
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14144
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14145
/* dlclose (self); */
14151
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14152
(eval $ac_link) 2>&5
14154
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14155
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14156
(./conftest; exit; ) 2>/dev/null
14158
case x$lt_status in
14159
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14160
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14161
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14164
# compilation failed
14165
lt_cv_dlopen_self=no
14172
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14173
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14175
if test "x$lt_cv_dlopen_self" = xyes; then
14176
LDFLAGS="$LDFLAGS $link_static_flag"
14177
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14178
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14179
if test "${lt_cv_dlopen_self_static+set}" = set; then
14180
echo $ECHO_N "(cached) $ECHO_C" >&6
14182
if test "$cross_compiling" = yes; then :
14183
lt_cv_dlopen_self_static=cross
14185
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14186
lt_status=$lt_dlunknown
14187
cat > conftest.$ac_ext <<EOF
14188
#line 14188 "configure"
14189
#include "confdefs.h"
14198
# define LT_DLGLOBAL RTLD_GLOBAL
14201
# define LT_DLGLOBAL DL_GLOBAL
14203
# define LT_DLGLOBAL 0
14207
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14208
find out it does not work in some platform. */
14209
#ifndef LT_DLLAZY_OR_NOW
14211
# define LT_DLLAZY_OR_NOW RTLD_LAZY
14214
# define LT_DLLAZY_OR_NOW DL_LAZY
14217
# define LT_DLLAZY_OR_NOW RTLD_NOW
14220
# define LT_DLLAZY_OR_NOW DL_NOW
14222
# define LT_DLLAZY_OR_NOW 0
14230
extern "C" void exit (int);
14233
void fnord() { int i=42;}
14236
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14237
int status = $lt_dlunknown;
14241
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14242
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14243
/* dlclose (self); */
14249
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14250
(eval $ac_link) 2>&5
14252
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14253
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14254
(./conftest; exit; ) 2>/dev/null
14256
case x$lt_status in
14257
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14258
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14259
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14262
# compilation failed
14263
lt_cv_dlopen_self_static=no
14270
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14271
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14274
CPPFLAGS="$save_CPPFLAGS"
14275
LDFLAGS="$save_LDFLAGS"
14280
case $lt_cv_dlopen_self in
14281
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14282
*) enable_dlopen_self=unknown ;;
14285
case $lt_cv_dlopen_self_static in
14286
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14287
*) enable_dlopen_self_static=unknown ;;
14292
# The else clause should only fire when bootstrapping the
14293
# libtool distribution, otherwise you forgot to ship ltmain.sh
14294
# with your package, and you will get complaints that there are
14295
# no rules to generate ltmain.sh.
14296
if test -f "$ltmain"; then
14297
# See if we are running on zsh, and set the options which allow our commands through
14298
# without removal of \ escapes.
14299
if test -n "${ZSH_VERSION+set}" ; then
14300
setopt NO_GLOB_SUBST
14302
# Now quote all the things that may contain metacharacters while being
14303
# careful not to overquote the AC_SUBSTed values. We take copies of the
14304
# variables and quote the copies for generation of the libtool script.
14305
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14307
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14308
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14309
deplibs_check_method reload_flag reload_cmds need_locks \
14310
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14311
lt_cv_sys_global_symbol_to_c_name_address \
14312
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14313
old_postinstall_cmds old_postuninstall_cmds \
14317
lt_prog_compiler_wl_CXX \
14318
lt_prog_compiler_pic_CXX \
14319
lt_prog_compiler_static_CXX \
14320
lt_prog_compiler_no_builtin_flag_CXX \
14321
export_dynamic_flag_spec_CXX \
14322
thread_safe_flag_spec_CXX \
14323
whole_archive_flag_spec_CXX \
14324
enable_shared_with_static_runtimes_CXX \
14325
old_archive_cmds_CXX \
14326
old_archive_from_new_cmds_CXX \
14327
predep_objects_CXX \
14328
postdep_objects_CXX \
14331
compiler_lib_search_path_CXX \
14333
archive_expsym_cmds_CXX \
14334
postinstall_cmds_CXX \
14335
postuninstall_cmds_CXX \
14336
old_archive_from_expsyms_cmds_CXX \
14337
allow_undefined_flag_CXX \
14338
no_undefined_flag_CXX \
14339
export_symbols_cmds_CXX \
14340
hardcode_libdir_flag_spec_CXX \
14341
hardcode_libdir_flag_spec_ld_CXX \
14342
hardcode_libdir_separator_CXX \
14343
hardcode_automatic_CXX \
14345
module_expsym_cmds_CXX \
14346
lt_cv_prog_compiler_c_o_CXX \
14347
exclude_expsyms_CXX \
14348
include_expsyms_CXX; do
14351
old_archive_cmds_CXX | \
14352
old_archive_from_new_cmds_CXX | \
14353
archive_cmds_CXX | \
14354
archive_expsym_cmds_CXX | \
14355
module_cmds_CXX | \
14356
module_expsym_cmds_CXX | \
14357
old_archive_from_expsyms_cmds_CXX | \
14358
export_symbols_cmds_CXX | \
14359
extract_expsyms_cmds | reload_cmds | finish_cmds | \
14360
postinstall_cmds | postuninstall_cmds | \
14361
old_postinstall_cmds | old_postuninstall_cmds | \
14362
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14363
# Double-quote double-evaled strings.
14364
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14367
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14373
*'\$0 --fallback-echo"')
14374
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14380
cat <<__EOF__ >> "$cfgfile"
14381
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14383
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14385
# Shell to use when invoking shell scripts.
14388
# Whether or not to build shared libraries.
14389
build_libtool_libs=$enable_shared
14391
# Whether or not to build static libraries.
14392
build_old_libs=$enable_static
14394
# Whether or not to add -lc for building shared libraries.
14395
build_libtool_need_lc=$archive_cmds_need_lc_CXX
14397
# Whether or not to disallow shared libs when runtime libs are static
14398
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14400
# Whether or not to optimize for fast installation.
14401
fast_install=$enable_fast_install
14404
host_alias=$host_alias
14407
# An echo program that does not interpret backslashes.
14412
AR_FLAGS=$lt_AR_FLAGS
14417
# A language-specific compiler.
14418
CC=$lt_compiler_CXX
14420
# Is the compiler the GNU C compiler?
14426
# The linker used to build libraries.
14429
# Whether we need hard or soft links.
14432
# A BSD-compatible nm program.
14435
# A symbol stripping program
14438
# Used to examine libraries when file_magic_cmd begins "file"
14439
MAGIC_CMD=$MAGIC_CMD
14441
# Used on cygwin: DLL creation program.
14444
# Used on cygwin: object dumper.
14447
# Used on cygwin: assembler.
14450
# The name of the directory that contains temporary libtool files.
14453
# How to create reloadable object files.
14454
reload_flag=$lt_reload_flag
14455
reload_cmds=$lt_reload_cmds
14457
# How to pass a linker flag through the compiler.
14458
wl=$lt_lt_prog_compiler_wl_CXX
14460
# Object file suffix (normally "o").
14461
objext="$ac_objext"
14463
# Old archive suffix (normally "a").
14466
# Shared library suffix (normally ".so").
14467
shrext_cmds='$shrext_cmds'
14469
# Executable file suffix (normally "").
14472
# Additional compiler flags for building library objects.
14473
pic_flag=$lt_lt_prog_compiler_pic_CXX
14476
# What is the maximum length of a command?
14477
max_cmd_len=$lt_cv_sys_max_cmd_len
14479
# Does compiler simultaneously support -c and -o options?
14480
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14482
# Must we lock files when doing compilation ?
14483
need_locks=$lt_need_locks
14485
# Do we need the lib prefix for modules?
14486
need_lib_prefix=$need_lib_prefix
14488
# Do we need a version for libraries?
14489
need_version=$need_version
14491
# Whether dlopen is supported.
14492
dlopen_support=$enable_dlopen
14494
# Whether dlopen of programs is supported.
14495
dlopen_self=$enable_dlopen_self
14497
# Whether dlopen of statically linked programs is supported.
14498
dlopen_self_static=$enable_dlopen_self_static
14500
# Compiler flag to prevent dynamic linking.
14501
link_static_flag=$lt_lt_prog_compiler_static_CXX
14503
# Compiler flag to turn off builtin functions.
14504
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14506
# Compiler flag to allow reflexive dlopens.
14507
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14509
# Compiler flag to generate shared objects directly from archives.
14510
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14512
# Compiler flag to generate thread-safe objects.
14513
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14515
# Library versioning type.
14516
version_type=$version_type
14518
# Format of library name prefix.
14519
libname_spec=$lt_libname_spec
14521
# List of archive names. First name is the real one, the rest are links.
14522
# The last name is the one that the linker finds with -lNAME.
14523
library_names_spec=$lt_library_names_spec
14525
# The coded name of the library, if different from the real name.
14526
soname_spec=$lt_soname_spec
14528
# Commands used to build and install an old-style archive.
14530
old_archive_cmds=$lt_old_archive_cmds_CXX
14531
old_postinstall_cmds=$lt_old_postinstall_cmds
14532
old_postuninstall_cmds=$lt_old_postuninstall_cmds
14534
# Create an old-style archive from a shared archive.
14535
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14537
# Create a temporary old-style archive to link instead of a shared archive.
14538
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14540
# Commands used to build and install a shared archive.
14541
archive_cmds=$lt_archive_cmds_CXX
14542
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14543
postinstall_cmds=$lt_postinstall_cmds
14544
postuninstall_cmds=$lt_postuninstall_cmds
14546
# Commands used to build a loadable module (assumed same as above if empty)
14547
module_cmds=$lt_module_cmds_CXX
14548
module_expsym_cmds=$lt_module_expsym_cmds_CXX
14550
# Commands to strip libraries.
14551
old_striplib=$lt_old_striplib
14552
striplib=$lt_striplib
14554
# Dependencies to place before the objects being linked to create a
14556
predep_objects=$lt_predep_objects_CXX
14558
# Dependencies to place after the objects being linked to create a
14560
postdep_objects=$lt_postdep_objects_CXX
14562
# Dependencies to place before the objects being linked to create a
14564
predeps=$lt_predeps_CXX
14566
# Dependencies to place after the objects being linked to create a
14568
postdeps=$lt_postdeps_CXX
14570
# The library search path used internally by the compiler when linking
14571
# a shared library.
14572
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14574
# Method to check whether dependent libraries are shared objects.
14575
deplibs_check_method=$lt_deplibs_check_method
14577
# Command to use when deplibs_check_method == file_magic.
14578
file_magic_cmd=$lt_file_magic_cmd
14580
# Flag that allows shared libraries with undefined symbols to be built.
14581
allow_undefined_flag=$lt_allow_undefined_flag_CXX
14583
# Flag that forces no undefined symbols.
14584
no_undefined_flag=$lt_no_undefined_flag_CXX
14586
# Commands used to finish a libtool library installation in a directory.
14587
finish_cmds=$lt_finish_cmds
14589
# Same as above, but a single script fragment to be evaled but not shown.
14590
finish_eval=$lt_finish_eval
14592
# Take the output of nm and produce a listing of raw symbols and C names.
14593
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14595
# Transform the output of nm in a proper C declaration
14596
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14598
# Transform the output of nm in a C name address pair
14599
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14601
# This is the shared library runtime path variable.
14602
runpath_var=$runpath_var
14604
# This is the shared library path variable.
14605
shlibpath_var=$shlibpath_var
14607
# Is shlibpath searched before the hard-coded library search path?
14608
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14610
# How to hardcode a shared library path into an executable.
14611
hardcode_action=$hardcode_action_CXX
14613
# Whether we should hardcode library paths into libraries.
14614
hardcode_into_libs=$hardcode_into_libs
14616
# Flag to hardcode \$libdir into a binary during linking.
14617
# This must work even if \$libdir does not exist.
14618
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14620
# If ld is used when linking, flag to hardcode \$libdir into
14621
# a binary during linking. This must work even if \$libdir does
14623
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14625
# Whether we need a single -rpath flag with a separated argument.
14626
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14628
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14629
# resulting binary.
14630
hardcode_direct=$hardcode_direct_CXX
14632
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14633
# resulting binary.
14634
hardcode_minus_L=$hardcode_minus_L_CXX
14636
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14637
# the resulting binary.
14638
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14640
# Set to yes if building a shared library automatically hardcodes DIR into the library
14641
# and all subsequent libraries and executables linked against it.
14642
hardcode_automatic=$hardcode_automatic_CXX
14644
# Variables whose values should be saved in libtool wrapper scripts and
14645
# restored at relink time.
14646
variables_saved_for_relink="$variables_saved_for_relink"
14648
# Whether libtool must link a program against all its dependency libraries.
14649
link_all_deplibs=$link_all_deplibs_CXX
14651
# Compile-time system search path for libraries
14652
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14654
# Run-time system search path for libraries
14655
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14657
# Fix the shell variable \$srcfile for the compiler.
14658
fix_srcfile_path="$fix_srcfile_path_CXX"
14660
# Set to yes if exported symbols are required.
14661
always_export_symbols=$always_export_symbols_CXX
14663
# The commands to list exported symbols.
14664
export_symbols_cmds=$lt_export_symbols_cmds_CXX
14666
# The commands to extract the exported symbol list from a shared archive.
14667
extract_expsyms_cmds=$lt_extract_expsyms_cmds
14669
# Symbols that should not be listed in the preloaded symbols.
14670
exclude_expsyms=$lt_exclude_expsyms_CXX
14672
# Symbols that must always be exported.
14673
include_expsyms=$lt_include_expsyms_CXX
14675
# ### END LIBTOOL TAG CONFIG: $tagname
14681
# If there is no Makefile yet, we rely on a make rule to execute
14682
# `config.status --recheck' to rerun these tests and create the
14683
# libtool script then.
14684
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14685
if test -f "$ltmain_in"; then
14686
test -f Makefile && make "$ltmain"
14692
ac_cpp='$CPP $CPPFLAGS'
14693
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14694
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14695
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14701
with_gnu_ldcxx=$with_gnu_ld
14702
with_gnu_ld=$lt_save_with_gnu_ld
14703
lt_cv_path_LDCXX=$lt_cv_path_LD
14704
lt_cv_path_LD=$lt_save_path_LD
14705
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14706
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14714
if test -n "$F77" && test "X$F77" != "Xno"; then
14717
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14718
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14719
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14722
archive_cmds_need_lc_F77=no
14723
allow_undefined_flag_F77=
14724
always_export_symbols_F77=no
14725
archive_expsym_cmds_F77=
14726
export_dynamic_flag_spec_F77=
14727
hardcode_direct_F77=no
14728
hardcode_libdir_flag_spec_F77=
14729
hardcode_libdir_flag_spec_ld_F77=
14730
hardcode_libdir_separator_F77=
14731
hardcode_minus_L_F77=no
14732
hardcode_automatic_F77=no
14734
module_expsym_cmds_F77=
14735
link_all_deplibs_F77=unknown
14736
old_archive_cmds_F77=$old_archive_cmds
14737
no_undefined_flag_F77=
14738
whole_archive_flag_spec_F77=
14739
enable_shared_with_static_runtimes_F77=no
14741
# Source file extension for f77 test sources.
14744
# Object file extension for compiled f77 test sources.
14748
# Code to be used in simple compile tests
14749
lt_simple_compile_test_code=" subroutine t\n return\n end\n"
14751
# Code to be used in simple link tests
14752
lt_simple_link_test_code=" program t\n end\n"
14754
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14756
# If no C compiler was specified, use CC.
14759
# Allow CC to be a program name with arguments.
14763
# Allow CC to be a program name with arguments.
14768
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
14770
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14771
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14772
echo "$as_me:$LINENO: result: $can_build_shared" >&5
14773
echo "${ECHO_T}$can_build_shared" >&6
14775
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14776
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14777
test "$can_build_shared" = "no" && enable_shared=no
14779
# On AIX, shared libraries and static libraries use the same namespace, and
14780
# are all built from PIC.
14783
test "$enable_shared" = yes && enable_static=no
14784
if test -n "$RANLIB"; then
14785
archive_cmds="$archive_cmds~\$RANLIB \$lib"
14786
postinstall_cmds='$RANLIB $lib'
14790
test "$enable_shared" = yes && enable_static=no
14793
echo "$as_me:$LINENO: result: $enable_shared" >&5
14794
echo "${ECHO_T}$enable_shared" >&6
14796
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14797
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14798
# Make sure either enable_shared or enable_static is yes.
14799
test "$enable_shared" = yes || enable_static=yes
14800
echo "$as_me:$LINENO: result: $enable_static" >&5
14801
echo "${ECHO_T}$enable_static" >&6
14803
test "$ld_shlibs_F77" = no && can_build_shared=no
14808
lt_prog_compiler_wl_F77=
14809
lt_prog_compiler_pic_F77=
14810
lt_prog_compiler_static_F77=
14812
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14813
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14815
if test "$GCC" = yes; then
14816
lt_prog_compiler_wl_F77='-Wl,'
14817
lt_prog_compiler_static_F77='-static'
14821
# All AIX code is PIC.
14822
if test "$host_cpu" = ia64; then
14823
# AIX 5 now supports IA64 processor
14824
lt_prog_compiler_static_F77='-Bstatic'
14829
# FIXME: we need at least 68020 code to build shared libraries, but
14830
# adding the `-m68020' flag to GCC prevents building anything better,
14832
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14835
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14836
# PIC is the default for these OSes.
14839
mingw* | pw32* | os2*)
14840
# This hack is so that the source file can tell whether it is being
14841
# built for inclusion in a dll (and should export symbols for example).
14842
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14845
darwin* | rhapsody*)
14846
# PIC is the default on this platform
14847
# Common symbols not allowed in MH_DYLIB files
14848
lt_prog_compiler_pic_F77='-fno-common'
14852
# Just because we use GCC doesn't mean we suddenly get shared libraries
14853
# on systems that don't support them.
14854
lt_prog_compiler_can_build_shared_F77=no
14859
if test -d /usr/nec; then
14860
lt_prog_compiler_pic_F77=-Kconform_pic
14865
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14866
# not for PA HP-UX.
14867
case "$host_cpu" in
14872
lt_prog_compiler_pic_F77='-fPIC'
14878
lt_prog_compiler_pic_F77='-fPIC'
14882
# PORTME Check for flag to pass linker flags through the system compiler.
14885
lt_prog_compiler_wl_F77='-Wl,'
14886
if test "$host_cpu" = ia64; then
14887
# AIX 5 now supports IA64 processor
14888
lt_prog_compiler_static_F77='-Bstatic'
14890
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14894
mingw* | pw32* | os2*)
14895
# This hack is so that the source file can tell whether it is being
14896
# built for inclusion in a dll (and should export symbols for example).
14897
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14900
hpux9* | hpux10* | hpux11*)
14901
lt_prog_compiler_wl_F77='-Wl,'
14902
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14903
# not for PA HP-UX.
14904
case "$host_cpu" in
14909
lt_prog_compiler_pic_F77='+Z'
14912
# Is there a better lt_prog_compiler_static that works with the bundled CC?
14913
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14916
irix5* | irix6* | nonstopux*)
14917
lt_prog_compiler_wl_F77='-Wl,'
14918
# PIC (with -KPIC) is the default.
14919
lt_prog_compiler_static_F77='-non_shared'
14923
lt_prog_compiler_pic_F77='-KPIC'
14924
lt_prog_compiler_static_F77='-Bstatic'
14930
lt_prog_compiler_wl_F77='-Wl,'
14931
lt_prog_compiler_pic_F77='-KPIC'
14932
lt_prog_compiler_static_F77='-static'
14935
lt_prog_compiler_wl_F77='-Wl,'
14936
# All Alpha code is PIC.
14937
lt_prog_compiler_static_F77='-non_shared'
14942
osf3* | osf4* | osf5*)
14943
lt_prog_compiler_wl_F77='-Wl,'
14944
# All OSF/1 code is PIC.
14945
lt_prog_compiler_static_F77='-non_shared'
14949
lt_prog_compiler_pic_F77='-Kpic'
14950
lt_prog_compiler_static_F77='-dn'
14954
lt_prog_compiler_wl_F77='-Wl,'
14955
lt_prog_compiler_pic_F77='-KPIC'
14956
lt_prog_compiler_static_F77='-Bstatic'
14960
lt_prog_compiler_wl_F77='-Qoption ld '
14961
lt_prog_compiler_pic_F77='-PIC'
14962
lt_prog_compiler_static_F77='-Bstatic'
14965
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14966
lt_prog_compiler_wl_F77='-Wl,'
14967
lt_prog_compiler_pic_F77='-KPIC'
14968
lt_prog_compiler_static_F77='-Bstatic'
14972
if test -d /usr/nec ;then
14973
lt_prog_compiler_pic_F77='-Kconform_pic'
14974
lt_prog_compiler_static_F77='-Bstatic'
14979
lt_prog_compiler_pic_F77='-pic'
14980
lt_prog_compiler_static_F77='-Bstatic'
14984
lt_prog_compiler_can_build_shared_F77=no
14989
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14990
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
14993
# Check to make sure the PIC flag actually works.
14995
if test -n "$lt_prog_compiler_pic_F77"; then
14997
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14998
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
14999
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15000
echo $ECHO_N "(cached) $ECHO_C" >&6
15002
lt_prog_compiler_pic_works_F77=no
15003
ac_outfile=conftest.$ac_objext
15004
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15005
lt_compiler_flag="$lt_prog_compiler_pic_F77"
15006
# Insert the option either (1) after the last *FLAGS variable, or
15007
# (2) before a word containing "conftest.", or (3) at the end.
15008
# Note that $ac_compile itself does not contain backslashes and begins
15009
# with a dollar sign (not a hyphen), so the echo should work correctly.
15010
# The option is referenced via a variable to avoid confusing sed.
15011
lt_compile=`echo "$ac_compile" | $SED \
15012
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15013
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15014
-e 's:$: $lt_compiler_flag:'`
15015
(eval echo "\"\$as_me:15015: $lt_compile\"" >&5)
15016
(eval "$lt_compile" 2>conftest.err)
15018
cat conftest.err >&5
15019
echo "$as_me:15019: \$? = $ac_status" >&5
15020
if (exit $ac_status) && test -s "$ac_outfile"; then
15021
# The compiler can only warn and ignore the option if not recognized
15022
# So say no if there are warnings
15023
if test ! -s conftest.err; then
15024
lt_prog_compiler_pic_works_F77=yes
15030
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15031
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
15033
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15034
case $lt_prog_compiler_pic_F77 in
15036
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15039
lt_prog_compiler_pic_F77=
15040
lt_prog_compiler_can_build_shared_F77=no
15045
# For platforms which do not support PIC, -DPIC is meaningless:
15047
lt_prog_compiler_pic_F77=
15050
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15054
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15055
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15056
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15057
echo $ECHO_N "(cached) $ECHO_C" >&6
15059
lt_cv_prog_compiler_c_o_F77=no
15060
$rm -r conftest 2>/dev/null
15064
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15066
lt_compiler_flag="-o out/conftest2.$ac_objext"
15067
# Insert the option either (1) after the last *FLAGS variable, or
15068
# (2) before a word containing "conftest.", or (3) at the end.
15069
# Note that $ac_compile itself does not contain backslashes and begins
15070
# with a dollar sign (not a hyphen), so the echo should work correctly.
15071
lt_compile=`echo "$ac_compile" | $SED \
15072
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15073
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15074
-e 's:$: $lt_compiler_flag:'`
15075
(eval echo "\"\$as_me:15075: $lt_compile\"" >&5)
15076
(eval "$lt_compile" 2>out/conftest.err)
15078
cat out/conftest.err >&5
15079
echo "$as_me:15079: \$? = $ac_status" >&5
15080
if (exit $ac_status) && test -s out/conftest2.$ac_objext
15082
# The compiler can only warn and ignore the option if not recognized
15083
# So say no if there are warnings
15084
if test ! -s out/conftest.err; then
15085
lt_cv_prog_compiler_c_o_F77=yes
15090
# SGI C++ compiler will create directory out/ii_files/ for
15091
# template instantiation
15092
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15093
$rm out/* && rmdir out
15099
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15100
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
15103
hard_links="nottested"
15104
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15105
# do not overwrite the value of need_locks provided by the user
15106
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15107
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15110
ln conftest.a conftest.b 2>/dev/null && hard_links=no
15112
ln conftest.a conftest.b 2>&5 || hard_links=no
15113
ln conftest.a conftest.b 2>/dev/null && hard_links=no
15114
echo "$as_me:$LINENO: result: $hard_links" >&5
15115
echo "${ECHO_T}$hard_links" >&6
15116
if test "$hard_links" = no; then
15117
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15118
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15125
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15126
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15129
allow_undefined_flag_F77=
15130
enable_shared_with_static_runtimes_F77=no
15132
archive_expsym_cmds_F77=
15133
old_archive_From_new_cmds_F77=
15134
old_archive_from_expsyms_cmds_F77=
15135
export_dynamic_flag_spec_F77=
15136
whole_archive_flag_spec_F77=
15137
thread_safe_flag_spec_F77=
15138
hardcode_libdir_flag_spec_F77=
15139
hardcode_libdir_flag_spec_ld_F77=
15140
hardcode_libdir_separator_F77=
15141
hardcode_direct_F77=no
15142
hardcode_minus_L_F77=no
15143
hardcode_shlibpath_var_F77=unsupported
15144
link_all_deplibs_F77=unknown
15145
hardcode_automatic_F77=no
15147
module_expsym_cmds_F77=
15148
always_export_symbols_F77=no
15149
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15150
# include_expsyms should be a list of space-separated symbols to be *always*
15151
# included in the symbol list
15152
include_expsyms_F77=
15153
# exclude_expsyms can be an extended regexp of symbols to exclude
15154
# it will be wrapped by ` (' and `)$', so one must not match beginning or
15155
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15156
# as well as any symbol that contains `d'.
15157
exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15158
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15159
# platforms (ab)use it in PIC code, but their linkers get confused if
15160
# the symbol is explicitly referenced. Since portable code cannot
15161
# rely on this symbol name, it's probably fine to never include it in
15162
# preloaded symbol tables.
15163
extract_expsyms_cmds=
15166
cygwin* | mingw* | pw32*)
15167
# FIXME: the MSVC++ port hasn't been tested in a loooong time
15168
# When not using gcc, we currently assume that we are using
15169
# Microsoft Visual C++.
15170
if test "$GCC" != yes; then
15180
if test "$with_gnu_ld" = yes; then
15181
# If archive_cmds runs LD, not CC, wlarc should be empty
15184
# See if GNU ld supports shared libraries.
15186
aix3* | aix4* | aix5*)
15187
# On AIX/PPC, the GNU linker is very broken
15188
if test "$host_cpu" != ia64; then
15192
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15193
*** to be unable to reliably create shared libraries on AIX.
15194
*** Therefore, libtool is disabling shared libraries support. If you
15195
*** really care for shared libraries, you may want to modify your PATH
15196
*** so that a non-GNU linker is found, and then restart.
15203
archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
15204
hardcode_libdir_flag_spec_F77='-L$libdir'
15205
hardcode_minus_L_F77=yes
15207
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15208
# that the semantics of dynamic libraries on AmigaOS, at least up
15209
# to version 4, is to share data among multiple programs linked
15210
# with the same dynamic library. Since this doesn't match the
15211
# behavior of shared libraries on other platforms, we can't use
15217
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15218
allow_undefined_flag_F77=unsupported
15219
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15220
# support --undefined. This deserves some investigation. FIXME
15221
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15227
cygwin* | mingw* | pw32*)
15228
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15229
# as there is no search path for DLLs.
15230
hardcode_libdir_flag_spec_F77='-L$libdir'
15231
allow_undefined_flag_F77=unsupported
15232
always_export_symbols_F77=no
15233
enable_shared_with_static_runtimes_F77=yes
15234
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15236
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15237
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15238
# If the export-symbols file already is a .def file (1st line
15239
# is EXPORTS), use it as is; otherwise, prepend...
15240
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15241
cp $export_symbols $output_objdir/$soname.def;
15243
echo EXPORTS > $output_objdir/$soname.def;
15244
cat $export_symbols >> $output_objdir/$soname.def;
15246
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15253
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15254
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15257
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15258
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15263
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15267
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15268
*** create shared libraries on Solaris systems. Therefore, libtool
15269
*** is disabling shared libraries support. We urge you to upgrade GNU
15270
*** binutils to release 2.9.1 or newer. Another option is to modify
15271
*** your PATH or compiler configuration so that the native linker is
15272
*** used, and then restart.
15275
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15276
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15277
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15284
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15286
hardcode_direct_F77=yes
15287
hardcode_shlibpath_var_F77=no
15291
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15292
tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15293
archive_cmds_F77="$tmp_archive_cmds"
15294
supports_anon_versioning=no
15295
case `$LD -v 2>/dev/null` in
15296
*\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15297
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15298
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15299
*\ 2.11.*) ;; # other 2.11 versions
15300
*) supports_anon_versioning=yes ;;
15302
if test $supports_anon_versioning = yes; then
15303
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15304
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15305
$echo "local: *; };" >> $output_objdir/$libname.ver~
15306
$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15308
archive_expsym_cmds_F77="$tmp_archive_cmds"
15316
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15317
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15318
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15325
if test "$ld_shlibs_F77" = yes; then
15326
runpath_var=LD_RUN_PATH
15327
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15328
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15329
# ancient GNU ld didn't support --whole-archive et. al.
15330
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15331
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15333
whole_archive_flag_spec_F77=
15337
# PORTME fill in a description of your system's linker (not GNU ld)
15340
allow_undefined_flag_F77=unsupported
15341
always_export_symbols_F77=yes
15342
archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
15343
# Note: this linker hardcodes the directories in LIBPATH if there
15344
# are no directories specified by -L.
15345
hardcode_minus_L_F77=yes
15346
if test "$GCC" = yes && test -z "$link_static_flag"; then
15347
# Neither direct hardcoding nor static linking is supported with a
15349
hardcode_direct_F77=unsupported
15354
if test "$host_cpu" = ia64; then
15355
# On IA64, the linker does run time linking by default, so we don't
15356
# have to do anything special.
15357
aix_use_runtimelinking=no
15358
exp_sym_flag='-Bexport'
15361
# If we're using GNU nm, then we don't want the "-C" option.
15362
# -C means demangle to AIX nm, but means don't demangle with GNU nm
15363
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15364
export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15366
export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15368
aix_use_runtimelinking=no
15370
# Test if we are trying to use run time linking or normal
15371
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15372
# need to do runtime linking.
15373
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15374
for ld_flag in $LDFLAGS; do
15375
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15376
aix_use_runtimelinking=yes
15382
exp_sym_flag='-bexport'
15383
no_entry_flag='-bnoentry'
15386
# When large executables or shared objects are built, AIX ld can
15387
# have problems creating the table of contents. If linking a library
15388
# or program results in "error TOC overflow" add -mminimal-toc to
15389
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15390
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15392
archive_cmds_F77=''
15393
hardcode_direct_F77=yes
15394
hardcode_libdir_separator_F77=':'
15395
link_all_deplibs_F77=yes
15397
if test "$GCC" = yes; then
15398
case $host_os in aix4.012|aix4.012.*)
15399
# We only want to do this on AIX 4.2 and lower, the check
15400
# below for broken collect2 doesn't work under 4.3+
15401
collect2name=`${CC} -print-prog-name=collect2`
15402
if test -f "$collect2name" && \
15403
strings "$collect2name" | grep resolve_lib_name >/dev/null
15405
# We have reworked collect2
15406
hardcode_direct_F77=yes
15408
# We have old collect2
15409
hardcode_direct_F77=unsupported
15410
# It fails to find uninstalled libraries when the uninstalled
15411
# path is not listed in the libpath. Setting hardcode_minus_L
15412
# to unsupported forces relinking
15413
hardcode_minus_L_F77=yes
15414
hardcode_libdir_flag_spec_F77='-L$libdir'
15415
hardcode_libdir_separator_F77=
15418
shared_flag='-shared'
15421
if test "$host_cpu" = ia64; then
15422
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15423
# chokes on -Wl,-G. The following line is correct:
15426
if test "$aix_use_runtimelinking" = yes; then
15427
shared_flag='${wl}-G'
15429
shared_flag='${wl}-bM:SRE'
15434
# It seems that -bexpall does not export symbols beginning with
15435
# underscore (_), so it is better to generate a list of symbols to export.
15436
always_export_symbols_F77=yes
15437
if test "$aix_use_runtimelinking" = yes; then
15438
# Warning - without using the other runtime loading flags (-brtl),
15439
# -berok will link without error, but may produce a broken library.
15440
allow_undefined_flag_F77='-berok'
15441
# Determine the default libpath from the value encoded in an empty executable.
15442
cat >conftest.$ac_ext <<_ACEOF
15447
rm -f conftest.$ac_objext conftest$ac_exeext
15448
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15449
(eval $ac_link) 2>conftest.er1
15451
grep -v '^ *+' conftest.er1 >conftest.err
15453
cat conftest.err >&5
15454
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15455
(exit $ac_status); } &&
15456
{ ac_try='test -z "$ac_f77_werror_flag"
15457
|| test ! -s conftest.err'
15458
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15459
(eval $ac_try) 2>&5
15461
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15462
(exit $ac_status); }; } &&
15463
{ ac_try='test -s conftest$ac_exeext'
15464
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15465
(eval $ac_try) 2>&5
15467
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15468
(exit $ac_status); }; }; then
15470
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15472
# Check for a 64-bit object if we didn't find anything.
15473
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15476
echo "$as_me: failed program was:" >&5
15477
sed 's/^/| /' conftest.$ac_ext >&5
15480
rm -f conftest.err conftest.$ac_objext \
15481
conftest$ac_exeext conftest.$ac_ext
15482
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15484
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15485
archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15487
if test "$host_cpu" = ia64; then
15488
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15489
allow_undefined_flag_F77="-z nodefs"
15490
archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
15492
# Determine the default libpath from the value encoded in an empty executable.
15493
cat >conftest.$ac_ext <<_ACEOF
15498
rm -f conftest.$ac_objext conftest$ac_exeext
15499
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15500
(eval $ac_link) 2>conftest.er1
15502
grep -v '^ *+' conftest.er1 >conftest.err
15504
cat conftest.err >&5
15505
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15506
(exit $ac_status); } &&
15507
{ ac_try='test -z "$ac_f77_werror_flag"
15508
|| test ! -s conftest.err'
15509
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15510
(eval $ac_try) 2>&5
15512
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15513
(exit $ac_status); }; } &&
15514
{ ac_try='test -s conftest$ac_exeext'
15515
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15516
(eval $ac_try) 2>&5
15518
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15519
(exit $ac_status); }; }; then
15521
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15523
# Check for a 64-bit object if we didn't find anything.
15524
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15527
echo "$as_me: failed program was:" >&5
15528
sed 's/^/| /' conftest.$ac_ext >&5
15531
rm -f conftest.err conftest.$ac_objext \
15532
conftest$ac_exeext conftest.$ac_ext
15533
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15535
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15536
# Warning - without using the other run time loading flags,
15537
# -berok will link without error, but may produce a broken library.
15538
no_undefined_flag_F77=' ${wl}-bernotok'
15539
allow_undefined_flag_F77=' ${wl}-berok'
15540
# -bexpall does not export symbols beginning with underscore (_)
15541
always_export_symbols_F77=yes
15542
# Exported symbols can be pulled into shared objects from archives
15543
whole_archive_flag_spec_F77=' '
15544
archive_cmds_need_lc_F77=yes
15545
# This is similar to how AIX traditionally builds it's shared libraries.
15546
archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15552
archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
15553
hardcode_libdir_flag_spec_F77='-L$libdir'
15554
hardcode_minus_L_F77=yes
15555
# see comment about different semantics on the GNU ld section
15560
export_dynamic_flag_spec_F77=-rdynamic
15563
cygwin* | mingw* | pw32*)
15564
# When not using gcc, we currently assume that we are using
15565
# Microsoft Visual C++.
15566
# hardcode_libdir_flag_spec is actually meaningless, as there is
15567
# no search path for DLLs.
15568
hardcode_libdir_flag_spec_F77=' '
15569
allow_undefined_flag_F77=unsupported
15570
# Tell ltmain to make .lib files, not .a files.
15572
# Tell ltmain to make .dll files, not .so files.
15574
# FIXME: Setting linknames here is a bad hack.
15575
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15576
# The linker will automatically build a .lib file if we build a DLL.
15577
old_archive_From_new_cmds_F77='true'
15578
# FIXME: Should let the user specify the lib program.
15579
old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15580
fix_srcfile_path='`cygpath -w "$srcfile"`'
15581
enable_shared_with_static_runtimes_F77=yes
15584
darwin* | rhapsody*)
15585
if test "$GXX" = yes ; then
15586
archive_cmds_need_lc_F77=no
15588
rhapsody* | darwin1.[012])
15589
allow_undefined_flag_F77='-undefined suppress'
15592
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15593
allow_undefined_flag_F77='-flat_namespace -undefined suppress'
15595
case ${MACOSX_DEPLOYMENT_TARGET} in
15597
allow_undefined_flag_F77='-flat_namespace -undefined suppress'
15600
allow_undefined_flag_F77='-undefined dynamic_lookup'
15606
lt_int_apple_cc_single_mod=no
15607
output_verbose_link_cmd='echo'
15608
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15609
lt_int_apple_cc_single_mod=yes
15611
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15612
archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15614
archive_cmds_F77='$CC -r ${wl}-bind_at_load -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'
15616
module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15617
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15618
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15619
archive_expsym_cmds_F77='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}'
15621
archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
15623
module_expsym_cmds_F77='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}'
15624
hardcode_direct_F77=no
15625
hardcode_automatic_F77=yes
15626
hardcode_shlibpath_var_F77=unsupported
15627
whole_archive_flag_spec_F77='-all_load $convenience'
15628
link_all_deplibs_F77=yes
15635
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15636
hardcode_libdir_flag_spec_F77='-L$libdir'
15637
hardcode_shlibpath_var_F77=no
15644
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15645
# support. Future versions do this automatically, but an explicit c++rt0.o
15646
# does not break anything, and helps significantly (at the cost of a little
15649
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15650
hardcode_libdir_flag_spec_F77='-R$libdir'
15651
hardcode_direct_F77=yes
15652
hardcode_shlibpath_var_F77=no
15655
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
15657
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15658
hardcode_direct_F77=yes
15659
hardcode_minus_L_F77=yes
15660
hardcode_shlibpath_var_F77=no
15663
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15664
freebsd* | kfreebsd*-gnu)
15665
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15666
hardcode_libdir_flag_spec_F77='-R$libdir'
15667
hardcode_direct_F77=yes
15668
hardcode_shlibpath_var_F77=no
15672
if test "$GCC" = yes; then
15673
archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv -f $output_objdir/$soname $lib'
15675
archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv -f $output_objdir/$soname $lib'
15677
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15678
hardcode_libdir_separator_F77=:
15679
hardcode_direct_F77=yes
15681
# hardcode_minus_L: Not really in the search PATH,
15682
# but as the default location of the library.
15683
hardcode_minus_L_F77=yes
15684
export_dynamic_flag_spec_F77='${wl}-E'
15688
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15689
case "$host_cpu" in
15691
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15694
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15698
case "$host_cpu" in
15700
archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15703
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15707
if test "$with_gnu_ld" = no; then
15708
case "$host_cpu" in
15710
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15711
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15712
hardcode_libdir_separator_F77=:
15713
hardcode_direct_F77=no
15714
hardcode_shlibpath_var_F77=no
15717
hardcode_libdir_flag_spec_F77='-L$libdir'
15718
hardcode_direct_F77=no
15719
hardcode_shlibpath_var_F77=no
15721
# hardcode_minus_L: Not really in the search PATH,
15722
# but as the default location of the library.
15723
hardcode_minus_L_F77=yes
15726
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15727
hardcode_libdir_separator_F77=:
15728
hardcode_direct_F77=yes
15729
export_dynamic_flag_spec_F77='${wl}-E'
15731
# hardcode_minus_L: Not really in the search PATH,
15732
# but as the default location of the library.
15733
hardcode_minus_L_F77=yes
15739
irix5* | irix6* | nonstopux*)
15740
if test "$GCC" = yes; then
15741
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15743
archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15744
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15746
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15747
hardcode_libdir_separator_F77=:
15748
link_all_deplibs_F77=yes
15752
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15753
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15755
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15757
hardcode_libdir_flag_spec_F77='-R$libdir'
15758
hardcode_direct_F77=yes
15759
hardcode_shlibpath_var_F77=no
15763
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15764
hardcode_direct_F77=yes
15765
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15766
hardcode_libdir_separator_F77=:
15767
hardcode_shlibpath_var_F77=no
15771
hardcode_direct_F77=yes
15772
hardcode_shlibpath_var_F77=no
15773
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15774
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15775
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15776
export_dynamic_flag_spec_F77='${wl}-E'
15779
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15780
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15781
hardcode_libdir_flag_spec_F77='-R$libdir'
15784
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15785
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15792
hardcode_libdir_flag_spec_F77='-L$libdir'
15793
hardcode_minus_L_F77=yes
15794
allow_undefined_flag_F77=unsupported
15795
archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
15796
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15800
if test "$GCC" = yes; then
15801
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15802
archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15804
allow_undefined_flag_F77=' -expect_unresolved \*'
15805
archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15807
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15808
hardcode_libdir_separator_F77=:
15811
osf4* | osf5*) # as osf3* with the addition of -msym flag
15812
if test "$GCC" = yes; then
15813
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15814
archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15815
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15817
allow_undefined_flag_F77=' -expect_unresolved \*'
15818
archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15819
archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15820
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
15822
# Both c and cxx compiler support -rpath directly
15823
hardcode_libdir_flag_spec_F77='-rpath $libdir'
15825
hardcode_libdir_separator_F77=:
15829
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15830
hardcode_shlibpath_var_F77=no
15831
export_dynamic_flag_spec_F77='${wl}-Bexport'
15832
runpath_var=LD_RUN_PATH
15833
hardcode_runpath_var=yes
15837
no_undefined_flag_F77=' -z text'
15838
if test "$GCC" = yes; then
15839
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15840
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15841
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15843
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15844
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15845
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15847
hardcode_libdir_flag_spec_F77='-R$libdir'
15848
hardcode_shlibpath_var_F77=no
15850
solaris2.[0-5] | solaris2.[0-5].*) ;;
15851
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
15852
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15854
link_all_deplibs_F77=yes
15858
if test "x$host_vendor" = xsequent; then
15859
# Use $CC to link under sequent, because it throws in some extra .o
15860
# files that make .init and .fini sections work.
15861
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15863
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15865
hardcode_libdir_flag_spec_F77='-L$libdir'
15866
hardcode_direct_F77=yes
15867
hardcode_minus_L_F77=yes
15868
hardcode_shlibpath_var_F77=no
15872
case $host_vendor in
15874
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15875
hardcode_direct_F77=yes # is this really true???
15878
## LD is ld it makes a PLAMLIB
15879
## CC just makes a GrossModule.
15880
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15881
reload_cmds_F77='$CC -r -o $output$reload_objs'
15882
hardcode_direct_F77=no
15885
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15886
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15889
runpath_var='LD_RUN_PATH'
15890
hardcode_shlibpath_var_F77=no
15894
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15895
hardcode_shlibpath_var_F77=no
15896
export_dynamic_flag_spec_F77='-Bexport'
15900
if test -d /usr/nec; then
15901
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15902
hardcode_shlibpath_var_F77=no
15903
runpath_var=LD_RUN_PATH
15904
hardcode_runpath_var=yes
15910
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15911
hardcode_direct_F77=yes
15912
hardcode_minus_L_F77=no
15913
hardcode_shlibpath_var_F77=no
15914
hardcode_runpath_var=yes
15915
runpath_var=LD_RUN_PATH
15918
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
15919
no_undefined_flag_F77='${wl}-z ${wl}text'
15920
if test "$GCC" = yes; then
15921
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15923
archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15925
runpath_var='LD_RUN_PATH'
15926
hardcode_shlibpath_var_F77=no
15930
no_undefined_flag_F77=' -z text'
15931
# $CC -shared without GNU ld will not create a library from C++
15932
# object files and a static libstdc++, better avoid it by now
15933
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15934
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15935
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15936
hardcode_libdir_flag_spec_F77=
15937
hardcode_shlibpath_var_F77=no
15938
runpath_var='LD_RUN_PATH'
15942
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15943
hardcode_libdir_flag_spec_F77='-L$libdir'
15944
hardcode_shlibpath_var_F77=no
15953
echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15954
echo "${ECHO_T}$ld_shlibs_F77" >&6
15955
test "$ld_shlibs_F77" = no && can_build_shared=no
15957
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15958
if test "$GCC" = yes; then
15959
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15963
# Do we need to explicitly link libc?
15965
case "x$archive_cmds_need_lc_F77" in
15967
# Assume -lc should be added
15968
archive_cmds_need_lc_F77=yes
15970
if test "$enable_shared" = yes && test "$GCC" = yes; then
15971
case $archive_cmds_F77 in
15973
# FIXME: we may have to deal with multi-command sequences.
15976
# Test whether the compiler implicitly links with -lc since on some
15977
# systems, -lgcc has to come before -lc. If gcc already passes -lc
15978
# to ld, don't add -lc before -lgcc.
15979
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15980
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15982
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15984
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15985
(eval $ac_compile) 2>&5
15987
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15988
(exit $ac_status); } 2>conftest.err; then
15991
libobjs=conftest.$ac_objext
15993
wl=$lt_prog_compiler_wl_F77
15999
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16000
allow_undefined_flag_F77=
16001
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16002
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16004
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16005
(exit $ac_status); }
16007
archive_cmds_need_lc_F77=no
16009
archive_cmds_need_lc_F77=yes
16011
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16013
cat conftest.err 1>&5
16016
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16017
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
16024
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16025
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16026
library_names_spec=
16027
libname_spec='lib$name'
16031
postuninstall_cmds=
16035
shlibpath_overrides_runpath=unknown
16037
dynamic_linker="$host_os ld.so"
16038
sys_lib_dlsearch_path_spec="/lib /usr/lib"
16039
if test "$GCC" = yes; then
16040
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16041
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16042
# if the path contains ";" then we assume it to be the separator
16043
# otherwise default to the standard path separator (i.e. ":") - it is
16044
# assumed that no part of a normal pathname contains ";" but that should
16045
# okay in the real world where ";" in dirpaths is itself problematic.
16046
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16048
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16051
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16053
need_lib_prefix=unknown
16054
hardcode_into_libs=no
16056
# when you set need_version to no, make sure it does not cause -set_version
16057
# flags to be left without arguments
16058
need_version=unknown
16063
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16064
shlibpath_var=LIBPATH
16066
# AIX 3 has no versioning support, so we append a major version to the name.
16067
soname_spec='${libname}${release}${shared_ext}$major'
16074
hardcode_into_libs=yes
16075
if test "$host_cpu" = ia64; then
16076
# AIX 5 supports IA64
16077
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16078
shlibpath_var=LD_LIBRARY_PATH
16080
# With GCC up to 2.95.x, collect2 would create an import file
16081
# for dependence libraries. The import file would start with
16082
# the line `#! .'. This would cause the generated library to
16083
# depend on `.', always an invalid library. This was fixed in
16084
# development snapshots of GCC prior to 3.0.
16086
aix4 | aix4.[01] | aix4.[01].*)
16087
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16089
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16092
can_build_shared=no
16096
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16097
# soname into executable. Probably we can add versioning support to
16098
# collect2, so additional links can be useful in future.
16099
if test "$aix_use_runtimelinking" = yes; then
16100
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
16101
# instead of lib<name>.a to let people know that these are not
16102
# typical AIX shared libraries.
16103
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16105
# We preserve .a as extension for shared libraries through AIX4.2
16106
# and later when we are not doing run time linking.
16107
library_names_spec='${libname}${release}.a $libname.a'
16108
soname_spec='${libname}${release}${shared_ext}$major'
16110
shlibpath_var=LIBPATH
16115
library_names_spec='$libname.ixlibrary $libname.a'
16116
# Create ${libname}_ixlibrary.a entries in /sys/libs.
16117
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
16121
library_names_spec='${libname}${shared_ext}'
16122
dynamic_linker="$host_os ld.so"
16123
shlibpath_var=LIBRARY_PATH
16129
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16130
soname_spec='${libname}${release}${shared_ext}$major'
16131
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16132
shlibpath_var=LD_LIBRARY_PATH
16133
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16134
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16135
# the default ld.so.conf also contains /usr/contrib/lib and
16136
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16137
# libtool to hard-code these into programs
16140
cygwin* | mingw* | pw32*)
16141
version_type=windows
16146
case $GCC,$host_os in
16147
yes,cygwin* | yes,mingw* | yes,pw32*)
16148
library_names_spec='$libname.dll.a'
16149
# DLL is installed to $(libdir)/../bin by postinstall_cmds
16150
postinstall_cmds='base_file=`basename \${file}`~
16151
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16152
dldir=$destdir/`dirname \$dlpath`~
16153
test -d \$dldir || mkdir -p \$dldir~
16154
$install_prog $dir/$dlname \$dldir/$dlname'
16155
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16156
dlpath=$dir/\$dldll~
16158
shlibpath_overrides_runpath=yes
16162
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
16163
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16164
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16167
# MinGW DLLs use traditional 'lib' prefix
16168
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16169
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16170
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16171
# It is most probably a Windows format PATH printed by
16172
# mingw gcc, but we are running on Cygwin. Gcc prints its search
16173
# path with ; separators, and with drive letters. We can handle the
16174
# drive letters (cygwin fileutils understands them), so leave them,
16175
# especially as we might pass files found there to a mingw objdump,
16176
# which wouldn't understand a cygwinified path. Ahh.
16177
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16179
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16183
# pw32 DLLs use 'pw' prefix rather than 'lib'
16184
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16190
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16193
dynamic_linker='Win32 ld.exe'
16194
# FIXME: first we should search . and the directory the executable is in
16198
darwin* | rhapsody*)
16199
dynamic_linker="$host_os dyld"
16200
version_type=darwin
16203
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16204
soname_spec='${libname}${release}${major}$shared_ext'
16205
shlibpath_overrides_runpath=yes
16206
shlibpath_var=DYLD_LIBRARY_PATH
16207
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16208
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16209
if test "$GCC" = yes; then
16210
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
16212
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16214
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16221
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16222
soname_spec='${libname}${release}${shared_ext}$major'
16223
shlibpath_var=LD_LIBRARY_PATH
16234
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16235
soname_spec='${libname}${release}${shared_ext}$major'
16236
shlibpath_var=LD_LIBRARY_PATH
16237
shlibpath_overrides_runpath=no
16238
hardcode_into_libs=yes
16239
dynamic_linker='GNU ld.so'
16243
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16244
version_type=freebsd-$objformat
16245
case $version_type in
16247
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16252
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16256
shlibpath_var=LD_LIBRARY_PATH
16259
shlibpath_overrides_runpath=yes
16261
freebsd3.01* | freebsdelf3.01*)
16262
shlibpath_overrides_runpath=yes
16263
hardcode_into_libs=yes
16266
shlibpath_overrides_runpath=no
16267
hardcode_into_libs=yes
16276
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16277
soname_spec='${libname}${release}${shared_ext}$major'
16278
shlibpath_var=LD_LIBRARY_PATH
16279
hardcode_into_libs=yes
16282
hpux9* | hpux10* | hpux11*)
16283
# Give a soname corresponding to the major version so that dld.sl refuses to
16284
# link against other versions.
16288
case "$host_cpu" in
16291
hardcode_into_libs=yes
16292
dynamic_linker="$host_os dld.so"
16293
shlibpath_var=LD_LIBRARY_PATH
16294
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16295
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16296
soname_spec='${libname}${release}${shared_ext}$major'
16297
if test "X$HPUX_IA64_MODE" = X32; then
16298
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16300
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16302
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16306
hardcode_into_libs=yes
16307
dynamic_linker="$host_os dld.sl"
16308
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16309
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16310
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16311
soname_spec='${libname}${release}${shared_ext}$major'
16312
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16313
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16317
dynamic_linker="$host_os dld.sl"
16318
shlibpath_var=SHLIB_PATH
16319
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16320
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16321
soname_spec='${libname}${release}${shared_ext}$major'
16324
# HP-UX runs *really* slowly unless shared libraries are mode 555.
16325
postinstall_cmds='chmod 555 $lib'
16328
irix5* | irix6* | nonstopux*)
16330
nonstopux*) version_type=nonstopux ;;
16332
if test "$lt_cv_prog_gnu_ld" = yes; then
16340
soname_spec='${libname}${release}${shared_ext}$major'
16341
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16343
irix5* | nonstopux*)
16344
libsuff= shlibsuff=
16347
case $LD in # libtool.m4 will add one of these switches to LD
16348
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16349
libsuff= shlibsuff= libmagic=32-bit;;
16350
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16351
libsuff=32 shlibsuff=N32 libmagic=N32;;
16352
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16353
libsuff=64 shlibsuff=64 libmagic=64-bit;;
16354
*) libsuff= shlibsuff= libmagic=never-match;;
16358
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16359
shlibpath_overrides_runpath=no
16360
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16361
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16362
hardcode_into_libs=yes
16365
# No shared lib support for Linux oldld, aout, or coff.
16366
linux*oldld* | linux*aout* | linux*coff*)
16370
# This must be Linux ELF.
16375
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16376
soname_spec='${libname}${release}${shared_ext}$major'
16377
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16378
shlibpath_var=LD_LIBRARY_PATH
16379
shlibpath_overrides_runpath=no
16380
# This implies no fast_install, which is unacceptable.
16381
# Some rework will be needed to allow for fast_install
16382
# before this can be enabled.
16383
hardcode_into_libs=yes
16385
# Append ld.so.conf contents to the search path
16386
if test -f /etc/ld.so.conf; then
16387
lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
16388
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16391
# We used to test for /lib/ld.so.1 and disable shared libraries on
16392
# powerpc, because MkLinux only supported shared libraries with the
16393
# GNU dynamic linker. Since this was broken with cross compilers,
16394
# most powerpc-linux boxes support dynamic linking these days and
16395
# people can always --disable-shared, the test was removed, and we
16396
# assume the GNU/Linux dynamic linker is in use.
16397
dynamic_linker='GNU/Linux ld.so'
16404
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16405
soname_spec='${libname}${release}${shared_ext}$major'
16406
shlibpath_var=LD_LIBRARY_PATH
16407
shlibpath_overrides_runpath=no
16408
hardcode_into_libs=yes
16409
dynamic_linker='GNU ld.so'
16416
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16417
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16418
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16419
dynamic_linker='NetBSD (a.out) ld.so'
16421
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16422
soname_spec='${libname}${release}${shared_ext}$major'
16423
dynamic_linker='NetBSD ld.elf_so'
16425
shlibpath_var=LD_LIBRARY_PATH
16426
shlibpath_overrides_runpath=yes
16427
hardcode_into_libs=yes
16432
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16433
shlibpath_var=LD_LIBRARY_PATH
16434
shlibpath_overrides_runpath=yes
16441
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16442
soname_spec='${libname}${release}${shared_ext}$major'
16443
shlibpath_var=LD_LIBRARY_PATH
16444
shlibpath_overrides_runpath=yes
16451
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16452
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16453
shlibpath_var=LD_LIBRARY_PATH
16454
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16456
openbsd2.[89] | openbsd2.[89].*)
16457
shlibpath_overrides_runpath=no
16460
shlibpath_overrides_runpath=yes
16464
shlibpath_overrides_runpath=yes
16469
libname_spec='$name'
16472
library_names_spec='$libname${shared_ext} $libname.a'
16473
dynamic_linker='OS/2 ld.exe'
16474
shlibpath_var=LIBPATH
16477
osf3* | osf4* | osf5*)
16481
soname_spec='${libname}${release}${shared_ext}$major'
16482
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16483
shlibpath_var=LD_LIBRARY_PATH
16484
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16485
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16490
soname_spec='${libname}${release}${shared_ext}$major'
16491
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16492
shlibpath_var=LD_LIBRARY_PATH
16499
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16500
soname_spec='${libname}${release}${shared_ext}$major'
16501
shlibpath_var=LD_LIBRARY_PATH
16502
shlibpath_overrides_runpath=yes
16503
hardcode_into_libs=yes
16504
# ldd complains unless libraries are executable
16505
postinstall_cmds='chmod +x $lib'
16510
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16511
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16512
shlibpath_var=LD_LIBRARY_PATH
16513
shlibpath_overrides_runpath=yes
16514
if test "$with_gnu_ld" = yes; then
16520
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16522
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16523
soname_spec='${libname}${release}${shared_ext}$major'
16524
shlibpath_var=LD_LIBRARY_PATH
16525
case $host_vendor in
16527
shlibpath_overrides_runpath=no
16529
export_dynamic_flag_spec='${wl}-Blargedynsym'
16530
runpath_var=LD_RUN_PATH
16538
shlibpath_overrides_runpath=no
16539
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16545
if test -d /usr/nec ;then
16547
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16548
soname_spec='$libname${shared_ext}.$major'
16549
shlibpath_var=LD_LIBRARY_PATH
16555
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16556
soname_spec='${libname}${release}${shared_ext}$major'
16557
shlibpath_var=LD_LIBRARY_PATH
16564
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16565
echo "${ECHO_T}$dynamic_linker" >&6
16566
test "$dynamic_linker" = no && can_build_shared=no
16568
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16569
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16570
hardcode_action_F77=
16571
if test -n "$hardcode_libdir_flag_spec_F77" || \
16572
test -n "$runpath_var F77" || \
16573
test "X$hardcode_automatic_F77"="Xyes" ; then
16575
# We can hardcode non-existant directories.
16576
if test "$hardcode_direct_F77" != no &&
16577
# If the only mechanism to avoid hardcoding is shlibpath_var, we
16578
# have to relink, otherwise we might link with an installed library
16579
# when we should be linking with a yet-to-be-installed one
16580
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16581
test "$hardcode_minus_L_F77" != no; then
16582
# Linking always hardcodes the temporary library directory.
16583
hardcode_action_F77=relink
16585
# We can link without hardcoding, and we can hardcode nonexisting dirs.
16586
hardcode_action_F77=immediate
16589
# We cannot hardcode anything, or else we can only hardcode existing
16591
hardcode_action_F77=unsupported
16593
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16594
echo "${ECHO_T}$hardcode_action_F77" >&6
16596
if test "$hardcode_action_F77" = relink; then
16597
# Fast installation is not supported
16598
enable_fast_install=no
16599
elif test "$shlibpath_overrides_runpath" = yes ||
16600
test "$enable_shared" = no; then
16601
# Fast installation is not necessary
16602
enable_fast_install=needless
16607
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16608
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16609
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16610
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16611
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16612
echo "$as_me:$LINENO: result: yes" >&5
16613
echo "${ECHO_T}yes" >&6
16615
# FIXME - insert some real tests, host_os isn't really good enough
16618
if test -n "$STRIP" ; then
16619
striplib="$STRIP -x"
16620
echo "$as_me:$LINENO: result: yes" >&5
16621
echo "${ECHO_T}yes" >&6
16623
echo "$as_me:$LINENO: result: no" >&5
16624
echo "${ECHO_T}no" >&6
16628
echo "$as_me:$LINENO: result: no" >&5
16629
echo "${ECHO_T}no" >&6
16636
# The else clause should only fire when bootstrapping the
16637
# libtool distribution, otherwise you forgot to ship ltmain.sh
16638
# with your package, and you will get complaints that there are
16639
# no rules to generate ltmain.sh.
16640
if test -f "$ltmain"; then
16641
# See if we are running on zsh, and set the options which allow our commands through
16642
# without removal of \ escapes.
16643
if test -n "${ZSH_VERSION+set}" ; then
16644
setopt NO_GLOB_SUBST
16646
# Now quote all the things that may contain metacharacters while being
16647
# careful not to overquote the AC_SUBSTed values. We take copies of the
16648
# variables and quote the copies for generation of the libtool script.
16649
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
16651
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16652
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16653
deplibs_check_method reload_flag reload_cmds need_locks \
16654
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16655
lt_cv_sys_global_symbol_to_c_name_address \
16656
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16657
old_postinstall_cmds old_postuninstall_cmds \
16661
lt_prog_compiler_wl_F77 \
16662
lt_prog_compiler_pic_F77 \
16663
lt_prog_compiler_static_F77 \
16664
lt_prog_compiler_no_builtin_flag_F77 \
16665
export_dynamic_flag_spec_F77 \
16666
thread_safe_flag_spec_F77 \
16667
whole_archive_flag_spec_F77 \
16668
enable_shared_with_static_runtimes_F77 \
16669
old_archive_cmds_F77 \
16670
old_archive_from_new_cmds_F77 \
16671
predep_objects_F77 \
16672
postdep_objects_F77 \
16675
compiler_lib_search_path_F77 \
16677
archive_expsym_cmds_F77 \
16678
postinstall_cmds_F77 \
16679
postuninstall_cmds_F77 \
16680
old_archive_from_expsyms_cmds_F77 \
16681
allow_undefined_flag_F77 \
16682
no_undefined_flag_F77 \
16683
export_symbols_cmds_F77 \
16684
hardcode_libdir_flag_spec_F77 \
16685
hardcode_libdir_flag_spec_ld_F77 \
16686
hardcode_libdir_separator_F77 \
16687
hardcode_automatic_F77 \
16689
module_expsym_cmds_F77 \
16690
lt_cv_prog_compiler_c_o_F77 \
16691
exclude_expsyms_F77 \
16692
include_expsyms_F77; do
16695
old_archive_cmds_F77 | \
16696
old_archive_from_new_cmds_F77 | \
16697
archive_cmds_F77 | \
16698
archive_expsym_cmds_F77 | \
16699
module_cmds_F77 | \
16700
module_expsym_cmds_F77 | \
16701
old_archive_from_expsyms_cmds_F77 | \
16702
export_symbols_cmds_F77 | \
16703
extract_expsyms_cmds | reload_cmds | finish_cmds | \
16704
postinstall_cmds | postuninstall_cmds | \
16705
old_postinstall_cmds | old_postuninstall_cmds | \
16706
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16707
# Double-quote double-evaled strings.
16708
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16711
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16717
*'\$0 --fallback-echo"')
16718
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16724
cat <<__EOF__ >> "$cfgfile"
16725
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16727
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16729
# Shell to use when invoking shell scripts.
16732
# Whether or not to build shared libraries.
16733
build_libtool_libs=$enable_shared
16735
# Whether or not to build static libraries.
16736
build_old_libs=$enable_static
16738
# Whether or not to add -lc for building shared libraries.
16739
build_libtool_need_lc=$archive_cmds_need_lc_F77
16741
# Whether or not to disallow shared libs when runtime libs are static
16742
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16744
# Whether or not to optimize for fast installation.
16745
fast_install=$enable_fast_install
16748
host_alias=$host_alias
16751
# An echo program that does not interpret backslashes.
16756
AR_FLAGS=$lt_AR_FLAGS
16761
# A language-specific compiler.
16762
CC=$lt_compiler_F77
16764
# Is the compiler the GNU C compiler?
16770
# The linker used to build libraries.
16773
# Whether we need hard or soft links.
16776
# A BSD-compatible nm program.
16779
# A symbol stripping program
16782
# Used to examine libraries when file_magic_cmd begins "file"
16783
MAGIC_CMD=$MAGIC_CMD
16785
# Used on cygwin: DLL creation program.
16788
# Used on cygwin: object dumper.
16791
# Used on cygwin: assembler.
16794
# The name of the directory that contains temporary libtool files.
16797
# How to create reloadable object files.
16798
reload_flag=$lt_reload_flag
16799
reload_cmds=$lt_reload_cmds
16801
# How to pass a linker flag through the compiler.
16802
wl=$lt_lt_prog_compiler_wl_F77
16804
# Object file suffix (normally "o").
16805
objext="$ac_objext"
16807
# Old archive suffix (normally "a").
16810
# Shared library suffix (normally ".so").
16811
shrext_cmds='$shrext_cmds'
16813
# Executable file suffix (normally "").
16816
# Additional compiler flags for building library objects.
16817
pic_flag=$lt_lt_prog_compiler_pic_F77
16820
# What is the maximum length of a command?
16821
max_cmd_len=$lt_cv_sys_max_cmd_len
16823
# Does compiler simultaneously support -c and -o options?
16824
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16826
# Must we lock files when doing compilation ?
16827
need_locks=$lt_need_locks
16829
# Do we need the lib prefix for modules?
16830
need_lib_prefix=$need_lib_prefix
16832
# Do we need a version for libraries?
16833
need_version=$need_version
16835
# Whether dlopen is supported.
16836
dlopen_support=$enable_dlopen
16838
# Whether dlopen of programs is supported.
16839
dlopen_self=$enable_dlopen_self
16841
# Whether dlopen of statically linked programs is supported.
16842
dlopen_self_static=$enable_dlopen_self_static
16844
# Compiler flag to prevent dynamic linking.
16845
link_static_flag=$lt_lt_prog_compiler_static_F77
16847
# Compiler flag to turn off builtin functions.
16848
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16850
# Compiler flag to allow reflexive dlopens.
16851
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16853
# Compiler flag to generate shared objects directly from archives.
16854
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16856
# Compiler flag to generate thread-safe objects.
16857
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16859
# Library versioning type.
16860
version_type=$version_type
16862
# Format of library name prefix.
16863
libname_spec=$lt_libname_spec
16865
# List of archive names. First name is the real one, the rest are links.
16866
# The last name is the one that the linker finds with -lNAME.
16867
library_names_spec=$lt_library_names_spec
16869
# The coded name of the library, if different from the real name.
16870
soname_spec=$lt_soname_spec
16872
# Commands used to build and install an old-style archive.
16874
old_archive_cmds=$lt_old_archive_cmds_F77
16875
old_postinstall_cmds=$lt_old_postinstall_cmds
16876
old_postuninstall_cmds=$lt_old_postuninstall_cmds
16878
# Create an old-style archive from a shared archive.
16879
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16881
# Create a temporary old-style archive to link instead of a shared archive.
16882
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16884
# Commands used to build and install a shared archive.
16885
archive_cmds=$lt_archive_cmds_F77
16886
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16887
postinstall_cmds=$lt_postinstall_cmds
16888
postuninstall_cmds=$lt_postuninstall_cmds
16890
# Commands used to build a loadable module (assumed same as above if empty)
16891
module_cmds=$lt_module_cmds_F77
16892
module_expsym_cmds=$lt_module_expsym_cmds_F77
16894
# Commands to strip libraries.
16895
old_striplib=$lt_old_striplib
16896
striplib=$lt_striplib
16898
# Dependencies to place before the objects being linked to create a
16900
predep_objects=$lt_predep_objects_F77
16902
# Dependencies to place after the objects being linked to create a
16904
postdep_objects=$lt_postdep_objects_F77
16906
# Dependencies to place before the objects being linked to create a
16908
predeps=$lt_predeps_F77
16910
# Dependencies to place after the objects being linked to create a
16912
postdeps=$lt_postdeps_F77
16914
# The library search path used internally by the compiler when linking
16915
# a shared library.
16916
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16918
# Method to check whether dependent libraries are shared objects.
16919
deplibs_check_method=$lt_deplibs_check_method
16921
# Command to use when deplibs_check_method == file_magic.
16922
file_magic_cmd=$lt_file_magic_cmd
16924
# Flag that allows shared libraries with undefined symbols to be built.
16925
allow_undefined_flag=$lt_allow_undefined_flag_F77
16927
# Flag that forces no undefined symbols.
16928
no_undefined_flag=$lt_no_undefined_flag_F77
16930
# Commands used to finish a libtool library installation in a directory.
16931
finish_cmds=$lt_finish_cmds
16933
# Same as above, but a single script fragment to be evaled but not shown.
16934
finish_eval=$lt_finish_eval
16936
# Take the output of nm and produce a listing of raw symbols and C names.
16937
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16939
# Transform the output of nm in a proper C declaration
16940
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16942
# Transform the output of nm in a C name address pair
16943
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16945
# This is the shared library runtime path variable.
16946
runpath_var=$runpath_var
16948
# This is the shared library path variable.
16949
shlibpath_var=$shlibpath_var
16951
# Is shlibpath searched before the hard-coded library search path?
16952
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16954
# How to hardcode a shared library path into an executable.
16955
hardcode_action=$hardcode_action_F77
16957
# Whether we should hardcode library paths into libraries.
16958
hardcode_into_libs=$hardcode_into_libs
16960
# Flag to hardcode \$libdir into a binary during linking.
16961
# This must work even if \$libdir does not exist.
16962
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16964
# If ld is used when linking, flag to hardcode \$libdir into
16965
# a binary during linking. This must work even if \$libdir does
16967
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16969
# Whether we need a single -rpath flag with a separated argument.
16970
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16972
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16973
# resulting binary.
16974
hardcode_direct=$hardcode_direct_F77
16976
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16977
# resulting binary.
16978
hardcode_minus_L=$hardcode_minus_L_F77
16980
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16981
# the resulting binary.
16982
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16984
# Set to yes if building a shared library automatically hardcodes DIR into the library
16985
# and all subsequent libraries and executables linked against it.
16986
hardcode_automatic=$hardcode_automatic_F77
16988
# Variables whose values should be saved in libtool wrapper scripts and
16989
# restored at relink time.
16990
variables_saved_for_relink="$variables_saved_for_relink"
16992
# Whether libtool must link a program against all its dependency libraries.
16993
link_all_deplibs=$link_all_deplibs_F77
16995
# Compile-time system search path for libraries
16996
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16998
# Run-time system search path for libraries
16999
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17001
# Fix the shell variable \$srcfile for the compiler.
17002
fix_srcfile_path="$fix_srcfile_path_F77"
17004
# Set to yes if exported symbols are required.
17005
always_export_symbols=$always_export_symbols_F77
17007
# The commands to list exported symbols.
17008
export_symbols_cmds=$lt_export_symbols_cmds_F77
17010
# The commands to extract the exported symbol list from a shared archive.
17011
extract_expsyms_cmds=$lt_extract_expsyms_cmds
17013
# Symbols that should not be listed in the preloaded symbols.
17014
exclude_expsyms=$lt_exclude_expsyms_F77
17016
# Symbols that must always be exported.
17017
include_expsyms=$lt_include_expsyms_F77
17019
# ### END LIBTOOL TAG CONFIG: $tagname
17025
# If there is no Makefile yet, we rely on a make rule to execute
17026
# `config.status --recheck' to rerun these tests and create the
17027
# libtool script then.
17028
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17029
if test -f "$ltmain_in"; then
17030
test -f Makefile && make "$ltmain"
17036
ac_cpp='$CPP $CPPFLAGS'
17037
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17038
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17039
ac_compiler_gnu=$ac_cv_c_compiler_gnu
17049
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17053
# Source file extension for Java test sources.
17056
# Object file extension for compiled Java test sources.
17060
# Code to be used in simple compile tests
17061
lt_simple_compile_test_code="class foo {}\n"
17063
# Code to be used in simple link tests
17064
lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
17066
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17068
# If no C compiler was specified, use CC.
17071
# Allow CC to be a program name with arguments.
17075
# Allow CC to be a program name with arguments.
17081
# GCJ did not exist at the time GCC didn't implicitly link libc in.
17082
archive_cmds_need_lc_GCJ=no
17085
lt_prog_compiler_no_builtin_flag_GCJ=
17087
if test "$GCC" = yes; then
17088
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17091
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17092
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
17093
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17094
echo $ECHO_N "(cached) $ECHO_C" >&6
17096
lt_cv_prog_compiler_rtti_exceptions=no
17097
ac_outfile=conftest.$ac_objext
17098
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17099
lt_compiler_flag="-fno-rtti -fno-exceptions"
17100
# Insert the option either (1) after the last *FLAGS variable, or
17101
# (2) before a word containing "conftest.", or (3) at the end.
17102
# Note that $ac_compile itself does not contain backslashes and begins
17103
# with a dollar sign (not a hyphen), so the echo should work correctly.
17104
# The option is referenced via a variable to avoid confusing sed.
17105
lt_compile=`echo "$ac_compile" | $SED \
17106
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17107
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17108
-e 's:$: $lt_compiler_flag:'`
17109
(eval echo "\"\$as_me:17109: $lt_compile\"" >&5)
17110
(eval "$lt_compile" 2>conftest.err)
17112
cat conftest.err >&5
17113
echo "$as_me:17113: \$? = $ac_status" >&5
17114
if (exit $ac_status) && test -s "$ac_outfile"; then
17115
# The compiler can only warn and ignore the option if not recognized
17116
# So say no if there are warnings
17117
if test ! -s conftest.err; then
17118
lt_cv_prog_compiler_rtti_exceptions=yes
17124
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17125
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
17127
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17128
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17135
lt_prog_compiler_wl_GCJ=
17136
lt_prog_compiler_pic_GCJ=
17137
lt_prog_compiler_static_GCJ=
17139
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17140
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17142
if test "$GCC" = yes; then
17143
lt_prog_compiler_wl_GCJ='-Wl,'
17144
lt_prog_compiler_static_GCJ='-static'
17148
# All AIX code is PIC.
17149
if test "$host_cpu" = ia64; then
17150
# AIX 5 now supports IA64 processor
17151
lt_prog_compiler_static_GCJ='-Bstatic'
17156
# FIXME: we need at least 68020 code to build shared libraries, but
17157
# adding the `-m68020' flag to GCC prevents building anything better,
17159
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17162
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17163
# PIC is the default for these OSes.
17166
mingw* | pw32* | os2*)
17167
# This hack is so that the source file can tell whether it is being
17168
# built for inclusion in a dll (and should export symbols for example).
17169
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17172
darwin* | rhapsody*)
17173
# PIC is the default on this platform
17174
# Common symbols not allowed in MH_DYLIB files
17175
lt_prog_compiler_pic_GCJ='-fno-common'
17179
# Just because we use GCC doesn't mean we suddenly get shared libraries
17180
# on systems that don't support them.
17181
lt_prog_compiler_can_build_shared_GCJ=no
17186
if test -d /usr/nec; then
17187
lt_prog_compiler_pic_GCJ=-Kconform_pic
17192
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17193
# not for PA HP-UX.
17194
case "$host_cpu" in
17199
lt_prog_compiler_pic_GCJ='-fPIC'
17205
lt_prog_compiler_pic_GCJ='-fPIC'
17209
# PORTME Check for flag to pass linker flags through the system compiler.
17212
lt_prog_compiler_wl_GCJ='-Wl,'
17213
if test "$host_cpu" = ia64; then
17214
# AIX 5 now supports IA64 processor
17215
lt_prog_compiler_static_GCJ='-Bstatic'
17217
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17221
mingw* | pw32* | os2*)
17222
# This hack is so that the source file can tell whether it is being
17223
# built for inclusion in a dll (and should export symbols for example).
17224
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17227
hpux9* | hpux10* | hpux11*)
17228
lt_prog_compiler_wl_GCJ='-Wl,'
17229
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17230
# not for PA HP-UX.
17231
case "$host_cpu" in
17236
lt_prog_compiler_pic_GCJ='+Z'
17239
# Is there a better lt_prog_compiler_static that works with the bundled CC?
17240
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17243
irix5* | irix6* | nonstopux*)
17244
lt_prog_compiler_wl_GCJ='-Wl,'
17245
# PIC (with -KPIC) is the default.
17246
lt_prog_compiler_static_GCJ='-non_shared'
17250
lt_prog_compiler_pic_GCJ='-KPIC'
17251
lt_prog_compiler_static_GCJ='-Bstatic'
17257
lt_prog_compiler_wl_GCJ='-Wl,'
17258
lt_prog_compiler_pic_GCJ='-KPIC'
17259
lt_prog_compiler_static_GCJ='-static'
17262
lt_prog_compiler_wl_GCJ='-Wl,'
17263
# All Alpha code is PIC.
17264
lt_prog_compiler_static_GCJ='-non_shared'
17269
osf3* | osf4* | osf5*)
17270
lt_prog_compiler_wl_GCJ='-Wl,'
17271
# All OSF/1 code is PIC.
17272
lt_prog_compiler_static_GCJ='-non_shared'
17276
lt_prog_compiler_pic_GCJ='-Kpic'
17277
lt_prog_compiler_static_GCJ='-dn'
17281
lt_prog_compiler_wl_GCJ='-Wl,'
17282
lt_prog_compiler_pic_GCJ='-KPIC'
17283
lt_prog_compiler_static_GCJ='-Bstatic'
17287
lt_prog_compiler_wl_GCJ='-Qoption ld '
17288
lt_prog_compiler_pic_GCJ='-PIC'
17289
lt_prog_compiler_static_GCJ='-Bstatic'
17292
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17293
lt_prog_compiler_wl_GCJ='-Wl,'
17294
lt_prog_compiler_pic_GCJ='-KPIC'
17295
lt_prog_compiler_static_GCJ='-Bstatic'
17299
if test -d /usr/nec ;then
17300
lt_prog_compiler_pic_GCJ='-Kconform_pic'
17301
lt_prog_compiler_static_GCJ='-Bstatic'
17306
lt_prog_compiler_pic_GCJ='-pic'
17307
lt_prog_compiler_static_GCJ='-Bstatic'
17311
lt_prog_compiler_can_build_shared_GCJ=no
17316
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17317
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
17320
# Check to make sure the PIC flag actually works.
17322
if test -n "$lt_prog_compiler_pic_GCJ"; then
17324
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17325
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
17326
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17327
echo $ECHO_N "(cached) $ECHO_C" >&6
17329
lt_prog_compiler_pic_works_GCJ=no
17330
ac_outfile=conftest.$ac_objext
17331
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17332
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17333
# Insert the option either (1) after the last *FLAGS variable, or
17334
# (2) before a word containing "conftest.", or (3) at the end.
17335
# Note that $ac_compile itself does not contain backslashes and begins
17336
# with a dollar sign (not a hyphen), so the echo should work correctly.
17337
# The option is referenced via a variable to avoid confusing sed.
17338
lt_compile=`echo "$ac_compile" | $SED \
17339
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17340
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17341
-e 's:$: $lt_compiler_flag:'`
17342
(eval echo "\"\$as_me:17342: $lt_compile\"" >&5)
17343
(eval "$lt_compile" 2>conftest.err)
17345
cat conftest.err >&5
17346
echo "$as_me:17346: \$? = $ac_status" >&5
17347
if (exit $ac_status) && test -s "$ac_outfile"; then
17348
# The compiler can only warn and ignore the option if not recognized
17349
# So say no if there are warnings
17350
if test ! -s conftest.err; then
17351
lt_prog_compiler_pic_works_GCJ=yes
17357
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17358
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
17360
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17361
case $lt_prog_compiler_pic_GCJ in
17363
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17366
lt_prog_compiler_pic_GCJ=
17367
lt_prog_compiler_can_build_shared_GCJ=no
17372
# For platforms which do not support PIC, -DPIC is meaningless:
17374
lt_prog_compiler_pic_GCJ=
17377
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17381
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17382
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17383
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17384
echo $ECHO_N "(cached) $ECHO_C" >&6
17386
lt_cv_prog_compiler_c_o_GCJ=no
17387
$rm -r conftest 2>/dev/null
17391
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17393
lt_compiler_flag="-o out/conftest2.$ac_objext"
17394
# Insert the option either (1) after the last *FLAGS variable, or
17395
# (2) before a word containing "conftest.", or (3) at the end.
17396
# Note that $ac_compile itself does not contain backslashes and begins
17397
# with a dollar sign (not a hyphen), so the echo should work correctly.
17398
lt_compile=`echo "$ac_compile" | $SED \
17399
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17400
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17401
-e 's:$: $lt_compiler_flag:'`
17402
(eval echo "\"\$as_me:17402: $lt_compile\"" >&5)
17403
(eval "$lt_compile" 2>out/conftest.err)
17405
cat out/conftest.err >&5
17406
echo "$as_me:17406: \$? = $ac_status" >&5
17407
if (exit $ac_status) && test -s out/conftest2.$ac_objext
17409
# The compiler can only warn and ignore the option if not recognized
17410
# So say no if there are warnings
17411
if test ! -s out/conftest.err; then
17412
lt_cv_prog_compiler_c_o_GCJ=yes
17417
# SGI C++ compiler will create directory out/ii_files/ for
17418
# template instantiation
17419
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17420
$rm out/* && rmdir out
17426
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17427
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
17430
hard_links="nottested"
17431
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17432
# do not overwrite the value of need_locks provided by the user
17433
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17434
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17437
ln conftest.a conftest.b 2>/dev/null && hard_links=no
17439
ln conftest.a conftest.b 2>&5 || hard_links=no
17440
ln conftest.a conftest.b 2>/dev/null && hard_links=no
17441
echo "$as_me:$LINENO: result: $hard_links" >&5
17442
echo "${ECHO_T}$hard_links" >&6
17443
if test "$hard_links" = no; then
17444
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17445
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17452
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17453
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17456
allow_undefined_flag_GCJ=
17457
enable_shared_with_static_runtimes_GCJ=no
17459
archive_expsym_cmds_GCJ=
17460
old_archive_From_new_cmds_GCJ=
17461
old_archive_from_expsyms_cmds_GCJ=
17462
export_dynamic_flag_spec_GCJ=
17463
whole_archive_flag_spec_GCJ=
17464
thread_safe_flag_spec_GCJ=
17465
hardcode_libdir_flag_spec_GCJ=
17466
hardcode_libdir_flag_spec_ld_GCJ=
17467
hardcode_libdir_separator_GCJ=
17468
hardcode_direct_GCJ=no
17469
hardcode_minus_L_GCJ=no
17470
hardcode_shlibpath_var_GCJ=unsupported
17471
link_all_deplibs_GCJ=unknown
17472
hardcode_automatic_GCJ=no
17474
module_expsym_cmds_GCJ=
17475
always_export_symbols_GCJ=no
17476
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17477
# include_expsyms should be a list of space-separated symbols to be *always*
17478
# included in the symbol list
17479
include_expsyms_GCJ=
17480
# exclude_expsyms can be an extended regexp of symbols to exclude
17481
# it will be wrapped by ` (' and `)$', so one must not match beginning or
17482
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17483
# as well as any symbol that contains `d'.
17484
exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17485
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17486
# platforms (ab)use it in PIC code, but their linkers get confused if
17487
# the symbol is explicitly referenced. Since portable code cannot
17488
# rely on this symbol name, it's probably fine to never include it in
17489
# preloaded symbol tables.
17490
extract_expsyms_cmds=
17493
cygwin* | mingw* | pw32*)
17494
# FIXME: the MSVC++ port hasn't been tested in a loooong time
17495
# When not using gcc, we currently assume that we are using
17496
# Microsoft Visual C++.
17497
if test "$GCC" != yes; then
17507
if test "$with_gnu_ld" = yes; then
17508
# If archive_cmds runs LD, not CC, wlarc should be empty
17511
# See if GNU ld supports shared libraries.
17513
aix3* | aix4* | aix5*)
17514
# On AIX/PPC, the GNU linker is very broken
17515
if test "$host_cpu" != ia64; then
17519
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17520
*** to be unable to reliably create shared libraries on AIX.
17521
*** Therefore, libtool is disabling shared libraries support. If you
17522
*** really care for shared libraries, you may want to modify your PATH
17523
*** so that a non-GNU linker is found, and then restart.
17530
archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
17531
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17532
hardcode_minus_L_GCJ=yes
17534
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17535
# that the semantics of dynamic libraries on AmigaOS, at least up
17536
# to version 4, is to share data among multiple programs linked
17537
# with the same dynamic library. Since this doesn't match the
17538
# behavior of shared libraries on other platforms, we can't use
17544
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17545
allow_undefined_flag_GCJ=unsupported
17546
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17547
# support --undefined. This deserves some investigation. FIXME
17548
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17554
cygwin* | mingw* | pw32*)
17555
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17556
# as there is no search path for DLLs.
17557
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17558
allow_undefined_flag_GCJ=unsupported
17559
always_export_symbols_GCJ=no
17560
enable_shared_with_static_runtimes_GCJ=yes
17561
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17563
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17564
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17565
# If the export-symbols file already is a .def file (1st line
17566
# is EXPORTS), use it as is; otherwise, prepend...
17567
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17568
cp $export_symbols $output_objdir/$soname.def;
17570
echo EXPORTS > $output_objdir/$soname.def;
17571
cat $export_symbols >> $output_objdir/$soname.def;
17573
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17580
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17581
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17584
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17585
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17590
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17594
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17595
*** create shared libraries on Solaris systems. Therefore, libtool
17596
*** is disabling shared libraries support. We urge you to upgrade GNU
17597
*** binutils to release 2.9.1 or newer. Another option is to modify
17598
*** your PATH or compiler configuration so that the native linker is
17599
*** used, and then restart.
17602
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17603
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17604
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17611
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17613
hardcode_direct_GCJ=yes
17614
hardcode_shlibpath_var_GCJ=no
17618
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17619
tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17620
archive_cmds_GCJ="$tmp_archive_cmds"
17621
supports_anon_versioning=no
17622
case `$LD -v 2>/dev/null` in
17623
*\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17624
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17625
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17626
*\ 2.11.*) ;; # other 2.11 versions
17627
*) supports_anon_versioning=yes ;;
17629
if test $supports_anon_versioning = yes; then
17630
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17631
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17632
$echo "local: *; };" >> $output_objdir/$libname.ver~
17633
$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17635
archive_expsym_cmds_GCJ="$tmp_archive_cmds"
17643
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17644
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17645
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17652
if test "$ld_shlibs_GCJ" = yes; then
17653
runpath_var=LD_RUN_PATH
17654
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17655
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17656
# ancient GNU ld didn't support --whole-archive et. al.
17657
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17658
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17660
whole_archive_flag_spec_GCJ=
17664
# PORTME fill in a description of your system's linker (not GNU ld)
17667
allow_undefined_flag_GCJ=unsupported
17668
always_export_symbols_GCJ=yes
17669
archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
17670
# Note: this linker hardcodes the directories in LIBPATH if there
17671
# are no directories specified by -L.
17672
hardcode_minus_L_GCJ=yes
17673
if test "$GCC" = yes && test -z "$link_static_flag"; then
17674
# Neither direct hardcoding nor static linking is supported with a
17676
hardcode_direct_GCJ=unsupported
17681
if test "$host_cpu" = ia64; then
17682
# On IA64, the linker does run time linking by default, so we don't
17683
# have to do anything special.
17684
aix_use_runtimelinking=no
17685
exp_sym_flag='-Bexport'
17688
# If we're using GNU nm, then we don't want the "-C" option.
17689
# -C means demangle to AIX nm, but means don't demangle with GNU nm
17690
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17691
export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17693
export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17695
aix_use_runtimelinking=no
17697
# Test if we are trying to use run time linking or normal
17698
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17699
# need to do runtime linking.
17700
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17701
for ld_flag in $LDFLAGS; do
17702
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17703
aix_use_runtimelinking=yes
17709
exp_sym_flag='-bexport'
17710
no_entry_flag='-bnoentry'
17713
# When large executables or shared objects are built, AIX ld can
17714
# have problems creating the table of contents. If linking a library
17715
# or program results in "error TOC overflow" add -mminimal-toc to
17716
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17717
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17719
archive_cmds_GCJ=''
17720
hardcode_direct_GCJ=yes
17721
hardcode_libdir_separator_GCJ=':'
17722
link_all_deplibs_GCJ=yes
17724
if test "$GCC" = yes; then
17725
case $host_os in aix4.012|aix4.012.*)
17726
# We only want to do this on AIX 4.2 and lower, the check
17727
# below for broken collect2 doesn't work under 4.3+
17728
collect2name=`${CC} -print-prog-name=collect2`
17729
if test -f "$collect2name" && \
17730
strings "$collect2name" | grep resolve_lib_name >/dev/null
17732
# We have reworked collect2
17733
hardcode_direct_GCJ=yes
17735
# We have old collect2
17736
hardcode_direct_GCJ=unsupported
17737
# It fails to find uninstalled libraries when the uninstalled
17738
# path is not listed in the libpath. Setting hardcode_minus_L
17739
# to unsupported forces relinking
17740
hardcode_minus_L_GCJ=yes
17741
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17742
hardcode_libdir_separator_GCJ=
17745
shared_flag='-shared'
17748
if test "$host_cpu" = ia64; then
17749
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17750
# chokes on -Wl,-G. The following line is correct:
17753
if test "$aix_use_runtimelinking" = yes; then
17754
shared_flag='${wl}-G'
17756
shared_flag='${wl}-bM:SRE'
17761
# It seems that -bexpall does not export symbols beginning with
17762
# underscore (_), so it is better to generate a list of symbols to export.
17763
always_export_symbols_GCJ=yes
17764
if test "$aix_use_runtimelinking" = yes; then
17765
# Warning - without using the other runtime loading flags (-brtl),
17766
# -berok will link without error, but may produce a broken library.
17767
allow_undefined_flag_GCJ='-berok'
17768
# Determine the default libpath from the value encoded in an empty executable.
17769
cat >conftest.$ac_ext <<_ACEOF
17772
cat confdefs.h >>conftest.$ac_ext
17773
cat >>conftest.$ac_ext <<_ACEOF
17774
/* end confdefs.h. */
17784
rm -f conftest.$ac_objext conftest$ac_exeext
17785
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17786
(eval $ac_link) 2>conftest.er1
17788
grep -v '^ *+' conftest.er1 >conftest.err
17790
cat conftest.err >&5
17791
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17792
(exit $ac_status); } &&
17793
{ ac_try='test -z "$ac_c_werror_flag"
17794
|| test ! -s conftest.err'
17795
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17796
(eval $ac_try) 2>&5
17798
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17799
(exit $ac_status); }; } &&
17800
{ ac_try='test -s conftest$ac_exeext'
17801
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17802
(eval $ac_try) 2>&5
17804
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17805
(exit $ac_status); }; }; then
17807
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17809
# Check for a 64-bit object if we didn't find anything.
17810
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17813
echo "$as_me: failed program was:" >&5
17814
sed 's/^/| /' conftest.$ac_ext >&5
17817
rm -f conftest.err conftest.$ac_objext \
17818
conftest$ac_exeext conftest.$ac_ext
17819
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17821
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17822
archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17824
if test "$host_cpu" = ia64; then
17825
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17826
allow_undefined_flag_GCJ="-z nodefs"
17827
archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
17829
# Determine the default libpath from the value encoded in an empty executable.
17830
cat >conftest.$ac_ext <<_ACEOF
17833
cat confdefs.h >>conftest.$ac_ext
17834
cat >>conftest.$ac_ext <<_ACEOF
17835
/* end confdefs.h. */
17845
rm -f conftest.$ac_objext conftest$ac_exeext
17846
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17847
(eval $ac_link) 2>conftest.er1
17849
grep -v '^ *+' conftest.er1 >conftest.err
17851
cat conftest.err >&5
17852
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17853
(exit $ac_status); } &&
17854
{ ac_try='test -z "$ac_c_werror_flag"
17855
|| test ! -s conftest.err'
17856
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17857
(eval $ac_try) 2>&5
17859
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17860
(exit $ac_status); }; } &&
17861
{ ac_try='test -s conftest$ac_exeext'
17862
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17863
(eval $ac_try) 2>&5
17865
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17866
(exit $ac_status); }; }; then
17868
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17870
# Check for a 64-bit object if we didn't find anything.
17871
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17874
echo "$as_me: failed program was:" >&5
17875
sed 's/^/| /' conftest.$ac_ext >&5
17878
rm -f conftest.err conftest.$ac_objext \
17879
conftest$ac_exeext conftest.$ac_ext
17880
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17882
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17883
# Warning - without using the other run time loading flags,
17884
# -berok will link without error, but may produce a broken library.
17885
no_undefined_flag_GCJ=' ${wl}-bernotok'
17886
allow_undefined_flag_GCJ=' ${wl}-berok'
17887
# -bexpall does not export symbols beginning with underscore (_)
17888
always_export_symbols_GCJ=yes
17889
# Exported symbols can be pulled into shared objects from archives
17890
whole_archive_flag_spec_GCJ=' '
17891
archive_cmds_need_lc_GCJ=yes
17892
# This is similar to how AIX traditionally builds it's shared libraries.
17893
archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17899
archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
17900
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17901
hardcode_minus_L_GCJ=yes
17902
# see comment about different semantics on the GNU ld section
17907
export_dynamic_flag_spec_GCJ=-rdynamic
17910
cygwin* | mingw* | pw32*)
17911
# When not using gcc, we currently assume that we are using
17912
# Microsoft Visual C++.
17913
# hardcode_libdir_flag_spec is actually meaningless, as there is
17914
# no search path for DLLs.
17915
hardcode_libdir_flag_spec_GCJ=' '
17916
allow_undefined_flag_GCJ=unsupported
17917
# Tell ltmain to make .lib files, not .a files.
17919
# Tell ltmain to make .dll files, not .so files.
17921
# FIXME: Setting linknames here is a bad hack.
17922
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17923
# The linker will automatically build a .lib file if we build a DLL.
17924
old_archive_From_new_cmds_GCJ='true'
17925
# FIXME: Should let the user specify the lib program.
17926
old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17927
fix_srcfile_path='`cygpath -w "$srcfile"`'
17928
enable_shared_with_static_runtimes_GCJ=yes
17931
darwin* | rhapsody*)
17932
if test "$GXX" = yes ; then
17933
archive_cmds_need_lc_GCJ=no
17935
rhapsody* | darwin1.[012])
17936
allow_undefined_flag_GCJ='-undefined suppress'
17939
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17940
allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
17942
case ${MACOSX_DEPLOYMENT_TARGET} in
17944
allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
17947
allow_undefined_flag_GCJ='-undefined dynamic_lookup'
17953
lt_int_apple_cc_single_mod=no
17954
output_verbose_link_cmd='echo'
17955
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
17956
lt_int_apple_cc_single_mod=yes
17958
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17959
archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17961
archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -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'
17963
module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17964
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17965
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17966
archive_expsym_cmds_GCJ='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}'
17968
archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
17970
module_expsym_cmds_GCJ='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}'
17971
hardcode_direct_GCJ=no
17972
hardcode_automatic_GCJ=yes
17973
hardcode_shlibpath_var_GCJ=unsupported
17974
whole_archive_flag_spec_GCJ='-all_load $convenience'
17975
link_all_deplibs_GCJ=yes
17982
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17983
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17984
hardcode_shlibpath_var_GCJ=no
17991
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17992
# support. Future versions do this automatically, but an explicit c++rt0.o
17993
# does not break anything, and helps significantly (at the cost of a little
17996
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17997
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17998
hardcode_direct_GCJ=yes
17999
hardcode_shlibpath_var_GCJ=no
18002
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
18004
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18005
hardcode_direct_GCJ=yes
18006
hardcode_minus_L_GCJ=yes
18007
hardcode_shlibpath_var_GCJ=no
18010
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18011
freebsd* | kfreebsd*-gnu)
18012
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18013
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18014
hardcode_direct_GCJ=yes
18015
hardcode_shlibpath_var_GCJ=no
18019
if test "$GCC" = yes; then
18020
archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv -f $output_objdir/$soname $lib'
18022
archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv -f $output_objdir/$soname $lib'
18024
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18025
hardcode_libdir_separator_GCJ=:
18026
hardcode_direct_GCJ=yes
18028
# hardcode_minus_L: Not really in the search PATH,
18029
# but as the default location of the library.
18030
hardcode_minus_L_GCJ=yes
18031
export_dynamic_flag_spec_GCJ='${wl}-E'
18035
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18036
case "$host_cpu" in
18038
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18041
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18045
case "$host_cpu" in
18047
archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
18050
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18054
if test "$with_gnu_ld" = no; then
18055
case "$host_cpu" in
18057
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18058
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18059
hardcode_libdir_separator_GCJ=:
18060
hardcode_direct_GCJ=no
18061
hardcode_shlibpath_var_GCJ=no
18064
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18065
hardcode_direct_GCJ=no
18066
hardcode_shlibpath_var_GCJ=no
18068
# hardcode_minus_L: Not really in the search PATH,
18069
# but as the default location of the library.
18070
hardcode_minus_L_GCJ=yes
18073
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18074
hardcode_libdir_separator_GCJ=:
18075
hardcode_direct_GCJ=yes
18076
export_dynamic_flag_spec_GCJ='${wl}-E'
18078
# hardcode_minus_L: Not really in the search PATH,
18079
# but as the default location of the library.
18080
hardcode_minus_L_GCJ=yes
18086
irix5* | irix6* | nonstopux*)
18087
if test "$GCC" = yes; then
18088
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18090
archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18091
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18093
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18094
hardcode_libdir_separator_GCJ=:
18095
link_all_deplibs_GCJ=yes
18099
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18100
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18102
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18104
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18105
hardcode_direct_GCJ=yes
18106
hardcode_shlibpath_var_GCJ=no
18110
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18111
hardcode_direct_GCJ=yes
18112
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18113
hardcode_libdir_separator_GCJ=:
18114
hardcode_shlibpath_var_GCJ=no
18118
hardcode_direct_GCJ=yes
18119
hardcode_shlibpath_var_GCJ=no
18120
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18121
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18122
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18123
export_dynamic_flag_spec_GCJ='${wl}-E'
18126
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18127
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18128
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18131
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18132
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18139
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18140
hardcode_minus_L_GCJ=yes
18141
allow_undefined_flag_GCJ=unsupported
18142
archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
18143
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18147
if test "$GCC" = yes; then
18148
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18149
archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18151
allow_undefined_flag_GCJ=' -expect_unresolved \*'
18152
archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18154
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18155
hardcode_libdir_separator_GCJ=:
18158
osf4* | osf5*) # as osf3* with the addition of -msym flag
18159
if test "$GCC" = yes; then
18160
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18161
archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18162
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18164
allow_undefined_flag_GCJ=' -expect_unresolved \*'
18165
archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18166
archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
18167
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
18169
# Both c and cxx compiler support -rpath directly
18170
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18172
hardcode_libdir_separator_GCJ=:
18176
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18177
hardcode_shlibpath_var_GCJ=no
18178
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18179
runpath_var=LD_RUN_PATH
18180
hardcode_runpath_var=yes
18184
no_undefined_flag_GCJ=' -z text'
18185
if test "$GCC" = yes; then
18186
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18187
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18188
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18190
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18191
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18192
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18194
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18195
hardcode_shlibpath_var_GCJ=no
18197
solaris2.[0-5] | solaris2.[0-5].*) ;;
18198
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
18199
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18201
link_all_deplibs_GCJ=yes
18205
if test "x$host_vendor" = xsequent; then
18206
# Use $CC to link under sequent, because it throws in some extra .o
18207
# files that make .init and .fini sections work.
18208
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18210
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18212
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18213
hardcode_direct_GCJ=yes
18214
hardcode_minus_L_GCJ=yes
18215
hardcode_shlibpath_var_GCJ=no
18219
case $host_vendor in
18221
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18222
hardcode_direct_GCJ=yes # is this really true???
18225
## LD is ld it makes a PLAMLIB
18226
## CC just makes a GrossModule.
18227
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18228
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18229
hardcode_direct_GCJ=no
18232
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18233
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18236
runpath_var='LD_RUN_PATH'
18237
hardcode_shlibpath_var_GCJ=no
18241
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18242
hardcode_shlibpath_var_GCJ=no
18243
export_dynamic_flag_spec_GCJ='-Bexport'
18247
if test -d /usr/nec; then
18248
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18249
hardcode_shlibpath_var_GCJ=no
18250
runpath_var=LD_RUN_PATH
18251
hardcode_runpath_var=yes
18257
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18258
hardcode_direct_GCJ=yes
18259
hardcode_minus_L_GCJ=no
18260
hardcode_shlibpath_var_GCJ=no
18261
hardcode_runpath_var=yes
18262
runpath_var=LD_RUN_PATH
18265
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
18266
no_undefined_flag_GCJ='${wl}-z ${wl}text'
18267
if test "$GCC" = yes; then
18268
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18270
archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18272
runpath_var='LD_RUN_PATH'
18273
hardcode_shlibpath_var_GCJ=no
18277
no_undefined_flag_GCJ=' -z text'
18278
# $CC -shared without GNU ld will not create a library from C++
18279
# object files and a static libstdc++, better avoid it by now
18280
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18281
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18282
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18283
hardcode_libdir_flag_spec_GCJ=
18284
hardcode_shlibpath_var_GCJ=no
18285
runpath_var='LD_RUN_PATH'
18289
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18290
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18291
hardcode_shlibpath_var_GCJ=no
18300
echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18301
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
18302
test "$ld_shlibs_GCJ" = no && can_build_shared=no
18304
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18305
if test "$GCC" = yes; then
18306
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18310
# Do we need to explicitly link libc?
18312
case "x$archive_cmds_need_lc_GCJ" in
18314
# Assume -lc should be added
18315
archive_cmds_need_lc_GCJ=yes
18317
if test "$enable_shared" = yes && test "$GCC" = yes; then
18318
case $archive_cmds_GCJ in
18320
# FIXME: we may have to deal with multi-command sequences.
18323
# Test whether the compiler implicitly links with -lc since on some
18324
# systems, -lgcc has to come before -lc. If gcc already passes -lc
18325
# to ld, don't add -lc before -lgcc.
18326
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18327
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18329
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18331
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18332
(eval $ac_compile) 2>&5
18334
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18335
(exit $ac_status); } 2>conftest.err; then
18338
libobjs=conftest.$ac_objext
18340
wl=$lt_prog_compiler_wl_GCJ
18346
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18347
allow_undefined_flag_GCJ=
18348
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18349
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18351
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18352
(exit $ac_status); }
18354
archive_cmds_need_lc_GCJ=no
18356
archive_cmds_need_lc_GCJ=yes
18358
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18360
cat conftest.err 1>&5
18363
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18364
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
18371
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18372
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18373
library_names_spec=
18374
libname_spec='lib$name'
18378
postuninstall_cmds=
18382
shlibpath_overrides_runpath=unknown
18384
dynamic_linker="$host_os ld.so"
18385
sys_lib_dlsearch_path_spec="/lib /usr/lib"
18386
if test "$GCC" = yes; then
18387
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18388
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18389
# if the path contains ";" then we assume it to be the separator
18390
# otherwise default to the standard path separator (i.e. ":") - it is
18391
# assumed that no part of a normal pathname contains ";" but that should
18392
# okay in the real world where ";" in dirpaths is itself problematic.
18393
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18395
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18398
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18400
need_lib_prefix=unknown
18401
hardcode_into_libs=no
18403
# when you set need_version to no, make sure it does not cause -set_version
18404
# flags to be left without arguments
18405
need_version=unknown
18410
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18411
shlibpath_var=LIBPATH
18413
# AIX 3 has no versioning support, so we append a major version to the name.
18414
soname_spec='${libname}${release}${shared_ext}$major'
18421
hardcode_into_libs=yes
18422
if test "$host_cpu" = ia64; then
18423
# AIX 5 supports IA64
18424
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18425
shlibpath_var=LD_LIBRARY_PATH
18427
# With GCC up to 2.95.x, collect2 would create an import file
18428
# for dependence libraries. The import file would start with
18429
# the line `#! .'. This would cause the generated library to
18430
# depend on `.', always an invalid library. This was fixed in
18431
# development snapshots of GCC prior to 3.0.
18433
aix4 | aix4.[01] | aix4.[01].*)
18434
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18436
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18439
can_build_shared=no
18443
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18444
# soname into executable. Probably we can add versioning support to
18445
# collect2, so additional links can be useful in future.
18446
if test "$aix_use_runtimelinking" = yes; then
18447
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
18448
# instead of lib<name>.a to let people know that these are not
18449
# typical AIX shared libraries.
18450
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18452
# We preserve .a as extension for shared libraries through AIX4.2
18453
# and later when we are not doing run time linking.
18454
library_names_spec='${libname}${release}.a $libname.a'
18455
soname_spec='${libname}${release}${shared_ext}$major'
18457
shlibpath_var=LIBPATH
18462
library_names_spec='$libname.ixlibrary $libname.a'
18463
# Create ${libname}_ixlibrary.a entries in /sys/libs.
18464
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
18468
library_names_spec='${libname}${shared_ext}'
18469
dynamic_linker="$host_os ld.so"
18470
shlibpath_var=LIBRARY_PATH
18476
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18477
soname_spec='${libname}${release}${shared_ext}$major'
18478
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18479
shlibpath_var=LD_LIBRARY_PATH
18480
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18481
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18482
# the default ld.so.conf also contains /usr/contrib/lib and
18483
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18484
# libtool to hard-code these into programs
18487
cygwin* | mingw* | pw32*)
18488
version_type=windows
18493
case $GCC,$host_os in
18494
yes,cygwin* | yes,mingw* | yes,pw32*)
18495
library_names_spec='$libname.dll.a'
18496
# DLL is installed to $(libdir)/../bin by postinstall_cmds
18497
postinstall_cmds='base_file=`basename \${file}`~
18498
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18499
dldir=$destdir/`dirname \$dlpath`~
18500
test -d \$dldir || mkdir -p \$dldir~
18501
$install_prog $dir/$dlname \$dldir/$dlname'
18502
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18503
dlpath=$dir/\$dldll~
18505
shlibpath_overrides_runpath=yes
18509
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
18510
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18511
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18514
# MinGW DLLs use traditional 'lib' prefix
18515
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18516
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18517
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18518
# It is most probably a Windows format PATH printed by
18519
# mingw gcc, but we are running on Cygwin. Gcc prints its search
18520
# path with ; separators, and with drive letters. We can handle the
18521
# drive letters (cygwin fileutils understands them), so leave them,
18522
# especially as we might pass files found there to a mingw objdump,
18523
# which wouldn't understand a cygwinified path. Ahh.
18524
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18526
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18530
# pw32 DLLs use 'pw' prefix rather than 'lib'
18531
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
18537
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18540
dynamic_linker='Win32 ld.exe'
18541
# FIXME: first we should search . and the directory the executable is in
18545
darwin* | rhapsody*)
18546
dynamic_linker="$host_os dyld"
18547
version_type=darwin
18550
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18551
soname_spec='${libname}${release}${major}$shared_ext'
18552
shlibpath_overrides_runpath=yes
18553
shlibpath_var=DYLD_LIBRARY_PATH
18554
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
18555
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18556
if test "$GCC" = yes; then
18557
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
18559
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18561
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18568
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18569
soname_spec='${libname}${release}${shared_ext}$major'
18570
shlibpath_var=LD_LIBRARY_PATH
18581
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18582
soname_spec='${libname}${release}${shared_ext}$major'
18583
shlibpath_var=LD_LIBRARY_PATH
18584
shlibpath_overrides_runpath=no
18585
hardcode_into_libs=yes
18586
dynamic_linker='GNU ld.so'
18590
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
18591
version_type=freebsd-$objformat
18592
case $version_type in
18594
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18599
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18603
shlibpath_var=LD_LIBRARY_PATH
18606
shlibpath_overrides_runpath=yes
18608
freebsd3.01* | freebsdelf3.01*)
18609
shlibpath_overrides_runpath=yes
18610
hardcode_into_libs=yes
18613
shlibpath_overrides_runpath=no
18614
hardcode_into_libs=yes
18623
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18624
soname_spec='${libname}${release}${shared_ext}$major'
18625
shlibpath_var=LD_LIBRARY_PATH
18626
hardcode_into_libs=yes
18629
hpux9* | hpux10* | hpux11*)
18630
# Give a soname corresponding to the major version so that dld.sl refuses to
18631
# link against other versions.
18635
case "$host_cpu" in
18638
hardcode_into_libs=yes
18639
dynamic_linker="$host_os dld.so"
18640
shlibpath_var=LD_LIBRARY_PATH
18641
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18642
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18643
soname_spec='${libname}${release}${shared_ext}$major'
18644
if test "X$HPUX_IA64_MODE" = X32; then
18645
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18647
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18649
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18653
hardcode_into_libs=yes
18654
dynamic_linker="$host_os dld.sl"
18655
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18656
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18657
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18658
soname_spec='${libname}${release}${shared_ext}$major'
18659
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18660
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18664
dynamic_linker="$host_os dld.sl"
18665
shlibpath_var=SHLIB_PATH
18666
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18667
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18668
soname_spec='${libname}${release}${shared_ext}$major'
18671
# HP-UX runs *really* slowly unless shared libraries are mode 555.
18672
postinstall_cmds='chmod 555 $lib'
18675
irix5* | irix6* | nonstopux*)
18677
nonstopux*) version_type=nonstopux ;;
18679
if test "$lt_cv_prog_gnu_ld" = yes; then
18687
soname_spec='${libname}${release}${shared_ext}$major'
18688
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18690
irix5* | nonstopux*)
18691
libsuff= shlibsuff=
18694
case $LD in # libtool.m4 will add one of these switches to LD
18695
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18696
libsuff= shlibsuff= libmagic=32-bit;;
18697
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18698
libsuff=32 shlibsuff=N32 libmagic=N32;;
18699
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18700
libsuff=64 shlibsuff=64 libmagic=64-bit;;
18701
*) libsuff= shlibsuff= libmagic=never-match;;
18705
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18706
shlibpath_overrides_runpath=no
18707
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18708
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18709
hardcode_into_libs=yes
18712
# No shared lib support for Linux oldld, aout, or coff.
18713
linux*oldld* | linux*aout* | linux*coff*)
18717
# This must be Linux ELF.
18722
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18723
soname_spec='${libname}${release}${shared_ext}$major'
18724
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18725
shlibpath_var=LD_LIBRARY_PATH
18726
shlibpath_overrides_runpath=no
18727
# This implies no fast_install, which is unacceptable.
18728
# Some rework will be needed to allow for fast_install
18729
# before this can be enabled.
18730
hardcode_into_libs=yes
18732
# Append ld.so.conf contents to the search path
18733
if test -f /etc/ld.so.conf; then
18734
lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
18735
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18738
# We used to test for /lib/ld.so.1 and disable shared libraries on
18739
# powerpc, because MkLinux only supported shared libraries with the
18740
# GNU dynamic linker. Since this was broken with cross compilers,
18741
# most powerpc-linux boxes support dynamic linking these days and
18742
# people can always --disable-shared, the test was removed, and we
18743
# assume the GNU/Linux dynamic linker is in use.
18744
dynamic_linker='GNU/Linux ld.so'
18751
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18752
soname_spec='${libname}${release}${shared_ext}$major'
18753
shlibpath_var=LD_LIBRARY_PATH
18754
shlibpath_overrides_runpath=no
18755
hardcode_into_libs=yes
18756
dynamic_linker='GNU ld.so'
18763
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18764
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18765
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18766
dynamic_linker='NetBSD (a.out) ld.so'
18768
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18769
soname_spec='${libname}${release}${shared_ext}$major'
18770
dynamic_linker='NetBSD ld.elf_so'
18772
shlibpath_var=LD_LIBRARY_PATH
18773
shlibpath_overrides_runpath=yes
18774
hardcode_into_libs=yes
18779
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18780
shlibpath_var=LD_LIBRARY_PATH
18781
shlibpath_overrides_runpath=yes
18788
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18789
soname_spec='${libname}${release}${shared_ext}$major'
18790
shlibpath_var=LD_LIBRARY_PATH
18791
shlibpath_overrides_runpath=yes
18798
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18799
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18800
shlibpath_var=LD_LIBRARY_PATH
18801
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18803
openbsd2.[89] | openbsd2.[89].*)
18804
shlibpath_overrides_runpath=no
18807
shlibpath_overrides_runpath=yes
18811
shlibpath_overrides_runpath=yes
18816
libname_spec='$name'
18819
library_names_spec='$libname${shared_ext} $libname.a'
18820
dynamic_linker='OS/2 ld.exe'
18821
shlibpath_var=LIBPATH
18824
osf3* | osf4* | osf5*)
18828
soname_spec='${libname}${release}${shared_ext}$major'
18829
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18830
shlibpath_var=LD_LIBRARY_PATH
18831
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18832
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18837
soname_spec='${libname}${release}${shared_ext}$major'
18838
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18839
shlibpath_var=LD_LIBRARY_PATH
18846
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18847
soname_spec='${libname}${release}${shared_ext}$major'
18848
shlibpath_var=LD_LIBRARY_PATH
18849
shlibpath_overrides_runpath=yes
18850
hardcode_into_libs=yes
18851
# ldd complains unless libraries are executable
18852
postinstall_cmds='chmod +x $lib'
18857
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18858
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18859
shlibpath_var=LD_LIBRARY_PATH
18860
shlibpath_overrides_runpath=yes
18861
if test "$with_gnu_ld" = yes; then
18867
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18869
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18870
soname_spec='${libname}${release}${shared_ext}$major'
18871
shlibpath_var=LD_LIBRARY_PATH
18872
case $host_vendor in
18874
shlibpath_overrides_runpath=no
18876
export_dynamic_flag_spec='${wl}-Blargedynsym'
18877
runpath_var=LD_RUN_PATH
18885
shlibpath_overrides_runpath=no
18886
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18892
if test -d /usr/nec ;then
18894
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18895
soname_spec='$libname${shared_ext}.$major'
18896
shlibpath_var=LD_LIBRARY_PATH
18902
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18903
soname_spec='${libname}${release}${shared_ext}$major'
18904
shlibpath_var=LD_LIBRARY_PATH
18911
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18912
echo "${ECHO_T}$dynamic_linker" >&6
18913
test "$dynamic_linker" = no && can_build_shared=no
18915
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18916
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18917
hardcode_action_GCJ=
18918
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18919
test -n "$runpath_var GCJ" || \
18920
test "X$hardcode_automatic_GCJ"="Xyes" ; then
18922
# We can hardcode non-existant directories.
18923
if test "$hardcode_direct_GCJ" != no &&
18924
# If the only mechanism to avoid hardcoding is shlibpath_var, we
18925
# have to relink, otherwise we might link with an installed library
18926
# when we should be linking with a yet-to-be-installed one
18927
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18928
test "$hardcode_minus_L_GCJ" != no; then
18929
# Linking always hardcodes the temporary library directory.
18930
hardcode_action_GCJ=relink
18932
# We can link without hardcoding, and we can hardcode nonexisting dirs.
18933
hardcode_action_GCJ=immediate
18936
# We cannot hardcode anything, or else we can only hardcode existing
18938
hardcode_action_GCJ=unsupported
18940
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18941
echo "${ECHO_T}$hardcode_action_GCJ" >&6
18943
if test "$hardcode_action_GCJ" = relink; then
18944
# Fast installation is not supported
18945
enable_fast_install=no
18946
elif test "$shlibpath_overrides_runpath" = yes ||
18947
test "$enable_shared" = no; then
18948
# Fast installation is not necessary
18949
enable_fast_install=needless
18954
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18955
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
18956
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18957
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18958
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18959
echo "$as_me:$LINENO: result: yes" >&5
18960
echo "${ECHO_T}yes" >&6
18962
# FIXME - insert some real tests, host_os isn't really good enough
18965
if test -n "$STRIP" ; then
18966
striplib="$STRIP -x"
18967
echo "$as_me:$LINENO: result: yes" >&5
18968
echo "${ECHO_T}yes" >&6
18970
echo "$as_me:$LINENO: result: no" >&5
18971
echo "${ECHO_T}no" >&6
18975
echo "$as_me:$LINENO: result: no" >&5
18976
echo "${ECHO_T}no" >&6
18981
if test "x$enable_dlopen" != xyes; then
18982
enable_dlopen=unknown
18983
enable_dlopen_self=unknown
18984
enable_dlopen_self_static=unknown
18991
lt_cv_dlopen="load_add_on"
18993
lt_cv_dlopen_self=yes
18997
lt_cv_dlopen="LoadLibrary"
19002
lt_cv_dlopen="dlopen"
19007
# if libdl is installed we need to link against it
19008
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19009
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19010
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19011
echo $ECHO_N "(cached) $ECHO_C" >&6
19013
ac_check_lib_save_LIBS=$LIBS
19015
cat >conftest.$ac_ext <<_ACEOF
19018
cat confdefs.h >>conftest.$ac_ext
19019
cat >>conftest.$ac_ext <<_ACEOF
19020
/* end confdefs.h. */
19022
/* Override any gcc2 internal prototype to avoid an error. */
19026
/* We use char because int might match the return type of a gcc2
19027
builtin and then its argument prototype would still apply. */
19037
rm -f conftest.$ac_objext conftest$ac_exeext
19038
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19039
(eval $ac_link) 2>conftest.er1
19041
grep -v '^ *+' conftest.er1 >conftest.err
19043
cat conftest.err >&5
19044
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19045
(exit $ac_status); } &&
19046
{ ac_try='test -z "$ac_c_werror_flag"
19047
|| test ! -s conftest.err'
19048
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19049
(eval $ac_try) 2>&5
19051
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19052
(exit $ac_status); }; } &&
19053
{ ac_try='test -s conftest$ac_exeext'
19054
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19055
(eval $ac_try) 2>&5
19057
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19058
(exit $ac_status); }; }; then
19059
ac_cv_lib_dl_dlopen=yes
19061
echo "$as_me: failed program was:" >&5
19062
sed 's/^/| /' conftest.$ac_ext >&5
19064
ac_cv_lib_dl_dlopen=no
19066
rm -f conftest.err conftest.$ac_objext \
19067
conftest$ac_exeext conftest.$ac_ext
19068
LIBS=$ac_check_lib_save_LIBS
19070
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19071
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19072
if test $ac_cv_lib_dl_dlopen = yes; then
19073
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19076
lt_cv_dlopen="dyld"
19078
lt_cv_dlopen_self=yes
19085
echo "$as_me:$LINENO: checking for shl_load" >&5
19086
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
19087
if test "${ac_cv_func_shl_load+set}" = set; then
19088
echo $ECHO_N "(cached) $ECHO_C" >&6
19090
cat >conftest.$ac_ext <<_ACEOF
19093
cat confdefs.h >>conftest.$ac_ext
19094
cat >>conftest.$ac_ext <<_ACEOF
19095
/* end confdefs.h. */
19096
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
19097
For example, HP-UX 11i <limits.h> declares gettimeofday. */
19098
#define shl_load innocuous_shl_load
19100
/* System header to define __stub macros and hopefully few prototypes,
19101
which can conflict with char shl_load (); below.
19102
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19103
<limits.h> exists even on freestanding compilers. */
19106
# include <limits.h>
19108
# include <assert.h>
19113
/* Override any gcc2 internal prototype to avoid an error. */
19118
/* We use char because int might match the return type of a gcc2
19119
builtin and then its argument prototype would still apply. */
19121
/* The GNU C library defines this for functions which it implements
19122
to always fail with ENOSYS. Some functions are actually named
19123
something starting with __ and the normal name is an alias. */
19124
#if defined (__stub_shl_load) || defined (__stub___shl_load)
19127
char (*f) () = shl_load;
19136
return f != shl_load;
19141
rm -f conftest.$ac_objext conftest$ac_exeext
19142
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19143
(eval $ac_link) 2>conftest.er1
19145
grep -v '^ *+' conftest.er1 >conftest.err
19147
cat conftest.err >&5
19148
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19149
(exit $ac_status); } &&
19150
{ ac_try='test -z "$ac_c_werror_flag"
19151
|| test ! -s conftest.err'
19152
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19153
(eval $ac_try) 2>&5
19155
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19156
(exit $ac_status); }; } &&
19157
{ ac_try='test -s conftest$ac_exeext'
19158
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19159
(eval $ac_try) 2>&5
19161
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19162
(exit $ac_status); }; }; then
19163
ac_cv_func_shl_load=yes
19165
echo "$as_me: failed program was:" >&5
19166
sed 's/^/| /' conftest.$ac_ext >&5
19168
ac_cv_func_shl_load=no
19170
rm -f conftest.err conftest.$ac_objext \
19171
conftest$ac_exeext conftest.$ac_ext
19173
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
19174
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
19175
if test $ac_cv_func_shl_load = yes; then
19176
lt_cv_dlopen="shl_load"
19178
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
19179
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
19180
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
19181
echo $ECHO_N "(cached) $ECHO_C" >&6
19183
ac_check_lib_save_LIBS=$LIBS
19185
cat >conftest.$ac_ext <<_ACEOF
19188
cat confdefs.h >>conftest.$ac_ext
19189
cat >>conftest.$ac_ext <<_ACEOF
19190
/* end confdefs.h. */
19192
/* Override any gcc2 internal prototype to avoid an error. */
19196
/* We use char because int might match the return type of a gcc2
19197
builtin and then its argument prototype would still apply. */
19207
rm -f conftest.$ac_objext conftest$ac_exeext
19208
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19209
(eval $ac_link) 2>conftest.er1
19211
grep -v '^ *+' conftest.er1 >conftest.err
19213
cat conftest.err >&5
19214
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19215
(exit $ac_status); } &&
19216
{ ac_try='test -z "$ac_c_werror_flag"
19217
|| test ! -s conftest.err'
19218
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19219
(eval $ac_try) 2>&5
19221
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19222
(exit $ac_status); }; } &&
19223
{ ac_try='test -s conftest$ac_exeext'
19224
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19225
(eval $ac_try) 2>&5
19227
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19228
(exit $ac_status); }; }; then
19229
ac_cv_lib_dld_shl_load=yes
19231
echo "$as_me: failed program was:" >&5
19232
sed 's/^/| /' conftest.$ac_ext >&5
19234
ac_cv_lib_dld_shl_load=no
19236
rm -f conftest.err conftest.$ac_objext \
19237
conftest$ac_exeext conftest.$ac_ext
19238
LIBS=$ac_check_lib_save_LIBS
19240
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
19241
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
19242
if test $ac_cv_lib_dld_shl_load = yes; then
19243
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
19245
echo "$as_me:$LINENO: checking for dlopen" >&5
19246
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
19247
if test "${ac_cv_func_dlopen+set}" = set; then
19248
echo $ECHO_N "(cached) $ECHO_C" >&6
19250
cat >conftest.$ac_ext <<_ACEOF
19253
cat confdefs.h >>conftest.$ac_ext
19254
cat >>conftest.$ac_ext <<_ACEOF
19255
/* end confdefs.h. */
19256
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
19257
For example, HP-UX 11i <limits.h> declares gettimeofday. */
19258
#define dlopen innocuous_dlopen
19260
/* System header to define __stub macros and hopefully few prototypes,
19261
which can conflict with char dlopen (); below.
19262
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19263
<limits.h> exists even on freestanding compilers. */
19266
# include <limits.h>
19268
# include <assert.h>
19273
/* Override any gcc2 internal prototype to avoid an error. */
19278
/* We use char because int might match the return type of a gcc2
19279
builtin and then its argument prototype would still apply. */
19281
/* The GNU C library defines this for functions which it implements
19282
to always fail with ENOSYS. Some functions are actually named
19283
something starting with __ and the normal name is an alias. */
19284
#if defined (__stub_dlopen) || defined (__stub___dlopen)
19287
char (*f) () = dlopen;
19296
return f != dlopen;
19301
rm -f conftest.$ac_objext conftest$ac_exeext
19302
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19303
(eval $ac_link) 2>conftest.er1
19305
grep -v '^ *+' conftest.er1 >conftest.err
19307
cat conftest.err >&5
19308
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19309
(exit $ac_status); } &&
19310
{ ac_try='test -z "$ac_c_werror_flag"
19311
|| test ! -s conftest.err'
19312
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19313
(eval $ac_try) 2>&5
19315
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19316
(exit $ac_status); }; } &&
19317
{ ac_try='test -s conftest$ac_exeext'
19318
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19319
(eval $ac_try) 2>&5
19321
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19322
(exit $ac_status); }; }; then
19323
ac_cv_func_dlopen=yes
19325
echo "$as_me: failed program was:" >&5
19326
sed 's/^/| /' conftest.$ac_ext >&5
19328
ac_cv_func_dlopen=no
19330
rm -f conftest.err conftest.$ac_objext \
19331
conftest$ac_exeext conftest.$ac_ext
19333
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
19334
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
19335
if test $ac_cv_func_dlopen = yes; then
19336
lt_cv_dlopen="dlopen"
19338
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19339
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19340
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19341
echo $ECHO_N "(cached) $ECHO_C" >&6
19343
ac_check_lib_save_LIBS=$LIBS
19345
cat >conftest.$ac_ext <<_ACEOF
19348
cat confdefs.h >>conftest.$ac_ext
19349
cat >>conftest.$ac_ext <<_ACEOF
19350
/* end confdefs.h. */
19352
/* Override any gcc2 internal prototype to avoid an error. */
19356
/* We use char because int might match the return type of a gcc2
19357
builtin and then its argument prototype would still apply. */
19367
rm -f conftest.$ac_objext conftest$ac_exeext
19368
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19369
(eval $ac_link) 2>conftest.er1
19371
grep -v '^ *+' conftest.er1 >conftest.err
19373
cat conftest.err >&5
19374
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19375
(exit $ac_status); } &&
19376
{ ac_try='test -z "$ac_c_werror_flag"
19377
|| test ! -s conftest.err'
19378
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19379
(eval $ac_try) 2>&5
19381
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19382
(exit $ac_status); }; } &&
19383
{ ac_try='test -s conftest$ac_exeext'
19384
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19385
(eval $ac_try) 2>&5
19387
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19388
(exit $ac_status); }; }; then
19389
ac_cv_lib_dl_dlopen=yes
19391
echo "$as_me: failed program was:" >&5
19392
sed 's/^/| /' conftest.$ac_ext >&5
19394
ac_cv_lib_dl_dlopen=no
19396
rm -f conftest.err conftest.$ac_objext \
19397
conftest$ac_exeext conftest.$ac_ext
19398
LIBS=$ac_check_lib_save_LIBS
19400
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19401
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19402
if test $ac_cv_lib_dl_dlopen = yes; then
19403
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19405
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
19406
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
19407
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
19408
echo $ECHO_N "(cached) $ECHO_C" >&6
19410
ac_check_lib_save_LIBS=$LIBS
19411
LIBS="-lsvld $LIBS"
19412
cat >conftest.$ac_ext <<_ACEOF
19415
cat confdefs.h >>conftest.$ac_ext
19416
cat >>conftest.$ac_ext <<_ACEOF
19417
/* end confdefs.h. */
19419
/* Override any gcc2 internal prototype to avoid an error. */
19423
/* We use char because int might match the return type of a gcc2
19424
builtin and then its argument prototype would still apply. */
19434
rm -f conftest.$ac_objext conftest$ac_exeext
19435
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19436
(eval $ac_link) 2>conftest.er1
19438
grep -v '^ *+' conftest.er1 >conftest.err
19440
cat conftest.err >&5
19441
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19442
(exit $ac_status); } &&
19443
{ ac_try='test -z "$ac_c_werror_flag"
19444
|| test ! -s conftest.err'
19445
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19446
(eval $ac_try) 2>&5
19448
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19449
(exit $ac_status); }; } &&
19450
{ ac_try='test -s conftest$ac_exeext'
19451
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19452
(eval $ac_try) 2>&5
19454
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19455
(exit $ac_status); }; }; then
19456
ac_cv_lib_svld_dlopen=yes
19458
echo "$as_me: failed program was:" >&5
19459
sed 's/^/| /' conftest.$ac_ext >&5
19461
ac_cv_lib_svld_dlopen=no
19463
rm -f conftest.err conftest.$ac_objext \
19464
conftest$ac_exeext conftest.$ac_ext
19465
LIBS=$ac_check_lib_save_LIBS
19467
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
19468
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
19469
if test $ac_cv_lib_svld_dlopen = yes; then
19470
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
19472
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
19473
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
19474
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
19475
echo $ECHO_N "(cached) $ECHO_C" >&6
19477
ac_check_lib_save_LIBS=$LIBS
19479
cat >conftest.$ac_ext <<_ACEOF
19482
cat confdefs.h >>conftest.$ac_ext
19483
cat >>conftest.$ac_ext <<_ACEOF
19484
/* end confdefs.h. */
19486
/* Override any gcc2 internal prototype to avoid an error. */
19490
/* We use char because int might match the return type of a gcc2
19491
builtin and then its argument prototype would still apply. */
19501
rm -f conftest.$ac_objext conftest$ac_exeext
19502
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19503
(eval $ac_link) 2>conftest.er1
19505
grep -v '^ *+' conftest.er1 >conftest.err
19507
cat conftest.err >&5
19508
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19509
(exit $ac_status); } &&
19510
{ ac_try='test -z "$ac_c_werror_flag"
19511
|| test ! -s conftest.err'
19512
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19513
(eval $ac_try) 2>&5
19515
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19516
(exit $ac_status); }; } &&
19517
{ ac_try='test -s conftest$ac_exeext'
19518
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19519
(eval $ac_try) 2>&5
19521
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19522
(exit $ac_status); }; }; then
19523
ac_cv_lib_dld_dld_link=yes
19525
echo "$as_me: failed program was:" >&5
19526
sed 's/^/| /' conftest.$ac_ext >&5
19528
ac_cv_lib_dld_dld_link=no
19530
rm -f conftest.err conftest.$ac_objext \
19531
conftest$ac_exeext conftest.$ac_ext
19532
LIBS=$ac_check_lib_save_LIBS
19534
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
19535
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
19536
if test $ac_cv_lib_dld_dld_link = yes; then
19537
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
19558
if test "x$lt_cv_dlopen" != xno; then
19564
case $lt_cv_dlopen in
19566
save_CPPFLAGS="$CPPFLAGS"
19567
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19569
save_LDFLAGS="$LDFLAGS"
19570
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19573
LIBS="$lt_cv_dlopen_libs $LIBS"
19575
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
19576
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
19577
if test "${lt_cv_dlopen_self+set}" = set; then
19578
echo $ECHO_N "(cached) $ECHO_C" >&6
19580
if test "$cross_compiling" = yes; then :
19581
lt_cv_dlopen_self=cross
19583
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19584
lt_status=$lt_dlunknown
19585
cat > conftest.$ac_ext <<EOF
19586
#line 19586 "configure"
19587
#include "confdefs.h"
19596
# define LT_DLGLOBAL RTLD_GLOBAL
19599
# define LT_DLGLOBAL DL_GLOBAL
19601
# define LT_DLGLOBAL 0
19605
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19606
find out it does not work in some platform. */
19607
#ifndef LT_DLLAZY_OR_NOW
19609
# define LT_DLLAZY_OR_NOW RTLD_LAZY
19612
# define LT_DLLAZY_OR_NOW DL_LAZY
19615
# define LT_DLLAZY_OR_NOW RTLD_NOW
19618
# define LT_DLLAZY_OR_NOW DL_NOW
19620
# define LT_DLLAZY_OR_NOW 0
19628
extern "C" void exit (int);
19631
void fnord() { int i=42;}
19634
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19635
int status = $lt_dlunknown;
19639
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19640
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19641
/* dlclose (self); */
19647
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19648
(eval $ac_link) 2>&5
19650
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19651
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19652
(./conftest; exit; ) 2>/dev/null
19654
case x$lt_status in
19655
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19656
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19657
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
19660
# compilation failed
19661
lt_cv_dlopen_self=no
19668
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
19669
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
19671
if test "x$lt_cv_dlopen_self" = xyes; then
19672
LDFLAGS="$LDFLAGS $link_static_flag"
19673
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
19674
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
19675
if test "${lt_cv_dlopen_self_static+set}" = set; then
19676
echo $ECHO_N "(cached) $ECHO_C" >&6
19678
if test "$cross_compiling" = yes; then :
19679
lt_cv_dlopen_self_static=cross
19681
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19682
lt_status=$lt_dlunknown
19683
cat > conftest.$ac_ext <<EOF
19684
#line 19684 "configure"
19685
#include "confdefs.h"
19694
# define LT_DLGLOBAL RTLD_GLOBAL
19697
# define LT_DLGLOBAL DL_GLOBAL
19699
# define LT_DLGLOBAL 0
19703
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19704
find out it does not work in some platform. */
19705
#ifndef LT_DLLAZY_OR_NOW
19707
# define LT_DLLAZY_OR_NOW RTLD_LAZY
19710
# define LT_DLLAZY_OR_NOW DL_LAZY
19713
# define LT_DLLAZY_OR_NOW RTLD_NOW
19716
# define LT_DLLAZY_OR_NOW DL_NOW
19718
# define LT_DLLAZY_OR_NOW 0
19726
extern "C" void exit (int);
19729
void fnord() { int i=42;}
19732
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19733
int status = $lt_dlunknown;
19737
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19738
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19739
/* dlclose (self); */
19745
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19746
(eval $ac_link) 2>&5
19748
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19749
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19750
(./conftest; exit; ) 2>/dev/null
19752
case x$lt_status in
19753
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19754
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19755
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
19758
# compilation failed
19759
lt_cv_dlopen_self_static=no
19766
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
19767
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
19770
CPPFLAGS="$save_CPPFLAGS"
19771
LDFLAGS="$save_LDFLAGS"
19776
case $lt_cv_dlopen_self in
19777
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19778
*) enable_dlopen_self=unknown ;;
19781
case $lt_cv_dlopen_self_static in
19782
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19783
*) enable_dlopen_self_static=unknown ;;
19788
# The else clause should only fire when bootstrapping the
19789
# libtool distribution, otherwise you forgot to ship ltmain.sh
19790
# with your package, and you will get complaints that there are
19791
# no rules to generate ltmain.sh.
19792
if test -f "$ltmain"; then
19793
# See if we are running on zsh, and set the options which allow our commands through
19794
# without removal of \ escapes.
19795
if test -n "${ZSH_VERSION+set}" ; then
19796
setopt NO_GLOB_SUBST
19798
# Now quote all the things that may contain metacharacters while being
19799
# careful not to overquote the AC_SUBSTed values. We take copies of the
19800
# variables and quote the copies for generation of the libtool script.
19801
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19803
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19804
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19805
deplibs_check_method reload_flag reload_cmds need_locks \
19806
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19807
lt_cv_sys_global_symbol_to_c_name_address \
19808
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19809
old_postinstall_cmds old_postuninstall_cmds \
19813
lt_prog_compiler_wl_GCJ \
19814
lt_prog_compiler_pic_GCJ \
19815
lt_prog_compiler_static_GCJ \
19816
lt_prog_compiler_no_builtin_flag_GCJ \
19817
export_dynamic_flag_spec_GCJ \
19818
thread_safe_flag_spec_GCJ \
19819
whole_archive_flag_spec_GCJ \
19820
enable_shared_with_static_runtimes_GCJ \
19821
old_archive_cmds_GCJ \
19822
old_archive_from_new_cmds_GCJ \
19823
predep_objects_GCJ \
19824
postdep_objects_GCJ \
19827
compiler_lib_search_path_GCJ \
19829
archive_expsym_cmds_GCJ \
19830
postinstall_cmds_GCJ \
19831
postuninstall_cmds_GCJ \
19832
old_archive_from_expsyms_cmds_GCJ \
19833
allow_undefined_flag_GCJ \
19834
no_undefined_flag_GCJ \
19835
export_symbols_cmds_GCJ \
19836
hardcode_libdir_flag_spec_GCJ \
19837
hardcode_libdir_flag_spec_ld_GCJ \
19838
hardcode_libdir_separator_GCJ \
19839
hardcode_automatic_GCJ \
19841
module_expsym_cmds_GCJ \
19842
lt_cv_prog_compiler_c_o_GCJ \
19843
exclude_expsyms_GCJ \
19844
include_expsyms_GCJ; do
19847
old_archive_cmds_GCJ | \
19848
old_archive_from_new_cmds_GCJ | \
19849
archive_cmds_GCJ | \
19850
archive_expsym_cmds_GCJ | \
19851
module_cmds_GCJ | \
19852
module_expsym_cmds_GCJ | \
19853
old_archive_from_expsyms_cmds_GCJ | \
19854
export_symbols_cmds_GCJ | \
19855
extract_expsyms_cmds | reload_cmds | finish_cmds | \
19856
postinstall_cmds | postuninstall_cmds | \
19857
old_postinstall_cmds | old_postuninstall_cmds | \
19858
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19859
# Double-quote double-evaled strings.
19860
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19863
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19869
*'\$0 --fallback-echo"')
19870
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19876
cat <<__EOF__ >> "$cfgfile"
19877
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19879
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19881
# Shell to use when invoking shell scripts.
19884
# Whether or not to build shared libraries.
19885
build_libtool_libs=$enable_shared
19887
# Whether or not to build static libraries.
19888
build_old_libs=$enable_static
19890
# Whether or not to add -lc for building shared libraries.
19891
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19893
# Whether or not to disallow shared libs when runtime libs are static
19894
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19896
# Whether or not to optimize for fast installation.
19897
fast_install=$enable_fast_install
19900
host_alias=$host_alias
19903
# An echo program that does not interpret backslashes.
19908
AR_FLAGS=$lt_AR_FLAGS
19913
# A language-specific compiler.
19914
CC=$lt_compiler_GCJ
19916
# Is the compiler the GNU C compiler?
19922
# The linker used to build libraries.
19925
# Whether we need hard or soft links.
19928
# A BSD-compatible nm program.
19931
# A symbol stripping program
19934
# Used to examine libraries when file_magic_cmd begins "file"
19935
MAGIC_CMD=$MAGIC_CMD
19937
# Used on cygwin: DLL creation program.
19940
# Used on cygwin: object dumper.
19943
# Used on cygwin: assembler.
19946
# The name of the directory that contains temporary libtool files.
19949
# How to create reloadable object files.
19950
reload_flag=$lt_reload_flag
19951
reload_cmds=$lt_reload_cmds
19953
# How to pass a linker flag through the compiler.
19954
wl=$lt_lt_prog_compiler_wl_GCJ
19956
# Object file suffix (normally "o").
19957
objext="$ac_objext"
19959
# Old archive suffix (normally "a").
19962
# Shared library suffix (normally ".so").
19963
shrext_cmds='$shrext_cmds'
19965
# Executable file suffix (normally "").
19968
# Additional compiler flags for building library objects.
19969
pic_flag=$lt_lt_prog_compiler_pic_GCJ
19972
# What is the maximum length of a command?
19973
max_cmd_len=$lt_cv_sys_max_cmd_len
19975
# Does compiler simultaneously support -c and -o options?
19976
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19978
# Must we lock files when doing compilation ?
19979
need_locks=$lt_need_locks
19981
# Do we need the lib prefix for modules?
19982
need_lib_prefix=$need_lib_prefix
19984
# Do we need a version for libraries?
19985
need_version=$need_version
19987
# Whether dlopen is supported.
19988
dlopen_support=$enable_dlopen
19990
# Whether dlopen of programs is supported.
19991
dlopen_self=$enable_dlopen_self
19993
# Whether dlopen of statically linked programs is supported.
19994
dlopen_self_static=$enable_dlopen_self_static
19996
# Compiler flag to prevent dynamic linking.
19997
link_static_flag=$lt_lt_prog_compiler_static_GCJ
19999
# Compiler flag to turn off builtin functions.
20000
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20002
# Compiler flag to allow reflexive dlopens.
20003
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20005
# Compiler flag to generate shared objects directly from archives.
20006
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20008
# Compiler flag to generate thread-safe objects.
20009
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20011
# Library versioning type.
20012
version_type=$version_type
20014
# Format of library name prefix.
20015
libname_spec=$lt_libname_spec
20017
# List of archive names. First name is the real one, the rest are links.
20018
# The last name is the one that the linker finds with -lNAME.
20019
library_names_spec=$lt_library_names_spec
20021
# The coded name of the library, if different from the real name.
20022
soname_spec=$lt_soname_spec
20024
# Commands used to build and install an old-style archive.
20026
old_archive_cmds=$lt_old_archive_cmds_GCJ
20027
old_postinstall_cmds=$lt_old_postinstall_cmds
20028
old_postuninstall_cmds=$lt_old_postuninstall_cmds
20030
# Create an old-style archive from a shared archive.
20031
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
20033
# Create a temporary old-style archive to link instead of a shared archive.
20034
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
20036
# Commands used to build and install a shared archive.
20037
archive_cmds=$lt_archive_cmds_GCJ
20038
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
20039
postinstall_cmds=$lt_postinstall_cmds
20040
postuninstall_cmds=$lt_postuninstall_cmds
20042
# Commands used to build a loadable module (assumed same as above if empty)
20043
module_cmds=$lt_module_cmds_GCJ
20044
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
20046
# Commands to strip libraries.
20047
old_striplib=$lt_old_striplib
20048
striplib=$lt_striplib
20050
# Dependencies to place before the objects being linked to create a
20052
predep_objects=$lt_predep_objects_GCJ
20054
# Dependencies to place after the objects being linked to create a
20056
postdep_objects=$lt_postdep_objects_GCJ
20058
# Dependencies to place before the objects being linked to create a
20060
predeps=$lt_predeps_GCJ
20062
# Dependencies to place after the objects being linked to create a
20064
postdeps=$lt_postdeps_GCJ
20066
# The library search path used internally by the compiler when linking
20067
# a shared library.
20068
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
20070
# Method to check whether dependent libraries are shared objects.
20071
deplibs_check_method=$lt_deplibs_check_method
20073
# Command to use when deplibs_check_method == file_magic.
20074
file_magic_cmd=$lt_file_magic_cmd
20076
# Flag that allows shared libraries with undefined symbols to be built.
20077
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
20079
# Flag that forces no undefined symbols.
20080
no_undefined_flag=$lt_no_undefined_flag_GCJ
20082
# Commands used to finish a libtool library installation in a directory.
20083
finish_cmds=$lt_finish_cmds
20085
# Same as above, but a single script fragment to be evaled but not shown.
20086
finish_eval=$lt_finish_eval
20088
# Take the output of nm and produce a listing of raw symbols and C names.
20089
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20091
# Transform the output of nm in a proper C declaration
20092
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20094
# Transform the output of nm in a C name address pair
20095
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20097
# This is the shared library runtime path variable.
20098
runpath_var=$runpath_var
20100
# This is the shared library path variable.
20101
shlibpath_var=$shlibpath_var
20103
# Is shlibpath searched before the hard-coded library search path?
20104
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20106
# How to hardcode a shared library path into an executable.
20107
hardcode_action=$hardcode_action_GCJ
20109
# Whether we should hardcode library paths into libraries.
20110
hardcode_into_libs=$hardcode_into_libs
20112
# Flag to hardcode \$libdir into a binary during linking.
20113
# This must work even if \$libdir does not exist.
20114
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
20116
# If ld is used when linking, flag to hardcode \$libdir into
20117
# a binary during linking. This must work even if \$libdir does
20119
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
20121
# Whether we need a single -rpath flag with a separated argument.
20122
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20124
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20125
# resulting binary.
20126
hardcode_direct=$hardcode_direct_GCJ
20128
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20129
# resulting binary.
20130
hardcode_minus_L=$hardcode_minus_L_GCJ
20132
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20133
# the resulting binary.
20134
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20136
# Set to yes if building a shared library automatically hardcodes DIR into the library
20137
# and all subsequent libraries and executables linked against it.
20138
hardcode_automatic=$hardcode_automatic_GCJ
20140
# Variables whose values should be saved in libtool wrapper scripts and
20141
# restored at relink time.
20142
variables_saved_for_relink="$variables_saved_for_relink"
20144
# Whether libtool must link a program against all its dependency libraries.
20145
link_all_deplibs=$link_all_deplibs_GCJ
20147
# Compile-time system search path for libraries
20148
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20150
# Run-time system search path for libraries
20151
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20153
# Fix the shell variable \$srcfile for the compiler.
20154
fix_srcfile_path="$fix_srcfile_path_GCJ"
20156
# Set to yes if exported symbols are required.
20157
always_export_symbols=$always_export_symbols_GCJ
20159
# The commands to list exported symbols.
20160
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20162
# The commands to extract the exported symbol list from a shared archive.
20163
extract_expsyms_cmds=$lt_extract_expsyms_cmds
20165
# Symbols that should not be listed in the preloaded symbols.
20166
exclude_expsyms=$lt_exclude_expsyms_GCJ
20168
# Symbols that must always be exported.
20169
include_expsyms=$lt_include_expsyms_GCJ
20171
# ### END LIBTOOL TAG CONFIG: $tagname
20177
# If there is no Makefile yet, we rely on a make rule to execute
20178
# `config.status --recheck' to rerun these tests and create the
20179
# libtool script then.
20180
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20181
if test -f "$ltmain_in"; then
20182
test -f Makefile && make "$ltmain"
20188
ac_cpp='$CPP $CPPFLAGS'
20189
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20190
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20191
ac_compiler_gnu=$ac_cv_c_compiler_gnu
20204
# Source file extension for RC test sources.
20207
# Object file extension for compiled RC test sources.
20211
# Code to be used in simple compile tests
20212
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
20214
# Code to be used in simple link tests
20215
lt_simple_link_test_code="$lt_simple_compile_test_code"
20217
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
20219
# If no C compiler was specified, use CC.
20222
# Allow CC to be a program name with arguments.
20226
# Allow CC to be a program name with arguments.
20231
lt_cv_prog_compiler_c_o_RC=yes
20233
# The else clause should only fire when bootstrapping the
20234
# libtool distribution, otherwise you forgot to ship ltmain.sh
20235
# with your package, and you will get complaints that there are
20236
# no rules to generate ltmain.sh.
20237
if test -f "$ltmain"; then
20238
# See if we are running on zsh, and set the options which allow our commands through
20239
# without removal of \ escapes.
20240
if test -n "${ZSH_VERSION+set}" ; then
20241
setopt NO_GLOB_SUBST
20243
# Now quote all the things that may contain metacharacters while being
20244
# careful not to overquote the AC_SUBSTed values. We take copies of the
20245
# variables and quote the copies for generation of the libtool script.
20246
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20248
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20249
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20250
deplibs_check_method reload_flag reload_cmds need_locks \
20251
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20252
lt_cv_sys_global_symbol_to_c_name_address \
20253
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20254
old_postinstall_cmds old_postuninstall_cmds \
20258
lt_prog_compiler_wl_RC \
20259
lt_prog_compiler_pic_RC \
20260
lt_prog_compiler_static_RC \
20261
lt_prog_compiler_no_builtin_flag_RC \
20262
export_dynamic_flag_spec_RC \
20263
thread_safe_flag_spec_RC \
20264
whole_archive_flag_spec_RC \
20265
enable_shared_with_static_runtimes_RC \
20266
old_archive_cmds_RC \
20267
old_archive_from_new_cmds_RC \
20268
predep_objects_RC \
20269
postdep_objects_RC \
20272
compiler_lib_search_path_RC \
20274
archive_expsym_cmds_RC \
20275
postinstall_cmds_RC \
20276
postuninstall_cmds_RC \
20277
old_archive_from_expsyms_cmds_RC \
20278
allow_undefined_flag_RC \
20279
no_undefined_flag_RC \
20280
export_symbols_cmds_RC \
20281
hardcode_libdir_flag_spec_RC \
20282
hardcode_libdir_flag_spec_ld_RC \
20283
hardcode_libdir_separator_RC \
20284
hardcode_automatic_RC \
20286
module_expsym_cmds_RC \
20287
lt_cv_prog_compiler_c_o_RC \
20288
exclude_expsyms_RC \
20289
include_expsyms_RC; do
20292
old_archive_cmds_RC | \
20293
old_archive_from_new_cmds_RC | \
20294
archive_cmds_RC | \
20295
archive_expsym_cmds_RC | \
20297
module_expsym_cmds_RC | \
20298
old_archive_from_expsyms_cmds_RC | \
20299
export_symbols_cmds_RC | \
20300
extract_expsyms_cmds | reload_cmds | finish_cmds | \
20301
postinstall_cmds | postuninstall_cmds | \
20302
old_postinstall_cmds | old_postuninstall_cmds | \
20303
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20304
# Double-quote double-evaled strings.
20305
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20308
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20314
*'\$0 --fallback-echo"')
20315
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20321
cat <<__EOF__ >> "$cfgfile"
20322
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20324
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20326
# Shell to use when invoking shell scripts.
20329
# Whether or not to build shared libraries.
20330
build_libtool_libs=$enable_shared
20332
# Whether or not to build static libraries.
20333
build_old_libs=$enable_static
20335
# Whether or not to add -lc for building shared libraries.
20336
build_libtool_need_lc=$archive_cmds_need_lc_RC
20338
# Whether or not to disallow shared libs when runtime libs are static
20339
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20341
# Whether or not to optimize for fast installation.
20342
fast_install=$enable_fast_install
20345
host_alias=$host_alias
20348
# An echo program that does not interpret backslashes.
20353
AR_FLAGS=$lt_AR_FLAGS
20358
# A language-specific compiler.
20361
# Is the compiler the GNU C compiler?
20367
# The linker used to build libraries.
20370
# Whether we need hard or soft links.
20373
# A BSD-compatible nm program.
20376
# A symbol stripping program
20379
# Used to examine libraries when file_magic_cmd begins "file"
20380
MAGIC_CMD=$MAGIC_CMD
20382
# Used on cygwin: DLL creation program.
20385
# Used on cygwin: object dumper.
20388
# Used on cygwin: assembler.
20391
# The name of the directory that contains temporary libtool files.
20394
# How to create reloadable object files.
20395
reload_flag=$lt_reload_flag
20396
reload_cmds=$lt_reload_cmds
20398
# How to pass a linker flag through the compiler.
20399
wl=$lt_lt_prog_compiler_wl_RC
20401
# Object file suffix (normally "o").
20402
objext="$ac_objext"
20404
# Old archive suffix (normally "a").
20407
# Shared library suffix (normally ".so").
20408
shrext_cmds='$shrext_cmds'
20410
# Executable file suffix (normally "").
20413
# Additional compiler flags for building library objects.
20414
pic_flag=$lt_lt_prog_compiler_pic_RC
20417
# What is the maximum length of a command?
20418
max_cmd_len=$lt_cv_sys_max_cmd_len
20420
# Does compiler simultaneously support -c and -o options?
20421
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20423
# Must we lock files when doing compilation ?
20424
need_locks=$lt_need_locks
20426
# Do we need the lib prefix for modules?
20427
need_lib_prefix=$need_lib_prefix
20429
# Do we need a version for libraries?
20430
need_version=$need_version
20432
# Whether dlopen is supported.
20433
dlopen_support=$enable_dlopen
20435
# Whether dlopen of programs is supported.
20436
dlopen_self=$enable_dlopen_self
20438
# Whether dlopen of statically linked programs is supported.
20439
dlopen_self_static=$enable_dlopen_self_static
20441
# Compiler flag to prevent dynamic linking.
20442
link_static_flag=$lt_lt_prog_compiler_static_RC
20444
# Compiler flag to turn off builtin functions.
20445
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20447
# Compiler flag to allow reflexive dlopens.
20448
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20450
# Compiler flag to generate shared objects directly from archives.
20451
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20453
# Compiler flag to generate thread-safe objects.
20454
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20456
# Library versioning type.
20457
version_type=$version_type
20459
# Format of library name prefix.
20460
libname_spec=$lt_libname_spec
20462
# List of archive names. First name is the real one, the rest are links.
20463
# The last name is the one that the linker finds with -lNAME.
20464
library_names_spec=$lt_library_names_spec
20466
# The coded name of the library, if different from the real name.
20467
soname_spec=$lt_soname_spec
20469
# Commands used to build and install an old-style archive.
20471
old_archive_cmds=$lt_old_archive_cmds_RC
20472
old_postinstall_cmds=$lt_old_postinstall_cmds
20473
old_postuninstall_cmds=$lt_old_postuninstall_cmds
20475
# Create an old-style archive from a shared archive.
20476
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20478
# Create a temporary old-style archive to link instead of a shared archive.
20479
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20481
# Commands used to build and install a shared archive.
20482
archive_cmds=$lt_archive_cmds_RC
20483
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20484
postinstall_cmds=$lt_postinstall_cmds
20485
postuninstall_cmds=$lt_postuninstall_cmds
20487
# Commands used to build a loadable module (assumed same as above if empty)
20488
module_cmds=$lt_module_cmds_RC
20489
module_expsym_cmds=$lt_module_expsym_cmds_RC
20491
# Commands to strip libraries.
20492
old_striplib=$lt_old_striplib
20493
striplib=$lt_striplib
20495
# Dependencies to place before the objects being linked to create a
20497
predep_objects=$lt_predep_objects_RC
20499
# Dependencies to place after the objects being linked to create a
20501
postdep_objects=$lt_postdep_objects_RC
20503
# Dependencies to place before the objects being linked to create a
20505
predeps=$lt_predeps_RC
20507
# Dependencies to place after the objects being linked to create a
20509
postdeps=$lt_postdeps_RC
20511
# The library search path used internally by the compiler when linking
20512
# a shared library.
20513
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20515
# Method to check whether dependent libraries are shared objects.
20516
deplibs_check_method=$lt_deplibs_check_method
20518
# Command to use when deplibs_check_method == file_magic.
20519
file_magic_cmd=$lt_file_magic_cmd
20521
# Flag that allows shared libraries with undefined symbols to be built.
20522
allow_undefined_flag=$lt_allow_undefined_flag_RC
20524
# Flag that forces no undefined symbols.
20525
no_undefined_flag=$lt_no_undefined_flag_RC
20527
# Commands used to finish a libtool library installation in a directory.
20528
finish_cmds=$lt_finish_cmds
20530
# Same as above, but a single script fragment to be evaled but not shown.
20531
finish_eval=$lt_finish_eval
20533
# Take the output of nm and produce a listing of raw symbols and C names.
20534
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20536
# Transform the output of nm in a proper C declaration
20537
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20539
# Transform the output of nm in a C name address pair
20540
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20542
# This is the shared library runtime path variable.
20543
runpath_var=$runpath_var
20545
# This is the shared library path variable.
20546
shlibpath_var=$shlibpath_var
20548
# Is shlibpath searched before the hard-coded library search path?
20549
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20551
# How to hardcode a shared library path into an executable.
20552
hardcode_action=$hardcode_action_RC
20554
# Whether we should hardcode library paths into libraries.
20555
hardcode_into_libs=$hardcode_into_libs
20557
# Flag to hardcode \$libdir into a binary during linking.
20558
# This must work even if \$libdir does not exist.
20559
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20561
# If ld is used when linking, flag to hardcode \$libdir into
20562
# a binary during linking. This must work even if \$libdir does
20564
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20566
# Whether we need a single -rpath flag with a separated argument.
20567
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20569
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20570
# resulting binary.
20571
hardcode_direct=$hardcode_direct_RC
20573
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20574
# resulting binary.
20575
hardcode_minus_L=$hardcode_minus_L_RC
20577
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20578
# the resulting binary.
20579
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20581
# Set to yes if building a shared library automatically hardcodes DIR into the library
20582
# and all subsequent libraries and executables linked against it.
20583
hardcode_automatic=$hardcode_automatic_RC
20585
# Variables whose values should be saved in libtool wrapper scripts and
20586
# restored at relink time.
20587
variables_saved_for_relink="$variables_saved_for_relink"
20589
# Whether libtool must link a program against all its dependency libraries.
20590
link_all_deplibs=$link_all_deplibs_RC
20592
# Compile-time system search path for libraries
20593
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20595
# Run-time system search path for libraries
20596
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20598
# Fix the shell variable \$srcfile for the compiler.
20599
fix_srcfile_path="$fix_srcfile_path_RC"
20601
# Set to yes if exported symbols are required.
20602
always_export_symbols=$always_export_symbols_RC
20604
# The commands to list exported symbols.
20605
export_symbols_cmds=$lt_export_symbols_cmds_RC
20607
# The commands to extract the exported symbol list from a shared archive.
20608
extract_expsyms_cmds=$lt_extract_expsyms_cmds
20610
# Symbols that should not be listed in the preloaded symbols.
20611
exclude_expsyms=$lt_exclude_expsyms_RC
20613
# Symbols that must always be exported.
20614
include_expsyms=$lt_include_expsyms_RC
20616
# ### END LIBTOOL TAG CONFIG: $tagname
20622
# If there is no Makefile yet, we rely on a make rule to execute
20623
# `config.status --recheck' to rerun these tests and create the
20624
# libtool script then.
20625
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20626
if test -f "$ltmain_in"; then
20627
test -f Makefile && make "$ltmain"
20633
ac_cpp='$CPP $CPPFLAGS'
20634
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20635
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20636
ac_compiler_gnu=$ac_cv_c_compiler_gnu
20643
{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20644
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20645
{ (exit 1); exit 1; }; }
20649
# Append the new tag name to the list of available tags.
20650
if test -n "$tagname" ; then
20651
available_tags="$available_tags $tagname"
20657
# Now substitute the updated list of available tags.
20658
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20659
mv -f "${ofile}T" "$ofile"
20663
{ { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20664
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20665
{ (exit 1); exit 1; }; }
20671
# This can be used to rebuild libtool when needed
20672
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20674
# Always use our own libtool.
20675
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20677
# Prevent multiple expansion
20699
echo "$as_me:$LINENO: checking if we need -no-undefined" >&5
20700
echo $ECHO_N "checking if we need -no-undefined... $ECHO_C" >&6
20702
*-*-cygwin | *-*-mingw* | *-*-pw32*)
20703
need_no_undefined=yes
20706
need_no_undefined=no
20709
echo "$as_me:$LINENO: result: $need_no_undefined" >&5
20710
echo "${ECHO_T}$need_no_undefined" >&6
20713
if test x$need_no_undefined = xyes; then
20715
NO_UNDEFINED_FALSE='#'
20717
NO_UNDEFINED_TRUE='#'
20718
NO_UNDEFINED_FALSE=
20722
echo "$as_me:$LINENO: checking if we need -mimpure-text" >&5
20723
echo $ECHO_N "checking if we need -mimpure-text... $ECHO_C" >&6
20726
if test "$GCC" = "yes"; then
20734
echo "$as_me:$LINENO: result: $mimpure" >&5
20735
echo "${ECHO_T}$mimpure" >&6
20738
if test x$mimpure = xyes; then
20747
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
20748
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
20749
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
20750
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
20751
echo $ECHO_N "(cached) $ECHO_C" >&6
20753
cat >conftest.make <<\_ACEOF
20755
@echo 'ac_maketemp="$(MAKE)"'
20757
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20758
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
20759
if test -n "$ac_maketemp"; then
20760
eval ac_cv_prog_make_${ac_make}_set=yes
20762
eval ac_cv_prog_make_${ac_make}_set=no
20764
rm -f conftest.make
20766
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
20767
echo "$as_me:$LINENO: result: yes" >&5
20768
echo "${ECHO_T}yes" >&6
20771
echo "$as_me:$LINENO: result: no" >&5
20772
echo "${ECHO_T}no" >&6
20773
SET_MAKE="MAKE=${MAKE-make}"
20777
echo "$as_me:$LINENO: checking whether to support http" >&5
20778
echo $ECHO_N "checking whether to support http... $ECHO_C" >&6
20779
# Check whether --enable-http or --disable-http was given.
20780
if test "${enable_http+set}" = set; then
20781
enableval="$enable_http"
20782
case "$enableval" in
20784
echo "$as_me:$LINENO: result: no" >&5
20785
echo "${ECHO_T}no" >&6
20787
cat >>confdefs.h <<\_ACEOF
20788
#define CURL_DISABLE_HTTP 1
20791
{ echo "$as_me:$LINENO: WARNING: disable HTTP disables FTP over proxy and GOPHER too" >&5
20792
echo "$as_me: WARNING: disable HTTP disables FTP over proxy and GOPHER too" >&2;}
20794
cat >>confdefs.h <<\_ACEOF
20795
#define CURL_DISABLE_GOPHER 1
20801
*) echo "$as_me:$LINENO: result: yes" >&5
20802
echo "${ECHO_T}yes" >&6
20806
echo "$as_me:$LINENO: result: yes" >&5
20807
echo "${ECHO_T}yes" >&6
20810
echo "$as_me:$LINENO: checking whether to support ftp" >&5
20811
echo $ECHO_N "checking whether to support ftp... $ECHO_C" >&6
20812
# Check whether --enable-ftp or --disable-ftp was given.
20813
if test "${enable_ftp+set}" = set; then
20814
enableval="$enable_ftp"
20815
case "$enableval" in
20817
echo "$as_me:$LINENO: result: no" >&5
20818
echo "${ECHO_T}no" >&6
20820
cat >>confdefs.h <<\_ACEOF
20821
#define CURL_DISABLE_FTP 1
20826
*) echo "$as_me:$LINENO: result: yes" >&5
20827
echo "${ECHO_T}yes" >&6
20831
echo "$as_me:$LINENO: result: yes" >&5
20832
echo "${ECHO_T}yes" >&6
20835
echo "$as_me:$LINENO: checking whether to support gopher" >&5
20836
echo $ECHO_N "checking whether to support gopher... $ECHO_C" >&6
20837
# Check whether --enable-gopher or --disable-gopher was given.
20838
if test "${enable_gopher+set}" = set; then
20839
enableval="$enable_gopher"
20840
case "$enableval" in
20842
echo "$as_me:$LINENO: result: no" >&5
20843
echo "${ECHO_T}no" >&6
20845
cat >>confdefs.h <<\_ACEOF
20846
#define CURL_DISABLE_GOPHER 1
20851
*) echo "$as_me:$LINENO: result: yes" >&5
20852
echo "${ECHO_T}yes" >&6
20856
echo "$as_me:$LINENO: result: yes" >&5
20857
echo "${ECHO_T}yes" >&6
20860
echo "$as_me:$LINENO: checking whether to support file" >&5
20861
echo $ECHO_N "checking whether to support file... $ECHO_C" >&6
20862
# Check whether --enable-file or --disable-file was given.
20863
if test "${enable_file+set}" = set; then
20864
enableval="$enable_file"
20865
case "$enableval" in
20867
echo "$as_me:$LINENO: result: no" >&5
20868
echo "${ECHO_T}no" >&6
20870
cat >>confdefs.h <<\_ACEOF
20871
#define CURL_DISABLE_FILE 1
20876
*) echo "$as_me:$LINENO: result: yes" >&5
20877
echo "${ECHO_T}yes" >&6
20881
echo "$as_me:$LINENO: result: yes" >&5
20882
echo "${ECHO_T}yes" >&6
20885
echo "$as_me:$LINENO: checking whether to support ldap" >&5
20886
echo $ECHO_N "checking whether to support ldap... $ECHO_C" >&6
20887
# Check whether --enable-ldap or --disable-ldap was given.
20888
if test "${enable_ldap+set}" = set; then
20889
enableval="$enable_ldap"
20890
case "$enableval" in
20892
echo "$as_me:$LINENO: result: no" >&5
20893
echo "${ECHO_T}no" >&6
20895
cat >>confdefs.h <<\_ACEOF
20896
#define CURL_DISABLE_LDAP 1
20901
*) echo "$as_me:$LINENO: result: yes" >&5
20902
echo "${ECHO_T}yes" >&6
20906
echo "$as_me:$LINENO: result: yes" >&5
20907
echo "${ECHO_T}yes" >&6
20910
echo "$as_me:$LINENO: checking whether to support dict" >&5
20911
echo $ECHO_N "checking whether to support dict... $ECHO_C" >&6
20912
# Check whether --enable-dict or --disable-dict was given.
20913
if test "${enable_dict+set}" = set; then
20914
enableval="$enable_dict"
20915
case "$enableval" in
20917
echo "$as_me:$LINENO: result: no" >&5
20918
echo "${ECHO_T}no" >&6
20920
cat >>confdefs.h <<\_ACEOF
20921
#define CURL_DISABLE_DICT 1
20926
*) echo "$as_me:$LINENO: result: yes" >&5
20927
echo "${ECHO_T}yes" >&6
20931
echo "$as_me:$LINENO: result: yes" >&5
20932
echo "${ECHO_T}yes" >&6
20935
echo "$as_me:$LINENO: checking whether to support telnet" >&5
20936
echo $ECHO_N "checking whether to support telnet... $ECHO_C" >&6
20937
# Check whether --enable-telnet or --disable-telnet was given.
20938
if test "${enable_telnet+set}" = set; then
20939
enableval="$enable_telnet"
20940
case "$enableval" in
20942
echo "$as_me:$LINENO: result: no" >&5
20943
echo "${ECHO_T}no" >&6
20945
cat >>confdefs.h <<\_ACEOF
20946
#define CURL_DISABLE_TELNET 1
20951
*) echo "$as_me:$LINENO: result: yes" >&5
20952
echo "${ECHO_T}yes" >&6
20956
echo "$as_me:$LINENO: result: yes" >&5
20957
echo "${ECHO_T}yes" >&6
20962
echo "$as_me:$LINENO: checking whether to provide built-in manual" >&5
20963
echo $ECHO_N "checking whether to provide built-in manual... $ECHO_C" >&6
20964
# Check whether --enable-manual or --disable-manual was given.
20965
if test "${enable_manual+set}" = set; then
20966
enableval="$enable_manual"
20967
case "$enableval" in
20969
echo "$as_me:$LINENO: result: no" >&5
20970
echo "${ECHO_T}no" >&6
20972
*) echo "$as_me:$LINENO: result: yes" >&5
20973
echo "${ECHO_T}yes" >&6
20978
echo "$as_me:$LINENO: result: yes" >&5
20979
echo "${ECHO_T}yes" >&6
20986
echo "$as_me:$LINENO: checking for gethostbyname" >&5
20987
echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
20988
if test "${ac_cv_func_gethostbyname+set}" = set; then
20989
echo $ECHO_N "(cached) $ECHO_C" >&6
20991
cat >conftest.$ac_ext <<_ACEOF
20994
cat confdefs.h >>conftest.$ac_ext
20995
cat >>conftest.$ac_ext <<_ACEOF
20996
/* end confdefs.h. */
20997
/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
20998
For example, HP-UX 11i <limits.h> declares gettimeofday. */
20999
#define gethostbyname innocuous_gethostbyname
21001
/* System header to define __stub macros and hopefully few prototypes,
21002
which can conflict with char gethostbyname (); below.
21003
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21004
<limits.h> exists even on freestanding compilers. */
21007
# include <limits.h>
21009
# include <assert.h>
21012
#undef gethostbyname
21014
/* Override any gcc2 internal prototype to avoid an error. */
21019
/* We use char because int might match the return type of a gcc2
21020
builtin and then its argument prototype would still apply. */
21021
char gethostbyname ();
21022
/* The GNU C library defines this for functions which it implements
21023
to always fail with ENOSYS. Some functions are actually named
21024
something starting with __ and the normal name is an alias. */
21025
#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
21028
char (*f) () = gethostbyname;
21037
return f != gethostbyname;
21042
rm -f conftest.$ac_objext conftest$ac_exeext
21043
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21044
(eval $ac_link) 2>conftest.er1
21046
grep -v '^ *+' conftest.er1 >conftest.err
21048
cat conftest.err >&5
21049
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21050
(exit $ac_status); } &&
21051
{ ac_try='test -z "$ac_c_werror_flag"
21052
|| test ! -s conftest.err'
21053
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21054
(eval $ac_try) 2>&5
21056
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21057
(exit $ac_status); }; } &&
21058
{ ac_try='test -s conftest$ac_exeext'
21059
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21060
(eval $ac_try) 2>&5
21062
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21063
(exit $ac_status); }; }; then
21064
ac_cv_func_gethostbyname=yes
21066
echo "$as_me: failed program was:" >&5
21067
sed 's/^/| /' conftest.$ac_ext >&5
21069
ac_cv_func_gethostbyname=no
21071
rm -f conftest.err conftest.$ac_objext \
21072
conftest$ac_exeext conftest.$ac_ext
21074
echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
21075
echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
21076
if test $ac_cv_func_gethostbyname = yes; then
21077
HAVE_GETHOSTBYNAME="1"
21080
echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
21081
echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
21082
if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
21083
echo $ECHO_N "(cached) $ECHO_C" >&6
21085
ac_check_lib_save_LIBS=$LIBS
21087
cat >conftest.$ac_ext <<_ACEOF
21090
cat confdefs.h >>conftest.$ac_ext
21091
cat >>conftest.$ac_ext <<_ACEOF
21092
/* end confdefs.h. */
21094
/* Override any gcc2 internal prototype to avoid an error. */
21098
/* We use char because int might match the return type of a gcc2
21099
builtin and then its argument prototype would still apply. */
21100
char gethostbyname ();
21109
rm -f conftest.$ac_objext conftest$ac_exeext
21110
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21111
(eval $ac_link) 2>conftest.er1
21113
grep -v '^ *+' conftest.er1 >conftest.err
21115
cat conftest.err >&5
21116
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21117
(exit $ac_status); } &&
21118
{ ac_try='test -z "$ac_c_werror_flag"
21119
|| test ! -s conftest.err'
21120
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21121
(eval $ac_try) 2>&5
21123
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21124
(exit $ac_status); }; } &&
21125
{ ac_try='test -s conftest$ac_exeext'
21126
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21127
(eval $ac_try) 2>&5
21129
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21130
(exit $ac_status); }; }; then
21131
ac_cv_lib_nsl_gethostbyname=yes
21133
echo "$as_me: failed program was:" >&5
21134
sed 's/^/| /' conftest.$ac_ext >&5
21136
ac_cv_lib_nsl_gethostbyname=no
21138
rm -f conftest.err conftest.$ac_objext \
21139
conftest$ac_exeext conftest.$ac_ext
21140
LIBS=$ac_check_lib_save_LIBS
21142
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
21143
echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
21144
if test $ac_cv_lib_nsl_gethostbyname = yes; then
21145
HAVE_GETHOSTBYNAME="1"
21154
if test "$HAVE_GETHOSTBYNAME" != "1"
21156
echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
21157
echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
21158
if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
21159
echo $ECHO_N "(cached) $ECHO_C" >&6
21161
ac_check_lib_save_LIBS=$LIBS
21162
LIBS="-lsocket $LIBS"
21163
cat >conftest.$ac_ext <<_ACEOF
21166
cat confdefs.h >>conftest.$ac_ext
21167
cat >>conftest.$ac_ext <<_ACEOF
21168
/* end confdefs.h. */
21170
/* Override any gcc2 internal prototype to avoid an error. */
21174
/* We use char because int might match the return type of a gcc2
21175
builtin and then its argument prototype would still apply. */
21176
char gethostbyname ();
21185
rm -f conftest.$ac_objext conftest$ac_exeext
21186
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21187
(eval $ac_link) 2>conftest.er1
21189
grep -v '^ *+' conftest.er1 >conftest.err
21191
cat conftest.err >&5
21192
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21193
(exit $ac_status); } &&
21194
{ ac_try='test -z "$ac_c_werror_flag"
21195
|| test ! -s conftest.err'
21196
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21197
(eval $ac_try) 2>&5
21199
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21200
(exit $ac_status); }; } &&
21201
{ ac_try='test -s conftest$ac_exeext'
21202
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21203
(eval $ac_try) 2>&5
21205
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21206
(exit $ac_status); }; }; then
21207
ac_cv_lib_socket_gethostbyname=yes
21209
echo "$as_me: failed program was:" >&5
21210
sed 's/^/| /' conftest.$ac_ext >&5
21212
ac_cv_lib_socket_gethostbyname=no
21214
rm -f conftest.err conftest.$ac_objext \
21215
conftest$ac_exeext conftest.$ac_ext
21216
LIBS=$ac_check_lib_save_LIBS
21218
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
21219
echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
21220
if test $ac_cv_lib_socket_gethostbyname = yes; then
21221
HAVE_GETHOSTBYNAME="1"
21222
LIBS="$LIBS -lsocket"
21228
if test "$HAVE_GETHOSTBYNAME" != "1"
21230
echo "$as_me:$LINENO: checking trying gethostbyname with both nsl and socket libs" >&5
21231
echo $ECHO_N "checking trying gethostbyname with both nsl and socket libs... $ECHO_C" >&6
21232
my_ac_save_LIBS=$LIBS
21233
LIBS="-lnsl -lsocket $LIBS"
21234
cat >conftest.$ac_ext <<_ACEOF
21237
cat confdefs.h >>conftest.$ac_ext
21238
cat >>conftest.$ac_ext <<_ACEOF
21239
/* end confdefs.h. */
21249
rm -f conftest.$ac_objext conftest$ac_exeext
21250
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21251
(eval $ac_link) 2>conftest.er1
21253
grep -v '^ *+' conftest.er1 >conftest.err
21255
cat conftest.err >&5
21256
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21257
(exit $ac_status); } &&
21258
{ ac_try='test -z "$ac_c_werror_flag"
21259
|| test ! -s conftest.err'
21260
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21261
(eval $ac_try) 2>&5
21263
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21264
(exit $ac_status); }; } &&
21265
{ ac_try='test -s conftest$ac_exeext'
21266
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21267
(eval $ac_try) 2>&5
21269
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21270
(exit $ac_status); }; }; then
21271
HAVE_GETHOSTBYNAME="1",
21272
echo "$as_me:$LINENO: result: yes" >&5
21273
echo "${ECHO_T}yes" >&6
21275
echo "$as_me: failed program was:" >&5
21276
sed 's/^/| /' conftest.$ac_ext >&5
21278
echo "$as_me:$LINENO: result: no" >&5
21279
echo "${ECHO_T}no" >&6
21280
LIBS=$my_ac_save_LIBS
21283
rm -f conftest.err conftest.$ac_objext \
21284
conftest$ac_exeext conftest.$ac_ext
21287
if test "$HAVE_GETHOSTBYNAME" != "1"
21289
echo "$as_me:$LINENO: checking for gethostbyname in ws2_32" >&5
21290
echo $ECHO_N "checking for gethostbyname in ws2_32... $ECHO_C" >&6
21291
my_ac_save_LIBS=$LIBS
21292
LIBS="-lws2_32 $LIBS"
21293
cat >conftest.$ac_ext <<_ACEOF
21296
cat confdefs.h >>conftest.$ac_ext
21297
cat >>conftest.$ac_ext <<_ACEOF
21298
/* end confdefs.h. */
21299
#include <winsock2.h>
21303
gethostbyname("www.dummysite.com");
21308
rm -f conftest.$ac_objext conftest$ac_exeext
21309
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21310
(eval $ac_link) 2>conftest.er1
21312
grep -v '^ *+' conftest.er1 >conftest.err
21314
cat conftest.err >&5
21315
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21316
(exit $ac_status); } &&
21317
{ ac_try='test -z "$ac_c_werror_flag"
21318
|| test ! -s conftest.err'
21319
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21320
(eval $ac_try) 2>&5
21322
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21323
(exit $ac_status); }; } &&
21324
{ ac_try='test -s conftest$ac_exeext'
21325
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21326
(eval $ac_try) 2>&5
21328
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21329
(exit $ac_status); }; }; then
21330
echo "$as_me:$LINENO: result: yes" >&5
21331
echo "${ECHO_T}yes" >&6
21332
HAVE_GETHOSTBYNAME="1"
21334
echo "$as_me: failed program was:" >&5
21335
sed 's/^/| /' conftest.$ac_ext >&5
21337
LIBS=$my_ac_save_LIBS
21338
echo "$as_me:$LINENO: result: no" >&5
21339
echo "${ECHO_T}no" >&6
21342
rm -f conftest.err conftest.$ac_objext \
21343
conftest$ac_exeext conftest.$ac_ext
21346
if test "$HAVE_GETHOSTBYNAME" = "1"; then
21348
cat >>confdefs.h <<\_ACEOF
21349
#define HAVE_GETHOSTBYNAME 1
21353
{ { echo "$as_me:$LINENO: error: couldn't find libraries for gethostbyname()" >&5
21354
echo "$as_me: error: couldn't find libraries for gethostbyname()" >&2;}
21355
{ (exit 1); exit 1; }; }
21358
echo "$as_me:$LINENO: checking for strcasecmp" >&5
21359
echo $ECHO_N "checking for strcasecmp... $ECHO_C" >&6
21360
if test "${ac_cv_func_strcasecmp+set}" = set; then
21361
echo $ECHO_N "(cached) $ECHO_C" >&6
21363
cat >conftest.$ac_ext <<_ACEOF
21366
cat confdefs.h >>conftest.$ac_ext
21367
cat >>conftest.$ac_ext <<_ACEOF
21368
/* end confdefs.h. */
21369
/* Define strcasecmp to an innocuous variant, in case <limits.h> declares strcasecmp.
21370
For example, HP-UX 11i <limits.h> declares gettimeofday. */
21371
#define strcasecmp innocuous_strcasecmp
21373
/* System header to define __stub macros and hopefully few prototypes,
21374
which can conflict with char strcasecmp (); below.
21375
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21376
<limits.h> exists even on freestanding compilers. */
21379
# include <limits.h>
21381
# include <assert.h>
21386
/* Override any gcc2 internal prototype to avoid an error. */
21391
/* We use char because int might match the return type of a gcc2
21392
builtin and then its argument prototype would still apply. */
21393
char strcasecmp ();
21394
/* The GNU C library defines this for functions which it implements
21395
to always fail with ENOSYS. Some functions are actually named
21396
something starting with __ and the normal name is an alias. */
21397
#if defined (__stub_strcasecmp) || defined (__stub___strcasecmp)
21400
char (*f) () = strcasecmp;
21409
return f != strcasecmp;
21414
rm -f conftest.$ac_objext conftest$ac_exeext
21415
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21416
(eval $ac_link) 2>conftest.er1
21418
grep -v '^ *+' conftest.er1 >conftest.err
21420
cat conftest.err >&5
21421
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21422
(exit $ac_status); } &&
21423
{ ac_try='test -z "$ac_c_werror_flag"
21424
|| test ! -s conftest.err'
21425
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21426
(eval $ac_try) 2>&5
21428
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21429
(exit $ac_status); }; } &&
21430
{ ac_try='test -s conftest$ac_exeext'
21431
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21432
(eval $ac_try) 2>&5
21434
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21435
(exit $ac_status); }; }; then
21436
ac_cv_func_strcasecmp=yes
21438
echo "$as_me: failed program was:" >&5
21439
sed 's/^/| /' conftest.$ac_ext >&5
21441
ac_cv_func_strcasecmp=no
21443
rm -f conftest.err conftest.$ac_objext \
21444
conftest$ac_exeext conftest.$ac_ext
21446
echo "$as_me:$LINENO: result: $ac_cv_func_strcasecmp" >&5
21447
echo "${ECHO_T}$ac_cv_func_strcasecmp" >&6
21448
if test $ac_cv_func_strcasecmp = yes; then
21452
echo "$as_me:$LINENO: checking for strcasecmp in -lresolve" >&5
21453
echo $ECHO_N "checking for strcasecmp in -lresolve... $ECHO_C" >&6
21454
if test "${ac_cv_lib_resolve_strcasecmp+set}" = set; then
21455
echo $ECHO_N "(cached) $ECHO_C" >&6
21457
ac_check_lib_save_LIBS=$LIBS
21458
LIBS="-lresolve $LIBS"
21459
cat >conftest.$ac_ext <<_ACEOF
21462
cat confdefs.h >>conftest.$ac_ext
21463
cat >>conftest.$ac_ext <<_ACEOF
21464
/* end confdefs.h. */
21466
/* Override any gcc2 internal prototype to avoid an error. */
21470
/* We use char because int might match the return type of a gcc2
21471
builtin and then its argument prototype would still apply. */
21472
char strcasecmp ();
21481
rm -f conftest.$ac_objext conftest$ac_exeext
21482
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21483
(eval $ac_link) 2>conftest.er1
21485
grep -v '^ *+' conftest.er1 >conftest.err
21487
cat conftest.err >&5
21488
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21489
(exit $ac_status); } &&
21490
{ ac_try='test -z "$ac_c_werror_flag"
21491
|| test ! -s conftest.err'
21492
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21493
(eval $ac_try) 2>&5
21495
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21496
(exit $ac_status); }; } &&
21497
{ ac_try='test -s conftest$ac_exeext'
21498
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21499
(eval $ac_try) 2>&5
21501
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21502
(exit $ac_status); }; }; then
21503
ac_cv_lib_resolve_strcasecmp=yes
21505
echo "$as_me: failed program was:" >&5
21506
sed 's/^/| /' conftest.$ac_ext >&5
21508
ac_cv_lib_resolve_strcasecmp=no
21510
rm -f conftest.err conftest.$ac_objext \
21511
conftest$ac_exeext conftest.$ac_ext
21512
LIBS=$ac_check_lib_save_LIBS
21514
echo "$as_me:$LINENO: result: $ac_cv_lib_resolve_strcasecmp" >&5
21515
echo "${ECHO_T}$ac_cv_lib_resolve_strcasecmp" >&6
21516
if test $ac_cv_lib_resolve_strcasecmp = yes; then
21517
cat >>confdefs.h <<_ACEOF
21518
#define HAVE_LIBRESOLVE 1
21521
LIBS="-lresolve $LIBS"
21528
if test "$ac_cv_lib_resolve_strcasecmp" = "$ac_cv_func_strcasecmp"; then
21529
echo "$as_me:$LINENO: checking for strcasecmp in -lresolve" >&5
21530
echo $ECHO_N "checking for strcasecmp in -lresolve... $ECHO_C" >&6
21531
if test "${ac_cv_lib_resolve_strcasecmp+set}" = set; then
21532
echo $ECHO_N "(cached) $ECHO_C" >&6
21534
ac_check_lib_save_LIBS=$LIBS
21535
LIBS="-lresolve -lnsl $LIBS"
21536
cat >conftest.$ac_ext <<_ACEOF
21539
cat confdefs.h >>conftest.$ac_ext
21540
cat >>conftest.$ac_ext <<_ACEOF
21541
/* end confdefs.h. */
21543
/* Override any gcc2 internal prototype to avoid an error. */
21547
/* We use char because int might match the return type of a gcc2
21548
builtin and then its argument prototype would still apply. */
21549
char strcasecmp ();
21558
rm -f conftest.$ac_objext conftest$ac_exeext
21559
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21560
(eval $ac_link) 2>conftest.er1
21562
grep -v '^ *+' conftest.er1 >conftest.err
21564
cat conftest.err >&5
21565
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21566
(exit $ac_status); } &&
21567
{ ac_try='test -z "$ac_c_werror_flag"
21568
|| test ! -s conftest.err'
21569
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21570
(eval $ac_try) 2>&5
21572
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21573
(exit $ac_status); }; } &&
21574
{ ac_try='test -s conftest$ac_exeext'
21575
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21576
(eval $ac_try) 2>&5
21578
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21579
(exit $ac_status); }; }; then
21580
ac_cv_lib_resolve_strcasecmp=yes
21582
echo "$as_me: failed program was:" >&5
21583
sed 's/^/| /' conftest.$ac_ext >&5
21585
ac_cv_lib_resolve_strcasecmp=no
21587
rm -f conftest.err conftest.$ac_objext \
21588
conftest$ac_exeext conftest.$ac_ext
21589
LIBS=$ac_check_lib_save_LIBS
21591
echo "$as_me:$LINENO: result: $ac_cv_lib_resolve_strcasecmp" >&5
21592
echo "${ECHO_T}$ac_cv_lib_resolve_strcasecmp" >&6
21593
if test $ac_cv_lib_resolve_strcasecmp = yes; then
21594
LIBS="-lresolve $LIBS"
21599
echo "$as_me:$LINENO: checking for connect" >&5
21600
echo $ECHO_N "checking for connect... $ECHO_C" >&6
21601
if test "${ac_cv_func_connect+set}" = set; then
21602
echo $ECHO_N "(cached) $ECHO_C" >&6
21604
cat >conftest.$ac_ext <<_ACEOF
21607
cat confdefs.h >>conftest.$ac_ext
21608
cat >>conftest.$ac_ext <<_ACEOF
21609
/* end confdefs.h. */
21610
/* Define connect to an innocuous variant, in case <limits.h> declares connect.
21611
For example, HP-UX 11i <limits.h> declares gettimeofday. */
21612
#define connect innocuous_connect
21614
/* System header to define __stub macros and hopefully few prototypes,
21615
which can conflict with char connect (); below.
21616
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21617
<limits.h> exists even on freestanding compilers. */
21620
# include <limits.h>
21622
# include <assert.h>
21627
/* Override any gcc2 internal prototype to avoid an error. */
21632
/* We use char because int might match the return type of a gcc2
21633
builtin and then its argument prototype would still apply. */
21635
/* The GNU C library defines this for functions which it implements
21636
to always fail with ENOSYS. Some functions are actually named
21637
something starting with __ and the normal name is an alias. */
21638
#if defined (__stub_connect) || defined (__stub___connect)
21641
char (*f) () = connect;
21650
return f != connect;
21655
rm -f conftest.$ac_objext conftest$ac_exeext
21656
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21657
(eval $ac_link) 2>conftest.er1
21659
grep -v '^ *+' conftest.er1 >conftest.err
21661
cat conftest.err >&5
21662
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21663
(exit $ac_status); } &&
21664
{ ac_try='test -z "$ac_c_werror_flag"
21665
|| test ! -s conftest.err'
21666
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21667
(eval $ac_try) 2>&5
21669
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21670
(exit $ac_status); }; } &&
21671
{ ac_try='test -s conftest$ac_exeext'
21672
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21673
(eval $ac_try) 2>&5
21675
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21676
(exit $ac_status); }; }; then
21677
ac_cv_func_connect=yes
21679
echo "$as_me: failed program was:" >&5
21680
sed 's/^/| /' conftest.$ac_ext >&5
21682
ac_cv_func_connect=no
21684
rm -f conftest.err conftest.$ac_objext \
21685
conftest$ac_exeext conftest.$ac_ext
21687
echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
21688
echo "${ECHO_T}$ac_cv_func_connect" >&6
21689
if test $ac_cv_func_connect = yes; then
21693
echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
21694
echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
21695
if test "${ac_cv_lib_socket_connect+set}" = set; then
21696
echo $ECHO_N "(cached) $ECHO_C" >&6
21698
ac_check_lib_save_LIBS=$LIBS
21699
LIBS="-lsocket $LIBS"
21700
cat >conftest.$ac_ext <<_ACEOF
21703
cat confdefs.h >>conftest.$ac_ext
21704
cat >>conftest.$ac_ext <<_ACEOF
21705
/* end confdefs.h. */
21707
/* Override any gcc2 internal prototype to avoid an error. */
21711
/* We use char because int might match the return type of a gcc2
21712
builtin and then its argument prototype would still apply. */
21722
rm -f conftest.$ac_objext conftest$ac_exeext
21723
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21724
(eval $ac_link) 2>conftest.er1
21726
grep -v '^ *+' conftest.er1 >conftest.err
21728
cat conftest.err >&5
21729
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21730
(exit $ac_status); } &&
21731
{ ac_try='test -z "$ac_c_werror_flag"
21732
|| test ! -s conftest.err'
21733
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21734
(eval $ac_try) 2>&5
21736
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21737
(exit $ac_status); }; } &&
21738
{ ac_try='test -s conftest$ac_exeext'
21739
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21740
(eval $ac_try) 2>&5
21742
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21743
(exit $ac_status); }; }; then
21744
ac_cv_lib_socket_connect=yes
21746
echo "$as_me: failed program was:" >&5
21747
sed 's/^/| /' conftest.$ac_ext >&5
21749
ac_cv_lib_socket_connect=no
21751
rm -f conftest.err conftest.$ac_objext \
21752
conftest$ac_exeext conftest.$ac_ext
21753
LIBS=$ac_check_lib_save_LIBS
21755
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
21756
echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
21757
if test $ac_cv_lib_socket_connect = yes; then
21758
cat >>confdefs.h <<_ACEOF
21759
#define HAVE_LIBSOCKET 1
21762
LIBS="-lsocket $LIBS"
21769
echo "$as_me:$LINENO: checking for dlclose" >&5
21770
echo $ECHO_N "checking for dlclose... $ECHO_C" >&6
21771
if test "${ac_cv_func_dlclose+set}" = set; then
21772
echo $ECHO_N "(cached) $ECHO_C" >&6
21774
cat >conftest.$ac_ext <<_ACEOF
21777
cat confdefs.h >>conftest.$ac_ext
21778
cat >>conftest.$ac_ext <<_ACEOF
21779
/* end confdefs.h. */
21780
/* Define dlclose to an innocuous variant, in case <limits.h> declares dlclose.
21781
For example, HP-UX 11i <limits.h> declares gettimeofday. */
21782
#define dlclose innocuous_dlclose
21784
/* System header to define __stub macros and hopefully few prototypes,
21785
which can conflict with char dlclose (); below.
21786
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21787
<limits.h> exists even on freestanding compilers. */
21790
# include <limits.h>
21792
# include <assert.h>
21797
/* Override any gcc2 internal prototype to avoid an error. */
21802
/* We use char because int might match the return type of a gcc2
21803
builtin and then its argument prototype would still apply. */
21805
/* The GNU C library defines this for functions which it implements
21806
to always fail with ENOSYS. Some functions are actually named
21807
something starting with __ and the normal name is an alias. */
21808
#if defined (__stub_dlclose) || defined (__stub___dlclose)
21811
char (*f) () = dlclose;
21820
return f != dlclose;
21825
rm -f conftest.$ac_objext conftest$ac_exeext
21826
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21827
(eval $ac_link) 2>conftest.er1
21829
grep -v '^ *+' conftest.er1 >conftest.err
21831
cat conftest.err >&5
21832
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21833
(exit $ac_status); } &&
21834
{ ac_try='test -z "$ac_c_werror_flag"
21835
|| test ! -s conftest.err'
21836
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21837
(eval $ac_try) 2>&5
21839
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21840
(exit $ac_status); }; } &&
21841
{ ac_try='test -s conftest$ac_exeext'
21842
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21843
(eval $ac_try) 2>&5
21845
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21846
(exit $ac_status); }; }; then
21847
ac_cv_func_dlclose=yes
21849
echo "$as_me: failed program was:" >&5
21850
sed 's/^/| /' conftest.$ac_ext >&5
21852
ac_cv_func_dlclose=no
21854
rm -f conftest.err conftest.$ac_objext \
21855
conftest$ac_exeext conftest.$ac_ext
21857
echo "$as_me:$LINENO: result: $ac_cv_func_dlclose" >&5
21858
echo "${ECHO_T}$ac_cv_func_dlclose" >&6
21859
if test $ac_cv_func_dlclose = yes; then
21863
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
21864
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
21865
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
21866
echo $ECHO_N "(cached) $ECHO_C" >&6
21868
ac_check_lib_save_LIBS=$LIBS
21870
cat >conftest.$ac_ext <<_ACEOF
21873
cat confdefs.h >>conftest.$ac_ext
21874
cat >>conftest.$ac_ext <<_ACEOF
21875
/* end confdefs.h. */
21877
/* Override any gcc2 internal prototype to avoid an error. */
21881
/* We use char because int might match the return type of a gcc2
21882
builtin and then its argument prototype would still apply. */
21892
rm -f conftest.$ac_objext conftest$ac_exeext
21893
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21894
(eval $ac_link) 2>conftest.er1
21896
grep -v '^ *+' conftest.er1 >conftest.err
21898
cat conftest.err >&5
21899
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21900
(exit $ac_status); } &&
21901
{ ac_try='test -z "$ac_c_werror_flag"
21902
|| test ! -s conftest.err'
21903
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21904
(eval $ac_try) 2>&5
21906
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21907
(exit $ac_status); }; } &&
21908
{ ac_try='test -s conftest$ac_exeext'
21909
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21910
(eval $ac_try) 2>&5
21912
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21913
(exit $ac_status); }; }; then
21914
ac_cv_lib_dl_dlopen=yes
21916
echo "$as_me: failed program was:" >&5
21917
sed 's/^/| /' conftest.$ac_ext >&5
21919
ac_cv_lib_dl_dlopen=no
21921
rm -f conftest.err conftest.$ac_objext \
21922
conftest$ac_exeext conftest.$ac_ext
21923
LIBS=$ac_check_lib_save_LIBS
21925
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
21926
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
21927
if test $ac_cv_lib_dl_dlopen = yes; then
21928
cat >>confdefs.h <<_ACEOF
21929
#define HAVE_LIBDL 1
21939
echo "$as_me:$LINENO: checking whether to use libgcc" >&5
21940
echo $ECHO_N "checking whether to use libgcc... $ECHO_C" >&6
21941
# Check whether --enable-libgcc or --disable-libgcc was given.
21942
if test "${enable_libgcc+set}" = set; then
21943
enableval="$enable_libgcc"
21944
case "$enableval" in
21947
echo "$as_me:$LINENO: result: yes" >&5
21948
echo "${ECHO_T}yes" >&6
21950
*) echo "$as_me:$LINENO: result: no" >&5
21951
echo "${ECHO_T}no" >&6
21955
echo "$as_me:$LINENO: result: no" >&5
21956
echo "${ECHO_T}no" >&6
21961
echo "$as_me:$LINENO: checking for timeGetTime in winmm" >&5
21962
echo $ECHO_N "checking for timeGetTime in winmm... $ECHO_C" >&6
21963
my_ac_save_LIBS=$LIBS
21964
LIBS="-lwinmm $LIBS"
21965
cat >conftest.$ac_ext <<_ACEOF
21968
cat confdefs.h >>conftest.$ac_ext
21969
cat >>conftest.$ac_ext <<_ACEOF
21970
/* end confdefs.h. */
21971
#include <windef.h>
21972
#include <mmsystem.h>
21982
rm -f conftest.$ac_objext conftest$ac_exeext
21983
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21984
(eval $ac_link) 2>conftest.er1
21986
grep -v '^ *+' conftest.er1 >conftest.err
21988
cat conftest.err >&5
21989
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21990
(exit $ac_status); } &&
21991
{ ac_try='test -z "$ac_c_werror_flag"
21992
|| test ! -s conftest.err'
21993
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21994
(eval $ac_try) 2>&5
21996
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21997
(exit $ac_status); }; } &&
21998
{ ac_try='test -s conftest$ac_exeext'
21999
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22000
(eval $ac_try) 2>&5
22002
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22003
(exit $ac_status); }; }; then
22004
echo "$as_me:$LINENO: result: yes" >&5
22005
echo "${ECHO_T}yes" >&6
22008
echo "$as_me: failed program was:" >&5
22009
sed 's/^/| /' conftest.$ac_ext >&5
22011
LIBS=$my_ac_save_LIBS
22012
echo "$as_me:$LINENO: result: no" >&5
22013
echo "${ECHO_T}no" >&6
22016
rm -f conftest.err conftest.$ac_objext \
22017
conftest$ac_exeext conftest.$ac_ext
22020
echo "$as_me:$LINENO: checking whether to enable ipv6" >&5
22021
echo $ECHO_N "checking whether to enable ipv6... $ECHO_C" >&6
22022
# Check whether --enable-ipv6 or --disable-ipv6 was given.
22023
if test "${enable_ipv6+set}" = set; then
22024
enableval="$enable_ipv6"
22025
case "$enableval" in
22027
echo "$as_me:$LINENO: result: no" >&5
22028
echo "${ECHO_T}no" >&6
22031
*) echo "$as_me:$LINENO: result: yes" >&5
22032
echo "${ECHO_T}yes" >&6
22037
if test "$cross_compiling" = yes; then
22038
echo "$as_me:$LINENO: result: no" >&5
22039
echo "${ECHO_T}no" >&6
22043
cat >conftest.$ac_ext <<_ACEOF
22046
cat confdefs.h >>conftest.$ac_ext
22047
cat >>conftest.$ac_ext <<_ACEOF
22048
/* end confdefs.h. */
22049
/* is AF_INET6 available? */
22050
#include <sys/types.h>
22051
#include <sys/socket.h>
22054
if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
22061
rm -f conftest$ac_exeext
22062
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22063
(eval $ac_link) 2>&5
22065
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22066
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22067
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22068
(eval $ac_try) 2>&5
22070
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22071
(exit $ac_status); }; }; then
22072
echo "$as_me:$LINENO: result: yes" >&5
22073
echo "${ECHO_T}yes" >&6
22076
echo "$as_me: program exited with status $ac_status" >&5
22077
echo "$as_me: failed program was:" >&5
22078
sed 's/^/| /' conftest.$ac_ext >&5
22080
( exit $ac_status )
22081
echo "$as_me:$LINENO: result: no" >&5
22082
echo "${ECHO_T}no" >&6
22085
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22089
if test "$ipv6" = "yes"; then
22091
echo "$as_me:$LINENO: checking for working getaddrinfo" >&5
22092
echo $ECHO_N "checking for working getaddrinfo... $ECHO_C" >&6
22093
if test "${ac_cv_working_getaddrinfo+set}" = set; then
22094
echo $ECHO_N "(cached) $ECHO_C" >&6
22097
if test "$cross_compiling" = yes; then
22099
ac_cv_working_getaddrinfo="yes"
22102
cat >conftest.$ac_ext <<_ACEOF
22105
cat confdefs.h >>conftest.$ac_ext
22106
cat >>conftest.$ac_ext <<_ACEOF
22107
/* end confdefs.h. */
22110
#include <sys/types.h>
22111
#include <sys/socket.h>
22115
struct addrinfo hints, *ai;
22118
memset(&hints, 0, sizeof(hints));
22119
hints.ai_family = AF_UNSPEC;
22120
hints.ai_socktype = SOCK_STREAM;
22121
error = getaddrinfo("127.0.0.1", "8080", &hints, &ai);
22129
rm -f conftest$ac_exeext
22130
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22131
(eval $ac_link) 2>&5
22133
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22134
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22135
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22136
(eval $ac_try) 2>&5
22138
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22139
(exit $ac_status); }; }; then
22141
ac_cv_working_getaddrinfo="yes"
22144
echo "$as_me: program exited with status $ac_status" >&5
22145
echo "$as_me: failed program was:" >&5
22146
sed 's/^/| /' conftest.$ac_ext >&5
22148
( exit $ac_status )
22150
ac_cv_working_getaddrinfo="no"
22153
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22156
echo "$as_me:$LINENO: result: $ac_cv_working_getaddrinfo" >&5
22157
echo "${ECHO_T}$ac_cv_working_getaddrinfo" >&6
22158
if test "$ac_cv_working_getaddrinfo" = "yes"; then
22160
cat >>confdefs.h <<\_ACEOF
22161
#define HAVE_GETADDRINFO 1
22165
cat >>confdefs.h <<\_ACEOF
22166
#define ENABLE_IPV6 1
22176
echo "$as_me:$LINENO: checking for working NI_WITHSCOPEID" >&5
22177
echo $ECHO_N "checking for working NI_WITHSCOPEID... $ECHO_C" >&6
22178
if test "${ac_cv_working_ni_withscopeid+set}" = set; then
22179
echo $ECHO_N "(cached) $ECHO_C" >&6
22183
if test "$cross_compiling" = yes; then
22184
ac_cv_working_ni_withscopeid="yes"
22187
cat >conftest.$ac_ext <<_ACEOF
22190
#include <sys/types.h>
22191
#include <sys/socket.h>
22195
#ifdef NI_WITHSCOPEID
22196
struct sockaddr_storage ss;
22197
int sslen = sizeof(ss);
22199
char hbuf[NI_MAXHOST];
22200
int fd = socket(AF_INET6, SOCK_STREAM, 0);
22202
perror("socket()");
22203
return 1; /* couldn't create socket of either kind */
22206
rc = getsockname(fd, (struct sockaddr *)&ss, &sslen);
22208
perror("getsockname()");
22212
rc = getnameinfo((struct sockaddr *)&ss, sslen, hbuf, sizeof(hbuf),
22214
NI_NUMERICHOST | NI_NUMERICSERV | NI_WITHSCOPEID);
22217
printf("rc = %s\n", gai_strerror(rc));
22221
return 0; /* everything works fine, use NI_WITHSCOPEID! */
22223
return 4; /* we don't seem to have the definition, don't use it */
22228
rm -f conftest$ac_exeext
22229
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22230
(eval $ac_link) 2>&5
22232
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22233
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22234
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22235
(eval $ac_try) 2>&5
22237
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22238
(exit $ac_status); }; }; then
22239
ac_cv_working_ni_withscopeid="yes"
22241
echo "$as_me: program exited with status $ac_status" >&5
22242
echo "$as_me: failed program was:" >&5
22243
sed 's/^/| /' conftest.$ac_ext >&5
22245
( exit $ac_status )
22246
ac_cv_working_ni_withscopeid="no"
22248
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22252
echo "$as_me:$LINENO: result: $ac_cv_working_ni_withscopeid" >&5
22253
echo "${ECHO_T}$ac_cv_working_ni_withscopeid" >&6
22254
if test "$ac_cv_working_ni_withscopeid" = "yes"; then
22256
cat >>confdefs.h <<\_ACEOF
22257
#define HAVE_NI_WITHSCOPEID 1
22265
# Check whether --enable-nonblocking or --disable-nonblocking was given.
22266
if test "${enable_nonblocking+set}" = set; then
22267
enableval="$enable_nonblocking"
22269
if test "$enableval" = "no" ; then
22270
{ echo "$as_me:$LINENO: WARNING: non-blocking sockets disabled" >&5
22271
echo "$as_me: WARNING: non-blocking sockets disabled" >&2;}
22273
cat >>confdefs.h <<\_ACEOF
22274
#define HAVE_DISABLED_NONBLOCKING 1
22279
echo "$as_me:$LINENO: checking non-blocking sockets style" >&5
22280
echo $ECHO_N "checking non-blocking sockets style... $ECHO_C" >&6
22282
cat >conftest.$ac_ext <<_ACEOF
22285
cat confdefs.h >>conftest.$ac_ext
22286
cat >>conftest.$ac_ext <<_ACEOF
22287
/* end confdefs.h. */
22289
/* headers for O_NONBLOCK test */
22290
#include <sys/types.h>
22291
#include <unistd.h>
22298
/* try to compile O_NONBLOCK */
22300
#if defined(sun) || defined(__sun__) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
22301
# if defined(__SVR4) || defined(__srv4__)
22302
# define PLATFORM_SOLARIS
22304
# define PLATFORM_SUNOS4
22307
#if (defined(_AIX) || defined(__xlC__)) && !defined(_AIX4)
22308
# define PLATFORM_AIX_V3
22311
#if defined(PLATFORM_SUNOS4) || defined(PLATFORM_AIX_V3) || defined(__BEOS__)
22312
#error "O_NONBLOCK does not work on this platform"
22315
int flags = fcntl(socket, F_SETFL, flags | O_NONBLOCK);
22321
rm -f conftest.$ac_objext
22322
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22323
(eval $ac_compile) 2>conftest.er1
22325
grep -v '^ *+' conftest.er1 >conftest.err
22327
cat conftest.err >&5
22328
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22329
(exit $ac_status); } &&
22330
{ ac_try='test -z "$ac_c_werror_flag"
22331
|| test ! -s conftest.err'
22332
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22333
(eval $ac_try) 2>&5
22335
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22336
(exit $ac_status); }; } &&
22337
{ ac_try='test -s conftest.$ac_objext'
22338
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22339
(eval $ac_try) 2>&5
22341
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22342
(exit $ac_status); }; }; then
22344
nonblock="O_NONBLOCK"
22346
cat >>confdefs.h <<\_ACEOF
22347
#define HAVE_O_NONBLOCK 1
22352
echo "$as_me: failed program was:" >&5
22353
sed 's/^/| /' conftest.$ac_ext >&5
22357
cat >conftest.$ac_ext <<_ACEOF
22360
cat confdefs.h >>conftest.$ac_ext
22361
cat >>conftest.$ac_ext <<_ACEOF
22362
/* end confdefs.h. */
22364
/* headers for FIONBIO test */
22365
#include <unistd.h>
22366
#include <stropts.h>
22372
/* FIONBIO source test (old-style unix) */
22374
int flags = ioctl(socket, FIONBIO, &flags);
22380
rm -f conftest.$ac_objext
22381
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22382
(eval $ac_compile) 2>conftest.er1
22384
grep -v '^ *+' conftest.er1 >conftest.err
22386
cat conftest.err >&5
22387
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22388
(exit $ac_status); } &&
22389
{ ac_try='test -z "$ac_c_werror_flag"
22390
|| test ! -s conftest.err'
22391
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22392
(eval $ac_try) 2>&5
22394
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22395
(exit $ac_status); }; } &&
22396
{ ac_try='test -s conftest.$ac_objext'
22397
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22398
(eval $ac_try) 2>&5
22400
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22401
(exit $ac_status); }; }; then
22405
cat >>confdefs.h <<\_ACEOF
22406
#define HAVE_FIONBIO 1
22411
echo "$as_me: failed program was:" >&5
22412
sed 's/^/| /' conftest.$ac_ext >&5
22416
cat >conftest.$ac_ext <<_ACEOF
22419
cat confdefs.h >>conftest.$ac_ext
22420
cat >>conftest.$ac_ext <<_ACEOF
22421
/* end confdefs.h. */
22423
/* headers for ioctlsocket test (cygwin?) */
22424
#include <windows.h>
22430
/* ioctlsocket source code */
22432
unsigned long flags = ioctlsocket(socket, FIONBIO, &flags);
22438
rm -f conftest.$ac_objext
22439
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22440
(eval $ac_compile) 2>conftest.er1
22442
grep -v '^ *+' conftest.er1 >conftest.err
22444
cat conftest.err >&5
22445
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22446
(exit $ac_status); } &&
22447
{ ac_try='test -z "$ac_c_werror_flag"
22448
|| test ! -s conftest.err'
22449
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22450
(eval $ac_try) 2>&5
22452
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22453
(exit $ac_status); }; } &&
22454
{ ac_try='test -s conftest.$ac_objext'
22455
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22456
(eval $ac_try) 2>&5
22458
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22459
(exit $ac_status); }; }; then
22461
nonblock="ioctlsocket"
22463
cat >>confdefs.h <<\_ACEOF
22464
#define HAVE_IOCTLSOCKET 1
22469
echo "$as_me: failed program was:" >&5
22470
sed 's/^/| /' conftest.$ac_ext >&5
22474
cat >conftest.$ac_ext <<_ACEOF
22477
cat confdefs.h >>conftest.$ac_ext
22478
cat >>conftest.$ac_ext <<_ACEOF
22479
/* end confdefs.h. */
22481
/* headers for IoctlSocket test (Amiga?) */
22482
#include <sys/ioctl.h>
22488
/* IoctlSocket source code */
22490
int flags = IoctlSocket(socket, FIONBIO, (long)1);
22496
rm -f conftest.$ac_objext conftest$ac_exeext
22497
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22498
(eval $ac_link) 2>conftest.er1
22500
grep -v '^ *+' conftest.er1 >conftest.err
22502
cat conftest.err >&5
22503
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22504
(exit $ac_status); } &&
22505
{ ac_try='test -z "$ac_c_werror_flag"
22506
|| test ! -s conftest.err'
22507
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22508
(eval $ac_try) 2>&5
22510
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22511
(exit $ac_status); }; } &&
22512
{ ac_try='test -s conftest$ac_exeext'
22513
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22514
(eval $ac_try) 2>&5
22516
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22517
(exit $ac_status); }; }; then
22519
nonblock="IoctlSocket"
22521
cat >>confdefs.h <<\_ACEOF
22522
#define HAVE_IOCTLSOCKET_CASE 1
22527
echo "$as_me: failed program was:" >&5
22528
sed 's/^/| /' conftest.$ac_ext >&5
22531
cat >conftest.$ac_ext <<_ACEOF
22534
cat confdefs.h >>conftest.$ac_ext
22535
cat >>conftest.$ac_ext <<_ACEOF
22536
/* end confdefs.h. */
22538
/* headers for SO_NONBLOCK test (BeOS) */
22539
#include <sys/types.h>
22540
#include <unistd.h>
22547
/* SO_NONBLOCK source code */
22550
int flags = setsockopt(socket, SOL_SOCKET, SO_NONBLOCK, &b, sizeof(b));
22556
rm -f conftest.$ac_objext
22557
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22558
(eval $ac_compile) 2>conftest.er1
22560
grep -v '^ *+' conftest.er1 >conftest.err
22562
cat conftest.err >&5
22563
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22564
(exit $ac_status); } &&
22565
{ ac_try='test -z "$ac_c_werror_flag"
22566
|| test ! -s conftest.err'
22567
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22568
(eval $ac_try) 2>&5
22570
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22571
(exit $ac_status); }; } &&
22572
{ ac_try='test -s conftest.$ac_objext'
22573
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22574
(eval $ac_try) 2>&5
22576
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22577
(exit $ac_status); }; }; then
22579
nonblock="SO_NONBLOCK"
22581
cat >>confdefs.h <<\_ACEOF
22582
#define HAVE_SO_NONBLOCK 1
22587
echo "$as_me: failed program was:" >&5
22588
sed 's/^/| /' conftest.$ac_ext >&5
22593
cat >>confdefs.h <<\_ACEOF
22594
#define HAVE_DISABLED_NONBLOCKING 1
22599
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22603
rm -f conftest.err conftest.$ac_objext \
22604
conftest$ac_exeext conftest.$ac_ext
22608
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22612
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22616
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22617
echo "$as_me:$LINENO: result: $nonblock" >&5
22618
echo "${ECHO_T}$nonblock" >&6
22620
if test "$nonblock" = "nada"; then
22621
{ echo "$as_me:$LINENO: WARNING: non-block sockets disabled" >&5
22622
echo "$as_me: WARNING: non-block sockets disabled" >&2;}
22630
echo "$as_me:$LINENO: checking non-blocking sockets style" >&5
22631
echo $ECHO_N "checking non-blocking sockets style... $ECHO_C" >&6
22633
cat >conftest.$ac_ext <<_ACEOF
22636
cat confdefs.h >>conftest.$ac_ext
22637
cat >>conftest.$ac_ext <<_ACEOF
22638
/* end confdefs.h. */
22640
/* headers for O_NONBLOCK test */
22641
#include <sys/types.h>
22642
#include <unistd.h>
22649
/* try to compile O_NONBLOCK */
22651
#if defined(sun) || defined(__sun__) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
22652
# if defined(__SVR4) || defined(__srv4__)
22653
# define PLATFORM_SOLARIS
22655
# define PLATFORM_SUNOS4
22658
#if (defined(_AIX) || defined(__xlC__)) && !defined(_AIX4)
22659
# define PLATFORM_AIX_V3
22662
#if defined(PLATFORM_SUNOS4) || defined(PLATFORM_AIX_V3) || defined(__BEOS__)
22663
#error "O_NONBLOCK does not work on this platform"
22666
int flags = fcntl(socket, F_SETFL, flags | O_NONBLOCK);
22672
rm -f conftest.$ac_objext
22673
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22674
(eval $ac_compile) 2>conftest.er1
22676
grep -v '^ *+' conftest.er1 >conftest.err
22678
cat conftest.err >&5
22679
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22680
(exit $ac_status); } &&
22681
{ ac_try='test -z "$ac_c_werror_flag"
22682
|| test ! -s conftest.err'
22683
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22684
(eval $ac_try) 2>&5
22686
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22687
(exit $ac_status); }; } &&
22688
{ ac_try='test -s conftest.$ac_objext'
22689
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22690
(eval $ac_try) 2>&5
22692
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22693
(exit $ac_status); }; }; then
22695
nonblock="O_NONBLOCK"
22697
cat >>confdefs.h <<\_ACEOF
22698
#define HAVE_O_NONBLOCK 1
22703
echo "$as_me: failed program was:" >&5
22704
sed 's/^/| /' conftest.$ac_ext >&5
22708
cat >conftest.$ac_ext <<_ACEOF
22711
cat confdefs.h >>conftest.$ac_ext
22712
cat >>conftest.$ac_ext <<_ACEOF
22713
/* end confdefs.h. */
22715
/* headers for FIONBIO test */
22716
#include <unistd.h>
22717
#include <stropts.h>
22723
/* FIONBIO source test (old-style unix) */
22725
int flags = ioctl(socket, FIONBIO, &flags);
22731
rm -f conftest.$ac_objext
22732
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22733
(eval $ac_compile) 2>conftest.er1
22735
grep -v '^ *+' conftest.er1 >conftest.err
22737
cat conftest.err >&5
22738
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22739
(exit $ac_status); } &&
22740
{ ac_try='test -z "$ac_c_werror_flag"
22741
|| test ! -s conftest.err'
22742
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22743
(eval $ac_try) 2>&5
22745
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22746
(exit $ac_status); }; } &&
22747
{ ac_try='test -s conftest.$ac_objext'
22748
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22749
(eval $ac_try) 2>&5
22751
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22752
(exit $ac_status); }; }; then
22756
cat >>confdefs.h <<\_ACEOF
22757
#define HAVE_FIONBIO 1
22762
echo "$as_me: failed program was:" >&5
22763
sed 's/^/| /' conftest.$ac_ext >&5
22767
cat >conftest.$ac_ext <<_ACEOF
22770
cat confdefs.h >>conftest.$ac_ext
22771
cat >>conftest.$ac_ext <<_ACEOF
22772
/* end confdefs.h. */
22774
/* headers for ioctlsocket test (cygwin?) */
22775
#include <windows.h>
22781
/* ioctlsocket source code */
22783
unsigned long flags = ioctlsocket(socket, FIONBIO, &flags);
22789
rm -f conftest.$ac_objext
22790
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22791
(eval $ac_compile) 2>conftest.er1
22793
grep -v '^ *+' conftest.er1 >conftest.err
22795
cat conftest.err >&5
22796
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22797
(exit $ac_status); } &&
22798
{ ac_try='test -z "$ac_c_werror_flag"
22799
|| test ! -s conftest.err'
22800
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22801
(eval $ac_try) 2>&5
22803
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22804
(exit $ac_status); }; } &&
22805
{ ac_try='test -s conftest.$ac_objext'
22806
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22807
(eval $ac_try) 2>&5
22809
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22810
(exit $ac_status); }; }; then
22812
nonblock="ioctlsocket"
22814
cat >>confdefs.h <<\_ACEOF
22815
#define HAVE_IOCTLSOCKET 1
22820
echo "$as_me: failed program was:" >&5
22821
sed 's/^/| /' conftest.$ac_ext >&5
22825
cat >conftest.$ac_ext <<_ACEOF
22828
cat confdefs.h >>conftest.$ac_ext
22829
cat >>conftest.$ac_ext <<_ACEOF
22830
/* end confdefs.h. */
22832
/* headers for IoctlSocket test (Amiga?) */
22833
#include <sys/ioctl.h>
22839
/* IoctlSocket source code */
22841
int flags = IoctlSocket(socket, FIONBIO, (long)1);
22847
rm -f conftest.$ac_objext conftest$ac_exeext
22848
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22849
(eval $ac_link) 2>conftest.er1
22851
grep -v '^ *+' conftest.er1 >conftest.err
22853
cat conftest.err >&5
22854
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22855
(exit $ac_status); } &&
22856
{ ac_try='test -z "$ac_c_werror_flag"
22857
|| test ! -s conftest.err'
22858
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22859
(eval $ac_try) 2>&5
22861
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22862
(exit $ac_status); }; } &&
22863
{ ac_try='test -s conftest$ac_exeext'
22864
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22865
(eval $ac_try) 2>&5
22867
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22868
(exit $ac_status); }; }; then
22870
nonblock="IoctlSocket"
22872
cat >>confdefs.h <<\_ACEOF
22873
#define HAVE_IOCTLSOCKET_CASE 1
22878
echo "$as_me: failed program was:" >&5
22879
sed 's/^/| /' conftest.$ac_ext >&5
22882
cat >conftest.$ac_ext <<_ACEOF
22885
cat confdefs.h >>conftest.$ac_ext
22886
cat >>conftest.$ac_ext <<_ACEOF
22887
/* end confdefs.h. */
22889
/* headers for SO_NONBLOCK test (BeOS) */
22890
#include <sys/types.h>
22891
#include <unistd.h>
22898
/* SO_NONBLOCK source code */
22901
int flags = setsockopt(socket, SOL_SOCKET, SO_NONBLOCK, &b, sizeof(b));
22907
rm -f conftest.$ac_objext
22908
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22909
(eval $ac_compile) 2>conftest.er1
22911
grep -v '^ *+' conftest.er1 >conftest.err
22913
cat conftest.err >&5
22914
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22915
(exit $ac_status); } &&
22916
{ ac_try='test -z "$ac_c_werror_flag"
22917
|| test ! -s conftest.err'
22918
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22919
(eval $ac_try) 2>&5
22921
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22922
(exit $ac_status); }; } &&
22923
{ ac_try='test -s conftest.$ac_objext'
22924
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22925
(eval $ac_try) 2>&5
22927
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22928
(exit $ac_status); }; }; then
22930
nonblock="SO_NONBLOCK"
22932
cat >>confdefs.h <<\_ACEOF
22933
#define HAVE_SO_NONBLOCK 1
22938
echo "$as_me: failed program was:" >&5
22939
sed 's/^/| /' conftest.$ac_ext >&5
22944
cat >>confdefs.h <<\_ACEOF
22945
#define HAVE_DISABLED_NONBLOCKING 1
22950
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22954
rm -f conftest.err conftest.$ac_objext \
22955
conftest$ac_exeext conftest.$ac_ext
22959
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22963
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22967
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22968
echo "$as_me:$LINENO: result: $nonblock" >&5
22969
echo "${ECHO_T}$nonblock" >&6
22971
if test "$nonblock" = "nada"; then
22972
{ echo "$as_me:$LINENO: WARNING: non-block sockets disabled" >&5
22973
echo "$as_me: WARNING: non-block sockets disabled" >&2;}
22981
# Check whether --with-egd-socket or --without-egd-socket was given.
22982
if test "${with_egd_socket+set}" = set; then
22983
withval="$with_egd_socket"
22984
EGD_SOCKET="$withval"
22987
if test -n "$EGD_SOCKET" ; then
22989
cat >>confdefs.h <<_ACEOF
22990
#define EGD_SOCKET "$EGD_SOCKET"
22996
# Check whether --with-random or --without-random was given.
22997
if test "${with_random+set}" = set; then
22998
withval="$with_random"
22999
RANDOM_FILE="$withval"
23002
echo "$as_me:$LINENO: checking for \"/dev/urandom\"" >&5
23003
echo $ECHO_N "checking for \"/dev/urandom\"... $ECHO_C" >&6
23004
if test "${ac_cv_file___dev_urandom_+set}" = set; then
23005
echo $ECHO_N "(cached) $ECHO_C" >&6
23007
test "$cross_compiling" = yes &&
23008
{ { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
23009
echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
23010
{ (exit 1); exit 1; }; }
23011
if test -r ""/dev/urandom""; then
23012
ac_cv_file___dev_urandom_=yes
23014
ac_cv_file___dev_urandom_=no
23017
echo "$as_me:$LINENO: result: $ac_cv_file___dev_urandom_" >&5
23018
echo "${ECHO_T}$ac_cv_file___dev_urandom_" >&6
23019
if test $ac_cv_file___dev_urandom_ = yes; then
23020
RANDOM_FILE="/dev/urandom"
23026
if test -n "$RANDOM_FILE" ; then
23029
cat >>confdefs.h <<_ACEOF
23030
#define RANDOM_FILE "$RANDOM_FILE"
23036
echo "$as_me:$LINENO: checking if argv can be written to" >&5
23037
echo $ECHO_N "checking if argv can be written to... $ECHO_C" >&6
23038
if test "${curl_cv_writable_argv+set}" = set; then
23039
echo $ECHO_N "(cached) $ECHO_C" >&6
23042
if test "$cross_compiling" = yes; then
23043
curl_cv_writable_argv=cross
23045
cat >conftest.$ac_ext <<_ACEOF
23047
int main(int argc, char ** argv) {
23049
return (argv[0][0] == ' ')?0:1;
23053
rm -f conftest$ac_exeext
23054
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23055
(eval $ac_link) 2>&5
23057
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23058
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23059
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23060
(eval $ac_try) 2>&5
23062
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23063
(exit $ac_status); }; }; then
23064
curl_cv_writable_argv=yes
23066
echo "$as_me: program exited with status $ac_status" >&5
23067
echo "$as_me: failed program was:" >&5
23068
sed 's/^/| /' conftest.$ac_ext >&5
23070
( exit $ac_status )
23071
curl_cv_writable_argv=no
23073
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23078
case $curl_cv_writable_argv in
23081
cat >>confdefs.h <<\_ACEOF
23082
#define HAVE_WRITABLE_ARGV 1
23085
echo "$as_me:$LINENO: result: yes" >&5
23086
echo "${ECHO_T}yes" >&6
23089
echo "$as_me:$LINENO: result: no" >&5
23090
echo "${ECHO_T}no" >&6
23093
echo "$as_me:$LINENO: result: no" >&5
23094
echo "${ECHO_T}no" >&6
23095
{ echo "$as_me:$LINENO: WARNING: the previous check could not be made default was used" >&5
23096
echo "$as_me: WARNING: the previous check could not be made default was used" >&2;}
23102
# Check whether --with-krb4-includes or --without-krb4-includes was given.
23103
if test "${with_krb4_includes+set}" = set; then
23104
withval="$with_krb4_includes"
23106
CPPFLAGS="$CPPFLAGS -I$withval"
23113
# Check whether --with-krb4-libs or --without-krb4-libs was given.
23114
if test "${with_krb4_libs+set}" = set; then
23115
withval="$with_krb4_libs"
23117
LDFLAGS="$LDFLAGS -L$withval"
23126
# Check whether --with-krb4 or --without-krb4 was given.
23127
if test "${with_krb4+set}" = set; then
23128
withval="$with_krb4"
23130
OPT_KRB4="$withval"
23131
if test X"$OPT_KRB4" != Xyes
23133
LDFLAGS="$LDFLAGS -L$OPT_KRB4/lib$libsuff"
23134
KRB4LIB="$OPT_KRB4/lib$libsuff"
23135
CPPFLAGS="$CPPFLAGS -I$OPT_KRB4/include"
23136
KRB4INC="$OPT_KRB4/include"
23142
echo "$as_me:$LINENO: checking if Kerberos4 support is requested" >&5
23143
echo $ECHO_N "checking if Kerberos4 support is requested... $ECHO_C" >&6
23145
if test "$want_krb4" = yes
23147
if test "$ipv6" = "yes"; then
23148
echo krb4 is not compatible with IPv6
23151
echo "$as_me:$LINENO: result: yes" >&5
23152
echo "${ECHO_T}yes" >&6
23155
echo "$as_me:$LINENO: checking where to look for Kerberos4" >&5
23156
echo $ECHO_N "checking where to look for Kerberos4... $ECHO_C" >&6
23157
if test X"$OPT_KRB4" = Xyes
23159
echo "$as_me:$LINENO: result: defaults" >&5
23160
echo "${ECHO_T}defaults" >&6
23162
echo "$as_me:$LINENO: result: libs in $KRB4LIB, headers in $KRB4INC" >&5
23163
echo "${ECHO_T}libs in $KRB4LIB, headers in $KRB4INC" >&6
23166
echo "$as_me:$LINENO: checking for des_pcbc_encrypt in -ldes" >&5
23167
echo $ECHO_N "checking for des_pcbc_encrypt in -ldes... $ECHO_C" >&6
23168
if test "${ac_cv_lib_des_des_pcbc_encrypt+set}" = set; then
23169
echo $ECHO_N "(cached) $ECHO_C" >&6
23171
ac_check_lib_save_LIBS=$LIBS
23173
cat >conftest.$ac_ext <<_ACEOF
23176
cat confdefs.h >>conftest.$ac_ext
23177
cat >>conftest.$ac_ext <<_ACEOF
23178
/* end confdefs.h. */
23180
/* Override any gcc2 internal prototype to avoid an error. */
23184
/* We use char because int might match the return type of a gcc2
23185
builtin and then its argument prototype would still apply. */
23186
char des_pcbc_encrypt ();
23190
des_pcbc_encrypt ();
23195
rm -f conftest.$ac_objext conftest$ac_exeext
23196
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23197
(eval $ac_link) 2>conftest.er1
23199
grep -v '^ *+' conftest.er1 >conftest.err
23201
cat conftest.err >&5
23202
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23203
(exit $ac_status); } &&
23204
{ ac_try='test -z "$ac_c_werror_flag"
23205
|| test ! -s conftest.err'
23206
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23207
(eval $ac_try) 2>&5
23209
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23210
(exit $ac_status); }; } &&
23211
{ ac_try='test -s conftest$ac_exeext'
23212
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23213
(eval $ac_try) 2>&5
23215
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23216
(exit $ac_status); }; }; then
23217
ac_cv_lib_des_des_pcbc_encrypt=yes
23219
echo "$as_me: failed program was:" >&5
23220
sed 's/^/| /' conftest.$ac_ext >&5
23222
ac_cv_lib_des_des_pcbc_encrypt=no
23224
rm -f conftest.err conftest.$ac_objext \
23225
conftest$ac_exeext conftest.$ac_ext
23226
LIBS=$ac_check_lib_save_LIBS
23228
echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_pcbc_encrypt" >&5
23229
echo "${ECHO_T}$ac_cv_lib_des_des_pcbc_encrypt" >&6
23230
if test $ac_cv_lib_des_des_pcbc_encrypt = yes; then
23233
for ac_header in des.h
23235
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23236
if eval "test \"\${$as_ac_Header+set}\" = set"; then
23237
echo "$as_me:$LINENO: checking for $ac_header" >&5
23238
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23239
if eval "test \"\${$as_ac_Header+set}\" = set"; then
23240
echo $ECHO_N "(cached) $ECHO_C" >&6
23242
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23243
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23245
# Is the header compilable?
23246
echo "$as_me:$LINENO: checking $ac_header usability" >&5
23247
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23248
cat >conftest.$ac_ext <<_ACEOF
23251
cat confdefs.h >>conftest.$ac_ext
23252
cat >>conftest.$ac_ext <<_ACEOF
23253
/* end confdefs.h. */
23254
$ac_includes_default
23255
#include <$ac_header>
23257
rm -f conftest.$ac_objext
23258
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23259
(eval $ac_compile) 2>conftest.er1
23261
grep -v '^ *+' conftest.er1 >conftest.err
23263
cat conftest.err >&5
23264
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23265
(exit $ac_status); } &&
23266
{ ac_try='test -z "$ac_c_werror_flag"
23267
|| test ! -s conftest.err'
23268
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23269
(eval $ac_try) 2>&5
23271
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23272
(exit $ac_status); }; } &&
23273
{ ac_try='test -s conftest.$ac_objext'
23274
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23275
(eval $ac_try) 2>&5
23277
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23278
(exit $ac_status); }; }; then
23279
ac_header_compiler=yes
23281
echo "$as_me: failed program was:" >&5
23282
sed 's/^/| /' conftest.$ac_ext >&5
23284
ac_header_compiler=no
23286
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23287
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23288
echo "${ECHO_T}$ac_header_compiler" >&6
23290
# Is the header present?
23291
echo "$as_me:$LINENO: checking $ac_header presence" >&5
23292
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23293
cat >conftest.$ac_ext <<_ACEOF
23296
cat confdefs.h >>conftest.$ac_ext
23297
cat >>conftest.$ac_ext <<_ACEOF
23298
/* end confdefs.h. */
23299
#include <$ac_header>
23301
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23302
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23304
grep -v '^ *+' conftest.er1 >conftest.err
23306
cat conftest.err >&5
23307
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23308
(exit $ac_status); } >/dev/null; then
23309
if test -s conftest.err; then
23310
ac_cpp_err=$ac_c_preproc_warn_flag
23311
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23318
if test -z "$ac_cpp_err"; then
23319
ac_header_preproc=yes
23321
echo "$as_me: failed program was:" >&5
23322
sed 's/^/| /' conftest.$ac_ext >&5
23324
ac_header_preproc=no
23326
rm -f conftest.err conftest.$ac_ext
23327
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23328
echo "${ECHO_T}$ac_header_preproc" >&6
23330
# So? What about this header?
23331
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23333
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23334
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23335
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23336
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23337
ac_header_preproc=yes
23340
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23341
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23342
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23343
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23344
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23345
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23346
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23347
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23348
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23349
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23350
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23351
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23354
## ------------------------------- ##
23355
## Report this to curl-bug@haxx.se ##
23356
## ------------------------------- ##
23359
sed "s/^/$as_me: WARNING: /" >&2
23362
echo "$as_me:$LINENO: checking for $ac_header" >&5
23363
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23364
if eval "test \"\${$as_ac_Header+set}\" = set"; then
23365
echo $ECHO_N "(cached) $ECHO_C" >&6
23367
eval "$as_ac_Header=\$ac_header_preproc"
23369
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23370
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23373
if test `eval echo '${'$as_ac_Header'}'` = yes; then
23374
cat >>confdefs.h <<_ACEOF
23375
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23383
echo "$as_me:$LINENO: checking for res_search" >&5
23384
echo $ECHO_N "checking for res_search... $ECHO_C" >&6
23385
if test "${ac_cv_func_res_search+set}" = set; then
23386
echo $ECHO_N "(cached) $ECHO_C" >&6
23388
cat >conftest.$ac_ext <<_ACEOF
23391
cat confdefs.h >>conftest.$ac_ext
23392
cat >>conftest.$ac_ext <<_ACEOF
23393
/* end confdefs.h. */
23394
/* Define res_search to an innocuous variant, in case <limits.h> declares res_search.
23395
For example, HP-UX 11i <limits.h> declares gettimeofday. */
23396
#define res_search innocuous_res_search
23398
/* System header to define __stub macros and hopefully few prototypes,
23399
which can conflict with char res_search (); below.
23400
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23401
<limits.h> exists even on freestanding compilers. */
23404
# include <limits.h>
23406
# include <assert.h>
23411
/* Override any gcc2 internal prototype to avoid an error. */
23416
/* We use char because int might match the return type of a gcc2
23417
builtin and then its argument prototype would still apply. */
23418
char res_search ();
23419
/* The GNU C library defines this for functions which it implements
23420
to always fail with ENOSYS. Some functions are actually named
23421
something starting with __ and the normal name is an alias. */
23422
#if defined (__stub_res_search) || defined (__stub___res_search)
23425
char (*f) () = res_search;
23434
return f != res_search;
23439
rm -f conftest.$ac_objext conftest$ac_exeext
23440
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23441
(eval $ac_link) 2>conftest.er1
23443
grep -v '^ *+' conftest.er1 >conftest.err
23445
cat conftest.err >&5
23446
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23447
(exit $ac_status); } &&
23448
{ ac_try='test -z "$ac_c_werror_flag"
23449
|| test ! -s conftest.err'
23450
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23451
(eval $ac_try) 2>&5
23453
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23454
(exit $ac_status); }; } &&
23455
{ ac_try='test -s conftest$ac_exeext'
23456
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23457
(eval $ac_try) 2>&5
23459
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23460
(exit $ac_status); }; }; then
23461
ac_cv_func_res_search=yes
23463
echo "$as_me: failed program was:" >&5
23464
sed 's/^/| /' conftest.$ac_ext >&5
23466
ac_cv_func_res_search=no
23468
rm -f conftest.err conftest.$ac_objext \
23469
conftest$ac_exeext conftest.$ac_ext
23471
echo "$as_me:$LINENO: result: $ac_cv_func_res_search" >&5
23472
echo "${ECHO_T}$ac_cv_func_res_search" >&6
23473
if test $ac_cv_func_res_search = yes; then
23477
echo "$as_me:$LINENO: checking for res_search in -lresolv" >&5
23478
echo $ECHO_N "checking for res_search in -lresolv... $ECHO_C" >&6
23479
if test "${ac_cv_lib_resolv_res_search+set}" = set; then
23480
echo $ECHO_N "(cached) $ECHO_C" >&6
23482
ac_check_lib_save_LIBS=$LIBS
23483
LIBS="-lresolv $LIBS"
23484
cat >conftest.$ac_ext <<_ACEOF
23487
cat confdefs.h >>conftest.$ac_ext
23488
cat >>conftest.$ac_ext <<_ACEOF
23489
/* end confdefs.h. */
23491
/* Override any gcc2 internal prototype to avoid an error. */
23495
/* We use char because int might match the return type of a gcc2
23496
builtin and then its argument prototype would still apply. */
23497
char res_search ();
23506
rm -f conftest.$ac_objext conftest$ac_exeext
23507
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23508
(eval $ac_link) 2>conftest.er1
23510
grep -v '^ *+' conftest.er1 >conftest.err
23512
cat conftest.err >&5
23513
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23514
(exit $ac_status); } &&
23515
{ ac_try='test -z "$ac_c_werror_flag"
23516
|| test ! -s conftest.err'
23517
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23518
(eval $ac_try) 2>&5
23520
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23521
(exit $ac_status); }; } &&
23522
{ ac_try='test -s conftest$ac_exeext'
23523
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23524
(eval $ac_try) 2>&5
23526
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23527
(exit $ac_status); }; }; then
23528
ac_cv_lib_resolv_res_search=yes
23530
echo "$as_me: failed program was:" >&5
23531
sed 's/^/| /' conftest.$ac_ext >&5
23533
ac_cv_lib_resolv_res_search=no
23535
rm -f conftest.err conftest.$ac_objext \
23536
conftest$ac_exeext conftest.$ac_ext
23537
LIBS=$ac_check_lib_save_LIBS
23539
echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_search" >&5
23540
echo "${ECHO_T}$ac_cv_lib_resolv_res_search" >&6
23541
if test $ac_cv_lib_resolv_res_search = yes; then
23542
cat >>confdefs.h <<_ACEOF
23543
#define HAVE_LIBRESOLV 1
23546
LIBS="-lresolv $LIBS"
23553
echo "$as_me:$LINENO: checking for krb_net_read in -lkrb" >&5
23554
echo $ECHO_N "checking for krb_net_read in -lkrb... $ECHO_C" >&6
23555
if test "${ac_cv_lib_krb_krb_net_read+set}" = set; then
23556
echo $ECHO_N "(cached) $ECHO_C" >&6
23558
ac_check_lib_save_LIBS=$LIBS
23560
cat >conftest.$ac_ext <<_ACEOF
23563
cat confdefs.h >>conftest.$ac_ext
23564
cat >>conftest.$ac_ext <<_ACEOF
23565
/* end confdefs.h. */
23567
/* Override any gcc2 internal prototype to avoid an error. */
23571
/* We use char because int might match the return type of a gcc2
23572
builtin and then its argument prototype would still apply. */
23573
char krb_net_read ();
23582
rm -f conftest.$ac_objext conftest$ac_exeext
23583
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23584
(eval $ac_link) 2>conftest.er1
23586
grep -v '^ *+' conftest.er1 >conftest.err
23588
cat conftest.err >&5
23589
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23590
(exit $ac_status); } &&
23591
{ ac_try='test -z "$ac_c_werror_flag"
23592
|| test ! -s conftest.err'
23593
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23594
(eval $ac_try) 2>&5
23596
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23597
(exit $ac_status); }; } &&
23598
{ ac_try='test -s conftest$ac_exeext'
23599
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23600
(eval $ac_try) 2>&5
23602
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23603
(exit $ac_status); }; }; then
23604
ac_cv_lib_krb_krb_net_read=yes
23606
echo "$as_me: failed program was:" >&5
23607
sed 's/^/| /' conftest.$ac_ext >&5
23609
ac_cv_lib_krb_krb_net_read=no
23611
rm -f conftest.err conftest.$ac_objext \
23612
conftest$ac_exeext conftest.$ac_ext
23613
LIBS=$ac_check_lib_save_LIBS
23615
echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_net_read" >&5
23616
echo "${ECHO_T}$ac_cv_lib_krb_krb_net_read" >&6
23617
if test $ac_cv_lib_krb_krb_net_read = yes; then
23620
for ac_header in krb.h
23622
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23623
if eval "test \"\${$as_ac_Header+set}\" = set"; then
23624
echo "$as_me:$LINENO: checking for $ac_header" >&5
23625
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23626
if eval "test \"\${$as_ac_Header+set}\" = set"; then
23627
echo $ECHO_N "(cached) $ECHO_C" >&6
23629
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23630
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23632
# Is the header compilable?
23633
echo "$as_me:$LINENO: checking $ac_header usability" >&5
23634
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23635
cat >conftest.$ac_ext <<_ACEOF
23638
cat confdefs.h >>conftest.$ac_ext
23639
cat >>conftest.$ac_ext <<_ACEOF
23640
/* end confdefs.h. */
23641
$ac_includes_default
23642
#include <$ac_header>
23644
rm -f conftest.$ac_objext
23645
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23646
(eval $ac_compile) 2>conftest.er1
23648
grep -v '^ *+' conftest.er1 >conftest.err
23650
cat conftest.err >&5
23651
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23652
(exit $ac_status); } &&
23653
{ ac_try='test -z "$ac_c_werror_flag"
23654
|| test ! -s conftest.err'
23655
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23656
(eval $ac_try) 2>&5
23658
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23659
(exit $ac_status); }; } &&
23660
{ ac_try='test -s conftest.$ac_objext'
23661
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23662
(eval $ac_try) 2>&5
23664
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23665
(exit $ac_status); }; }; then
23666
ac_header_compiler=yes
23668
echo "$as_me: failed program was:" >&5
23669
sed 's/^/| /' conftest.$ac_ext >&5
23671
ac_header_compiler=no
23673
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23674
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23675
echo "${ECHO_T}$ac_header_compiler" >&6
23677
# Is the header present?
23678
echo "$as_me:$LINENO: checking $ac_header presence" >&5
23679
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23680
cat >conftest.$ac_ext <<_ACEOF
23683
cat confdefs.h >>conftest.$ac_ext
23684
cat >>conftest.$ac_ext <<_ACEOF
23685
/* end confdefs.h. */
23686
#include <$ac_header>
23688
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23689
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23691
grep -v '^ *+' conftest.er1 >conftest.err
23693
cat conftest.err >&5
23694
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23695
(exit $ac_status); } >/dev/null; then
23696
if test -s conftest.err; then
23697
ac_cpp_err=$ac_c_preproc_warn_flag
23698
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23705
if test -z "$ac_cpp_err"; then
23706
ac_header_preproc=yes
23708
echo "$as_me: failed program was:" >&5
23709
sed 's/^/| /' conftest.$ac_ext >&5
23711
ac_header_preproc=no
23713
rm -f conftest.err conftest.$ac_ext
23714
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23715
echo "${ECHO_T}$ac_header_preproc" >&6
23717
# So? What about this header?
23718
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23720
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23721
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23722
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23723
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23724
ac_header_preproc=yes
23727
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23728
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23729
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23730
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23731
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23732
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23733
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23734
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23735
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23736
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23737
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23738
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23741
## ------------------------------- ##
23742
## Report this to curl-bug@haxx.se ##
23743
## ------------------------------- ##
23746
sed "s/^/$as_me: WARNING: /" >&2
23749
echo "$as_me:$LINENO: checking for $ac_header" >&5
23750
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23751
if eval "test \"\${$as_ac_Header+set}\" = set"; then
23752
echo $ECHO_N "(cached) $ECHO_C" >&6
23754
eval "$as_ac_Header=\$ac_header_preproc"
23756
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23757
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23760
if test `eval echo '${'$as_ac_Header'}'` = yes; then
23761
cat >>confdefs.h <<_ACEOF
23762
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23770
LIBS="-lkrb -ldes $LIBS"
23773
for ac_func in krb_get_our_ip_for_realm
23775
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23776
echo "$as_me:$LINENO: checking for $ac_func" >&5
23777
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23778
if eval "test \"\${$as_ac_var+set}\" = set"; then
23779
echo $ECHO_N "(cached) $ECHO_C" >&6
23781
cat >conftest.$ac_ext <<_ACEOF
23784
cat confdefs.h >>conftest.$ac_ext
23785
cat >>conftest.$ac_ext <<_ACEOF
23786
/* end confdefs.h. */
23787
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23788
For example, HP-UX 11i <limits.h> declares gettimeofday. */
23789
#define $ac_func innocuous_$ac_func
23791
/* System header to define __stub macros and hopefully few prototypes,
23792
which can conflict with char $ac_func (); below.
23793
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23794
<limits.h> exists even on freestanding compilers. */
23797
# include <limits.h>
23799
# include <assert.h>
23804
/* Override any gcc2 internal prototype to avoid an error. */
23809
/* We use char because int might match the return type of a gcc2
23810
builtin and then its argument prototype would still apply. */
23812
/* The GNU C library defines this for functions which it implements
23813
to always fail with ENOSYS. Some functions are actually named
23814
something starting with __ and the normal name is an alias. */
23815
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23818
char (*f) () = $ac_func;
23827
return f != $ac_func;
23832
rm -f conftest.$ac_objext conftest$ac_exeext
23833
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23834
(eval $ac_link) 2>conftest.er1
23836
grep -v '^ *+' conftest.er1 >conftest.err
23838
cat conftest.err >&5
23839
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23840
(exit $ac_status); } &&
23841
{ ac_try='test -z "$ac_c_werror_flag"
23842
|| test ! -s conftest.err'
23843
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23844
(eval $ac_try) 2>&5
23846
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23847
(exit $ac_status); }; } &&
23848
{ ac_try='test -s conftest$ac_exeext'
23849
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23850
(eval $ac_try) 2>&5
23852
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23853
(exit $ac_status); }; }; then
23854
eval "$as_ac_var=yes"
23856
echo "$as_me: failed program was:" >&5
23857
sed 's/^/| /' conftest.$ac_ext >&5
23859
eval "$as_ac_var=no"
23861
rm -f conftest.err conftest.$ac_objext \
23862
conftest$ac_exeext conftest.$ac_ext
23864
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23865
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23866
if test `eval echo '${'$as_ac_var'}'` = yes; then
23867
cat >>confdefs.h <<_ACEOF
23868
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23876
cat >>confdefs.h <<\_ACEOF
23877
#define HAVE_KRB4 1
23885
for ac_func in strlcpy
23887
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23888
echo "$as_me:$LINENO: checking for $ac_func" >&5
23889
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23890
if eval "test \"\${$as_ac_var+set}\" = set"; then
23891
echo $ECHO_N "(cached) $ECHO_C" >&6
23893
cat >conftest.$ac_ext <<_ACEOF
23896
cat confdefs.h >>conftest.$ac_ext
23897
cat >>conftest.$ac_ext <<_ACEOF
23898
/* end confdefs.h. */
23899
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23900
For example, HP-UX 11i <limits.h> declares gettimeofday. */
23901
#define $ac_func innocuous_$ac_func
23903
/* System header to define __stub macros and hopefully few prototypes,
23904
which can conflict with char $ac_func (); below.
23905
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23906
<limits.h> exists even on freestanding compilers. */
23909
# include <limits.h>
23911
# include <assert.h>
23916
/* Override any gcc2 internal prototype to avoid an error. */
23921
/* We use char because int might match the return type of a gcc2
23922
builtin and then its argument prototype would still apply. */
23924
/* The GNU C library defines this for functions which it implements
23925
to always fail with ENOSYS. Some functions are actually named
23926
something starting with __ and the normal name is an alias. */
23927
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23930
char (*f) () = $ac_func;
23939
return f != $ac_func;
23944
rm -f conftest.$ac_objext conftest$ac_exeext
23945
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23946
(eval $ac_link) 2>conftest.er1
23948
grep -v '^ *+' conftest.er1 >conftest.err
23950
cat conftest.err >&5
23951
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23952
(exit $ac_status); } &&
23953
{ ac_try='test -z "$ac_c_werror_flag"
23954
|| test ! -s conftest.err'
23955
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23956
(eval $ac_try) 2>&5
23958
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23959
(exit $ac_status); }; } &&
23960
{ ac_try='test -s conftest$ac_exeext'
23961
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23962
(eval $ac_try) 2>&5
23964
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23965
(exit $ac_status); }; }; then
23966
eval "$as_ac_var=yes"
23968
echo "$as_me: failed program was:" >&5
23969
sed 's/^/| /' conftest.$ac_ext >&5
23971
eval "$as_ac_var=no"
23973
rm -f conftest.err conftest.$ac_objext \
23974
conftest$ac_exeext conftest.$ac_ext
23976
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23977
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23978
if test `eval echo '${'$as_ac_var'}'` = yes; then
23979
cat >>confdefs.h <<_ACEOF
23980
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23994
echo "$as_me:$LINENO: result: no" >&5
23995
echo "${ECHO_T}no" >&6
24000
# Check whether --with-spnego or --without-spnego was given.
24001
if test "${with_spnego+set}" = set; then
24002
withval="$with_spnego"
24003
SPNEGO_ROOT="$withval"
24007
echo "$as_me:$LINENO: checking if SPNEGO support is requested" >&5
24008
echo $ECHO_N "checking if SPNEGO support is requested... $ECHO_C" >&6
24009
if test x"$want_spnego" = xyes; then
24011
if test X"$SPNEGO_ROOT" = Xyes; then
24012
{ { echo "$as_me:$LINENO: error: FBOpenSSL libs and/or directories were not found where specified!" >&5
24013
echo "$as_me: error: FBOpenSSL libs and/or directories were not found where specified!" >&2;}
24014
{ (exit 1); exit 1; }; }
24015
echo "$as_me:$LINENO: result: no" >&5
24016
echo "${ECHO_T}no" >&6
24018
if test -z "$SPNEGO_LIB_DIR"; then
24019
LDFLAGS="$LDFLAGS -L$SPNEGO_ROOT -lfbopenssl"
24021
LDFLAGS="$LDFLAGS $SPNEGO_LIB_DIR"
24024
echo "$as_me:$LINENO: result: yes" >&5
24025
echo "${ECHO_T}yes" >&6
24027
cat >>confdefs.h <<\_ACEOF
24028
#define HAVE_SPNEGO 1
24033
echo "$as_me:$LINENO: result: no" >&5
24034
echo "${ECHO_T}no" >&6
24039
# Check whether --with-gssapi-includes or --without-gssapi-includes was given.
24040
if test "${with_gssapi_includes+set}" = set; then
24041
withval="$with_gssapi_includes"
24042
GSSAPI_INCS="-I$withval"
24048
# Check whether --with-gssapi-libs or --without-gssapi-libs was given.
24049
if test "${with_gssapi_libs+set}" = set; then
24050
withval="$with_gssapi_libs"
24051
GSSAPI_LIBS="-L$withval -lgssapi"
24057
# Check whether --with-gssapi or --without-gssapi was given.
24058
if test "${with_gssapi+set}" = set; then
24059
withval="$with_gssapi"
24060
GSSAPI_ROOT="$withval"
24065
echo "$as_me:$LINENO: checking if GSSAPI support is requested" >&5
24066
echo $ECHO_N "checking if GSSAPI support is requested... $ECHO_C" >&6
24067
if test x"$want_gss" = xyes; then
24068
if test -z "$GSSAPI_INCS"; then
24069
if test -f "$GSSAPI_ROOT/bin/krb5-config"; then
24070
GSSAPI_INCS=`$GSSAPI_ROOT/bin/krb5-config --cflags gssapi`
24072
GSSAPI_INCS="-I$GSSAPI_ROOT/include"
24075
CPPFLAGS="$CPPFLAGS $GSSAPI_INCS"
24077
if test -z "$GSSAPI_LIB_DIR"; then
24078
if test -f "$GSSAPI_ROOT/bin/krb5-config"; then
24079
gss_ldflags=`$GSSAPI_ROOT/bin/krb5-config --libs gssapi`
24080
LDFLAGS="$LDFLAGS $gss_ldflags"
24082
LDFLAGS="$LDFLAGS -L$GSSAPI_ROOT/lib$libsuff -lgssapi"
24085
LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
24088
echo "$as_me:$LINENO: result: yes" >&5
24089
echo "${ECHO_T}yes" >&6
24091
cat >>confdefs.h <<\_ACEOF
24092
#define HAVE_GSSAPI 1
24096
if test -n "$GSSAPI_INCS"; then
24097
# cut off the preceding -I from the include path
24098
GSSAPI_INCS=`echo $GSSAPI_INCS | sed -e s/^-I//g`
24101
if test -f "$GSSAPI_INCS/gssapi.h"; then
24103
cat >>confdefs.h <<\_ACEOF
24104
#define HAVE_GSSHEIMDAL 1
24109
cat >>confdefs.h <<\_ACEOF
24110
#define HAVE_GSSMIT 1
24116
echo "$as_me:$LINENO: result: no" >&5
24117
echo "${ECHO_T}no" >&6
24121
# Extract the first word of "pkg-config", so it can be a program name with args.
24122
set dummy pkg-config; ac_word=$2
24123
echo "$as_me:$LINENO: checking for $ac_word" >&5
24124
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24125
if test "${ac_cv_path_PKGCONFIG+set}" = set; then
24126
echo $ECHO_N "(cached) $ECHO_C" >&6
24130
ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
24133
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24134
as_dummy="$PATH:/usr/bin:/usr/local/bin"
24135
for as_dir in $as_dummy
24138
test -z "$as_dir" && as_dir=.
24139
for ac_exec_ext in '' $ac_executable_extensions; do
24140
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24141
ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
24142
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24148
test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="no"
24152
PKGCONFIG=$ac_cv_path_PKGCONFIG
24154
if test -n "$PKGCONFIG"; then
24155
echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
24156
echo "${ECHO_T}$PKGCONFIG" >&6
24158
echo "$as_me:$LINENO: result: no" >&5
24159
echo "${ECHO_T}no" >&6
24162
if test "$PKGCONFIG" != "no" ; then
24163
echo "$as_me:$LINENO: checking for OpenSSL options using pkg-config" >&5
24164
echo $ECHO_N "checking for OpenSSL options using pkg-config... $ECHO_C" >&6
24166
$PKGCONFIG --exists openssl
24169
if test "$SSL_EXISTS" -eq "0"; then
24170
SSL_LIBS=`$PKGCONFIG --libs-only-l openssl 2>/dev/null`
24171
SSL_LDFLAGS=`$PKGCONFIG --libs-only-L openssl 2>/dev/null`
24172
SSL_CPPFLAGS=`$PKGCONFIG --cflags-only-I openssl 2>/dev/null`
24174
LIBS="$LIBS $SSL_LIBS"
24175
CPPFLAGS="$CPPFLAGS $SSL_CPPFLAGS"
24176
LDFLAGS="$LDFLAGS $SSL_LDFLAGS"
24178
echo "$as_me:$LINENO: result: yes" >&5
24179
echo "${ECHO_T}yes" >&6
24181
echo "$as_me:$LINENO: result: no" >&5
24182
echo "${ECHO_T}no" >&6
24191
# Check whether --with-ssl or --without-ssl was given.
24192
if test "${with_ssl+set}" = set; then
24193
withval="$with_ssl"
24197
if test X"$OPT_SSL" = Xno
24199
{ echo "$as_me:$LINENO: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more" >&5
24200
echo "$as_me: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more" >&2;}
24204
CLEANLDFLAGS="$LDFLAGS"
24205
CLEANCPPFLAGS="$CPPFLAGS"
24209
EXTRA_SSL=/usr/local/ssl ;;
24214
LDFLAGS="$LDFLAGS -L$EXTRA_SSL/lib$libsuff"
24215
CPPFLAGS="$CPPFLAGS -I$EXTRA_SSL/include/openssl -I$EXTRA_SSL/include"
24219
echo "$as_me:$LINENO: checking for CRYPTO_lock in -lcrypto" >&5
24220
echo $ECHO_N "checking for CRYPTO_lock in -lcrypto... $ECHO_C" >&6
24221
if test "${ac_cv_lib_crypto_CRYPTO_lock+set}" = set; then
24222
echo $ECHO_N "(cached) $ECHO_C" >&6
24224
ac_check_lib_save_LIBS=$LIBS
24225
LIBS="-lcrypto $LIBS"
24226
cat >conftest.$ac_ext <<_ACEOF
24229
cat confdefs.h >>conftest.$ac_ext
24230
cat >>conftest.$ac_ext <<_ACEOF
24231
/* end confdefs.h. */
24233
/* Override any gcc2 internal prototype to avoid an error. */
24237
/* We use char because int might match the return type of a gcc2
24238
builtin and then its argument prototype would still apply. */
24239
char CRYPTO_lock ();
24248
rm -f conftest.$ac_objext conftest$ac_exeext
24249
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24250
(eval $ac_link) 2>conftest.er1
24252
grep -v '^ *+' conftest.er1 >conftest.err
24254
cat conftest.err >&5
24255
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24256
(exit $ac_status); } &&
24257
{ ac_try='test -z "$ac_c_werror_flag"
24258
|| test ! -s conftest.err'
24259
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24260
(eval $ac_try) 2>&5
24262
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24263
(exit $ac_status); }; } &&
24264
{ ac_try='test -s conftest$ac_exeext'
24265
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24266
(eval $ac_try) 2>&5
24268
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24269
(exit $ac_status); }; }; then
24270
ac_cv_lib_crypto_CRYPTO_lock=yes
24272
echo "$as_me: failed program was:" >&5
24273
sed 's/^/| /' conftest.$ac_ext >&5
24275
ac_cv_lib_crypto_CRYPTO_lock=no
24277
rm -f conftest.err conftest.$ac_objext \
24278
conftest$ac_exeext conftest.$ac_ext
24279
LIBS=$ac_check_lib_save_LIBS
24281
echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_lock" >&5
24282
echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_lock" >&6
24283
if test $ac_cv_lib_crypto_CRYPTO_lock = yes; then
24289
OLDLDFLAGS="$LDFLAGS"
24290
OLDCPPFLAGS="$CPPFLAGS"
24291
LDFLAGS="$CLEANLDFLAGS -L$EXTRA_SSL/lib$libsuff"
24292
CPPFLAGS="$CLEANCPPFLAGS -I$EXTRA_SSL/include/openssl -I$EXTRA_SSL/include"
24293
echo "$as_me:$LINENO: checking for CRYPTO_add_lock in -lcrypto" >&5
24294
echo $ECHO_N "checking for CRYPTO_add_lock in -lcrypto... $ECHO_C" >&6
24295
if test "${ac_cv_lib_crypto_CRYPTO_add_lock+set}" = set; then
24296
echo $ECHO_N "(cached) $ECHO_C" >&6
24298
ac_check_lib_save_LIBS=$LIBS
24299
LIBS="-lcrypto $LIBS"
24300
cat >conftest.$ac_ext <<_ACEOF
24303
cat confdefs.h >>conftest.$ac_ext
24304
cat >>conftest.$ac_ext <<_ACEOF
24305
/* end confdefs.h. */
24307
/* Override any gcc2 internal prototype to avoid an error. */
24311
/* We use char because int might match the return type of a gcc2
24312
builtin and then its argument prototype would still apply. */
24313
char CRYPTO_add_lock ();
24317
CRYPTO_add_lock ();
24322
rm -f conftest.$ac_objext conftest$ac_exeext
24323
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24324
(eval $ac_link) 2>conftest.er1
24326
grep -v '^ *+' conftest.er1 >conftest.err
24328
cat conftest.err >&5
24329
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24330
(exit $ac_status); } &&
24331
{ ac_try='test -z "$ac_c_werror_flag"
24332
|| test ! -s conftest.err'
24333
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24334
(eval $ac_try) 2>&5
24336
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24337
(exit $ac_status); }; } &&
24338
{ ac_try='test -s conftest$ac_exeext'
24339
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24340
(eval $ac_try) 2>&5
24342
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24343
(exit $ac_status); }; }; then
24344
ac_cv_lib_crypto_CRYPTO_add_lock=yes
24346
echo "$as_me: failed program was:" >&5
24347
sed 's/^/| /' conftest.$ac_ext >&5
24349
ac_cv_lib_crypto_CRYPTO_add_lock=no
24351
rm -f conftest.err conftest.$ac_objext \
24352
conftest$ac_exeext conftest.$ac_ext
24353
LIBS=$ac_check_lib_save_LIBS
24355
echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_add_lock" >&5
24356
echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_add_lock" >&6
24357
if test $ac_cv_lib_crypto_CRYPTO_add_lock = yes; then
24362
LDFLAGS="$OLDLDFLAGS"
24363
CPPFLAGS="$OLDCPPFLAGS"
24372
if test "$HAVECRYPTO" = "yes"; then
24374
echo "$as_me:$LINENO: checking for gdi32" >&5
24375
echo $ECHO_N "checking for gdi32... $ECHO_C" >&6
24376
my_ac_save_LIBS=$LIBS
24377
LIBS="-lgdi32 $LIBS"
24378
cat >conftest.$ac_ext <<_ACEOF
24381
cat confdefs.h >>conftest.$ac_ext
24382
cat >>conftest.$ac_ext <<_ACEOF
24383
/* end confdefs.h. */
24384
#include <windef.h>
24385
#include <wingdi.h>
24394
rm -f conftest.$ac_objext conftest$ac_exeext
24395
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24396
(eval $ac_link) 2>conftest.er1
24398
grep -v '^ *+' conftest.er1 >conftest.err
24400
cat conftest.err >&5
24401
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24402
(exit $ac_status); } &&
24403
{ ac_try='test -z "$ac_c_werror_flag"
24404
|| test ! -s conftest.err'
24405
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24406
(eval $ac_try) 2>&5
24408
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24409
(exit $ac_status); }; } &&
24410
{ ac_try='test -s conftest$ac_exeext'
24411
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24412
(eval $ac_try) 2>&5
24414
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24415
(exit $ac_status); }; }; then
24416
echo "$as_me:$LINENO: result: yes" >&5
24417
echo "${ECHO_T}yes" >&6
24419
echo "$as_me: failed program was:" >&5
24420
sed 's/^/| /' conftest.$ac_ext >&5
24422
LIBS=$my_ac_save_LIBS
24423
echo "$as_me:$LINENO: result: no" >&5
24424
echo "${ECHO_T}no" >&6
24427
rm -f conftest.err conftest.$ac_objext \
24428
conftest$ac_exeext conftest.$ac_ext
24431
echo "$as_me:$LINENO: checking for CRYPTO_add_lock in -lcrypto" >&5
24432
echo $ECHO_N "checking for CRYPTO_add_lock in -lcrypto... $ECHO_C" >&6
24433
if test "${ac_cv_lib_crypto_CRYPTO_add_lock+set}" = set; then
24434
echo $ECHO_N "(cached) $ECHO_C" >&6
24436
ac_check_lib_save_LIBS=$LIBS
24437
LIBS="-lcrypto $LIBS"
24438
cat >conftest.$ac_ext <<_ACEOF
24441
cat confdefs.h >>conftest.$ac_ext
24442
cat >>conftest.$ac_ext <<_ACEOF
24443
/* end confdefs.h. */
24445
/* Override any gcc2 internal prototype to avoid an error. */
24449
/* We use char because int might match the return type of a gcc2
24450
builtin and then its argument prototype would still apply. */
24451
char CRYPTO_add_lock ();
24455
CRYPTO_add_lock ();
24460
rm -f conftest.$ac_objext conftest$ac_exeext
24461
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24462
(eval $ac_link) 2>conftest.er1
24464
grep -v '^ *+' conftest.er1 >conftest.err
24466
cat conftest.err >&5
24467
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24468
(exit $ac_status); } &&
24469
{ ac_try='test -z "$ac_c_werror_flag"
24470
|| test ! -s conftest.err'
24471
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24472
(eval $ac_try) 2>&5
24474
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24475
(exit $ac_status); }; } &&
24476
{ ac_try='test -s conftest$ac_exeext'
24477
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24478
(eval $ac_try) 2>&5
24480
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24481
(exit $ac_status); }; }; then
24482
ac_cv_lib_crypto_CRYPTO_add_lock=yes
24484
echo "$as_me: failed program was:" >&5
24485
sed 's/^/| /' conftest.$ac_ext >&5
24487
ac_cv_lib_crypto_CRYPTO_add_lock=no
24489
rm -f conftest.err conftest.$ac_objext \
24490
conftest$ac_exeext conftest.$ac_ext
24491
LIBS=$ac_check_lib_save_LIBS
24493
echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_add_lock" >&5
24494
echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_add_lock" >&6
24495
if test $ac_cv_lib_crypto_CRYPTO_add_lock = yes; then
24496
cat >>confdefs.h <<_ACEOF
24497
#define HAVE_LIBCRYPTO 1
24500
LIBS="-lcrypto $LIBS"
24505
echo "$as_me:$LINENO: checking for SSL_connect in -lssl" >&5
24506
echo $ECHO_N "checking for SSL_connect in -lssl... $ECHO_C" >&6
24507
if test "${ac_cv_lib_ssl_SSL_connect+set}" = set; then
24508
echo $ECHO_N "(cached) $ECHO_C" >&6
24510
ac_check_lib_save_LIBS=$LIBS
24512
cat >conftest.$ac_ext <<_ACEOF
24515
cat confdefs.h >>conftest.$ac_ext
24516
cat >>conftest.$ac_ext <<_ACEOF
24517
/* end confdefs.h. */
24519
/* Override any gcc2 internal prototype to avoid an error. */
24523
/* We use char because int might match the return type of a gcc2
24524
builtin and then its argument prototype would still apply. */
24525
char SSL_connect ();
24534
rm -f conftest.$ac_objext conftest$ac_exeext
24535
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24536
(eval $ac_link) 2>conftest.er1
24538
grep -v '^ *+' conftest.er1 >conftest.err
24540
cat conftest.err >&5
24541
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24542
(exit $ac_status); } &&
24543
{ ac_try='test -z "$ac_c_werror_flag"
24544
|| test ! -s conftest.err'
24545
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24546
(eval $ac_try) 2>&5
24548
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24549
(exit $ac_status); }; } &&
24550
{ ac_try='test -s conftest$ac_exeext'
24551
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24552
(eval $ac_try) 2>&5
24554
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24555
(exit $ac_status); }; }; then
24556
ac_cv_lib_ssl_SSL_connect=yes
24558
echo "$as_me: failed program was:" >&5
24559
sed 's/^/| /' conftest.$ac_ext >&5
24561
ac_cv_lib_ssl_SSL_connect=no
24563
rm -f conftest.err conftest.$ac_objext \
24564
conftest$ac_exeext conftest.$ac_ext
24565
LIBS=$ac_check_lib_save_LIBS
24567
echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_connect" >&5
24568
echo "${ECHO_T}$ac_cv_lib_ssl_SSL_connect" >&6
24569
if test $ac_cv_lib_ssl_SSL_connect = yes; then
24570
cat >>confdefs.h <<_ACEOF
24571
#define HAVE_LIBSSL 1
24579
if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
24580
echo "$as_me:$LINENO: checking for ssl with RSAglue/rsaref libs in use" >&5
24581
echo $ECHO_N "checking for ssl with RSAglue/rsaref libs in use... $ECHO_C" >&6;
24583
LIBS="$LIBS -lRSAglue -lrsaref"
24585
echo "$as_me:$LINENO: checking for SSL_connect in -lssl" >&5
24586
echo $ECHO_N "checking for SSL_connect in -lssl... $ECHO_C" >&6
24587
if test "${ac_cv_lib_ssl_SSL_connect+set}" = set; then
24588
echo $ECHO_N "(cached) $ECHO_C" >&6
24590
ac_check_lib_save_LIBS=$LIBS
24592
cat >conftest.$ac_ext <<_ACEOF
24595
cat confdefs.h >>conftest.$ac_ext
24596
cat >>conftest.$ac_ext <<_ACEOF
24597
/* end confdefs.h. */
24599
/* Override any gcc2 internal prototype to avoid an error. */
24603
/* We use char because int might match the return type of a gcc2
24604
builtin and then its argument prototype would still apply. */
24605
char SSL_connect ();
24614
rm -f conftest.$ac_objext conftest$ac_exeext
24615
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24616
(eval $ac_link) 2>conftest.er1
24618
grep -v '^ *+' conftest.er1 >conftest.err
24620
cat conftest.err >&5
24621
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24622
(exit $ac_status); } &&
24623
{ ac_try='test -z "$ac_c_werror_flag"
24624
|| test ! -s conftest.err'
24625
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24626
(eval $ac_try) 2>&5
24628
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24629
(exit $ac_status); }; } &&
24630
{ ac_try='test -s conftest$ac_exeext'
24631
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24632
(eval $ac_try) 2>&5
24634
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24635
(exit $ac_status); }; }; then
24636
ac_cv_lib_ssl_SSL_connect=yes
24638
echo "$as_me: failed program was:" >&5
24639
sed 's/^/| /' conftest.$ac_ext >&5
24641
ac_cv_lib_ssl_SSL_connect=no
24643
rm -f conftest.err conftest.$ac_objext \
24644
conftest$ac_exeext conftest.$ac_ext
24645
LIBS=$ac_check_lib_save_LIBS
24647
echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_connect" >&5
24648
echo "${ECHO_T}$ac_cv_lib_ssl_SSL_connect" >&6
24649
if test $ac_cv_lib_ssl_SSL_connect = yes; then
24650
cat >>confdefs.h <<_ACEOF
24651
#define HAVE_LIBSSL 1
24658
if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
24659
echo "$as_me:$LINENO: result: no" >&5
24660
echo "${ECHO_T}no" >&6
24663
echo "$as_me:$LINENO: result: yes" >&5
24664
echo "${ECHO_T}yes" >&6
24675
for ac_header in openssl/x509.h openssl/rsa.h openssl/crypto.h \
24676
openssl/pem.h openssl/ssl.h openssl/err.h
24678
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24679
if eval "test \"\${$as_ac_Header+set}\" = set"; then
24680
echo "$as_me:$LINENO: checking for $ac_header" >&5
24681
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24682
if eval "test \"\${$as_ac_Header+set}\" = set"; then
24683
echo $ECHO_N "(cached) $ECHO_C" >&6
24685
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24686
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24688
# Is the header compilable?
24689
echo "$as_me:$LINENO: checking $ac_header usability" >&5
24690
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24691
cat >conftest.$ac_ext <<_ACEOF
24694
cat confdefs.h >>conftest.$ac_ext
24695
cat >>conftest.$ac_ext <<_ACEOF
24696
/* end confdefs.h. */
24697
$ac_includes_default
24698
#include <$ac_header>
24700
rm -f conftest.$ac_objext
24701
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24702
(eval $ac_compile) 2>conftest.er1
24704
grep -v '^ *+' conftest.er1 >conftest.err
24706
cat conftest.err >&5
24707
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24708
(exit $ac_status); } &&
24709
{ ac_try='test -z "$ac_c_werror_flag"
24710
|| test ! -s conftest.err'
24711
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24712
(eval $ac_try) 2>&5
24714
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24715
(exit $ac_status); }; } &&
24716
{ ac_try='test -s conftest.$ac_objext'
24717
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24718
(eval $ac_try) 2>&5
24720
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24721
(exit $ac_status); }; }; then
24722
ac_header_compiler=yes
24724
echo "$as_me: failed program was:" >&5
24725
sed 's/^/| /' conftest.$ac_ext >&5
24727
ac_header_compiler=no
24729
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24730
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24731
echo "${ECHO_T}$ac_header_compiler" >&6
24733
# Is the header present?
24734
echo "$as_me:$LINENO: checking $ac_header presence" >&5
24735
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24736
cat >conftest.$ac_ext <<_ACEOF
24739
cat confdefs.h >>conftest.$ac_ext
24740
cat >>conftest.$ac_ext <<_ACEOF
24741
/* end confdefs.h. */
24742
#include <$ac_header>
24744
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24745
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24747
grep -v '^ *+' conftest.er1 >conftest.err
24749
cat conftest.err >&5
24750
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24751
(exit $ac_status); } >/dev/null; then
24752
if test -s conftest.err; then
24753
ac_cpp_err=$ac_c_preproc_warn_flag
24754
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24761
if test -z "$ac_cpp_err"; then
24762
ac_header_preproc=yes
24764
echo "$as_me: failed program was:" >&5
24765
sed 's/^/| /' conftest.$ac_ext >&5
24767
ac_header_preproc=no
24769
rm -f conftest.err conftest.$ac_ext
24770
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24771
echo "${ECHO_T}$ac_header_preproc" >&6
24773
# So? What about this header?
24774
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24776
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24777
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24778
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24779
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24780
ac_header_preproc=yes
24783
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24784
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24785
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24786
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24787
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24788
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24789
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24790
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24791
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24792
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24793
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24794
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24797
## ------------------------------- ##
24798
## Report this to curl-bug@haxx.se ##
24799
## ------------------------------- ##
24802
sed "s/^/$as_me: WARNING: /" >&2
24805
echo "$as_me:$LINENO: checking for $ac_header" >&5
24806
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24807
if eval "test \"\${$as_ac_Header+set}\" = set"; then
24808
echo $ECHO_N "(cached) $ECHO_C" >&6
24810
eval "$as_ac_Header=\$ac_header_preproc"
24812
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24813
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24816
if test `eval echo '${'$as_ac_Header'}'` = yes; then
24817
cat >>confdefs.h <<_ACEOF
24818
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24826
if test $ac_cv_header_openssl_x509_h = no; then
24833
for ac_header in x509.h rsa.h crypto.h pem.h ssl.h err.h
24835
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24836
if eval "test \"\${$as_ac_Header+set}\" = set"; then
24837
echo "$as_me:$LINENO: checking for $ac_header" >&5
24838
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24839
if eval "test \"\${$as_ac_Header+set}\" = set"; then
24840
echo $ECHO_N "(cached) $ECHO_C" >&6
24842
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24843
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24845
# Is the header compilable?
24846
echo "$as_me:$LINENO: checking $ac_header usability" >&5
24847
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24848
cat >conftest.$ac_ext <<_ACEOF
24851
cat confdefs.h >>conftest.$ac_ext
24852
cat >>conftest.$ac_ext <<_ACEOF
24853
/* end confdefs.h. */
24854
$ac_includes_default
24855
#include <$ac_header>
24857
rm -f conftest.$ac_objext
24858
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24859
(eval $ac_compile) 2>conftest.er1
24861
grep -v '^ *+' conftest.er1 >conftest.err
24863
cat conftest.err >&5
24864
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24865
(exit $ac_status); } &&
24866
{ ac_try='test -z "$ac_c_werror_flag"
24867
|| test ! -s conftest.err'
24868
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24869
(eval $ac_try) 2>&5
24871
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24872
(exit $ac_status); }; } &&
24873
{ ac_try='test -s conftest.$ac_objext'
24874
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24875
(eval $ac_try) 2>&5
24877
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24878
(exit $ac_status); }; }; then
24879
ac_header_compiler=yes
24881
echo "$as_me: failed program was:" >&5
24882
sed 's/^/| /' conftest.$ac_ext >&5
24884
ac_header_compiler=no
24886
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24887
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24888
echo "${ECHO_T}$ac_header_compiler" >&6
24890
# Is the header present?
24891
echo "$as_me:$LINENO: checking $ac_header presence" >&5
24892
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24893
cat >conftest.$ac_ext <<_ACEOF
24896
cat confdefs.h >>conftest.$ac_ext
24897
cat >>conftest.$ac_ext <<_ACEOF
24898
/* end confdefs.h. */
24899
#include <$ac_header>
24901
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24902
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24904
grep -v '^ *+' conftest.er1 >conftest.err
24906
cat conftest.err >&5
24907
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24908
(exit $ac_status); } >/dev/null; then
24909
if test -s conftest.err; then
24910
ac_cpp_err=$ac_c_preproc_warn_flag
24911
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24918
if test -z "$ac_cpp_err"; then
24919
ac_header_preproc=yes
24921
echo "$as_me: failed program was:" >&5
24922
sed 's/^/| /' conftest.$ac_ext >&5
24924
ac_header_preproc=no
24926
rm -f conftest.err conftest.$ac_ext
24927
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24928
echo "${ECHO_T}$ac_header_preproc" >&6
24930
# So? What about this header?
24931
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24933
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24934
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24935
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24936
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24937
ac_header_preproc=yes
24940
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24941
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24942
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24943
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24944
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24945
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24946
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24947
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24948
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24949
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24950
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24951
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24954
## ------------------------------- ##
24955
## Report this to curl-bug@haxx.se ##
24956
## ------------------------------- ##
24959
sed "s/^/$as_me: WARNING: /" >&2
24962
echo "$as_me:$LINENO: checking for $ac_header" >&5
24963
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24964
if eval "test \"\${$as_ac_Header+set}\" = set"; then
24965
echo $ECHO_N "(cached) $ECHO_C" >&6
24967
eval "$as_ac_Header=\$ac_header_preproc"
24969
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24970
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24973
if test `eval echo '${'$as_ac_Header'}'` = yes; then
24974
cat >>confdefs.h <<_ACEOF
24975
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24984
echo "$as_me:$LINENO: checking for ENGINE_init" >&5
24985
echo $ECHO_N "checking for ENGINE_init... $ECHO_C" >&6
24986
if test "${ac_cv_func_ENGINE_init+set}" = set; then
24987
echo $ECHO_N "(cached) $ECHO_C" >&6
24989
cat >conftest.$ac_ext <<_ACEOF
24992
cat confdefs.h >>conftest.$ac_ext
24993
cat >>conftest.$ac_ext <<_ACEOF
24994
/* end confdefs.h. */
24995
/* Define ENGINE_init to an innocuous variant, in case <limits.h> declares ENGINE_init.
24996
For example, HP-UX 11i <limits.h> declares gettimeofday. */
24997
#define ENGINE_init innocuous_ENGINE_init
24999
/* System header to define __stub macros and hopefully few prototypes,
25000
which can conflict with char ENGINE_init (); below.
25001
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25002
<limits.h> exists even on freestanding compilers. */
25005
# include <limits.h>
25007
# include <assert.h>
25012
/* Override any gcc2 internal prototype to avoid an error. */
25017
/* We use char because int might match the return type of a gcc2
25018
builtin and then its argument prototype would still apply. */
25019
char ENGINE_init ();
25020
/* The GNU C library defines this for functions which it implements
25021
to always fail with ENOSYS. Some functions are actually named
25022
something starting with __ and the normal name is an alias. */
25023
#if defined (__stub_ENGINE_init) || defined (__stub___ENGINE_init)
25026
char (*f) () = ENGINE_init;
25035
return f != ENGINE_init;
25040
rm -f conftest.$ac_objext conftest$ac_exeext
25041
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25042
(eval $ac_link) 2>conftest.er1
25044
grep -v '^ *+' conftest.er1 >conftest.err
25046
cat conftest.err >&5
25047
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25048
(exit $ac_status); } &&
25049
{ ac_try='test -z "$ac_c_werror_flag"
25050
|| test ! -s conftest.err'
25051
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25052
(eval $ac_try) 2>&5
25054
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25055
(exit $ac_status); }; } &&
25056
{ ac_try='test -s conftest$ac_exeext'
25057
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25058
(eval $ac_try) 2>&5
25060
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25061
(exit $ac_status); }; }; then
25062
ac_cv_func_ENGINE_init=yes
25064
echo "$as_me: failed program was:" >&5
25065
sed 's/^/| /' conftest.$ac_ext >&5
25067
ac_cv_func_ENGINE_init=no
25069
rm -f conftest.err conftest.$ac_objext \
25070
conftest$ac_exeext conftest.$ac_ext
25072
echo "$as_me:$LINENO: result: $ac_cv_func_ENGINE_init" >&5
25073
echo "${ECHO_T}$ac_cv_func_ENGINE_init" >&6
25074
if test $ac_cv_func_ENGINE_init = yes; then
25076
for ac_header in openssl/engine.h
25078
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25079
if eval "test \"\${$as_ac_Header+set}\" = set"; then
25080
echo "$as_me:$LINENO: checking for $ac_header" >&5
25081
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25082
if eval "test \"\${$as_ac_Header+set}\" = set"; then
25083
echo $ECHO_N "(cached) $ECHO_C" >&6
25085
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25086
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25088
# Is the header compilable?
25089
echo "$as_me:$LINENO: checking $ac_header usability" >&5
25090
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25091
cat >conftest.$ac_ext <<_ACEOF
25094
cat confdefs.h >>conftest.$ac_ext
25095
cat >>conftest.$ac_ext <<_ACEOF
25096
/* end confdefs.h. */
25097
$ac_includes_default
25098
#include <$ac_header>
25100
rm -f conftest.$ac_objext
25101
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25102
(eval $ac_compile) 2>conftest.er1
25104
grep -v '^ *+' conftest.er1 >conftest.err
25106
cat conftest.err >&5
25107
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25108
(exit $ac_status); } &&
25109
{ ac_try='test -z "$ac_c_werror_flag"
25110
|| test ! -s conftest.err'
25111
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25112
(eval $ac_try) 2>&5
25114
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25115
(exit $ac_status); }; } &&
25116
{ ac_try='test -s conftest.$ac_objext'
25117
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25118
(eval $ac_try) 2>&5
25120
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25121
(exit $ac_status); }; }; then
25122
ac_header_compiler=yes
25124
echo "$as_me: failed program was:" >&5
25125
sed 's/^/| /' conftest.$ac_ext >&5
25127
ac_header_compiler=no
25129
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25130
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25131
echo "${ECHO_T}$ac_header_compiler" >&6
25133
# Is the header present?
25134
echo "$as_me:$LINENO: checking $ac_header presence" >&5
25135
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25136
cat >conftest.$ac_ext <<_ACEOF
25139
cat confdefs.h >>conftest.$ac_ext
25140
cat >>conftest.$ac_ext <<_ACEOF
25141
/* end confdefs.h. */
25142
#include <$ac_header>
25144
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25145
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25147
grep -v '^ *+' conftest.er1 >conftest.err
25149
cat conftest.err >&5
25150
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25151
(exit $ac_status); } >/dev/null; then
25152
if test -s conftest.err; then
25153
ac_cpp_err=$ac_c_preproc_warn_flag
25154
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25161
if test -z "$ac_cpp_err"; then
25162
ac_header_preproc=yes
25164
echo "$as_me: failed program was:" >&5
25165
sed 's/^/| /' conftest.$ac_ext >&5
25167
ac_header_preproc=no
25169
rm -f conftest.err conftest.$ac_ext
25170
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25171
echo "${ECHO_T}$ac_header_preproc" >&6
25173
# So? What about this header?
25174
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25176
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25177
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25178
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25179
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25180
ac_header_preproc=yes
25183
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25184
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25185
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25186
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25187
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25188
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25189
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25190
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25191
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25192
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25193
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25194
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25197
## ------------------------------- ##
25198
## Report this to curl-bug@haxx.se ##
25199
## ------------------------------- ##
25202
sed "s/^/$as_me: WARNING: /" >&2
25205
echo "$as_me:$LINENO: checking for $ac_header" >&5
25206
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25207
if eval "test \"\${$as_ac_Header+set}\" = set"; then
25208
echo $ECHO_N "(cached) $ECHO_C" >&6
25210
eval "$as_ac_Header=\$ac_header_preproc"
25212
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25213
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25216
if test `eval echo '${'$as_ac_Header'}'` = yes; then
25217
cat >>confdefs.h <<_ACEOF
25218
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25230
echo "$as_me:$LINENO: checking CA cert bundle install path" >&5
25231
echo $ECHO_N "checking CA cert bundle install path... $ECHO_C" >&6
25234
# Check whether --with-ca-bundle or --without-ca-bundle was given.
25235
if test "${with_ca_bundle+set}" = set; then
25236
withval="$with_ca_bundle"
25240
if test "x$prefix" != xNONE; then
25241
ca="\${prefix}/share/curl/curl-ca-bundle.crt"
25243
ca="$ac_default_prefix/share/curl/curl-ca-bundle.crt"
25248
if test X"$OPT_SSL" = Xno; then
25252
if test "x$ca" != "xno"; then
25253
CURL_CA_BUNDLE='"'$ca'"'
25256
echo "$as_me:$LINENO: result: $ca" >&5
25257
echo "${ECHO_T}$ca" >&6
25264
for ac_func in RAND_status \
25267
CRYPTO_cleanup_all_ex_data
25269
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25270
echo "$as_me:$LINENO: checking for $ac_func" >&5
25271
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25272
if eval "test \"\${$as_ac_var+set}\" = set"; then
25273
echo $ECHO_N "(cached) $ECHO_C" >&6
25275
cat >conftest.$ac_ext <<_ACEOF
25278
cat confdefs.h >>conftest.$ac_ext
25279
cat >>conftest.$ac_ext <<_ACEOF
25280
/* end confdefs.h. */
25281
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25282
For example, HP-UX 11i <limits.h> declares gettimeofday. */
25283
#define $ac_func innocuous_$ac_func
25285
/* System header to define __stub macros and hopefully few prototypes,
25286
which can conflict with char $ac_func (); below.
25287
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25288
<limits.h> exists even on freestanding compilers. */
25291
# include <limits.h>
25293
# include <assert.h>
25298
/* Override any gcc2 internal prototype to avoid an error. */
25303
/* We use char because int might match the return type of a gcc2
25304
builtin and then its argument prototype would still apply. */
25306
/* The GNU C library defines this for functions which it implements
25307
to always fail with ENOSYS. Some functions are actually named
25308
something starting with __ and the normal name is an alias. */
25309
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25312
char (*f) () = $ac_func;
25321
return f != $ac_func;
25326
rm -f conftest.$ac_objext conftest$ac_exeext
25327
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25328
(eval $ac_link) 2>conftest.er1
25330
grep -v '^ *+' conftest.er1 >conftest.err
25332
cat conftest.err >&5
25333
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25334
(exit $ac_status); } &&
25335
{ ac_try='test -z "$ac_c_werror_flag"
25336
|| test ! -s conftest.err'
25337
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25338
(eval $ac_try) 2>&5
25340
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25341
(exit $ac_status); }; } &&
25342
{ ac_try='test -s conftest$ac_exeext'
25343
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25344
(eval $ac_try) 2>&5
25346
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25347
(exit $ac_status); }; }; then
25348
eval "$as_ac_var=yes"
25350
echo "$as_me: failed program was:" >&5
25351
sed 's/^/| /' conftest.$ac_ext >&5
25353
eval "$as_ac_var=no"
25355
rm -f conftest.err conftest.$ac_objext \
25356
conftest$ac_exeext conftest.$ac_ext
25358
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25359
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25360
if test `eval echo '${'$as_ac_var'}'` = yes; then
25361
cat >>confdefs.h <<_ACEOF
25362
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25371
if test X"$OPT_SSL" != Xoff &&
25372
test "$OPENSSL_ENABLED" != "1"; then
25373
{ { echo "$as_me:$LINENO: error: OpenSSL libs and/or directories were not found where specified!" >&5
25374
echo "$as_me: error: OpenSSL libs and/or directories were not found where specified!" >&2;}
25375
{ (exit 1); exit 1; }; }
25382
if test x$ca != xno; then
25393
_cppflags=$CPPFLAGS
25395
OPT_ZLIB="/usr/local"
25397
# Check whether --with-zlib or --without-zlib was given.
25398
if test "${with_zlib+set}" = set; then
25399
withval="$with_zlib"
25400
OPT_ZLIB="$withval"
25403
case "$OPT_ZLIB" in
25405
{ echo "$as_me:$LINENO: WARNING: zlib disabled" >&5
25406
echo "$as_me: WARNING: zlib disabled" >&2;} ;;
25409
echo "$as_me:$LINENO: checking for inflateEnd in -lz" >&5
25410
echo $ECHO_N "checking for inflateEnd in -lz... $ECHO_C" >&6
25411
if test "${ac_cv_lib_z_inflateEnd+set}" = set; then
25412
echo $ECHO_N "(cached) $ECHO_C" >&6
25414
ac_check_lib_save_LIBS=$LIBS
25416
cat >conftest.$ac_ext <<_ACEOF
25419
cat confdefs.h >>conftest.$ac_ext
25420
cat >>conftest.$ac_ext <<_ACEOF
25421
/* end confdefs.h. */
25423
/* Override any gcc2 internal prototype to avoid an error. */
25427
/* We use char because int might match the return type of a gcc2
25428
builtin and then its argument prototype would still apply. */
25429
char inflateEnd ();
25438
rm -f conftest.$ac_objext conftest$ac_exeext
25439
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25440
(eval $ac_link) 2>conftest.er1
25442
grep -v '^ *+' conftest.er1 >conftest.err
25444
cat conftest.err >&5
25445
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25446
(exit $ac_status); } &&
25447
{ ac_try='test -z "$ac_c_werror_flag"
25448
|| test ! -s conftest.err'
25449
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25450
(eval $ac_try) 2>&5
25452
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25453
(exit $ac_status); }; } &&
25454
{ ac_try='test -s conftest$ac_exeext'
25455
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25456
(eval $ac_try) 2>&5
25458
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25459
(exit $ac_status); }; }; then
25460
ac_cv_lib_z_inflateEnd=yes
25462
echo "$as_me: failed program was:" >&5
25463
sed 's/^/| /' conftest.$ac_ext >&5
25465
ac_cv_lib_z_inflateEnd=no
25467
rm -f conftest.err conftest.$ac_objext \
25468
conftest$ac_exeext conftest.$ac_ext
25469
LIBS=$ac_check_lib_save_LIBS
25471
echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateEnd" >&5
25472
echo "${ECHO_T}$ac_cv_lib_z_inflateEnd" >&6
25473
if test $ac_cv_lib_z_inflateEnd = yes; then
25476
if test -d "$OPT_ZLIB"; then
25477
CPPFLAGS="$CPPFLAGS -I$OPT_ZLIB/include"
25478
LDFLAGS="$LDFLAGS -L$OPT_ZLIB/lib$libsuff"
25483
if test "${ac_cv_header_zlib_h+set}" = set; then
25484
echo "$as_me:$LINENO: checking for zlib.h" >&5
25485
echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
25486
if test "${ac_cv_header_zlib_h+set}" = set; then
25487
echo $ECHO_N "(cached) $ECHO_C" >&6
25489
echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25490
echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
25492
# Is the header compilable?
25493
echo "$as_me:$LINENO: checking zlib.h usability" >&5
25494
echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
25495
cat >conftest.$ac_ext <<_ACEOF
25498
cat confdefs.h >>conftest.$ac_ext
25499
cat >>conftest.$ac_ext <<_ACEOF
25500
/* end confdefs.h. */
25501
$ac_includes_default
25504
rm -f conftest.$ac_objext
25505
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25506
(eval $ac_compile) 2>conftest.er1
25508
grep -v '^ *+' conftest.er1 >conftest.err
25510
cat conftest.err >&5
25511
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25512
(exit $ac_status); } &&
25513
{ ac_try='test -z "$ac_c_werror_flag"
25514
|| test ! -s conftest.err'
25515
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25516
(eval $ac_try) 2>&5
25518
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25519
(exit $ac_status); }; } &&
25520
{ ac_try='test -s conftest.$ac_objext'
25521
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25522
(eval $ac_try) 2>&5
25524
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25525
(exit $ac_status); }; }; then
25526
ac_header_compiler=yes
25528
echo "$as_me: failed program was:" >&5
25529
sed 's/^/| /' conftest.$ac_ext >&5
25531
ac_header_compiler=no
25533
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25534
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25535
echo "${ECHO_T}$ac_header_compiler" >&6
25537
# Is the header present?
25538
echo "$as_me:$LINENO: checking zlib.h presence" >&5
25539
echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
25540
cat >conftest.$ac_ext <<_ACEOF
25543
cat confdefs.h >>conftest.$ac_ext
25544
cat >>conftest.$ac_ext <<_ACEOF
25545
/* end confdefs.h. */
25548
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25549
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25551
grep -v '^ *+' conftest.er1 >conftest.err
25553
cat conftest.err >&5
25554
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25555
(exit $ac_status); } >/dev/null; then
25556
if test -s conftest.err; then
25557
ac_cpp_err=$ac_c_preproc_warn_flag
25558
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25565
if test -z "$ac_cpp_err"; then
25566
ac_header_preproc=yes
25568
echo "$as_me: failed program was:" >&5
25569
sed 's/^/| /' conftest.$ac_ext >&5
25571
ac_header_preproc=no
25573
rm -f conftest.err conftest.$ac_ext
25574
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25575
echo "${ECHO_T}$ac_header_preproc" >&6
25577
# So? What about this header?
25578
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25580
{ echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
25581
echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25582
{ echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
25583
echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
25584
ac_header_preproc=yes
25587
{ echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
25588
echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
25589
{ echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
25590
echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
25591
{ echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
25592
echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
25593
{ echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
25594
echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
25595
{ echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
25596
echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
25597
{ echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
25598
echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
25601
## ------------------------------- ##
25602
## Report this to curl-bug@haxx.se ##
25603
## ------------------------------- ##
25606
sed "s/^/$as_me: WARNING: /" >&2
25609
echo "$as_me:$LINENO: checking for zlib.h" >&5
25610
echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
25611
if test "${ac_cv_header_zlib_h+set}" = set; then
25612
echo $ECHO_N "(cached) $ECHO_C" >&6
25614
ac_cv_header_zlib_h=$ac_header_preproc
25616
echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25617
echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
25620
if test $ac_cv_header_zlib_h = yes; then
25623
if test "$HAVE_LIBZ" != "1"; then
25624
echo "$as_me:$LINENO: checking for gzread in -lz" >&5
25625
echo $ECHO_N "checking for gzread in -lz... $ECHO_C" >&6
25626
if test "${ac_cv_lib_z_gzread+set}" = set; then
25627
echo $ECHO_N "(cached) $ECHO_C" >&6
25629
ac_check_lib_save_LIBS=$LIBS
25631
cat >conftest.$ac_ext <<_ACEOF
25634
cat confdefs.h >>conftest.$ac_ext
25635
cat >>conftest.$ac_ext <<_ACEOF
25636
/* end confdefs.h. */
25638
/* Override any gcc2 internal prototype to avoid an error. */
25642
/* We use char because int might match the return type of a gcc2
25643
builtin and then its argument prototype would still apply. */
25653
rm -f conftest.$ac_objext conftest$ac_exeext
25654
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25655
(eval $ac_link) 2>conftest.er1
25657
grep -v '^ *+' conftest.er1 >conftest.err
25659
cat conftest.err >&5
25660
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25661
(exit $ac_status); } &&
25662
{ ac_try='test -z "$ac_c_werror_flag"
25663
|| test ! -s conftest.err'
25664
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25665
(eval $ac_try) 2>&5
25667
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25668
(exit $ac_status); }; } &&
25669
{ ac_try='test -s conftest$ac_exeext'
25670
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25671
(eval $ac_try) 2>&5
25673
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25674
(exit $ac_status); }; }; then
25675
ac_cv_lib_z_gzread=yes
25677
echo "$as_me: failed program was:" >&5
25678
sed 's/^/| /' conftest.$ac_ext >&5
25680
ac_cv_lib_z_gzread=no
25682
rm -f conftest.err conftest.$ac_objext \
25683
conftest$ac_exeext conftest.$ac_ext
25684
LIBS=$ac_check_lib_save_LIBS
25686
echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzread" >&5
25687
echo "${ECHO_T}$ac_cv_lib_z_gzread" >&6
25688
if test $ac_cv_lib_z_gzread = yes; then
25693
CPPFLAGS=$_cppflags
25701
CPPFLAGS=$_cppflags
25708
if test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" != "1"
25710
{ echo "$as_me:$LINENO: WARNING: configure found only the libz lib, not the header file!" >&5
25711
echo "$as_me: WARNING: configure found only the libz lib, not the header file!" >&2;}
25712
elif test "$HAVE_LIBZ" != "1" && test "$HAVE_ZLIB_H" = "1"
25714
{ echo "$as_me:$LINENO: WARNING: configure found only the libz header file, not the lib!" >&5
25715
echo "$as_me: WARNING: configure found only the libz header file, not the lib!" >&2;}
25716
elif test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" = "1"
25720
cat >>confdefs.h <<\_ACEOF
25721
#define HAVE_ZLIB_H 1
25725
cat >>confdefs.h <<\_ACEOF
25726
#define HAVE_LIBZ 1
25733
{ echo "$as_me:$LINENO: found both libz and libz.h header" >&5
25734
echo "$as_me: found both libz and libz.h header" >&6;}
25741
if test x"$AMFIXLIB" = x1; then
25743
HAVE_LIBZ_FALSE='#'
25752
echo "$as_me:$LINENO: checking AIX 4.3 or later" >&5
25753
echo $ECHO_N "checking AIX 4.3 or later... $ECHO_C" >&6
25754
cat >conftest.$ac_ext <<_ACEOF
25756
#if defined(_AIX) && defined(_AIX43)
25757
printf("just fine");
25759
#error "this is not AIX 4.3 or later"
25763
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25764
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25766
grep -v '^ *+' conftest.er1 >conftest.err
25768
cat conftest.err >&5
25769
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25770
(exit $ac_status); } >/dev/null; then
25771
if test -s conftest.err; then
25772
ac_cpp_err=$ac_c_preproc_warn_flag
25773
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25780
if test -z "$ac_cpp_err"; then
25781
echo "$as_me:$LINENO: result: yes" >&5
25782
echo "${ECHO_T}yes" >&6
25786
echo "$as_me: failed program was:" >&5
25787
sed 's/^/| /' conftest.$ac_ext >&5
25789
echo "$as_me:$LINENO: result: no" >&5
25790
echo "${ECHO_T}no" >&6
25793
rm -f conftest.err conftest.$ac_ext
25795
# Check whether --enable-thread or --disable-thread was given.
25796
if test "${enable_thread+set}" = set; then
25797
enableval="$enable_thread"
25798
case "$enableval" in
25801
{ echo "$as_me:$LINENO: WARNING: libcurl will not get built using thread-safe functions" >&5
25802
echo "$as_me: WARNING: libcurl will not get built using thread-safe functions" >&2;}
25811
if test X"$OPT_THREAD" = Xoff
25814
cat >>confdefs.h <<\_ACEOF
25815
#define DISABLED_THREADSAFE 1
25819
if test "$ipv6" != "yes"; then
25822
for ac_func in gethostbyname_r
25824
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25825
echo "$as_me:$LINENO: checking for $ac_func" >&5
25826
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25827
if eval "test \"\${$as_ac_var+set}\" = set"; then
25828
echo $ECHO_N "(cached) $ECHO_C" >&6
25830
cat >conftest.$ac_ext <<_ACEOF
25833
cat confdefs.h >>conftest.$ac_ext
25834
cat >>conftest.$ac_ext <<_ACEOF
25835
/* end confdefs.h. */
25836
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25837
For example, HP-UX 11i <limits.h> declares gettimeofday. */
25838
#define $ac_func innocuous_$ac_func
25840
/* System header to define __stub macros and hopefully few prototypes,
25841
which can conflict with char $ac_func (); below.
25842
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25843
<limits.h> exists even on freestanding compilers. */
25846
# include <limits.h>
25848
# include <assert.h>
25853
/* Override any gcc2 internal prototype to avoid an error. */
25858
/* We use char because int might match the return type of a gcc2
25859
builtin and then its argument prototype would still apply. */
25861
/* The GNU C library defines this for functions which it implements
25862
to always fail with ENOSYS. Some functions are actually named
25863
something starting with __ and the normal name is an alias. */
25864
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25867
char (*f) () = $ac_func;
25876
return f != $ac_func;
25881
rm -f conftest.$ac_objext conftest$ac_exeext
25882
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25883
(eval $ac_link) 2>conftest.er1
25885
grep -v '^ *+' conftest.er1 >conftest.err
25887
cat conftest.err >&5
25888
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25889
(exit $ac_status); } &&
25890
{ ac_try='test -z "$ac_c_werror_flag"
25891
|| test ! -s conftest.err'
25892
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25893
(eval $ac_try) 2>&5
25895
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25896
(exit $ac_status); }; } &&
25897
{ ac_try='test -s conftest$ac_exeext'
25898
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25899
(eval $ac_try) 2>&5
25901
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25902
(exit $ac_status); }; }; then
25903
eval "$as_ac_var=yes"
25905
echo "$as_me: failed program was:" >&5
25906
sed 's/^/| /' conftest.$ac_ext >&5
25908
eval "$as_ac_var=no"
25910
rm -f conftest.err conftest.$ac_objext \
25911
conftest$ac_exeext conftest.$ac_ext
25913
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25914
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25915
if test `eval echo '${'$as_ac_var'}'` = yes; then
25916
cat >>confdefs.h <<_ACEOF
25917
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25920
echo "$as_me:$LINENO: checking if gethostbyname_r takes 3 arguments" >&5
25921
echo $ECHO_N "checking if gethostbyname_r takes 3 arguments... $ECHO_C" >&6
25922
cat >conftest.$ac_ext <<_ACEOF
25925
cat confdefs.h >>conftest.$ac_ext
25926
cat >>conftest.$ac_ext <<_ACEOF
25927
/* end confdefs.h. */
25929
#include <string.h>
25930
#include <sys/types.h>
25933
#define NULL (void *)0
25936
gethostbyname_r(const char *, struct hostent *, struct hostent_data *);
25941
struct hostent_data data;
25942
gethostbyname_r(NULL, NULL, NULL);
25947
rm -f conftest.$ac_objext
25948
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25949
(eval $ac_compile) 2>conftest.er1
25951
grep -v '^ *+' conftest.er1 >conftest.err
25953
cat conftest.err >&5
25954
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25955
(exit $ac_status); } &&
25956
{ ac_try='test -z "$ac_c_werror_flag"
25957
|| test ! -s conftest.err'
25958
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25959
(eval $ac_try) 2>&5
25961
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25962
(exit $ac_status); }; } &&
25963
{ ac_try='test -s conftest.$ac_objext'
25964
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25965
(eval $ac_try) 2>&5
25967
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25968
(exit $ac_status); }; }; then
25970
echo "$as_me:$LINENO: result: yes" >&5
25971
echo "${ECHO_T}yes" >&6
25973
cat >>confdefs.h <<\_ACEOF
25974
#define HAVE_GETHOSTBYNAME_R_3 1
25977
ac_cv_gethostbyname_args=3
25979
echo "$as_me: failed program was:" >&5
25980
sed 's/^/| /' conftest.$ac_ext >&5
25983
echo "$as_me:$LINENO: result: no" >&5
25984
echo "${ECHO_T}no" >&6
25985
echo "$as_me:$LINENO: checking if gethostbyname_r with -D_REENTRANT takes 3 arguments" >&5
25986
echo $ECHO_N "checking if gethostbyname_r with -D_REENTRANT takes 3 arguments... $ECHO_C" >&6
25987
cat >conftest.$ac_ext <<_ACEOF
25990
cat confdefs.h >>conftest.$ac_ext
25991
cat >>conftest.$ac_ext <<_ACEOF
25992
/* end confdefs.h. */
25996
#include <string.h>
25997
#include <sys/types.h>
26000
#define NULL (void *)0
26003
gethostbyname_r(const char *,struct hostent *, struct hostent_data *);
26008
struct hostent_data data;
26009
gethostbyname_r(NULL, NULL, NULL);
26014
rm -f conftest.$ac_objext
26015
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26016
(eval $ac_compile) 2>conftest.er1
26018
grep -v '^ *+' conftest.er1 >conftest.err
26020
cat conftest.err >&5
26021
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26022
(exit $ac_status); } &&
26023
{ ac_try='test -z "$ac_c_werror_flag"
26024
|| test ! -s conftest.err'
26025
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26026
(eval $ac_try) 2>&5
26028
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26029
(exit $ac_status); }; } &&
26030
{ ac_try='test -s conftest.$ac_objext'
26031
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26032
(eval $ac_try) 2>&5
26034
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26035
(exit $ac_status); }; }; then
26037
echo "$as_me:$LINENO: result: yes" >&5
26038
echo "${ECHO_T}yes" >&6
26040
cat >>confdefs.h <<\_ACEOF
26041
#define HAVE_GETHOSTBYNAME_R_3 1
26045
cat >>confdefs.h <<\_ACEOF
26046
#define NEED_REENTRANT 1
26049
ac_cv_gethostbyname_args=3
26051
echo "$as_me: failed program was:" >&5
26052
sed 's/^/| /' conftest.$ac_ext >&5
26055
echo "$as_me:$LINENO: result: no" >&5
26056
echo "${ECHO_T}no" >&6
26057
echo "$as_me:$LINENO: checking if gethostbyname_r takes 5 arguments" >&5
26058
echo $ECHO_N "checking if gethostbyname_r takes 5 arguments... $ECHO_C" >&6
26059
cat >conftest.$ac_ext <<_ACEOF
26062
cat confdefs.h >>conftest.$ac_ext
26063
cat >>conftest.$ac_ext <<_ACEOF
26064
/* end confdefs.h. */
26066
#include <sys/types.h>
26069
#define NULL (void *)0
26072
gethostbyname_r(const char *, struct hostent *, char *, int, int *);
26077
gethostbyname_r(NULL, NULL, NULL, 0, NULL);
26082
rm -f conftest.$ac_objext
26083
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26084
(eval $ac_compile) 2>conftest.er1
26086
grep -v '^ *+' conftest.er1 >conftest.err
26088
cat conftest.err >&5
26089
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26090
(exit $ac_status); } &&
26091
{ ac_try='test -z "$ac_c_werror_flag"
26092
|| test ! -s conftest.err'
26093
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26094
(eval $ac_try) 2>&5
26096
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26097
(exit $ac_status); }; } &&
26098
{ ac_try='test -s conftest.$ac_objext'
26099
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26100
(eval $ac_try) 2>&5
26102
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26103
(exit $ac_status); }; }; then
26105
echo "$as_me:$LINENO: result: yes" >&5
26106
echo "${ECHO_T}yes" >&6
26108
cat >>confdefs.h <<\_ACEOF
26109
#define HAVE_GETHOSTBYNAME_R_5 1
26112
ac_cv_gethostbyname_args=5
26114
echo "$as_me: failed program was:" >&5
26115
sed 's/^/| /' conftest.$ac_ext >&5
26118
echo "$as_me:$LINENO: result: no" >&5
26119
echo "${ECHO_T}no" >&6
26120
echo "$as_me:$LINENO: checking if gethostbyname_r takes 6 arguments" >&5
26121
echo $ECHO_N "checking if gethostbyname_r takes 6 arguments... $ECHO_C" >&6
26122
cat >conftest.$ac_ext <<_ACEOF
26125
cat confdefs.h >>conftest.$ac_ext
26126
cat >>conftest.$ac_ext <<_ACEOF
26127
/* end confdefs.h. */
26129
#include <sys/types.h>
26132
#define NULL (void *)0
26135
gethostbyname_r(const char *, struct hostent *, char *, size_t,
26136
struct hostent **, int *);
26141
gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL);
26146
rm -f conftest.$ac_objext
26147
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26148
(eval $ac_compile) 2>conftest.er1
26150
grep -v '^ *+' conftest.er1 >conftest.err
26152
cat conftest.err >&5
26153
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26154
(exit $ac_status); } &&
26155
{ ac_try='test -z "$ac_c_werror_flag"
26156
|| test ! -s conftest.err'
26157
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26158
(eval $ac_try) 2>&5
26160
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26161
(exit $ac_status); }; } &&
26162
{ ac_try='test -s conftest.$ac_objext'
26163
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26164
(eval $ac_try) 2>&5
26166
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26167
(exit $ac_status); }; }; then
26169
echo "$as_me:$LINENO: result: yes" >&5
26170
echo "${ECHO_T}yes" >&6
26172
cat >>confdefs.h <<\_ACEOF
26173
#define HAVE_GETHOSTBYNAME_R_6 1
26176
ac_cv_gethostbyname_args=6
26178
echo "$as_me: failed program was:" >&5
26179
sed 's/^/| /' conftest.$ac_ext >&5
26182
echo "$as_me:$LINENO: result: no" >&5
26183
echo "${ECHO_T}no" >&6
26184
have_missing_r_funcs="$have_missing_r_funcs gethostbyname_r"
26186
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26188
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26190
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26192
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26197
if test "$ac_cv_func_gethostbyname_r" = "yes"; then
26198
if test "$ac_cv_gethostbyname_args" = "0"; then
26199
{ { echo "$as_me:$LINENO: error: couldn't figure out how to use gethostbyname_r()" >&5
26200
echo "$as_me: error: couldn't figure out how to use gethostbyname_r()" >&2;}
26201
{ (exit 1); exit 1; }; }
26208
for ac_func in gethostbyaddr_r
26210
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26211
echo "$as_me:$LINENO: checking for $ac_func" >&5
26212
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26213
if eval "test \"\${$as_ac_var+set}\" = set"; then
26214
echo $ECHO_N "(cached) $ECHO_C" >&6
26216
cat >conftest.$ac_ext <<_ACEOF
26219
cat confdefs.h >>conftest.$ac_ext
26220
cat >>conftest.$ac_ext <<_ACEOF
26221
/* end confdefs.h. */
26222
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26223
For example, HP-UX 11i <limits.h> declares gettimeofday. */
26224
#define $ac_func innocuous_$ac_func
26226
/* System header to define __stub macros and hopefully few prototypes,
26227
which can conflict with char $ac_func (); below.
26228
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26229
<limits.h> exists even on freestanding compilers. */
26232
# include <limits.h>
26234
# include <assert.h>
26239
/* Override any gcc2 internal prototype to avoid an error. */
26244
/* We use char because int might match the return type of a gcc2
26245
builtin and then its argument prototype would still apply. */
26247
/* The GNU C library defines this for functions which it implements
26248
to always fail with ENOSYS. Some functions are actually named
26249
something starting with __ and the normal name is an alias. */
26250
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26253
char (*f) () = $ac_func;
26262
return f != $ac_func;
26267
rm -f conftest.$ac_objext conftest$ac_exeext
26268
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26269
(eval $ac_link) 2>conftest.er1
26271
grep -v '^ *+' conftest.er1 >conftest.err
26273
cat conftest.err >&5
26274
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26275
(exit $ac_status); } &&
26276
{ ac_try='test -z "$ac_c_werror_flag"
26277
|| test ! -s conftest.err'
26278
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26279
(eval $ac_try) 2>&5
26281
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26282
(exit $ac_status); }; } &&
26283
{ ac_try='test -s conftest$ac_exeext'
26284
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26285
(eval $ac_try) 2>&5
26287
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26288
(exit $ac_status); }; }; then
26289
eval "$as_ac_var=yes"
26291
echo "$as_me: failed program was:" >&5
26292
sed 's/^/| /' conftest.$ac_ext >&5
26294
eval "$as_ac_var=no"
26296
rm -f conftest.err conftest.$ac_objext \
26297
conftest$ac_exeext conftest.$ac_ext
26299
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26300
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26301
if test `eval echo '${'$as_ac_var'}'` = yes; then
26302
cat >>confdefs.h <<_ACEOF
26303
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26306
echo "$as_me:$LINENO: checking if gethostbyaddr_r takes 5 arguments" >&5
26307
echo $ECHO_N "checking if gethostbyaddr_r takes 5 arguments... $ECHO_C" >&6
26308
cat >conftest.$ac_ext <<_ACEOF
26311
cat confdefs.h >>conftest.$ac_ext
26312
cat >>conftest.$ac_ext <<_ACEOF
26313
/* end confdefs.h. */
26315
#include <sys/types.h>
26325
struct hostent_data hdata;
26327
rc = gethostbyaddr_r(address, length, type, &h, &hdata);
26332
rm -f conftest.$ac_objext
26333
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26334
(eval $ac_compile) 2>conftest.er1
26336
grep -v '^ *+' conftest.er1 >conftest.err
26338
cat conftest.err >&5
26339
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26340
(exit $ac_status); } &&
26341
{ ac_try='test -z "$ac_c_werror_flag"
26342
|| test ! -s conftest.err'
26343
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26344
(eval $ac_try) 2>&5
26346
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26347
(exit $ac_status); }; } &&
26348
{ ac_try='test -s conftest.$ac_objext'
26349
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26350
(eval $ac_try) 2>&5
26352
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26353
(exit $ac_status); }; }; then
26355
echo "$as_me:$LINENO: result: yes" >&5
26356
echo "${ECHO_T}yes" >&6
26358
cat >>confdefs.h <<\_ACEOF
26359
#define HAVE_GETHOSTBYADDR_R_5 1
26362
ac_cv_gethostbyaddr_args=5
26364
echo "$as_me: failed program was:" >&5
26365
sed 's/^/| /' conftest.$ac_ext >&5
26368
echo "$as_me:$LINENO: result: no" >&5
26369
echo "${ECHO_T}no" >&6
26370
echo "$as_me:$LINENO: checking if gethostbyaddr_r with -D_REENTRANT takes 5 arguments" >&5
26371
echo $ECHO_N "checking if gethostbyaddr_r with -D_REENTRANT takes 5 arguments... $ECHO_C" >&6
26372
cat >conftest.$ac_ext <<_ACEOF
26375
cat confdefs.h >>conftest.$ac_ext
26376
cat >>conftest.$ac_ext <<_ACEOF
26377
/* end confdefs.h. */
26380
#include <sys/types.h>
26390
struct hostent_data hdata;
26392
rc = gethostbyaddr_r(address, length, type, &h, &hdata);
26397
rm -f conftest.$ac_objext
26398
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26399
(eval $ac_compile) 2>conftest.er1
26401
grep -v '^ *+' conftest.er1 >conftest.err
26403
cat conftest.err >&5
26404
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26405
(exit $ac_status); } &&
26406
{ ac_try='test -z "$ac_c_werror_flag"
26407
|| test ! -s conftest.err'
26408
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26409
(eval $ac_try) 2>&5
26411
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26412
(exit $ac_status); }; } &&
26413
{ ac_try='test -s conftest.$ac_objext'
26414
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26415
(eval $ac_try) 2>&5
26417
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26418
(exit $ac_status); }; }; then
26420
echo "$as_me:$LINENO: result: yes" >&5
26421
echo "${ECHO_T}yes" >&6
26423
cat >>confdefs.h <<\_ACEOF
26424
#define HAVE_GETHOSTBYADDR_R_5 1
26428
cat >>confdefs.h <<\_ACEOF
26429
#define NEED_REENTRANT 1
26432
ac_cv_gethostbyaddr_args=5
26434
echo "$as_me: failed program was:" >&5
26435
sed 's/^/| /' conftest.$ac_ext >&5
26438
echo "$as_me:$LINENO: result: no" >&5
26439
echo "${ECHO_T}no" >&6
26440
echo "$as_me:$LINENO: checking if gethostbyaddr_r takes 7 arguments" >&5
26441
echo $ECHO_N "checking if gethostbyaddr_r takes 7 arguments... $ECHO_C" >&6
26442
cat >conftest.$ac_ext <<_ACEOF
26445
cat confdefs.h >>conftest.$ac_ext
26446
cat >>conftest.$ac_ext <<_ACEOF
26447
/* end confdefs.h. */
26449
#include <sys/types.h>
26461
struct hostent * hp;
26463
hp = gethostbyaddr_r(address, length, type, &h,
26464
buffer, 8192, &h_errnop);
26469
rm -f conftest.$ac_objext
26470
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26471
(eval $ac_compile) 2>conftest.er1
26473
grep -v '^ *+' conftest.er1 >conftest.err
26475
cat conftest.err >&5
26476
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26477
(exit $ac_status); } &&
26478
{ ac_try='test -z "$ac_c_werror_flag"
26479
|| test ! -s conftest.err'
26480
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26481
(eval $ac_try) 2>&5
26483
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26484
(exit $ac_status); }; } &&
26485
{ ac_try='test -s conftest.$ac_objext'
26486
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26487
(eval $ac_try) 2>&5
26489
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26490
(exit $ac_status); }; }; then
26492
echo "$as_me:$LINENO: result: yes" >&5
26493
echo "${ECHO_T}yes" >&6
26495
cat >>confdefs.h <<\_ACEOF
26496
#define HAVE_GETHOSTBYADDR_R_7 1
26499
ac_cv_gethostbyaddr_args=7
26501
echo "$as_me: failed program was:" >&5
26502
sed 's/^/| /' conftest.$ac_ext >&5
26505
echo "$as_me:$LINENO: result: no" >&5
26506
echo "${ECHO_T}no" >&6
26507
echo "$as_me:$LINENO: checking if gethostbyaddr_r takes 8 arguments" >&5
26508
echo $ECHO_N "checking if gethostbyaddr_r takes 8 arguments... $ECHO_C" >&6
26509
cat >conftest.$ac_ext <<_ACEOF
26512
cat confdefs.h >>conftest.$ac_ext
26513
cat >>conftest.$ac_ext <<_ACEOF
26514
/* end confdefs.h. */
26516
#include <sys/types.h>
26528
struct hostent * hp;
26531
rc = gethostbyaddr_r(address, length, type, &h,
26532
buffer, 8192, &hp, &h_errnop);
26537
rm -f conftest.$ac_objext
26538
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26539
(eval $ac_compile) 2>conftest.er1
26541
grep -v '^ *+' conftest.er1 >conftest.err
26543
cat conftest.err >&5
26544
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26545
(exit $ac_status); } &&
26546
{ ac_try='test -z "$ac_c_werror_flag"
26547
|| test ! -s conftest.err'
26548
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26549
(eval $ac_try) 2>&5
26551
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26552
(exit $ac_status); }; } &&
26553
{ ac_try='test -s conftest.$ac_objext'
26554
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26555
(eval $ac_try) 2>&5
26557
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26558
(exit $ac_status); }; }; then
26560
echo "$as_me:$LINENO: result: yes" >&5
26561
echo "${ECHO_T}yes" >&6
26563
cat >>confdefs.h <<\_ACEOF
26564
#define HAVE_GETHOSTBYADDR_R_8 1
26567
ac_cv_gethostbyaddr_args=8
26569
echo "$as_me: failed program was:" >&5
26570
sed 's/^/| /' conftest.$ac_ext >&5
26573
echo "$as_me:$LINENO: result: no" >&5
26574
echo "${ECHO_T}no" >&6
26575
have_missing_r_funcs="$have_missing_r_funcs gethostbyaddr_r"
26577
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26579
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26581
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26583
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26592
for ac_func in inet_ntoa_r
26594
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26595
echo "$as_me:$LINENO: checking for $ac_func" >&5
26596
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26597
if eval "test \"\${$as_ac_var+set}\" = set"; then
26598
echo $ECHO_N "(cached) $ECHO_C" >&6
26600
cat >conftest.$ac_ext <<_ACEOF
26603
cat confdefs.h >>conftest.$ac_ext
26604
cat >>conftest.$ac_ext <<_ACEOF
26605
/* end confdefs.h. */
26606
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26607
For example, HP-UX 11i <limits.h> declares gettimeofday. */
26608
#define $ac_func innocuous_$ac_func
26610
/* System header to define __stub macros and hopefully few prototypes,
26611
which can conflict with char $ac_func (); below.
26612
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26613
<limits.h> exists even on freestanding compilers. */
26616
# include <limits.h>
26618
# include <assert.h>
26623
/* Override any gcc2 internal prototype to avoid an error. */
26628
/* We use char because int might match the return type of a gcc2
26629
builtin and then its argument prototype would still apply. */
26631
/* The GNU C library defines this for functions which it implements
26632
to always fail with ENOSYS. Some functions are actually named
26633
something starting with __ and the normal name is an alias. */
26634
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26637
char (*f) () = $ac_func;
26646
return f != $ac_func;
26651
rm -f conftest.$ac_objext conftest$ac_exeext
26652
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26653
(eval $ac_link) 2>conftest.er1
26655
grep -v '^ *+' conftest.er1 >conftest.err
26657
cat conftest.err >&5
26658
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26659
(exit $ac_status); } &&
26660
{ ac_try='test -z "$ac_c_werror_flag"
26661
|| test ! -s conftest.err'
26662
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26663
(eval $ac_try) 2>&5
26665
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26666
(exit $ac_status); }; } &&
26667
{ ac_try='test -s conftest$ac_exeext'
26668
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26669
(eval $ac_try) 2>&5
26671
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26672
(exit $ac_status); }; }; then
26673
eval "$as_ac_var=yes"
26675
echo "$as_me: failed program was:" >&5
26676
sed 's/^/| /' conftest.$ac_ext >&5
26678
eval "$as_ac_var=no"
26680
rm -f conftest.err conftest.$ac_objext \
26681
conftest$ac_exeext conftest.$ac_ext
26683
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26684
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26685
if test `eval echo '${'$as_ac_var'}'` = yes; then
26686
cat >>confdefs.h <<_ACEOF
26687
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26690
echo "$as_me:$LINENO: checking whether inet_ntoa_r is declared" >&5
26691
echo $ECHO_N "checking whether inet_ntoa_r is declared... $ECHO_C" >&6
26692
cat >conftest.$ac_ext <<_ACEOF
26695
cat confdefs.h >>conftest.$ac_ext
26696
cat >>conftest.$ac_ext <<_ACEOF
26697
/* end confdefs.h. */
26699
#include <arpa/inet.h>
26701
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26702
$EGREP "inet_ntoa_r" >/dev/null 2>&1; then
26705
cat >>confdefs.h <<\_ACEOF
26706
#define HAVE_INET_NTOA_R_DECL 1
26709
echo "$as_me:$LINENO: result: yes" >&5
26710
echo "${ECHO_T}yes" >&6
26713
echo "$as_me:$LINENO: result: no" >&5
26714
echo "${ECHO_T}no" >&6
26715
echo "$as_me:$LINENO: checking whether inet_ntoa_r with -D_REENTRANT is declared" >&5
26716
echo $ECHO_N "checking whether inet_ntoa_r with -D_REENTRANT is declared... $ECHO_C" >&6
26717
cat >conftest.$ac_ext <<_ACEOF
26720
cat confdefs.h >>conftest.$ac_ext
26721
cat >>conftest.$ac_ext <<_ACEOF
26722
/* end confdefs.h. */
26725
#include <arpa/inet.h>
26727
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26728
$EGREP "inet_ntoa_r" >/dev/null 2>&1; then
26731
cat >>confdefs.h <<\_ACEOF
26732
#define HAVE_INET_NTOA_R_DECL 1
26736
cat >>confdefs.h <<\_ACEOF
26737
#define NEED_REENTRANT 1
26740
echo "$as_me:$LINENO: result: yes" >&5
26741
echo "${ECHO_T}yes" >&6
26743
echo "$as_me:$LINENO: result: no" >&5
26744
echo "${ECHO_T}no" >&6
26758
for ac_func in localtime_r
26760
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26761
echo "$as_me:$LINENO: checking for $ac_func" >&5
26762
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26763
if eval "test \"\${$as_ac_var+set}\" = set"; then
26764
echo $ECHO_N "(cached) $ECHO_C" >&6
26766
cat >conftest.$ac_ext <<_ACEOF
26769
cat confdefs.h >>conftest.$ac_ext
26770
cat >>conftest.$ac_ext <<_ACEOF
26771
/* end confdefs.h. */
26772
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26773
For example, HP-UX 11i <limits.h> declares gettimeofday. */
26774
#define $ac_func innocuous_$ac_func
26776
/* System header to define __stub macros and hopefully few prototypes,
26777
which can conflict with char $ac_func (); below.
26778
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26779
<limits.h> exists even on freestanding compilers. */
26782
# include <limits.h>
26784
# include <assert.h>
26789
/* Override any gcc2 internal prototype to avoid an error. */
26794
/* We use char because int might match the return type of a gcc2
26795
builtin and then its argument prototype would still apply. */
26797
/* The GNU C library defines this for functions which it implements
26798
to always fail with ENOSYS. Some functions are actually named
26799
something starting with __ and the normal name is an alias. */
26800
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26803
char (*f) () = $ac_func;
26812
return f != $ac_func;
26817
rm -f conftest.$ac_objext conftest$ac_exeext
26818
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26819
(eval $ac_link) 2>conftest.er1
26821
grep -v '^ *+' conftest.er1 >conftest.err
26823
cat conftest.err >&5
26824
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26825
(exit $ac_status); } &&
26826
{ ac_try='test -z "$ac_c_werror_flag"
26827
|| test ! -s conftest.err'
26828
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26829
(eval $ac_try) 2>&5
26831
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26832
(exit $ac_status); }; } &&
26833
{ ac_try='test -s conftest$ac_exeext'
26834
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26835
(eval $ac_try) 2>&5
26837
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26838
(exit $ac_status); }; }; then
26839
eval "$as_ac_var=yes"
26841
echo "$as_me: failed program was:" >&5
26842
sed 's/^/| /' conftest.$ac_ext >&5
26844
eval "$as_ac_var=no"
26846
rm -f conftest.err conftest.$ac_objext \
26847
conftest$ac_exeext conftest.$ac_ext
26849
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26850
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26851
if test `eval echo '${'$as_ac_var'}'` = yes; then
26852
cat >>confdefs.h <<_ACEOF
26853
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26856
echo "$as_me:$LINENO: checking whether localtime_r is declared" >&5
26857
echo $ECHO_N "checking whether localtime_r is declared... $ECHO_C" >&6
26858
cat >conftest.$ac_ext <<_ACEOF
26861
cat confdefs.h >>conftest.$ac_ext
26862
cat >>conftest.$ac_ext <<_ACEOF
26863
/* end confdefs.h. */
26867
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26868
$EGREP "localtime_r" >/dev/null 2>&1; then
26870
echo "$as_me:$LINENO: result: yes" >&5
26871
echo "${ECHO_T}yes" >&6
26874
echo "$as_me:$LINENO: result: no" >&5
26875
echo "${ECHO_T}no" >&6
26876
echo "$as_me:$LINENO: checking whether localtime_r with -D_REENTRANT is declared" >&5
26877
echo $ECHO_N "checking whether localtime_r with -D_REENTRANT is declared... $ECHO_C" >&6
26878
cat >conftest.$ac_ext <<_ACEOF
26881
cat confdefs.h >>conftest.$ac_ext
26882
cat >>conftest.$ac_ext <<_ACEOF
26883
/* end confdefs.h. */
26888
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26889
$EGREP "localtime_r" >/dev/null 2>&1; then
26891
cat >>confdefs.h <<\_ACEOF
26892
#define NEED_REENTRANT 1
26895
echo "$as_me:$LINENO: result: yes" >&5
26896
echo "${ECHO_T}yes" >&6
26898
echo "$as_me:$LINENO: result: no" >&5
26899
echo "${ECHO_T}no" >&6
26913
for ac_func in strerror_r
26915
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26916
echo "$as_me:$LINENO: checking for $ac_func" >&5
26917
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26918
if eval "test \"\${$as_ac_var+set}\" = set"; then
26919
echo $ECHO_N "(cached) $ECHO_C" >&6
26921
cat >conftest.$ac_ext <<_ACEOF
26924
cat confdefs.h >>conftest.$ac_ext
26925
cat >>conftest.$ac_ext <<_ACEOF
26926
/* end confdefs.h. */
26927
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26928
For example, HP-UX 11i <limits.h> declares gettimeofday. */
26929
#define $ac_func innocuous_$ac_func
26931
/* System header to define __stub macros and hopefully few prototypes,
26932
which can conflict with char $ac_func (); below.
26933
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26934
<limits.h> exists even on freestanding compilers. */
26937
# include <limits.h>
26939
# include <assert.h>
26944
/* Override any gcc2 internal prototype to avoid an error. */
26949
/* We use char because int might match the return type of a gcc2
26950
builtin and then its argument prototype would still apply. */
26952
/* The GNU C library defines this for functions which it implements
26953
to always fail with ENOSYS. Some functions are actually named
26954
something starting with __ and the normal name is an alias. */
26955
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26958
char (*f) () = $ac_func;
26967
return f != $ac_func;
26972
rm -f conftest.$ac_objext conftest$ac_exeext
26973
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26974
(eval $ac_link) 2>conftest.er1
26976
grep -v '^ *+' conftest.er1 >conftest.err
26978
cat conftest.err >&5
26979
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26980
(exit $ac_status); } &&
26981
{ ac_try='test -z "$ac_c_werror_flag"
26982
|| test ! -s conftest.err'
26983
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26984
(eval $ac_try) 2>&5
26986
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26987
(exit $ac_status); }; } &&
26988
{ ac_try='test -s conftest$ac_exeext'
26989
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26990
(eval $ac_try) 2>&5
26992
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26993
(exit $ac_status); }; }; then
26994
eval "$as_ac_var=yes"
26996
echo "$as_me: failed program was:" >&5
26997
sed 's/^/| /' conftest.$ac_ext >&5
26999
eval "$as_ac_var=no"
27001
rm -f conftest.err conftest.$ac_objext \
27002
conftest$ac_exeext conftest.$ac_ext
27004
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27005
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27006
if test `eval echo '${'$as_ac_var'}'` = yes; then
27007
cat >>confdefs.h <<_ACEOF
27008
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27011
echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
27012
echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
27013
cat >conftest.$ac_ext <<_ACEOF
27016
cat confdefs.h >>conftest.$ac_ext
27017
cat >>conftest.$ac_ext <<_ACEOF
27018
/* end confdefs.h. */
27020
#include <string.h>
27022
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27023
$EGREP "strerror_r" >/dev/null 2>&1; then
27026
echo "$as_me:$LINENO: result: yes" >&5
27027
echo "${ECHO_T}yes" >&6
27030
echo "$as_me:$LINENO: result: no" >&5
27031
echo "${ECHO_T}no" >&6
27032
echo "$as_me:$LINENO: checking whether strerror_r with -D_THREAD_SAFE is declared" >&5
27033
echo $ECHO_N "checking whether strerror_r with -D_THREAD_SAFE is declared... $ECHO_C" >&6
27034
cat >conftest.$ac_ext <<_ACEOF
27037
cat confdefs.h >>conftest.$ac_ext
27038
cat >>conftest.$ac_ext <<_ACEOF
27039
/* end confdefs.h. */
27041
#define _THREAD_SAFE
27042
#include <string.h>
27044
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27045
$EGREP "strerror_r" >/dev/null 2>&1; then
27048
CPPFLAGS="-D_THREAD_SAFE $CPPFLAGS"
27049
echo "$as_me:$LINENO: result: yes" >&5
27050
echo "${ECHO_T}yes" >&6
27052
echo "$as_me:$LINENO: result: no" >&5
27053
echo "${ECHO_T}no" >&6
27064
if test "x$strerror_r" = "xyes"; then
27065
echo "$as_me:$LINENO: checking for a glibc strerror_r API" >&5
27066
echo $ECHO_N "checking for a glibc strerror_r API... $ECHO_C" >&6
27067
if test "$cross_compiling" = yes; then
27068
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
27069
See \`config.log' for more details." >&5
27070
echo "$as_me: error: cannot run test program while cross compiling
27071
See \`config.log' for more details." >&2;}
27072
{ (exit 1); exit 1; }; }
27074
cat >conftest.$ac_ext <<_ACEOF
27077
cat confdefs.h >>conftest.$ac_ext
27078
cat >>conftest.$ac_ext <<_ACEOF
27079
/* end confdefs.h. */
27081
#include <string.h>
27085
char buffer[1024]; /* big enough to play with */
27087
strerror_r(EACCES, buffer, sizeof(buffer));
27088
/* this should've returned a string */
27089
if(!string || !string[0])
27095
rm -f conftest$ac_exeext
27096
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27097
(eval $ac_link) 2>&5
27099
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27100
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27101
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27102
(eval $ac_try) 2>&5
27104
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27105
(exit $ac_status); }; }; then
27107
cat >>confdefs.h <<\_ACEOF
27108
#define HAVE_GLIBC_STRERROR_R 1
27111
echo "$as_me:$LINENO: result: yes" >&5
27112
echo "${ECHO_T}yes" >&6
27114
echo "$as_me: program exited with status $ac_status" >&5
27115
echo "$as_me: failed program was:" >&5
27116
sed 's/^/| /' conftest.$ac_ext >&5
27118
( exit $ac_status )
27119
echo "$as_me:$LINENO: result: no" >&5
27120
echo "${ECHO_T}no" >&6
27123
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27126
echo "$as_me:$LINENO: checking for a POSIX strerror_r API" >&5
27127
echo $ECHO_N "checking for a POSIX strerror_r API... $ECHO_C" >&6
27128
if test "$cross_compiling" = yes; then
27129
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
27130
See \`config.log' for more details." >&5
27131
echo "$as_me: error: cannot run test program while cross compiling
27132
See \`config.log' for more details." >&2;}
27133
{ (exit 1); exit 1; }; }
27135
cat >conftest.$ac_ext <<_ACEOF
27138
cat confdefs.h >>conftest.$ac_ext
27139
cat >>conftest.$ac_ext <<_ACEOF
27140
/* end confdefs.h. */
27142
#include <string.h>
27146
char buffer[1024]; /* big enough to play with */
27148
strerror_r(EACCES, buffer, sizeof(buffer));
27149
/* This should've returned zero, and written an error string in the
27151
if(!buffer[0] || error)
27157
rm -f conftest$ac_exeext
27158
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27159
(eval $ac_link) 2>&5
27161
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27162
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27163
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27164
(eval $ac_try) 2>&5
27166
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27167
(exit $ac_status); }; }; then
27169
cat >>confdefs.h <<\_ACEOF
27170
#define HAVE_POSIX_STRERROR_R 1
27173
echo "$as_me:$LINENO: result: yes" >&5
27174
echo "${ECHO_T}yes" >&6
27176
echo "$as_me: program exited with status $ac_status" >&5
27177
echo "$as_me: failed program was:" >&5
27178
sed 's/^/| /' conftest.$ac_ext >&5
27180
( exit $ac_status )
27181
echo "$as_me:$LINENO: result: no" >&5
27182
echo "${ECHO_T}no" >&6
27185
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27193
for ac_func in gmtime_r
27195
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27196
echo "$as_me:$LINENO: checking for $ac_func" >&5
27197
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27198
if eval "test \"\${$as_ac_var+set}\" = set"; then
27199
echo $ECHO_N "(cached) $ECHO_C" >&6
27201
cat >conftest.$ac_ext <<_ACEOF
27204
cat confdefs.h >>conftest.$ac_ext
27205
cat >>conftest.$ac_ext <<_ACEOF
27206
/* end confdefs.h. */
27207
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27208
For example, HP-UX 11i <limits.h> declares gettimeofday. */
27209
#define $ac_func innocuous_$ac_func
27211
/* System header to define __stub macros and hopefully few prototypes,
27212
which can conflict with char $ac_func (); below.
27213
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27214
<limits.h> exists even on freestanding compilers. */
27217
# include <limits.h>
27219
# include <assert.h>
27224
/* Override any gcc2 internal prototype to avoid an error. */
27229
/* We use char because int might match the return type of a gcc2
27230
builtin and then its argument prototype would still apply. */
27232
/* The GNU C library defines this for functions which it implements
27233
to always fail with ENOSYS. Some functions are actually named
27234
something starting with __ and the normal name is an alias. */
27235
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27238
char (*f) () = $ac_func;
27247
return f != $ac_func;
27252
rm -f conftest.$ac_objext conftest$ac_exeext
27253
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27254
(eval $ac_link) 2>conftest.er1
27256
grep -v '^ *+' conftest.er1 >conftest.err
27258
cat conftest.err >&5
27259
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27260
(exit $ac_status); } &&
27261
{ ac_try='test -z "$ac_c_werror_flag"
27262
|| test ! -s conftest.err'
27263
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27264
(eval $ac_try) 2>&5
27266
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27267
(exit $ac_status); }; } &&
27268
{ ac_try='test -s conftest$ac_exeext'
27269
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27270
(eval $ac_try) 2>&5
27272
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27273
(exit $ac_status); }; }; then
27274
eval "$as_ac_var=yes"
27276
echo "$as_me: failed program was:" >&5
27277
sed 's/^/| /' conftest.$ac_ext >&5
27279
eval "$as_ac_var=no"
27281
rm -f conftest.err conftest.$ac_objext \
27282
conftest$ac_exeext conftest.$ac_ext
27284
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27285
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27286
if test `eval echo '${'$as_ac_var'}'` = yes; then
27287
cat >>confdefs.h <<_ACEOF
27288
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27298
if test "x$RECENTAIX" = "xyes"; then
27301
for ac_func in localtime_r
27303
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27304
echo "$as_me:$LINENO: checking for $ac_func" >&5
27305
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27306
if eval "test \"\${$as_ac_var+set}\" = set"; then
27307
echo $ECHO_N "(cached) $ECHO_C" >&6
27309
cat >conftest.$ac_ext <<_ACEOF
27312
cat confdefs.h >>conftest.$ac_ext
27313
cat >>conftest.$ac_ext <<_ACEOF
27314
/* end confdefs.h. */
27315
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27316
For example, HP-UX 11i <limits.h> declares gettimeofday. */
27317
#define $ac_func innocuous_$ac_func
27319
/* System header to define __stub macros and hopefully few prototypes,
27320
which can conflict with char $ac_func (); below.
27321
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27322
<limits.h> exists even on freestanding compilers. */
27325
# include <limits.h>
27327
# include <assert.h>
27332
/* Override any gcc2 internal prototype to avoid an error. */
27337
/* We use char because int might match the return type of a gcc2
27338
builtin and then its argument prototype would still apply. */
27340
/* The GNU C library defines this for functions which it implements
27341
to always fail with ENOSYS. Some functions are actually named
27342
something starting with __ and the normal name is an alias. */
27343
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27346
char (*f) () = $ac_func;
27355
return f != $ac_func;
27360
rm -f conftest.$ac_objext conftest$ac_exeext
27361
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27362
(eval $ac_link) 2>conftest.er1
27364
grep -v '^ *+' conftest.er1 >conftest.err
27366
cat conftest.err >&5
27367
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27368
(exit $ac_status); } &&
27369
{ ac_try='test -z "$ac_c_werror_flag"
27370
|| test ! -s conftest.err'
27371
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27372
(eval $ac_try) 2>&5
27374
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27375
(exit $ac_status); }; } &&
27376
{ ac_try='test -s conftest$ac_exeext'
27377
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27378
(eval $ac_try) 2>&5
27380
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27381
(exit $ac_status); }; }; then
27382
eval "$as_ac_var=yes"
27384
echo "$as_me: failed program was:" >&5
27385
sed 's/^/| /' conftest.$ac_ext >&5
27387
eval "$as_ac_var=no"
27389
rm -f conftest.err conftest.$ac_objext \
27390
conftest$ac_exeext conftest.$ac_ext
27392
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27393
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27394
if test `eval echo '${'$as_ac_var'}'` = yes; then
27395
cat >>confdefs.h <<_ACEOF
27396
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27399
echo "$as_me:$LINENO: checking whether localtime_r is declared" >&5
27400
echo $ECHO_N "checking whether localtime_r is declared... $ECHO_C" >&6
27401
cat >conftest.$ac_ext <<_ACEOF
27404
cat confdefs.h >>conftest.$ac_ext
27405
cat >>conftest.$ac_ext <<_ACEOF
27406
/* end confdefs.h. */
27410
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27411
$EGREP "localtime_r" >/dev/null 2>&1; then
27413
echo "$as_me:$LINENO: result: yes" >&5
27414
echo "${ECHO_T}yes" >&6
27417
echo "$as_me:$LINENO: result: no" >&5
27418
echo "${ECHO_T}no" >&6
27419
echo "$as_me:$LINENO: checking whether localtime_r with -D_REENTRANT is declared" >&5
27420
echo $ECHO_N "checking whether localtime_r with -D_REENTRANT is declared... $ECHO_C" >&6
27421
cat >conftest.$ac_ext <<_ACEOF
27424
cat confdefs.h >>conftest.$ac_ext
27425
cat >>conftest.$ac_ext <<_ACEOF
27426
/* end confdefs.h. */
27431
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27432
$EGREP "localtime_r" >/dev/null 2>&1; then
27434
cat >>confdefs.h <<\_ACEOF
27435
#define NEED_REENTRANT 1
27438
echo "$as_me:$LINENO: result: yes" >&5
27439
echo "${ECHO_T}yes" >&6
27441
echo "$as_me:$LINENO: result: no" >&5
27442
echo "${ECHO_T}no" >&6
27456
for ac_func in strerror_r
27458
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27459
echo "$as_me:$LINENO: checking for $ac_func" >&5
27460
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27461
if eval "test \"\${$as_ac_var+set}\" = set"; then
27462
echo $ECHO_N "(cached) $ECHO_C" >&6
27464
cat >conftest.$ac_ext <<_ACEOF
27467
cat confdefs.h >>conftest.$ac_ext
27468
cat >>conftest.$ac_ext <<_ACEOF
27469
/* end confdefs.h. */
27470
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27471
For example, HP-UX 11i <limits.h> declares gettimeofday. */
27472
#define $ac_func innocuous_$ac_func
27474
/* System header to define __stub macros and hopefully few prototypes,
27475
which can conflict with char $ac_func (); below.
27476
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27477
<limits.h> exists even on freestanding compilers. */
27480
# include <limits.h>
27482
# include <assert.h>
27487
/* Override any gcc2 internal prototype to avoid an error. */
27492
/* We use char because int might match the return type of a gcc2
27493
builtin and then its argument prototype would still apply. */
27495
/* The GNU C library defines this for functions which it implements
27496
to always fail with ENOSYS. Some functions are actually named
27497
something starting with __ and the normal name is an alias. */
27498
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27501
char (*f) () = $ac_func;
27510
return f != $ac_func;
27515
rm -f conftest.$ac_objext conftest$ac_exeext
27516
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27517
(eval $ac_link) 2>conftest.er1
27519
grep -v '^ *+' conftest.er1 >conftest.err
27521
cat conftest.err >&5
27522
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27523
(exit $ac_status); } &&
27524
{ ac_try='test -z "$ac_c_werror_flag"
27525
|| test ! -s conftest.err'
27526
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27527
(eval $ac_try) 2>&5
27529
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27530
(exit $ac_status); }; } &&
27531
{ ac_try='test -s conftest$ac_exeext'
27532
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27533
(eval $ac_try) 2>&5
27535
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27536
(exit $ac_status); }; }; then
27537
eval "$as_ac_var=yes"
27539
echo "$as_me: failed program was:" >&5
27540
sed 's/^/| /' conftest.$ac_ext >&5
27542
eval "$as_ac_var=no"
27544
rm -f conftest.err conftest.$ac_objext \
27545
conftest$ac_exeext conftest.$ac_ext
27547
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27548
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27549
if test `eval echo '${'$as_ac_var'}'` = yes; then
27550
cat >>confdefs.h <<_ACEOF
27551
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27554
echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
27555
echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
27556
cat >conftest.$ac_ext <<_ACEOF
27559
cat confdefs.h >>conftest.$ac_ext
27560
cat >>conftest.$ac_ext <<_ACEOF
27561
/* end confdefs.h. */
27563
#include <string.h>
27565
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27566
$EGREP "strerror_r" >/dev/null 2>&1; then
27569
echo "$as_me:$LINENO: result: yes" >&5
27570
echo "${ECHO_T}yes" >&6
27573
echo "$as_me:$LINENO: result: no" >&5
27574
echo "${ECHO_T}no" >&6
27575
echo "$as_me:$LINENO: checking whether strerror_r with -D_THREAD_SAFE is declared" >&5
27576
echo $ECHO_N "checking whether strerror_r with -D_THREAD_SAFE is declared... $ECHO_C" >&6
27577
cat >conftest.$ac_ext <<_ACEOF
27580
cat confdefs.h >>conftest.$ac_ext
27581
cat >>conftest.$ac_ext <<_ACEOF
27582
/* end confdefs.h. */
27584
#define _THREAD_SAFE
27585
#include <string.h>
27587
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27588
$EGREP "strerror_r" >/dev/null 2>&1; then
27591
CPPFLAGS="-D_THREAD_SAFE $CPPFLAGS"
27592
echo "$as_me:$LINENO: result: yes" >&5
27593
echo "${ECHO_T}yes" >&6
27595
echo "$as_me:$LINENO: result: no" >&5
27596
echo "${ECHO_T}no" >&6
27607
if test "x$strerror_r" = "xyes"; then
27608
echo "$as_me:$LINENO: checking for a glibc strerror_r API" >&5
27609
echo $ECHO_N "checking for a glibc strerror_r API... $ECHO_C" >&6
27610
if test "$cross_compiling" = yes; then
27611
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
27612
See \`config.log' for more details." >&5
27613
echo "$as_me: error: cannot run test program while cross compiling
27614
See \`config.log' for more details." >&2;}
27615
{ (exit 1); exit 1; }; }
27617
cat >conftest.$ac_ext <<_ACEOF
27620
cat confdefs.h >>conftest.$ac_ext
27621
cat >>conftest.$ac_ext <<_ACEOF
27622
/* end confdefs.h. */
27624
#include <string.h>
27628
char buffer[1024]; /* big enough to play with */
27630
strerror_r(EACCES, buffer, sizeof(buffer));
27631
/* this should've returned a string */
27632
if(!string || !string[0])
27638
rm -f conftest$ac_exeext
27639
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27640
(eval $ac_link) 2>&5
27642
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27643
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27644
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27645
(eval $ac_try) 2>&5
27647
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27648
(exit $ac_status); }; }; then
27650
cat >>confdefs.h <<\_ACEOF
27651
#define HAVE_GLIBC_STRERROR_R 1
27654
echo "$as_me:$LINENO: result: yes" >&5
27655
echo "${ECHO_T}yes" >&6
27657
echo "$as_me: program exited with status $ac_status" >&5
27658
echo "$as_me: failed program was:" >&5
27659
sed 's/^/| /' conftest.$ac_ext >&5
27661
( exit $ac_status )
27662
echo "$as_me:$LINENO: result: no" >&5
27663
echo "${ECHO_T}no" >&6
27666
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27669
echo "$as_me:$LINENO: checking for a POSIX strerror_r API" >&5
27670
echo $ECHO_N "checking for a POSIX strerror_r API... $ECHO_C" >&6
27671
if test "$cross_compiling" = yes; then
27672
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
27673
See \`config.log' for more details." >&5
27674
echo "$as_me: error: cannot run test program while cross compiling
27675
See \`config.log' for more details." >&2;}
27676
{ (exit 1); exit 1; }; }
27678
cat >conftest.$ac_ext <<_ACEOF
27681
cat confdefs.h >>conftest.$ac_ext
27682
cat >>conftest.$ac_ext <<_ACEOF
27683
/* end confdefs.h. */
27685
#include <string.h>
27689
char buffer[1024]; /* big enough to play with */
27691
strerror_r(EACCES, buffer, sizeof(buffer));
27692
/* This should've returned zero, and written an error string in the
27694
if(!buffer[0] || error)
27700
rm -f conftest$ac_exeext
27701
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27702
(eval $ac_link) 2>&5
27704
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27705
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27706
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27707
(eval $ac_try) 2>&5
27709
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27710
(exit $ac_status); }; }; then
27712
cat >>confdefs.h <<\_ACEOF
27713
#define HAVE_POSIX_STRERROR_R 1
27716
echo "$as_me:$LINENO: result: yes" >&5
27717
echo "${ECHO_T}yes" >&6
27719
echo "$as_me: program exited with status $ac_status" >&5
27720
echo "$as_me: failed program was:" >&5
27721
sed 's/^/| /' conftest.$ac_ext >&5
27723
( exit $ac_status )
27724
echo "$as_me:$LINENO: result: no" >&5
27725
echo "${ECHO_T}no" >&6
27728
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27736
for ac_func in gmtime_r
27738
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27739
echo "$as_me:$LINENO: checking for $ac_func" >&5
27740
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27741
if eval "test \"\${$as_ac_var+set}\" = set"; then
27742
echo $ECHO_N "(cached) $ECHO_C" >&6
27744
cat >conftest.$ac_ext <<_ACEOF
27747
cat confdefs.h >>conftest.$ac_ext
27748
cat >>conftest.$ac_ext <<_ACEOF
27749
/* end confdefs.h. */
27750
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27751
For example, HP-UX 11i <limits.h> declares gettimeofday. */
27752
#define $ac_func innocuous_$ac_func
27754
/* System header to define __stub macros and hopefully few prototypes,
27755
which can conflict with char $ac_func (); below.
27756
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27757
<limits.h> exists even on freestanding compilers. */
27760
# include <limits.h>
27762
# include <assert.h>
27767
/* Override any gcc2 internal prototype to avoid an error. */
27772
/* We use char because int might match the return type of a gcc2
27773
builtin and then its argument prototype would still apply. */
27775
/* The GNU C library defines this for functions which it implements
27776
to always fail with ENOSYS. Some functions are actually named
27777
something starting with __ and the normal name is an alias. */
27778
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27781
char (*f) () = $ac_func;
27790
return f != $ac_func;
27795
rm -f conftest.$ac_objext conftest$ac_exeext
27796
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27797
(eval $ac_link) 2>conftest.er1
27799
grep -v '^ *+' conftest.er1 >conftest.err
27801
cat conftest.err >&5
27802
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27803
(exit $ac_status); } &&
27804
{ ac_try='test -z "$ac_c_werror_flag"
27805
|| test ! -s conftest.err'
27806
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27807
(eval $ac_try) 2>&5
27809
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27810
(exit $ac_status); }; } &&
27811
{ ac_try='test -s conftest$ac_exeext'
27812
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27813
(eval $ac_try) 2>&5
27815
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27816
(exit $ac_status); }; }; then
27817
eval "$as_ac_var=yes"
27819
echo "$as_me: failed program was:" >&5
27820
sed 's/^/| /' conftest.$ac_ext >&5
27822
eval "$as_ac_var=no"
27824
rm -f conftest.err conftest.$ac_objext \
27825
conftest$ac_exeext conftest.$ac_ext
27827
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27828
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27829
if test `eval echo '${'$as_ac_var'}'` = yes; then
27830
cat >>confdefs.h <<_ACEOF
27831
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27841
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
27842
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
27843
if test "${ac_cv_header_stdc+set}" = set; then
27844
echo $ECHO_N "(cached) $ECHO_C" >&6
27846
cat >conftest.$ac_ext <<_ACEOF
27849
cat confdefs.h >>conftest.$ac_ext
27850
cat >>conftest.$ac_ext <<_ACEOF
27851
/* end confdefs.h. */
27852
#include <stdlib.h>
27853
#include <stdarg.h>
27854
#include <string.h>
27865
rm -f conftest.$ac_objext
27866
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27867
(eval $ac_compile) 2>conftest.er1
27869
grep -v '^ *+' conftest.er1 >conftest.err
27871
cat conftest.err >&5
27872
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27873
(exit $ac_status); } &&
27874
{ ac_try='test -z "$ac_c_werror_flag"
27875
|| test ! -s conftest.err'
27876
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27877
(eval $ac_try) 2>&5
27879
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27880
(exit $ac_status); }; } &&
27881
{ ac_try='test -s conftest.$ac_objext'
27882
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27883
(eval $ac_try) 2>&5
27885
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27886
(exit $ac_status); }; }; then
27887
ac_cv_header_stdc=yes
27889
echo "$as_me: failed program was:" >&5
27890
sed 's/^/| /' conftest.$ac_ext >&5
27892
ac_cv_header_stdc=no
27894
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27896
if test $ac_cv_header_stdc = yes; then
27897
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
27898
cat >conftest.$ac_ext <<_ACEOF
27901
cat confdefs.h >>conftest.$ac_ext
27902
cat >>conftest.$ac_ext <<_ACEOF
27903
/* end confdefs.h. */
27904
#include <string.h>
27907
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27908
$EGREP "memchr" >/dev/null 2>&1; then
27911
ac_cv_header_stdc=no
27917
if test $ac_cv_header_stdc = yes; then
27918
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
27919
cat >conftest.$ac_ext <<_ACEOF
27922
cat confdefs.h >>conftest.$ac_ext
27923
cat >>conftest.$ac_ext <<_ACEOF
27924
/* end confdefs.h. */
27925
#include <stdlib.h>
27928
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27929
$EGREP "free" >/dev/null 2>&1; then
27932
ac_cv_header_stdc=no
27938
if test $ac_cv_header_stdc = yes; then
27939
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
27940
if test "$cross_compiling" = yes; then
27943
cat >conftest.$ac_ext <<_ACEOF
27946
cat confdefs.h >>conftest.$ac_ext
27947
cat >>conftest.$ac_ext <<_ACEOF
27948
/* end confdefs.h. */
27950
#if ((' ' & 0x0FF) == 0x020)
27951
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
27952
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
27954
# define ISLOWER(c) \
27955
(('a' <= (c) && (c) <= 'i') \
27956
|| ('j' <= (c) && (c) <= 'r') \
27957
|| ('s' <= (c) && (c) <= 'z'))
27958
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
27961
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
27966
for (i = 0; i < 256; i++)
27967
if (XOR (islower (i), ISLOWER (i))
27968
|| toupper (i) != TOUPPER (i))
27973
rm -f conftest$ac_exeext
27974
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27975
(eval $ac_link) 2>&5
27977
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27978
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27979
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27980
(eval $ac_try) 2>&5
27982
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27983
(exit $ac_status); }; }; then
27986
echo "$as_me: program exited with status $ac_status" >&5
27987
echo "$as_me: failed program was:" >&5
27988
sed 's/^/| /' conftest.$ac_ext >&5
27990
( exit $ac_status )
27991
ac_cv_header_stdc=no
27993
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27997
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
27998
echo "${ECHO_T}$ac_cv_header_stdc" >&6
27999
if test $ac_cv_header_stdc = yes; then
28001
cat >>confdefs.h <<\_ACEOF
28002
#define STDC_HEADERS 1
28040
for ac_header in sys/types.h \
28073
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28074
echo "$as_me:$LINENO: checking for $ac_header" >&5
28075
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28076
if eval "test \"\${$as_ac_Header+set}\" = set"; then
28077
echo $ECHO_N "(cached) $ECHO_C" >&6
28079
cat >conftest.$ac_ext <<_ACEOF
28082
cat confdefs.h >>conftest.$ac_ext
28083
cat >>conftest.$ac_ext <<_ACEOF
28084
/* end confdefs.h. */
28086
#ifdef HAVE_SYS_TYPES_H
28087
#include <sys/types.h>
28089
#ifdef HAVE_SYS_TIME_H
28090
#include <sys/time.h>
28092
#ifdef HAVE_SYS_SELECT_H
28093
#include <sys/select.h>
28095
#ifdef HAVE_SYS_SOCKET_H
28096
#include <sys/socket.h>
28098
#ifdef HAVE_NETINET_IN_H
28099
#include <netinet/in.h>
28104
#include <$ac_header>
28106
rm -f conftest.$ac_objext
28107
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28108
(eval $ac_compile) 2>conftest.er1
28110
grep -v '^ *+' conftest.er1 >conftest.err
28112
cat conftest.err >&5
28113
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28114
(exit $ac_status); } &&
28115
{ ac_try='test -z "$ac_c_werror_flag"
28116
|| test ! -s conftest.err'
28117
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28118
(eval $ac_try) 2>&5
28120
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28121
(exit $ac_status); }; } &&
28122
{ ac_try='test -s conftest.$ac_objext'
28123
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28124
(eval $ac_try) 2>&5
28126
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28127
(exit $ac_status); }; }; then
28128
eval "$as_ac_Header=yes"
28130
echo "$as_me: failed program was:" >&5
28131
sed 's/^/| /' conftest.$ac_ext >&5
28133
eval "$as_ac_Header=no"
28135
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28137
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28138
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28139
if test `eval echo '${'$as_ac_Header'}'` = yes; then
28140
cat >>confdefs.h <<_ACEOF
28141
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28149
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
28150
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
28151
if test "${ac_cv_c_const+set}" = set; then
28152
echo $ECHO_N "(cached) $ECHO_C" >&6
28154
cat >conftest.$ac_ext <<_ACEOF
28157
cat confdefs.h >>conftest.$ac_ext
28158
cat >>conftest.$ac_ext <<_ACEOF
28159
/* end confdefs.h. */
28164
/* FIXME: Include the comments suggested by Paul. */
28165
#ifndef __cplusplus
28166
/* Ultrix mips cc rejects this. */
28167
typedef int charset[2];
28169
/* SunOS 4.1.1 cc rejects this. */
28170
char const *const *ccp;
28172
/* NEC SVR4.0.2 mips cc rejects this. */
28173
struct point {int x, y;};
28174
static struct point const zero = {0,0};
28175
/* AIX XL C 1.02.0.0 rejects this.
28176
It does not let you subtract one const X* pointer from another in
28177
an arm of an if-expression whose if-part is not a constant
28179
const char *g = "string";
28180
ccp = &g + (g ? g-g : 0);
28181
/* HPUX 7.0 cc rejects these. */
28184
ccp = (char const *const *) p;
28185
{ /* SCO 3.2v4 cc rejects this. */
28187
char const *s = 0 ? (char *) 0 : (char const *) 0;
28191
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
28192
int x[] = {25, 17};
28193
const int *foo = &x[0];
28196
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
28197
typedef const int *iptr;
28201
{ /* AIX XL C 1.02.0.0 rejects this saying
28202
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
28203
struct s { int j; const int *ap[3]; };
28204
struct s *b; b->j = 5;
28206
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
28207
const int foo = 10;
28215
rm -f conftest.$ac_objext
28216
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28217
(eval $ac_compile) 2>conftest.er1
28219
grep -v '^ *+' conftest.er1 >conftest.err
28221
cat conftest.err >&5
28222
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28223
(exit $ac_status); } &&
28224
{ ac_try='test -z "$ac_c_werror_flag"
28225
|| test ! -s conftest.err'
28226
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28227
(eval $ac_try) 2>&5
28229
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28230
(exit $ac_status); }; } &&
28231
{ ac_try='test -s conftest.$ac_objext'
28232
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28233
(eval $ac_try) 2>&5
28235
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28236
(exit $ac_status); }; }; then
28239
echo "$as_me: failed program was:" >&5
28240
sed 's/^/| /' conftest.$ac_ext >&5
28244
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28246
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
28247
echo "${ECHO_T}$ac_cv_c_const" >&6
28248
if test $ac_cv_c_const = no; then
28250
cat >>confdefs.h <<\_ACEOF
28256
echo "$as_me:$LINENO: checking for size_t" >&5
28257
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
28258
if test "${ac_cv_type_size_t+set}" = set; then
28259
echo $ECHO_N "(cached) $ECHO_C" >&6
28261
cat >conftest.$ac_ext <<_ACEOF
28264
cat confdefs.h >>conftest.$ac_ext
28265
cat >>conftest.$ac_ext <<_ACEOF
28266
/* end confdefs.h. */
28267
$ac_includes_default
28273
if (sizeof (size_t))
28279
rm -f conftest.$ac_objext
28280
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28281
(eval $ac_compile) 2>conftest.er1
28283
grep -v '^ *+' conftest.er1 >conftest.err
28285
cat conftest.err >&5
28286
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28287
(exit $ac_status); } &&
28288
{ ac_try='test -z "$ac_c_werror_flag"
28289
|| test ! -s conftest.err'
28290
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28291
(eval $ac_try) 2>&5
28293
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28294
(exit $ac_status); }; } &&
28295
{ ac_try='test -s conftest.$ac_objext'
28296
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28297
(eval $ac_try) 2>&5
28299
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28300
(exit $ac_status); }; }; then
28301
ac_cv_type_size_t=yes
28303
echo "$as_me: failed program was:" >&5
28304
sed 's/^/| /' conftest.$ac_ext >&5
28306
ac_cv_type_size_t=no
28308
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28310
echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
28311
echo "${ECHO_T}$ac_cv_type_size_t" >&6
28312
if test $ac_cv_type_size_t = yes; then
28316
cat >>confdefs.h <<_ACEOF
28317
#define size_t unsigned
28322
echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28323
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
28324
if test "${ac_cv_header_time+set}" = set; then
28325
echo $ECHO_N "(cached) $ECHO_C" >&6
28327
cat >conftest.$ac_ext <<_ACEOF
28330
cat confdefs.h >>conftest.$ac_ext
28331
cat >>conftest.$ac_ext <<_ACEOF
28332
/* end confdefs.h. */
28333
#include <sys/types.h>
28334
#include <sys/time.h>
28340
if ((struct tm *) 0)
28346
rm -f conftest.$ac_objext
28347
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28348
(eval $ac_compile) 2>conftest.er1
28350
grep -v '^ *+' conftest.er1 >conftest.err
28352
cat conftest.err >&5
28353
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28354
(exit $ac_status); } &&
28355
{ ac_try='test -z "$ac_c_werror_flag"
28356
|| test ! -s conftest.err'
28357
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28358
(eval $ac_try) 2>&5
28360
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28361
(exit $ac_status); }; } &&
28362
{ ac_try='test -s conftest.$ac_objext'
28363
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28364
(eval $ac_try) 2>&5
28366
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28367
(exit $ac_status); }; }; then
28368
ac_cv_header_time=yes
28370
echo "$as_me: failed program was:" >&5
28371
sed 's/^/| /' conftest.$ac_ext >&5
28373
ac_cv_header_time=no
28375
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28377
echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28378
echo "${ECHO_T}$ac_cv_header_time" >&6
28379
if test $ac_cv_header_time = yes; then
28381
cat >>confdefs.h <<\_ACEOF
28382
#define TIME_WITH_SYS_TIME 1
28388
echo "$as_me:$LINENO: checking for curl_off_t" >&5
28389
echo $ECHO_N "checking for curl_off_t... $ECHO_C" >&6
28390
if test "${ac_cv_type_curl_off_t+set}" = set; then
28391
echo $ECHO_N "(cached) $ECHO_C" >&6
28393
cat >conftest.$ac_ext <<_ACEOF
28396
cat confdefs.h >>conftest.$ac_ext
28397
cat >>conftest.$ac_ext <<_ACEOF
28398
/* end confdefs.h. */
28401
#include "$srcdir/include/curl/curl.h"
28407
if ((curl_off_t *) 0)
28409
if (sizeof (curl_off_t))
28415
rm -f conftest.$ac_objext
28416
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28417
(eval $ac_compile) 2>conftest.er1
28419
grep -v '^ *+' conftest.er1 >conftest.err
28421
cat conftest.err >&5
28422
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28423
(exit $ac_status); } &&
28424
{ ac_try='test -z "$ac_c_werror_flag"
28425
|| test ! -s conftest.err'
28426
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28427
(eval $ac_try) 2>&5
28429
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28430
(exit $ac_status); }; } &&
28431
{ ac_try='test -s conftest.$ac_objext'
28432
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28433
(eval $ac_try) 2>&5
28435
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28436
(exit $ac_status); }; }; then
28437
ac_cv_type_curl_off_t=yes
28439
echo "$as_me: failed program was:" >&5
28440
sed 's/^/| /' conftest.$ac_ext >&5
28442
ac_cv_type_curl_off_t=no
28444
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28446
echo "$as_me:$LINENO: result: $ac_cv_type_curl_off_t" >&5
28447
echo "${ECHO_T}$ac_cv_type_curl_off_t" >&6
28449
echo "$as_me:$LINENO: checking size of curl_off_t" >&5
28450
echo $ECHO_N "checking size of curl_off_t... $ECHO_C" >&6
28451
if test "${ac_cv_sizeof_curl_off_t+set}" = set; then
28452
echo $ECHO_N "(cached) $ECHO_C" >&6
28454
if test "$ac_cv_type_curl_off_t" = yes; then
28455
# The cast to unsigned long works around a bug in the HP C Compiler
28456
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28457
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28458
# This bug is HP SR number 8606223364.
28459
if test "$cross_compiling" = yes; then
28460
# Depending upon the size, compute the lo and hi bounds.
28461
cat >conftest.$ac_ext <<_ACEOF
28464
cat confdefs.h >>conftest.$ac_ext
28465
cat >>conftest.$ac_ext <<_ACEOF
28466
/* end confdefs.h. */
28469
#include "$srcdir/include/curl/curl.h"
28475
static int test_array [1 - 2 * !(((long) (sizeof (curl_off_t))) >= 0)];
28482
rm -f conftest.$ac_objext
28483
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28484
(eval $ac_compile) 2>conftest.er1
28486
grep -v '^ *+' conftest.er1 >conftest.err
28488
cat conftest.err >&5
28489
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28490
(exit $ac_status); } &&
28491
{ ac_try='test -z "$ac_c_werror_flag"
28492
|| test ! -s conftest.err'
28493
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28494
(eval $ac_try) 2>&5
28496
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28497
(exit $ac_status); }; } &&
28498
{ ac_try='test -s conftest.$ac_objext'
28499
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28500
(eval $ac_try) 2>&5
28502
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28503
(exit $ac_status); }; }; then
28506
cat >conftest.$ac_ext <<_ACEOF
28509
cat confdefs.h >>conftest.$ac_ext
28510
cat >>conftest.$ac_ext <<_ACEOF
28511
/* end confdefs.h. */
28514
#include "$srcdir/include/curl/curl.h"
28520
static int test_array [1 - 2 * !(((long) (sizeof (curl_off_t))) <= $ac_mid)];
28527
rm -f conftest.$ac_objext
28528
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28529
(eval $ac_compile) 2>conftest.er1
28531
grep -v '^ *+' conftest.er1 >conftest.err
28533
cat conftest.err >&5
28534
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28535
(exit $ac_status); } &&
28536
{ ac_try='test -z "$ac_c_werror_flag"
28537
|| test ! -s conftest.err'
28538
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28539
(eval $ac_try) 2>&5
28541
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28542
(exit $ac_status); }; } &&
28543
{ ac_try='test -s conftest.$ac_objext'
28544
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28545
(eval $ac_try) 2>&5
28547
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28548
(exit $ac_status); }; }; then
28549
ac_hi=$ac_mid; break
28551
echo "$as_me: failed program was:" >&5
28552
sed 's/^/| /' conftest.$ac_ext >&5
28554
ac_lo=`expr $ac_mid + 1`
28555
if test $ac_lo -le $ac_mid; then
28559
ac_mid=`expr 2 '*' $ac_mid + 1`
28561
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28564
echo "$as_me: failed program was:" >&5
28565
sed 's/^/| /' conftest.$ac_ext >&5
28567
cat >conftest.$ac_ext <<_ACEOF
28570
cat confdefs.h >>conftest.$ac_ext
28571
cat >>conftest.$ac_ext <<_ACEOF
28572
/* end confdefs.h. */
28575
#include "$srcdir/include/curl/curl.h"
28581
static int test_array [1 - 2 * !(((long) (sizeof (curl_off_t))) < 0)];
28588
rm -f conftest.$ac_objext
28589
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28590
(eval $ac_compile) 2>conftest.er1
28592
grep -v '^ *+' conftest.er1 >conftest.err
28594
cat conftest.err >&5
28595
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28596
(exit $ac_status); } &&
28597
{ ac_try='test -z "$ac_c_werror_flag"
28598
|| test ! -s conftest.err'
28599
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28600
(eval $ac_try) 2>&5
28602
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28603
(exit $ac_status); }; } &&
28604
{ ac_try='test -s conftest.$ac_objext'
28605
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28606
(eval $ac_try) 2>&5
28608
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28609
(exit $ac_status); }; }; then
28612
cat >conftest.$ac_ext <<_ACEOF
28615
cat confdefs.h >>conftest.$ac_ext
28616
cat >>conftest.$ac_ext <<_ACEOF
28617
/* end confdefs.h. */
28620
#include "$srcdir/include/curl/curl.h"
28626
static int test_array [1 - 2 * !(((long) (sizeof (curl_off_t))) >= $ac_mid)];
28633
rm -f conftest.$ac_objext
28634
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28635
(eval $ac_compile) 2>conftest.er1
28637
grep -v '^ *+' conftest.er1 >conftest.err
28639
cat conftest.err >&5
28640
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28641
(exit $ac_status); } &&
28642
{ ac_try='test -z "$ac_c_werror_flag"
28643
|| test ! -s conftest.err'
28644
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28645
(eval $ac_try) 2>&5
28647
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28648
(exit $ac_status); }; } &&
28649
{ ac_try='test -s conftest.$ac_objext'
28650
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28651
(eval $ac_try) 2>&5
28653
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28654
(exit $ac_status); }; }; then
28655
ac_lo=$ac_mid; break
28657
echo "$as_me: failed program was:" >&5
28658
sed 's/^/| /' conftest.$ac_ext >&5
28660
ac_hi=`expr '(' $ac_mid ')' - 1`
28661
if test $ac_mid -le $ac_hi; then
28665
ac_mid=`expr 2 '*' $ac_mid`
28667
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28670
echo "$as_me: failed program was:" >&5
28671
sed 's/^/| /' conftest.$ac_ext >&5
28675
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28677
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28678
# Binary search between lo and hi bounds.
28679
while test "x$ac_lo" != "x$ac_hi"; do
28680
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28681
cat >conftest.$ac_ext <<_ACEOF
28684
cat confdefs.h >>conftest.$ac_ext
28685
cat >>conftest.$ac_ext <<_ACEOF
28686
/* end confdefs.h. */
28689
#include "$srcdir/include/curl/curl.h"
28695
static int test_array [1 - 2 * !(((long) (sizeof (curl_off_t))) <= $ac_mid)];
28702
rm -f conftest.$ac_objext
28703
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28704
(eval $ac_compile) 2>conftest.er1
28706
grep -v '^ *+' conftest.er1 >conftest.err
28708
cat conftest.err >&5
28709
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28710
(exit $ac_status); } &&
28711
{ ac_try='test -z "$ac_c_werror_flag"
28712
|| test ! -s conftest.err'
28713
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28714
(eval $ac_try) 2>&5
28716
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28717
(exit $ac_status); }; } &&
28718
{ ac_try='test -s conftest.$ac_objext'
28719
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28720
(eval $ac_try) 2>&5
28722
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28723
(exit $ac_status); }; }; then
28726
echo "$as_me: failed program was:" >&5
28727
sed 's/^/| /' conftest.$ac_ext >&5
28729
ac_lo=`expr '(' $ac_mid ')' + 1`
28731
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28734
?*) ac_cv_sizeof_curl_off_t=$ac_lo;;
28735
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (curl_off_t), 77
28736
See \`config.log' for more details." >&5
28737
echo "$as_me: error: cannot compute sizeof (curl_off_t), 77
28738
See \`config.log' for more details." >&2;}
28739
{ (exit 1); exit 1; }; } ;;
28742
if test "$cross_compiling" = yes; then
28743
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
28744
See \`config.log' for more details." >&5
28745
echo "$as_me: error: cannot run test program while cross compiling
28746
See \`config.log' for more details." >&2;}
28747
{ (exit 1); exit 1; }; }
28749
cat >conftest.$ac_ext <<_ACEOF
28752
cat confdefs.h >>conftest.$ac_ext
28753
cat >>conftest.$ac_ext <<_ACEOF
28754
/* end confdefs.h. */
28757
#include "$srcdir/include/curl/curl.h"
28760
long longval () { return (long) (sizeof (curl_off_t)); }
28761
unsigned long ulongval () { return (long) (sizeof (curl_off_t)); }
28763
#include <stdlib.h>
28768
FILE *f = fopen ("conftest.val", "w");
28771
if (((long) (sizeof (curl_off_t))) < 0)
28773
long i = longval ();
28774
if (i != ((long) (sizeof (curl_off_t))))
28776
fprintf (f, "%ld\n", i);
28780
unsigned long i = ulongval ();
28781
if (i != ((long) (sizeof (curl_off_t))))
28783
fprintf (f, "%lu\n", i);
28785
exit (ferror (f) || fclose (f) != 0);
28791
rm -f conftest$ac_exeext
28792
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28793
(eval $ac_link) 2>&5
28795
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28796
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28797
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28798
(eval $ac_try) 2>&5
28800
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28801
(exit $ac_status); }; }; then
28802
ac_cv_sizeof_curl_off_t=`cat conftest.val`
28804
echo "$as_me: program exited with status $ac_status" >&5
28805
echo "$as_me: failed program was:" >&5
28806
sed 's/^/| /' conftest.$ac_ext >&5
28808
( exit $ac_status )
28809
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (curl_off_t), 77
28810
See \`config.log' for more details." >&5
28811
echo "$as_me: error: cannot compute sizeof (curl_off_t), 77
28812
See \`config.log' for more details." >&2;}
28813
{ (exit 1); exit 1; }; }
28815
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28820
ac_cv_sizeof_curl_off_t=0
28823
echo "$as_me:$LINENO: result: $ac_cv_sizeof_curl_off_t" >&5
28824
echo "${ECHO_T}$ac_cv_sizeof_curl_off_t" >&6
28825
cat >>confdefs.h <<_ACEOF
28826
#define SIZEOF_CURL_OFF_T $ac_cv_sizeof_curl_off_t
28831
echo "$as_me:$LINENO: checking for long long" >&5
28832
echo $ECHO_N "checking for long long... $ECHO_C" >&6
28833
if test "${ac_cv_type_long_long+set}" = set; then
28834
echo $ECHO_N "(cached) $ECHO_C" >&6
28836
cat >conftest.$ac_ext <<_ACEOF
28839
cat confdefs.h >>conftest.$ac_ext
28840
cat >>conftest.$ac_ext <<_ACEOF
28841
/* end confdefs.h. */
28842
$ac_includes_default
28846
if ((long long *) 0)
28848
if (sizeof (long long))
28854
rm -f conftest.$ac_objext
28855
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28856
(eval $ac_compile) 2>conftest.er1
28858
grep -v '^ *+' conftest.er1 >conftest.err
28860
cat conftest.err >&5
28861
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28862
(exit $ac_status); } &&
28863
{ ac_try='test -z "$ac_c_werror_flag"
28864
|| test ! -s conftest.err'
28865
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28866
(eval $ac_try) 2>&5
28868
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28869
(exit $ac_status); }; } &&
28870
{ ac_try='test -s conftest.$ac_objext'
28871
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28872
(eval $ac_try) 2>&5
28874
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28875
(exit $ac_status); }; }; then
28876
ac_cv_type_long_long=yes
28878
echo "$as_me: failed program was:" >&5
28879
sed 's/^/| /' conftest.$ac_ext >&5
28881
ac_cv_type_long_long=no
28883
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28885
echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
28886
echo "${ECHO_T}$ac_cv_type_long_long" >&6
28887
if test $ac_cv_type_long_long = yes; then
28889
cat >>confdefs.h <<\_ACEOF
28890
#define HAVE_LONGLONG 1
28896
# check for ssize_t
28897
echo "$as_me:$LINENO: checking for ssize_t" >&5
28898
echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
28899
if test "${ac_cv_type_ssize_t+set}" = set; then
28900
echo $ECHO_N "(cached) $ECHO_C" >&6
28902
cat >conftest.$ac_ext <<_ACEOF
28905
cat confdefs.h >>conftest.$ac_ext
28906
cat >>conftest.$ac_ext <<_ACEOF
28907
/* end confdefs.h. */
28908
$ac_includes_default
28914
if (sizeof (ssize_t))
28920
rm -f conftest.$ac_objext
28921
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28922
(eval $ac_compile) 2>conftest.er1
28924
grep -v '^ *+' conftest.er1 >conftest.err
28926
cat conftest.err >&5
28927
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28928
(exit $ac_status); } &&
28929
{ ac_try='test -z "$ac_c_werror_flag"
28930
|| test ! -s conftest.err'
28931
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28932
(eval $ac_try) 2>&5
28934
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28935
(exit $ac_status); }; } &&
28936
{ ac_try='test -s conftest.$ac_objext'
28937
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28938
(eval $ac_try) 2>&5
28940
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28941
(exit $ac_status); }; }; then
28942
ac_cv_type_ssize_t=yes
28944
echo "$as_me: failed program was:" >&5
28945
sed 's/^/| /' conftest.$ac_ext >&5
28947
ac_cv_type_ssize_t=no
28949
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28951
echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
28952
echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
28953
if test $ac_cv_type_ssize_t = yes; then
28957
cat >>confdefs.h <<\_ACEOF
28958
#define ssize_t int
28965
echo "$as_me:$LINENO: checking for socklen_t" >&5
28966
echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
28967
if test "${ac_cv_type_socklen_t+set}" = set; then
28968
echo $ECHO_N "(cached) $ECHO_C" >&6
28970
cat >conftest.$ac_ext <<_ACEOF
28973
cat confdefs.h >>conftest.$ac_ext
28974
cat >>conftest.$ac_ext <<_ACEOF
28975
/* end confdefs.h. */
28976
#include <sys/types.h>
28977
#include <sys/socket.h>
28982
if ((socklen_t *) 0)
28984
if (sizeof (socklen_t))
28990
rm -f conftest.$ac_objext
28991
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28992
(eval $ac_compile) 2>conftest.er1
28994
grep -v '^ *+' conftest.er1 >conftest.err
28996
cat conftest.err >&5
28997
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28998
(exit $ac_status); } &&
28999
{ ac_try='test -z "$ac_c_werror_flag"
29000
|| test ! -s conftest.err'
29001
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29002
(eval $ac_try) 2>&5
29004
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29005
(exit $ac_status); }; } &&
29006
{ ac_try='test -s conftest.$ac_objext'
29007
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29008
(eval $ac_try) 2>&5
29010
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29011
(exit $ac_status); }; }; then
29012
ac_cv_type_socklen_t=yes
29014
echo "$as_me: failed program was:" >&5
29015
sed 's/^/| /' conftest.$ac_ext >&5
29017
ac_cv_type_socklen_t=no
29019
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29021
echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
29022
echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
29023
if test $ac_cv_type_socklen_t = yes; then
29027
echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
29028
echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6
29029
if test "${curl_cv_socklen_t_equiv+set}" = set; then
29030
echo $ECHO_N "(cached) $ECHO_C" >&6
29033
# Systems have either "struct sockaddr *" or
29034
# "void *" as the second argument to getpeername
29035
curl_cv_socklen_t_equiv=
29036
for arg2 in "struct sockaddr" void; do
29037
for t in int size_t unsigned long "unsigned long"; do
29038
cat >conftest.$ac_ext <<_ACEOF
29041
cat confdefs.h >>conftest.$ac_ext
29042
cat >>conftest.$ac_ext <<_ACEOF
29043
/* end confdefs.h. */
29045
#ifdef HAVE_SYS_TYPES_H
29046
#include <sys/types.h>
29048
#ifdef HAVE_SYS_SOCKET_H
29049
#include <sys/socket.h>
29052
int getpeername (int, $arg2 *, $t *);
29059
getpeername(0,0,&len);
29065
rm -f conftest.$ac_objext
29066
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29067
(eval $ac_compile) 2>conftest.er1
29069
grep -v '^ *+' conftest.er1 >conftest.err
29071
cat conftest.err >&5
29072
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29073
(exit $ac_status); } &&
29074
{ ac_try='test -z "$ac_c_werror_flag"
29075
|| test ! -s conftest.err'
29076
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29077
(eval $ac_try) 2>&5
29079
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29080
(exit $ac_status); }; } &&
29081
{ ac_try='test -s conftest.$ac_objext'
29082
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29083
(eval $ac_try) 2>&5
29085
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29086
(exit $ac_status); }; }; then
29088
curl_cv_socklen_t_equiv="$t"
29092
echo "$as_me: failed program was:" >&5
29093
sed 's/^/| /' conftest.$ac_ext >&5
29096
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29100
if test "x$curl_cv_socklen_t_equiv" = x; then
29101
{ { echo "$as_me:$LINENO: error: Cannot find a type to use in place of socklen_t" >&5
29102
echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;}
29103
{ (exit 1); exit 1; }; }
29108
echo "$as_me:$LINENO: result: $curl_cv_socklen_t_equiv" >&5
29109
echo "${ECHO_T}$curl_cv_socklen_t_equiv" >&6
29111
cat >>confdefs.h <<_ACEOF
29112
#define socklen_t $curl_cv_socklen_t_equiv
29119
echo "$as_me:$LINENO: checking for in_addr_t" >&5
29120
echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6
29121
if test "${ac_cv_type_in_addr_t+set}" = set; then
29122
echo $ECHO_N "(cached) $ECHO_C" >&6
29124
cat >conftest.$ac_ext <<_ACEOF
29127
cat confdefs.h >>conftest.$ac_ext
29128
cat >>conftest.$ac_ext <<_ACEOF
29129
/* end confdefs.h. */
29130
#include <sys/types.h>
29131
#include <sys/socket.h>
29132
#include <arpa/inet.h>
29137
if ((in_addr_t *) 0)
29139
if (sizeof (in_addr_t))
29145
rm -f conftest.$ac_objext
29146
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29147
(eval $ac_compile) 2>conftest.er1
29149
grep -v '^ *+' conftest.er1 >conftest.err
29151
cat conftest.err >&5
29152
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29153
(exit $ac_status); } &&
29154
{ ac_try='test -z "$ac_c_werror_flag"
29155
|| test ! -s conftest.err'
29156
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29157
(eval $ac_try) 2>&5
29159
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29160
(exit $ac_status); }; } &&
29161
{ ac_try='test -s conftest.$ac_objext'
29162
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29163
(eval $ac_try) 2>&5
29165
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29166
(exit $ac_status); }; }; then
29167
ac_cv_type_in_addr_t=yes
29169
echo "$as_me: failed program was:" >&5
29170
sed 's/^/| /' conftest.$ac_ext >&5
29172
ac_cv_type_in_addr_t=no
29174
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29176
echo "$as_me:$LINENO: result: $ac_cv_type_in_addr_t" >&5
29177
echo "${ECHO_T}$ac_cv_type_in_addr_t" >&6
29178
if test $ac_cv_type_in_addr_t = yes; then
29182
echo "$as_me:$LINENO: checking for in_addr_t equivalent" >&5
29183
echo $ECHO_N "checking for in_addr_t equivalent... $ECHO_C" >&6
29184
if test "${curl_cv_in_addr_t_equiv+set}" = set; then
29185
echo $ECHO_N "(cached) $ECHO_C" >&6
29188
curl_cv_in_addr_t_equiv=
29189
for t in "unsigned long" int size_t unsigned long; do
29190
cat >conftest.$ac_ext <<_ACEOF
29193
cat confdefs.h >>conftest.$ac_ext
29194
cat >>conftest.$ac_ext <<_ACEOF
29195
/* end confdefs.h. */
29197
#ifdef HAVE_SYS_TYPES_H
29198
#include <sys/types.h>
29200
#ifdef HAVE_SYS_SOCKET_H
29201
#include <sys/socket.h>
29203
#ifdef HAVE_ARPA_INET_H
29204
#include <arpa/inet.h>
29211
$t data = inet_addr ("1.2.3.4");
29217
rm -f conftest.$ac_objext
29218
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29219
(eval $ac_compile) 2>conftest.er1
29221
grep -v '^ *+' conftest.er1 >conftest.err
29223
cat conftest.err >&5
29224
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29225
(exit $ac_status); } &&
29226
{ ac_try='test -z "$ac_c_werror_flag"
29227
|| test ! -s conftest.err'
29228
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29229
(eval $ac_try) 2>&5
29231
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29232
(exit $ac_status); }; } &&
29233
{ ac_try='test -s conftest.$ac_objext'
29234
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29235
(eval $ac_try) 2>&5
29237
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29238
(exit $ac_status); }; }; then
29240
curl_cv_in_addr_t_equiv="$t"
29244
echo "$as_me: failed program was:" >&5
29245
sed 's/^/| /' conftest.$ac_ext >&5
29248
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29251
if test "x$curl_cv_in_addr_t_equiv" = x; then
29252
{ { echo "$as_me:$LINENO: error: Cannot find a type to use in place of in_addr_t" >&5
29253
echo "$as_me: error: Cannot find a type to use in place of in_addr_t" >&2;}
29254
{ (exit 1); exit 1; }; }
29259
echo "$as_me:$LINENO: result: $curl_cv_in_addr_t_equiv" >&5
29260
echo "${ECHO_T}$curl_cv_in_addr_t_equiv" >&6
29262
cat >>confdefs.h <<_ACEOF
29263
#define in_addr_t $curl_cv_in_addr_t_equiv
29272
for ac_header in sys/select.h sys/socket.h
29274
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29275
if eval "test \"\${$as_ac_Header+set}\" = set"; then
29276
echo "$as_me:$LINENO: checking for $ac_header" >&5
29277
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29278
if eval "test \"\${$as_ac_Header+set}\" = set"; then
29279
echo $ECHO_N "(cached) $ECHO_C" >&6
29281
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29282
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29284
# Is the header compilable?
29285
echo "$as_me:$LINENO: checking $ac_header usability" >&5
29286
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29287
cat >conftest.$ac_ext <<_ACEOF
29290
cat confdefs.h >>conftest.$ac_ext
29291
cat >>conftest.$ac_ext <<_ACEOF
29292
/* end confdefs.h. */
29293
$ac_includes_default
29294
#include <$ac_header>
29296
rm -f conftest.$ac_objext
29297
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29298
(eval $ac_compile) 2>conftest.er1
29300
grep -v '^ *+' conftest.er1 >conftest.err
29302
cat conftest.err >&5
29303
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29304
(exit $ac_status); } &&
29305
{ ac_try='test -z "$ac_c_werror_flag"
29306
|| test ! -s conftest.err'
29307
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29308
(eval $ac_try) 2>&5
29310
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29311
(exit $ac_status); }; } &&
29312
{ ac_try='test -s conftest.$ac_objext'
29313
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29314
(eval $ac_try) 2>&5
29316
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29317
(exit $ac_status); }; }; then
29318
ac_header_compiler=yes
29320
echo "$as_me: failed program was:" >&5
29321
sed 's/^/| /' conftest.$ac_ext >&5
29323
ac_header_compiler=no
29325
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29326
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29327
echo "${ECHO_T}$ac_header_compiler" >&6
29329
# Is the header present?
29330
echo "$as_me:$LINENO: checking $ac_header presence" >&5
29331
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29332
cat >conftest.$ac_ext <<_ACEOF
29335
cat confdefs.h >>conftest.$ac_ext
29336
cat >>conftest.$ac_ext <<_ACEOF
29337
/* end confdefs.h. */
29338
#include <$ac_header>
29340
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29341
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29343
grep -v '^ *+' conftest.er1 >conftest.err
29345
cat conftest.err >&5
29346
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29347
(exit $ac_status); } >/dev/null; then
29348
if test -s conftest.err; then
29349
ac_cpp_err=$ac_c_preproc_warn_flag
29350
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29357
if test -z "$ac_cpp_err"; then
29358
ac_header_preproc=yes
29360
echo "$as_me: failed program was:" >&5
29361
sed 's/^/| /' conftest.$ac_ext >&5
29363
ac_header_preproc=no
29365
rm -f conftest.err conftest.$ac_ext
29366
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29367
echo "${ECHO_T}$ac_header_preproc" >&6
29369
# So? What about this header?
29370
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29372
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29373
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29374
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29375
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29376
ac_header_preproc=yes
29379
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29380
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29381
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29382
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29383
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29384
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29385
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29386
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29387
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29388
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29389
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29390
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29393
## ------------------------------- ##
29394
## Report this to curl-bug@haxx.se ##
29395
## ------------------------------- ##
29398
sed "s/^/$as_me: WARNING: /" >&2
29401
echo "$as_me:$LINENO: checking for $ac_header" >&5
29402
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29403
if eval "test \"\${$as_ac_Header+set}\" = set"; then
29404
echo $ECHO_N "(cached) $ECHO_C" >&6
29406
eval "$as_ac_Header=\$ac_header_preproc"
29408
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29409
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29412
if test `eval echo '${'$as_ac_Header'}'` = yes; then
29413
cat >>confdefs.h <<_ACEOF
29414
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29421
echo "$as_me:$LINENO: checking types of arguments for select" >&5
29422
echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
29423
if test "${ac_cv_func_select_args+set}" = set; then
29424
echo $ECHO_N "(cached) $ECHO_C" >&6
29426
for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
29427
for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
29428
for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
29429
cat >conftest.$ac_ext <<_ACEOF
29432
cat confdefs.h >>conftest.$ac_ext
29433
cat >>conftest.$ac_ext <<_ACEOF
29434
/* end confdefs.h. */
29435
$ac_includes_default
29436
#if HAVE_SYS_SELECT_H
29437
# include <sys/select.h>
29439
#if HAVE_SYS_SOCKET_H
29440
# include <sys/socket.h>
29446
extern int select ($ac_arg1,
29447
$ac_arg234, $ac_arg234, $ac_arg234,
29453
rm -f conftest.$ac_objext
29454
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29455
(eval $ac_compile) 2>conftest.er1
29457
grep -v '^ *+' conftest.er1 >conftest.err
29459
cat conftest.err >&5
29460
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29461
(exit $ac_status); } &&
29462
{ ac_try='test -z "$ac_c_werror_flag"
29463
|| test ! -s conftest.err'
29464
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29465
(eval $ac_try) 2>&5
29467
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29468
(exit $ac_status); }; } &&
29469
{ ac_try='test -s conftest.$ac_objext'
29470
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29471
(eval $ac_try) 2>&5
29473
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29474
(exit $ac_status); }; }; then
29475
ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
29477
echo "$as_me: failed program was:" >&5
29478
sed 's/^/| /' conftest.$ac_ext >&5
29481
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29485
# Provide a safe default value.
29486
: ${ac_cv_func_select_args='int,int *,struct timeval *'}
29489
echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
29490
echo "${ECHO_T}$ac_cv_func_select_args" >&6
29491
ac_save_IFS=$IFS; IFS=','
29492
set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
29496
cat >>confdefs.h <<_ACEOF
29497
#define SELECT_TYPE_ARG1 $1
29501
cat >>confdefs.h <<_ACEOF
29502
#define SELECT_TYPE_ARG234 ($2)
29506
cat >>confdefs.h <<_ACEOF
29507
#define SELECT_TYPE_ARG5 ($3)
29513
echo "$as_me:$LINENO: checking return type of signal handlers" >&5
29514
echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
29515
if test "${ac_cv_type_signal+set}" = set; then
29516
echo $ECHO_N "(cached) $ECHO_C" >&6
29518
cat >conftest.$ac_ext <<_ACEOF
29521
cat confdefs.h >>conftest.$ac_ext
29522
cat >>conftest.$ac_ext <<_ACEOF
29523
/* end confdefs.h. */
29524
#include <sys/types.h>
29525
#include <signal.h>
29530
extern "C" void (*signal (int, void (*)(int)))(int);
29532
void (*signal ()) ();
29543
rm -f conftest.$ac_objext
29544
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29545
(eval $ac_compile) 2>conftest.er1
29547
grep -v '^ *+' conftest.er1 >conftest.err
29549
cat conftest.err >&5
29550
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29551
(exit $ac_status); } &&
29552
{ ac_try='test -z "$ac_c_werror_flag"
29553
|| test ! -s conftest.err'
29554
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29555
(eval $ac_try) 2>&5
29557
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29558
(exit $ac_status); }; } &&
29559
{ ac_try='test -s conftest.$ac_objext'
29560
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29561
(eval $ac_try) 2>&5
29563
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29564
(exit $ac_status); }; }; then
29565
ac_cv_type_signal=void
29567
echo "$as_me: failed program was:" >&5
29568
sed 's/^/| /' conftest.$ac_ext >&5
29570
ac_cv_type_signal=int
29572
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29574
echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
29575
echo "${ECHO_T}$ac_cv_type_signal" >&6
29577
cat >>confdefs.h <<_ACEOF
29578
#define RETSIGTYPE $ac_cv_type_signal
29613
for ac_func in strtoll \
29645
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29646
echo "$as_me:$LINENO: checking for $ac_func" >&5
29647
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29648
if eval "test \"\${$as_ac_var+set}\" = set"; then
29649
echo $ECHO_N "(cached) $ECHO_C" >&6
29651
cat >conftest.$ac_ext <<_ACEOF
29654
cat confdefs.h >>conftest.$ac_ext
29655
cat >>conftest.$ac_ext <<_ACEOF
29656
/* end confdefs.h. */
29657
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29658
For example, HP-UX 11i <limits.h> declares gettimeofday. */
29659
#define $ac_func innocuous_$ac_func
29661
/* System header to define __stub macros and hopefully few prototypes,
29662
which can conflict with char $ac_func (); below.
29663
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29664
<limits.h> exists even on freestanding compilers. */
29667
# include <limits.h>
29669
# include <assert.h>
29674
/* Override any gcc2 internal prototype to avoid an error. */
29679
/* We use char because int might match the return type of a gcc2
29680
builtin and then its argument prototype would still apply. */
29682
/* The GNU C library defines this for functions which it implements
29683
to always fail with ENOSYS. Some functions are actually named
29684
something starting with __ and the normal name is an alias. */
29685
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29688
char (*f) () = $ac_func;
29697
return f != $ac_func;
29702
rm -f conftest.$ac_objext conftest$ac_exeext
29703
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29704
(eval $ac_link) 2>conftest.er1
29706
grep -v '^ *+' conftest.er1 >conftest.err
29708
cat conftest.err >&5
29709
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29710
(exit $ac_status); } &&
29711
{ ac_try='test -z "$ac_c_werror_flag"
29712
|| test ! -s conftest.err'
29713
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29714
(eval $ac_try) 2>&5
29716
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29717
(exit $ac_status); }; } &&
29718
{ ac_try='test -s conftest$ac_exeext'
29719
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29720
(eval $ac_try) 2>&5
29722
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29723
(exit $ac_status); }; }; then
29724
eval "$as_ac_var=yes"
29726
echo "$as_me: failed program was:" >&5
29727
sed 's/^/| /' conftest.$ac_ext >&5
29729
eval "$as_ac_var=no"
29731
rm -f conftest.err conftest.$ac_objext \
29732
conftest$ac_exeext conftest.$ac_ext
29734
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29735
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29736
if test `eval echo '${'$as_ac_var'}'` = yes; then
29737
cat >>confdefs.h <<_ACEOF
29738
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29743
echo "$as_me:$LINENO: checking deeper for $func" >&5
29744
echo $ECHO_N "checking deeper for $func... $ECHO_C" >&6
29745
cat >conftest.$ac_ext <<_ACEOF
29748
cat confdefs.h >>conftest.$ac_ext
29749
cat >>conftest.$ac_ext <<_ACEOF
29750
/* end confdefs.h. */
29760
rm -f conftest.$ac_objext conftest$ac_exeext
29761
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29762
(eval $ac_link) 2>conftest.er1
29764
grep -v '^ *+' conftest.er1 >conftest.err
29766
cat conftest.err >&5
29767
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29768
(exit $ac_status); } &&
29769
{ ac_try='test -z "$ac_c_werror_flag"
29770
|| test ! -s conftest.err'
29771
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29772
(eval $ac_try) 2>&5
29774
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29775
(exit $ac_status); }; } &&
29776
{ ac_try='test -s conftest$ac_exeext'
29777
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29778
(eval $ac_try) 2>&5
29780
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29781
(exit $ac_status); }; }; then
29782
echo "$as_me:$LINENO: result: yes!" >&5
29783
echo "${ECHO_T}yes!" >&6
29784
eval "ac_cv_func_$func=yes"
29785
def=`echo "HAVE_$func" | tr 'a-z' 'A-Z'`
29787
cat >>confdefs.h <<_ACEOF
29792
echo "$as_me: failed program was:" >&5
29793
sed 's/^/| /' conftest.$ac_ext >&5
29795
echo "$as_me:$LINENO: result: but still no" >&5
29796
echo "${ECHO_T}but still no" >&6
29799
rm -f conftest.err conftest.$ac_objext \
29800
conftest$ac_exeext conftest.$ac_ext
29807
if test "$ac_cv_func_sigsetjmp" != "yes"; then
29808
echo "$as_me:$LINENO: checking for sigsetjmp defined as macro" >&5
29809
echo $ECHO_N "checking for sigsetjmp defined as macro... $ECHO_C" >&6
29810
cat >conftest.$ac_ext <<_ACEOF
29813
cat confdefs.h >>conftest.$ac_ext
29814
cat >>conftest.$ac_ext <<_ACEOF
29815
/* end confdefs.h. */
29816
#include <setjmp.h>
29821
sigsetjmp(jmpenv, 1);
29826
rm -f conftest.$ac_objext conftest$ac_exeext
29827
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29828
(eval $ac_link) 2>conftest.er1
29830
grep -v '^ *+' conftest.er1 >conftest.err
29832
cat conftest.err >&5
29833
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29834
(exit $ac_status); } &&
29835
{ ac_try='test -z "$ac_c_werror_flag"
29836
|| test ! -s conftest.err'
29837
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29838
(eval $ac_try) 2>&5
29840
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29841
(exit $ac_status); }; } &&
29842
{ ac_try='test -s conftest$ac_exeext'
29843
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29844
(eval $ac_try) 2>&5
29846
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29847
(exit $ac_status); }; }; then
29848
echo "$as_me:$LINENO: result: yes" >&5
29849
echo "${ECHO_T}yes" >&6
29851
cat >>confdefs.h <<\_ACEOF
29852
#define HAVE_SIGSETJMP 1
29856
echo "$as_me: failed program was:" >&5
29857
sed 's/^/| /' conftest.$ac_ext >&5
29859
echo "$as_me:$LINENO: result: no" >&5
29860
echo "${ECHO_T}no" >&6
29863
rm -f conftest.err conftest.$ac_objext \
29864
conftest$ac_exeext conftest.$ac_ext
29867
# Extract the first word of "perl", so it can be a program name with args.
29868
set dummy perl; ac_word=$2
29869
echo "$as_me:$LINENO: checking for $ac_word" >&5
29870
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29871
if test "${ac_cv_path_PERL+set}" = set; then
29872
echo $ECHO_N "(cached) $ECHO_C" >&6
29876
ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
29879
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29880
as_dummy="$PATH:/usr/local/bin/perl:/usr/bin/:/usr/local/bin "
29881
for as_dir in $as_dummy
29884
test -z "$as_dir" && as_dir=.
29885
for ac_exec_ext in '' $ac_executable_extensions; do
29886
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29887
ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
29888
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29897
PERL=$ac_cv_path_PERL
29899
if test -n "$PERL"; then
29900
echo "$as_me:$LINENO: result: $PERL" >&5
29901
echo "${ECHO_T}$PERL" >&6
29903
echo "$as_me:$LINENO: result: no" >&5
29904
echo "${ECHO_T}no" >&6
29909
for ac_prog in gnroff nroff
29911
# Extract the first word of "$ac_prog", so it can be a program name with args.
29912
set dummy $ac_prog; ac_word=$2
29913
echo "$as_me:$LINENO: checking for $ac_word" >&5
29914
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29915
if test "${ac_cv_path_NROFF+set}" = set; then
29916
echo $ECHO_N "(cached) $ECHO_C" >&6
29920
ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
29923
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29924
as_dummy="$PATH:/usr/bin/:/usr/local/bin "
29925
for as_dir in $as_dummy
29928
test -z "$as_dir" && as_dir=.
29929
for ac_exec_ext in '' $ac_executable_extensions; do
29930
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29931
ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
29932
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29941
NROFF=$ac_cv_path_NROFF
29943
if test -n "$NROFF"; then
29944
echo "$as_me:$LINENO: result: $NROFF" >&5
29945
echo "${ECHO_T}$NROFF" >&6
29947
echo "$as_me:$LINENO: result: no" >&5
29948
echo "${ECHO_T}no" >&6
29951
test -n "$NROFF" && break
29956
if test -n "$NROFF"; then
29958
echo "$as_me:$LINENO: checking how to use *nroff to get plain text from man pages" >&5
29959
echo $ECHO_N "checking how to use *nroff to get plain text from man pages... $ECHO_C" >&6
29961
mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
29962
if test -z "$mancheck"; then
29964
mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
29965
if test -z "$mancheck"; then
29967
echo "$as_me:$LINENO: result: failed" >&5
29968
echo "${ECHO_T}failed" >&6
29969
{ echo "$as_me:$LINENO: WARNING: found no *nroff option to get plaintext from man pages" >&5
29970
echo "$as_me: WARNING: found no *nroff option to get plaintext from man pages" >&2;}
29972
echo "$as_me:$LINENO: result: $MANOPT" >&5
29973
echo "${ECHO_T}$MANOPT" >&6
29976
echo "$as_me:$LINENO: result: $MANOPT" >&5
29977
echo "${ECHO_T}$MANOPT" >&6
29982
if test -z "$MANOPT"
29984
{ echo "$as_me:$LINENO: WARNING: disabling built-in manual" >&5
29985
echo "$as_me: WARNING: disabling built-in manual" >&2;}
29989
for ac_prog in 'bison -y' byacc
29991
# Extract the first word of "$ac_prog", so it can be a program name with args.
29992
set dummy $ac_prog; ac_word=$2
29993
echo "$as_me:$LINENO: checking for $ac_word" >&5
29994
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29995
if test "${ac_cv_prog_YACC+set}" = set; then
29996
echo $ECHO_N "(cached) $ECHO_C" >&6
29998
if test -n "$YACC"; then
29999
ac_cv_prog_YACC="$YACC" # Let the user override the test.
30001
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30002
for as_dir in $PATH
30005
test -z "$as_dir" && as_dir=.
30006
for ac_exec_ext in '' $ac_executable_extensions; do
30007
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30008
ac_cv_prog_YACC="$ac_prog"
30009
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30017
YACC=$ac_cv_prog_YACC
30018
if test -n "$YACC"; then
30019
echo "$as_me:$LINENO: result: $YACC" >&5
30020
echo "${ECHO_T}$YACC" >&6
30022
echo "$as_me:$LINENO: result: no" >&5
30023
echo "${ECHO_T}no" >&6
30026
test -n "$YACC" && break
30028
test -n "$YACC" || YACC="yacc"
30033
echo "$as_me:$LINENO: checking if OK to build without bison/yacc" >&5
30034
echo $ECHO_N "checking if OK to build without bison/yacc... $ECHO_C" >&6
30035
if test -r "$srcdir/lib/getdate.c"
30037
echo "$as_me:$LINENO: result: yes" >&5
30038
echo "${ECHO_T}yes" >&6
30040
echo "$as_me:$LINENO: result: no" >&5
30041
echo "${ECHO_T}no" >&6
30042
{ { echo "$as_me:$LINENO: error: no yacc or bison found, can't build libcurl!" >&5
30043
echo "$as_me: error: no yacc or bison found, can't build libcurl!" >&2;}
30044
{ (exit 1); exit 1; }; }
30049
if test "$USE_MANUAL" = "1"; then
30051
cat >>confdefs.h <<\_ACEOF
30052
#define USE_MANUAL 1
30059
if test x"$USE_MANUAL" = x1; then
30061
USE_MANUAL_FALSE='#'
30063
USE_MANUAL_TRUE='#'
30070
echo "$as_me:$LINENO: checking whether to enable debug options" >&5
30071
echo $ECHO_N "checking whether to enable debug options... $ECHO_C" >&6
30072
# Check whether --enable-debug or --disable-debug was given.
30073
if test "${enable_debug+set}" = set; then
30074
enableval="$enable_debug"
30075
case "$enableval" in
30077
echo "$as_me:$LINENO: result: no" >&5
30078
echo "${ECHO_T}no" >&6
30080
*) echo "$as_me:$LINENO: result: yes" >&5
30081
echo "${ECHO_T}yes" >&6
30083
CPPFLAGS="$CPPFLAGS -DCURLDEBUG"
30084
CFLAGS="$CFLAGS -g"
30087
if test "$GCC" = "yes"; then
30089
echo "$as_me:$LINENO: checking gcc version" >&5
30090
echo $ECHO_N "checking gcc version... $ECHO_C" >&6
30091
gccver=`$CC -dumpversion`
30092
num1=`echo $gccver | cut -d . -f1`
30093
num2=`echo $gccver | cut -d . -f2`
30094
gccnum=`(expr $num1 "*" 100 + $num2) 2>/dev/null`
30095
echo "$as_me:$LINENO: result: $gccver" >&5
30096
echo "${ECHO_T}$gccver" >&6
30098
echo "$as_me:$LINENO: checking if this is icc in disguise" >&5
30099
echo $ECHO_N "checking if this is icc in disguise... $ECHO_C" >&6
30100
cat >conftest.$ac_ext <<_ACEOF
30103
cat confdefs.h >>conftest.$ac_ext
30104
cat >>conftest.$ac_ext <<_ACEOF
30105
/* end confdefs.h. */
30108
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30109
$EGREP "^__INTEL_COMPILER" >/dev/null 2>&1; then
30111
echo "$as_me:$LINENO: result: no" >&5
30112
echo "${ECHO_T}no" >&6
30115
echo "$as_me:$LINENO: result: yes" >&5
30116
echo "${ECHO_T}yes" >&6
30122
if test "$ICC" = "yes"; then
30125
WARN="-wd279,269,1419,981"
30127
if test "$gccnum" -gt "600"; then
30130
else WARN="-W -Wall -Wwrite-strings -pedantic -Wno-long-long -Wpointer-arith -Wnested-externs -Winline -Wmissing-declarations -Wmissing-prototypes -Wsign-compare"
30133
if test "$gccnum" -gt "295"; then
30134
WARN="$WARN -Wundef"
30137
if test "$gccnum" -ge "296"; then
30138
WARN="$WARN -Wfloat-equal"
30141
if test "$gccnum" -gt "296"; then
30142
WARN="$WARN -Wno-format-nonliteral"
30145
if test "$gccnum" -ge "303"; then
30146
WARN="$WARN -Wendif-labels -Wstrict-prototypes"
30149
for flag in $CPPFLAGS; do
30152
add=`echo $flag | sed 's/^-I/-isystem /g'`
30159
CFLAGS="$CFLAGS $WARN"
30161
{ echo "$as_me:$LINENO: Added this set of compiler options: $WARN" >&5
30162
echo "$as_me: Added this set of compiler options: $WARN" >&6;}
30165
{ echo "$as_me:$LINENO: Added no extra compiler options" >&5
30166
echo "$as_me: Added no extra compiler options" >&6;}
30170
for flag in $CFLAGS; do
30175
NEWFLAGS="$NEWFLAGS $flag"
30186
echo "$as_me:$LINENO: result: no" >&5
30187
echo "${ECHO_T}no" >&6
30191
echo "$as_me:$LINENO: checking whether to enable ares" >&5
30192
echo $ECHO_N "checking whether to enable ares... $ECHO_C" >&6
30193
# Check whether --enable-ares or --disable-ares was given.
30194
if test "${enable_ares+set}" = set; then
30195
enableval="$enable_ares"
30196
case "$enableval" in
30198
echo "$as_me:$LINENO: result: no" >&5
30199
echo "${ECHO_T}no" >&6
30201
*) echo "$as_me:$LINENO: result: yes" >&5
30202
echo "${ECHO_T}yes" >&6
30204
if test "x$IPV6_ENABLED" = "x1"; then
30205
{ { echo "$as_me:$LINENO: error: ares doesn't work with ipv6, disable ipv6 to use ares" >&5
30206
echo "$as_me: error: ares doesn't work with ipv6, disable ipv6 to use ares" >&2;}
30207
{ (exit 1); exit 1; }; }
30211
cat >>confdefs.h <<\_ACEOF
30218
LIBS="$LIBS -lcares"
30220
if test "x$enableval" = "xyes" ; then
30221
if test -d "$srcdir/ares"; then
30225
subdirs="$subdirs ares"
30227
aresinc=`cd $srcdir/ares && pwd`
30228
CPPFLAGS="$CPPFLAGS -I$aresinc"
30231
LDFLAGS="$LDFLAGS -L$pwd/ares"
30234
CPPFLAGS="$CPPFLAGS -I$enableval/include"
30235
LDFLAGS="$LDFLAGS -L$enableval/lib"
30238
if test -z "$aresembedded"; then
30239
echo "$as_me:$LINENO: checking that c-ares is good and recent enough" >&5
30240
echo $ECHO_N "checking that c-ares is good and recent enough... $ECHO_C" >&6
30241
cat >conftest.$ac_ext <<_ACEOF
30244
/* provide a set of dummy functions in case c-ares was built with debug */
30245
void curl_dofree() { }
30246
void curl_sclose() { }
30247
void curl_domalloc() { }
30251
ares_channel channel;
30252
ares_cancel(channel);
30257
rm -f conftest.$ac_objext conftest$ac_exeext
30258
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30259
(eval $ac_link) 2>conftest.er1
30261
grep -v '^ *+' conftest.er1 >conftest.err
30263
cat conftest.err >&5
30264
echo "$as_me:$LINENO: \$? = $ac_status" >&5
30265
(exit $ac_status); } &&
30266
{ ac_try='test -z "$ac_c_werror_flag"
30267
|| test ! -s conftest.err'
30268
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30269
(eval $ac_try) 2>&5
30271
echo "$as_me:$LINENO: \$? = $ac_status" >&5
30272
(exit $ac_status); }; } &&
30273
{ ac_try='test -s conftest$ac_exeext'
30274
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30275
(eval $ac_try) 2>&5
30277
echo "$as_me:$LINENO: \$? = $ac_status" >&5
30278
(exit $ac_status); }; }; then
30279
echo "$as_me:$LINENO: result: yes" >&5
30280
echo "${ECHO_T}yes" >&6
30282
echo "$as_me: failed program was:" >&5
30283
sed 's/^/| /' conftest.$ac_ext >&5
30285
echo "$as_me:$LINENO: result: no" >&5
30286
echo "${ECHO_T}no" >&6
30287
{ { echo "$as_me:$LINENO: error: c-ares library defective or too old" >&5
30288
echo "$as_me: error: c-ares library defective or too old" >&2;}
30289
{ (exit 1); exit 1; }; }
30292
rm -f conftest.err conftest.$ac_objext \
30293
conftest$ac_exeext conftest.$ac_ext
30298
echo "$as_me:$LINENO: result: no" >&5
30299
echo "${ECHO_T}no" >&6
30303
ac_config_files="$ac_config_files Makefile docs/Makefile docs/examples/Makefile docs/libcurl/Makefile include/Makefile include/curl/Makefile src/Makefile lib/Makefile tests/Makefile tests/data/Makefile tests/server/Makefile tests/libtest/Makefile packages/Makefile packages/Win32/Makefile packages/Win32/cygwin/Makefile packages/Linux/Makefile packages/Linux/RPM/Makefile packages/Linux/RPM/curl.spec packages/Linux/RPM/curl-ssl.spec packages/Solaris/Makefile packages/DOS/Makefile packages/EPM/curl.list packages/EPM/Makefile packages/vms/Makefile curl-config"
30305
cat >confcache <<\_ACEOF
30306
# This file is a shell script that caches the results of configure
30307
# tests run on this system so they can be shared between configure
30308
# scripts and configure runs, see configure's option --config-cache.
30309
# It is not useful on other systems. If it contains results you don't
30310
# want to keep, you may remove or edit it.
30312
# config.status only pays attention to the cache file if you give it
30313
# the --recheck option to rerun configure.
30315
# `ac_cv_env_foo' variables (set or unset) will be overridden when
30316
# loading this file, other *unset* `ac_cv_foo' will be assigned the
30317
# following values.
30321
# The following way of writing the cache mishandles newlines in values,
30322
# but we know of no workaround that is simple, portable, and efficient.
30323
# So, don't put newlines in cache variables' values.
30324
# Ultrix sh set writes to stderr and can't be redirected directly,
30325
# and sets the high bit in the cache file unless we assign to the vars.
30328
case `(ac_space=' '; set | grep ac_space) 2>&1` in
30330
# `set' does not quote correctly, so add quotes (double-quote
30331
# substitution turns \\\\ into \\, and sed turns \\ into \).
30334
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30337
# `set' quotes correctly as required by POSIX, so do not add quotes.
30339
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
30346
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30348
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30350
if diff $cache_file confcache >/dev/null 2>&1; then :; else
30351
if test -w $cache_file; then
30352
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
30353
cat confcache >$cache_file
30355
echo "not updating unwritable cache $cache_file"
30360
test "x$prefix" = xNONE && prefix=$ac_default_prefix
30361
# Let make expand exec_prefix.
30362
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30364
# VPATH may cause trouble with some makes, so we remove $(srcdir),
30365
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30366
# trailing colons and then remove the whole line if VPATH becomes empty
30367
# (actually we leave an empty line to preserve line numbers).
30368
if test "x$srcdir" = x.; then
30369
ac_vpsub='/^[ ]*VPATH[ ]*=/{
30370
s/:*\$(srcdir):*/:/;
30371
s/:*\${srcdir}:*/:/;
30373
s/^\([^=]*=[ ]*\):*/\1/;
30379
DEFS=-DHAVE_CONFIG_H
30383
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30384
# 1. Remove the extension, and $U if already installed.
30385
ac_i=`echo "$ac_i" |
30386
sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
30388
ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
30389
ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
30391
LIBOBJS=$ac_libobjs
30393
LTLIBOBJS=$ac_ltlibobjs
30396
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
30397
{ { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
30398
Usually this means the macro was only invoked conditionally." >&5
30399
echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
30400
Usually this means the macro was only invoked conditionally." >&2;}
30401
{ (exit 1); exit 1; }; }
30403
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
30404
{ { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
30405
Usually this means the macro was only invoked conditionally." >&5
30406
echo "$as_me: error: conditional \"AMDEP\" was never defined.
30407
Usually this means the macro was only invoked conditionally." >&2;}
30408
{ (exit 1); exit 1; }; }
30410
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
30411
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
30412
Usually this means the macro was only invoked conditionally." >&5
30413
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
30414
Usually this means the macro was only invoked conditionally." >&2;}
30415
{ (exit 1); exit 1; }; }
30417
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
30418
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
30419
Usually this means the macro was only invoked conditionally." >&5
30420
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
30421
Usually this means the macro was only invoked conditionally." >&2;}
30422
{ (exit 1); exit 1; }; }
30424
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
30425
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
30426
Usually this means the macro was only invoked conditionally." >&5
30427
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
30428
Usually this means the macro was only invoked conditionally." >&2;}
30429
{ (exit 1); exit 1; }; }
30431
if test -z "${NO_UNDEFINED_TRUE}" && test -z "${NO_UNDEFINED_FALSE}"; then
30432
{ { echo "$as_me:$LINENO: error: conditional \"NO_UNDEFINED\" was never defined.
30433
Usually this means the macro was only invoked conditionally." >&5
30434
echo "$as_me: error: conditional \"NO_UNDEFINED\" was never defined.
30435
Usually this means the macro was only invoked conditionally." >&2;}
30436
{ (exit 1); exit 1; }; }
30438
if test -z "${MIMPURE_TRUE}" && test -z "${MIMPURE_FALSE}"; then
30439
{ { echo "$as_me:$LINENO: error: conditional \"MIMPURE\" was never defined.
30440
Usually this means the macro was only invoked conditionally." >&5
30441
echo "$as_me: error: conditional \"MIMPURE\" was never defined.
30442
Usually this means the macro was only invoked conditionally." >&2;}
30443
{ (exit 1); exit 1; }; }
30445
if test -z "${CABUNDLE_TRUE}" && test -z "${CABUNDLE_FALSE}"; then
30446
{ { echo "$as_me:$LINENO: error: conditional \"CABUNDLE\" was never defined.
30447
Usually this means the macro was only invoked conditionally." >&5
30448
echo "$as_me: error: conditional \"CABUNDLE\" was never defined.
30449
Usually this means the macro was only invoked conditionally." >&2;}
30450
{ (exit 1); exit 1; }; }
30452
if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then
30453
{ { echo "$as_me:$LINENO: error: conditional \"HAVE_LIBZ\" was never defined.
30454
Usually this means the macro was only invoked conditionally." >&5
30455
echo "$as_me: error: conditional \"HAVE_LIBZ\" was never defined.
30456
Usually this means the macro was only invoked conditionally." >&2;}
30457
{ (exit 1); exit 1; }; }
30459
if test -z "${USE_MANUAL_TRUE}" && test -z "${USE_MANUAL_FALSE}"; then
30460
{ { echo "$as_me:$LINENO: error: conditional \"USE_MANUAL\" was never defined.
30461
Usually this means the macro was only invoked conditionally." >&5
30462
echo "$as_me: error: conditional \"USE_MANUAL\" was never defined.
30463
Usually this means the macro was only invoked conditionally." >&2;}
30464
{ (exit 1); exit 1; }; }
30467
: ${CONFIG_STATUS=./config.status}
30468
ac_clean_files_save=$ac_clean_files
30469
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30470
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30471
echo "$as_me: creating $CONFIG_STATUS" >&6;}
30472
cat >$CONFIG_STATUS <<_ACEOF
30474
# Generated by $as_me.
30475
# Run this file to recreate the current configuration.
30476
# Compiler output produced by configure, useful for debugging
30477
# configure, is in config.log if it exists.
30480
ac_cs_recheck=false
30482
SHELL=\${CONFIG_SHELL-$SHELL}
30485
cat >>$CONFIG_STATUS <<\_ACEOF
30486
## --------------------- ##
30487
## M4sh Initialization. ##
30488
## --------------------- ##
30490
# Be Bourne compatible
30491
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30494
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30495
# is contrary to our usage. Disable this feature.
30496
alias -g '${1+"$@"}'='"$@"'
30497
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30500
DUALCASE=1; export DUALCASE # for MKS sh
30502
# Support unset when possible.
30503
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30510
# Work around bugs in pre-3.0 UWIN ksh.
30511
$as_unset ENV MAIL MAILPATH
30518
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30519
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30520
LC_TELEPHONE LC_TIME
30522
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30523
eval $as_var=C; export $as_var
30529
# Required to use basename.
30530
if expr a : '\(a\)' >/dev/null 2>&1; then
30536
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
30537
as_basename=basename
30543
# Name of the executable.
30544
as_me=`$as_basename "$0" ||
30545
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30546
X"$0" : 'X\(//\)$' \| \
30547
X"$0" : 'X\(/\)$' \| \
30548
. : '\(.\)' 2>/dev/null ||
30550
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
30551
/^X\/\(\/\/\)$/{ s//\1/; q; }
30552
/^X\/\(\/\).*/{ s//\1/; q; }
30556
# PATH needs CR, and LINENO needs CR and PATH.
30557
# Avoid depending upon Character Ranges.
30558
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30559
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30560
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30561
as_cr_digits='0123456789'
30562
as_cr_alnum=$as_cr_Letters$as_cr_digits
30564
# The user is always right.
30565
if test "${PATH_SEPARATOR+set}" != set; then
30566
echo "#! /bin/sh" >conf$$.sh
30567
echo "exit 0" >>conf$$.sh
30569
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30578
as_lineno_1=$LINENO
30579
as_lineno_2=$LINENO
30580
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30581
test "x$as_lineno_1" != "x$as_lineno_2" &&
30582
test "x$as_lineno_3" = "x$as_lineno_2" || {
30583
# Find who we are. Look in the path if we contain no path at all
30586
*[\\/]* ) as_myself=$0 ;;
30587
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30588
for as_dir in $PATH
30591
test -z "$as_dir" && as_dir=.
30592
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30597
# We did not find ourselves, most probably we were run as `sh COMMAND'
30598
# in which case we are not to be found in the path.
30599
if test "x$as_myself" = x; then
30602
if test ! -f "$as_myself"; then
30603
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
30604
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
30605
{ (exit 1); exit 1; }; }
30607
case $CONFIG_SHELL in
30609
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30610
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
30613
test -z "$as_dir" && as_dir=.
30614
for as_base in sh bash ksh sh5; do
30617
if ("$as_dir/$as_base" -c '
30618
as_lineno_1=$LINENO
30619
as_lineno_2=$LINENO
30620
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30621
test "x$as_lineno_1" != "x$as_lineno_2" &&
30622
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
30623
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
30624
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
30625
CONFIG_SHELL=$as_dir/$as_base
30626
export CONFIG_SHELL
30627
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
30635
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30636
# uniformly replaced by the line number. The first 'sed' inserts a
30637
# line-number line before each line; the second 'sed' does the real
30638
# work. The second script uses 'N' to pair each line-number line
30639
# with the numbered line, and appends trailing '-' during
30640
# substitution so that $LINENO is not a special case at line end.
30641
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30642
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
30643
sed '=' <$as_myself |
30648
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
30651
s,^['$as_cr_digits']*\n,,
30652
' >$as_me.lineno &&
30653
chmod +x $as_me.lineno ||
30654
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
30655
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
30656
{ (exit 1); exit 1; }; }
30658
# Don't try to exec as it changes $[0], causing all sort of problems
30659
# (the dirname of $[0] is not the place where we might find the
30660
# original and so on. Autoconf is especially sensible to this).
30662
# Exit status is that of the last command.
30667
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
30668
*c*,-n*) ECHO_N= ECHO_C='
30670
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
30671
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
30674
if expr a : '\(a\)' >/dev/null 2>&1; then
30680
rm -f conf$$ conf$$.exe conf$$.file
30682
if ln -s conf$$.file conf$$ 2>/dev/null; then
30683
# We could just check for DJGPP; but this test a) works b) is more generic
30684
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
30685
if test -f conf$$.exe; then
30686
# Don't use ln at all; we don't have any links
30691
elif ln conf$$.file conf$$ 2>/dev/null; then
30696
rm -f conf$$ conf$$.exe conf$$.file
30698
if mkdir -p . 2>/dev/null; then
30701
test -d ./-p && rmdir ./-p
30705
as_executable_p="test -f"
30707
# Sed expression to map a string onto a valid CPP name.
30708
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30710
# Sed expression to map a string onto a valid variable name.
30711
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30715
# We need space, tab and new line, in precisely that order.
30725
# Open the log real soon, to keep \$[0] and so on meaningful, and to
30726
# report actual input values of CONFIG_FILES etc. instead of their
30727
# values after options handling. Logging --version etc. is OK.
30731
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30732
## Running $as_me. ##
30737
This file was extended by curl $as_me -, which was
30738
generated by GNU Autoconf 2.59. Invocation command line was
30740
CONFIG_FILES = $CONFIG_FILES
30741
CONFIG_HEADERS = $CONFIG_HEADERS
30742
CONFIG_LINKS = $CONFIG_LINKS
30743
CONFIG_COMMANDS = $CONFIG_COMMANDS
30747
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
30751
# Files that config.status was made for.
30752
if test -n "$ac_config_files"; then
30753
echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
30756
if test -n "$ac_config_headers"; then
30757
echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
30760
if test -n "$ac_config_links"; then
30761
echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
30764
if test -n "$ac_config_commands"; then
30765
echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
30768
cat >>$CONFIG_STATUS <<\_ACEOF
30771
\`$as_me' instantiates files from templates according to the
30772
current configuration.
30774
Usage: $0 [OPTIONS] [FILE]...
30776
-h, --help print this help, then exit
30777
-V, --version print version number, then exit
30778
-q, --quiet do not print progress messages
30779
-d, --debug don't remove temporary files
30780
--recheck update $as_me by reconfiguring in the same conditions
30781
--file=FILE[:TEMPLATE]
30782
instantiate the configuration file FILE
30783
--header=FILE[:TEMPLATE]
30784
instantiate the configuration header FILE
30786
Configuration files:
30789
Configuration headers:
30792
Configuration commands:
30795
Report bugs to <bug-autoconf@gnu.org>."
30798
cat >>$CONFIG_STATUS <<_ACEOF
30800
curl config.status -
30801
configured by $0, generated by GNU Autoconf 2.59,
30802
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
30804
Copyright (C) 2003 Free Software Foundation, Inc.
30805
This config.status script is free software; the Free Software Foundation
30806
gives unlimited permission to copy, distribute and modify it."
30811
cat >>$CONFIG_STATUS <<\_ACEOF
30812
# If no file are specified by the user, then we need to provide default
30813
# value. By we need to know if files were specified by the user.
30819
ac_option=`expr "x$1" : 'x\([^=]*\)='`
30820
ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
30828
*) # This is not an option, so the user has probably given explicit
30831
ac_need_defaults=false;;
30835
# Handling of the options.
30837
cat >>$CONFIG_STATUS <<\_ACEOF
30838
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30840
--version | --vers* | -V )
30841
echo "$ac_cs_version"; exit 0 ;;
30843
# Conflict between --help and --header
30844
{ { echo "$as_me:$LINENO: error: ambiguous option: $1
30845
Try \`$0 --help' for more information." >&5
30846
echo "$as_me: error: ambiguous option: $1
30847
Try \`$0 --help' for more information." >&2;}
30848
{ (exit 1); exit 1; }; };;
30849
--help | --hel | -h )
30850
echo "$ac_cs_usage"; exit 0 ;;
30851
--debug | --d* | -d )
30853
--file | --fil | --fi | --f )
30855
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30856
ac_need_defaults=false;;
30857
--header | --heade | --head | --hea )
30859
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30860
ac_need_defaults=false;;
30861
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
30862
| -silent | --silent | --silen | --sile | --sil | --si | --s)
30865
# This is an error.
30866
-*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
30867
Try \`$0 --help' for more information." >&5
30868
echo "$as_me: error: unrecognized option: $1
30869
Try \`$0 --help' for more information." >&2;}
30870
{ (exit 1); exit 1; }; } ;;
30872
*) ac_config_targets="$ac_config_targets $1" ;;
30878
ac_configure_extra_args=
30880
if $ac_cs_silent; then
30882
ac_configure_extra_args="$ac_configure_extra_args --silent"
30886
cat >>$CONFIG_STATUS <<_ACEOF
30887
if \$ac_cs_recheck; then
30888
echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30889
exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30894
cat >>$CONFIG_STATUS <<_ACEOF
30896
# INIT-COMMANDS section.
30899
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
30905
cat >>$CONFIG_STATUS <<\_ACEOF
30906
for ac_config_target in $ac_config_targets
30908
case "$ac_config_target" in
30909
# Handling of arguments.
30910
"Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30911
"docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
30912
"docs/examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/examples/Makefile" ;;
30913
"docs/libcurl/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/libcurl/Makefile" ;;
30914
"include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
30915
"include/curl/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/curl/Makefile" ;;
30916
"src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
30917
"lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
30918
"tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
30919
"tests/data/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/data/Makefile" ;;
30920
"tests/server/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/server/Makefile" ;;
30921
"tests/libtest/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/libtest/Makefile" ;;
30922
"packages/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;;
30923
"packages/Win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/Win32/Makefile" ;;
30924
"packages/Win32/cygwin/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/Win32/cygwin/Makefile" ;;
30925
"packages/Linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/Linux/Makefile" ;;
30926
"packages/Linux/RPM/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/Makefile" ;;
30927
"packages/Linux/RPM/curl.spec" ) CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/curl.spec" ;;
30928
"packages/Linux/RPM/curl-ssl.spec" ) CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/curl-ssl.spec" ;;
30929
"packages/Solaris/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/Solaris/Makefile" ;;
30930
"packages/DOS/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/DOS/Makefile" ;;
30931
"packages/EPM/curl.list" ) CONFIG_FILES="$CONFIG_FILES packages/EPM/curl.list" ;;
30932
"packages/EPM/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/EPM/Makefile" ;;
30933
"packages/vms/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/vms/Makefile" ;;
30934
"curl-config" ) CONFIG_FILES="$CONFIG_FILES curl-config" ;;
30935
"depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
30936
"lib/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
30937
"src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
30938
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30939
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30940
{ (exit 1); exit 1; }; };;
30944
# If the user did not use the arguments to specify the items to instantiate,
30945
# then the envvar interface is used. Set only those that are not.
30946
# We use the long form for the default assignment because of an extremely
30947
# bizarre bug on SunOS 4.1.3.
30948
if $ac_need_defaults; then
30949
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30950
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30951
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30954
# Have a temporary directory for convenience. Make it in the build tree
30955
# simply because there is no reason to put it here, and in addition,
30956
# creating and moving files from /tmp can sometimes cause problems.
30957
# Create a temporary directory, and hook for its removal unless debugging.
30960
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
30961
trap '{ (exit 1); exit 1; }' 1 2 13 15
30964
# Create a (secure) tmp directory for tmp files.
30967
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
30968
test -n "$tmp" && test -d "$tmp"
30971
tmp=./confstat$$-$RANDOM
30972
(umask 077 && mkdir $tmp)
30975
echo "$me: cannot create a temporary directory in ." >&2
30976
{ (exit 1); exit 1; }
30981
cat >>$CONFIG_STATUS <<_ACEOF
30984
# CONFIG_FILES section.
30987
# No need to generate the scripts if there are no CONFIG_FILES.
30988
# This happens for instance when ./config.status config.h
30989
if test -n "\$CONFIG_FILES"; then
30990
# Protect against being on the right side of a sed subst in config.status.
30991
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
30992
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
30993
s,@SHELL@,$SHELL,;t t
30994
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
30995
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
30996
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
30997
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
30998
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
30999
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
31000
s,@exec_prefix@,$exec_prefix,;t t
31001
s,@prefix@,$prefix,;t t
31002
s,@program_transform_name@,$program_transform_name,;t t
31003
s,@bindir@,$bindir,;t t
31004
s,@sbindir@,$sbindir,;t t
31005
s,@libexecdir@,$libexecdir,;t t
31006
s,@datadir@,$datadir,;t t
31007
s,@sysconfdir@,$sysconfdir,;t t
31008
s,@sharedstatedir@,$sharedstatedir,;t t
31009
s,@localstatedir@,$localstatedir,;t t
31010
s,@libdir@,$libdir,;t t
31011
s,@includedir@,$includedir,;t t
31012
s,@oldincludedir@,$oldincludedir,;t t
31013
s,@infodir@,$infodir,;t t
31014
s,@mandir@,$mandir,;t t
31015
s,@build_alias@,$build_alias,;t t
31016
s,@host_alias@,$host_alias,;t t
31017
s,@target_alias@,$target_alias,;t t
31018
s,@DEFS@,$DEFS,;t t
31019
s,@ECHO_C@,$ECHO_C,;t t
31020
s,@ECHO_N@,$ECHO_N,;t t
31021
s,@ECHO_T@,$ECHO_T,;t t
31022
s,@LIBS@,$LIBS,;t t
31023
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
31024
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
31025
s,@MAINT@,$MAINT,;t t
31028
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
31029
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
31030
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
31031
s,@CYGPATH_W@,$CYGPATH_W,;t t
31032
s,@PACKAGE@,$PACKAGE,;t t
31033
s,@VERSION@,$VERSION,;t t
31034
s,@ACLOCAL@,$ACLOCAL,;t t
31035
s,@AUTOCONF@,$AUTOCONF,;t t
31036
s,@AUTOMAKE@,$AUTOMAKE,;t t
31037
s,@AUTOHEADER@,$AUTOHEADER,;t t
31038
s,@MAKEINFO@,$MAKEINFO,;t t
31039
s,@AMTAR@,$AMTAR,;t t
31040
s,@install_sh@,$install_sh,;t t
31041
s,@STRIP@,$STRIP,;t t
31042
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
31043
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
31044
s,@mkdir_p@,$mkdir_p,;t t
31046
s,@SET_MAKE@,$SET_MAKE,;t t
31047
s,@am__leading_dot@,$am__leading_dot,;t t
31048
s,@VERSIONNUM@,$VERSIONNUM,;t t
31049
s,@PKGADD_PKG@,$PKGADD_PKG,;t t
31050
s,@PKGADD_NAME@,$PKGADD_NAME,;t t
31051
s,@PKGADD_VENDOR@,$PKGADD_VENDOR,;t t
31052
s,@build@,$build,;t t
31053
s,@build_cpu@,$build_cpu,;t t
31054
s,@build_vendor@,$build_vendor,;t t
31055
s,@build_os@,$build_os,;t t
31056
s,@host@,$host,;t t
31057
s,@host_cpu@,$host_cpu,;t t
31058
s,@host_vendor@,$host_vendor,;t t
31059
s,@host_os@,$host_os,;t t
31061
s,@CFLAGS@,$CFLAGS,;t t
31062
s,@LDFLAGS@,$LDFLAGS,;t t
31063
s,@CPPFLAGS@,$CPPFLAGS,;t t
31064
s,@ac_ct_CC@,$ac_ct_CC,;t t
31065
s,@EXEEXT@,$EXEEXT,;t t
31066
s,@OBJEXT@,$OBJEXT,;t t
31067
s,@DEPDIR@,$DEPDIR,;t t
31068
s,@am__include@,$am__include,;t t
31069
s,@am__quote@,$am__quote,;t t
31070
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
31071
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
31072
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
31073
s,@CCDEPMODE@,$CCDEPMODE,;t t
31074
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
31075
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
31077
s,@EGREP@,$EGREP,;t t
31078
s,@LN_S@,$LN_S,;t t
31079
s,@ECHO@,$ECHO,;t t
31080
s,@ac_ct_AR@,$ac_ct_AR,;t t
31081
s,@RANLIB@,$RANLIB,;t t
31082
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
31083
s,@DLLTOOL@,$DLLTOOL,;t t
31084
s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
31086
s,@ac_ct_AS@,$ac_ct_AS,;t t
31087
s,@OBJDUMP@,$OBJDUMP,;t t
31088
s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
31090
s,@CXXFLAGS@,$CXXFLAGS,;t t
31091
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
31092
s,@CXXDEPMODE@,$CXXDEPMODE,;t t
31093
s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
31094
s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
31095
s,@CXXCPP@,$CXXCPP,;t t
31097
s,@FFLAGS@,$FFLAGS,;t t
31098
s,@ac_ct_F77@,$ac_ct_F77,;t t
31099
s,@LIBTOOL@,$LIBTOOL,;t t
31100
s,@NO_UNDEFINED_TRUE@,$NO_UNDEFINED_TRUE,;t t
31101
s,@NO_UNDEFINED_FALSE@,$NO_UNDEFINED_FALSE,;t t
31102
s,@MIMPURE_TRUE@,$MIMPURE_TRUE,;t t
31103
s,@MIMPURE_FALSE@,$MIMPURE_FALSE,;t t
31104
s,@CURL_DISABLE_HTTP@,$CURL_DISABLE_HTTP,;t t
31105
s,@CURL_DISABLE_GOPHER@,$CURL_DISABLE_GOPHER,;t t
31106
s,@CURL_DISABLE_FTP@,$CURL_DISABLE_FTP,;t t
31107
s,@CURL_DISABLE_FILE@,$CURL_DISABLE_FILE,;t t
31108
s,@CURL_DISABLE_LDAP@,$CURL_DISABLE_LDAP,;t t
31109
s,@CURL_DISABLE_DICT@,$CURL_DISABLE_DICT,;t t
31110
s,@CURL_DISABLE_TELNET@,$CURL_DISABLE_TELNET,;t t
31111
s,@IPV6_ENABLED@,$IPV6_ENABLED,;t t
31112
s,@RANDOM_FILE@,$RANDOM_FILE,;t t
31113
s,@KRB4_ENABLED@,$KRB4_ENABLED,;t t
31114
s,@PKGCONFIG@,$PKGCONFIG,;t t
31115
s,@OPENSSL_ENABLED@,$OPENSSL_ENABLED,;t t
31116
s,@CURL_CA_BUNDLE@,$CURL_CA_BUNDLE,;t t
31117
s,@CABUNDLE_TRUE@,$CABUNDLE_TRUE,;t t
31118
s,@CABUNDLE_FALSE@,$CABUNDLE_FALSE,;t t
31119
s,@HAVE_LIBZ@,$HAVE_LIBZ,;t t
31120
s,@HAVE_LIBZ_TRUE@,$HAVE_LIBZ_TRUE,;t t
31121
s,@HAVE_LIBZ_FALSE@,$HAVE_LIBZ_FALSE,;t t
31122
s,@PERL@,$PERL,;t t
31123
s,@NROFF@,$NROFF,;t t
31124
s,@MANOPT@,$MANOPT,;t t
31125
s,@YACC@,$YACC,;t t
31126
s,@USE_MANUAL_TRUE@,$USE_MANUAL_TRUE,;t t
31127
s,@USE_MANUAL_FALSE@,$USE_MANUAL_FALSE,;t t
31128
s,@HAVE_ARES@,$HAVE_ARES,;t t
31129
s,@subdirs@,$subdirs,;t t
31130
s,@LIBOBJS@,$LIBOBJS,;t t
31131
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
31136
cat >>$CONFIG_STATUS <<\_ACEOF
31137
# Split the substitutions into bite-sized pieces for seds with
31138
# small command number limits, like on Digital OSF/1 and HP-UX.
31139
ac_max_sed_lines=48
31140
ac_sed_frag=1 # Number of current file.
31141
ac_beg=1 # First line for current file.
31142
ac_end=$ac_max_sed_lines # Line after last line for current file.
31145
while $ac_more_lines; do
31146
if test $ac_beg -gt 1; then
31147
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31149
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31151
if test ! -s $tmp/subs.frag; then
31152
ac_more_lines=false
31154
# The purpose of the label and of the branching condition is to
31155
# speed up the sed processing (if there are no `@' at all, there
31156
# is no need to browse any of the substitutions).
31157
# These are the two extra sed commands mentioned above.
31159
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
31160
if test -z "$ac_sed_cmds"; then
31161
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
31163
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
31165
ac_sed_frag=`expr $ac_sed_frag + 1`
31167
ac_end=`expr $ac_end + $ac_max_sed_lines`
31170
if test -z "$ac_sed_cmds"; then
31173
fi # test -n "$CONFIG_FILES"
31176
cat >>$CONFIG_STATUS <<\_ACEOF
31177
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
31178
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31180
- | *:- | *:-:* ) # input from stdin
31182
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31183
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31184
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31185
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31186
* ) ac_file_in=$ac_file.in ;;
31189
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
31190
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31191
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31192
X"$ac_file" : 'X\(//\)[^/]' \| \
31193
X"$ac_file" : 'X\(//\)$' \| \
31194
X"$ac_file" : 'X\(/\)' \| \
31195
. : '\(.\)' 2>/dev/null ||
31197
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31198
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
31199
/^X\(\/\/\)$/{ s//\1/; q; }
31200
/^X\(\/\).*/{ s//\1/; q; }
31202
{ if $as_mkdir_p; then
31207
while test ! -d "$as_dir"; do
31208
as_dirs="$as_dir $as_dirs"
31209
as_dir=`(dirname "$as_dir") 2>/dev/null ||
31210
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31211
X"$as_dir" : 'X\(//\)[^/]' \| \
31212
X"$as_dir" : 'X\(//\)$' \| \
31213
X"$as_dir" : 'X\(/\)' \| \
31214
. : '\(.\)' 2>/dev/null ||
31216
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31217
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
31218
/^X\(\/\/\)$/{ s//\1/; q; }
31219
/^X\(\/\).*/{ s//\1/; q; }
31222
test ! -n "$as_dirs" || mkdir $as_dirs
31223
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31224
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31225
{ (exit 1); exit 1; }; }; }
31229
if test "$ac_dir" != .; then
31230
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31231
# A "../" for each directory in $ac_dir_suffix.
31232
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31234
ac_dir_suffix= ac_top_builddir=
31238
.) # No --srcdir option. We are building in place.
31240
if test -z "$ac_top_builddir"; then
31243
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31245
[\\/]* | ?:[\\/]* ) # Absolute path.
31246
ac_srcdir=$srcdir$ac_dir_suffix;
31247
ac_top_srcdir=$srcdir ;;
31248
*) # Relative path.
31249
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31250
ac_top_srcdir=$ac_top_builddir$srcdir ;;
31253
# Do not use `cd foo && pwd` to compute absolute paths, because
31254
# the directories may not exist.
31256
.) ac_abs_builddir="$ac_dir";;
31259
.) ac_abs_builddir=`pwd`;;
31260
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31261
*) ac_abs_builddir=`pwd`/"$ac_dir";;
31264
case $ac_abs_builddir in
31265
.) ac_abs_top_builddir=${ac_top_builddir}.;;
31267
case ${ac_top_builddir}. in
31268
.) ac_abs_top_builddir=$ac_abs_builddir;;
31269
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31270
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31273
case $ac_abs_builddir in
31274
.) ac_abs_srcdir=$ac_srcdir;;
31277
.) ac_abs_srcdir=$ac_abs_builddir;;
31278
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31279
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31282
case $ac_abs_builddir in
31283
.) ac_abs_top_srcdir=$ac_top_srcdir;;
31285
case $ac_top_srcdir in
31286
.) ac_abs_top_srcdir=$ac_abs_builddir;;
31287
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31288
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31294
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31295
*) ac_INSTALL=$ac_top_builddir$INSTALL ;;
31298
if test x"$ac_file" != x-; then
31299
{ echo "$as_me:$LINENO: creating $ac_file" >&5
31300
echo "$as_me: creating $ac_file" >&6;}
31303
# Let's still pretend it is `configure' which instantiates (i.e., don't
31304
# use $as_me), people would be surprised to read:
31305
# /* config.h. Generated by config.status. */
31306
if test x"$ac_file" = x-; then
31309
configure_input="$ac_file. "
31311
configure_input=$configure_input"Generated from `echo $ac_file_in |
31312
sed 's,.*/,,'` by configure."
31314
# First look for the input files in the build tree, otherwise in the
31316
ac_file_inputs=`IFS=:
31317
for f in $ac_file_in; do
31319
-) echo $tmp/stdin ;;
31321
# Absolute (can't be DOS-style, as IFS=:)
31322
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31323
echo "$as_me: error: cannot find input file: $f" >&2;}
31324
{ (exit 1); exit 1; }; }
31327
if test -f "$f"; then
31330
elif test -f "$srcdir/$f"; then
31335
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31336
echo "$as_me: error: cannot find input file: $f" >&2;}
31337
{ (exit 1); exit 1; }; }
31340
done` || { (exit 1); exit 1; }
31342
cat >>$CONFIG_STATUS <<_ACEOF
31346
cat >>$CONFIG_STATUS <<\_ACEOF
31348
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31349
s,@configure_input@,$configure_input,;t t
31350
s,@srcdir@,$ac_srcdir,;t t
31351
s,@abs_srcdir@,$ac_abs_srcdir,;t t
31352
s,@top_srcdir@,$ac_top_srcdir,;t t
31353
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
31354
s,@builddir@,$ac_builddir,;t t
31355
s,@abs_builddir@,$ac_abs_builddir,;t t
31356
s,@top_builddir@,$ac_top_builddir,;t t
31357
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
31358
s,@INSTALL@,$ac_INSTALL,;t t
31359
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
31361
if test x"$ac_file" != x-; then
31362
mv $tmp/out $ac_file
31370
cat >>$CONFIG_STATUS <<\_ACEOF
31373
# CONFIG_HEADER section.
31376
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
31377
# NAME is the cpp macro being defined and VALUE is the value it is being given.
31379
# ac_d sets the value in "#define NAME VALUE" lines.
31380
ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
31381
ac_dB='[ ].*$,\1#\2'
31384
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
31385
ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
31386
ac_uB='$,\1#\2define\3'
31390
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
31391
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31393
- | *:- | *:-:* ) # input from stdin
31395
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31396
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31397
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31398
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31399
* ) ac_file_in=$ac_file.in ;;
31402
test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
31403
echo "$as_me: creating $ac_file" >&6;}
31405
# First look for the input files in the build tree, otherwise in the
31407
ac_file_inputs=`IFS=:
31408
for f in $ac_file_in; do
31410
-) echo $tmp/stdin ;;
31412
# Absolute (can't be DOS-style, as IFS=:)
31413
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31414
echo "$as_me: error: cannot find input file: $f" >&2;}
31415
{ (exit 1); exit 1; }; }
31416
# Do quote $f, to prevent DOS paths from being IFS'd.
31419
if test -f "$f"; then
31422
elif test -f "$srcdir/$f"; then
31427
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31428
echo "$as_me: error: cannot find input file: $f" >&2;}
31429
{ (exit 1); exit 1; }; }
31432
done` || { (exit 1); exit 1; }
31433
# Remove the trailing spaces.
31434
sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
31438
# Transform confdefs.h into two sed scripts, `conftest.defines' and
31439
# `conftest.undefs', that substitutes the proper values into
31440
# config.h.in to produce config.h. The first handles `#define'
31441
# templates, and the second `#undef' templates.
31442
# And first: Protect against being on the right side of a sed subst in
31443
# config.status. Protect against being in an unquoted here document
31444
# in config.status.
31445
rm -f conftest.defines conftest.undefs
31446
# Using a here document instead of a string reduces the quoting nightmare.
31447
# Putting comments in sed scripts is not portable.
31449
# `end' is used to avoid that the second main sed command (meant for
31450
# 0-ary CPP macros) applies to n-ary macro definitions.
31451
# See the Autoconf documentation for `clear'.
31452
cat >confdef2sed.sed <<\_ACEOF
31457
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
31459
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
31462
# If some macros were called several times there might be several times
31463
# the same #defines, which is useless. Nevertheless, we may not want to
31464
# sort them, since we want the *last* AC-DEFINE to be honored.
31465
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
31466
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
31467
rm -f confdef2sed.sed
31469
# This sed command replaces #undef with comments. This is necessary, for
31470
# example, in the case of _POSIX_SOURCE, which is predefined and required
31471
# on some systems where configure will not decide to define it.
31472
cat >>conftest.undefs <<\_ACEOF
31473
s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
31476
# Break up conftest.defines because some shells have a limit on the size
31477
# of here documents, and old seds have small limits too (100 cmds).
31478
echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
31479
echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
31480
echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
31481
echo ' :' >>$CONFIG_STATUS
31482
rm -f conftest.tail
31483
while grep . conftest.defines >/dev/null
31485
# Write a limited-size here document to $tmp/defines.sed.
31486
echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
31487
# Speed up: don't consider the non `#define' lines.
31488
echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
31489
# Work around the forget-to-reset-the-flag bug.
31490
echo 't clr' >>$CONFIG_STATUS
31491
echo ': clr' >>$CONFIG_STATUS
31492
sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
31494
sed -f $tmp/defines.sed $tmp/in >$tmp/out
31496
mv $tmp/out $tmp/in
31498
sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
31499
rm -f conftest.defines
31500
mv conftest.tail conftest.defines
31502
rm -f conftest.defines
31503
echo ' fi # grep' >>$CONFIG_STATUS
31504
echo >>$CONFIG_STATUS
31506
# Break up conftest.undefs because some shells have a limit on the size
31507
# of here documents, and old seds have small limits too (100 cmds).
31508
echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
31509
rm -f conftest.tail
31510
while grep . conftest.undefs >/dev/null
31512
# Write a limited-size here document to $tmp/undefs.sed.
31513
echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
31514
# Speed up: don't consider the non `#undef'
31515
echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
31516
# Work around the forget-to-reset-the-flag bug.
31517
echo 't clr' >>$CONFIG_STATUS
31518
echo ': clr' >>$CONFIG_STATUS
31519
sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
31521
sed -f $tmp/undefs.sed $tmp/in >$tmp/out
31523
mv $tmp/out $tmp/in
31525
sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
31526
rm -f conftest.undefs
31527
mv conftest.tail conftest.undefs
31529
rm -f conftest.undefs
31531
cat >>$CONFIG_STATUS <<\_ACEOF
31532
# Let's still pretend it is `configure' which instantiates (i.e., don't
31533
# use $as_me), people would be surprised to read:
31534
# /* config.h. Generated by config.status. */
31535
if test x"$ac_file" = x-; then
31536
echo "/* Generated by configure. */" >$tmp/config.h
31538
echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
31540
cat $tmp/in >>$tmp/config.h
31542
if test x"$ac_file" != x-; then
31543
if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
31544
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31545
echo "$as_me: $ac_file is unchanged" >&6;}
31547
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31548
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31549
X"$ac_file" : 'X\(//\)[^/]' \| \
31550
X"$ac_file" : 'X\(//\)$' \| \
31551
X"$ac_file" : 'X\(/\)' \| \
31552
. : '\(.\)' 2>/dev/null ||
31554
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31555
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
31556
/^X\(\/\/\)$/{ s//\1/; q; }
31557
/^X\(\/\).*/{ s//\1/; q; }
31559
{ if $as_mkdir_p; then
31564
while test ! -d "$as_dir"; do
31565
as_dirs="$as_dir $as_dirs"
31566
as_dir=`(dirname "$as_dir") 2>/dev/null ||
31567
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31568
X"$as_dir" : 'X\(//\)[^/]' \| \
31569
X"$as_dir" : 'X\(//\)$' \| \
31570
X"$as_dir" : 'X\(/\)' \| \
31571
. : '\(.\)' 2>/dev/null ||
31573
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31574
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
31575
/^X\(\/\/\)$/{ s//\1/; q; }
31576
/^X\(\/\).*/{ s//\1/; q; }
31579
test ! -n "$as_dirs" || mkdir $as_dirs
31580
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31581
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31582
{ (exit 1); exit 1; }; }; }
31585
mv $tmp/config.h $ac_file
31589
rm -f $tmp/config.h
31591
# Compute $ac_file's index in $config_headers.
31593
for _am_header in $config_headers :; do
31594
case $_am_header in
31595
$ac_file | $ac_file:* )
31598
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
31601
echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
31602
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31603
X$ac_file : 'X\(//\)[^/]' \| \
31604
X$ac_file : 'X\(//\)$' \| \
31605
X$ac_file : 'X\(/\)' \| \
31606
. : '\(.\)' 2>/dev/null ||
31608
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31609
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
31610
/^X\(\/\/\)$/{ s//\1/; q; }
31611
/^X\(\/\).*/{ s//\1/; q; }
31612
s/.*/./; q'`/stamp-h$_am_stamp_count
31615
cat >>$CONFIG_STATUS <<\_ACEOF
31618
# CONFIG_COMMANDS section.
31620
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
31621
ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
31622
ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
31623
ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
31624
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31625
X"$ac_dest" : 'X\(//\)[^/]' \| \
31626
X"$ac_dest" : 'X\(//\)$' \| \
31627
X"$ac_dest" : 'X\(/\)' \| \
31628
. : '\(.\)' 2>/dev/null ||
31630
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31631
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
31632
/^X\(\/\/\)$/{ s//\1/; q; }
31633
/^X\(\/\).*/{ s//\1/; q; }
31635
{ if $as_mkdir_p; then
31640
while test ! -d "$as_dir"; do
31641
as_dirs="$as_dir $as_dirs"
31642
as_dir=`(dirname "$as_dir") 2>/dev/null ||
31643
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31644
X"$as_dir" : 'X\(//\)[^/]' \| \
31645
X"$as_dir" : 'X\(//\)$' \| \
31646
X"$as_dir" : 'X\(/\)' \| \
31647
. : '\(.\)' 2>/dev/null ||
31649
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31650
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
31651
/^X\(\/\/\)$/{ s//\1/; q; }
31652
/^X\(\/\).*/{ s//\1/; q; }
31655
test ! -n "$as_dirs" || mkdir $as_dirs
31656
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31657
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31658
{ (exit 1); exit 1; }; }; }
31662
if test "$ac_dir" != .; then
31663
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31664
# A "../" for each directory in $ac_dir_suffix.
31665
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31667
ac_dir_suffix= ac_top_builddir=
31671
.) # No --srcdir option. We are building in place.
31673
if test -z "$ac_top_builddir"; then
31676
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31678
[\\/]* | ?:[\\/]* ) # Absolute path.
31679
ac_srcdir=$srcdir$ac_dir_suffix;
31680
ac_top_srcdir=$srcdir ;;
31681
*) # Relative path.
31682
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31683
ac_top_srcdir=$ac_top_builddir$srcdir ;;
31686
# Do not use `cd foo && pwd` to compute absolute paths, because
31687
# the directories may not exist.
31689
.) ac_abs_builddir="$ac_dir";;
31692
.) ac_abs_builddir=`pwd`;;
31693
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31694
*) ac_abs_builddir=`pwd`/"$ac_dir";;
31697
case $ac_abs_builddir in
31698
.) ac_abs_top_builddir=${ac_top_builddir}.;;
31700
case ${ac_top_builddir}. in
31701
.) ac_abs_top_builddir=$ac_abs_builddir;;
31702
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31703
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31706
case $ac_abs_builddir in
31707
.) ac_abs_srcdir=$ac_srcdir;;
31710
.) ac_abs_srcdir=$ac_abs_builddir;;
31711
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31712
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31715
case $ac_abs_builddir in
31716
.) ac_abs_top_srcdir=$ac_top_srcdir;;
31718
case $ac_top_srcdir in
31719
.) ac_abs_top_srcdir=$ac_abs_builddir;;
31720
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31721
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31726
{ echo "$as_me:$LINENO: executing $ac_dest commands" >&5
31727
echo "$as_me: executing $ac_dest commands" >&6;}
31729
depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
31730
# Strip MF so we end up with the name of the file.
31731
mf=`echo "$mf" | sed -e 's/:.*$//'`
31732
# Check whether this is an Automake generated Makefile or not.
31733
# We used to match only the files named `Makefile.in', but
31734
# some people rename them; so instead we look at the file content.
31735
# Grep'ing the first line is not enough: some people post-process
31736
# each Makefile.in and add a new line on top of each file to say so.
31737
# So let's grep whole file.
31738
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
31739
dirpart=`(dirname "$mf") 2>/dev/null ||
31740
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31741
X"$mf" : 'X\(//\)[^/]' \| \
31742
X"$mf" : 'X\(//\)$' \| \
31743
X"$mf" : 'X\(/\)' \| \
31744
. : '\(.\)' 2>/dev/null ||
31746
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31747
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
31748
/^X\(\/\/\)$/{ s//\1/; q; }
31749
/^X\(\/\).*/{ s//\1/; q; }
31754
grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
31755
# Extract the definition of DEP_FILES from the Makefile without
31757
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
31758
test -z "$DEPDIR" && continue
31759
# When using ansi2knr, U may be empty or an underscore; expand it
31760
U=`sed -n 's/^U = //p' < "$mf"`
31761
test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
31762
# We invoke sed twice because it is the simplest approach to
31763
# changing $(DEPDIR) to its actual value in the expansion.
31764
for file in `sed -n '
31765
/^DEP_FILES = .*\\\\$/ {
31774
/^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
31775
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
31776
# Make sure the directory exists.
31777
test -f "$dirpart/$file" && continue
31778
fdir=`(dirname "$file") 2>/dev/null ||
31779
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31780
X"$file" : 'X\(//\)[^/]' \| \
31781
X"$file" : 'X\(//\)$' \| \
31782
X"$file" : 'X\(/\)' \| \
31783
. : '\(.\)' 2>/dev/null ||
31785
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31786
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
31787
/^X\(\/\/\)$/{ s//\1/; q; }
31788
/^X\(\/\).*/{ s//\1/; q; }
31790
{ if $as_mkdir_p; then
31791
mkdir -p $dirpart/$fdir
31793
as_dir=$dirpart/$fdir
31795
while test ! -d "$as_dir"; do
31796
as_dirs="$as_dir $as_dirs"
31797
as_dir=`(dirname "$as_dir") 2>/dev/null ||
31798
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31799
X"$as_dir" : 'X\(//\)[^/]' \| \
31800
X"$as_dir" : 'X\(//\)$' \| \
31801
X"$as_dir" : 'X\(/\)' \| \
31802
. : '\(.\)' 2>/dev/null ||
31804
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31805
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
31806
/^X\(\/\/\)$/{ s//\1/; q; }
31807
/^X\(\/\).*/{ s//\1/; q; }
31810
test ! -n "$as_dirs" || mkdir $as_dirs
31811
fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
31812
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
31813
{ (exit 1); exit 1; }; }; }
31815
# echo "creating $dirpart/$file"
31816
echo '# dummy' > "$dirpart/$file"
31824
cat >>$CONFIG_STATUS <<\_ACEOF
31826
{ (exit 0); exit 0; }
31828
chmod +x $CONFIG_STATUS
31829
ac_clean_files=$ac_clean_files_save
31832
# configure is writing to config.log, and then calls config.status.
31833
# config.status does its own redirection, appending to config.log.
31834
# Unfortunately, on DOS this fails, as config.log is still kept open
31835
# by configure, so config.status won't be able to write to it; its
31836
# output is simply discarded. So we exec the FD to /dev/null,
31837
# effectively closing config.log, so it can be properly (re)opened and
31838
# appended to by config.status. When coming back to configure, we
31839
# need to make the FD available again.
31840
if test "$no_create" != yes; then
31842
ac_config_status_args=
31843
test "$silent" = yes &&
31844
ac_config_status_args="$ac_config_status_args --quiet"
31846
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31848
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
31849
# would make configure fail if this is the last instruction.
31850
$ac_cs_success || { (exit 1); exit 1; }
31854
# CONFIG_SUBDIRS section.
31856
if test "$no_recursion" != yes; then
31858
# Remove --cache-file and --srcdir arguments so they do not pile up.
31859
ac_sub_configure_args=
31861
for ac_arg in $ac_configure_args; do
31862
if test -n "$ac_prev"; then
31867
-cache-file | --cache-file | --cache-fil | --cache-fi \
31868
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
31869
ac_prev=cache_file ;;
31870
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
31871
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
31874
--config-cache | -C)
31876
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
31878
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
31880
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
31882
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
31884
*) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
31888
# Always prepend --prefix to ensure using the same prefix
31889
# in subdir configurations.
31890
ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
31893
for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
31895
# Do not complain, so a configure script can configure whichever
31896
# parts of a large source tree are present.
31897
test -d $srcdir/$ac_dir || continue
31899
{ echo "$as_me:$LINENO: configuring in $ac_dir" >&5
31900
echo "$as_me: configuring in $ac_dir" >&6;}
31901
{ if $as_mkdir_p; then
31906
while test ! -d "$as_dir"; do
31907
as_dirs="$as_dir $as_dirs"
31908
as_dir=`(dirname "$as_dir") 2>/dev/null ||
31909
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31910
X"$as_dir" : 'X\(//\)[^/]' \| \
31911
X"$as_dir" : 'X\(//\)$' \| \
31912
X"$as_dir" : 'X\(/\)' \| \
31913
. : '\(.\)' 2>/dev/null ||
31915
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31916
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
31917
/^X\(\/\/\)$/{ s//\1/; q; }
31918
/^X\(\/\).*/{ s//\1/; q; }
31921
test ! -n "$as_dirs" || mkdir $as_dirs
31922
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31923
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31924
{ (exit 1); exit 1; }; }; }
31928
if test "$ac_dir" != .; then
31929
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31930
# A "../" for each directory in $ac_dir_suffix.
31931
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31933
ac_dir_suffix= ac_top_builddir=
31937
.) # No --srcdir option. We are building in place.
31939
if test -z "$ac_top_builddir"; then
31942
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31944
[\\/]* | ?:[\\/]* ) # Absolute path.
31945
ac_srcdir=$srcdir$ac_dir_suffix;
31946
ac_top_srcdir=$srcdir ;;
31947
*) # Relative path.
31948
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31949
ac_top_srcdir=$ac_top_builddir$srcdir ;;
31952
# Do not use `cd foo && pwd` to compute absolute paths, because
31953
# the directories may not exist.
31955
.) ac_abs_builddir="$ac_dir";;
31958
.) ac_abs_builddir=`pwd`;;
31959
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31960
*) ac_abs_builddir=`pwd`/"$ac_dir";;
31963
case $ac_abs_builddir in
31964
.) ac_abs_top_builddir=${ac_top_builddir}.;;
31966
case ${ac_top_builddir}. in
31967
.) ac_abs_top_builddir=$ac_abs_builddir;;
31968
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31969
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31972
case $ac_abs_builddir in
31973
.) ac_abs_srcdir=$ac_srcdir;;
31976
.) ac_abs_srcdir=$ac_abs_builddir;;
31977
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31978
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31981
case $ac_abs_builddir in
31982
.) ac_abs_top_srcdir=$ac_top_srcdir;;
31984
case $ac_top_srcdir in
31985
.) ac_abs_top_srcdir=$ac_abs_builddir;;
31986
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31987
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31994
# Check for guested configure; otherwise get Cygnus style configure.
31995
if test -f $ac_srcdir/configure.gnu; then
31996
ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
31997
elif test -f $ac_srcdir/configure; then
31998
ac_sub_configure="$SHELL '$ac_srcdir/configure'"
31999
elif test -f $ac_srcdir/configure.in; then
32000
ac_sub_configure=$ac_configure
32002
{ echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
32003
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
32007
# The recursion is here.
32008
if test -n "$ac_sub_configure"; then
32009
# Make the cache file name correct relative to the subdirectory.
32010
case $cache_file in
32011
[\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
32012
*) # Relative path.
32013
ac_sub_cache_file=$ac_top_builddir$cache_file ;;
32016
{ echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
32017
echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
32018
# The eval makes quoting arguments work.
32019
eval $ac_sub_configure $ac_sub_configure_args \
32020
--cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
32021
{ { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
32022
echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
32023
{ (exit 1); exit 1; }; }