71
132
# Name of the executable.
72
as_me=`$as_basename "$0" ||
133
as_me=`$as_basename -- "$0" ||
73
134
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
74
135
X"$0" : 'X\(//\)$' \| \
75
X"$0" : 'X\(/\)$' \| \
76
. : '\(.\)' 2>/dev/null ||
136
X"$0" : 'X\(/\)' \| . 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
138
sed '/^.*\/\([^/][^/]*\)\/*$/{
156
if test "x$CONFIG_SHELL" = x; then
157
if (eval ":") 2>/dev/null; then
163
if test $as_have_required = yes && (eval ":
173
as_func_ret_success () {
176
as_func_ret_failure () {
181
if as_func_success; then
185
echo as_func_success failed.
188
if as_func_failure; then
190
echo as_func_failure succeeded.
193
if as_func_ret_success; then
197
echo as_func_ret_success failed.
200
if as_func_ret_failure; then
202
echo as_func_ret_failure succeeded.
205
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
209
echo positional parameters were not saved.
212
test \$exitcode = 0) || { (exit 1); exit 1; }
217
test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218
test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219
") 2> /dev/null; then
136
223
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
137
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224
for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140
227
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+"$@"}
230
for as_base in sh bash ksh sh5; do
231
as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
238
for as_shell in $as_candidate_shells $SHELL; do
239
# Try only shells which exist, to save several forks.
240
if test -f "$as_shell" &&
241
{ ("$as_shell") 2> /dev/null <<\_ASEOF
242
# Be Bourne compatible
243
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
246
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
247
# is contrary to our usage. Disable this feature.
248
alias -g '${1+"$@"}'='"$@"'
251
case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
253
BIN_SH=xpg4; export BIN_SH # for Tru64
254
DUALCASE=1; export DUALCASE # for MKS sh
259
CONFIG_SHELL=$as_shell
261
if { "$as_shell" 2> /dev/null <<\_ASEOF
262
# Be Bourne compatible
263
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
266
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267
# is contrary to our usage. Disable this feature.
268
alias -g '${1+"$@"}'='"$@"'
271
case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
273
BIN_SH=xpg4; export BIN_SH # for Tru64
274
DUALCASE=1; export DUALCASE # for MKS sh
286
as_func_ret_success () {
289
as_func_ret_failure () {
294
if as_func_success; then
298
echo as_func_success failed.
301
if as_func_failure; then
303
echo as_func_failure succeeded.
306
if as_func_ret_success; then
310
echo as_func_ret_success failed.
313
if as_func_ret_failure; then
315
echo as_func_ret_failure succeeded.
318
if ( set x; as_func_ret_success y && test x = "$1" ); then
322
echo positional parameters were not saved.
325
test $exitcode = 0) || { (exit 1); exit 1; }
330
test "x$as_lineno_1" != "x$as_lineno_2" &&
331
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
342
if test "x$CONFIG_SHELL" != x; then
343
for as_var in BASH_ENV ENV
344
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347
exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351
if test $as_have_required = no; then
352
echo This script requires a shell more modern than all the
353
echo shells that I found on your system. Please install a
354
echo modern shell, or manually run the script under such a
355
echo shell if you do have one.
356
{ (exit 1); exit 1; }
366
(eval "as_func_return () {
375
as_func_ret_success () {
378
as_func_ret_failure () {
383
if as_func_success; then
387
echo as_func_success failed.
390
if as_func_failure; then
392
echo as_func_failure succeeded.
395
if as_func_ret_success; then
399
echo as_func_ret_success failed.
402
if as_func_ret_failure; then
404
echo as_func_ret_failure succeeded.
407
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411
echo positional parameters were not saved.
414
test \$exitcode = 0") || {
415
echo No shell found that supports shell functions.
416
echo Please tell autoconf@gnu.org about your system,
417
echo including any error possibly output before this
425
test "x$as_lineno_1" != "x$as_lineno_2" &&
426
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
162
428
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
163
429
# 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.
430
# line-number line after each line using $LINENO; the second 'sed'
431
# does the real work. The second script uses 'N' to pair each
432
# line-number line with the line containing $LINENO, and appends
433
# trailing '-' during substitution so that $LINENO is not a special
168
435
# (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 |
436
# scripts with optimization help from Paolo Bonzini. Blame Lee
437
# E. McMahon (1931-1989) for sed's syntax. :-)
175
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
449
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
178
s,^['$as_cr_digits']*\n,,
179
452
' >$as_me.lineno &&
180
chmod +x $as_me.lineno ||
453
chmod +x "$as_me.lineno" ||
181
454
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
182
455
{ (exit 1); exit 1; }; }
184
457
# Don't try to exec as it changes $[0], causing all sort of problems
185
458
# (the dirname of $[0] is not the place where we might find the
186
# original and so on. Autoconf is especially sensible to this).
459
# original and so on. Autoconf is especially sensitive to this).
188
461
# 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= ;;
466
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
472
ECHO_C= ECHO_N= ECHO_T=
476
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
200
if expr a : '\(a\)' >/dev/null 2>&1; then
483
if expr a : '\(a\)' >/dev/null 2>&1 &&
484
test "X`expr 00001 : '.*\(...\)'`" = X001; then
206
490
rm -f conf$$ conf$$.exe conf$$.file
491
if test -d conf$$.dir; then
492
rm -f conf$$.dir/conf$$.file
207
497
echo >conf$$.file
208
498
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
500
# ... but there are two gotchas:
501
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503
# In both cases, we have to default to `cp -p'.
504
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
217
506
elif ln conf$$.file conf$$ 2>/dev/null; then
222
rm -f conf$$ conf$$.exe conf$$.file
511
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512
rmdir conf$$.dir 2>/dev/null
224
514
if mkdir -p . 2>/dev/null; then
13807
15435
enable_fast_install=needless
13812
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13813
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13814
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13815
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13816
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13817
echo "$as_me:$LINENO: result: yes" >&5
13818
echo "${ECHO_T}yes" >&6
13820
# FIXME - insert some real tests, host_os isn't really good enough
13823
if test -n "$STRIP" ; then
13824
striplib="$STRIP -x"
13825
echo "$as_me:$LINENO: result: yes" >&5
13826
echo "${ECHO_T}yes" >&6
13828
echo "$as_me:$LINENO: result: no" >&5
13829
echo "${ECHO_T}no" >&6
13833
echo "$as_me:$LINENO: result: no" >&5
13834
echo "${ECHO_T}no" >&6
13839
if test "x$enable_dlopen" != xyes; then
13840
enable_dlopen=unknown
13841
enable_dlopen_self=unknown
13842
enable_dlopen_self_static=unknown
13849
lt_cv_dlopen="load_add_on"
13851
lt_cv_dlopen_self=yes
13855
lt_cv_dlopen="LoadLibrary"
13860
lt_cv_dlopen="dlopen"
13865
# if libdl is installed we need to link against it
13866
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13867
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13868
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13869
echo $ECHO_N "(cached) $ECHO_C" >&6
13871
ac_check_lib_save_LIBS=$LIBS
13873
cat >conftest.$ac_ext <<_ACEOF
13876
cat confdefs.h >>conftest.$ac_ext
13877
cat >>conftest.$ac_ext <<_ACEOF
13878
/* end confdefs.h. */
13880
/* Override any gcc2 internal prototype to avoid an error. */
13884
/* We use char because int might match the return type of a gcc2
13885
builtin and then its argument prototype would still apply. */
13895
rm -f conftest.$ac_objext conftest$ac_exeext
13896
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13897
(eval $ac_link) 2>conftest.er1
13899
grep -v '^ *+' conftest.er1 >conftest.err
13901
cat conftest.err >&5
13902
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13903
(exit $ac_status); } &&
13904
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13905
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13906
(eval $ac_try) 2>&5
13908
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13909
(exit $ac_status); }; } &&
13910
{ ac_try='test -s conftest$ac_exeext'
13911
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13912
(eval $ac_try) 2>&5
13914
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13915
(exit $ac_status); }; }; then
13916
ac_cv_lib_dl_dlopen=yes
13918
echo "$as_me: failed program was:" >&5
13919
sed 's/^/| /' conftest.$ac_ext >&5
13921
ac_cv_lib_dl_dlopen=no
13923
rm -f conftest.err conftest.$ac_objext \
13924
conftest$ac_exeext conftest.$ac_ext
13925
LIBS=$ac_check_lib_save_LIBS
13927
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13928
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13929
if test $ac_cv_lib_dl_dlopen = yes; then
13930
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13933
lt_cv_dlopen="dyld"
13935
lt_cv_dlopen_self=yes
13942
echo "$as_me:$LINENO: checking for shl_load" >&5
13943
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13944
if test "${ac_cv_func_shl_load+set}" = set; then
13945
echo $ECHO_N "(cached) $ECHO_C" >&6
13947
cat >conftest.$ac_ext <<_ACEOF
13950
cat confdefs.h >>conftest.$ac_ext
13951
cat >>conftest.$ac_ext <<_ACEOF
13952
/* end confdefs.h. */
13953
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13954
For example, HP-UX 11i <limits.h> declares gettimeofday. */
13955
#define shl_load innocuous_shl_load
13957
/* System header to define __stub macros and hopefully few prototypes,
13958
which can conflict with char shl_load (); below.
13959
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13960
<limits.h> exists even on freestanding compilers. */
13963
# include <limits.h>
13965
# include <assert.h>
13970
/* Override any gcc2 internal prototype to avoid an error. */
13975
/* We use char because int might match the return type of a gcc2
13976
builtin and then its argument prototype would still apply. */
13978
/* The GNU C library defines this for functions which it implements
13979
to always fail with ENOSYS. Some functions are actually named
13980
something starting with __ and the normal name is an alias. */
13981
#if defined (__stub_shl_load) || defined (__stub___shl_load)
13984
char (*f) () = shl_load;
13993
return f != shl_load;
13998
rm -f conftest.$ac_objext conftest$ac_exeext
13999
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14000
(eval $ac_link) 2>conftest.er1
14002
grep -v '^ *+' conftest.er1 >conftest.err
14004
cat conftest.err >&5
14005
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14006
(exit $ac_status); } &&
14007
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14008
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14009
(eval $ac_try) 2>&5
14011
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14012
(exit $ac_status); }; } &&
14013
{ ac_try='test -s conftest$ac_exeext'
14014
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14015
(eval $ac_try) 2>&5
14017
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14018
(exit $ac_status); }; }; then
14019
ac_cv_func_shl_load=yes
14021
echo "$as_me: failed program was:" >&5
14022
sed 's/^/| /' conftest.$ac_ext >&5
14024
ac_cv_func_shl_load=no
14026
rm -f conftest.err conftest.$ac_objext \
14027
conftest$ac_exeext conftest.$ac_ext
14029
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
14030
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
14031
if test $ac_cv_func_shl_load = yes; then
14032
lt_cv_dlopen="shl_load"
14034
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
14035
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
14036
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
14037
echo $ECHO_N "(cached) $ECHO_C" >&6
14039
ac_check_lib_save_LIBS=$LIBS
14041
cat >conftest.$ac_ext <<_ACEOF
14044
cat confdefs.h >>conftest.$ac_ext
14045
cat >>conftest.$ac_ext <<_ACEOF
14046
/* end confdefs.h. */
14048
/* Override any gcc2 internal prototype to avoid an error. */
14052
/* We use char because int might match the return type of a gcc2
14053
builtin and then its argument prototype would still apply. */
14063
rm -f conftest.$ac_objext conftest$ac_exeext
14064
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14065
(eval $ac_link) 2>conftest.er1
14067
grep -v '^ *+' conftest.er1 >conftest.err
14069
cat conftest.err >&5
14070
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14071
(exit $ac_status); } &&
14072
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14073
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14074
(eval $ac_try) 2>&5
14076
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14077
(exit $ac_status); }; } &&
14078
{ ac_try='test -s conftest$ac_exeext'
14079
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14080
(eval $ac_try) 2>&5
14082
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14083
(exit $ac_status); }; }; then
14084
ac_cv_lib_dld_shl_load=yes
14086
echo "$as_me: failed program was:" >&5
14087
sed 's/^/| /' conftest.$ac_ext >&5
14089
ac_cv_lib_dld_shl_load=no
14091
rm -f conftest.err conftest.$ac_objext \
14092
conftest$ac_exeext conftest.$ac_ext
14093
LIBS=$ac_check_lib_save_LIBS
14095
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14096
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
14097
if test $ac_cv_lib_dld_shl_load = yes; then
14098
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
14100
echo "$as_me:$LINENO: checking for dlopen" >&5
14101
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
14102
if test "${ac_cv_func_dlopen+set}" = set; then
14103
echo $ECHO_N "(cached) $ECHO_C" >&6
14105
cat >conftest.$ac_ext <<_ACEOF
14108
cat confdefs.h >>conftest.$ac_ext
14109
cat >>conftest.$ac_ext <<_ACEOF
14110
/* end confdefs.h. */
14111
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14112
For example, HP-UX 11i <limits.h> declares gettimeofday. */
14113
#define dlopen innocuous_dlopen
14115
/* System header to define __stub macros and hopefully few prototypes,
14116
which can conflict with char dlopen (); below.
14117
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14118
<limits.h> exists even on freestanding compilers. */
14121
# include <limits.h>
14123
# include <assert.h>
14128
/* Override any gcc2 internal prototype to avoid an error. */
14133
/* We use char because int might match the return type of a gcc2
14134
builtin and then its argument prototype would still apply. */
14136
/* The GNU C library defines this for functions which it implements
14137
to always fail with ENOSYS. Some functions are actually named
14138
something starting with __ and the normal name is an alias. */
14139
#if defined (__stub_dlopen) || defined (__stub___dlopen)
14142
char (*f) () = dlopen;
14151
return f != dlopen;
14156
rm -f conftest.$ac_objext conftest$ac_exeext
14157
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14158
(eval $ac_link) 2>conftest.er1
14160
grep -v '^ *+' conftest.er1 >conftest.err
14162
cat conftest.err >&5
14163
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14164
(exit $ac_status); } &&
14165
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14166
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14167
(eval $ac_try) 2>&5
14169
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14170
(exit $ac_status); }; } &&
14171
{ ac_try='test -s conftest$ac_exeext'
14172
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14173
(eval $ac_try) 2>&5
14175
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14176
(exit $ac_status); }; }; then
14177
ac_cv_func_dlopen=yes
14179
echo "$as_me: failed program was:" >&5
14180
sed 's/^/| /' conftest.$ac_ext >&5
14182
ac_cv_func_dlopen=no
14184
rm -f conftest.err conftest.$ac_objext \
14185
conftest$ac_exeext conftest.$ac_ext
14187
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14188
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14189
if test $ac_cv_func_dlopen = yes; then
14190
lt_cv_dlopen="dlopen"
14192
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14193
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14194
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14195
echo $ECHO_N "(cached) $ECHO_C" >&6
14197
ac_check_lib_save_LIBS=$LIBS
14199
cat >conftest.$ac_ext <<_ACEOF
14202
cat confdefs.h >>conftest.$ac_ext
14203
cat >>conftest.$ac_ext <<_ACEOF
14204
/* end confdefs.h. */
14206
/* Override any gcc2 internal prototype to avoid an error. */
14210
/* We use char because int might match the return type of a gcc2
14211
builtin and then its argument prototype would still apply. */
14221
rm -f conftest.$ac_objext conftest$ac_exeext
14222
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14223
(eval $ac_link) 2>conftest.er1
14225
grep -v '^ *+' conftest.er1 >conftest.err
14227
cat conftest.err >&5
14228
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14229
(exit $ac_status); } &&
14230
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14231
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14232
(eval $ac_try) 2>&5
14234
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14235
(exit $ac_status); }; } &&
14236
{ ac_try='test -s conftest$ac_exeext'
14237
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14238
(eval $ac_try) 2>&5
14240
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14241
(exit $ac_status); }; }; then
14242
ac_cv_lib_dl_dlopen=yes
14244
echo "$as_me: failed program was:" >&5
14245
sed 's/^/| /' conftest.$ac_ext >&5
14247
ac_cv_lib_dl_dlopen=no
14249
rm -f conftest.err conftest.$ac_objext \
14250
conftest$ac_exeext conftest.$ac_ext
14251
LIBS=$ac_check_lib_save_LIBS
14253
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14254
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14255
if test $ac_cv_lib_dl_dlopen = yes; then
14256
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14258
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14259
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14260
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14261
echo $ECHO_N "(cached) $ECHO_C" >&6
14263
ac_check_lib_save_LIBS=$LIBS
14264
LIBS="-lsvld $LIBS"
14265
cat >conftest.$ac_ext <<_ACEOF
14268
cat confdefs.h >>conftest.$ac_ext
14269
cat >>conftest.$ac_ext <<_ACEOF
14270
/* end confdefs.h. */
14272
/* Override any gcc2 internal prototype to avoid an error. */
14276
/* We use char because int might match the return type of a gcc2
14277
builtin and then its argument prototype would still apply. */
14287
rm -f conftest.$ac_objext conftest$ac_exeext
14288
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14289
(eval $ac_link) 2>conftest.er1
14291
grep -v '^ *+' conftest.er1 >conftest.err
14293
cat conftest.err >&5
14294
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14295
(exit $ac_status); } &&
14296
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14297
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14298
(eval $ac_try) 2>&5
14300
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14301
(exit $ac_status); }; } &&
14302
{ ac_try='test -s conftest$ac_exeext'
14303
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14304
(eval $ac_try) 2>&5
14306
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14307
(exit $ac_status); }; }; then
14308
ac_cv_lib_svld_dlopen=yes
14310
echo "$as_me: failed program was:" >&5
14311
sed 's/^/| /' conftest.$ac_ext >&5
14313
ac_cv_lib_svld_dlopen=no
14315
rm -f conftest.err conftest.$ac_objext \
14316
conftest$ac_exeext conftest.$ac_ext
14317
LIBS=$ac_check_lib_save_LIBS
14319
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14320
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14321
if test $ac_cv_lib_svld_dlopen = yes; then
14322
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14324
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14325
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14326
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14327
echo $ECHO_N "(cached) $ECHO_C" >&6
14329
ac_check_lib_save_LIBS=$LIBS
14331
cat >conftest.$ac_ext <<_ACEOF
14334
cat confdefs.h >>conftest.$ac_ext
14335
cat >>conftest.$ac_ext <<_ACEOF
14336
/* end confdefs.h. */
14338
/* Override any gcc2 internal prototype to avoid an error. */
14342
/* We use char because int might match the return type of a gcc2
14343
builtin and then its argument prototype would still apply. */
14353
rm -f conftest.$ac_objext conftest$ac_exeext
14354
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14355
(eval $ac_link) 2>conftest.er1
14357
grep -v '^ *+' conftest.er1 >conftest.err
14359
cat conftest.err >&5
14360
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14361
(exit $ac_status); } &&
14362
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14363
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14364
(eval $ac_try) 2>&5
14366
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14367
(exit $ac_status); }; } &&
14368
{ ac_try='test -s conftest$ac_exeext'
14369
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14370
(eval $ac_try) 2>&5
14372
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14373
(exit $ac_status); }; }; then
14374
ac_cv_lib_dld_dld_link=yes
14376
echo "$as_me: failed program was:" >&5
14377
sed 's/^/| /' conftest.$ac_ext >&5
14379
ac_cv_lib_dld_dld_link=no
14381
rm -f conftest.err conftest.$ac_objext \
14382
conftest$ac_exeext conftest.$ac_ext
14383
LIBS=$ac_check_lib_save_LIBS
14385
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14386
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14387
if test $ac_cv_lib_dld_dld_link = yes; then
14388
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14409
if test "x$lt_cv_dlopen" != xno; then
14415
case $lt_cv_dlopen in
14417
save_CPPFLAGS="$CPPFLAGS"
14418
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14420
save_LDFLAGS="$LDFLAGS"
14421
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14424
LIBS="$lt_cv_dlopen_libs $LIBS"
14426
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14427
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14428
if test "${lt_cv_dlopen_self+set}" = set; then
14429
echo $ECHO_N "(cached) $ECHO_C" >&6
14431
if test "$cross_compiling" = yes; then :
14432
lt_cv_dlopen_self=cross
14434
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14435
lt_status=$lt_dlunknown
14436
cat > conftest.$ac_ext <<EOF
14437
#line 14437 "configure"
14438
#include "confdefs.h"
14447
# define LT_DLGLOBAL RTLD_GLOBAL
14450
# define LT_DLGLOBAL DL_GLOBAL
14452
# define LT_DLGLOBAL 0
14456
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14457
find out it does not work in some platform. */
14458
#ifndef LT_DLLAZY_OR_NOW
14460
# define LT_DLLAZY_OR_NOW RTLD_LAZY
14463
# define LT_DLLAZY_OR_NOW DL_LAZY
14466
# define LT_DLLAZY_OR_NOW RTLD_NOW
14469
# define LT_DLLAZY_OR_NOW DL_NOW
14471
# define LT_DLLAZY_OR_NOW 0
14479
extern "C" void exit (int);
14482
void fnord() { int i=42;}
14485
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14486
int status = $lt_dlunknown;
14490
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14491
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14492
/* dlclose (self); */
14498
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14499
(eval $ac_link) 2>&5
14501
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14502
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14503
(./conftest; exit; ) >&5 2>/dev/null
14505
case x$lt_status in
14506
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14507
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14508
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14511
# compilation failed
14512
lt_cv_dlopen_self=no
14519
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14520
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14522
if test "x$lt_cv_dlopen_self" = xyes; then
14523
LDFLAGS="$LDFLAGS $link_static_flag"
14524
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14525
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14526
if test "${lt_cv_dlopen_self_static+set}" = set; then
14527
echo $ECHO_N "(cached) $ECHO_C" >&6
14529
if test "$cross_compiling" = yes; then :
14530
lt_cv_dlopen_self_static=cross
14532
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14533
lt_status=$lt_dlunknown
14534
cat > conftest.$ac_ext <<EOF
14535
#line 14535 "configure"
14536
#include "confdefs.h"
14545
# define LT_DLGLOBAL RTLD_GLOBAL
14548
# define LT_DLGLOBAL DL_GLOBAL
14550
# define LT_DLGLOBAL 0
14554
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14555
find out it does not work in some platform. */
14556
#ifndef LT_DLLAZY_OR_NOW
14558
# define LT_DLLAZY_OR_NOW RTLD_LAZY
14561
# define LT_DLLAZY_OR_NOW DL_LAZY
14564
# define LT_DLLAZY_OR_NOW RTLD_NOW
14567
# define LT_DLLAZY_OR_NOW DL_NOW
14569
# define LT_DLLAZY_OR_NOW 0
14577
extern "C" void exit (int);
14580
void fnord() { int i=42;}
14583
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14584
int status = $lt_dlunknown;
14588
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14589
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14590
/* dlclose (self); */
14596
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14597
(eval $ac_link) 2>&5
14599
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14600
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14601
(./conftest; exit; ) >&5 2>/dev/null
14603
case x$lt_status in
14604
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14605
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14606
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14609
# compilation failed
14610
lt_cv_dlopen_self_static=no
14617
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14618
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14621
CPPFLAGS="$save_CPPFLAGS"
14622
LDFLAGS="$save_LDFLAGS"
14627
case $lt_cv_dlopen_self in
14628
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14629
*) enable_dlopen_self=unknown ;;
14632
case $lt_cv_dlopen_self_static in
14633
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14634
*) enable_dlopen_self_static=unknown ;;
14639
15439
# The else clause should only fire when bootstrapping the
14640
15440
# libtool distribution, otherwise you forgot to ship ltmain.sh
19569
20650
enable_fast_install=needless
19574
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
19575
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
19576
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
19577
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
19578
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
19579
echo "$as_me:$LINENO: result: yes" >&5
19580
echo "${ECHO_T}yes" >&6
19582
# FIXME - insert some real tests, host_os isn't really good enough
19585
if test -n "$STRIP" ; then
19586
striplib="$STRIP -x"
19587
echo "$as_me:$LINENO: result: yes" >&5
19588
echo "${ECHO_T}yes" >&6
19590
echo "$as_me:$LINENO: result: no" >&5
19591
echo "${ECHO_T}no" >&6
19595
echo "$as_me:$LINENO: result: no" >&5
19596
echo "${ECHO_T}no" >&6
19601
if test "x$enable_dlopen" != xyes; then
19602
enable_dlopen=unknown
19603
enable_dlopen_self=unknown
19604
enable_dlopen_self_static=unknown
19611
lt_cv_dlopen="load_add_on"
19613
lt_cv_dlopen_self=yes
19617
lt_cv_dlopen="LoadLibrary"
19622
lt_cv_dlopen="dlopen"
19627
# if libdl is installed we need to link against it
19628
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19629
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19630
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19631
echo $ECHO_N "(cached) $ECHO_C" >&6
19633
ac_check_lib_save_LIBS=$LIBS
19635
cat >conftest.$ac_ext <<_ACEOF
19638
cat confdefs.h >>conftest.$ac_ext
19639
cat >>conftest.$ac_ext <<_ACEOF
19640
/* end confdefs.h. */
19642
/* Override any gcc2 internal prototype to avoid an error. */
19646
/* We use char because int might match the return type of a gcc2
19647
builtin and then its argument prototype would still apply. */
19657
rm -f conftest.$ac_objext conftest$ac_exeext
19658
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19659
(eval $ac_link) 2>conftest.er1
19661
grep -v '^ *+' conftest.er1 >conftest.err
19663
cat conftest.err >&5
19664
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19665
(exit $ac_status); } &&
19666
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19667
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19668
(eval $ac_try) 2>&5
19670
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19671
(exit $ac_status); }; } &&
19672
{ ac_try='test -s conftest$ac_exeext'
19673
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19674
(eval $ac_try) 2>&5
19676
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19677
(exit $ac_status); }; }; then
19678
ac_cv_lib_dl_dlopen=yes
19680
echo "$as_me: failed program was:" >&5
19681
sed 's/^/| /' conftest.$ac_ext >&5
19683
ac_cv_lib_dl_dlopen=no
19685
rm -f conftest.err conftest.$ac_objext \
19686
conftest$ac_exeext conftest.$ac_ext
19687
LIBS=$ac_check_lib_save_LIBS
19689
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19690
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19691
if test $ac_cv_lib_dl_dlopen = yes; then
19692
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19695
lt_cv_dlopen="dyld"
19697
lt_cv_dlopen_self=yes
19704
echo "$as_me:$LINENO: checking for shl_load" >&5
19705
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
19706
if test "${ac_cv_func_shl_load+set}" = set; then
19707
echo $ECHO_N "(cached) $ECHO_C" >&6
19709
cat >conftest.$ac_ext <<_ACEOF
19712
cat confdefs.h >>conftest.$ac_ext
19713
cat >>conftest.$ac_ext <<_ACEOF
19714
/* end confdefs.h. */
19715
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
19716
For example, HP-UX 11i <limits.h> declares gettimeofday. */
19717
#define shl_load innocuous_shl_load
19719
/* System header to define __stub macros and hopefully few prototypes,
19720
which can conflict with char shl_load (); below.
19721
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19722
<limits.h> exists even on freestanding compilers. */
19725
# include <limits.h>
19727
# include <assert.h>
19732
/* Override any gcc2 internal prototype to avoid an error. */
19737
/* We use char because int might match the return type of a gcc2
19738
builtin and then its argument prototype would still apply. */
19740
/* The GNU C library defines this for functions which it implements
19741
to always fail with ENOSYS. Some functions are actually named
19742
something starting with __ and the normal name is an alias. */
19743
#if defined (__stub_shl_load) || defined (__stub___shl_load)
19746
char (*f) () = shl_load;
19755
return f != shl_load;
19760
rm -f conftest.$ac_objext conftest$ac_exeext
19761
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19762
(eval $ac_link) 2>conftest.er1
19764
grep -v '^ *+' conftest.er1 >conftest.err
19766
cat conftest.err >&5
19767
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19768
(exit $ac_status); } &&
19769
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19770
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19771
(eval $ac_try) 2>&5
19773
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19774
(exit $ac_status); }; } &&
19775
{ ac_try='test -s conftest$ac_exeext'
19776
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19777
(eval $ac_try) 2>&5
19779
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19780
(exit $ac_status); }; }; then
19781
ac_cv_func_shl_load=yes
19783
echo "$as_me: failed program was:" >&5
19784
sed 's/^/| /' conftest.$ac_ext >&5
19786
ac_cv_func_shl_load=no
19788
rm -f conftest.err conftest.$ac_objext \
19789
conftest$ac_exeext conftest.$ac_ext
19791
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
19792
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
19793
if test $ac_cv_func_shl_load = yes; then
19794
lt_cv_dlopen="shl_load"
19796
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
19797
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
19798
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
19799
echo $ECHO_N "(cached) $ECHO_C" >&6
19801
ac_check_lib_save_LIBS=$LIBS
19803
cat >conftest.$ac_ext <<_ACEOF
19806
cat confdefs.h >>conftest.$ac_ext
19807
cat >>conftest.$ac_ext <<_ACEOF
19808
/* end confdefs.h. */
19810
/* Override any gcc2 internal prototype to avoid an error. */
19814
/* We use char because int might match the return type of a gcc2
19815
builtin and then its argument prototype would still apply. */
19825
rm -f conftest.$ac_objext conftest$ac_exeext
19826
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19827
(eval $ac_link) 2>conftest.er1
19829
grep -v '^ *+' conftest.er1 >conftest.err
19831
cat conftest.err >&5
19832
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19833
(exit $ac_status); } &&
19834
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19835
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19836
(eval $ac_try) 2>&5
19838
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19839
(exit $ac_status); }; } &&
19840
{ ac_try='test -s conftest$ac_exeext'
19841
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19842
(eval $ac_try) 2>&5
19844
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19845
(exit $ac_status); }; }; then
19846
ac_cv_lib_dld_shl_load=yes
19848
echo "$as_me: failed program was:" >&5
19849
sed 's/^/| /' conftest.$ac_ext >&5
19851
ac_cv_lib_dld_shl_load=no
19853
rm -f conftest.err conftest.$ac_objext \
19854
conftest$ac_exeext conftest.$ac_ext
19855
LIBS=$ac_check_lib_save_LIBS
19857
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
19858
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
19859
if test $ac_cv_lib_dld_shl_load = yes; then
19860
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
19862
echo "$as_me:$LINENO: checking for dlopen" >&5
19863
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
19864
if test "${ac_cv_func_dlopen+set}" = set; then
19865
echo $ECHO_N "(cached) $ECHO_C" >&6
19867
cat >conftest.$ac_ext <<_ACEOF
19870
cat confdefs.h >>conftest.$ac_ext
19871
cat >>conftest.$ac_ext <<_ACEOF
19872
/* end confdefs.h. */
19873
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
19874
For example, HP-UX 11i <limits.h> declares gettimeofday. */
19875
#define dlopen innocuous_dlopen
19877
/* System header to define __stub macros and hopefully few prototypes,
19878
which can conflict with char dlopen (); below.
19879
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19880
<limits.h> exists even on freestanding compilers. */
19883
# include <limits.h>
19885
# include <assert.h>
19890
/* Override any gcc2 internal prototype to avoid an error. */
19895
/* We use char because int might match the return type of a gcc2
19896
builtin and then its argument prototype would still apply. */
19898
/* The GNU C library defines this for functions which it implements
19899
to always fail with ENOSYS. Some functions are actually named
19900
something starting with __ and the normal name is an alias. */
19901
#if defined (__stub_dlopen) || defined (__stub___dlopen)
19904
char (*f) () = dlopen;
19913
return f != dlopen;
19918
rm -f conftest.$ac_objext conftest$ac_exeext
19919
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19920
(eval $ac_link) 2>conftest.er1
19922
grep -v '^ *+' conftest.er1 >conftest.err
19924
cat conftest.err >&5
19925
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19926
(exit $ac_status); } &&
19927
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19928
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19929
(eval $ac_try) 2>&5
19931
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19932
(exit $ac_status); }; } &&
19933
{ ac_try='test -s conftest$ac_exeext'
19934
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19935
(eval $ac_try) 2>&5
19937
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19938
(exit $ac_status); }; }; then
19939
ac_cv_func_dlopen=yes
19941
echo "$as_me: failed program was:" >&5
19942
sed 's/^/| /' conftest.$ac_ext >&5
19944
ac_cv_func_dlopen=no
19946
rm -f conftest.err conftest.$ac_objext \
19947
conftest$ac_exeext conftest.$ac_ext
19949
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
19950
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
19951
if test $ac_cv_func_dlopen = yes; then
19952
lt_cv_dlopen="dlopen"
19954
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19955
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19956
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19957
echo $ECHO_N "(cached) $ECHO_C" >&6
19959
ac_check_lib_save_LIBS=$LIBS
19961
cat >conftest.$ac_ext <<_ACEOF
19964
cat confdefs.h >>conftest.$ac_ext
19965
cat >>conftest.$ac_ext <<_ACEOF
19966
/* end confdefs.h. */
19968
/* Override any gcc2 internal prototype to avoid an error. */
19972
/* We use char because int might match the return type of a gcc2
19973
builtin and then its argument prototype would still apply. */
19983
rm -f conftest.$ac_objext conftest$ac_exeext
19984
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19985
(eval $ac_link) 2>conftest.er1
19987
grep -v '^ *+' conftest.er1 >conftest.err
19989
cat conftest.err >&5
19990
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19991
(exit $ac_status); } &&
19992
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19993
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19994
(eval $ac_try) 2>&5
19996
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19997
(exit $ac_status); }; } &&
19998
{ ac_try='test -s conftest$ac_exeext'
19999
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20000
(eval $ac_try) 2>&5
20002
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20003
(exit $ac_status); }; }; then
20004
ac_cv_lib_dl_dlopen=yes
20006
echo "$as_me: failed program was:" >&5
20007
sed 's/^/| /' conftest.$ac_ext >&5
20009
ac_cv_lib_dl_dlopen=no
20011
rm -f conftest.err conftest.$ac_objext \
20012
conftest$ac_exeext conftest.$ac_ext
20013
LIBS=$ac_check_lib_save_LIBS
20015
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20016
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
20017
if test $ac_cv_lib_dl_dlopen = yes; then
20018
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
20020
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
20021
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
20022
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
20023
echo $ECHO_N "(cached) $ECHO_C" >&6
20025
ac_check_lib_save_LIBS=$LIBS
20026
LIBS="-lsvld $LIBS"
20027
cat >conftest.$ac_ext <<_ACEOF
20030
cat confdefs.h >>conftest.$ac_ext
20031
cat >>conftest.$ac_ext <<_ACEOF
20032
/* end confdefs.h. */
20034
/* Override any gcc2 internal prototype to avoid an error. */
20038
/* We use char because int might match the return type of a gcc2
20039
builtin and then its argument prototype would still apply. */
20049
rm -f conftest.$ac_objext conftest$ac_exeext
20050
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20051
(eval $ac_link) 2>conftest.er1
20053
grep -v '^ *+' conftest.er1 >conftest.err
20055
cat conftest.err >&5
20056
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20057
(exit $ac_status); } &&
20058
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20059
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20060
(eval $ac_try) 2>&5
20062
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20063
(exit $ac_status); }; } &&
20064
{ ac_try='test -s conftest$ac_exeext'
20065
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20066
(eval $ac_try) 2>&5
20068
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20069
(exit $ac_status); }; }; then
20070
ac_cv_lib_svld_dlopen=yes
20072
echo "$as_me: failed program was:" >&5
20073
sed 's/^/| /' conftest.$ac_ext >&5
20075
ac_cv_lib_svld_dlopen=no
20077
rm -f conftest.err conftest.$ac_objext \
20078
conftest$ac_exeext conftest.$ac_ext
20079
LIBS=$ac_check_lib_save_LIBS
20081
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
20082
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
20083
if test $ac_cv_lib_svld_dlopen = yes; then
20084
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
20086
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
20087
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
20088
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
20089
echo $ECHO_N "(cached) $ECHO_C" >&6
20091
ac_check_lib_save_LIBS=$LIBS
20093
cat >conftest.$ac_ext <<_ACEOF
20096
cat confdefs.h >>conftest.$ac_ext
20097
cat >>conftest.$ac_ext <<_ACEOF
20098
/* end confdefs.h. */
20100
/* Override any gcc2 internal prototype to avoid an error. */
20104
/* We use char because int might match the return type of a gcc2
20105
builtin and then its argument prototype would still apply. */
20115
rm -f conftest.$ac_objext conftest$ac_exeext
20116
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20117
(eval $ac_link) 2>conftest.er1
20119
grep -v '^ *+' conftest.er1 >conftest.err
20121
cat conftest.err >&5
20122
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20123
(exit $ac_status); } &&
20124
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20125
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20126
(eval $ac_try) 2>&5
20128
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20129
(exit $ac_status); }; } &&
20130
{ ac_try='test -s conftest$ac_exeext'
20131
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20132
(eval $ac_try) 2>&5
20134
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20135
(exit $ac_status); }; }; then
20136
ac_cv_lib_dld_dld_link=yes
20138
echo "$as_me: failed program was:" >&5
20139
sed 's/^/| /' conftest.$ac_ext >&5
20141
ac_cv_lib_dld_dld_link=no
20143
rm -f conftest.err conftest.$ac_objext \
20144
conftest$ac_exeext conftest.$ac_ext
20145
LIBS=$ac_check_lib_save_LIBS
20147
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
20148
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
20149
if test $ac_cv_lib_dld_dld_link = yes; then
20150
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
20171
if test "x$lt_cv_dlopen" != xno; then
20177
case $lt_cv_dlopen in
20179
save_CPPFLAGS="$CPPFLAGS"
20180
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
20182
save_LDFLAGS="$LDFLAGS"
20183
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
20186
LIBS="$lt_cv_dlopen_libs $LIBS"
20188
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
20189
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
20190
if test "${lt_cv_dlopen_self+set}" = set; then
20191
echo $ECHO_N "(cached) $ECHO_C" >&6
20193
if test "$cross_compiling" = yes; then :
20194
lt_cv_dlopen_self=cross
20196
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20197
lt_status=$lt_dlunknown
20198
cat > conftest.$ac_ext <<EOF
20199
#line 20199 "configure"
20200
#include "confdefs.h"
20209
# define LT_DLGLOBAL RTLD_GLOBAL
20212
# define LT_DLGLOBAL DL_GLOBAL
20214
# define LT_DLGLOBAL 0
20218
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20219
find out it does not work in some platform. */
20220
#ifndef LT_DLLAZY_OR_NOW
20222
# define LT_DLLAZY_OR_NOW RTLD_LAZY
20225
# define LT_DLLAZY_OR_NOW DL_LAZY
20228
# define LT_DLLAZY_OR_NOW RTLD_NOW
20231
# define LT_DLLAZY_OR_NOW DL_NOW
20233
# define LT_DLLAZY_OR_NOW 0
20241
extern "C" void exit (int);
20244
void fnord() { int i=42;}
20247
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20248
int status = $lt_dlunknown;
20252
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20253
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20254
/* dlclose (self); */
20260
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20261
(eval $ac_link) 2>&5
20263
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20264
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20265
(./conftest; exit; ) >&5 2>/dev/null
20267
case x$lt_status in
20268
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
20269
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
20270
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
20273
# compilation failed
20274
lt_cv_dlopen_self=no
20281
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
20282
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
20284
if test "x$lt_cv_dlopen_self" = xyes; then
20285
LDFLAGS="$LDFLAGS $link_static_flag"
20286
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
20287
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
20288
if test "${lt_cv_dlopen_self_static+set}" = set; then
20289
echo $ECHO_N "(cached) $ECHO_C" >&6
20291
if test "$cross_compiling" = yes; then :
20292
lt_cv_dlopen_self_static=cross
20294
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20295
lt_status=$lt_dlunknown
20296
cat > conftest.$ac_ext <<EOF
20297
#line 20297 "configure"
20298
#include "confdefs.h"
20307
# define LT_DLGLOBAL RTLD_GLOBAL
20310
# define LT_DLGLOBAL DL_GLOBAL
20312
# define LT_DLGLOBAL 0
20316
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20317
find out it does not work in some platform. */
20318
#ifndef LT_DLLAZY_OR_NOW
20320
# define LT_DLLAZY_OR_NOW RTLD_LAZY
20323
# define LT_DLLAZY_OR_NOW DL_LAZY
20326
# define LT_DLLAZY_OR_NOW RTLD_NOW
20329
# define LT_DLLAZY_OR_NOW DL_NOW
20331
# define LT_DLLAZY_OR_NOW 0
20339
extern "C" void exit (int);
20342
void fnord() { int i=42;}
20345
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20346
int status = $lt_dlunknown;
20350
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20351
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20352
/* dlclose (self); */
20358
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20359
(eval $ac_link) 2>&5
20361
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20362
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20363
(./conftest; exit; ) >&5 2>/dev/null
20365
case x$lt_status in
20366
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
20367
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
20368
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
20371
# compilation failed
20372
lt_cv_dlopen_self_static=no
20379
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
20380
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
20383
CPPFLAGS="$save_CPPFLAGS"
20384
LDFLAGS="$save_LDFLAGS"
20389
case $lt_cv_dlopen_self in
20390
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
20391
*) enable_dlopen_self=unknown ;;
20394
case $lt_cv_dlopen_self_static in
20395
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
20396
*) enable_dlopen_self_static=unknown ;;
20401
20654
# The else clause should only fire when bootstrapping the
20402
20655
# libtool distribution, otherwise you forgot to ship ltmain.sh
21413
21674
#define CURL_STATICLIB 1
21416
echo "$as_me:$LINENO: result: yes" >&5
21417
echo "${ECHO_T}yes" >&6
21677
{ echo "$as_me:$LINENO: result: yes" >&5
21678
echo "${ECHO_T}yes" >&6; }
21419
echo "$as_me:$LINENO: result: no" >&5
21420
echo "${ECHO_T}no" >&6
21680
{ echo "$as_me:$LINENO: result: no" >&5
21681
echo "${ECHO_T}no" >&6; }
21424
echo "$as_me:$LINENO: result: no" >&5
21425
echo "${ECHO_T}no" >&6
21685
{ echo "$as_me:$LINENO: result: no" >&5
21686
echo "${ECHO_T}no" >&6; }
21429
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
21430
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
21431
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
21432
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
21690
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
21691
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
21692
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/^a-zA-Z0-9_/_/g'`
21693
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
21433
21694
echo $ECHO_N "(cached) $ECHO_C" >&6
21435
21696
cat >conftest.make <<\_ACEOF
21437
@echo 'ac_maketemp="$(MAKE)"'
21699
@echo '@@@%%%=$(MAKE)=@@@%%%'
21439
21701
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
21440
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
21441
if test -n "$ac_maketemp"; then
21442
eval ac_cv_prog_make_${ac_make}_set=yes
21444
eval ac_cv_prog_make_${ac_make}_set=no
21702
case `${MAKE-make} -f conftest.make 2>/dev/null` in
21703
*@@@%%%=?*=@@@%%%*)
21704
eval ac_cv_prog_make_${ac_make}_set=yes;;
21706
eval ac_cv_prog_make_${ac_make}_set=no;;
21446
21708
rm -f conftest.make
21448
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
21449
echo "$as_me:$LINENO: result: yes" >&5
21450
echo "${ECHO_T}yes" >&6
21710
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
21711
{ echo "$as_me:$LINENO: result: yes" >&5
21712
echo "${ECHO_T}yes" >&6; }
21453
echo "$as_me:$LINENO: result: no" >&5
21454
echo "${ECHO_T}no" >&6
21715
{ echo "$as_me:$LINENO: result: no" >&5
21716
echo "${ECHO_T}no" >&6; }
21455
21717
SET_MAKE="MAKE=${MAKE-make}"
21459
echo "$as_me:$LINENO: checking whether to support http" >&5
21460
echo $ECHO_N "checking whether to support http... $ECHO_C" >&6
21461
# Check whether --enable-http or --disable-http was given.
21723
{ echo "$as_me:$LINENO: checking for windows.h" >&5
21724
echo $ECHO_N "checking for windows.h... $ECHO_C" >&6; }
21725
if test "${ac_cv_header_windows_h+set}" = set; then
21726
echo $ECHO_N "(cached) $ECHO_C" >&6
21729
cat >conftest.$ac_ext <<_ACEOF
21733
cat confdefs.h >>conftest.$ac_ext
21734
cat >>conftest.$ac_ext <<_ACEOF
21735
/* end confdefs.h. */
21738
#ifndef WIN32_LEAN_AND_MEAN
21739
#define WIN32_LEAN_AND_MEAN
21741
#include <windows.h>
21747
int dummy=2*WINVER;
21754
rm -f conftest.$ac_objext
21755
if { (ac_try="$ac_compile"
21756
case "(($ac_try" in
21757
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21758
*) ac_try_echo=$ac_try;;
21760
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21761
(eval "$ac_compile") 2>conftest.er1
21763
grep -v '^ *+' conftest.er1 >conftest.err
21765
cat conftest.err >&5
21766
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21767
(exit $ac_status); } &&
21768
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21769
{ (case "(($ac_try" in
21770
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21771
*) ac_try_echo=$ac_try;;
21773
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21774
(eval "$ac_try") 2>&5
21776
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21777
(exit $ac_status); }; } &&
21778
{ ac_try='test -s conftest.$ac_objext'
21779
{ (case "(($ac_try" in
21780
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21781
*) ac_try_echo=$ac_try;;
21783
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21784
(eval "$ac_try") 2>&5
21786
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21787
(exit $ac_status); }; }; then
21789
ac_cv_header_windows_h="yes"
21792
echo "$as_me: failed program was:" >&5
21793
sed 's/^/| /' conftest.$ac_ext >&5
21796
ac_cv_header_windows_h="no"
21800
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21803
{ echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
21804
echo "${ECHO_T}$ac_cv_header_windows_h" >&6; }
21805
if test "x$ac_cv_header_windows_h" = "xyes"; then
21807
cat >>confdefs.h <<_ACEOF
21808
#define HAVE_WINDOWS_H 1
21812
cat >>confdefs.h <<_ACEOF
21813
#define WIN32_LEAN_AND_MEAN 1
21819
{ echo "$as_me:$LINENO: checking for winsock.h" >&5
21820
echo $ECHO_N "checking for winsock.h... $ECHO_C" >&6; }
21821
if test "${ac_cv_header_winsock_h+set}" = set; then
21822
echo $ECHO_N "(cached) $ECHO_C" >&6
21825
cat >conftest.$ac_ext <<_ACEOF
21829
cat confdefs.h >>conftest.$ac_ext
21830
cat >>conftest.$ac_ext <<_ACEOF
21831
/* end confdefs.h. */
21834
#ifndef WIN32_LEAN_AND_MEAN
21835
#define WIN32_LEAN_AND_MEAN
21837
#include <windows.h>
21838
#include <winsock.h>
21844
int dummy=WSACleanup();
21851
rm -f conftest.$ac_objext
21852
if { (ac_try="$ac_compile"
21853
case "(($ac_try" in
21854
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21855
*) ac_try_echo=$ac_try;;
21857
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21858
(eval "$ac_compile") 2>conftest.er1
21860
grep -v '^ *+' conftest.er1 >conftest.err
21862
cat conftest.err >&5
21863
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21864
(exit $ac_status); } &&
21865
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21866
{ (case "(($ac_try" in
21867
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21868
*) ac_try_echo=$ac_try;;
21870
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21871
(eval "$ac_try") 2>&5
21873
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21874
(exit $ac_status); }; } &&
21875
{ ac_try='test -s conftest.$ac_objext'
21876
{ (case "(($ac_try" in
21877
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21878
*) ac_try_echo=$ac_try;;
21880
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21881
(eval "$ac_try") 2>&5
21883
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21884
(exit $ac_status); }; }; then
21886
ac_cv_header_winsock_h="yes"
21889
echo "$as_me: failed program was:" >&5
21890
sed 's/^/| /' conftest.$ac_ext >&5
21893
ac_cv_header_winsock_h="no"
21897
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21900
{ echo "$as_me:$LINENO: result: $ac_cv_header_winsock_h" >&5
21901
echo "${ECHO_T}$ac_cv_header_winsock_h" >&6; }
21902
if test "x$ac_cv_header_winsock_h" = "xyes"; then
21904
cat >>confdefs.h <<_ACEOF
21905
#define HAVE_WINSOCK_H 1
21911
{ echo "$as_me:$LINENO: checking for winsock2.h" >&5
21912
echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6; }
21913
if test "${ac_cv_header_winsock2_h+set}" = set; then
21914
echo $ECHO_N "(cached) $ECHO_C" >&6
21917
cat >conftest.$ac_ext <<_ACEOF
21921
cat confdefs.h >>conftest.$ac_ext
21922
cat >>conftest.$ac_ext <<_ACEOF
21923
/* end confdefs.h. */
21926
#ifndef WIN32_LEAN_AND_MEAN
21927
#define WIN32_LEAN_AND_MEAN
21929
#include <windows.h>
21930
#include <winsock2.h>
21936
int dummy=2*IPPROTO_ESP;
21943
rm -f conftest.$ac_objext
21944
if { (ac_try="$ac_compile"
21945
case "(($ac_try" in
21946
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21947
*) ac_try_echo=$ac_try;;
21949
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21950
(eval "$ac_compile") 2>conftest.er1
21952
grep -v '^ *+' conftest.er1 >conftest.err
21954
cat conftest.err >&5
21955
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21956
(exit $ac_status); } &&
21957
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21958
{ (case "(($ac_try" in
21959
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21960
*) ac_try_echo=$ac_try;;
21962
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21963
(eval "$ac_try") 2>&5
21965
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21966
(exit $ac_status); }; } &&
21967
{ ac_try='test -s conftest.$ac_objext'
21968
{ (case "(($ac_try" in
21969
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21970
*) ac_try_echo=$ac_try;;
21972
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21973
(eval "$ac_try") 2>&5
21975
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21976
(exit $ac_status); }; }; then
21978
ac_cv_header_winsock2_h="yes"
21981
echo "$as_me: failed program was:" >&5
21982
sed 's/^/| /' conftest.$ac_ext >&5
21985
ac_cv_header_winsock2_h="no"
21989
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21992
{ echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5
21993
echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6; }
21994
if test "x$ac_cv_header_winsock2_h" = "xyes"; then
21996
cat >>confdefs.h <<_ACEOF
21997
#define HAVE_WINSOCK2_H 1
22003
{ echo "$as_me:$LINENO: checking for ws2tcpip.h" >&5
22004
echo $ECHO_N "checking for ws2tcpip.h... $ECHO_C" >&6; }
22005
if test "${ac_cv_header_ws2tcpip_h+set}" = set; then
22006
echo $ECHO_N "(cached) $ECHO_C" >&6
22009
cat >conftest.$ac_ext <<_ACEOF
22013
cat confdefs.h >>conftest.$ac_ext
22014
cat >>conftest.$ac_ext <<_ACEOF
22015
/* end confdefs.h. */
22018
#ifndef WIN32_LEAN_AND_MEAN
22019
#define WIN32_LEAN_AND_MEAN
22021
#include <windows.h>
22022
#include <winsock2.h>
22023
#include <ws2tcpip.h>
22029
int dummy=2*IP_PKTINFO;
22036
rm -f conftest.$ac_objext
22037
if { (ac_try="$ac_compile"
22038
case "(($ac_try" in
22039
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22040
*) ac_try_echo=$ac_try;;
22042
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22043
(eval "$ac_compile") 2>conftest.er1
22045
grep -v '^ *+' conftest.er1 >conftest.err
22047
cat conftest.err >&5
22048
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22049
(exit $ac_status); } &&
22050
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22051
{ (case "(($ac_try" in
22052
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22053
*) ac_try_echo=$ac_try;;
22055
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22056
(eval "$ac_try") 2>&5
22058
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22059
(exit $ac_status); }; } &&
22060
{ ac_try='test -s conftest.$ac_objext'
22061
{ (case "(($ac_try" in
22062
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22063
*) ac_try_echo=$ac_try;;
22065
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22066
(eval "$ac_try") 2>&5
22068
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22069
(exit $ac_status); }; }; then
22071
ac_cv_header_ws2tcpip_h="yes"
22074
echo "$as_me: failed program was:" >&5
22075
sed 's/^/| /' conftest.$ac_ext >&5
22078
ac_cv_header_ws2tcpip_h="no"
22082
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22085
{ echo "$as_me:$LINENO: result: $ac_cv_header_ws2tcpip_h" >&5
22086
echo "${ECHO_T}$ac_cv_header_ws2tcpip_h" >&6; }
22087
if test "x$ac_cv_header_ws2tcpip_h" = "xyes"; then
22089
cat >>confdefs.h <<_ACEOF
22090
#define HAVE_WS2TCPIP_H 1
22097
{ echo "$as_me:$LINENO: checking whether to support http" >&5
22098
echo $ECHO_N "checking whether to support http... $ECHO_C" >&6; }
22099
# Check whether --enable-http was given.
21462
22100
if test "${enable_http+set}" = set; then
21463
enableval="$enable_http"
21464
case "$enableval" in
22101
enableval=$enable_http; case "$enableval" in
21466
echo "$as_me:$LINENO: result: no" >&5
21467
echo "${ECHO_T}no" >&6
22103
{ echo "$as_me:$LINENO: result: no" >&5
22104
echo "${ECHO_T}no" >&6; }
21469
22106
cat >>confdefs.h <<\_ACEOF
21470
22107
#define CURL_DISABLE_HTTP 1
21473
{ echo "$as_me:$LINENO: WARNING: disable HTTP disables FTP over proxy and GOPHER too" >&5
21474
echo "$as_me: WARNING: disable HTTP disables FTP over proxy and GOPHER too" >&2;}
21476
cat >>confdefs.h <<\_ACEOF
21477
#define CURL_DISABLE_GOPHER 1
22110
{ echo "$as_me:$LINENO: WARNING: disable HTTP disables FTP over proxy" >&5
22111
echo "$as_me: WARNING: disable HTTP disables FTP over proxy" >&2;}
21480
22112
CURL_DISABLE_HTTP=1
21482
CURL_DISABLE_GOPHER=1
21485
*) echo "$as_me:$LINENO: result: yes" >&5
21486
echo "${ECHO_T}yes" >&6
22115
*) { echo "$as_me:$LINENO: result: yes" >&5
22116
echo "${ECHO_T}yes" >&6; }
21490
echo "$as_me:$LINENO: result: yes" >&5
21491
echo "${ECHO_T}yes" >&6
21494
echo "$as_me:$LINENO: checking whether to support ftp" >&5
21495
echo $ECHO_N "checking whether to support ftp... $ECHO_C" >&6
21496
# Check whether --enable-ftp or --disable-ftp was given.
22120
{ echo "$as_me:$LINENO: result: yes" >&5
22121
echo "${ECHO_T}yes" >&6; }
22125
{ echo "$as_me:$LINENO: checking whether to support ftp" >&5
22126
echo $ECHO_N "checking whether to support ftp... $ECHO_C" >&6; }
22127
# Check whether --enable-ftp was given.
21497
22128
if test "${enable_ftp+set}" = set; then
21498
enableval="$enable_ftp"
21499
case "$enableval" in
22129
enableval=$enable_ftp; case "$enableval" in
21501
echo "$as_me:$LINENO: result: no" >&5
21502
echo "${ECHO_T}no" >&6
22131
{ echo "$as_me:$LINENO: result: no" >&5
22132
echo "${ECHO_T}no" >&6; }
21504
22134
cat >>confdefs.h <<\_ACEOF
21505
22135
#define CURL_DISABLE_FTP 1
23245
echo "$as_me:$LINENO: checking non-blocking sockets style" >&5
23246
echo $ECHO_N "checking non-blocking sockets style... $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. */
23255
/* headers for O_NONBLOCK test */
23256
#include <sys/types.h>
23257
#include <unistd.h>
23264
/* try to compile O_NONBLOCK */
23266
#if defined(sun) || defined(__sun__) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
23267
# if defined(__SVR4) || defined(__srv4__)
23268
# define PLATFORM_SOLARIS
23270
# define PLATFORM_SUNOS4
23273
#if (defined(_AIX) || defined(__xlC__)) && !defined(_AIX4)
23274
# define PLATFORM_AIX_V3
23277
#if defined(PLATFORM_SUNOS4) || defined(PLATFORM_AIX_V3) || defined(__BEOS__)
23278
#error "O_NONBLOCK does not work on this platform"
23281
int flags = fcntl(socket, F_SETFL, flags | O_NONBLOCK);
23287
rm -f conftest.$ac_objext
23288
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23289
(eval $ac_compile) 2>conftest.er1
23291
grep -v '^ *+' conftest.er1 >conftest.err
23293
cat conftest.err >&5
23294
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23295
(exit $ac_status); } &&
23296
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23297
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23298
(eval $ac_try) 2>&5
23300
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23301
(exit $ac_status); }; } &&
23302
{ ac_try='test -s conftest.$ac_objext'
23303
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23304
(eval $ac_try) 2>&5
23306
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23307
(exit $ac_status); }; }; then
23309
nonblock="O_NONBLOCK"
23311
cat >>confdefs.h <<\_ACEOF
23312
#define HAVE_O_NONBLOCK 1
23317
echo "$as_me: failed program was:" >&5
23318
sed 's/^/| /' conftest.$ac_ext >&5
23322
cat >conftest.$ac_ext <<_ACEOF
23325
cat confdefs.h >>conftest.$ac_ext
23326
cat >>conftest.$ac_ext <<_ACEOF
23327
/* end confdefs.h. */
23329
/* headers for FIONBIO test */
23330
#include <unistd.h>
23331
#include <stropts.h>
23337
/* FIONBIO source test (old-style unix) */
23339
int flags = ioctl(socket, FIONBIO, &flags);
23345
rm -f conftest.$ac_objext
23346
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23347
(eval $ac_compile) 2>conftest.er1
23349
grep -v '^ *+' conftest.er1 >conftest.err
23351
cat conftest.err >&5
23352
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23353
(exit $ac_status); } &&
23354
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23355
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23356
(eval $ac_try) 2>&5
23358
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23359
(exit $ac_status); }; } &&
23360
{ ac_try='test -s conftest.$ac_objext'
23361
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23362
(eval $ac_try) 2>&5
23364
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23365
(exit $ac_status); }; }; then
23369
cat >>confdefs.h <<\_ACEOF
23370
#define HAVE_FIONBIO 1
23375
echo "$as_me: failed program was:" >&5
23376
sed 's/^/| /' conftest.$ac_ext >&5
23380
cat >conftest.$ac_ext <<_ACEOF
23383
cat confdefs.h >>conftest.$ac_ext
23384
cat >>conftest.$ac_ext <<_ACEOF
23385
/* end confdefs.h. */
23387
/* headers for ioctlsocket test (cygwin?) */
23388
#include <windows.h>
23394
/* ioctlsocket source code */
23396
unsigned long flags = ioctlsocket(socket, FIONBIO, &flags);
23402
rm -f conftest.$ac_objext
23403
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23404
(eval $ac_compile) 2>conftest.er1
23406
grep -v '^ *+' conftest.er1 >conftest.err
23408
cat conftest.err >&5
23409
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23410
(exit $ac_status); } &&
23411
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23412
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23413
(eval $ac_try) 2>&5
23415
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23416
(exit $ac_status); }; } &&
23417
{ ac_try='test -s conftest.$ac_objext'
23418
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23419
(eval $ac_try) 2>&5
23421
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23422
(exit $ac_status); }; }; then
23424
nonblock="ioctlsocket"
23426
cat >>confdefs.h <<\_ACEOF
23427
#define HAVE_IOCTLSOCKET 1
23432
echo "$as_me: failed program was:" >&5
23433
sed 's/^/| /' conftest.$ac_ext >&5
23437
cat >conftest.$ac_ext <<_ACEOF
23440
cat confdefs.h >>conftest.$ac_ext
23441
cat >>conftest.$ac_ext <<_ACEOF
23442
/* end confdefs.h. */
23444
/* headers for IoctlSocket test (Amiga?) */
23445
#include <sys/ioctl.h>
23451
/* IoctlSocket source code */
23453
int flags = IoctlSocket(socket, FIONBIO, (long)1);
23459
rm -f conftest.$ac_objext conftest$ac_exeext
23460
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23461
(eval $ac_link) 2>conftest.er1
23463
grep -v '^ *+' conftest.er1 >conftest.err
23465
cat conftest.err >&5
23466
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23467
(exit $ac_status); } &&
23468
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23469
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23470
(eval $ac_try) 2>&5
23472
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23473
(exit $ac_status); }; } &&
23474
{ ac_try='test -s conftest$ac_exeext'
23475
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23476
(eval $ac_try) 2>&5
23478
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23479
(exit $ac_status); }; }; then
23481
nonblock="IoctlSocket"
23483
cat >>confdefs.h <<\_ACEOF
23484
#define HAVE_IOCTLSOCKET_CASE 1
23489
echo "$as_me: failed program was:" >&5
23490
sed 's/^/| /' conftest.$ac_ext >&5
23493
cat >conftest.$ac_ext <<_ACEOF
23496
cat confdefs.h >>conftest.$ac_ext
23497
cat >>conftest.$ac_ext <<_ACEOF
23498
/* end confdefs.h. */
23500
/* headers for SO_NONBLOCK test (BeOS) */
23501
#include <socket.h>
23507
/* SO_NONBLOCK source code */
23510
int flags = setsockopt(socket, SOL_SOCKET, SO_NONBLOCK, &b, sizeof(b));
23516
rm -f conftest.$ac_objext
23517
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23518
(eval $ac_compile) 2>conftest.er1
23520
grep -v '^ *+' conftest.er1 >conftest.err
23522
cat conftest.err >&5
23523
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23524
(exit $ac_status); } &&
23525
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23526
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23527
(eval $ac_try) 2>&5
23529
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23530
(exit $ac_status); }; } &&
23531
{ ac_try='test -s conftest.$ac_objext'
23532
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23533
(eval $ac_try) 2>&5
23535
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23536
(exit $ac_status); }; }; then
23538
nonblock="SO_NONBLOCK"
23540
cat >>confdefs.h <<\_ACEOF
23541
#define HAVE_SO_NONBLOCK 1
23546
echo "$as_me: failed program was:" >&5
23547
sed 's/^/| /' conftest.$ac_ext >&5
23552
cat >>confdefs.h <<\_ACEOF
23553
#define HAVE_DISABLED_NONBLOCKING 1
23558
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23562
rm -f conftest.err conftest.$ac_objext \
23563
conftest$ac_exeext conftest.$ac_ext
23567
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23571
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23575
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23576
echo "$as_me:$LINENO: result: $nonblock" >&5
23577
echo "${ECHO_T}$nonblock" >&6
23579
if test "$nonblock" = "nada"; then
23580
{ echo "$as_me:$LINENO: WARNING: non-block sockets disabled" >&5
23581
echo "$as_me: WARNING: non-block sockets disabled" >&2;}
23589
echo "$as_me:$LINENO: checking non-blocking sockets style" >&5
23590
echo $ECHO_N "checking non-blocking sockets style... $ECHO_C" >&6
23592
cat >conftest.$ac_ext <<_ACEOF
23595
cat confdefs.h >>conftest.$ac_ext
23596
cat >>conftest.$ac_ext <<_ACEOF
23597
/* end confdefs.h. */
23599
/* headers for O_NONBLOCK test */
23600
#include <sys/types.h>
23601
#include <unistd.h>
23608
/* try to compile O_NONBLOCK */
23610
#if defined(sun) || defined(__sun__) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
23611
# if defined(__SVR4) || defined(__srv4__)
23612
# define PLATFORM_SOLARIS
23614
# define PLATFORM_SUNOS4
23617
#if (defined(_AIX) || defined(__xlC__)) && !defined(_AIX4)
23618
# define PLATFORM_AIX_V3
23621
#if defined(PLATFORM_SUNOS4) || defined(PLATFORM_AIX_V3) || defined(__BEOS__)
23622
#error "O_NONBLOCK does not work on this platform"
23625
int flags = fcntl(socket, F_SETFL, flags | O_NONBLOCK);
23631
rm -f conftest.$ac_objext
23632
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23633
(eval $ac_compile) 2>conftest.er1
23635
grep -v '^ *+' conftest.er1 >conftest.err
23637
cat conftest.err >&5
23638
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23639
(exit $ac_status); } &&
23640
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23641
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23642
(eval $ac_try) 2>&5
23644
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23645
(exit $ac_status); }; } &&
23646
{ ac_try='test -s conftest.$ac_objext'
23647
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23648
(eval $ac_try) 2>&5
23650
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23651
(exit $ac_status); }; }; then
23653
nonblock="O_NONBLOCK"
23655
cat >>confdefs.h <<\_ACEOF
23656
#define HAVE_O_NONBLOCK 1
23661
echo "$as_me: failed program was:" >&5
23662
sed 's/^/| /' conftest.$ac_ext >&5
23666
cat >conftest.$ac_ext <<_ACEOF
23669
cat confdefs.h >>conftest.$ac_ext
23670
cat >>conftest.$ac_ext <<_ACEOF
23671
/* end confdefs.h. */
23673
/* headers for FIONBIO test */
23674
#include <unistd.h>
23675
#include <stropts.h>
23681
/* FIONBIO source test (old-style unix) */
23683
int flags = ioctl(socket, FIONBIO, &flags);
23689
rm -f conftest.$ac_objext
23690
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23691
(eval $ac_compile) 2>conftest.er1
23693
grep -v '^ *+' conftest.er1 >conftest.err
23695
cat conftest.err >&5
23696
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23697
(exit $ac_status); } &&
23698
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23699
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23700
(eval $ac_try) 2>&5
23702
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23703
(exit $ac_status); }; } &&
23704
{ ac_try='test -s conftest.$ac_objext'
23705
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23706
(eval $ac_try) 2>&5
23708
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23709
(exit $ac_status); }; }; then
23713
cat >>confdefs.h <<\_ACEOF
23714
#define HAVE_FIONBIO 1
23719
echo "$as_me: failed program was:" >&5
23720
sed 's/^/| /' conftest.$ac_ext >&5
23724
cat >conftest.$ac_ext <<_ACEOF
23727
cat confdefs.h >>conftest.$ac_ext
23728
cat >>conftest.$ac_ext <<_ACEOF
23729
/* end confdefs.h. */
23731
/* headers for ioctlsocket test (cygwin?) */
23732
#include <windows.h>
23738
/* ioctlsocket source code */
23740
unsigned long flags = ioctlsocket(socket, FIONBIO, &flags);
23746
rm -f conftest.$ac_objext
23747
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23748
(eval $ac_compile) 2>conftest.er1
23750
grep -v '^ *+' conftest.er1 >conftest.err
23752
cat conftest.err >&5
23753
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23754
(exit $ac_status); } &&
23755
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23756
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23757
(eval $ac_try) 2>&5
23759
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23760
(exit $ac_status); }; } &&
23761
{ ac_try='test -s conftest.$ac_objext'
23762
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23763
(eval $ac_try) 2>&5
23765
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23766
(exit $ac_status); }; }; then
23768
nonblock="ioctlsocket"
23770
cat >>confdefs.h <<\_ACEOF
23771
#define HAVE_IOCTLSOCKET 1
23776
echo "$as_me: failed program was:" >&5
23777
sed 's/^/| /' conftest.$ac_ext >&5
23781
cat >conftest.$ac_ext <<_ACEOF
23784
cat confdefs.h >>conftest.$ac_ext
23785
cat >>conftest.$ac_ext <<_ACEOF
23786
/* end confdefs.h. */
23788
/* headers for IoctlSocket test (Amiga?) */
23789
#include <sys/ioctl.h>
23795
/* IoctlSocket source code */
23797
int flags = IoctlSocket(socket, FIONBIO, (long)1);
23803
rm -f conftest.$ac_objext conftest$ac_exeext
23804
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23805
(eval $ac_link) 2>conftest.er1
23807
grep -v '^ *+' conftest.er1 >conftest.err
23809
cat conftest.err >&5
23810
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23811
(exit $ac_status); } &&
23812
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23813
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23814
(eval $ac_try) 2>&5
23816
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23817
(exit $ac_status); }; } &&
23818
{ ac_try='test -s conftest$ac_exeext'
23819
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23820
(eval $ac_try) 2>&5
23822
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23823
(exit $ac_status); }; }; then
23825
nonblock="IoctlSocket"
23827
cat >>confdefs.h <<\_ACEOF
23828
#define HAVE_IOCTLSOCKET_CASE 1
23833
echo "$as_me: failed program was:" >&5
23834
sed 's/^/| /' conftest.$ac_ext >&5
23837
cat >conftest.$ac_ext <<_ACEOF
23840
cat confdefs.h >>conftest.$ac_ext
23841
cat >>conftest.$ac_ext <<_ACEOF
23842
/* end confdefs.h. */
23844
/* headers for SO_NONBLOCK test (BeOS) */
23845
#include <socket.h>
23851
/* SO_NONBLOCK source code */
23854
int flags = setsockopt(socket, SOL_SOCKET, SO_NONBLOCK, &b, sizeof(b));
23860
rm -f conftest.$ac_objext
23861
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23862
(eval $ac_compile) 2>conftest.er1
23864
grep -v '^ *+' conftest.er1 >conftest.err
23866
cat conftest.err >&5
23867
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23868
(exit $ac_status); } &&
23869
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23870
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23871
(eval $ac_try) 2>&5
23873
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23874
(exit $ac_status); }; } &&
23875
{ ac_try='test -s conftest.$ac_objext'
23876
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23877
(eval $ac_try) 2>&5
23879
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23880
(exit $ac_status); }; }; then
23882
nonblock="SO_NONBLOCK"
23884
cat >>confdefs.h <<\_ACEOF
23885
#define HAVE_SO_NONBLOCK 1
23890
echo "$as_me: failed program was:" >&5
23891
sed 's/^/| /' conftest.$ac_ext >&5
23896
cat >>confdefs.h <<\_ACEOF
23897
#define HAVE_DISABLED_NONBLOCKING 1
23902
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23906
rm -f conftest.err conftest.$ac_objext \
23907
conftest$ac_exeext conftest.$ac_ext
23911
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23915
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23919
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23920
echo "$as_me:$LINENO: result: $nonblock" >&5
23921
echo "${ECHO_T}$nonblock" >&6
23923
if test "$nonblock" = "nada"; then
23924
{ echo "$as_me:$LINENO: WARNING: non-block sockets disabled" >&5
23925
echo "$as_me: WARNING: non-block sockets disabled" >&2;}
23932
echo "$as_me:$LINENO: checking if argv can be written to" >&5
23933
echo $ECHO_N "checking if argv can be written to... $ECHO_C" >&6
24092
{ echo "$as_me:$LINENO: checking non-blocking sockets style" >&5
24093
echo $ECHO_N "checking non-blocking sockets style... $ECHO_C" >&6; }
24095
cat >conftest.$ac_ext <<_ACEOF
24098
cat confdefs.h >>conftest.$ac_ext
24099
cat >>conftest.$ac_ext <<_ACEOF
24100
/* end confdefs.h. */
24102
/* headers for O_NONBLOCK test */
24103
#include <sys/types.h>
24104
#include <unistd.h>
24111
/* try to compile O_NONBLOCK */
24113
#if defined(sun) || defined(__sun__) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
24114
# if defined(__SVR4) || defined(__srv4__)
24115
# define PLATFORM_SOLARIS
24117
# define PLATFORM_SUNOS4
24120
#if (defined(_AIX) || defined(__xlC__)) && !defined(_AIX4)
24121
# define PLATFORM_AIX_V3
24124
#if defined(PLATFORM_SUNOS4) || defined(PLATFORM_AIX_V3) || defined(__BEOS__)
24125
#error "O_NONBLOCK does not work on this platform"
24128
int flags = fcntl(socket, F_SETFL, flags | O_NONBLOCK);
24134
rm -f conftest.$ac_objext
24135
if { (ac_try="$ac_compile"
24136
case "(($ac_try" in
24137
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24138
*) ac_try_echo=$ac_try;;
24140
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24141
(eval "$ac_compile") 2>conftest.er1
24143
grep -v '^ *+' conftest.er1 >conftest.err
24145
cat conftest.err >&5
24146
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24147
(exit $ac_status); } &&
24148
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24149
{ (case "(($ac_try" in
24150
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24151
*) ac_try_echo=$ac_try;;
24153
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24154
(eval "$ac_try") 2>&5
24156
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24157
(exit $ac_status); }; } &&
24158
{ ac_try='test -s conftest.$ac_objext'
24159
{ (case "(($ac_try" in
24160
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24161
*) ac_try_echo=$ac_try;;
24163
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24164
(eval "$ac_try") 2>&5
24166
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24167
(exit $ac_status); }; }; then
24169
nonblock="O_NONBLOCK"
24171
cat >>confdefs.h <<\_ACEOF
24172
#define HAVE_O_NONBLOCK 1
24177
echo "$as_me: failed program was:" >&5
24178
sed 's/^/| /' conftest.$ac_ext >&5
24182
cat >conftest.$ac_ext <<_ACEOF
24185
cat confdefs.h >>conftest.$ac_ext
24186
cat >>conftest.$ac_ext <<_ACEOF
24187
/* end confdefs.h. */
24189
/* headers for FIONBIO test */
24190
#include <unistd.h>
24191
#include <stropts.h>
24197
/* FIONBIO source test (old-style unix) */
24199
int flags = ioctl(socket, FIONBIO, &flags);
24205
rm -f conftest.$ac_objext
24206
if { (ac_try="$ac_compile"
24207
case "(($ac_try" in
24208
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24209
*) ac_try_echo=$ac_try;;
24211
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24212
(eval "$ac_compile") 2>conftest.er1
24214
grep -v '^ *+' conftest.er1 >conftest.err
24216
cat conftest.err >&5
24217
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24218
(exit $ac_status); } &&
24219
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24220
{ (case "(($ac_try" in
24221
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24222
*) ac_try_echo=$ac_try;;
24224
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24225
(eval "$ac_try") 2>&5
24227
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24228
(exit $ac_status); }; } &&
24229
{ ac_try='test -s conftest.$ac_objext'
24230
{ (case "(($ac_try" in
24231
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24232
*) ac_try_echo=$ac_try;;
24234
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24235
(eval "$ac_try") 2>&5
24237
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24238
(exit $ac_status); }; }; then
24242
cat >>confdefs.h <<\_ACEOF
24243
#define HAVE_FIONBIO 1
24248
echo "$as_me: failed program was:" >&5
24249
sed 's/^/| /' conftest.$ac_ext >&5
24253
cat >conftest.$ac_ext <<_ACEOF
24256
cat confdefs.h >>conftest.$ac_ext
24257
cat >>conftest.$ac_ext <<_ACEOF
24258
/* end confdefs.h. */
24260
/* headers for ioctlsocket test (Windows) */
24262
#ifdef HAVE_WINDOWS_H
24263
#ifndef WIN32_LEAN_AND_MEAN
24264
#define WIN32_LEAN_AND_MEAN
24266
#include <windows.h>
24267
#ifdef HAVE_WINSOCK2_H
24268
#include <winsock2.h>
24270
#ifdef HAVE_WINSOCK_H
24271
#include <winsock.h>
24280
/* ioctlsocket source code */
24282
unsigned long flags = 0;
24283
sd = socket(0, 0, 0);
24284
ioctlsocket(sd, FIONBIO, &flags);
24290
rm -f conftest.$ac_objext
24291
if { (ac_try="$ac_compile"
24292
case "(($ac_try" in
24293
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24294
*) ac_try_echo=$ac_try;;
24296
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24297
(eval "$ac_compile") 2>conftest.er1
24299
grep -v '^ *+' conftest.er1 >conftest.err
24301
cat conftest.err >&5
24302
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24303
(exit $ac_status); } &&
24304
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24305
{ (case "(($ac_try" in
24306
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24307
*) ac_try_echo=$ac_try;;
24309
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24310
(eval "$ac_try") 2>&5
24312
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24313
(exit $ac_status); }; } &&
24314
{ ac_try='test -s conftest.$ac_objext'
24315
{ (case "(($ac_try" in
24316
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24317
*) ac_try_echo=$ac_try;;
24319
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24320
(eval "$ac_try") 2>&5
24322
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24323
(exit $ac_status); }; }; then
24325
nonblock="ioctlsocket"
24327
cat >>confdefs.h <<\_ACEOF
24328
#define HAVE_IOCTLSOCKET 1
24333
echo "$as_me: failed program was:" >&5
24334
sed 's/^/| /' conftest.$ac_ext >&5
24338
cat >conftest.$ac_ext <<_ACEOF
24341
cat confdefs.h >>conftest.$ac_ext
24342
cat >>conftest.$ac_ext <<_ACEOF
24343
/* end confdefs.h. */
24345
/* headers for IoctlSocket test (Amiga?) */
24346
#include <sys/ioctl.h>
24352
/* IoctlSocket source code */
24354
int flags = IoctlSocket(socket, FIONBIO, (long)1);
24360
rm -f conftest.$ac_objext conftest$ac_exeext
24361
if { (ac_try="$ac_link"
24362
case "(($ac_try" in
24363
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24364
*) ac_try_echo=$ac_try;;
24366
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24367
(eval "$ac_link") 2>conftest.er1
24369
grep -v '^ *+' conftest.er1 >conftest.err
24371
cat conftest.err >&5
24372
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24373
(exit $ac_status); } &&
24374
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24375
{ (case "(($ac_try" in
24376
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24377
*) ac_try_echo=$ac_try;;
24379
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24380
(eval "$ac_try") 2>&5
24382
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24383
(exit $ac_status); }; } &&
24384
{ ac_try='test -s conftest$ac_exeext'
24385
{ (case "(($ac_try" in
24386
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24387
*) ac_try_echo=$ac_try;;
24389
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24390
(eval "$ac_try") 2>&5
24392
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24393
(exit $ac_status); }; }; then
24395
nonblock="IoctlSocket"
24397
cat >>confdefs.h <<\_ACEOF
24398
#define HAVE_IOCTLSOCKET_CASE 1
24403
echo "$as_me: failed program was:" >&5
24404
sed 's/^/| /' conftest.$ac_ext >&5
24407
cat >conftest.$ac_ext <<_ACEOF
24410
cat confdefs.h >>conftest.$ac_ext
24411
cat >>conftest.$ac_ext <<_ACEOF
24412
/* end confdefs.h. */
24414
/* headers for SO_NONBLOCK test (BeOS) */
24415
#include <socket.h>
24421
/* SO_NONBLOCK source code */
24424
int flags = setsockopt(socket, SOL_SOCKET, SO_NONBLOCK, &b, sizeof(b));
24430
rm -f conftest.$ac_objext
24431
if { (ac_try="$ac_compile"
24432
case "(($ac_try" in
24433
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24434
*) ac_try_echo=$ac_try;;
24436
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24437
(eval "$ac_compile") 2>conftest.er1
24439
grep -v '^ *+' conftest.er1 >conftest.err
24441
cat conftest.err >&5
24442
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24443
(exit $ac_status); } &&
24444
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24445
{ (case "(($ac_try" in
24446
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24447
*) ac_try_echo=$ac_try;;
24449
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24450
(eval "$ac_try") 2>&5
24452
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24453
(exit $ac_status); }; } &&
24454
{ ac_try='test -s conftest.$ac_objext'
24455
{ (case "(($ac_try" in
24456
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24457
*) ac_try_echo=$ac_try;;
24459
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24460
(eval "$ac_try") 2>&5
24462
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24463
(exit $ac_status); }; }; then
24465
nonblock="SO_NONBLOCK"
24467
cat >>confdefs.h <<\_ACEOF
24468
#define HAVE_SO_NONBLOCK 1
24473
echo "$as_me: failed program was:" >&5
24474
sed 's/^/| /' conftest.$ac_ext >&5
24479
cat >>confdefs.h <<\_ACEOF
24480
#define HAVE_DISABLED_NONBLOCKING 1
24486
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24491
rm -f conftest.err conftest.$ac_objext \
24492
conftest$ac_exeext conftest.$ac_ext
24497
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24502
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24507
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24508
{ echo "$as_me:$LINENO: result: $nonblock" >&5
24509
echo "${ECHO_T}$nonblock" >&6; }
24511
if test "$nonblock" = "nada"; then
24512
{ echo "$as_me:$LINENO: WARNING: non-block sockets disabled" >&5
24513
echo "$as_me: WARNING: non-block sockets disabled" >&2;}
24521
{ echo "$as_me:$LINENO: checking non-blocking sockets style" >&5
24522
echo $ECHO_N "checking non-blocking sockets style... $ECHO_C" >&6; }
24524
cat >conftest.$ac_ext <<_ACEOF
24527
cat confdefs.h >>conftest.$ac_ext
24528
cat >>conftest.$ac_ext <<_ACEOF
24529
/* end confdefs.h. */
24531
/* headers for O_NONBLOCK test */
24532
#include <sys/types.h>
24533
#include <unistd.h>
24540
/* try to compile O_NONBLOCK */
24542
#if defined(sun) || defined(__sun__) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
24543
# if defined(__SVR4) || defined(__srv4__)
24544
# define PLATFORM_SOLARIS
24546
# define PLATFORM_SUNOS4
24549
#if (defined(_AIX) || defined(__xlC__)) && !defined(_AIX4)
24550
# define PLATFORM_AIX_V3
24553
#if defined(PLATFORM_SUNOS4) || defined(PLATFORM_AIX_V3) || defined(__BEOS__)
24554
#error "O_NONBLOCK does not work on this platform"
24557
int flags = fcntl(socket, F_SETFL, flags | O_NONBLOCK);
24563
rm -f conftest.$ac_objext
24564
if { (ac_try="$ac_compile"
24565
case "(($ac_try" in
24566
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24567
*) ac_try_echo=$ac_try;;
24569
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24570
(eval "$ac_compile") 2>conftest.er1
24572
grep -v '^ *+' conftest.er1 >conftest.err
24574
cat conftest.err >&5
24575
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24576
(exit $ac_status); } &&
24577
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24578
{ (case "(($ac_try" in
24579
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24580
*) ac_try_echo=$ac_try;;
24582
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24583
(eval "$ac_try") 2>&5
24585
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24586
(exit $ac_status); }; } &&
24587
{ ac_try='test -s conftest.$ac_objext'
24588
{ (case "(($ac_try" in
24589
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24590
*) ac_try_echo=$ac_try;;
24592
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24593
(eval "$ac_try") 2>&5
24595
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24596
(exit $ac_status); }; }; then
24598
nonblock="O_NONBLOCK"
24600
cat >>confdefs.h <<\_ACEOF
24601
#define HAVE_O_NONBLOCK 1
24606
echo "$as_me: failed program was:" >&5
24607
sed 's/^/| /' conftest.$ac_ext >&5
24611
cat >conftest.$ac_ext <<_ACEOF
24614
cat confdefs.h >>conftest.$ac_ext
24615
cat >>conftest.$ac_ext <<_ACEOF
24616
/* end confdefs.h. */
24618
/* headers for FIONBIO test */
24619
#include <unistd.h>
24620
#include <stropts.h>
24626
/* FIONBIO source test (old-style unix) */
24628
int flags = ioctl(socket, FIONBIO, &flags);
24634
rm -f conftest.$ac_objext
24635
if { (ac_try="$ac_compile"
24636
case "(($ac_try" in
24637
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24638
*) ac_try_echo=$ac_try;;
24640
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24641
(eval "$ac_compile") 2>conftest.er1
24643
grep -v '^ *+' conftest.er1 >conftest.err
24645
cat conftest.err >&5
24646
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24647
(exit $ac_status); } &&
24648
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24649
{ (case "(($ac_try" in
24650
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24651
*) ac_try_echo=$ac_try;;
24653
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24654
(eval "$ac_try") 2>&5
24656
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24657
(exit $ac_status); }; } &&
24658
{ ac_try='test -s conftest.$ac_objext'
24659
{ (case "(($ac_try" in
24660
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24661
*) ac_try_echo=$ac_try;;
24663
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24664
(eval "$ac_try") 2>&5
24666
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24667
(exit $ac_status); }; }; then
24671
cat >>confdefs.h <<\_ACEOF
24672
#define HAVE_FIONBIO 1
24677
echo "$as_me: failed program was:" >&5
24678
sed 's/^/| /' conftest.$ac_ext >&5
24682
cat >conftest.$ac_ext <<_ACEOF
24685
cat confdefs.h >>conftest.$ac_ext
24686
cat >>conftest.$ac_ext <<_ACEOF
24687
/* end confdefs.h. */
24689
/* headers for ioctlsocket test (Windows) */
24691
#ifdef HAVE_WINDOWS_H
24692
#ifndef WIN32_LEAN_AND_MEAN
24693
#define WIN32_LEAN_AND_MEAN
24695
#include <windows.h>
24696
#ifdef HAVE_WINSOCK2_H
24697
#include <winsock2.h>
24699
#ifdef HAVE_WINSOCK_H
24700
#include <winsock.h>
24709
/* ioctlsocket source code */
24711
unsigned long flags = 0;
24712
sd = socket(0, 0, 0);
24713
ioctlsocket(sd, FIONBIO, &flags);
24719
rm -f conftest.$ac_objext
24720
if { (ac_try="$ac_compile"
24721
case "(($ac_try" in
24722
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24723
*) ac_try_echo=$ac_try;;
24725
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24726
(eval "$ac_compile") 2>conftest.er1
24728
grep -v '^ *+' conftest.er1 >conftest.err
24730
cat conftest.err >&5
24731
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24732
(exit $ac_status); } &&
24733
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24734
{ (case "(($ac_try" in
24735
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24736
*) ac_try_echo=$ac_try;;
24738
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24739
(eval "$ac_try") 2>&5
24741
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24742
(exit $ac_status); }; } &&
24743
{ ac_try='test -s conftest.$ac_objext'
24744
{ (case "(($ac_try" in
24745
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24746
*) ac_try_echo=$ac_try;;
24748
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24749
(eval "$ac_try") 2>&5
24751
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24752
(exit $ac_status); }; }; then
24754
nonblock="ioctlsocket"
24756
cat >>confdefs.h <<\_ACEOF
24757
#define HAVE_IOCTLSOCKET 1
24762
echo "$as_me: failed program was:" >&5
24763
sed 's/^/| /' conftest.$ac_ext >&5
24767
cat >conftest.$ac_ext <<_ACEOF
24770
cat confdefs.h >>conftest.$ac_ext
24771
cat >>conftest.$ac_ext <<_ACEOF
24772
/* end confdefs.h. */
24774
/* headers for IoctlSocket test (Amiga?) */
24775
#include <sys/ioctl.h>
24781
/* IoctlSocket source code */
24783
int flags = IoctlSocket(socket, FIONBIO, (long)1);
24789
rm -f conftest.$ac_objext conftest$ac_exeext
24790
if { (ac_try="$ac_link"
24791
case "(($ac_try" in
24792
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24793
*) ac_try_echo=$ac_try;;
24795
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24796
(eval "$ac_link") 2>conftest.er1
24798
grep -v '^ *+' conftest.er1 >conftest.err
24800
cat conftest.err >&5
24801
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24802
(exit $ac_status); } &&
24803
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24804
{ (case "(($ac_try" in
24805
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24806
*) ac_try_echo=$ac_try;;
24808
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24809
(eval "$ac_try") 2>&5
24811
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24812
(exit $ac_status); }; } &&
24813
{ ac_try='test -s conftest$ac_exeext'
24814
{ (case "(($ac_try" in
24815
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24816
*) ac_try_echo=$ac_try;;
24818
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24819
(eval "$ac_try") 2>&5
24821
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24822
(exit $ac_status); }; }; then
24824
nonblock="IoctlSocket"
24826
cat >>confdefs.h <<\_ACEOF
24827
#define HAVE_IOCTLSOCKET_CASE 1
24832
echo "$as_me: failed program was:" >&5
24833
sed 's/^/| /' conftest.$ac_ext >&5
24836
cat >conftest.$ac_ext <<_ACEOF
24839
cat confdefs.h >>conftest.$ac_ext
24840
cat >>conftest.$ac_ext <<_ACEOF
24841
/* end confdefs.h. */
24843
/* headers for SO_NONBLOCK test (BeOS) */
24844
#include <socket.h>
24850
/* SO_NONBLOCK source code */
24853
int flags = setsockopt(socket, SOL_SOCKET, SO_NONBLOCK, &b, sizeof(b));
24859
rm -f conftest.$ac_objext
24860
if { (ac_try="$ac_compile"
24861
case "(($ac_try" in
24862
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24863
*) ac_try_echo=$ac_try;;
24865
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24866
(eval "$ac_compile") 2>conftest.er1
24868
grep -v '^ *+' conftest.er1 >conftest.err
24870
cat conftest.err >&5
24871
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24872
(exit $ac_status); } &&
24873
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24874
{ (case "(($ac_try" in
24875
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24876
*) ac_try_echo=$ac_try;;
24878
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24879
(eval "$ac_try") 2>&5
24881
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24882
(exit $ac_status); }; } &&
24883
{ ac_try='test -s conftest.$ac_objext'
24884
{ (case "(($ac_try" in
24885
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24886
*) ac_try_echo=$ac_try;;
24888
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24889
(eval "$ac_try") 2>&5
24891
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24892
(exit $ac_status); }; }; then
24894
nonblock="SO_NONBLOCK"
24896
cat >>confdefs.h <<\_ACEOF
24897
#define HAVE_SO_NONBLOCK 1
24902
echo "$as_me: failed program was:" >&5
24903
sed 's/^/| /' conftest.$ac_ext >&5
24908
cat >>confdefs.h <<\_ACEOF
24909
#define HAVE_DISABLED_NONBLOCKING 1
24915
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24920
rm -f conftest.err conftest.$ac_objext \
24921
conftest$ac_exeext conftest.$ac_ext
24926
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24931
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24936
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24937
{ echo "$as_me:$LINENO: result: $nonblock" >&5
24938
echo "${ECHO_T}$nonblock" >&6; }
24940
if test "$nonblock" = "nada"; then
24941
{ echo "$as_me:$LINENO: WARNING: non-block sockets disabled" >&5
24942
echo "$as_me: WARNING: non-block sockets disabled" >&2;}
24950
{ echo "$as_me:$LINENO: checking if argv can be written to" >&5
24951
echo $ECHO_N "checking if argv can be written to... $ECHO_C" >&6; }
23934
24952
if test "${curl_cv_writable_argv+set}" = set; then
23935
24953
echo $ECHO_N "(cached) $ECHO_C" >&6
33303
echo "$as_me:$LINENO: checking if we are Mac OS X (to disable poll)" >&5
33304
echo $ECHO_N "checking if we are Mac OS X (to disable poll)... $ECHO_C" >&6
35797
for ac_header in sys/types.h sys/socket.h netdb.h
35799
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35800
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35801
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
35802
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35803
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35804
echo $ECHO_N "(cached) $ECHO_C" >&6
35806
ac_res=`eval echo '${'$as_ac_Header'}'`
35807
{ echo "$as_me:$LINENO: result: $ac_res" >&5
35808
echo "${ECHO_T}$ac_res" >&6; }
35810
# Is the header compilable?
35811
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
35812
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
35813
cat >conftest.$ac_ext <<_ACEOF
35816
cat confdefs.h >>conftest.$ac_ext
35817
cat >>conftest.$ac_ext <<_ACEOF
35818
/* end confdefs.h. */
35819
$ac_includes_default
35820
#include <$ac_header>
35822
rm -f conftest.$ac_objext
35823
if { (ac_try="$ac_compile"
35824
case "(($ac_try" in
35825
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35826
*) ac_try_echo=$ac_try;;
35828
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35829
(eval "$ac_compile") 2>conftest.er1
35831
grep -v '^ *+' conftest.er1 >conftest.err
35833
cat conftest.err >&5
35834
echo "$as_me:$LINENO: \$? = $ac_status" >&5
35835
(exit $ac_status); } &&
35836
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35837
{ (case "(($ac_try" in
35838
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35839
*) ac_try_echo=$ac_try;;
35841
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35842
(eval "$ac_try") 2>&5
35844
echo "$as_me:$LINENO: \$? = $ac_status" >&5
35845
(exit $ac_status); }; } &&
35846
{ ac_try='test -s conftest.$ac_objext'
35847
{ (case "(($ac_try" in
35848
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35849
*) ac_try_echo=$ac_try;;
35851
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35852
(eval "$ac_try") 2>&5
35854
echo "$as_me:$LINENO: \$? = $ac_status" >&5
35855
(exit $ac_status); }; }; then
35856
ac_header_compiler=yes
35858
echo "$as_me: failed program was:" >&5
35859
sed 's/^/| /' conftest.$ac_ext >&5
35861
ac_header_compiler=no
35864
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35865
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35866
echo "${ECHO_T}$ac_header_compiler" >&6; }
35868
# Is the header present?
35869
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
35870
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
35871
cat >conftest.$ac_ext <<_ACEOF
35874
cat confdefs.h >>conftest.$ac_ext
35875
cat >>conftest.$ac_ext <<_ACEOF
35876
/* end confdefs.h. */
35877
#include <$ac_header>
35879
if { (ac_try="$ac_cpp conftest.$ac_ext"
35880
case "(($ac_try" in
35881
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35882
*) ac_try_echo=$ac_try;;
35884
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35885
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35887
grep -v '^ *+' conftest.er1 >conftest.err
35889
cat conftest.err >&5
35890
echo "$as_me:$LINENO: \$? = $ac_status" >&5
35891
(exit $ac_status); } >/dev/null; then
35892
if test -s conftest.err; then
35893
ac_cpp_err=$ac_c_preproc_warn_flag
35894
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35901
if test -z "$ac_cpp_err"; then
35902
ac_header_preproc=yes
35904
echo "$as_me: failed program was:" >&5
35905
sed 's/^/| /' conftest.$ac_ext >&5
35907
ac_header_preproc=no
35910
rm -f conftest.err conftest.$ac_ext
35911
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35912
echo "${ECHO_T}$ac_header_preproc" >&6; }
35914
# So? What about this header?
35915
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35917
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35918
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35919
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35920
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35921
ac_header_preproc=yes
35924
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35925
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35926
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35927
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35928
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35929
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35930
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35931
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35932
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35933
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35934
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35935
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35937
## ------------------------------------------------------------------------ ##
35938
## Report this to a suitable curl mailing list => http://curl.haxx.se/mail/ ##
35939
## ------------------------------------------------------------------------ ##
35941
) | sed "s/^/$as_me: WARNING: /" >&2
35944
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
35945
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35946
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35947
echo $ECHO_N "(cached) $ECHO_C" >&6
35949
eval "$as_ac_Header=\$ac_header_preproc"
35951
ac_res=`eval echo '${'$as_ac_Header'}'`
35952
{ echo "$as_me:$LINENO: result: $ac_res" >&5
35953
echo "${ECHO_T}$ac_res" >&6; }
35956
if test `eval echo '${'$as_ac_Header'}'` = yes; then
35957
cat >>confdefs.h <<_ACEOF
35958
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35966
{ echo "$as_me:$LINENO: checking for getnameinfo" >&5
35967
echo $ECHO_N "checking for getnameinfo... $ECHO_C" >&6; }
35968
cat >conftest.$ac_ext <<_ACEOF
35972
cat confdefs.h >>conftest.$ac_ext
35973
cat >>conftest.$ac_ext <<_ACEOF
35974
/* end confdefs.h. */
35975
/* Define getnameinfo to an innocuous variant, in case <limits.h> declares getnameinfo.
35976
For example, HP-UX 11i <limits.h> declares gettimeofday. */
35977
#define getnameinfo innocuous_getnameinfo
35979
/* System header to define __stub macros and hopefully few prototypes,
35980
which can conflict with char getnameinfo (); below.
35981
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35982
<limits.h> exists even on freestanding compilers. */
35985
# include <limits.h>
35987
# include <assert.h>
35992
/* Override any GCC internal prototype to avoid an error.
35993
Use char because int might match the return type of a GCC
35994
builtin and then its argument prototype would still apply. */
35998
char getnameinfo ();
35999
/* The GNU C library defines this for functions which it implements
36000
to always fail with ENOSYS. Some functions are actually named
36001
something starting with __ and the normal name is an alias. */
36002
#if defined __stub_getnameinfo || defined __stub___getnameinfo
36009
return getnameinfo ();
36015
rm -f conftest.$ac_objext conftest$ac_exeext
36016
if { (ac_try="$ac_link"
36017
case "(($ac_try" in
36018
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36019
*) ac_try_echo=$ac_try;;
36021
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36022
(eval "$ac_link") 2>conftest.er1
36024
grep -v '^ *+' conftest.er1 >conftest.err
36026
cat conftest.err >&5
36027
echo "$as_me:$LINENO: \$? = $ac_status" >&5
36028
(exit $ac_status); } &&
36029
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36030
{ (case "(($ac_try" in
36031
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36032
*) ac_try_echo=$ac_try;;
36034
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36035
(eval "$ac_try") 2>&5
36037
echo "$as_me:$LINENO: \$? = $ac_status" >&5
36038
(exit $ac_status); }; } &&
36039
{ ac_try='test -s conftest$ac_exeext'
36040
{ (case "(($ac_try" in
36041
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36042
*) ac_try_echo=$ac_try;;
36044
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36045
(eval "$ac_try") 2>&5
36047
echo "$as_me:$LINENO: \$? = $ac_status" >&5
36048
(exit $ac_status); }; }; then
36050
{ echo "$as_me:$LINENO: result: yes" >&5
36051
echo "${ECHO_T}yes" >&6; }
36052
curl_cv_getnameinfo="yes"
36055
echo "$as_me: failed program was:" >&5
36056
sed 's/^/| /' conftest.$ac_ext >&5
36059
{ echo "$as_me:$LINENO: result: no" >&5
36060
echo "${ECHO_T}no" >&6; }
36061
curl_cv_getnameinfo="no"
36065
rm -f conftest.err conftest.$ac_objext \
36066
conftest$ac_exeext conftest.$ac_ext
36068
if test "$curl_cv_getnameinfo" != "yes"; then
36069
{ echo "$as_me:$LINENO: checking deeper for getnameinfo" >&5
36070
echo $ECHO_N "checking deeper for getnameinfo... $ECHO_C" >&6; }
36071
cat >conftest.$ac_ext <<_ACEOF
36074
cat confdefs.h >>conftest.$ac_ext
36075
cat >>conftest.$ac_ext <<_ACEOF
36076
/* end confdefs.h. */
36089
rm -f conftest.$ac_objext conftest$ac_exeext
36090
if { (ac_try="$ac_link"
36091
case "(($ac_try" in
36092
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36093
*) ac_try_echo=$ac_try;;
36095
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36096
(eval "$ac_link") 2>conftest.er1
36098
grep -v '^ *+' conftest.er1 >conftest.err
36100
cat conftest.err >&5
36101
echo "$as_me:$LINENO: \$? = $ac_status" >&5
36102
(exit $ac_status); } &&
36103
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36104
{ (case "(($ac_try" in
36105
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36106
*) ac_try_echo=$ac_try;;
36108
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36109
(eval "$ac_try") 2>&5
36111
echo "$as_me:$LINENO: \$? = $ac_status" >&5
36112
(exit $ac_status); }; } &&
36113
{ ac_try='test -s conftest$ac_exeext'
36114
{ (case "(($ac_try" in
36115
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36116
*) ac_try_echo=$ac_try;;
36118
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36119
(eval "$ac_try") 2>&5
36121
echo "$as_me:$LINENO: \$? = $ac_status" >&5
36122
(exit $ac_status); }; }; then
36124
{ echo "$as_me:$LINENO: result: yes" >&5
36125
echo "${ECHO_T}yes" >&6; }
36126
curl_cv_getnameinfo="yes"
36129
echo "$as_me: failed program was:" >&5
36130
sed 's/^/| /' conftest.$ac_ext >&5
36133
{ echo "$as_me:$LINENO: result: but still no" >&5
36134
echo "${ECHO_T}but still no" >&6; }
36135
curl_cv_getnameinfo="no"
36139
rm -f conftest.err conftest.$ac_objext \
36140
conftest$ac_exeext conftest.$ac_ext
36143
if test "$curl_cv_getnameinfo" != "yes"; then
36144
{ echo "$as_me:$LINENO: checking deeper and deeper for getnameinfo" >&5
36145
echo $ECHO_N "checking deeper and deeper for getnameinfo... $ECHO_C" >&6; }
36146
cat >conftest.$ac_ext <<_ACEOF
36149
cat confdefs.h >>conftest.$ac_ext
36150
cat >>conftest.$ac_ext <<_ACEOF
36151
/* end confdefs.h. */
36154
#ifdef HAVE_WINDOWS_H
36155
#ifndef WIN32_LEAN_AND_MEAN
36156
#define WIN32_LEAN_AND_MEAN
36158
#include <windows.h>
36159
#ifdef HAVE_WINSOCK2_H
36160
#include <winsock2.h>
36161
#ifdef HAVE_WS2TCPIP_H
36162
#include <ws2tcpip.h>
36166
#ifdef HAVE_SYS_TYPES_H
36167
#include <sys/types.h>
36169
#ifdef HAVE_SYS_SOCKET_H
36170
#include <sys/socket.h>
36172
#ifdef HAVE_NETDB_H
36181
getnameinfo(0, 0, 0, 0, 0, 0, 0);
36187
rm -f conftest.$ac_objext conftest$ac_exeext
36188
if { (ac_try="$ac_link"
36189
case "(($ac_try" in
36190
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36191
*) ac_try_echo=$ac_try;;
36193
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36194
(eval "$ac_link") 2>conftest.er1
36196
grep -v '^ *+' conftest.er1 >conftest.err
36198
cat conftest.err >&5
36199
echo "$as_me:$LINENO: \$? = $ac_status" >&5
36200
(exit $ac_status); } &&
36201
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36202
{ (case "(($ac_try" in
36203
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36204
*) ac_try_echo=$ac_try;;
36206
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36207
(eval "$ac_try") 2>&5
36209
echo "$as_me:$LINENO: \$? = $ac_status" >&5
36210
(exit $ac_status); }; } &&
36211
{ ac_try='test -s conftest$ac_exeext'
36212
{ (case "(($ac_try" in
36213
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36214
*) ac_try_echo=$ac_try;;
36216
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36217
(eval "$ac_try") 2>&5
36219
echo "$as_me:$LINENO: \$? = $ac_status" >&5
36220
(exit $ac_status); }; }; then
36222
{ echo "$as_me:$LINENO: result: yes" >&5
36223
echo "${ECHO_T}yes" >&6; }
36224
curl_cv_getnameinfo="yes"
36227
echo "$as_me: failed program was:" >&5
36228
sed 's/^/| /' conftest.$ac_ext >&5
36231
{ echo "$as_me:$LINENO: result: but still no" >&5
36232
echo "${ECHO_T}but still no" >&6; }
36233
curl_cv_getnameinfo="no"
36237
rm -f conftest.err conftest.$ac_objext \
36238
conftest$ac_exeext conftest.$ac_ext
36241
if test "$curl_cv_getnameinfo" = "yes"; then
36242
{ echo "$as_me:$LINENO: checking types of arguments for getnameinfo" >&5
36243
echo $ECHO_N "checking types of arguments for getnameinfo... $ECHO_C" >&6; }
36244
if test "${curl_cv_func_getnameinfo_args+set}" = set; then
36245
echo $ECHO_N "(cached) $ECHO_C" >&6
36248
curl_cv_func_getnameinfo_args="unknown"
36249
for gni_arg1 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
36250
for gni_arg2 in 'socklen_t' 'size_t' 'int'; do
36251
for gni_arg46 in 'size_t' 'int' 'socklen_t' 'unsigned int' 'DWORD'; do
36252
for gni_arg7 in 'int' 'unsigned int'; do
36253
cat >conftest.$ac_ext <<_ACEOF
36257
cat confdefs.h >>conftest.$ac_ext
36258
cat >>conftest.$ac_ext <<_ACEOF
36259
/* end confdefs.h. */
36262
#ifdef HAVE_WINDOWS_H
36263
#ifndef WIN32_LEAN_AND_MEAN
36264
#define WIN32_LEAN_AND_MEAN
36266
#if (!defined(_WIN32_WINNT)) || (_WIN32_WINNT < 0x0501)
36267
#undef _WIN32_WINNT
36268
#define _WIN32_WINNT 0x0501
36270
#include <windows.h>
36271
#ifdef HAVE_WINSOCK2_H
36272
#include <winsock2.h>
36273
#ifdef HAVE_WS2TCPIP_H
36274
#include <ws2tcpip.h>
36277
#define GNICALLCONV WSAAPI
36279
#ifdef HAVE_SYS_TYPES_H
36280
#include <sys/types.h>
36282
#ifdef HAVE_SYS_SOCKET_H
36283
#include <sys/socket.h>
36285
#ifdef HAVE_NETDB_H
36288
#define GNICALLCONV
36290
extern int GNICALLCONV getnameinfo($gni_arg1, $gni_arg2,
36291
char *, $gni_arg46,
36292
char *, $gni_arg46,
36300
$gni_arg46 hostlen=0;
36301
$gni_arg46 servlen=0;
36303
int res = getnameinfo(0, salen, 0, hostlen, 0, servlen, flags);
36310
rm -f conftest.$ac_objext
36311
if { (ac_try="$ac_compile"
36312
case "(($ac_try" in
36313
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36314
*) ac_try_echo=$ac_try;;
36316
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36317
(eval "$ac_compile") 2>conftest.er1
36319
grep -v '^ *+' conftest.er1 >conftest.err
36321
cat conftest.err >&5
36322
echo "$as_me:$LINENO: \$? = $ac_status" >&5
36323
(exit $ac_status); } &&
36324
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36325
{ (case "(($ac_try" in
36326
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36327
*) ac_try_echo=$ac_try;;
36329
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36330
(eval "$ac_try") 2>&5
36332
echo "$as_me:$LINENO: \$? = $ac_status" >&5
36333
(exit $ac_status); }; } &&
36334
{ ac_try='test -s conftest.$ac_objext'
36335
{ (case "(($ac_try" in
36336
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36337
*) ac_try_echo=$ac_try;;
36339
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36340
(eval "$ac_try") 2>&5
36342
echo "$as_me:$LINENO: \$? = $ac_status" >&5
36343
(exit $ac_status); }; }; then
36345
curl_cv_func_getnameinfo_args="$gni_arg1,$gni_arg2,$gni_arg46,$gni_arg7"
36349
echo "$as_me: failed program was:" >&5
36350
sed 's/^/| /' conftest.$ac_ext >&5
36355
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36362
{ echo "$as_me:$LINENO: result: $curl_cv_func_getnameinfo_args" >&5
36363
echo "${ECHO_T}$curl_cv_func_getnameinfo_args" >&6; } # AC_CACHE_CHECK
36364
if test "$curl_cv_func_getnameinfo_args" = "unknown"; then
36365
{ echo "$as_me:$LINENO: WARNING: Cannot find proper types to use for getnameinfo args" >&5
36366
echo "$as_me: WARNING: Cannot find proper types to use for getnameinfo args" >&2;}
36367
{ echo "$as_me:$LINENO: WARNING: HAVE_GETNAMEINFO will not be defined" >&5
36368
echo "$as_me: WARNING: HAVE_GETNAMEINFO will not be defined" >&2;}
36370
gni_prev_IFS=$IFS; IFS=','
36371
set dummy `echo "$curl_cv_func_getnameinfo_args" | sed 's/\*/\*/g'`
36375
cat >>confdefs.h <<_ACEOF
36376
#define GETNAMEINFO_TYPE_ARG1 $1
36380
cat >>confdefs.h <<_ACEOF
36381
#define GETNAMEINFO_TYPE_ARG2 $2
36385
cat >>confdefs.h <<_ACEOF
36386
#define GETNAMEINFO_TYPE_ARG46 $3
36390
cat >>confdefs.h <<_ACEOF
36391
#define GETNAMEINFO_TYPE_ARG7 $4
36395
cat >>confdefs.h <<_ACEOF
36396
#define HAVE_GETNAMEINFO 1
36399
ac_cv_func_getnameinfo="yes"
36404
{ echo "$as_me:$LINENO: checking if we are Mac OS X (to disable poll)" >&5
36405
echo $ECHO_N "checking if we are Mac OS X (to disable poll)... $ECHO_C" >&6; }
33305
36406
disable_poll=no
33306
36407
case $host in
34543
37699
# Have a temporary directory for convenience. Make it in the build tree
34544
# simply because there is no reason to put it here, and in addition,
37700
# simply because there is no reason against having it here, and in addition,
34545
37701
# creating and moving files from /tmp can sometimes cause problems.
34546
# Create a temporary directory, and hook for its removal unless debugging.
37702
# Hook for its removal unless debugging.
37703
# Note that there is a small window in which the directory will not be cleaned:
37704
# after its creation but before its name has been assigned to `$tmp'.
34549
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
37708
trap 'exit_status=$?
37709
{ test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34550
37711
trap '{ (exit 1); exit 1; }' 1 2 13 15
34553
37713
# Create a (secure) tmp directory for tmp files.
34556
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
37716
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34557
37717
test -n "$tmp" && test -d "$tmp"
34560
tmp=./confstat$$-$RANDOM
34561
(umask 077 && mkdir $tmp)
37720
tmp=./conf$$-$RANDOM
37721
(umask 077 && mkdir "$tmp")
34564
37724
echo "$me: cannot create a temporary directory in ." >&2
34565
37725
{ (exit 1); exit 1; }
34570
cat >>$CONFIG_STATUS <<_ACEOF
34573
# CONFIG_FILES section.
37729
# Set up the sed scripts for CONFIG_FILES section.
34576
37732
# No need to generate the scripts if there are no CONFIG_FILES.
34577
37733
# This happens for instance when ./config.status config.h
34578
if test -n "\$CONFIG_FILES"; then
34579
# Protect against being on the right side of a sed subst in config.status.
34580
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
34581
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
34582
s,@SHELL@,$SHELL,;t t
34583
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
34584
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
34585
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
34586
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
34587
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
34588
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
34589
s,@exec_prefix@,$exec_prefix,;t t
34590
s,@prefix@,$prefix,;t t
34591
s,@program_transform_name@,$program_transform_name,;t t
34592
s,@bindir@,$bindir,;t t
34593
s,@sbindir@,$sbindir,;t t
34594
s,@libexecdir@,$libexecdir,;t t
34595
s,@datadir@,$datadir,;t t
34596
s,@sysconfdir@,$sysconfdir,;t t
34597
s,@sharedstatedir@,$sharedstatedir,;t t
34598
s,@localstatedir@,$localstatedir,;t t
34599
s,@libdir@,$libdir,;t t
34600
s,@includedir@,$includedir,;t t
34601
s,@oldincludedir@,$oldincludedir,;t t
34602
s,@infodir@,$infodir,;t t
34603
s,@mandir@,$mandir,;t t
34604
s,@build_alias@,$build_alias,;t t
34605
s,@host_alias@,$host_alias,;t t
34606
s,@target_alias@,$target_alias,;t t
34607
s,@DEFS@,$DEFS,;t t
34608
s,@ECHO_C@,$ECHO_C,;t t
34609
s,@ECHO_N@,$ECHO_N,;t t
34610
s,@ECHO_T@,$ECHO_T,;t t
34611
s,@LIBS@,$LIBS,;t t
34612
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
34613
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
34614
s,@MAINT@,$MAINT,;t t
34617
s,@ac_ct_AR@,$ac_ct_AR,;t t
34618
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
34619
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
34620
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
34621
s,@CYGPATH_W@,$CYGPATH_W,;t t
34622
s,@PACKAGE@,$PACKAGE,;t t
34623
s,@VERSION@,$VERSION,;t t
34624
s,@ACLOCAL@,$ACLOCAL,;t t
34625
s,@AUTOCONF@,$AUTOCONF,;t t
34626
s,@AUTOMAKE@,$AUTOMAKE,;t t
34627
s,@AUTOHEADER@,$AUTOHEADER,;t t
34628
s,@MAKEINFO@,$MAKEINFO,;t t
34629
s,@install_sh@,$install_sh,;t t
34630
s,@STRIP@,$STRIP,;t t
34631
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
34632
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
34633
s,@mkdir_p@,$mkdir_p,;t t
34635
s,@SET_MAKE@,$SET_MAKE,;t t
34636
s,@am__leading_dot@,$am__leading_dot,;t t
34637
s,@AMTAR@,$AMTAR,;t t
34638
s,@am__tar@,$am__tar,;t t
34639
s,@am__untar@,$am__untar,;t t
34640
s,@VERSIONNUM@,$VERSIONNUM,;t t
34641
s,@PKGADD_PKG@,$PKGADD_PKG,;t t
34642
s,@PKGADD_NAME@,$PKGADD_NAME,;t t
34643
s,@PKGADD_VENDOR@,$PKGADD_VENDOR,;t t
34644
s,@build@,$build,;t t
34645
s,@build_cpu@,$build_cpu,;t t
34646
s,@build_vendor@,$build_vendor,;t t
34647
s,@build_os@,$build_os,;t t
34648
s,@host@,$host,;t t
34649
s,@host_cpu@,$host_cpu,;t t
34650
s,@host_vendor@,$host_vendor,;t t
34651
s,@host_os@,$host_os,;t t
34653
s,@CFLAGS@,$CFLAGS,;t t
34654
s,@LDFLAGS@,$LDFLAGS,;t t
34655
s,@CPPFLAGS@,$CPPFLAGS,;t t
34656
s,@ac_ct_CC@,$ac_ct_CC,;t t
34657
s,@EXEEXT@,$EXEEXT,;t t
34658
s,@OBJEXT@,$OBJEXT,;t t
34659
s,@DEPDIR@,$DEPDIR,;t t
34660
s,@am__include@,$am__include,;t t
34661
s,@am__quote@,$am__quote,;t t
34662
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
34663
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
34664
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
34665
s,@CCDEPMODE@,$CCDEPMODE,;t t
34666
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
34667
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
34669
s,@EGREP@,$EGREP,;t t
34670
s,@LN_S@,$LN_S,;t t
34671
s,@ECHO@,$ECHO,;t t
34672
s,@RANLIB@,$RANLIB,;t t
34673
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
34674
s,@DLLTOOL@,$DLLTOOL,;t t
34675
s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
34677
s,@ac_ct_AS@,$ac_ct_AS,;t t
34678
s,@OBJDUMP@,$OBJDUMP,;t t
34679
s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
34681
s,@CXXFLAGS@,$CXXFLAGS,;t t
34682
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
34683
s,@CXXDEPMODE@,$CXXDEPMODE,;t t
34684
s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
34685
s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
34686
s,@CXXCPP@,$CXXCPP,;t t
34688
s,@FFLAGS@,$FFLAGS,;t t
34689
s,@ac_ct_F77@,$ac_ct_F77,;t t
34690
s,@LIBTOOL@,$LIBTOOL,;t t
34691
s,@NO_UNDEFINED_TRUE@,$NO_UNDEFINED_TRUE,;t t
34692
s,@NO_UNDEFINED_FALSE@,$NO_UNDEFINED_FALSE,;t t
34693
s,@MIMPURE_TRUE@,$MIMPURE_TRUE,;t t
34694
s,@MIMPURE_FALSE@,$MIMPURE_FALSE,;t t
34695
s,@CURL_DISABLE_HTTP@,$CURL_DISABLE_HTTP,;t t
34696
s,@CURL_DISABLE_GOPHER@,$CURL_DISABLE_GOPHER,;t t
34697
s,@CURL_DISABLE_FTP@,$CURL_DISABLE_FTP,;t t
34698
s,@CURL_DISABLE_FILE@,$CURL_DISABLE_FILE,;t t
34699
s,@CURL_DISABLE_LDAP@,$CURL_DISABLE_LDAP,;t t
34700
s,@CURL_DISABLE_DICT@,$CURL_DISABLE_DICT,;t t
34701
s,@CURL_DISABLE_TELNET@,$CURL_DISABLE_TELNET,;t t
34702
s,@CURL_DISABLE_TFTP@,$CURL_DISABLE_TFTP,;t t
34703
s,@IPV6_ENABLED@,$IPV6_ENABLED,;t t
34704
s,@KRB4_ENABLED@,$KRB4_ENABLED,;t t
34705
s,@PKGCONFIG@,$PKGCONFIG,;t t
34706
s,@USE_SSLEAY@,$USE_SSLEAY,;t t
34707
s,@RANDOM_FILE@,$RANDOM_FILE,;t t
34708
s,@USE_GNUTLS@,$USE_GNUTLS,;t t
34709
s,@CURL_CA_BUNDLE@,$CURL_CA_BUNDLE,;t t
34710
s,@CABUNDLE_TRUE@,$CABUNDLE_TRUE,;t t
34711
s,@CABUNDLE_FALSE@,$CABUNDLE_FALSE,;t t
34712
s,@HAVE_LIBZ@,$HAVE_LIBZ,;t t
34713
s,@HAVE_LIBZ_TRUE@,$HAVE_LIBZ_TRUE,;t t
34714
s,@HAVE_LIBZ_FALSE@,$HAVE_LIBZ_FALSE,;t t
34715
s,@IDN_ENABLED@,$IDN_ENABLED,;t t
34716
s,@PERL@,$PERL,;t t
34717
s,@NROFF@,$NROFF,;t t
34718
s,@MANOPT@,$MANOPT,;t t
34719
s,@USE_MANUAL_TRUE@,$USE_MANUAL_TRUE,;t t
34720
s,@USE_MANUAL_FALSE@,$USE_MANUAL_FALSE,;t t
34721
s,@HAVE_ARES@,$HAVE_ARES,;t t
34722
s,@subdirs@,$subdirs,;t t
34723
s,@CURL_DISABLE_VERBOSE_STRINGS@,$CURL_DISABLE_VERBOSE_STRINGS,;t t
34724
s,@USE_WINDOWS_SSPI@,$USE_WINDOWS_SSPI,;t t
34725
s,@CURL_DISABLE_CRYPTO_AUTH@,$CURL_DISABLE_CRYPTO_AUTH,;t t
34726
s,@CURL_DISABLE_COOKIES@,$CURL_DISABLE_COOKIES,;t t
34727
s,@CROSSCOMPILING_TRUE@,$CROSSCOMPILING_TRUE,;t t
34728
s,@CROSSCOMPILING_FALSE@,$CROSSCOMPILING_FALSE,;t t
34729
s,@LIBOBJS@,$LIBOBJS,;t t
34730
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
34735
cat >>$CONFIG_STATUS <<\_ACEOF
34736
# Split the substitutions into bite-sized pieces for seds with
34737
# small command number limits, like on Digital OSF/1 and HP-UX.
34738
ac_max_sed_lines=48
34739
ac_sed_frag=1 # Number of current file.
34740
ac_beg=1 # First line for current file.
34741
ac_end=$ac_max_sed_lines # Line after last line for current file.
34744
while $ac_more_lines; do
34745
if test $ac_beg -gt 1; then
34746
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
34748
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
34750
if test ! -s $tmp/subs.frag; then
34751
ac_more_lines=false
34753
# The purpose of the label and of the branching condition is to
34754
# speed up the sed processing (if there are no `@' at all, there
34755
# is no need to browse any of the substitutions).
34756
# These are the two extra sed commands mentioned above.
34758
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
34759
if test -z "$ac_sed_cmds"; then
34760
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
34762
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
34764
ac_sed_frag=`expr $ac_sed_frag + 1`
34766
ac_end=`expr $ac_end + $ac_max_sed_lines`
34769
if test -z "$ac_sed_cmds"; then
37734
if test -n "$CONFIG_FILES"; then
37741
for ac_last_try in false false false false false :; do
37742
cat >conf$$subs.sed <<_ACEOF
37743
SHELL!$SHELL$ac_delim
37744
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
37745
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
37746
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
37747
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
37748
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
37749
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
37750
exec_prefix!$exec_prefix$ac_delim
37751
prefix!$prefix$ac_delim
37752
program_transform_name!$program_transform_name$ac_delim
37753
bindir!$bindir$ac_delim
37754
sbindir!$sbindir$ac_delim
37755
libexecdir!$libexecdir$ac_delim
37756
datarootdir!$datarootdir$ac_delim
37757
datadir!$datadir$ac_delim
37758
sysconfdir!$sysconfdir$ac_delim
37759
sharedstatedir!$sharedstatedir$ac_delim
37760
localstatedir!$localstatedir$ac_delim
37761
includedir!$includedir$ac_delim
37762
oldincludedir!$oldincludedir$ac_delim
37763
docdir!$docdir$ac_delim
37764
infodir!$infodir$ac_delim
37765
htmldir!$htmldir$ac_delim
37766
dvidir!$dvidir$ac_delim
37767
pdfdir!$pdfdir$ac_delim
37768
psdir!$psdir$ac_delim
37769
libdir!$libdir$ac_delim
37770
localedir!$localedir$ac_delim
37771
mandir!$mandir$ac_delim
37772
DEFS!$DEFS$ac_delim
37773
ECHO_C!$ECHO_C$ac_delim
37774
ECHO_N!$ECHO_N$ac_delim
37775
ECHO_T!$ECHO_T$ac_delim
37776
LIBS!$LIBS$ac_delim
37777
build_alias!$build_alias$ac_delim
37778
host_alias!$host_alias$ac_delim
37779
target_alias!$target_alias$ac_delim
37780
MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
37781
MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
37782
MAINT!$MAINT$ac_delim
37785
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
37786
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
37787
INSTALL_DATA!$INSTALL_DATA$ac_delim
37788
CYGPATH_W!$CYGPATH_W$ac_delim
37789
PACKAGE!$PACKAGE$ac_delim
37790
VERSION!$VERSION$ac_delim
37791
ACLOCAL!$ACLOCAL$ac_delim
37792
AUTOCONF!$AUTOCONF$ac_delim
37793
AUTOMAKE!$AUTOMAKE$ac_delim
37794
AUTOHEADER!$AUTOHEADER$ac_delim
37795
MAKEINFO!$MAKEINFO$ac_delim
37796
install_sh!$install_sh$ac_delim
37797
STRIP!$STRIP$ac_delim
37798
INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
37799
mkdir_p!$mkdir_p$ac_delim
37801
SET_MAKE!$SET_MAKE$ac_delim
37802
am__leading_dot!$am__leading_dot$ac_delim
37803
AMTAR!$AMTAR$ac_delim
37804
am__tar!$am__tar$ac_delim
37805
am__untar!$am__untar$ac_delim
37806
VERSIONNUM!$VERSIONNUM$ac_delim
37807
PKGADD_PKG!$PKGADD_PKG$ac_delim
37808
PKGADD_NAME!$PKGADD_NAME$ac_delim
37809
PKGADD_VENDOR!$PKGADD_VENDOR$ac_delim
37810
build!$build$ac_delim
37811
build_cpu!$build_cpu$ac_delim
37812
build_vendor!$build_vendor$ac_delim
37813
build_os!$build_os$ac_delim
37814
host!$host$ac_delim
37815
host_cpu!$host_cpu$ac_delim
37816
host_vendor!$host_vendor$ac_delim
37817
host_os!$host_os$ac_delim
37819
CFLAGS!$CFLAGS$ac_delim
37820
LDFLAGS!$LDFLAGS$ac_delim
37821
CPPFLAGS!$CPPFLAGS$ac_delim
37822
ac_ct_CC!$ac_ct_CC$ac_delim
37823
EXEEXT!$EXEEXT$ac_delim
37824
OBJEXT!$OBJEXT$ac_delim
37825
DEPDIR!$DEPDIR$ac_delim
37826
am__include!$am__include$ac_delim
37827
am__quote!$am__quote$ac_delim
37828
AMDEP_TRUE!$AMDEP_TRUE$ac_delim
37829
AMDEP_FALSE!$AMDEP_FALSE$ac_delim
37830
AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
37831
CCDEPMODE!$CCDEPMODE$ac_delim
37832
am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
37833
am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
37835
GREP!$GREP$ac_delim
37836
EGREP!$EGREP$ac_delim
37837
LN_S!$LN_S$ac_delim
37838
ECHO!$ECHO$ac_delim
37839
RANLIB!$RANLIB$ac_delim
37842
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
37844
elif $ac_last_try; then
37845
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
37846
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
37847
{ (exit 1); exit 1; }; }
37849
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37853
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
37854
if test -n "$ac_eof"; then
37855
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
37856
ac_eof=`expr $ac_eof + 1`
37859
cat >>$CONFIG_STATUS <<_ACEOF
37860
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
37861
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
37864
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
37865
s/^/s,@/; s/!/@,|#_!!_#|/
37868
s/'"$ac_delim"'$/,g/; t
37870
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
37871
' >>$CONFIG_STATUS <conf$$subs.sed
37872
rm -f conf$$subs.sed
37873
cat >>$CONFIG_STATUS <<_ACEOF
37879
for ac_last_try in false false false false false :; do
37880
cat >conf$$subs.sed <<_ACEOF
37881
DLLTOOL!$DLLTOOL$ac_delim
37883
OBJDUMP!$OBJDUMP$ac_delim
37885
CXXFLAGS!$CXXFLAGS$ac_delim
37886
ac_ct_CXX!$ac_ct_CXX$ac_delim
37887
CXXDEPMODE!$CXXDEPMODE$ac_delim
37888
am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
37889
am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
37890
CXXCPP!$CXXCPP$ac_delim
37892
FFLAGS!$FFLAGS$ac_delim
37893
ac_ct_F77!$ac_ct_F77$ac_delim
37894
LIBTOOL!$LIBTOOL$ac_delim
37895
NO_UNDEFINED_TRUE!$NO_UNDEFINED_TRUE$ac_delim
37896
NO_UNDEFINED_FALSE!$NO_UNDEFINED_FALSE$ac_delim
37897
MIMPURE_TRUE!$MIMPURE_TRUE$ac_delim
37898
MIMPURE_FALSE!$MIMPURE_FALSE$ac_delim
37899
CURL_DISABLE_HTTP!$CURL_DISABLE_HTTP$ac_delim
37900
CURL_DISABLE_FTP!$CURL_DISABLE_FTP$ac_delim
37901
CURL_DISABLE_FILE!$CURL_DISABLE_FILE$ac_delim
37902
CURL_DISABLE_LDAP!$CURL_DISABLE_LDAP$ac_delim
37903
CURL_DISABLE_DICT!$CURL_DISABLE_DICT$ac_delim
37904
CURL_DISABLE_TELNET!$CURL_DISABLE_TELNET$ac_delim
37905
CURL_DISABLE_TFTP!$CURL_DISABLE_TFTP$ac_delim
37906
IPV6_ENABLED!$IPV6_ENABLED$ac_delim
37907
KRB4_ENABLED!$KRB4_ENABLED$ac_delim
37908
PKGCONFIG!$PKGCONFIG$ac_delim
37909
USE_SSLEAY!$USE_SSLEAY$ac_delim
37910
RANDOM_FILE!$RANDOM_FILE$ac_delim
37911
USE_GNUTLS!$USE_GNUTLS$ac_delim
37912
CURL_CA_BUNDLE!$CURL_CA_BUNDLE$ac_delim
37913
CABUNDLE_TRUE!$CABUNDLE_TRUE$ac_delim
37914
CABUNDLE_FALSE!$CABUNDLE_FALSE$ac_delim
37915
HAVE_LIBZ!$HAVE_LIBZ$ac_delim
37916
HAVE_LIBZ_TRUE!$HAVE_LIBZ_TRUE$ac_delim
37917
HAVE_LIBZ_FALSE!$HAVE_LIBZ_FALSE$ac_delim
37918
IDN_ENABLED!$IDN_ENABLED$ac_delim
37919
PERL!$PERL$ac_delim
37920
NROFF!$NROFF$ac_delim
37921
MANOPT!$MANOPT$ac_delim
37922
USE_MANUAL_TRUE!$USE_MANUAL_TRUE$ac_delim
37923
USE_MANUAL_FALSE!$USE_MANUAL_FALSE$ac_delim
37924
HAVE_ARES!$HAVE_ARES$ac_delim
37925
subdirs!$subdirs$ac_delim
37926
CURL_DISABLE_VERBOSE_STRINGS!$CURL_DISABLE_VERBOSE_STRINGS$ac_delim
37927
USE_WINDOWS_SSPI!$USE_WINDOWS_SSPI$ac_delim
37928
CURL_DISABLE_CRYPTO_AUTH!$CURL_DISABLE_CRYPTO_AUTH$ac_delim
37929
CURL_DISABLE_COOKIES!$CURL_DISABLE_COOKIES$ac_delim
37930
CROSSCOMPILING_TRUE!$CROSSCOMPILING_TRUE$ac_delim
37931
CROSSCOMPILING_FALSE!$CROSSCOMPILING_FALSE$ac_delim
37932
LIBOBJS!$LIBOBJS$ac_delim
37933
LTLIBOBJS!$LTLIBOBJS$ac_delim
37936
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 53; then
37938
elif $ac_last_try; then
37939
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
37940
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
37941
{ (exit 1); exit 1; }; }
37943
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37947
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
37948
if test -n "$ac_eof"; then
37949
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
37950
ac_eof=`expr $ac_eof + 1`
37953
cat >>$CONFIG_STATUS <<_ACEOF
37954
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
37955
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
37958
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
37959
s/^/s,@/; s/!/@,|#_!!_#|/
37962
s/'"$ac_delim"'$/,g/; t
37964
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
37965
' >>$CONFIG_STATUS <conf$$subs.sed
37966
rm -f conf$$subs.sed
37967
cat >>$CONFIG_STATUS <<_ACEOF
37974
# VPATH may cause trouble with some makes, so we remove $(srcdir),
37975
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
37976
# trailing colons and then remove the whole line if VPATH becomes empty
37977
# (actually we leave an empty line to preserve line numbers).
37978
if test "x$srcdir" = x.; then
37979
ac_vpsub='/^[ ]*VPATH[ ]*=/{
37980
s/:*\$(srcdir):*/:/
37981
s/:*\${srcdir}:*/:/
37983
s/^\([^=]*=[ ]*\):*/\1/
37989
cat >>$CONFIG_STATUS <<\_ACEOF
34772
37990
fi # test -n "$CONFIG_FILES"
34775
cat >>$CONFIG_STATUS <<\_ACEOF
34776
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
34777
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
34779
- | *:- | *:-:* ) # input from stdin
34781
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
34782
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
34783
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
34784
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
34785
* ) ac_file_in=$ac_file.in ;;
34788
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
34789
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
37993
for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
37996
:[FHLC]) ac_mode=$ac_tag; continue;;
37998
case $ac_mode$ac_tag in
38000
:L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
38001
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
38002
{ (exit 1); exit 1; }; };;
38003
:[FH]-) ac_tag=-:-;;
38004
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
38021
-) ac_f="$tmp/stdin";;
38022
*) # Look for the file first in the build tree, then in the source tree
38023
# (if the path is not absolute). The absolute path cannot be DOS-style,
38024
# because $ac_f cannot contain `:'.
38028
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
38030
{ { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
38031
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
38032
{ (exit 1); exit 1; }; };;
38034
ac_file_inputs="$ac_file_inputs $ac_f"
38037
# Let's still pretend it is `configure' which instantiates (i.e., don't
38038
# use $as_me), people would be surprised to read:
38039
# /* config.h. Generated by config.status. */
38040
configure_input="Generated from "`IFS=:
38041
echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
38042
if test x"$ac_file" != x-; then
38043
configure_input="$ac_file. $configure_input"
38044
{ echo "$as_me:$LINENO: creating $ac_file" >&5
38045
echo "$as_me: creating $ac_file" >&6;}
38049
*:-:* | *:-) cat >"$tmp/stdin";;
38054
ac_dir=`$as_dirname -- "$ac_file" ||
34790
38055
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34791
38056
X"$ac_file" : 'X\(//\)[^/]' \| \
34792
38057
X"$ac_file" : 'X\(//\)$' \| \
34793
X"$ac_file" : 'X\(/\)' \| \
34794
. : '\(.\)' 2>/dev/null ||
38058
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
34795
38059
echo X"$ac_file" |
34796
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
34797
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
34798
/^X\(\/\/\)$/{ s//\1/; q; }
34799
/^X\(\/\).*/{ s//\1/; q; }
34801
{ if $as_mkdir_p; then
38060
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38064
/^X\(\/\/\)[^/].*/{
38079
-*) as_dir=./$as_dir;;
38081
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
34806
while test ! -d "$as_dir"; do
34807
as_dirs="$as_dir $as_dirs"
34808
as_dir=`(dirname "$as_dir") 2>/dev/null ||
38085
*\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
38086
*) as_qdir=$as_dir;;
38088
as_dirs="'$as_qdir' $as_dirs"
38089
as_dir=`$as_dirname -- "$as_dir" ||
34809
38090
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34810
38091
X"$as_dir" : 'X\(//\)[^/]' \| \
34811
38092
X"$as_dir" : 'X\(//\)$' \| \
34812
X"$as_dir" : 'X\(/\)' \| \
34813
. : '\(.\)' 2>/dev/null ||
38093
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
34814
38094
echo X"$as_dir" |
34815
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
34816
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
34817
/^X\(\/\/\)$/{ s//\1/; q; }
34818
/^X\(\/\).*/{ s//\1/; q; }
38095
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38099
/^X\(\/\/\)[^/].*/{
38112
test -d "$as_dir" && break
34821
test ! -n "$as_dirs" || mkdir $as_dirs
34822
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
34823
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
38114
test -z "$as_dirs" || eval "mkdir $as_dirs"
38115
} || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
38116
echo "$as_me: error: cannot create directory $as_dir" >&2;}
34824
38117
{ (exit 1); exit 1; }; }; }
34826
38118
ac_builddir=.
34828
if test "$ac_dir" != .; then
38121
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34829
38123
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
34830
# A "../" for each directory in $ac_dir_suffix.
34831
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
34833
ac_dir_suffix= ac_top_builddir=
38124
# A ".." for each directory in $ac_dir_suffix.
38125
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
38126
case $ac_top_builddir_sub in
38127
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
38128
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
38131
ac_abs_top_builddir=$ac_pwd
38132
ac_abs_builddir=$ac_pwd$ac_dir_suffix
38133
# for backward compatibility:
38134
ac_top_builddir=$ac_top_build_prefix
34836
38136
case $srcdir in
34837
.) # No --srcdir option. We are building in place.
38137
.) # We are building in place.
34839
if test -z "$ac_top_builddir"; then
34842
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
34844
[\\/]* | ?:[\\/]* ) # Absolute path.
38139
ac_top_srcdir=$ac_top_builddir_sub
38140
ac_abs_top_srcdir=$ac_pwd ;;
38141
[\\/]* | ?:[\\/]* ) # Absolute name.
34845
38142
ac_srcdir=$srcdir$ac_dir_suffix;
34846
ac_top_srcdir=$srcdir ;;
34847
*) # Relative path.
34848
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
34849
ac_top_srcdir=$ac_top_builddir$srcdir ;;
34852
# Do not use `cd foo && pwd` to compute absolute paths, because
34853
# the directories may not exist.
34855
.) ac_abs_builddir="$ac_dir";;
34858
.) ac_abs_builddir=`pwd`;;
34859
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
34860
*) ac_abs_builddir=`pwd`/"$ac_dir";;
34863
case $ac_abs_builddir in
34864
.) ac_abs_top_builddir=${ac_top_builddir}.;;
34866
case ${ac_top_builddir}. in
34867
.) ac_abs_top_builddir=$ac_abs_builddir;;
34868
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
34869
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
34872
case $ac_abs_builddir in
34873
.) ac_abs_srcdir=$ac_srcdir;;
34876
.) ac_abs_srcdir=$ac_abs_builddir;;
34877
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
34878
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
34881
case $ac_abs_builddir in
34882
.) ac_abs_top_srcdir=$ac_top_srcdir;;
34884
case $ac_top_srcdir in
34885
.) ac_abs_top_srcdir=$ac_abs_builddir;;
34886
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
34887
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
38143
ac_top_srcdir=$srcdir
38144
ac_abs_top_srcdir=$srcdir ;;
38145
*) # Relative name.
38146
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
38147
ac_top_srcdir=$ac_top_build_prefix$srcdir
38148
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
38150
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34892
38159
case $INSTALL in
34893
38160
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
34894
*) ac_INSTALL=$ac_top_builddir$INSTALL ;;
38161
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
34897
# Let's still pretend it is `configure' which instantiates (i.e., don't
34898
# use $as_me), people would be surprised to read:
34899
# /* config.h. Generated by config.status. */
34900
if test x"$ac_file" = x-; then
34903
configure_input="$ac_file. "
34905
configure_input=$configure_input"Generated from `echo $ac_file_in |
34906
sed 's,.*/,,'` by configure."
34908
# First look for the input files in the build tree, otherwise in the
34910
ac_file_inputs=`IFS=:
34911
for f in $ac_file_in; do
34913
-) echo $tmp/stdin ;;
34915
# Absolute (can't be DOS-style, as IFS=:)
34916
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
34917
echo "$as_me: error: cannot find input file: $f" >&2;}
34918
{ (exit 1); exit 1; }; }
34921
if test -f "$f"; then
34924
elif test -f "$srcdir/$f"; then
34929
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
34930
echo "$as_me: error: cannot find input file: $f" >&2;}
34931
{ (exit 1); exit 1; }; }
34934
done` || { (exit 1); exit 1; }
34936
if test x"$ac_file" != x-; then
34937
{ echo "$as_me:$LINENO: creating $ac_file" >&5
34938
echo "$as_me: creating $ac_file" >&6;}
38165
cat >>$CONFIG_STATUS <<\_ACEOF
38166
# If the template does not know about datarootdir, expand it.
38167
# FIXME: This hack should be removed a few years after 2.60.
38168
ac_datarootdir_hack=; ac_datarootdir_seen=
38170
case `sed -n '/datarootdir/ {
38179
' $ac_file_inputs` in
38180
*datarootdir*) ac_datarootdir_seen=yes;;
38181
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
38182
{ echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
38183
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
38185
cat >>$CONFIG_STATUS <<_ACEOF
38186
ac_datarootdir_hack='
38187
s&@datadir@&$datadir&g
38188
s&@docdir@&$docdir&g
38189
s&@infodir@&$infodir&g
38190
s&@localedir@&$localedir&g
38191
s&@mandir@&$mandir&g
38192
s&\\\${datarootdir}&$datarootdir&g' ;;
38196
# Neutralize VPATH when `$srcdir' = `.'.
38197
# Shell code in configure.ac might set extrasub.
38198
# FIXME: do we really want to maintain this feature?
34942
38199
cat >>$CONFIG_STATUS <<_ACEOF
34943
38200
sed "$ac_vpsub
34946
38203
cat >>$CONFIG_STATUS <<\_ACEOF
34948
38205
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34949
s,@configure_input@,$configure_input,;t t
34950
s,@srcdir@,$ac_srcdir,;t t
34951
s,@abs_srcdir@,$ac_abs_srcdir,;t t
34952
s,@top_srcdir@,$ac_top_srcdir,;t t
34953
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
34954
s,@builddir@,$ac_builddir,;t t
34955
s,@abs_builddir@,$ac_abs_builddir,;t t
34956
s,@top_builddir@,$ac_top_builddir,;t t
34957
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
34958
s,@INSTALL@,$ac_INSTALL,;t t
34959
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
34961
if test x"$ac_file" != x-; then
34962
mv $tmp/out $ac_file
38206
s&@configure_input@&$configure_input&;t t
38207
s&@top_builddir@&$ac_top_builddir_sub&;t t
38208
s&@srcdir@&$ac_srcdir&;t t
38209
s&@abs_srcdir@&$ac_abs_srcdir&;t t
38210
s&@top_srcdir@&$ac_top_srcdir&;t t
38211
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
38212
s&@builddir@&$ac_builddir&;t t
38213
s&@abs_builddir@&$ac_abs_builddir&;t t
38214
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
38215
s&@INSTALL@&$ac_INSTALL&;t t
38216
$ac_datarootdir_hack
38217
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
38219
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
38220
{ ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
38221
{ echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
38222
which seems to be undefined. Please make sure it is defined." >&5
38223
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
38224
which seems to be undefined. Please make sure it is defined." >&2;}
38228
-) cat "$tmp/out"; rm -f "$tmp/out";;
38229
*) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
34970
cat >>$CONFIG_STATUS <<\_ACEOF
34973
# CONFIG_HEADER section.
34976
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
34977
# NAME is the cpp macro being defined and VALUE is the value it is being given.
34979
# ac_d sets the value in "#define NAME VALUE" lines.
34980
ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
34981
ac_dB='[ ].*$,\1#\2'
38238
# Transform confdefs.h into a sed script `conftest.defines', that
38239
# substitutes the proper values into config.h.in to produce config.h.
38240
rm -f conftest.defines conftest.tail
38241
# First, append a space to every undef/define line, to ease matching.
38242
echo 's/$/ /' >conftest.defines
38243
# Then, protect against being on the right side of a sed subst, or in
38244
# an unquoted here document, in config.status. If some macros were
38245
# called several times there might be several #defines for the same
38246
# symbol, which is useless. But do not sort them, since the last
38247
# AC_DEFINE must be honored.
38248
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
38249
# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
38250
# NAME is the cpp macro being defined, VALUE is the value it is being given.
38251
# PARAMS is the parameter list in the macro definition--in most cases, it's
38252
# just an empty string.
38253
ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
38254
ac_dB='\\)[ (].*,\\1define\\2'
34984
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
34985
ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
34986
ac_uB='$,\1#\2define\3'
34990
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
34991
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
34993
- | *:- | *:-:* ) # input from stdin
34995
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
34996
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
34997
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
34998
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
34999
* ) ac_file_in=$ac_file.in ;;
35002
test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
35003
echo "$as_me: creating $ac_file" >&6;}
35005
# First look for the input files in the build tree, otherwise in the
35007
ac_file_inputs=`IFS=:
35008
for f in $ac_file_in; do
35010
-) echo $tmp/stdin ;;
35012
# Absolute (can't be DOS-style, as IFS=:)
35013
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
35014
echo "$as_me: error: cannot find input file: $f" >&2;}
35015
{ (exit 1); exit 1; }; }
35016
# Do quote $f, to prevent DOS paths from being IFS'd.
35019
if test -f "$f"; then
35022
elif test -f "$srcdir/$f"; then
35027
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
35028
echo "$as_me: error: cannot find input file: $f" >&2;}
35029
{ (exit 1); exit 1; }; }
35032
done` || { (exit 1); exit 1; }
35033
# Remove the trailing spaces.
35034
sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
35038
# Transform confdefs.h into two sed scripts, `conftest.defines' and
35039
# `conftest.undefs', that substitutes the proper values into
35040
# config.h.in to produce config.h. The first handles `#define'
35041
# templates, and the second `#undef' templates.
35042
# And first: Protect against being on the right side of a sed subst in
35043
# config.status. Protect against being in an unquoted here document
35044
# in config.status.
35045
rm -f conftest.defines conftest.undefs
35046
# Using a here document instead of a string reduces the quoting nightmare.
35047
# Putting comments in sed scripts is not portable.
35049
# `end' is used to avoid that the second main sed command (meant for
35050
# 0-ary CPP macros) applies to n-ary macro definitions.
35051
# See the Autoconf documentation for `clear'.
35052
cat >confdef2sed.sed <<\_ACEOF
35057
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
35059
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
35062
# If some macros were called several times there might be several times
35063
# the same #defines, which is useless. Nevertheless, we may not want to
35064
# sort them, since we want the *last* AC-DEFINE to be honored.
35065
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
35066
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
35067
rm -f confdef2sed.sed
35069
# This sed command replaces #undef with comments. This is necessary, for
38262
s/^[ ]*#[ ]*define[ ][ ]*//
38267
s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
38268
s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
38269
' >>conftest.defines
38271
# Remove the space that was appended to ease matching.
38272
# Then replace #undef with comments. This is necessary, for
35070
38273
# example, in the case of _POSIX_SOURCE, which is predefined and required
35071
38274
# on some systems where configure will not decide to define it.
35072
cat >>conftest.undefs <<\_ACEOF
35073
s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
38275
# (The regexp can be short, since the line contains either #define or #undef.)
38277
s,^[ #]*u.*,/* & */,' >>conftest.defines
38279
# Break up conftest.defines:
38280
ac_max_sed_lines=50
38282
# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
38283
# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
38284
# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
38286
ac_in='$ac_file_inputs'
38287
ac_out='"$tmp/out1"'
38288
ac_nxt='"$tmp/out2"'
38292
# Write a here document:
38293
cat >>$CONFIG_STATUS <<_ACEOF
38294
# First, check the format of the line:
38295
cat >"\$tmp/defines.sed" <<\\CEOF
38296
/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
38297
/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
35076
# Break up conftest.defines because some shells have a limit on the size
35077
# of here documents, and old seds have small limits too (100 cmds).
35078
echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
35079
echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
35080
echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
35081
echo ' :' >>$CONFIG_STATUS
35082
rm -f conftest.tail
35083
while grep . conftest.defines >/dev/null
35085
# Write a limited-size here document to $tmp/defines.sed.
35086
echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
35087
# Speed up: don't consider the non `#define' lines.
35088
echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
35089
# Work around the forget-to-reset-the-flag bug.
35090
echo 't clr' >>$CONFIG_STATUS
35091
echo ': clr' >>$CONFIG_STATUS
35092
sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
38301
sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
35094
sed -f $tmp/defines.sed $tmp/in >$tmp/out
35096
mv $tmp/out $tmp/in
35098
sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
38303
sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
38304
ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
38305
sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
38306
grep . conftest.tail >/dev/null || break
35099
38307
rm -f conftest.defines
35100
38308
mv conftest.tail conftest.defines
35102
rm -f conftest.defines
35103
echo ' fi # grep' >>$CONFIG_STATUS
35104
echo >>$CONFIG_STATUS
35106
# Break up conftest.undefs because some shells have a limit on the size
35107
# of here documents, and old seds have small limits too (100 cmds).
35108
echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
35109
rm -f conftest.tail
35110
while grep . conftest.undefs >/dev/null
35112
# Write a limited-size here document to $tmp/undefs.sed.
35113
echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
35114
# Speed up: don't consider the non `#undef'
35115
echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
35116
# Work around the forget-to-reset-the-flag bug.
35117
echo 't clr' >>$CONFIG_STATUS
35118
echo ': clr' >>$CONFIG_STATUS
35119
sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
35121
sed -f $tmp/undefs.sed $tmp/in >$tmp/out
35123
mv $tmp/out $tmp/in
35125
sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
35126
rm -f conftest.undefs
35127
mv conftest.tail conftest.undefs
35129
rm -f conftest.undefs
38310
rm -f conftest.defines conftest.tail
38312
echo "ac_result=$ac_in" >>$CONFIG_STATUS
35131
38313
cat >>$CONFIG_STATUS <<\_ACEOF
35132
# Let's still pretend it is `configure' which instantiates (i.e., don't
35133
# use $as_me), people would be surprised to read:
35134
# /* config.h. Generated by config.status. */
35135
if test x"$ac_file" = x-; then
35136
echo "/* Generated by configure. */" >$tmp/config.h
35138
echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
35140
cat $tmp/in >>$tmp/config.h
35142
38314
if test x"$ac_file" != x-; then
35143
if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
38315
echo "/* $configure_input */" >"$tmp/config.h"
38316
cat "$ac_result" >>"$tmp/config.h"
38317
if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
35144
38318
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35145
38319
echo "$as_me: $ac_file is unchanged" >&6;}
35147
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
35148
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35149
X"$ac_file" : 'X\(//\)[^/]' \| \
35150
X"$ac_file" : 'X\(//\)$' \| \
35151
X"$ac_file" : 'X\(/\)' \| \
35152
. : '\(.\)' 2>/dev/null ||
35154
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
35155
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
35156
/^X\(\/\/\)$/{ s//\1/; q; }
35157
/^X\(\/\).*/{ s//\1/; q; }
35159
{ if $as_mkdir_p; then
35164
while test ! -d "$as_dir"; do
35165
as_dirs="$as_dir $as_dirs"
35166
as_dir=`(dirname "$as_dir") 2>/dev/null ||
35167
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35168
X"$as_dir" : 'X\(//\)[^/]' \| \
35169
X"$as_dir" : 'X\(//\)$' \| \
35170
X"$as_dir" : 'X\(/\)' \| \
35171
. : '\(.\)' 2>/dev/null ||
35173
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
35174
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
35175
/^X\(\/\/\)$/{ s//\1/; q; }
35176
/^X\(\/\).*/{ s//\1/; q; }
35179
test ! -n "$as_dirs" || mkdir $as_dirs
35180
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
35181
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
35182
{ (exit 1); exit 1; }; }; }
35184
38321
rm -f $ac_file
35185
mv $tmp/config.h $ac_file
38322
mv "$tmp/config.h" $ac_file
35189
rm -f $tmp/config.h
38325
echo "/* $configure_input */"
35191
38329
# Compute $ac_file's index in $config_headers.
35192
38330
_am_stamp_count=1
35193
38331
for _am_header in $config_headers :; do