2
2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.64 for curl -.
3
# Generated by GNU Autoconf 2.65 for curl -.
5
5
# Report bugs to <a suitable curl mailing list => http://curl.haxx.se/mail/>.
7
8
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
11
13
# This configure script is free software; the Free Software Foundation
12
14
# gives unlimited permission to copy, distribute and modify it.
14
# Copyright (c) 1998 - 2009 Daniel Stenberg, <daniel@haxx.se>
16
# Copyright (c) 1998 - 2010 Daniel Stenberg, <daniel@haxx.se>
15
17
# This configure script may be copied, distributed and modified under the
16
18
# terms of the curl license; see COPYING for more details
17
19
## -------------------- ##
1664
1686
--disable-telnet Disable TELNET support
1665
1687
--enable-tftp Enable TFTP support
1666
1688
--disable-tftp Disable TFTP support
1689
--enable-pop3 Enable POP3 support
1690
--disable-pop3 Disable POP3 support
1691
--enable-imap Enable IMAP support
1692
--disable-imap Disable IMAP support
1693
--enable-smtp Enable SMTP support
1694
--disable-smtp Disable SMTP support
1667
1695
--enable-manual Enable built-in manual
1668
1696
--disable-manual Disable built-in manual
1669
1697
--enable-libgcc use libgcc when linking
1670
1698
--enable-ipv6 Enable ipv6 (with ipv4) support
1671
1699
--disable-ipv6 Disable ipv6 support
1672
--disable-thread don't look for thread-safe functions
1673
--enable-thread look for thread-safe functions
1674
1700
--enable-nonblocking Enable non-blocking communications
1675
1701
--disable-nonblocking Disable non-blocking communications
1676
--enable-ares=PATH Enable c-ares for name lookups
1677
--disable-ares Disable c-ares for name lookups
1702
--enable-threaded-resolver
1703
Enable threaded resolver
1704
--disable-threaded-resover
1705
Disable threaded resolver
1678
1706
--enable-verbose Enable verbose strings
1679
1707
--disable-verbose Disable verbose strings
1680
1708
--enable-sspi Enable SSPI
4103
4177
... rest of stderr output deleted ...
4104
4178
10q' conftest.err >conftest.er1
4105
4179
cat conftest.er1 >&5
4106
rm -f conftest.er1 conftest.err
4181
rm -f conftest.er1 conftest.err
4108
4182
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4109
4183
test $ac_status = 0; }
4112
4186
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4113
4187
/* end confdefs.h. */
4115
4189
int main (void)
4117
FILE *f = fopen ("conftest.out", "w");
4118
return ferror (f) || fclose (f) != 0;
4124
4196
ac_clean_files_save=$ac_clean_files
4125
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4197
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4126
4198
# Try to create an executable without -o first, disregard a.out.
4127
4199
# It will help us diagnose broken compilers, and finding out an intuition
4129
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4130
$as_echo_n "checking for C compiler default output file name... " >&6; }
4201
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4202
$as_echo_n "checking whether the C compiler works... " >&6; }
4131
4203
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4133
4205
# The possible output files:
4264
if test -z "$ac_file"; then :
4265
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4266
$as_echo "no" >&6; }
4267
$as_echo "$as_me: failed program was:" >&5
4268
sed 's/^/| /' conftest.$ac_ext >&5
4270
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4271
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4272
{ as_fn_set_status 77
4273
as_fn_error "C compiler cannot create executables
4274
See \`config.log' for more details." "$LINENO" 5; }; }
4276
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4277
$as_echo "yes" >&6; }
4279
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4280
$as_echo_n "checking for C compiler default output file name... " >&6; }
4192
4281
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4193
4282
$as_echo "$ac_file" >&6; }
4194
if test -z "$ac_file"; then :
4195
$as_echo "$as_me: failed program was:" >&5
4196
sed 's/^/| /' conftest.$ac_ext >&5
4198
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4199
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4200
{ as_fn_set_status 77
4201
as_fn_error "C compiler cannot create executables
4202
See \`config.log' for more details." "$LINENO" 5; }; }
4204
4283
ac_exeext=$ac_cv_exeext
4206
# Check that the compiler produces executables we can run. If not, either
4207
# the compiler is broken, or we cross compile.
4208
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4209
$as_echo_n "checking whether the C compiler works... " >&6; }
4210
# If not cross compiling, check that we can run a simple program.
4211
if test "$cross_compiling" != yes; then
4212
if { ac_try='./$ac_file'
4213
{ { case "(($ac_try" in
4214
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4215
*) ac_try_echo=$ac_try;;
4217
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4218
$as_echo "$ac_try_echo"; } >&5
4219
(eval "$ac_try") 2>&5
4221
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4222
test $ac_status = 0; }; }; then
4225
if test "$cross_compiling" = maybe; then
4228
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4229
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4230
as_fn_error "cannot run C compiled programs.
4231
If you meant to cross compile, use \`--host'.
4232
See \`config.log' for more details." "$LINENO" 5; }
4236
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4237
$as_echo "yes" >&6; }
4239
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4285
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4240
4286
ac_clean_files=$ac_clean_files_save
4241
# Check that the compiler produces executables we can run. If not, either
4242
# the compiler is broken, or we cross compile.
4243
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4244
$as_echo_n "checking whether we are cross compiling... " >&6; }
4245
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4246
$as_echo "$cross_compiling" >&6; }
4248
4287
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4249
4288
$as_echo_n "checking for suffix of executables... " >&6; }
4250
4289
if { { ac_try="$ac_link"
4277
4316
as_fn_error "cannot compute suffix of executables: cannot compile and link
4278
4317
See \`config.log' for more details." "$LINENO" 5; }
4280
rm -f conftest$ac_cv_exeext
4319
rm -f conftest conftest$ac_cv_exeext
4281
4320
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4282
4321
$as_echo "$ac_cv_exeext" >&6; }
4284
4323
rm -f conftest.$ac_ext
4285
4324
EXEEXT=$ac_cv_exeext
4286
4325
ac_exeext=$EXEEXT
4326
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4327
/* end confdefs.h. */
4331
FILE *f = fopen ("conftest.out", "w");
4332
return ferror (f) || fclose (f) != 0;
4338
ac_clean_files="$ac_clean_files conftest.out"
4339
# Check that the compiler produces executables we can run. If not, either
4340
# the compiler is broken, or we cross compile.
4341
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4342
$as_echo_n "checking whether we are cross compiling... " >&6; }
4343
if test "$cross_compiling" != yes; then
4344
{ { ac_try="$ac_link"
4346
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4347
*) ac_try_echo=$ac_try;;
4349
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4350
$as_echo "$ac_try_echo"; } >&5
4351
(eval "$ac_link") 2>&5
4353
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4354
test $ac_status = 0; }
4355
if { ac_try='./conftest$ac_cv_exeext'
4356
{ { case "(($ac_try" in
4357
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4358
*) ac_try_echo=$ac_try;;
4360
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4361
$as_echo "$ac_try_echo"; } >&5
4362
(eval "$ac_try") 2>&5
4364
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4365
test $ac_status = 0; }; }; then
4368
if test "$cross_compiling" = maybe; then
4371
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4372
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4373
as_fn_error "cannot run C compiled programs.
4374
If you meant to cross compile, use \`--host'.
4375
See \`config.log' for more details." "$LINENO" 5; }
4379
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4380
$as_echo "$cross_compiling" >&6; }
4382
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4383
ac_clean_files=$ac_clean_files_save
4287
4384
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4288
4385
$as_echo_n "checking for suffix of object files... " >&6; }
4289
4386
if test "${ac_cv_objext+set}" = set; then :
5879
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is already defined" >&5
5880
$as_echo_n "checking if _THREAD_SAFE is already defined... " >&6; }
5881
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5882
/* end confdefs.h. */
5892
force compilation error
5900
if ac_fn_c_try_compile "$LINENO"; then :
5902
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5903
$as_echo "yes" >&6; }
5904
tmp_thread_safe_initially_defined="yes"
5908
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5909
$as_echo "no" >&6; }
5910
tmp_thread_safe_initially_defined="no"
5913
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5915
if test "$tmp_thread_safe_initially_defined" = "no"; then
5916
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is actually needed" >&5
5917
$as_echo_n "checking if _THREAD_SAFE is actually needed... " >&6; }
5920
aix[123].* | aix4.[012].*)
5921
tmp_need_thread_safe="no"
5924
tmp_need_thread_safe="yes"
5927
tmp_need_thread_safe="no"
5931
if test "$tmp_need_thread_safe" = "yes"; then
5932
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5933
$as_echo "yes" >&6; }
5935
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5936
$as_echo "no" >&6; }
5940
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is onwards defined" >&5
5941
$as_echo_n "checking if _THREAD_SAFE is onwards defined... " >&6; }
5942
if test "$tmp_thread_safe_initially_defined" = "yes" ||
5943
test "$tmp_need_thread_safe" = "yes"; then
5946
$as_echo "#define NEED_THREAD_SAFE 1" >>confdefs.h
5948
cat >>confdefs.h <<_EOF
5949
#ifndef _THREAD_SAFE
5950
# define _THREAD_SAFE
5954
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5955
$as_echo "yes" >&6; }
5957
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5958
$as_echo "no" >&6; }
5777
5964
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is already defined" >&5
5778
5965
$as_echo_n "checking if _REENTRANT is already defined... " >&6; }
5779
5966
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13806
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is GNU C" >&5
14024
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is clang" >&5
14025
$as_echo_n "checking if compiler is clang... " >&6; }
14027
if test -z "$SED"; then
14028
as_fn_error "SED not set. Cannot continue without SED being set." "$LINENO" 5
14030
if test -z "$GREP"; then
14031
as_fn_error "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
14035
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14036
/* end confdefs.h. */
14040
CURL_DEF_TOKEN __clang__
14045
if ac_fn_c_try_cpp "$LINENO"; then :
14047
tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
14048
"$GREP" CURL_DEF_TOKEN 2>/dev/null | \
14049
"$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
14050
"$SED" 's/["][ ]*["]//g' 2>/dev/null`
14051
if test -z "$tmp_exp" || test "$tmp_exp" = "__clang__"; then
14056
rm -f conftest.err conftest.$ac_ext
14057
if test -z "$tmp_exp"; then
14058
curl_cv_have_def___clang__=no
14061
curl_cv_have_def___clang__=yes
14062
curl_cv_def___clang__=$tmp_exp
14066
if test "$curl_cv_have_def___clang__" = "yes"; then
14067
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14068
$as_echo "yes" >&6; }
14069
compiler_id="CLANG"
14070
clangver=`$CC -dumpversion`
14071
clangvhi=`echo $clangver | cut -d . -f1`
14072
clangvlo=`echo $clangver | cut -d . -f2`
14073
compiler_num=`(expr $clangvhi "*" 100 + $clangvlo) 2>/dev/null`
14074
flags_dbg_all="-g -g0 -g1 -g2 -g3"
14075
flags_dbg_all="$flags_dbg_all -ggdb"
14076
flags_dbg_all="$flags_dbg_all -gstabs"
14077
flags_dbg_all="$flags_dbg_all -gstabs+"
14078
flags_dbg_all="$flags_dbg_all -gcoff"
14079
flags_dbg_all="$flags_dbg_all -gxcoff"
14080
flags_dbg_all="$flags_dbg_all -gdwarf-2"
14081
flags_dbg_all="$flags_dbg_all -gvms"
14083
flags_dbg_off="-g0"
14084
flags_opt_all="-O -O0 -O1 -O2 -Os -O3 -O4"
14085
flags_opt_yes="-Os"
14086
flags_opt_off="-O0"
14088
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14089
$as_echo "no" >&6; }
14093
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is GNU C" >&5
13807
14094
$as_echo_n "checking if compiler is GNU C... " >&6; }
13809
14096
if test -z "$SED"; then
15125
15418
case "$compiler_id" in
15422
if test "$want_warnings" = "yes"; then
15423
tmp_CFLAGS="$tmp_CFLAGS -pedantic"
15424
tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
15425
tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
15426
tmp_CFLAGS="$tmp_CFLAGS -Wshadow"
15427
tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs"
15428
tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations"
15429
tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes"
15430
tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
15431
tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal"
15432
tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare"
15433
tmp_CFLAGS="$tmp_CFLAGS -Wundef"
15434
tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
15435
tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes"
15436
tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
15437
tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
15438
tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
15439
tmp_CFLAGS="$tmp_CFLAGS -Wshorten-64-to-32"
15441
if test "$compiler_num" -ge "101"; then
15442
tmp_CFLAGS="$tmp_CFLAGS -Wunused"
15129
15449
if test "$want_warnings" = "yes"; then
16263
16552
CURL_DISABLE_LDAPS=1
16266
*) if test x$CURL_DISABLE_LDAP = x1 ; then
16267
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: LDAP support needs to be enabled in order to enable LDAPS support!" >&5
16268
$as_echo "LDAP support needs to be enabled in order to enable LDAPS support!" >&6; }
16270
$as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
16272
CURL_DISABLE_LDAPS=1
16275
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16276
$as_echo "yes" >&6; }
16278
$as_echo "#define HAVE_LDAP_SSL 1" >>confdefs.h
16280
curl_ldaps_msg="enabled"
16285
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16286
$as_echo "no" >&6; }
16288
$as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
16290
CURL_DISABLE_LDAPS=1
16555
*) if test "x$CURL_DISABLE_LDAP" = "x1" ; then
16556
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: LDAP needs to be enabled to support LDAPS" >&5
16557
$as_echo "LDAP needs to be enabled to support LDAPS" >&6; }
16559
$as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
16561
CURL_DISABLE_LDAPS=1
16564
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16565
$as_echo "yes" >&6; }
16567
$as_echo "#define HAVE_LDAP_SSL 1" >>confdefs.h
16571
curl_ldaps_msg="enabled"
16577
if test "x$CURL_DISABLE_LDAP" = "x1" ; then
16578
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16579
$as_echo "no" >&6; }
16581
$as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
16583
CURL_DISABLE_LDAPS=1
16586
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16587
$as_echo "yes" >&6; }
16589
$as_echo "#define HAVE_LDAP_SSL 1" >>confdefs.h
16593
curl_ldaps_msg="enabled"
16599
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support rtsp" >&5
16600
$as_echo_n "checking whether to support rtsp... " >&6; }
16601
# Check whether --enable-rtsp was given.
16602
if test "${enable_rtsp+set}" = set; then :
16603
enableval=$enable_rtsp; case "$enableval" in
16605
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16606
$as_echo "no" >&6; }
16608
$as_echo "#define CURL_DISABLE_RTSP 1" >>confdefs.h
16610
CURL_DISABLE_RTSP=1
16613
*) if test x$CURL_DISABLE_HTTP = x1 ; then
16614
as_fn_error "HTTP support needs to be enabled in order to enable RTSP support!" "$LINENO" 5
16616
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16617
$as_echo "yes" >&6; }
16618
curl_rtsp_msg="enabled"
16623
if test "x$CURL_DISABLE_HTTP" != "x1"; then
16624
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16625
$as_echo "yes" >&6; }
16626
curl_rtsp_msg="enabled"
16628
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16629
$as_echo "no" >&6; }
16733
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support pop3" >&5
16734
$as_echo_n "checking whether to support pop3... " >&6; }
16735
# Check whether --enable-pop3 was given.
16736
if test "${enable_pop3+set}" = set; then :
16737
enableval=$enable_pop3; case "$enableval" in
16739
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16740
$as_echo "no" >&6; }
16742
$as_echo "#define CURL_DISABLE_POP3 1" >>confdefs.h
16744
CURL_DISABLE_POP3=1
16747
*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16748
$as_echo "yes" >&6; }
16752
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16753
$as_echo "yes" >&6; }
16759
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support imap" >&5
16760
$as_echo_n "checking whether to support imap... " >&6; }
16761
# Check whether --enable-imap was given.
16762
if test "${enable_imap+set}" = set; then :
16763
enableval=$enable_imap; case "$enableval" in
16765
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16766
$as_echo "no" >&6; }
16768
$as_echo "#define CURL_DISABLE_IMAP 1" >>confdefs.h
16770
CURL_DISABLE_IMAP=1
16773
*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16774
$as_echo "yes" >&6; }
16778
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16779
$as_echo "yes" >&6; }
16785
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support smtp" >&5
16786
$as_echo_n "checking whether to support smtp... " >&6; }
16787
# Check whether --enable-smtp was given.
16788
if test "${enable_smtp+set}" = set; then :
16789
enableval=$enable_smtp; case "$enableval" in
16791
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16792
$as_echo "no" >&6; }
16794
$as_echo "#define CURL_DISABLE_SMTP 1" >>confdefs.h
16796
CURL_DISABLE_SMTP=1
16799
*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16800
$as_echo "yes" >&6; }
16804
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16805
$as_echo "yes" >&6; }
16395
16812
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to provide built-in manual" >&5
16396
16813
$as_echo_n "checking whether to provide built-in manual... " >&6; }
18828
19283
if test "$PKGCONFIG" != "no" ; then
18829
SSL_LIBS=`$PKGCONFIG --libs-only-l openssl 2>/dev/null`
18830
SSL_LDFLAGS=`$PKGCONFIG --libs-only-L openssl 2>/dev/null`
18831
SSL_CPPFLAGS=`$PKGCONFIG --cflags-only-I openssl 2>/dev/null`
19285
if test -n "$OPENSSL_PCDIR"; then
19286
PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
19287
export PKG_CONFIG_LIBDIR
19289
$PKGCONFIG --libs-only-l openssl 2>/dev/null`
19292
if test -n "$OPENSSL_PCDIR"; then
19293
PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
19294
export PKG_CONFIG_LIBDIR
19296
$PKGCONFIG --libs-only-L openssl 2>/dev/null`
19299
if test -n "$OPENSSL_PCDIR"; then
19300
PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
19301
export PKG_CONFIG_LIBDIR
19303
$PKGCONFIG --cflags-only-I openssl 2>/dev/null`
19305
{ $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&5
19306
$as_echo "$as_me: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&6;}
19307
{ $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&5
19308
$as_echo "$as_me: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&6;}
19309
{ $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&5
19310
$as_echo "$as_me: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&6;}
18833
19312
LIB_OPENSSL=`echo $SSL_LDFLAGS | sed -e 's/-L//g'`
18835
LIBS="$LIBS $SSL_LIBS"
18836
CPPFLAGS="$CPPFLAGS $SSL_CPPFLAGS"
18837
LDFLAGS="$LDFLAGS $SSL_LDFLAGS"
19314
LIBS="$LIBS $SSL_LIBS"
19318
CPPFLAGS="$CPPFLAGS $SSL_CPPFLAGS"
19319
LDFLAGS="$LDFLAGS $SSL_LDFLAGS"
18841
19321
case $host in
18842
19322
*-*-msys* | *-*-mingw*)
18843
19323
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdi32" >&5
20202
_cppflags=$CPPFLAGS
20205
# Check whether --with-polarssl was given.
20206
if test "${with_polarssl+set}" = set; then :
20207
withval=$with_polarssl; OPT_POLARSSL=$withval
20211
if test "$OPENSSL_ENABLED" != "1"; then
20213
if test X"$OPT_POLARSSL" != Xno; then
20215
if test "$OPT_POLARSSL" = "yes"; then
20219
if test -z "$OPT_POLARSSL" ; then
20221
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for havege_init in -lpolarssl" >&5
20222
$as_echo_n "checking for havege_init in -lpolarssl... " >&6; }
20223
if test "${ac_cv_lib_polarssl_havege_init+set}" = set; then :
20224
$as_echo_n "(cached) " >&6
20226
ac_check_lib_save_LIBS=$LIBS
20227
LIBS="-lpolarssl $LIBS"
20228
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20229
/* end confdefs.h. */
20235
char havege_init ();
20238
return havege_init ();
20243
if ac_fn_c_try_link "$LINENO"; then :
20244
ac_cv_lib_polarssl_havege_init=yes
20246
ac_cv_lib_polarssl_havege_init=no
20248
rm -f core conftest.err conftest.$ac_objext \
20249
conftest$ac_exeext conftest.$ac_ext
20250
LIBS=$ac_check_lib_save_LIBS
20252
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_polarssl_havege_init" >&5
20253
$as_echo "$ac_cv_lib_polarssl_havege_init" >&6; }
20254
if test "x$ac_cv_lib_polarssl_havege_init" = x""yes; then :
20257
$as_echo "#define USE_POLARSSL 1" >>confdefs.h
20263
curl_ssl_msg="enabled (PolarSSL)"
20269
if test "x$USE_POLARSSL" != "xyes"; then
20270
addld=-L$OPT_POLARSSL/lib$libsuff
20271
addcflags=-I$OPT_POLARSSL/include
20272
polarssllib=$OPT_POLARSSL/lib$libsuff
20274
LDFLAGS="$LDFLAGS $addld"
20275
if test "$addcflags" != "-I/usr/include"; then
20276
CPPFLAGS="$CPPFLAGS $addcflags"
20279
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl_init in -lpolarssl" >&5
20280
$as_echo_n "checking for ssl_init in -lpolarssl... " >&6; }
20281
if test "${ac_cv_lib_polarssl_ssl_init+set}" = set; then :
20282
$as_echo_n "(cached) " >&6
20284
ac_check_lib_save_LIBS=$LIBS
20285
LIBS="-lpolarssl $LIBS"
20286
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20287
/* end confdefs.h. */
20296
return ssl_init ();
20301
if ac_fn_c_try_link "$LINENO"; then :
20302
ac_cv_lib_polarssl_ssl_init=yes
20304
ac_cv_lib_polarssl_ssl_init=no
20306
rm -f core conftest.err conftest.$ac_objext \
20307
conftest$ac_exeext conftest.$ac_ext
20308
LIBS=$ac_check_lib_save_LIBS
20310
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_polarssl_ssl_init" >&5
20311
$as_echo "$ac_cv_lib_polarssl_ssl_init" >&6; }
20312
if test "x$ac_cv_lib_polarssl_ssl_init" = x""yes; then :
20315
$as_echo "#define USE_POLARSSL 1" >>confdefs.h
20321
curl_ssl_msg="enabled (PolarSSL)"
20325
CPPFLAGS=$_cppflags
20332
if test "x$USE_POLARSSL" = "xyes"; then
20333
{ $as_echo "$as_me:${as_lineno-$LINENO}: detected PolarSSL" >&5
20334
$as_echo "$as_me: detected PolarSSL" >&6;}
20336
CURL_LIBS="$CURL_LIBS -lpolarssl"
20337
LIBS="$LIBS -lpolarssl"
20339
if test -n "$polarssllib"; then
20341
LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$polarssllib"
20342
export LD_LIBRARY_PATH
20343
{ $as_echo "$as_me:${as_lineno-$LINENO}: Added $polarssllib to LD_LIBRARY_PATH" >&5
20344
$as_echo "$as_me: Added $polarssllib to LD_LIBRARY_PATH" >&6;}
19977
if test "x$OPENSSL_ENABLED$GNUTLS_ENABLED$NSS_ENABLED" = "x"; then
20628
if test "x$OPENSSL_ENABLED$GNUTLS_ENABLED$NSS_ENABLED$POLARSSL_ENABLED" = "x"; then
19978
20629
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more." >&5
19979
20630
$as_echo "$as_me: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more." >&2;}
19980
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Use --with-ssl, --with-gnutls or --with-nss to address this." >&5
19981
$as_echo "$as_me: WARNING: Use --with-ssl, --with-gnutls or --with-nss to address this." >&2;}
20631
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Use --with-ssl, --with-gnutls, --with-polarssl or --with-nss to address this." >&5
20632
$as_echo "$as_me: WARNING: Use --with-ssl, --with-gnutls, --with-polarssl or --with-nss to address this." >&2;}
19983
20634
# SSL is enabled, genericly
21001
# Check whether --with-librtmp was given.
21002
if test "${with_librtmp+set}" = set; then :
21003
withval=$with_librtmp; OPT_LIBRTMP=$withval
21007
if test X"$OPT_LIBRTMP" != Xno; then
21008
CLEANLDFLAGS="$LDFLAGS"
21009
CLEANCPPFLAGS="$CPPFLAGS"
21012
case "$OPT_LIBRTMP" in
21018
if test x$cross_compiling = xyes; then
21019
# Extract the first word of "${host}-pkg-config", so it can be a program name with args.
21020
set dummy ${host}-pkg-config; ac_word=$2
21021
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21022
$as_echo_n "checking for $ac_word... " >&6; }
21023
if test "${ac_cv_path_PKGCONFIG+set}" = set; then :
21024
$as_echo_n "(cached) " >&6
21028
ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
21031
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21032
as_dummy="$PATH:/usr/bin:/usr/local/bin"
21033
for as_dir in $as_dummy
21036
test -z "$as_dir" && as_dir=.
21037
for ac_exec_ext in '' $ac_executable_extensions; do
21038
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21039
ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
21040
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21047
test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="no"
21051
PKGCONFIG=$ac_cv_path_PKGCONFIG
21052
if test -n "$PKGCONFIG"; then
21053
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
21054
$as_echo "$PKGCONFIG" >&6; }
21056
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21057
$as_echo "no" >&6; }
21063
if test x$PKGCONFIG = xno; then
21064
# Extract the first word of "pkg-config", so it can be a program name with args.
21065
set dummy pkg-config; ac_word=$2
21066
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21067
$as_echo_n "checking for $ac_word... " >&6; }
21068
if test "${ac_cv_path_PKGCONFIG+set}" = set; then :
21069
$as_echo_n "(cached) " >&6
21073
ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
21076
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21077
as_dummy="$PATH:/usr/bin:/usr/local/bin"
21078
for as_dir in $as_dummy
21081
test -z "$as_dir" && as_dir=.
21082
for ac_exec_ext in '' $ac_executable_extensions; do
21083
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21084
ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
21085
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21092
test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="no"
21096
PKGCONFIG=$ac_cv_path_PKGCONFIG
21097
if test -n "$PKGCONFIG"; then
21098
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
21099
$as_echo "$PKGCONFIG" >&6; }
21101
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21102
$as_echo "no" >&6; }
21108
if test x$PKGCONFIG != xno; then
21109
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for librtmp options with pkg-config" >&5
21110
$as_echo_n "checking for librtmp options with pkg-config... " >&6; }
21112
if test -n ""; then
21113
PKG_CONFIG_LIBDIR=""
21114
export PKG_CONFIG_LIBDIR
21116
$PKGCONFIG --exists librtmp >/dev/null 2>&1 && echo 1`
21118
if test -z "$itexists"; then
21120
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21121
$as_echo "no" >&6; }
21123
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
21124
$as_echo "found" >&6; }
21129
if test "$PKGCONFIG" != "no" ; then
21130
LIB_RTMP=`$PKGCONFIG --libs-only-l librtmp`
21131
LD_RTMP=`$PKGCONFIG --libs-only-L librtmp`
21132
CPP_RTMP=`$PKGCONFIG --cflags-only-I librtmp`
21133
version=`$PKGCONFIG --modversion librtmp`
21134
DIR_RTMP=`echo $LD_RTMP | $SED -e 's/-L//'`
21141
PREFIX_RTMP=$OPT_LIBRTMP
21145
if test -n "$PREFIX_RTMP"; then
21146
LD_RTMP=-L${PREFIX_RTMP}/lib$libsuff
21147
CPP_RTMP=-I${PREFIX_RTMP}/include
21148
DIR_RTMP=${PREFIX_RTMP}/lib$libsuff
21151
LDFLAGS="$LDFLAGS $LD_RTMP"
21152
CPPFLAGS="$CPPFLAGS $CPP_RTMP"
21153
LIBS="$LIBS $LIB_RTMP"
21155
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RTMP_Init in -lrtmp" >&5
21156
$as_echo_n "checking for RTMP_Init in -lrtmp... " >&6; }
21157
if test "${ac_cv_lib_rtmp_RTMP_Init+set}" = set; then :
21158
$as_echo_n "(cached) " >&6
21160
ac_check_lib_save_LIBS=$LIBS
21161
LIBS="-lrtmp $LIBS"
21162
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21163
/* end confdefs.h. */
21172
return RTMP_Init ();
21177
if ac_fn_c_try_link "$LINENO"; then :
21178
ac_cv_lib_rtmp_RTMP_Init=yes
21180
ac_cv_lib_rtmp_RTMP_Init=no
21182
rm -f core conftest.err conftest.$ac_objext \
21183
conftest$ac_exeext conftest.$ac_ext
21184
LIBS=$ac_check_lib_save_LIBS
21186
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rtmp_RTMP_Init" >&5
21187
$as_echo "$ac_cv_lib_rtmp_RTMP_Init" >&6; }
21188
if test "x$ac_cv_lib_rtmp_RTMP_Init" = x""yes; then :
21189
cat >>confdefs.h <<_ACEOF
21190
#define HAVE_LIBRTMP 1
21193
LIBS="-lrtmp $LIBS"
21198
for ac_header in librtmp/rtmp.h
21200
ac_fn_c_check_header_mongrel "$LINENO" "librtmp/rtmp.h" "ac_cv_header_librtmp_rtmp_h" "$ac_includes_default"
21201
if test "x$ac_cv_header_librtmp_rtmp_h" = x""yes; then :
21202
cat >>confdefs.h <<_ACEOF
21203
#define HAVE_LIBRTMP_RTMP_H 1
21205
curl_rtmp_msg="enabled (librtmp)"
21208
$as_echo "#define USE_LIBRTMP 1" >>confdefs.h
21218
if test X"$OPT_LIBRTMP" != Xoff &&
21219
test "$LIBRTMP_ENABLED" != "1"; then
21220
as_fn_error "librtmp libs and/or directories were not found where specified!" "$LINENO" 5
21223
if test "$LIBRTMP_ENABLED" != "1"; then
21224
LDFLAGS=$CLEANLDFLAGS
21225
CPPFLAGS=$CLEANCPPFLAGS
20342
21231
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with libidn" >&5
20343
21232
$as_echo_n "checking whether to build with libidn... " >&6; }
20502
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking AIX 4.3 or later" >&5
20503
$as_echo_n "checking AIX 4.3 or later... " >&6; }
20504
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20505
/* end confdefs.h. */
20507
#if defined(_AIX) && defined(_AIX43)
20508
printf("just fine");
20510
#error "this is not AIX 4.3 or later"
20514
if ac_fn_c_try_cpp "$LINENO"; then :
20515
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20516
$as_echo "yes" >&6; }
20520
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20521
$as_echo "no" >&6; }
20524
rm -f conftest.err conftest.$ac_ext
20526
# Check whether --enable-thread was given.
20527
if test "${enable_thread+set}" = set; then :
20528
enableval=$enable_thread; case "$enableval" in
20531
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libcurl will not get built using thread-safe functions" >&5
20532
$as_echo "$as_me: WARNING: libcurl will not get built using thread-safe functions" >&2;}
20542
if test X"$OPT_THREAD" = Xoff
20545
$as_echo "#define DISABLED_THREADSAFE 1" >>confdefs.h
20553
checkfor_gmtime_r="yes"
20558
if test "x$RECENTAIX" = "xyes"; then
20561
$as_echo "#define _THREAD_SAFE 1" >>confdefs.h
20566
checkfor_gmtime_r="yes"
21332
22154
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21333
22155
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21334
22156
# This bug is HP SR number 8606223364.
22157
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
22158
$as_echo_n "checking size of long... " >&6; }
22159
if test "${ac_cv_sizeof_long+set}" = set; then :
22160
$as_echo_n "(cached) " >&6
22162
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
22165
if test "$ac_cv_type_long" = yes; then
22166
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22167
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22168
{ as_fn_set_status 77
22169
as_fn_error "cannot compute sizeof (long)
22170
See \`config.log' for more details." "$LINENO" 5; }; }
22172
ac_cv_sizeof_long=0
22177
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
22178
$as_echo "$ac_cv_sizeof_long" >&6; }
22182
cat >>confdefs.h <<_ACEOF
22183
#define SIZEOF_LONG $ac_cv_sizeof_long
22187
# The cast to long int works around a bug in the HP C Compiler
22188
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22189
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22190
# This bug is HP SR number 8606223364.
21335
22191
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
21336
22192
$as_echo_n "checking size of int... " >&6; }
21337
22193
if test "${ac_cv_sizeof_int+set}" = set; then :
21366
22222
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21367
22223
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21368
22224
# This bug is HP SR number 8606223364.
21369
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
21370
$as_echo_n "checking size of long... " >&6; }
21371
if test "${ac_cv_sizeof_long+set}" = set; then :
22225
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
22226
$as_echo_n "checking size of short... " >&6; }
22227
if test "${ac_cv_sizeof_short+set}" = set; then :
21372
22228
$as_echo_n "(cached) " >&6
21374
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
22230
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
21377
if test "$ac_cv_type_long" = yes; then
22233
if test "$ac_cv_type_short" = yes; then
21378
22234
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21379
22235
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21380
22236
{ as_fn_set_status 77
21381
as_fn_error "cannot compute sizeof (long)
22237
as_fn_error "cannot compute sizeof (short)
21382
22238
See \`config.log' for more details." "$LINENO" 5; }; }
21384
ac_cv_sizeof_long=0
22240
ac_cv_sizeof_short=0
21389
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
21390
$as_echo "$ac_cv_sizeof_long" >&6; }
22245
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
22246
$as_echo "$ac_cv_sizeof_short" >&6; }
21394
22250
cat >>confdefs.h <<_ACEOF
21395
#define SIZEOF_LONG $ac_cv_sizeof_long
22251
#define SIZEOF_SHORT $ac_cv_sizeof_short
25230
26087
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25231
26088
$as_echo "no" >&6; }
25232
26089
ac_cv_func_getaddrinfo="no"
26090
ac_cv_func_getaddrinfo_threadsafe="no"
26093
if test "$ac_cv_func_getaddrinfo" = "yes"; then
26094
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is threadsafe" >&5
26095
$as_echo_n "checking if getaddrinfo is threadsafe... " >&6; }
26097
aix[1234].* | aix5.[01].*)
26098
tst_tsafe_getaddrinfo="no"
26101
tst_tsafe_getaddrinfo="yes"
26104
tst_tsafe_getaddrinfo="no"
26107
tst_tsafe_getaddrinfo="yes"
26109
freebsd[1234].* | freebsd5.[1234]*)
26110
tst_tsafe_getaddrinfo="no"
26113
tst_tsafe_getaddrinfo="yes"
26115
hpux[123456789].* | hpux10.* | hpux11.0* | hpux11.10*)
26116
tst_tsafe_getaddrinfo="no"
26119
tst_tsafe_getaddrinfo="yes"
26122
tst_tsafe_getaddrinfo="no"
26125
tst_tsafe_getaddrinfo="yes"
26128
tst_tsafe_getaddrinfo="no"
26131
tst_tsafe_getaddrinfo="yes"
26134
if test "$tst_tsafe_getaddrinfo" = "unknown"; then
26137
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26138
/* end confdefs.h. */
26141
$curl_includes_ws2tcpip
26142
$curl_includes_sys_socket
26143
$curl_includes_netdb
26150
force compilation error
26156
if ac_fn_c_try_compile "$LINENO"; then :
26158
tst_symbol_defined="yes"
26162
tst_symbol_defined="no"
26165
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26166
if test "$tst_symbol_defined" = "yes"; then
26167
curl_cv_have_def_h_errno=yes
26170
curl_cv_have_def_h_errno=no
26174
if test "$curl_cv_have_def_h_errno" = "no"; then
26175
tst_tsafe_getaddrinfo="no"
26178
if test "$tst_tsafe_getaddrinfo" = "unknown"; then
26179
tst_tsafe_getaddrinfo="yes"
26181
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_tsafe_getaddrinfo" >&5
26182
$as_echo "$tst_tsafe_getaddrinfo" >&6; }
26183
if test "$tst_tsafe_getaddrinfo" = "yes"; then
26185
cat >>confdefs.h <<_ACEOF
26186
#define HAVE_GETADDRINFO_THREADSAFE 1
26189
ac_cv_func_getaddrinfo_threadsafe="yes"
26191
ac_cv_func_getaddrinfo_threadsafe="no"
33157
aresembedded="unknown"
33158
configure_rundir=`pwd`
33159
embedded_ares_builddir="$configure_rundir/ares"
33160
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable c-ares" >&5
33161
$as_echo_n "checking whether to enable c-ares... " >&6; }
33164
# Check whether --enable-ares was given.
33165
if test "${enable_ares+set}" = set; then :
33166
enableval=$enable_ares; case "$enableval" in
33168
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33169
$as_echo "no" >&6; }
33171
*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33172
$as_echo "yes" >&6; }
33174
if test "x$IPV6_ENABLED" = "x1"; then
33175
{ $as_echo "$as_me:${as_lineno-$LINENO}: c-ares may not work properly with ipv6" >&5
33176
$as_echo "$as_me: c-ares may not work properly with ipv6" >&6;}
33180
$as_echo "#define USE_ARES 1" >>confdefs.h
33184
curl_ares_msg="enabled"
33186
LIBS="-lcares $LIBS"
33188
if test "x$enableval" = "xyes" ; then
33189
if test -d "$srcdir/ares"; then
33191
subdirs="$subdirs ares"
33193
LDFLAGS="$LDFLAGS -L$embedded_ares_builddir"
33196
CPPFLAGS="$CPPFLAGS -I$enableval/include"
33197
LDFLAGS="$LDFLAGS -L$enableval/lib"
33200
if test -z "$aresembedded"; then
33201
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that c-ares is good and recent enough" >&5
34121
if test "$want_ares" = "yes"; then
34122
clean_CPPFLAGS="$CPPFLAGS"
34123
clean_LDFLAGS="$LDFLAGS"
34125
embedded_ares="unknown"
34126
configure_runpath=`pwd`
34127
embedded_ares_builddir="$configure_runpath/ares"
34128
if test -n "$want_ares_path"; then
34129
ares_CPPFLAGS="-I$want_ares_path/include"
34130
ares_LDFLAGS="-L$want_ares_path/lib"
34131
ares_LIBS="-lcares"
34133
if test -d "$srcdir/ares"; then
34134
embedded_ares="yes"
34135
subdirs="$subdirs ares"
34138
ares_LDFLAGS="-L$embedded_ares_builddir"
34139
ares_LIBS="-lcares"
34143
ares_LIBS="-lcares"
34147
CPPFLAGS="$ares_CPPFLAGS $clean_CPPFLAGS"
34148
LDFLAGS="$ares_LDFLAGS $clean_LDFLAGS"
34149
LIBS="$ares_LIBS $clean_LIBS"
34151
if test "$embedded_ares" != "yes"; then
34152
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that c-ares is good and recent enough" >&5
33202
34153
$as_echo_n "checking that c-ares is good and recent enough... " >&6; }
33203
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34154
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33204
34155
/* end confdefs.h. */
33207
34158
#include <ares.h>
33208
/* set of dummy functions in case c-ares was built with debug */
33209
void curl_dofree() { }
33210
void curl_sclose() { }
33211
void curl_domalloc() { }
33212
void curl_docalloc() { }
33213
void curl_socket() { }
34159
/* set of dummy functions in case c-ares was built with debug */
34160
void curl_dofree() { }
34161
void curl_sclose() { }
34162
void curl_domalloc() { }
34163
void curl_docalloc() { }
34164
void curl_socket() { }
33215
34166
int main (void)
33218
ares_channel channel;
33219
ares_cancel(channel); /* added in 1.2.0 */
33220
ares_process_fd(channel, 0, 0); /* added in 1.4.0 */
34169
ares_channel channel;
34170
ares_cancel(channel); /* added in 1.2.0 */
34171
ares_process_fd(channel, 0, 0); /* added in 1.4.0 */
34220
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the threaded resolver" >&5
34221
$as_echo_n "checking whether to enable the threaded resolver... " >&6; }
34222
OPT_THRES="default"
34223
# Check whether --enable-threaded_resolver was given.
34224
if test "${enable_threaded_resolver+set}" = set; then :
34225
enableval=$enable_threaded_resolver; OPT_THRES=$enableval
34228
case "$OPT_THRES" in
34236
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_thres" >&5
34237
$as_echo "$want_thres" >&6; }
34240
if test "x$want_thres" = xyes && test "x$want_ares" = xyes; then
34241
as_fn_error "Options --enable-threaded-resolver and --enable-ares are mutually exclusive" "$LINENO" 5
34244
if test "$want_thres" = "yes"; then
34245
ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
34246
if test "x$ac_cv_header_pthread_h" = x""yes; then :
34248
$as_echo "#define HAVE_PTHREAD_H 1" >>confdefs.h
34250
save_CFLAGS="$CFLAGS"
34251
CFLAGS="$CFLAGS -pthread"
34252
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
34253
$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
34254
if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
34255
$as_echo_n "(cached) " >&6
34257
ac_check_lib_save_LIBS=$LIBS
34258
LIBS="-lpthread $LIBS"
34259
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34260
/* end confdefs.h. */
34266
char pthread_create ();
34269
return pthread_create ();
34274
if ac_fn_c_try_link "$LINENO"; then :
34275
ac_cv_lib_pthread_pthread_create=yes
34277
ac_cv_lib_pthread_pthread_create=no
34279
rm -f core conftest.err conftest.$ac_objext \
34280
conftest$ac_exeext conftest.$ac_ext
34281
LIBS=$ac_check_lib_save_LIBS
34283
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
34284
$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
34285
if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
34286
{ $as_echo "$as_me:${as_lineno-$LINENO}: using POSIX threaded DNS lookup" >&5
34287
$as_echo "$as_me: using POSIX threaded DNS lookup" >&6;}
34289
$as_echo "#define USE_THREADS_POSIX 1" >>confdefs.h
34291
USE_THREADS_POSIX=1
34292
curl_res_msg="threaded"
34295
CFLAGS="$save_CFLAGS"
33262
34304
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable verbose strings" >&5
33263
34305
$as_echo_n "checking whether to enable verbose strings... " >&6; }
33264
34306
# Check whether --enable-verbose was given.
33534
34580
if test "x$CURL_DISABLE_TFTP" != "x1"; then
33535
34581
SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TFTP"
34583
if test "x$CURL_DISABLE_POP3" != "x1"; then
34584
SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3"
34585
if test "x$SSL_ENABLED" = "x1"; then
34586
SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3S"
34589
if test "x$CURL_DISABLE_IMAP" != "x1"; then
34590
SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAP"
34591
if test "x$SSL_ENABLED" = "x1"; then
34592
SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAPS"
34595
if test "x$CURL_DISABLE_SMTP" != "x1"; then
34596
SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTP"
34597
if test "x$SSL_ENABLED" = "x1"; then
34598
SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTPS"
33537
34601
if test "x$USE_LIBSSH2" = "x1"; then
33538
34602
SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SCP"
33539
34603
SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP"
34605
if test "x$CURL_DISABLE_RTSP" != "x1"; then
34606
SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTSP"
34608
if test "x$USE_LIBRTMP" = "x1"; then
34609
SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTMP"
34612
SUPPORT_PROTOCOLS=`echo $SUPPORT_PROTOCOLS | tr ' ' '\012' | sort | tr '\012' ' '`