4306
4725
EGREP="$ac_cv_path_EGREP"
4310
{ echo "$as_me:$LINENO: checking for AIX" >&5
4311
echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4312
cat >conftest.$ac_ext <<_ACEOF
4315
cat confdefs.h >>conftest.$ac_ext
4316
cat >>conftest.$ac_ext <<_ACEOF
4317
/* end confdefs.h. */
4728
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4729
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4730
if test "${ac_cv_header_stdc+set}" = set; then
4731
echo $ECHO_N "(cached) $ECHO_C" >&6
4733
cat >conftest.$ac_ext <<_ACEOF
4736
cat confdefs.h >>conftest.$ac_ext
4737
cat >>conftest.$ac_ext <<_ACEOF
4738
/* end confdefs.h. */
4751
rm -f conftest.$ac_objext
4752
if { (ac_try="$ac_compile"
4754
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4755
*) ac_try_echo=$ac_try;;
4757
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4758
(eval "$ac_compile") 2>conftest.er1
4760
grep -v '^ *+' conftest.er1 >conftest.err
4762
cat conftest.err >&5
4763
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4764
(exit $ac_status); } && {
4765
test -z "$ac_c_werror_flag" ||
4766
test ! -s conftest.err
4767
} && test -s conftest.$ac_objext; then
4768
ac_cv_header_stdc=yes
4770
echo "$as_me: failed program was:" >&5
4771
sed 's/^/| /' conftest.$ac_ext >&5
4773
ac_cv_header_stdc=no
4776
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4778
if test $ac_cv_header_stdc = yes; then
4779
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4780
cat >conftest.$ac_ext <<_ACEOF
4783
cat confdefs.h >>conftest.$ac_ext
4784
cat >>conftest.$ac_ext <<_ACEOF
4785
/* end confdefs.h. */
4789
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4790
$EGREP "memchr" >/dev/null 2>&1; then
4793
ac_cv_header_stdc=no
4799
if test $ac_cv_header_stdc = yes; then
4800
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4801
cat >conftest.$ac_ext <<_ACEOF
4804
cat confdefs.h >>conftest.$ac_ext
4805
cat >>conftest.$ac_ext <<_ACEOF
4806
/* end confdefs.h. */
4810
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4811
$EGREP "free" >/dev/null 2>&1; then
4814
ac_cv_header_stdc=no
4820
if test $ac_cv_header_stdc = yes; then
4821
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4822
if test "$cross_compiling" = yes; then
4825
cat >conftest.$ac_ext <<_ACEOF
4828
cat confdefs.h >>conftest.$ac_ext
4829
cat >>conftest.$ac_ext <<_ACEOF
4830
/* end confdefs.h. */
4833
#if ((' ' & 0x0FF) == 0x020)
4834
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4835
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4837
# define ISLOWER(c) \
4838
(('a' <= (c) && (c) <= 'i') \
4839
|| ('j' <= (c) && (c) <= 'r') \
4840
|| ('s' <= (c) && (c) <= 'z'))
4841
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4844
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4849
for (i = 0; i < 256; i++)
4850
if (XOR (islower (i), ISLOWER (i))
4851
|| toupper (i) != TOUPPER (i))
4856
rm -f conftest$ac_exeext
4857
if { (ac_try="$ac_link"
4859
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4860
*) ac_try_echo=$ac_try;;
4862
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4863
(eval "$ac_link") 2>&5
4865
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4866
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4867
{ (case "(($ac_try" in
4868
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4869
*) ac_try_echo=$ac_try;;
4871
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4872
(eval "$ac_try") 2>&5
4874
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4875
(exit $ac_status); }; }; then
4878
echo "$as_me: program exited with status $ac_status" >&5
4879
echo "$as_me: failed program was:" >&5
4880
sed 's/^/| /' conftest.$ac_ext >&5
4883
ac_cv_header_stdc=no
4885
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4891
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4892
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4893
if test $ac_cv_header_stdc = yes; then
4895
cat >>confdefs.h <<\_ACEOF
4896
#define STDC_HEADERS 1
4901
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4911
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4912
inttypes.h stdint.h unistd.h
4914
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4915
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4916
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4917
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4918
echo $ECHO_N "(cached) $ECHO_C" >&6
4920
cat >conftest.$ac_ext <<_ACEOF
4923
cat confdefs.h >>conftest.$ac_ext
4924
cat >>conftest.$ac_ext <<_ACEOF
4925
/* end confdefs.h. */
4926
$ac_includes_default
4928
#include <$ac_header>
4930
rm -f conftest.$ac_objext
4931
if { (ac_try="$ac_compile"
4933
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4934
*) ac_try_echo=$ac_try;;
4936
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4937
(eval "$ac_compile") 2>conftest.er1
4939
grep -v '^ *+' conftest.er1 >conftest.err
4941
cat conftest.err >&5
4942
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4943
(exit $ac_status); } && {
4944
test -z "$ac_c_werror_flag" ||
4945
test ! -s conftest.err
4946
} && test -s conftest.$ac_objext; then
4947
eval "$as_ac_Header=yes"
4949
echo "$as_me: failed program was:" >&5
4950
sed 's/^/| /' conftest.$ac_ext >&5
4952
eval "$as_ac_Header=no"
4955
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4957
ac_res=`eval echo '${'$as_ac_Header'}'`
4958
{ echo "$as_me:$LINENO: result: $ac_res" >&5
4959
echo "${ECHO_T}$ac_res" >&6; }
4960
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4961
cat >>confdefs.h <<_ACEOF
4962
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4973
if test -z "$SED"; then
4974
{ { echo "$as_me:$LINENO: error: SED not set. Cannot continue without SED being set." >&5
4975
echo "$as_me: error: SED not set. Cannot continue without SED being set." >&2;}
4976
{ (exit 1); exit 1; }; }
4979
{ echo "$as_me:$LINENO: checking for long" >&5
4980
echo $ECHO_N "checking for long... $ECHO_C" >&6; }
4981
if test "${ac_cv_type_long+set}" = set; then
4982
echo $ECHO_N "(cached) $ECHO_C" >&6
4984
cat >conftest.$ac_ext <<_ACEOF
4987
cat confdefs.h >>conftest.$ac_ext
4988
cat >>conftest.$ac_ext <<_ACEOF
4989
/* end confdefs.h. */
4990
$ac_includes_default
4991
typedef long ac__type_new_;
4994
if ((ac__type_new_ *) 0)
4996
if (sizeof (ac__type_new_))
5002
rm -f conftest.$ac_objext
5003
if { (ac_try="$ac_compile"
5005
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5006
*) ac_try_echo=$ac_try;;
5008
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5009
(eval "$ac_compile") 2>conftest.er1
5011
grep -v '^ *+' conftest.er1 >conftest.err
5013
cat conftest.err >&5
5014
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015
(exit $ac_status); } && {
5016
test -z "$ac_c_werror_flag" ||
5017
test ! -s conftest.err
5018
} && test -s conftest.$ac_objext; then
5021
echo "$as_me: failed program was:" >&5
5022
sed 's/^/| /' conftest.$ac_ext >&5
5027
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5029
{ echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5030
echo "${ECHO_T}$ac_cv_type_long" >&6; }
5032
# The cast to long int works around a bug in the HP C Compiler
5033
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5034
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5035
# This bug is HP SR number 8606223364.
5036
{ echo "$as_me:$LINENO: checking size of long" >&5
5037
echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
5038
if test "${ac_cv_sizeof_long+set}" = set; then
5039
echo $ECHO_N "(cached) $ECHO_C" >&6
5041
if test "$cross_compiling" = yes; then
5042
# Depending upon the size, compute the lo and hi bounds.
5043
cat >conftest.$ac_ext <<_ACEOF
5046
cat confdefs.h >>conftest.$ac_ext
5047
cat >>conftest.$ac_ext <<_ACEOF
5048
/* end confdefs.h. */
5049
$ac_includes_default
5050
typedef long ac__type_sizeof_;
5053
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5060
rm -f conftest.$ac_objext
5061
if { (ac_try="$ac_compile"
5063
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5064
*) ac_try_echo=$ac_try;;
5066
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5067
(eval "$ac_compile") 2>conftest.er1
5069
grep -v '^ *+' conftest.er1 >conftest.err
5071
cat conftest.err >&5
5072
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5073
(exit $ac_status); } && {
5074
test -z "$ac_c_werror_flag" ||
5075
test ! -s conftest.err
5076
} && test -s conftest.$ac_objext; then
5079
cat >conftest.$ac_ext <<_ACEOF
5082
cat confdefs.h >>conftest.$ac_ext
5083
cat >>conftest.$ac_ext <<_ACEOF
5084
/* end confdefs.h. */
5085
$ac_includes_default
5086
typedef long ac__type_sizeof_;
5089
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5096
rm -f conftest.$ac_objext
5097
if { (ac_try="$ac_compile"
5099
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5100
*) ac_try_echo=$ac_try;;
5102
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5103
(eval "$ac_compile") 2>conftest.er1
5105
grep -v '^ *+' conftest.er1 >conftest.err
5107
cat conftest.err >&5
5108
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109
(exit $ac_status); } && {
5110
test -z "$ac_c_werror_flag" ||
5111
test ! -s conftest.err
5112
} && test -s conftest.$ac_objext; then
5113
ac_hi=$ac_mid; break
5115
echo "$as_me: failed program was:" >&5
5116
sed 's/^/| /' conftest.$ac_ext >&5
5118
ac_lo=`expr $ac_mid + 1`
5119
if test $ac_lo -le $ac_mid; then
5123
ac_mid=`expr 2 '*' $ac_mid + 1`
5126
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5129
echo "$as_me: failed program was:" >&5
5130
sed 's/^/| /' conftest.$ac_ext >&5
5132
cat >conftest.$ac_ext <<_ACEOF
5135
cat confdefs.h >>conftest.$ac_ext
5136
cat >>conftest.$ac_ext <<_ACEOF
5137
/* end confdefs.h. */
5138
$ac_includes_default
5139
typedef long ac__type_sizeof_;
5142
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5149
rm -f conftest.$ac_objext
5150
if { (ac_try="$ac_compile"
5152
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5153
*) ac_try_echo=$ac_try;;
5155
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5156
(eval "$ac_compile") 2>conftest.er1
5158
grep -v '^ *+' conftest.er1 >conftest.err
5160
cat conftest.err >&5
5161
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5162
(exit $ac_status); } && {
5163
test -z "$ac_c_werror_flag" ||
5164
test ! -s conftest.err
5165
} && test -s conftest.$ac_objext; then
5168
cat >conftest.$ac_ext <<_ACEOF
5171
cat confdefs.h >>conftest.$ac_ext
5172
cat >>conftest.$ac_ext <<_ACEOF
5173
/* end confdefs.h. */
5174
$ac_includes_default
5175
typedef long ac__type_sizeof_;
5178
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5185
rm -f conftest.$ac_objext
5186
if { (ac_try="$ac_compile"
5188
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5189
*) ac_try_echo=$ac_try;;
5191
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5192
(eval "$ac_compile") 2>conftest.er1
5194
grep -v '^ *+' conftest.er1 >conftest.err
5196
cat conftest.err >&5
5197
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5198
(exit $ac_status); } && {
5199
test -z "$ac_c_werror_flag" ||
5200
test ! -s conftest.err
5201
} && test -s conftest.$ac_objext; then
5202
ac_lo=$ac_mid; break
5204
echo "$as_me: failed program was:" >&5
5205
sed 's/^/| /' conftest.$ac_ext >&5
5207
ac_hi=`expr '(' $ac_mid ')' - 1`
5208
if test $ac_mid -le $ac_hi; then
5212
ac_mid=`expr 2 '*' $ac_mid`
5215
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5218
echo "$as_me: failed program was:" >&5
5219
sed 's/^/| /' conftest.$ac_ext >&5
5224
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5227
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5228
# Binary search between lo and hi bounds.
5229
while test "x$ac_lo" != "x$ac_hi"; do
5230
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5231
cat >conftest.$ac_ext <<_ACEOF
5234
cat confdefs.h >>conftest.$ac_ext
5235
cat >>conftest.$ac_ext <<_ACEOF
5236
/* end confdefs.h. */
5237
$ac_includes_default
5238
typedef long ac__type_sizeof_;
5241
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5248
rm -f conftest.$ac_objext
5249
if { (ac_try="$ac_compile"
5251
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5252
*) ac_try_echo=$ac_try;;
5254
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5255
(eval "$ac_compile") 2>conftest.er1
5257
grep -v '^ *+' conftest.er1 >conftest.err
5259
cat conftest.err >&5
5260
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5261
(exit $ac_status); } && {
5262
test -z "$ac_c_werror_flag" ||
5263
test ! -s conftest.err
5264
} && test -s conftest.$ac_objext; then
5267
echo "$as_me: failed program was:" >&5
5268
sed 's/^/| /' conftest.$ac_ext >&5
5270
ac_lo=`expr '(' $ac_mid ')' + 1`
5273
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5276
?*) ac_cv_sizeof_long=$ac_lo;;
5277
'') if test "$ac_cv_type_long" = yes; then
5278
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
5279
See \`config.log' for more details." >&5
5280
echo "$as_me: error: cannot compute sizeof (long)
5281
See \`config.log' for more details." >&2;}
5282
{ (exit 77); exit 77; }; }
5288
cat >conftest.$ac_ext <<_ACEOF
5291
cat confdefs.h >>conftest.$ac_ext
5292
cat >>conftest.$ac_ext <<_ACEOF
5293
/* end confdefs.h. */
5294
$ac_includes_default
5295
typedef long ac__type_sizeof_;
5296
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5297
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5303
FILE *f = fopen ("conftest.val", "w");
5306
if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5308
long int i = longval ();
5309
if (i != ((long int) (sizeof (ac__type_sizeof_))))
5311
fprintf (f, "%ld\n", i);
5315
unsigned long int i = ulongval ();
5316
if (i != ((long int) (sizeof (ac__type_sizeof_))))
5318
fprintf (f, "%lu\n", i);
5320
return ferror (f) || fclose (f) != 0;
5326
rm -f conftest$ac_exeext
5327
if { (ac_try="$ac_link"
5329
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5330
*) ac_try_echo=$ac_try;;
5332
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5333
(eval "$ac_link") 2>&5
5335
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5337
{ (case "(($ac_try" in
5338
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5339
*) ac_try_echo=$ac_try;;
5341
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5342
(eval "$ac_try") 2>&5
5344
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5345
(exit $ac_status); }; }; then
5346
ac_cv_sizeof_long=`cat conftest.val`
5348
echo "$as_me: program exited with status $ac_status" >&5
5349
echo "$as_me: failed program was:" >&5
5350
sed 's/^/| /' conftest.$ac_ext >&5
5353
if test "$ac_cv_type_long" = yes; then
5354
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
5355
See \`config.log' for more details." >&5
5356
echo "$as_me: error: cannot compute sizeof (long)
5357
See \`config.log' for more details." >&2;}
5358
{ (exit 77); exit 77; }; }
5363
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5367
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5368
echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
5372
cat >>confdefs.h <<_ACEOF
5373
#define SIZEOF_LONG $ac_cv_sizeof_long
5377
{ echo "$as_me:$LINENO: checking for void*" >&5
5378
echo $ECHO_N "checking for void*... $ECHO_C" >&6; }
5379
if test "${ac_cv_type_voidp+set}" = set; then
5380
echo $ECHO_N "(cached) $ECHO_C" >&6
5382
cat >conftest.$ac_ext <<_ACEOF
5385
cat confdefs.h >>conftest.$ac_ext
5386
cat >>conftest.$ac_ext <<_ACEOF
5387
/* end confdefs.h. */
5388
$ac_includes_default
5389
typedef void* ac__type_new_;
5392
if ((ac__type_new_ *) 0)
5394
if (sizeof (ac__type_new_))
5400
rm -f conftest.$ac_objext
5401
if { (ac_try="$ac_compile"
5403
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5404
*) ac_try_echo=$ac_try;;
5406
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5407
(eval "$ac_compile") 2>conftest.er1
5409
grep -v '^ *+' conftest.er1 >conftest.err
5411
cat conftest.err >&5
5412
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5413
(exit $ac_status); } && {
5414
test -z "$ac_c_werror_flag" ||
5415
test ! -s conftest.err
5416
} && test -s conftest.$ac_objext; then
5417
ac_cv_type_voidp=yes
5419
echo "$as_me: failed program was:" >&5
5420
sed 's/^/| /' conftest.$ac_ext >&5
5425
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5427
{ echo "$as_me:$LINENO: result: $ac_cv_type_voidp" >&5
5428
echo "${ECHO_T}$ac_cv_type_voidp" >&6; }
5430
# The cast to long int works around a bug in the HP C Compiler
5431
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5432
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5433
# This bug is HP SR number 8606223364.
5434
{ echo "$as_me:$LINENO: checking size of void*" >&5
5435
echo $ECHO_N "checking size of void*... $ECHO_C" >&6; }
5436
if test "${ac_cv_sizeof_voidp+set}" = set; then
5437
echo $ECHO_N "(cached) $ECHO_C" >&6
5439
if test "$cross_compiling" = yes; then
5440
# Depending upon the size, compute the lo and hi bounds.
5441
cat >conftest.$ac_ext <<_ACEOF
5444
cat confdefs.h >>conftest.$ac_ext
5445
cat >>conftest.$ac_ext <<_ACEOF
5446
/* end confdefs.h. */
5447
$ac_includes_default
5448
typedef void* ac__type_sizeof_;
5451
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5458
rm -f conftest.$ac_objext
5459
if { (ac_try="$ac_compile"
5461
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5462
*) ac_try_echo=$ac_try;;
5464
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5465
(eval "$ac_compile") 2>conftest.er1
5467
grep -v '^ *+' conftest.er1 >conftest.err
5469
cat conftest.err >&5
5470
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5471
(exit $ac_status); } && {
5472
test -z "$ac_c_werror_flag" ||
5473
test ! -s conftest.err
5474
} && test -s conftest.$ac_objext; then
5477
cat >conftest.$ac_ext <<_ACEOF
5480
cat confdefs.h >>conftest.$ac_ext
5481
cat >>conftest.$ac_ext <<_ACEOF
5482
/* end confdefs.h. */
5483
$ac_includes_default
5484
typedef void* ac__type_sizeof_;
5487
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5494
rm -f conftest.$ac_objext
5495
if { (ac_try="$ac_compile"
5497
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5498
*) ac_try_echo=$ac_try;;
5500
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5501
(eval "$ac_compile") 2>conftest.er1
5503
grep -v '^ *+' conftest.er1 >conftest.err
5505
cat conftest.err >&5
5506
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5507
(exit $ac_status); } && {
5508
test -z "$ac_c_werror_flag" ||
5509
test ! -s conftest.err
5510
} && test -s conftest.$ac_objext; then
5511
ac_hi=$ac_mid; break
5513
echo "$as_me: failed program was:" >&5
5514
sed 's/^/| /' conftest.$ac_ext >&5
5516
ac_lo=`expr $ac_mid + 1`
5517
if test $ac_lo -le $ac_mid; then
5521
ac_mid=`expr 2 '*' $ac_mid + 1`
5524
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5527
echo "$as_me: failed program was:" >&5
5528
sed 's/^/| /' conftest.$ac_ext >&5
5530
cat >conftest.$ac_ext <<_ACEOF
5533
cat confdefs.h >>conftest.$ac_ext
5534
cat >>conftest.$ac_ext <<_ACEOF
5535
/* end confdefs.h. */
5536
$ac_includes_default
5537
typedef void* ac__type_sizeof_;
5540
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5547
rm -f conftest.$ac_objext
5548
if { (ac_try="$ac_compile"
5550
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5551
*) ac_try_echo=$ac_try;;
5553
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5554
(eval "$ac_compile") 2>conftest.er1
5556
grep -v '^ *+' conftest.er1 >conftest.err
5558
cat conftest.err >&5
5559
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5560
(exit $ac_status); } && {
5561
test -z "$ac_c_werror_flag" ||
5562
test ! -s conftest.err
5563
} && test -s conftest.$ac_objext; then
5566
cat >conftest.$ac_ext <<_ACEOF
5569
cat confdefs.h >>conftest.$ac_ext
5570
cat >>conftest.$ac_ext <<_ACEOF
5571
/* end confdefs.h. */
5572
$ac_includes_default
5573
typedef void* ac__type_sizeof_;
5576
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5583
rm -f conftest.$ac_objext
5584
if { (ac_try="$ac_compile"
5586
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5587
*) ac_try_echo=$ac_try;;
5589
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5590
(eval "$ac_compile") 2>conftest.er1
5592
grep -v '^ *+' conftest.er1 >conftest.err
5594
cat conftest.err >&5
5595
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5596
(exit $ac_status); } && {
5597
test -z "$ac_c_werror_flag" ||
5598
test ! -s conftest.err
5599
} && test -s conftest.$ac_objext; then
5600
ac_lo=$ac_mid; break
5602
echo "$as_me: failed program was:" >&5
5603
sed 's/^/| /' conftest.$ac_ext >&5
5605
ac_hi=`expr '(' $ac_mid ')' - 1`
5606
if test $ac_mid -le $ac_hi; then
5610
ac_mid=`expr 2 '*' $ac_mid`
5613
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5616
echo "$as_me: failed program was:" >&5
5617
sed 's/^/| /' conftest.$ac_ext >&5
5622
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5625
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5626
# Binary search between lo and hi bounds.
5627
while test "x$ac_lo" != "x$ac_hi"; do
5628
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5629
cat >conftest.$ac_ext <<_ACEOF
5632
cat confdefs.h >>conftest.$ac_ext
5633
cat >>conftest.$ac_ext <<_ACEOF
5634
/* end confdefs.h. */
5635
$ac_includes_default
5636
typedef void* ac__type_sizeof_;
5639
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5646
rm -f conftest.$ac_objext
5647
if { (ac_try="$ac_compile"
5649
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5650
*) ac_try_echo=$ac_try;;
5652
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5653
(eval "$ac_compile") 2>conftest.er1
5655
grep -v '^ *+' conftest.er1 >conftest.err
5657
cat conftest.err >&5
5658
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5659
(exit $ac_status); } && {
5660
test -z "$ac_c_werror_flag" ||
5661
test ! -s conftest.err
5662
} && test -s conftest.$ac_objext; then
5665
echo "$as_me: failed program was:" >&5
5666
sed 's/^/| /' conftest.$ac_ext >&5
5668
ac_lo=`expr '(' $ac_mid ')' + 1`
5671
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5674
?*) ac_cv_sizeof_voidp=$ac_lo;;
5675
'') if test "$ac_cv_type_voidp" = yes; then
5676
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void*)
5677
See \`config.log' for more details." >&5
5678
echo "$as_me: error: cannot compute sizeof (void*)
5679
See \`config.log' for more details." >&2;}
5680
{ (exit 77); exit 77; }; }
5682
ac_cv_sizeof_voidp=0
5686
cat >conftest.$ac_ext <<_ACEOF
5689
cat confdefs.h >>conftest.$ac_ext
5690
cat >>conftest.$ac_ext <<_ACEOF
5691
/* end confdefs.h. */
5692
$ac_includes_default
5693
typedef void* ac__type_sizeof_;
5694
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5695
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5701
FILE *f = fopen ("conftest.val", "w");
5704
if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5706
long int i = longval ();
5707
if (i != ((long int) (sizeof (ac__type_sizeof_))))
5709
fprintf (f, "%ld\n", i);
5713
unsigned long int i = ulongval ();
5714
if (i != ((long int) (sizeof (ac__type_sizeof_))))
5716
fprintf (f, "%lu\n", i);
5718
return ferror (f) || fclose (f) != 0;
5724
rm -f conftest$ac_exeext
5725
if { (ac_try="$ac_link"
5727
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5728
*) ac_try_echo=$ac_try;;
5730
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5731
(eval "$ac_link") 2>&5
5733
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5734
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5735
{ (case "(($ac_try" in
5736
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5737
*) ac_try_echo=$ac_try;;
5739
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5740
(eval "$ac_try") 2>&5
5742
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743
(exit $ac_status); }; }; then
5744
ac_cv_sizeof_voidp=`cat conftest.val`
5746
echo "$as_me: program exited with status $ac_status" >&5
5747
echo "$as_me: failed program was:" >&5
5748
sed 's/^/| /' conftest.$ac_ext >&5
5751
if test "$ac_cv_type_voidp" = yes; then
5752
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void*)
5753
See \`config.log' for more details." >&5
5754
echo "$as_me: error: cannot compute sizeof (void*)
5755
See \`config.log' for more details." >&2;}
5756
{ (exit 77); exit 77; }; }
5758
ac_cv_sizeof_voidp=0
5761
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5765
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_voidp" >&5
5766
echo "${ECHO_T}$ac_cv_sizeof_voidp" >&6; }
5770
cat >>confdefs.h <<_ACEOF
5771
#define SIZEOF_VOIDP $ac_cv_sizeof_voidp
5776
if test -z "$ac_cv_sizeof_long" ||
5777
test "$ac_cv_sizeof_long" -eq "0"; then
5778
{ { echo "$as_me:$LINENO: error: cannot find out size of long." >&5
5779
echo "$as_me: error: cannot find out size of long." >&2;}
5780
{ (exit 1); exit 1; }; }
5782
if test -z "$ac_cv_sizeof_voidp" ||
5783
test "$ac_cv_sizeof_voidp" -eq "0"; then
5784
{ { echo "$as_me:$LINENO: error: cannot find out size of void*." >&5
5785
echo "$as_me: error: cannot find out size of void*." >&2;}
5786
{ (exit 1); exit 1; }; }
5793
if test "$ac_cv_sizeof_long" -eq "8" &&
5794
test "$ac_cv_sizeof_voidp" -ge "8"; then
5796
elif test "$ac_cv_sizeof_long" -eq "4" &&
5797
test "$ac_cv_sizeof_voidp" -ge "4"; then
5799
elif test "$ac_cv_sizeof_long" -eq "2" &&
5800
test "$ac_cv_sizeof_voidp" -ge "2"; then
5805
curl_typeof_curl_off_t="unknown"
5806
curl_sizeof_curl_off_t="unknown"
5807
curl_format_curl_off_t="unknown"
5808
curl_format_curl_off_tu="unknown"
5810
if test "$curl_typeof_curl_off_t" = "unknown"; then
5811
{ echo "$as_me:$LINENO: checking for 64-bit curl_off_t data type" >&5
5812
echo $ECHO_N "checking for 64-bit curl_off_t data type... $ECHO_C" >&6; }
5821
if test "$curl_typeof_curl_off_t" = "unknown" && test ! -z "$t8"; then
5825
case `echo "$t8" | $as_tr_sh` in
5827
tmp_includes="$curl_includes_inttypes"
5828
tmp_source="char f[] = PRId64;"
5832
tmp_includes="$curl_includes_inttypes"
5833
tmp_source="char f[] = PRId32;"
5837
tmp_includes="$curl_includes_inttypes"
5838
tmp_source="char f[] = PRId16;"
5842
cat >conftest.$ac_ext <<_ACEOF
5846
cat confdefs.h >>conftest.$ac_ext
5847
cat >>conftest.$ac_ext <<_ACEOF
5848
/* end confdefs.h. */
5851
typedef $t8 curl_off_t;
5852
typedef char dummy_arr[sizeof(curl_off_t) == 8 ? 1 : -1];
5865
rm -f conftest.$ac_objext
5866
if { (ac_try="$ac_compile"
5868
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5869
*) ac_try_echo=$ac_try;;
5871
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5872
(eval "$ac_compile") 2>conftest.er1
5874
grep -v '^ *+' conftest.er1 >conftest.err
5876
cat conftest.err >&5
5877
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878
(exit $ac_status); } && {
5879
test -z "$ac_c_werror_flag" ||
5880
test ! -s conftest.err
5881
} && test -s conftest.$ac_objext; then
5883
if test -z "$tmp_fmt"; then
5884
curl_typeof_curl_off_t="$t8"
5885
curl_sizeof_curl_off_t="8"
5888
as_ac_HaveDef=`echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
5889
as_ac_Def=`echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
5890
if test -z "$SED"; then
5891
{ { echo "$as_me:$LINENO: error: SED not set. Cannot continue without SED being set." >&5
5892
echo "$as_me: error: SED not set. Cannot continue without SED being set." >&2;}
5893
{ (exit 1); exit 1; }; }
5895
if test -z "$GREP"; then
5896
{ { echo "$as_me:$LINENO: error: GREP not set. Cannot continue without GREP being set." >&5
5897
echo "$as_me: error: GREP not set. Cannot continue without GREP being set." >&2;}
5898
{ (exit 1); exit 1; }; }
5902
cat >conftest.$ac_ext <<_ACEOF
5906
cat confdefs.h >>conftest.$ac_ext
5907
cat >>conftest.$ac_ext <<_ACEOF
5908
/* end confdefs.h. */
5909
$curl_includes_inttypes
5911
CURL_DEF_TOKEN $tmp_fmt
5916
if { (ac_try="$ac_cpp conftest.$ac_ext"
5918
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5919
*) ac_try_echo=$ac_try;;
5921
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5922
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5924
grep -v '^ *+' conftest.er1 >conftest.err
5926
cat conftest.err >&5
5927
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5928
(exit $ac_status); } >/dev/null && {
5929
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5930
test ! -s conftest.err
5933
tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
5934
"$GREP" CURL_DEF_TOKEN 2>/dev/null | \
5935
"$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
5936
"$SED" 's/["][ ]*["]//g' 2>/dev/null`
5937
if test -z "$tmp_exp" || test "$tmp_exp" = "$tmp_fmt"; then
5942
echo "$as_me: failed program was:" >&5
5943
sed 's/^/| /' conftest.$ac_ext >&5
5948
rm -f conftest.err conftest.$ac_ext
5949
if test -z "$tmp_exp"; then
5950
eval "$as_ac_HaveDef=no"
5953
eval "$as_ac_HaveDef=yes"
5954
eval "$as_ac_Def=\$tmp_exp"
5958
as_tmp_HaveFmtDef=`echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
5959
as_tmp_FmtDef=`echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
5960
if test `eval echo '${'$as_tmp_HaveFmtDef'}'` = "yes"; then
5961
curl_format_curl_off_t=`eval echo '${'$as_tmp_FmtDef'}'`
5962
curl_typeof_curl_off_t="$t8"
5963
curl_sizeof_curl_off_t="8"
5968
echo "$as_me: failed program was:" >&5
5969
sed 's/^/| /' conftest.$ac_ext >&5
5974
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5978
{ echo "$as_me:$LINENO: result: $curl_typeof_curl_off_t" >&5
5979
echo "${ECHO_T}$curl_typeof_curl_off_t" >&6; }
5981
if test "$curl_typeof_curl_off_t" = "unknown"; then
5982
{ echo "$as_me:$LINENO: checking for 32-bit curl_off_t data type" >&5
5983
echo $ECHO_N "checking for 32-bit curl_off_t data type... $ECHO_C" >&6; }
5990
if test "$curl_typeof_curl_off_t" = "unknown" && test ! -z "$t4"; then
5994
case `echo "$t4" | $as_tr_sh` in
5996
tmp_includes="$curl_includes_inttypes"
5997
tmp_source="char f[] = PRId64;"
6001
tmp_includes="$curl_includes_inttypes"
6002
tmp_source="char f[] = PRId32;"
6006
tmp_includes="$curl_includes_inttypes"
6007
tmp_source="char f[] = PRId16;"
6011
cat >conftest.$ac_ext <<_ACEOF
6015
cat confdefs.h >>conftest.$ac_ext
6016
cat >>conftest.$ac_ext <<_ACEOF
6017
/* end confdefs.h. */
6020
typedef $t4 curl_off_t;
6021
typedef char dummy_arr[sizeof(curl_off_t) == 4 ? 1 : -1];
6034
rm -f conftest.$ac_objext
6035
if { (ac_try="$ac_compile"
6037
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6038
*) ac_try_echo=$ac_try;;
6040
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6041
(eval "$ac_compile") 2>conftest.er1
6043
grep -v '^ *+' conftest.er1 >conftest.err
6045
cat conftest.err >&5
6046
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6047
(exit $ac_status); } && {
6048
test -z "$ac_c_werror_flag" ||
6049
test ! -s conftest.err
6050
} && test -s conftest.$ac_objext; then
6052
if test -z "$tmp_fmt"; then
6053
curl_typeof_curl_off_t="$t4"
6054
curl_sizeof_curl_off_t="4"
6057
as_ac_HaveDef=`echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
6058
as_ac_Def=`echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
6059
if test -z "$SED"; then
6060
{ { echo "$as_me:$LINENO: error: SED not set. Cannot continue without SED being set." >&5
6061
echo "$as_me: error: SED not set. Cannot continue without SED being set." >&2;}
6062
{ (exit 1); exit 1; }; }
6064
if test -z "$GREP"; then
6065
{ { echo "$as_me:$LINENO: error: GREP not set. Cannot continue without GREP being set." >&5
6066
echo "$as_me: error: GREP not set. Cannot continue without GREP being set." >&2;}
6067
{ (exit 1); exit 1; }; }
6071
cat >conftest.$ac_ext <<_ACEOF
6075
cat confdefs.h >>conftest.$ac_ext
6076
cat >>conftest.$ac_ext <<_ACEOF
6077
/* end confdefs.h. */
6078
$curl_includes_inttypes
6080
CURL_DEF_TOKEN $tmp_fmt
6085
if { (ac_try="$ac_cpp conftest.$ac_ext"
6087
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6088
*) ac_try_echo=$ac_try;;
6090
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6091
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6093
grep -v '^ *+' conftest.er1 >conftest.err
6095
cat conftest.err >&5
6096
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6097
(exit $ac_status); } >/dev/null && {
6098
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6099
test ! -s conftest.err
6102
tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
6103
"$GREP" CURL_DEF_TOKEN 2>/dev/null | \
6104
"$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
6105
"$SED" 's/["][ ]*["]//g' 2>/dev/null`
6106
if test -z "$tmp_exp" || test "$tmp_exp" = "$tmp_fmt"; then
6111
echo "$as_me: failed program was:" >&5
6112
sed 's/^/| /' conftest.$ac_ext >&5
6117
rm -f conftest.err conftest.$ac_ext
6118
if test -z "$tmp_exp"; then
6119
eval "$as_ac_HaveDef=no"
6122
eval "$as_ac_HaveDef=yes"
6123
eval "$as_ac_Def=\$tmp_exp"
6127
as_tmp_HaveFmtDef=`echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
6128
as_tmp_FmtDef=`echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
6129
if test `eval echo '${'$as_tmp_HaveFmtDef'}'` = "yes"; then
6130
curl_format_curl_off_t=`eval echo '${'$as_tmp_FmtDef'}'`
6131
curl_typeof_curl_off_t="$t4"
6132
curl_sizeof_curl_off_t="4"
6137
echo "$as_me: failed program was:" >&5
6138
sed 's/^/| /' conftest.$ac_ext >&5
6143
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6147
{ echo "$as_me:$LINENO: result: $curl_typeof_curl_off_t" >&5
6148
echo "${ECHO_T}$curl_typeof_curl_off_t" >&6; }
6150
if test "$curl_typeof_curl_off_t" = "unknown"; then
6151
{ echo "$as_me:$LINENO: checking for 16-bit curl_off_t data type" >&5
6152
echo $ECHO_N "checking for 16-bit curl_off_t data type... $ECHO_C" >&6; }
6159
if test "$curl_typeof_curl_off_t" = "unknown" && test ! -z "$t2"; then
6163
case `echo "$t2" | $as_tr_sh` in
6165
tmp_includes="$curl_includes_inttypes"
6166
tmp_source="char f[] = PRId64;"
6170
tmp_includes="$curl_includes_inttypes"
6171
tmp_source="char f[] = PRId32;"
6175
tmp_includes="$curl_includes_inttypes"
6176
tmp_source="char f[] = PRId16;"
6180
cat >conftest.$ac_ext <<_ACEOF
6184
cat confdefs.h >>conftest.$ac_ext
6185
cat >>conftest.$ac_ext <<_ACEOF
6186
/* end confdefs.h. */
6189
typedef $t2 curl_off_t;
6190
typedef char dummy_arr[sizeof(curl_off_t) == 2 ? 1 : -1];
6203
rm -f conftest.$ac_objext
6204
if { (ac_try="$ac_compile"
6206
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6207
*) ac_try_echo=$ac_try;;
6209
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6210
(eval "$ac_compile") 2>conftest.er1
6212
grep -v '^ *+' conftest.er1 >conftest.err
6214
cat conftest.err >&5
6215
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6216
(exit $ac_status); } && {
6217
test -z "$ac_c_werror_flag" ||
6218
test ! -s conftest.err
6219
} && test -s conftest.$ac_objext; then
6221
if test -z "$tmp_fmt"; then
6222
curl_typeof_curl_off_t="$t2"
6223
curl_sizeof_curl_off_t="2"
6226
as_ac_HaveDef=`echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
6227
as_ac_Def=`echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
6228
if test -z "$SED"; then
6229
{ { echo "$as_me:$LINENO: error: SED not set. Cannot continue without SED being set." >&5
6230
echo "$as_me: error: SED not set. Cannot continue without SED being set." >&2;}
6231
{ (exit 1); exit 1; }; }
6233
if test -z "$GREP"; then
6234
{ { echo "$as_me:$LINENO: error: GREP not set. Cannot continue without GREP being set." >&5
6235
echo "$as_me: error: GREP not set. Cannot continue without GREP being set." >&2;}
6236
{ (exit 1); exit 1; }; }
6240
cat >conftest.$ac_ext <<_ACEOF
6244
cat confdefs.h >>conftest.$ac_ext
6245
cat >>conftest.$ac_ext <<_ACEOF
6246
/* end confdefs.h. */
6247
$curl_includes_inttypes
6249
CURL_DEF_TOKEN $tmp_fmt
6254
if { (ac_try="$ac_cpp conftest.$ac_ext"
6256
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6257
*) ac_try_echo=$ac_try;;
6259
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6260
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6262
grep -v '^ *+' conftest.er1 >conftest.err
6264
cat conftest.err >&5
6265
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6266
(exit $ac_status); } >/dev/null && {
6267
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6268
test ! -s conftest.err
6271
tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
6272
"$GREP" CURL_DEF_TOKEN 2>/dev/null | \
6273
"$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
6274
"$SED" 's/["][ ]*["]//g' 2>/dev/null`
6275
if test -z "$tmp_exp" || test "$tmp_exp" = "$tmp_fmt"; then
6280
echo "$as_me: failed program was:" >&5
6281
sed 's/^/| /' conftest.$ac_ext >&5
6286
rm -f conftest.err conftest.$ac_ext
6287
if test -z "$tmp_exp"; then
6288
eval "$as_ac_HaveDef=no"
6291
eval "$as_ac_HaveDef=yes"
6292
eval "$as_ac_Def=\$tmp_exp"
6296
as_tmp_HaveFmtDef=`echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
6297
as_tmp_FmtDef=`echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
6298
if test `eval echo '${'$as_tmp_HaveFmtDef'}'` = "yes"; then
6299
curl_format_curl_off_t=`eval echo '${'$as_tmp_FmtDef'}'`
6300
curl_typeof_curl_off_t="$t2"
6301
curl_sizeof_curl_off_t="2"
6306
echo "$as_me: failed program was:" >&5
6307
sed 's/^/| /' conftest.$ac_ext >&5
6312
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6316
{ echo "$as_me:$LINENO: result: $curl_typeof_curl_off_t" >&5
6317
echo "${ECHO_T}$curl_typeof_curl_off_t" >&6; }
6319
if test "$curl_typeof_curl_off_t" = "unknown"; then
6320
{ { echo "$as_me:$LINENO: error: cannot find data type for curl_off_t." >&5
6321
echo "$as_me: error: cannot find data type for curl_off_t." >&2;}
6322
{ (exit 1); exit 1; }; }
6325
{ echo "$as_me:$LINENO: checking size of curl_off_t" >&5
6326
echo $ECHO_N "checking size of curl_off_t... $ECHO_C" >&6; }
6327
{ echo "$as_me:$LINENO: result: $curl_sizeof_curl_off_t" >&5
6328
echo "${ECHO_T}$curl_sizeof_curl_off_t" >&6; }
6330
{ echo "$as_me:$LINENO: checking formatting string directive for curl_off_t" >&5
6331
echo $ECHO_N "checking formatting string directive for curl_off_t... $ECHO_C" >&6; }
6332
if test "$curl_format_curl_off_t" != "unknown"; then
6333
x_pull_headers="yes"
6334
curl_format_curl_off_t=`echo "$curl_format_curl_off_t" | "$SED" 's/["]//g'`
6335
curl_format_curl_off_tu=`echo "$curl_format_curl_off_t" | "$SED" 's/i$/u/'`
6336
curl_format_curl_off_tu=`echo "$curl_format_curl_off_tu" | "$SED" 's/d$/u/'`
6337
curl_format_curl_off_tu=`echo "$curl_format_curl_off_tu" | "$SED" 's/D$/U/'`
6340
case `echo "$curl_typeof_curl_off_t" | $as_tr_sh` in
6341
long_long | __longlong | __longlong_t)
6342
curl_format_curl_off_t="lld"
6343
curl_format_curl_off_tu="llu"
6346
curl_format_curl_off_t="ld"
6347
curl_format_curl_off_tu="lu"
6350
curl_format_curl_off_t="d"
6351
curl_format_curl_off_tu="u"
6354
curl_format_curl_off_t="I64d"
6355
curl_format_curl_off_tu="I64u"
6358
curl_format_curl_off_t="I32d"
6359
curl_format_curl_off_tu="I32u"
6362
curl_format_curl_off_t="I16d"
6363
curl_format_curl_off_tu="I16u"
6366
{ { echo "$as_me:$LINENO: error: cannot find print format string for curl_off_t." >&5
6367
echo "$as_me: error: cannot find print format string for curl_off_t." >&2;}
6368
{ (exit 1); exit 1; }; }
6372
{ echo "$as_me:$LINENO: result: \"$curl_format_curl_off_t\"" >&5
6373
echo "${ECHO_T}\"$curl_format_curl_off_t\"" >&6; }
6375
{ echo "$as_me:$LINENO: checking formatting string directive for unsigned curl_off_t" >&5
6376
echo $ECHO_N "checking formatting string directive for unsigned curl_off_t... $ECHO_C" >&6; }
6377
{ echo "$as_me:$LINENO: result: \"$curl_format_curl_off_tu\"" >&5
6378
echo "${ECHO_T}\"$curl_format_curl_off_tu\"" >&6; }
6381
{ echo "$as_me:$LINENO: checking constant suffix string for curl_off_t" >&5
6382
echo $ECHO_N "checking constant suffix string for curl_off_t... $ECHO_C" >&6; }
6384
curl_suffix_curl_off_t="unknown"
6385
curl_suffix_curl_off_tu="unknown"
6387
case `echo "$curl_typeof_curl_off_t" | $as_tr_sh` in
6388
long_long | __longlong | __longlong_t)
6398
tst_suffixes="LL:i64::"
6401
tst_suffixes="L:i32::"
6404
tst_suffixes="L:i16::"
6407
{ { echo "$as_me:$LINENO: error: unexpected data type $curl_typeof_curl_off_t" >&5
6408
echo "$as_me: error: unexpected data type $curl_typeof_curl_off_t" >&2;}
6409
{ (exit 1); exit 1; }; }
6413
old_IFS=$IFS; IFS=':'
6414
for tmp_ssuf in $tst_suffixes ; do
6416
if test "x$curl_suffix_curl_off_t" = "xunknown"; then
6419
tmp_usuf="u$tmp_ssuf"
6422
tmp_usuf="U$tmp_ssuf"
6428
cat >conftest.$ac_ext <<_ACEOF
6432
cat confdefs.h >>conftest.$ac_ext
6433
cat >>conftest.$ac_ext <<_ACEOF
6434
/* end confdefs.h. */
6436
$curl_includes_inttypes
6437
typedef $curl_typeof_curl_off_t new_t;
6454
rm -f conftest.$ac_objext
6455
if { (ac_try="$ac_compile"
6457
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6458
*) ac_try_echo=$ac_try;;
6460
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6461
(eval "$ac_compile") 2>conftest.er1
6463
grep -v '^ *+' conftest.er1 >conftest.err
6465
cat conftest.err >&5
6466
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6467
(exit $ac_status); } && {
6468
test -z "$ac_c_werror_flag" ||
6469
test ! -s conftest.err
6470
} && test -s conftest.$ac_objext; then
6472
curl_suffix_curl_off_t="$tmp_ssuf"
6473
curl_suffix_curl_off_tu="$tmp_usuf"
6476
echo "$as_me: failed program was:" >&5
6477
sed 's/^/| /' conftest.$ac_ext >&5
6482
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6487
if test "x$curl_suffix_curl_off_t" = "xunknown"; then
6488
{ { echo "$as_me:$LINENO: error: cannot find constant suffix string for curl_off_t." >&5
6489
echo "$as_me: error: cannot find constant suffix string for curl_off_t." >&2;}
6490
{ (exit 1); exit 1; }; }
6492
{ echo "$as_me:$LINENO: result: $curl_suffix_curl_off_t" >&5
6493
echo "${ECHO_T}$curl_suffix_curl_off_t" >&6; }
6494
{ echo "$as_me:$LINENO: checking constant suffix string for unsigned curl_off_t" >&5
6495
echo $ECHO_N "checking constant suffix string for unsigned curl_off_t... $ECHO_C" >&6; }
6496
{ echo "$as_me:$LINENO: result: $curl_suffix_curl_off_tu" >&5
6497
echo "${ECHO_T}$curl_suffix_curl_off_tu" >&6; }
6502
if test "$x_pull_headers" = "yes"; then
6503
if test "x$ac_cv_header_sys_types_h" = "xyes"; then
6505
cat >>confdefs.h <<_EOF
6506
#define CURL_PULL_SYS_TYPES_H 1
6510
if test "x$ac_cv_header_stdint_h" = "xyes"; then
6512
cat >>confdefs.h <<_EOF
6513
#define CURL_PULL_STDINT_H 1
6517
if test "x$ac_cv_header_inttypes_h" = "xyes"; then
6519
cat >>confdefs.h <<_EOF
6520
#define CURL_PULL_INTTYPES_H 1
6527
cat >>confdefs.h <<_EOF
6528
#define CURL_TYPEOF_CURL_OFF_T $curl_typeof_curl_off_t
6532
cat >>confdefs.h <<_EOF
6533
#define CURL_FORMAT_CURL_OFF_T "$curl_format_curl_off_t"
6537
cat >>confdefs.h <<_EOF
6538
#define CURL_FORMAT_CURL_OFF_TU "$curl_format_curl_off_tu"
6542
cat >>confdefs.h <<_EOF
6543
#define CURL_FORMAT_OFF_T "%$curl_format_curl_off_t"
6547
cat >>confdefs.h <<_EOF
6548
#define CURL_SIZEOF_CURL_OFF_T $curl_sizeof_curl_off_t
6552
cat >>confdefs.h <<_EOF
6553
#define CURL_SUFFIX_CURL_OFF_T $curl_suffix_curl_off_t
6557
cat >>confdefs.h <<_EOF
6558
#define CURL_SUFFIX_CURL_OFF_TU $curl_suffix_curl_off_tu
6567
{ echo "$as_me:$LINENO: checking if OS is AIX (to define _ALL_SOURCE)" >&5
6568
echo $ECHO_N "checking if OS is AIX (to define _ALL_SOURCE)... $ECHO_C" >&6; }
6569
cat >conftest.$ac_ext <<_ACEOF
6572
cat confdefs.h >>conftest.$ac_ext
6573
cat >>conftest.$ac_ext <<_ACEOF
6574
/* end confdefs.h. */
4323
6581
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4324
$EGREP "yes" >/dev/null 2>&1; then
4325
{ echo "$as_me:$LINENO: result: yes" >&5
6582
$EGREP "yes_this_is_aix" >/dev/null 2>&1; then
6584
{ echo "$as_me:$LINENO: result: yes" >&5
4326
6585
echo "${ECHO_T}yes" >&6; }
4327
cat >>confdefs.h <<\_ACEOF
6586
cat >>confdefs.h <<\_ACEOF
4328
6587
#define _ALL_SOURCE 1
4332
{ echo "$as_me:$LINENO: result: no" >&5
6593
{ echo "$as_me:$LINENO: result: no" >&5
4333
6594
echo "${ECHO_T}no" >&6; }
4335
6597
rm -f conftest*
4340
ac_cpp='$CPP $CPPFLAGS'
4341
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4342
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4343
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4344
if test -n "$ac_tool_prefix"; then
4345
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4346
set dummy ${ac_tool_prefix}gcc; ac_word=$2
4347
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4348
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4349
if test "${ac_cv_prog_CC+set}" = set; then
4350
echo $ECHO_N "(cached) $ECHO_C" >&6
4352
if test -n "$CC"; then
4353
ac_cv_prog_CC="$CC" # Let the user override the test.
4355
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4359
test -z "$as_dir" && as_dir=.
4360
for ac_exec_ext in '' $ac_executable_extensions; do
4361
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4362
ac_cv_prog_CC="${ac_tool_prefix}gcc"
4363
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4373
if test -n "$CC"; then
4374
{ echo "$as_me:$LINENO: result: $CC" >&5
4375
echo "${ECHO_T}$CC" >&6; }
4377
{ echo "$as_me:$LINENO: result: no" >&5
4378
echo "${ECHO_T}no" >&6; }
4383
if test -z "$ac_cv_prog_CC"; then
4385
# Extract the first word of "gcc", so it can be a program name with args.
4386
set dummy gcc; ac_word=$2
4387
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4388
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4389
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4390
echo $ECHO_N "(cached) $ECHO_C" >&6
4392
if test -n "$ac_ct_CC"; then
4393
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4395
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4399
test -z "$as_dir" && as_dir=.
4400
for ac_exec_ext in '' $ac_executable_extensions; do
4401
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4402
ac_cv_prog_ac_ct_CC="gcc"
4403
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4412
ac_ct_CC=$ac_cv_prog_ac_ct_CC
4413
if test -n "$ac_ct_CC"; then
4414
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4415
echo "${ECHO_T}$ac_ct_CC" >&6; }
4417
{ echo "$as_me:$LINENO: result: no" >&5
4418
echo "${ECHO_T}no" >&6; }
4421
if test "x$ac_ct_CC" = x; then
4424
case $cross_compiling:$ac_tool_warned in
4426
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4427
whose name does not start with the host triplet. If you think this
4428
configuration is useful to you, please write to autoconf@gnu.org." >&5
4429
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4430
whose name does not start with the host triplet. If you think this
4431
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4432
ac_tool_warned=yes ;;
4440
if test -z "$CC"; then
4441
if test -n "$ac_tool_prefix"; then
4442
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4443
set dummy ${ac_tool_prefix}cc; ac_word=$2
4444
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4445
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4446
if test "${ac_cv_prog_CC+set}" = set; then
4447
echo $ECHO_N "(cached) $ECHO_C" >&6
4449
if test -n "$CC"; then
4450
ac_cv_prog_CC="$CC" # Let the user override the test.
4452
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4456
test -z "$as_dir" && as_dir=.
4457
for ac_exec_ext in '' $ac_executable_extensions; do
4458
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4459
ac_cv_prog_CC="${ac_tool_prefix}cc"
4460
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4470
if test -n "$CC"; then
4471
{ echo "$as_me:$LINENO: result: $CC" >&5
4472
echo "${ECHO_T}$CC" >&6; }
4474
{ echo "$as_me:$LINENO: result: no" >&5
4475
echo "${ECHO_T}no" >&6; }
4481
if test -z "$CC"; then
4482
# Extract the first word of "cc", so it can be a program name with args.
4483
set dummy cc; ac_word=$2
4484
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4485
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4486
if test "${ac_cv_prog_CC+set}" = set; then
4487
echo $ECHO_N "(cached) $ECHO_C" >&6
4489
if test -n "$CC"; then
4490
ac_cv_prog_CC="$CC" # Let the user override the test.
4493
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4497
test -z "$as_dir" && as_dir=.
4498
for ac_exec_ext in '' $ac_executable_extensions; do
4499
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4500
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4501
ac_prog_rejected=yes
4505
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4512
if test $ac_prog_rejected = yes; then
4513
# We found a bogon in the path, so make sure we never use it.
4514
set dummy $ac_cv_prog_CC
4516
if test $# != 0; then
4517
# We chose a different compiler from the bogus one.
4518
# However, it has the same basename, so the bogon will be chosen
4519
# first if we set CC to just the basename; use the full file name.
4521
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4527
if test -n "$CC"; then
4528
{ echo "$as_me:$LINENO: result: $CC" >&5
4529
echo "${ECHO_T}$CC" >&6; }
4531
{ echo "$as_me:$LINENO: result: no" >&5
4532
echo "${ECHO_T}no" >&6; }
4537
if test -z "$CC"; then
4538
if test -n "$ac_tool_prefix"; then
4539
for ac_prog in cl.exe
4541
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4542
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4543
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4544
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4545
if test "${ac_cv_prog_CC+set}" = set; then
4546
echo $ECHO_N "(cached) $ECHO_C" >&6
4548
if test -n "$CC"; then
4549
ac_cv_prog_CC="$CC" # Let the user override the test.
4551
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4555
test -z "$as_dir" && as_dir=.
4556
for ac_exec_ext in '' $ac_executable_extensions; do
4557
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4558
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4559
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4569
if test -n "$CC"; then
4570
{ echo "$as_me:$LINENO: result: $CC" >&5
4571
echo "${ECHO_T}$CC" >&6; }
4573
{ echo "$as_me:$LINENO: result: no" >&5
4574
echo "${ECHO_T}no" >&6; }
4578
test -n "$CC" && break
4581
if test -z "$CC"; then
4583
for ac_prog in cl.exe
4585
# Extract the first word of "$ac_prog", so it can be a program name with args.
4586
set dummy $ac_prog; ac_word=$2
4587
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4588
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4589
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4590
echo $ECHO_N "(cached) $ECHO_C" >&6
4592
if test -n "$ac_ct_CC"; then
4593
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4595
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4599
test -z "$as_dir" && as_dir=.
4600
for ac_exec_ext in '' $ac_executable_extensions; do
4601
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4602
ac_cv_prog_ac_ct_CC="$ac_prog"
4603
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4612
ac_ct_CC=$ac_cv_prog_ac_ct_CC
4613
if test -n "$ac_ct_CC"; then
4614
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4615
echo "${ECHO_T}$ac_ct_CC" >&6; }
4617
{ echo "$as_me:$LINENO: result: no" >&5
4618
echo "${ECHO_T}no" >&6; }
4622
test -n "$ac_ct_CC" && break
4625
if test "x$ac_ct_CC" = x; then
4628
case $cross_compiling:$ac_tool_warned in
4630
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4631
whose name does not start with the host triplet. If you think this
4632
configuration is useful to you, please write to autoconf@gnu.org." >&5
4633
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4634
whose name does not start with the host triplet. If you think this
4635
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4636
ac_tool_warned=yes ;;
4645
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4646
See \`config.log' for more details." >&5
4647
echo "$as_me: error: no acceptable C compiler found in \$PATH
4648
See \`config.log' for more details." >&2;}
4649
{ (exit 1); exit 1; }; }
4651
# Provide some information about the compiler.
4652
echo "$as_me:$LINENO: checking for C compiler version" >&5
4653
ac_compiler=`set X $ac_compile; echo $2`
4654
{ (ac_try="$ac_compiler --version >&5"
4656
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4657
*) ac_try_echo=$ac_try;;
4659
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4660
(eval "$ac_compiler --version >&5") 2>&5
4662
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4663
(exit $ac_status); }
4664
{ (ac_try="$ac_compiler -v >&5"
4666
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4667
*) ac_try_echo=$ac_try;;
4669
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4670
(eval "$ac_compiler -v >&5") 2>&5
4672
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4673
(exit $ac_status); }
4674
{ (ac_try="$ac_compiler -V >&5"
4676
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4677
*) ac_try_echo=$ac_try;;
4679
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4680
(eval "$ac_compiler -V >&5") 2>&5
4682
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4683
(exit $ac_status); }
4685
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4686
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4687
if test "${ac_cv_c_compiler_gnu+set}" = set; then
4688
echo $ECHO_N "(cached) $ECHO_C" >&6
4690
cat >conftest.$ac_ext <<_ACEOF
4693
cat confdefs.h >>conftest.$ac_ext
4694
cat >>conftest.$ac_ext <<_ACEOF
4695
/* end confdefs.h. */
4708
rm -f conftest.$ac_objext
4709
if { (ac_try="$ac_compile"
4711
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4712
*) ac_try_echo=$ac_try;;
4714
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4715
(eval "$ac_compile") 2>conftest.er1
4717
grep -v '^ *+' conftest.er1 >conftest.err
4719
cat conftest.err >&5
4720
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4721
(exit $ac_status); } && {
4722
test -z "$ac_c_werror_flag" ||
4723
test ! -s conftest.err
4724
} && test -s conftest.$ac_objext; then
4727
echo "$as_me: failed program was:" >&5
4728
sed 's/^/| /' conftest.$ac_ext >&5
4733
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4734
ac_cv_c_compiler_gnu=$ac_compiler_gnu
4737
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4738
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4739
GCC=`test $ac_compiler_gnu = yes && echo yes`
4740
ac_test_CFLAGS=${CFLAGS+set}
4741
ac_save_CFLAGS=$CFLAGS
4742
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4743
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4744
if test "${ac_cv_prog_cc_g+set}" = set; then
4745
echo $ECHO_N "(cached) $ECHO_C" >&6
4747
ac_save_c_werror_flag=$ac_c_werror_flag
4748
ac_c_werror_flag=yes
4751
cat >conftest.$ac_ext <<_ACEOF
4754
cat confdefs.h >>conftest.$ac_ext
4755
cat >>conftest.$ac_ext <<_ACEOF
4756
/* end confdefs.h. */
4766
rm -f conftest.$ac_objext
4767
if { (ac_try="$ac_compile"
4769
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4770
*) ac_try_echo=$ac_try;;
4772
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4773
(eval "$ac_compile") 2>conftest.er1
4775
grep -v '^ *+' conftest.er1 >conftest.err
4777
cat conftest.err >&5
4778
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4779
(exit $ac_status); } && {
4780
test -z "$ac_c_werror_flag" ||
4781
test ! -s conftest.err
4782
} && test -s conftest.$ac_objext; then
4785
echo "$as_me: failed program was:" >&5
4786
sed 's/^/| /' conftest.$ac_ext >&5
4789
cat >conftest.$ac_ext <<_ACEOF
4792
cat confdefs.h >>conftest.$ac_ext
4793
cat >>conftest.$ac_ext <<_ACEOF
4794
/* end confdefs.h. */
4804
rm -f conftest.$ac_objext
4805
if { (ac_try="$ac_compile"
4807
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4808
*) ac_try_echo=$ac_try;;
4810
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4811
(eval "$ac_compile") 2>conftest.er1
4813
grep -v '^ *+' conftest.er1 >conftest.err
4815
cat conftest.err >&5
4816
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817
(exit $ac_status); } && {
4818
test -z "$ac_c_werror_flag" ||
4819
test ! -s conftest.err
4820
} && test -s conftest.$ac_objext; then
4823
echo "$as_me: failed program was:" >&5
4824
sed 's/^/| /' conftest.$ac_ext >&5
4826
ac_c_werror_flag=$ac_save_c_werror_flag
4828
cat >conftest.$ac_ext <<_ACEOF
4831
cat confdefs.h >>conftest.$ac_ext
4832
cat >>conftest.$ac_ext <<_ACEOF
4833
/* end confdefs.h. */
4843
rm -f conftest.$ac_objext
4844
if { (ac_try="$ac_compile"
4846
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4847
*) ac_try_echo=$ac_try;;
4849
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4850
(eval "$ac_compile") 2>conftest.er1
4852
grep -v '^ *+' conftest.er1 >conftest.err
4854
cat conftest.err >&5
4855
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4856
(exit $ac_status); } && {
4857
test -z "$ac_c_werror_flag" ||
4858
test ! -s conftest.err
4859
} && test -s conftest.$ac_objext; then
4862
echo "$as_me: failed program was:" >&5
4863
sed 's/^/| /' conftest.$ac_ext >&5
4868
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4871
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4874
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4875
ac_c_werror_flag=$ac_save_c_werror_flag
4877
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4878
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4879
if test "$ac_test_CFLAGS" = set; then
4880
CFLAGS=$ac_save_CFLAGS
4881
elif test $ac_cv_prog_cc_g = yes; then
4882
if test "$GCC" = yes; then
4888
if test "$GCC" = yes; then
4894
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4895
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4896
if test "${ac_cv_prog_cc_c89+set}" = set; then
4897
echo $ECHO_N "(cached) $ECHO_C" >&6
4899
ac_cv_prog_cc_c89=no
4901
cat >conftest.$ac_ext <<_ACEOF
4904
cat confdefs.h >>conftest.$ac_ext
4905
cat >>conftest.$ac_ext <<_ACEOF
4906
/* end confdefs.h. */
4909
#include <sys/types.h>
4910
#include <sys/stat.h>
4911
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4912
struct buf { int x; };
4913
FILE * (*rcsopen) (struct buf *, struct stat *, int);
4914
static char *e (p, i)
4920
static char *f (char * (*g) (char **, int), char **p, ...)
4925
s = g (p, va_arg (v,int));
4930
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4931
function prototypes and stuff, but not '\xHH' hex character constants.
4932
These don't provoke an error unfortunately, instead are silently treated
4933
as 'x'. The following induces an error, until -std is added to get
4934
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4935
array size at least. It's necessary to write '\x00'==0 to get something
4936
that's true only with -std. */
4937
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4939
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4940
inside strings and character constants. */
4942
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4944
int test (int i, double x);
4945
struct s1 {int (*f) (int a);};
4946
struct s2 {int (*f) (double a);};
4947
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4953
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4958
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4959
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4961
CC="$ac_save_CC $ac_arg"
4962
rm -f conftest.$ac_objext
4963
if { (ac_try="$ac_compile"
4965
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4966
*) ac_try_echo=$ac_try;;
4968
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4969
(eval "$ac_compile") 2>conftest.er1
4971
grep -v '^ *+' conftest.er1 >conftest.err
4973
cat conftest.err >&5
4974
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975
(exit $ac_status); } && {
4976
test -z "$ac_c_werror_flag" ||
4977
test ! -s conftest.err
4978
} && test -s conftest.$ac_objext; then
4979
ac_cv_prog_cc_c89=$ac_arg
4981
echo "$as_me: failed program was:" >&5
4982
sed 's/^/| /' conftest.$ac_ext >&5
4987
rm -f core conftest.err conftest.$ac_objext
4988
test "x$ac_cv_prog_cc_c89" != "xno" && break
4990
rm -f conftest.$ac_ext
4995
case "x$ac_cv_prog_cc_c89" in
4997
{ echo "$as_me:$LINENO: result: none needed" >&5
4998
echo "${ECHO_T}none needed" >&6; } ;;
5000
{ echo "$as_me:$LINENO: result: unsupported" >&5
5001
echo "${ECHO_T}unsupported" >&6; } ;;
5003
CC="$CC $ac_cv_prog_cc_c89"
5004
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5005
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5010
ac_cpp='$CPP $CPPFLAGS'
5011
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5012
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5013
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5015
depcc="$CC" am_compiler_list=
5017
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5018
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5019
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5020
echo $ECHO_N "(cached) $ECHO_C" >&6
5022
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5023
# We make a subdir and do the tests there. Otherwise we can end up
5024
# making bogus files that we don't know about and never remove. For
5025
# instance it was reported that on HP-UX the gcc test will end up
5026
# making a dummy file named `D' -- because `-MD' means `put the output
5029
# Copy depcomp to subdir because otherwise we won't find it if we're
5030
# using a relative directory.
5031
cp "$am_depcomp" conftest.dir
5033
# We will build objects and dependencies in a subdirectory because
5034
# it helps to detect inapplicable dependency modes. For instance
5035
# both Tru64's cc and ICC support -MD to output dependencies as a
5036
# side effect of compilation, but ICC will put the dependencies in
5037
# the current directory while Tru64 will put them in the object
5041
am_cv_CC_dependencies_compiler_type=none
5042
if test "$am_compiler_list" = ""; then
5043
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5045
for depmode in $am_compiler_list; do
5046
# Setup a source with many dependencies, because some compilers
5047
# like to wrap large dependency lists on column 80 (with \), and
5048
# we should not choose a depcomp mode which is confused by this.
5050
# We need to recreate these files for each test, as the compiler may
5051
# overwrite some of them when testing with obscure command lines.
5052
# This happens at least with the AIX C compiler.
5054
for i in 1 2 3 4 5 6; do
5055
echo '#include "conftst'$i'.h"' >> sub/conftest.c
5056
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5057
# Solaris 8's {/usr,}/bin/sh.
5058
touch sub/conftst$i.h
5060
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5064
# after this tag, mechanisms are not by side-effect, so they'll
5065
# only be used when explicitly requested
5066
if test "x$enable_dependency_tracking" = xyes; then
5074
# We check with `-c' and `-o' for the sake of the "dashmstdout"
5075
# mode. It turns out that the SunPro C++ compiler does not properly
5076
# handle `-M -o', and we need to detect this.
5077
if depmode=$depmode \
5078
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5079
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5080
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5081
>/dev/null 2>conftest.err &&
5082
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5083
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5084
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5085
# icc doesn't choke on unknown options, it will just issue warnings
5086
# or remarks (even with -Werror). So we grep stderr for any message
5087
# that says an option was ignored or not supported.
5088
# When given -MP, icc 7.0 and 7.1 complain thusly:
5089
# icc: Command line warning: ignoring option '-M'; no argument required
5090
# The diagnosis changed in icc 8.0:
5091
# icc: Command line remark: option '-MP' not supported
5092
if (grep 'ignoring option' conftest.err ||
5093
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5094
am_cv_CC_dependencies_compiler_type=$depmode
5103
am_cv_CC_dependencies_compiler_type=none
5107
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5108
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5109
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5114
test "x$enable_dependency_tracking" != xno \
5115
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5117
am__fastdepCC_FALSE='#'
5119
am__fastdepCC_TRUE='#'
5120
am__fastdepCC_FALSE=
6603
{ echo "$as_me:$LINENO: checking if _REENTRANT is already defined" >&5
6604
echo $ECHO_N "checking if _REENTRANT is already defined... $ECHO_C" >&6; }
6605
cat >conftest.$ac_ext <<_ACEOF
6609
cat confdefs.h >>conftest.$ac_ext
6610
cat >>conftest.$ac_ext <<_ACEOF
6611
/* end confdefs.h. */
6620
force compilation error
6628
rm -f conftest.$ac_objext
6629
if { (ac_try="$ac_compile"
6631
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6632
*) ac_try_echo=$ac_try;;
6634
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6635
(eval "$ac_compile") 2>conftest.er1
6637
grep -v '^ *+' conftest.er1 >conftest.err
6639
cat conftest.err >&5
6640
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6641
(exit $ac_status); } && {
6642
test -z "$ac_c_werror_flag" ||
6643
test ! -s conftest.err
6644
} && test -s conftest.$ac_objext; then
6646
{ echo "$as_me:$LINENO: result: yes" >&5
6647
echo "${ECHO_T}yes" >&6; }
6648
tmp_reentrant_initially_defined="yes"
6651
echo "$as_me: failed program was:" >&5
6652
sed 's/^/| /' conftest.$ac_ext >&5
6655
{ echo "$as_me:$LINENO: result: no" >&5
6656
echo "${ECHO_T}no" >&6; }
6657
tmp_reentrant_initially_defined="no"
6661
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6663
if test "$tmp_reentrant_initially_defined" = "no"; then
6664
{ echo "$as_me:$LINENO: checking if _REENTRANT is actually needed" >&5
6665
echo $ECHO_N "checking if _REENTRANT is actually needed... $ECHO_C" >&6; }
6669
tmp_need_reentrant="yes"
6672
tmp_need_reentrant="no"
6676
if test "$tmp_need_reentrant" = "no"; then
6678
if test "$tmp_need_reentrant" = "no"; then
6680
cat >conftest.$ac_ext <<_ACEOF
6684
cat confdefs.h >>conftest.$ac_ext
6685
cat >>conftest.$ac_ext <<_ACEOF
6686
/* end confdefs.h. */
6688
#define gmtime_r innocuous_gmtime_r
6690
# include <limits.h>
6692
# include <assert.h>
6699
#if defined __stub_gmtime_r || defined __stub___gmtime_r
6711
rm -f conftest.$ac_objext conftest$ac_exeext
6712
if { (ac_try="$ac_link"
6714
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6715
*) ac_try_echo=$ac_try;;
6717
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6718
(eval "$ac_link") 2>conftest.er1
6720
grep -v '^ *+' conftest.er1 >conftest.err
6722
cat conftest.err >&5
6723
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6724
(exit $ac_status); } && {
6725
test -z "$ac_c_werror_flag" ||
6726
test ! -s conftest.err
6727
} && test -s conftest$ac_exeext &&
6728
$as_test_x conftest$ac_exeext; then
6733
echo "$as_me: failed program was:" >&5
6734
sed 's/^/| /' conftest.$ac_ext >&5
6741
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6742
conftest$ac_exeext conftest.$ac_ext
6743
if test "$tmp_gmtime_r" = "yes"; then
6744
cat >conftest.$ac_ext <<_ACEOF
6747
cat confdefs.h >>conftest.$ac_ext
6748
cat >>conftest.$ac_ext <<_ACEOF
6749
/* end confdefs.h. */
6751
#include <sys/types.h>
6755
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6756
$EGREP "gmtime_r" >/dev/null 2>&1; then
6758
tmp_gmtime_r="proto_declared"
6762
cat >conftest.$ac_ext <<_ACEOF
6765
cat confdefs.h >>conftest.$ac_ext
6766
cat >>conftest.$ac_ext <<_ACEOF
6767
/* end confdefs.h. */
6770
#include <sys/types.h>
6774
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6775
$EGREP "gmtime_r" >/dev/null 2>&1; then
6777
tmp_gmtime_r="proto_needs_reentrant"
6778
tmp_need_reentrant="yes"
6790
if test "$tmp_need_reentrant" = "no"; then
6792
cat >conftest.$ac_ext <<_ACEOF
6796
cat confdefs.h >>conftest.$ac_ext
6797
cat >>conftest.$ac_ext <<_ACEOF
6798
/* end confdefs.h. */
6800
#define localtime_r innocuous_localtime_r
6802
# include <limits.h>
6804
# include <assert.h>
6810
char localtime_r ();
6811
#if defined __stub_localtime_r || defined __stub___localtime_r
6817
return localtime_r ();
6823
rm -f conftest.$ac_objext conftest$ac_exeext
6824
if { (ac_try="$ac_link"
6826
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6827
*) ac_try_echo=$ac_try;;
6829
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6830
(eval "$ac_link") 2>conftest.er1
6832
grep -v '^ *+' conftest.er1 >conftest.err
6834
cat conftest.err >&5
6835
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6836
(exit $ac_status); } && {
6837
test -z "$ac_c_werror_flag" ||
6838
test ! -s conftest.err
6839
} && test -s conftest$ac_exeext &&
6840
$as_test_x conftest$ac_exeext; then
6842
tmp_localtime_r="yes"
6845
echo "$as_me: failed program was:" >&5
6846
sed 's/^/| /' conftest.$ac_ext >&5
6849
tmp_localtime_r="no"
6853
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6854
conftest$ac_exeext conftest.$ac_ext
6855
if test "$tmp_localtime_r" = "yes"; then
6856
cat >conftest.$ac_ext <<_ACEOF
6859
cat confdefs.h >>conftest.$ac_ext
6860
cat >>conftest.$ac_ext <<_ACEOF
6861
/* end confdefs.h. */
6863
#include <sys/types.h>
6867
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6868
$EGREP "localtime_r" >/dev/null 2>&1; then
6870
tmp_localtime_r="proto_declared"
6874
cat >conftest.$ac_ext <<_ACEOF
6877
cat confdefs.h >>conftest.$ac_ext
6878
cat >>conftest.$ac_ext <<_ACEOF
6879
/* end confdefs.h. */
6882
#include <sys/types.h>
6886
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6887
$EGREP "localtime_r" >/dev/null 2>&1; then
6889
tmp_localtime_r="proto_needs_reentrant"
6890
tmp_need_reentrant="yes"
6902
if test "$tmp_need_reentrant" = "no"; then
6904
cat >conftest.$ac_ext <<_ACEOF
6908
cat confdefs.h >>conftest.$ac_ext
6909
cat >>conftest.$ac_ext <<_ACEOF
6910
/* end confdefs.h. */
6912
#define strerror_r innocuous_strerror_r
6914
# include <limits.h>
6916
# include <assert.h>
6923
#if defined __stub_strerror_r || defined __stub___strerror_r
6929
return strerror_r ();
6935
rm -f conftest.$ac_objext conftest$ac_exeext
6936
if { (ac_try="$ac_link"
6938
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6939
*) ac_try_echo=$ac_try;;
6941
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6942
(eval "$ac_link") 2>conftest.er1
6944
grep -v '^ *+' conftest.er1 >conftest.err
6946
cat conftest.err >&5
6947
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6948
(exit $ac_status); } && {
6949
test -z "$ac_c_werror_flag" ||
6950
test ! -s conftest.err
6951
} && test -s conftest$ac_exeext &&
6952
$as_test_x conftest$ac_exeext; then
6954
tmp_strerror_r="yes"
6957
echo "$as_me: failed program was:" >&5
6958
sed 's/^/| /' conftest.$ac_ext >&5
6965
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6966
conftest$ac_exeext conftest.$ac_ext
6967
if test "$tmp_strerror_r" = "yes"; then
6968
cat >conftest.$ac_ext <<_ACEOF
6971
cat confdefs.h >>conftest.$ac_ext
6972
cat >>conftest.$ac_ext <<_ACEOF
6973
/* end confdefs.h. */
6975
#include <sys/types.h>
6979
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6980
$EGREP "strerror_r" >/dev/null 2>&1; then
6982
tmp_strerror_r="proto_declared"
6986
cat >conftest.$ac_ext <<_ACEOF
6989
cat confdefs.h >>conftest.$ac_ext
6990
cat >>conftest.$ac_ext <<_ACEOF
6991
/* end confdefs.h. */
6994
#include <sys/types.h>
6998
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6999
$EGREP "strerror_r" >/dev/null 2>&1; then
7001
tmp_strerror_r="proto_needs_reentrant"
7002
tmp_need_reentrant="yes"
7014
if test "$tmp_need_reentrant" = "no"; then
7016
cat >conftest.$ac_ext <<_ACEOF
7020
cat confdefs.h >>conftest.$ac_ext
7021
cat >>conftest.$ac_ext <<_ACEOF
7022
/* end confdefs.h. */
7024
#define strtok_r innocuous_strtok_r
7026
# include <limits.h>
7028
# include <assert.h>
7035
#if defined __stub_strtok_r || defined __stub___strtok_r
7047
rm -f conftest.$ac_objext conftest$ac_exeext
7048
if { (ac_try="$ac_link"
7050
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7051
*) ac_try_echo=$ac_try;;
7053
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7054
(eval "$ac_link") 2>conftest.er1
7056
grep -v '^ *+' conftest.er1 >conftest.err
7058
cat conftest.err >&5
7059
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7060
(exit $ac_status); } && {
7061
test -z "$ac_c_werror_flag" ||
7062
test ! -s conftest.err
7063
} && test -s conftest$ac_exeext &&
7064
$as_test_x conftest$ac_exeext; then
7069
echo "$as_me: failed program was:" >&5
7070
sed 's/^/| /' conftest.$ac_ext >&5
7077
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7078
conftest$ac_exeext conftest.$ac_ext
7079
if test "$tmp_strtok_r" = "yes"; then
7080
cat >conftest.$ac_ext <<_ACEOF
7083
cat confdefs.h >>conftest.$ac_ext
7084
cat >>conftest.$ac_ext <<_ACEOF
7085
/* end confdefs.h. */
7087
#include <sys/types.h>
7091
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7092
$EGREP "strtok_r" >/dev/null 2>&1; then
7094
tmp_strtok_r="proto_declared"
7098
cat >conftest.$ac_ext <<_ACEOF
7101
cat confdefs.h >>conftest.$ac_ext
7102
cat >>conftest.$ac_ext <<_ACEOF
7103
/* end confdefs.h. */
7106
#include <sys/types.h>
7110
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7111
$EGREP "strtok_r" >/dev/null 2>&1; then
7113
tmp_strtok_r="proto_needs_reentrant"
7114
tmp_need_reentrant="yes"
7126
if test "$tmp_need_reentrant" = "no"; then
7128
cat >conftest.$ac_ext <<_ACEOF
7132
cat confdefs.h >>conftest.$ac_ext
7133
cat >>conftest.$ac_ext <<_ACEOF
7134
/* end confdefs.h. */
7136
#define inet_ntoa_r innocuous_inet_ntoa_r
7138
# include <limits.h>
7140
# include <assert.h>
7146
char inet_ntoa_r ();
7147
#if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r
7153
return inet_ntoa_r ();
7159
rm -f conftest.$ac_objext conftest$ac_exeext
7160
if { (ac_try="$ac_link"
7162
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7163
*) ac_try_echo=$ac_try;;
7165
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7166
(eval "$ac_link") 2>conftest.er1
7168
grep -v '^ *+' conftest.er1 >conftest.err
7170
cat conftest.err >&5
7171
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7172
(exit $ac_status); } && {
7173
test -z "$ac_c_werror_flag" ||
7174
test ! -s conftest.err
7175
} && test -s conftest$ac_exeext &&
7176
$as_test_x conftest$ac_exeext; then
7178
tmp_inet_ntoa_r="yes"
7181
echo "$as_me: failed program was:" >&5
7182
sed 's/^/| /' conftest.$ac_ext >&5
7185
tmp_inet_ntoa_r="no"
7189
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7190
conftest$ac_exeext conftest.$ac_ext
7191
if test "$tmp_inet_ntoa_r" = "yes"; then
7192
cat >conftest.$ac_ext <<_ACEOF
7195
cat confdefs.h >>conftest.$ac_ext
7196
cat >>conftest.$ac_ext <<_ACEOF
7197
/* end confdefs.h. */
7199
#include <sys/types.h>
7200
#include <sys/socket.h>
7201
#include <netinet/in.h>
7202
#include <arpa/inet.h>
7205
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7206
$EGREP "inet_ntoa_r" >/dev/null 2>&1; then
7208
tmp_inet_ntoa_r="proto_declared"
7212
cat >conftest.$ac_ext <<_ACEOF
7215
cat confdefs.h >>conftest.$ac_ext
7216
cat >>conftest.$ac_ext <<_ACEOF
7217
/* end confdefs.h. */
7220
#include <sys/types.h>
7221
#include <sys/socket.h>
7222
#include <netinet/in.h>
7223
#include <arpa/inet.h>
7226
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7227
$EGREP "inet_ntoa_r" >/dev/null 2>&1; then
7229
tmp_inet_ntoa_r="proto_needs_reentrant"
7230
tmp_need_reentrant="yes"
7242
if test "$tmp_need_reentrant" = "no"; then
7244
cat >conftest.$ac_ext <<_ACEOF
7248
cat confdefs.h >>conftest.$ac_ext
7249
cat >>conftest.$ac_ext <<_ACEOF
7250
/* end confdefs.h. */
7252
#define gethostbyaddr_r innocuous_gethostbyaddr_r
7254
# include <limits.h>
7256
# include <assert.h>
7258
#undef gethostbyaddr_r
7262
char gethostbyaddr_r ();
7263
#if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r
7269
return gethostbyaddr_r ();
7275
rm -f conftest.$ac_objext conftest$ac_exeext
7276
if { (ac_try="$ac_link"
7278
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7279
*) ac_try_echo=$ac_try;;
7281
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7282
(eval "$ac_link") 2>conftest.er1
7284
grep -v '^ *+' conftest.er1 >conftest.err
7286
cat conftest.err >&5
7287
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7288
(exit $ac_status); } && {
7289
test -z "$ac_c_werror_flag" ||
7290
test ! -s conftest.err
7291
} && test -s conftest$ac_exeext &&
7292
$as_test_x conftest$ac_exeext; then
7294
tmp_gethostbyaddr_r="yes"
7297
echo "$as_me: failed program was:" >&5
7298
sed 's/^/| /' conftest.$ac_ext >&5
7301
tmp_gethostbyaddr_r="no"
7305
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7306
conftest$ac_exeext conftest.$ac_ext
7307
if test "$tmp_gethostbyaddr_r" = "yes"; then
7308
cat >conftest.$ac_ext <<_ACEOF
7311
cat confdefs.h >>conftest.$ac_ext
7312
cat >>conftest.$ac_ext <<_ACEOF
7313
/* end confdefs.h. */
7315
#include <sys/types.h>
7319
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7320
$EGREP "gethostbyaddr_r" >/dev/null 2>&1; then
7322
tmp_gethostbyaddr_r="proto_declared"
7326
cat >conftest.$ac_ext <<_ACEOF
7329
cat confdefs.h >>conftest.$ac_ext
7330
cat >>conftest.$ac_ext <<_ACEOF
7331
/* end confdefs.h. */
7334
#include <sys/types.h>
7338
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7339
$EGREP "gethostbyaddr_r" >/dev/null 2>&1; then
7341
tmp_gethostbyaddr_r="proto_needs_reentrant"
7342
tmp_need_reentrant="yes"
7354
if test "$tmp_need_reentrant" = "no"; then
7356
cat >conftest.$ac_ext <<_ACEOF
7360
cat confdefs.h >>conftest.$ac_ext
7361
cat >>conftest.$ac_ext <<_ACEOF
7362
/* end confdefs.h. */
7364
#define gethostbyname_r innocuous_gethostbyname_r
7366
# include <limits.h>
7368
# include <assert.h>
7370
#undef gethostbyname_r
7374
char gethostbyname_r ();
7375
#if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
7381
return gethostbyname_r ();
7387
rm -f conftest.$ac_objext conftest$ac_exeext
7388
if { (ac_try="$ac_link"
7390
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7391
*) ac_try_echo=$ac_try;;
7393
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7394
(eval "$ac_link") 2>conftest.er1
7396
grep -v '^ *+' conftest.er1 >conftest.err
7398
cat conftest.err >&5
7399
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7400
(exit $ac_status); } && {
7401
test -z "$ac_c_werror_flag" ||
7402
test ! -s conftest.err
7403
} && test -s conftest$ac_exeext &&
7404
$as_test_x conftest$ac_exeext; then
7406
tmp_gethostbyname_r="yes"
7409
echo "$as_me: failed program was:" >&5
7410
sed 's/^/| /' conftest.$ac_ext >&5
7413
tmp_gethostbyname_r="no"
7417
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7418
conftest$ac_exeext conftest.$ac_ext
7419
if test "$tmp_gethostbyname_r" = "yes"; then
7420
cat >conftest.$ac_ext <<_ACEOF
7423
cat confdefs.h >>conftest.$ac_ext
7424
cat >>conftest.$ac_ext <<_ACEOF
7425
/* end confdefs.h. */
7427
#include <sys/types.h>
7431
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7432
$EGREP "gethostbyname_r" >/dev/null 2>&1; then
7434
tmp_gethostbyname_r="proto_declared"
7438
cat >conftest.$ac_ext <<_ACEOF
7441
cat confdefs.h >>conftest.$ac_ext
7442
cat >>conftest.$ac_ext <<_ACEOF
7443
/* end confdefs.h. */
7446
#include <sys/types.h>
7450
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7451
$EGREP "gethostbyname_r" >/dev/null 2>&1; then
7453
tmp_gethostbyname_r="proto_needs_reentrant"
7454
tmp_need_reentrant="yes"
7466
if test "$tmp_need_reentrant" = "no"; then
7468
cat >conftest.$ac_ext <<_ACEOF
7472
cat confdefs.h >>conftest.$ac_ext
7473
cat >>conftest.$ac_ext <<_ACEOF
7474
/* end confdefs.h. */
7476
#define getprotobyname_r innocuous_getprotobyname_r
7478
# include <limits.h>
7480
# include <assert.h>
7482
#undef getprotobyname_r
7486
char getprotobyname_r ();
7487
#if defined __stub_getprotobyname_r || defined __stub___getprotobyname_r
7493
return getprotobyname_r ();
7499
rm -f conftest.$ac_objext conftest$ac_exeext
7500
if { (ac_try="$ac_link"
7502
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7503
*) ac_try_echo=$ac_try;;
7505
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7506
(eval "$ac_link") 2>conftest.er1
7508
grep -v '^ *+' conftest.er1 >conftest.err
7510
cat conftest.err >&5
7511
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7512
(exit $ac_status); } && {
7513
test -z "$ac_c_werror_flag" ||
7514
test ! -s conftest.err
7515
} && test -s conftest$ac_exeext &&
7516
$as_test_x conftest$ac_exeext; then
7518
tmp_getprotobyname_r="yes"
7521
echo "$as_me: failed program was:" >&5
7522
sed 's/^/| /' conftest.$ac_ext >&5
7525
tmp_getprotobyname_r="no"
7529
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7530
conftest$ac_exeext conftest.$ac_ext
7531
if test "$tmp_getprotobyname_r" = "yes"; then
7532
cat >conftest.$ac_ext <<_ACEOF
7535
cat confdefs.h >>conftest.$ac_ext
7536
cat >>conftest.$ac_ext <<_ACEOF
7537
/* end confdefs.h. */
7539
#include <sys/types.h>
7543
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7544
$EGREP "getprotobyname_r" >/dev/null 2>&1; then
7546
tmp_getprotobyname_r="proto_declared"
7550
cat >conftest.$ac_ext <<_ACEOF
7553
cat confdefs.h >>conftest.$ac_ext
7554
cat >>conftest.$ac_ext <<_ACEOF
7555
/* end confdefs.h. */
7558
#include <sys/types.h>
7562
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7563
$EGREP "getprotobyname_r" >/dev/null 2>&1; then
7565
tmp_getprotobyname_r="proto_needs_reentrant"
7566
tmp_need_reentrant="yes"
7578
if test "$tmp_need_reentrant" = "no"; then
7580
cat >conftest.$ac_ext <<_ACEOF
7584
cat confdefs.h >>conftest.$ac_ext
7585
cat >>conftest.$ac_ext <<_ACEOF
7586
/* end confdefs.h. */
7588
#define getservbyport_r innocuous_getservbyport_r
7590
# include <limits.h>
7592
# include <assert.h>
7594
#undef getservbyport_r
7598
char getservbyport_r ();
7599
#if defined __stub_getservbyport_r || defined __stub___getservbyport_r
7605
return getservbyport_r ();
7611
rm -f conftest.$ac_objext conftest$ac_exeext
7612
if { (ac_try="$ac_link"
7614
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7615
*) ac_try_echo=$ac_try;;
7617
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7618
(eval "$ac_link") 2>conftest.er1
7620
grep -v '^ *+' conftest.er1 >conftest.err
7622
cat conftest.err >&5
7623
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7624
(exit $ac_status); } && {
7625
test -z "$ac_c_werror_flag" ||
7626
test ! -s conftest.err
7627
} && test -s conftest$ac_exeext &&
7628
$as_test_x conftest$ac_exeext; then
7630
tmp_getservbyport_r="yes"
7633
echo "$as_me: failed program was:" >&5
7634
sed 's/^/| /' conftest.$ac_ext >&5
7637
tmp_getservbyport_r="no"
7641
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7642
conftest$ac_exeext conftest.$ac_ext
7643
if test "$tmp_getservbyport_r" = "yes"; then
7644
cat >conftest.$ac_ext <<_ACEOF
7647
cat confdefs.h >>conftest.$ac_ext
7648
cat >>conftest.$ac_ext <<_ACEOF
7649
/* end confdefs.h. */
7651
#include <sys/types.h>
7655
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7656
$EGREP "getservbyport_r" >/dev/null 2>&1; then
7658
tmp_getservbyport_r="proto_declared"
7662
cat >conftest.$ac_ext <<_ACEOF
7665
cat confdefs.h >>conftest.$ac_ext
7666
cat >>conftest.$ac_ext <<_ACEOF
7667
/* end confdefs.h. */
7670
#include <sys/types.h>
7674
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7675
$EGREP "getservbyport_r" >/dev/null 2>&1; then
7677
tmp_getservbyport_r="proto_needs_reentrant"
7678
tmp_need_reentrant="yes"
7692
if test "$tmp_need_reentrant" = "yes"; then
7693
{ echo "$as_me:$LINENO: result: yes" >&5
7694
echo "${ECHO_T}yes" >&6; }
7696
{ echo "$as_me:$LINENO: result: no" >&5
7697
echo "${ECHO_T}no" >&6; }
7701
{ echo "$as_me:$LINENO: checking if _REENTRANT is onwards defined" >&5
7702
echo $ECHO_N "checking if _REENTRANT is onwards defined... $ECHO_C" >&6; }
7703
if test "$tmp_reentrant_initially_defined" = "yes" ||
7704
test "$tmp_need_reentrant" = "yes"; then
7707
cat >>confdefs.h <<\_ACEOF
7708
#define NEED_REENTRANT 1
7711
cat >>confdefs.h <<_EOF
7717
{ echo "$as_me:$LINENO: result: yes" >&5
7718
echo "${ECHO_T}yes" >&6; }
7720
{ echo "$as_me:$LINENO: result: no" >&5
7721
echo "${ECHO_T}no" >&6; }
5125
7726
# Check whether --enable-largefile was given.
11207
# Report which library types will actually be built
11208
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11209
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11210
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
11211
echo "${ECHO_T}$can_build_shared" >&6; }
11213
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11214
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11215
test "$can_build_shared" = "no" && enable_shared=no
11217
# On AIX, shared libraries and static libraries use the same namespace, and
11218
# are all built from PIC.
11221
test "$enable_shared" = yes && enable_static=no
11222
if test -n "$RANLIB"; then
11223
archive_cmds="$archive_cmds~\$RANLIB \$lib"
11224
postinstall_cmds='$RANLIB $lib'
11229
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11230
test "$enable_shared" = yes && enable_static=no
11234
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
11235
echo "${ECHO_T}$enable_shared" >&6; }
11237
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11238
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11239
# Make sure either enable_shared or enable_static is yes.
11240
test "$enable_shared" = yes || enable_static=yes
11241
{ echo "$as_me:$LINENO: result: $enable_static" >&5
11242
echo "${ECHO_T}$enable_static" >&6; }
11244
# The else clause should only fire when bootstrapping the
11245
# libtool distribution, otherwise you forgot to ship ltmain.sh
11246
# with your package, and you will get complaints that there are
11247
# no rules to generate ltmain.sh.
11248
if test -f "$ltmain"; then
11249
# See if we are running on zsh, and set the options which allow our commands through
11250
# without removal of \ escapes.
11251
if test -n "${ZSH_VERSION+set}" ; then
11252
setopt NO_GLOB_SUBST
11254
# Now quote all the things that may contain metacharacters while being
11255
# careful not to overquote the AC_SUBSTed values. We take copies of the
11256
# variables and quote the copies for generation of the libtool script.
11257
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11259
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11260
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11261
deplibs_check_method reload_flag reload_cmds need_locks \
11262
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11263
lt_cv_sys_global_symbol_to_c_name_address \
11264
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11265
old_postinstall_cmds old_postuninstall_cmds \
11269
lt_prog_compiler_wl \
11270
lt_prog_compiler_pic \
11271
lt_prog_compiler_static \
11272
lt_prog_compiler_no_builtin_flag \
11273
export_dynamic_flag_spec \
11274
thread_safe_flag_spec \
11275
whole_archive_flag_spec \
11276
enable_shared_with_static_runtimes \
11278
old_archive_from_new_cmds \
11283
compiler_lib_search_path \
11284
compiler_lib_search_dirs \
11286
archive_expsym_cmds \
11288
postuninstall_cmds \
11289
old_archive_from_expsyms_cmds \
11290
allow_undefined_flag \
11291
no_undefined_flag \
11292
export_symbols_cmds \
11293
hardcode_libdir_flag_spec \
11294
hardcode_libdir_flag_spec_ld \
11295
hardcode_libdir_separator \
11296
hardcode_automatic \
11298
module_expsym_cmds \
11299
lt_cv_prog_compiler_c_o \
11302
include_expsyms; do
11305
old_archive_cmds | \
11306
old_archive_from_new_cmds | \
11308
archive_expsym_cmds | \
11310
module_expsym_cmds | \
11311
old_archive_from_expsyms_cmds | \
11312
export_symbols_cmds | \
11313
extract_expsyms_cmds | reload_cmds | finish_cmds | \
11314
postinstall_cmds | postuninstall_cmds | \
11315
old_postinstall_cmds | old_postuninstall_cmds | \
11316
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11317
# Double-quote double-evaled strings.
11318
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11321
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11327
*'\$0 --fallback-echo"')
11328
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11332
cfgfile="${ofile}T"
11333
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11335
{ echo "$as_me:$LINENO: creating $ofile" >&5
11336
echo "$as_me: creating $ofile" >&6;}
11338
cat <<__EOF__ >> "$cfgfile"
11341
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11342
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11343
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
11345
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
11346
# Free Software Foundation, Inc.
11348
# This file is part of GNU Libtool:
11349
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11351
# This program is free software; you can redistribute it and/or modify
11352
# it under the terms of the GNU General Public License as published by
11353
# the Free Software Foundation; either version 2 of the License, or
11354
# (at your option) any later version.
11356
# This program is distributed in the hope that it will be useful, but
11357
# WITHOUT ANY WARRANTY; without even the implied warranty of
11358
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11359
# General Public License for more details.
11361
# You should have received a copy of the GNU General Public License
11362
# along with this program; if not, write to the Free Software
11363
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11365
# As a special exception to the GNU General Public License, if you
11366
# distribute this file as part of a program that contains a
11367
# configuration script generated by Autoconf, you may include it under
11368
# the same distribution terms that you use for the rest of that program.
11370
# A sed program that does not truncate output.
11373
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
11374
Xsed="$SED -e 1s/^X//"
11376
# The HP-UX ksh and POSIX shell print the target directory to stdout
11377
# if CDPATH is set.
11378
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11380
# The names of the tagged configurations supported by this script.
11383
# ### BEGIN LIBTOOL CONFIG
11385
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11387
# Shell to use when invoking shell scripts.
11390
# Whether or not to build shared libraries.
11391
build_libtool_libs=$enable_shared
11393
# Whether or not to build static libraries.
11394
build_old_libs=$enable_static
11396
# Whether or not to add -lc for building shared libraries.
11397
build_libtool_need_lc=$archive_cmds_need_lc
11399
# Whether or not to disallow shared libs when runtime libs are static
11400
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11402
# Whether or not to optimize for fast installation.
11403
fast_install=$enable_fast_install
11406
host_alias=$host_alias
11410
# The build system.
11411
build_alias=$build_alias
11415
# An echo program that does not interpret backslashes.
11420
AR_FLAGS=$lt_AR_FLAGS
11425
# LTCC compiler flags.
11426
LTCFLAGS=$lt_LTCFLAGS
11428
# A language-specific compiler.
11431
# Is the compiler the GNU C compiler?
11437
# The linker used to build libraries.
11440
# Whether we need hard or soft links.
11443
# A BSD-compatible nm program.
11446
# A symbol stripping program
11449
# Used to examine libraries when file_magic_cmd begins "file"
11450
MAGIC_CMD=$MAGIC_CMD
11452
# Used on cygwin: DLL creation program.
11455
# Used on cygwin: object dumper.
11458
# Used on cygwin: assembler.
11461
# The name of the directory that contains temporary libtool files.
11464
# How to create reloadable object files.
11465
reload_flag=$lt_reload_flag
11466
reload_cmds=$lt_reload_cmds
11468
# How to pass a linker flag through the compiler.
11469
wl=$lt_lt_prog_compiler_wl
11471
# Object file suffix (normally "o").
11472
objext="$ac_objext"
11474
# Old archive suffix (normally "a").
11477
# Shared library suffix (normally ".so").
11478
shrext_cmds='$shrext_cmds'
11480
# Executable file suffix (normally "").
11483
# Additional compiler flags for building library objects.
11484
pic_flag=$lt_lt_prog_compiler_pic
11487
# What is the maximum length of a command?
11488
max_cmd_len=$lt_cv_sys_max_cmd_len
11490
# Does compiler simultaneously support -c and -o options?
11491
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11493
# Must we lock files when doing compilation?
11494
need_locks=$lt_need_locks
11496
# Do we need the lib prefix for modules?
11497
need_lib_prefix=$need_lib_prefix
11499
# Do we need a version for libraries?
11500
need_version=$need_version
11502
# Whether dlopen is supported.
11503
dlopen_support=$enable_dlopen
11505
# Whether dlopen of programs is supported.
11506
dlopen_self=$enable_dlopen_self
11508
# Whether dlopen of statically linked programs is supported.
11509
dlopen_self_static=$enable_dlopen_self_static
11511
# Compiler flag to prevent dynamic linking.
11512
link_static_flag=$lt_lt_prog_compiler_static
11514
# Compiler flag to turn off builtin functions.
11515
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11517
# Compiler flag to allow reflexive dlopens.
11518
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11520
# Compiler flag to generate shared objects directly from archives.
11521
whole_archive_flag_spec=$lt_whole_archive_flag_spec
11523
# Compiler flag to generate thread-safe objects.
11524
thread_safe_flag_spec=$lt_thread_safe_flag_spec
11526
# Library versioning type.
11527
version_type=$version_type
11529
# Format of library name prefix.
11530
libname_spec=$lt_libname_spec
11532
# List of archive names. First name is the real one, the rest are links.
11533
# The last name is the one that the linker finds with -lNAME.
11534
library_names_spec=$lt_library_names_spec
11536
# The coded name of the library, if different from the real name.
11537
soname_spec=$lt_soname_spec
11539
# Commands used to build and install an old-style archive.
11541
old_archive_cmds=$lt_old_archive_cmds
11542
old_postinstall_cmds=$lt_old_postinstall_cmds
11543
old_postuninstall_cmds=$lt_old_postuninstall_cmds
11545
# Create an old-style archive from a shared archive.
11546
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11548
# Create a temporary old-style archive to link instead of a shared archive.
11549
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11551
# Commands used to build and install a shared archive.
11552
archive_cmds=$lt_archive_cmds
11553
archive_expsym_cmds=$lt_archive_expsym_cmds
11554
postinstall_cmds=$lt_postinstall_cmds
11555
postuninstall_cmds=$lt_postuninstall_cmds
11557
# Commands used to build a loadable module (assumed same as above if empty)
11558
module_cmds=$lt_module_cmds
11559
module_expsym_cmds=$lt_module_expsym_cmds
11561
# Commands to strip libraries.
11562
old_striplib=$lt_old_striplib
11563
striplib=$lt_striplib
11565
# Dependencies to place before the objects being linked to create a
11567
predep_objects=$lt_predep_objects
11569
# Dependencies to place after the objects being linked to create a
11571
postdep_objects=$lt_postdep_objects
11573
# Dependencies to place before the objects being linked to create a
11575
predeps=$lt_predeps
11577
# Dependencies to place after the objects being linked to create a
11579
postdeps=$lt_postdeps
11581
# The directories searched by this compiler when creating a shared
11583
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
11585
# The library search path used internally by the compiler when linking
11586
# a shared library.
11587
compiler_lib_search_path=$lt_compiler_lib_search_path
11589
# Method to check whether dependent libraries are shared objects.
11590
deplibs_check_method=$lt_deplibs_check_method
11592
# Command to use when deplibs_check_method == file_magic.
11593
file_magic_cmd=$lt_file_magic_cmd
11595
# Flag that allows shared libraries with undefined symbols to be built.
11596
allow_undefined_flag=$lt_allow_undefined_flag
11598
# Flag that forces no undefined symbols.
11599
no_undefined_flag=$lt_no_undefined_flag
11601
# Commands used to finish a libtool library installation in a directory.
11602
finish_cmds=$lt_finish_cmds
11604
# Same as above, but a single script fragment to be evaled but not shown.
11605
finish_eval=$lt_finish_eval
11607
# Take the output of nm and produce a listing of raw symbols and C names.
11608
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11610
# Transform the output of nm in a proper C declaration
11611
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11613
# Transform the output of nm in a C name address pair
11614
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11616
# This is the shared library runtime path variable.
11617
runpath_var=$runpath_var
11619
# This is the shared library path variable.
11620
shlibpath_var=$shlibpath_var
11622
# Is shlibpath searched before the hard-coded library search path?
11623
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11625
# How to hardcode a shared library path into an executable.
11626
hardcode_action=$hardcode_action
11628
# Whether we should hardcode library paths into libraries.
11629
hardcode_into_libs=$hardcode_into_libs
11631
# Flag to hardcode \$libdir into a binary during linking.
11632
# This must work even if \$libdir does not exist.
11633
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11635
# If ld is used when linking, flag to hardcode \$libdir into
11636
# a binary during linking. This must work even if \$libdir does
11638
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11640
# Whether we need a single -rpath flag with a separated argument.
11641
hardcode_libdir_separator=$lt_hardcode_libdir_separator
11643
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11644
# resulting binary.
11645
hardcode_direct=$hardcode_direct
11647
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11648
# resulting binary.
11649
hardcode_minus_L=$hardcode_minus_L
11651
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11652
# the resulting binary.
11653
hardcode_shlibpath_var=$hardcode_shlibpath_var
11655
# Set to yes if building a shared library automatically hardcodes DIR into the library
11656
# and all subsequent libraries and executables linked against it.
11657
hardcode_automatic=$hardcode_automatic
11659
# Variables whose values should be saved in libtool wrapper scripts and
11660
# restored at relink time.
11661
variables_saved_for_relink="$variables_saved_for_relink"
11663
# Whether libtool must link a program against all its dependency libraries.
11664
link_all_deplibs=$link_all_deplibs
11666
# Compile-time system search path for libraries
11667
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11669
# Run-time system search path for libraries
11670
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11672
# Fix the shell variable \$srcfile for the compiler.
11673
fix_srcfile_path=$lt_fix_srcfile_path
11675
# Set to yes if exported symbols are required.
11676
always_export_symbols=$always_export_symbols
11678
# The commands to list exported symbols.
11679
export_symbols_cmds=$lt_export_symbols_cmds
11681
# The commands to extract the exported symbol list from a shared archive.
11682
extract_expsyms_cmds=$lt_extract_expsyms_cmds
11684
# Symbols that should not be listed in the preloaded symbols.
11685
exclude_expsyms=$lt_exclude_expsyms
11687
# Symbols that must always be exported.
11688
include_expsyms=$lt_include_expsyms
11690
# ### END LIBTOOL CONFIG
11697
cat <<\EOF >> "$cfgfile"
11699
# AIX sometimes has problems with the GCC collect2 program. For some
11700
# reason, if we set the COLLECT_NAMES environment variable, the problems
11701
# vanish in a puff of smoke.
11702
if test "X${COLLECT_NAMES+set}" != Xset; then
11704
export COLLECT_NAMES
11710
# We use sed instead of cat because bash on DJGPP gets confused if
11711
# if finds mixed CR/LF and LF-only lines. Since sed operates in
11712
# text mode, it properly converts lines to CR/LF. This bash problem
11713
# is reportedly fixed, but why not run on old versions too?
11714
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11716
mv -f "$cfgfile" "$ofile" || \
11717
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11721
# If there is no Makefile yet, we rely on a make rule to execute
11722
# `config.status --recheck' to rerun these tests and create the
11723
# libtool script then.
11724
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11725
if test -f "$ltmain_in"; then
11726
test -f Makefile && make "$ltmain"
11732
ac_cpp='$CPP $CPPFLAGS'
11733
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11734
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11735
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11740
# Check whether --with-tags was given.
11741
if test "${with_tags+set}" = set; then
11742
withval=$with_tags; tagnames="$withval"
11746
if test -f "$ltmain" && test -n "$tagnames"; then
11747
if test ! -f "${ofile}"; then
11748
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11749
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11752
if test -z "$LTCC"; then
11753
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11754
if test -z "$LTCC"; then
11755
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11756
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11758
{ echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11759
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11762
if test -z "$LTCFLAGS"; then
11763
eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11766
# Extract list of available tagged configurations in $ofile.
11767
# Note that this assumes the entire list is on one line.
11768
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11770
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11771
for tagname in $tagnames; do
11773
# Check whether tagname contains only valid characters
11774
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11776
*) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11777
echo "$as_me: error: invalid tag name: $tagname" >&2;}
11778
{ (exit 1); exit 1; }; }
11782
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11784
{ { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11785
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11786
{ (exit 1); exit 1; }; }
11789
# Update the list of available tags.
11790
if test -n "$tagname"; then
11791
echo appending configuration tag \"$tagname\" to $ofile
11795
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11796
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11797
(test "X$CXX" != "Xg++"))) ; then
11799
ac_cpp='$CXXCPP $CPPFLAGS'
11800
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11801
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11802
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11807
archive_cmds_need_lc_CXX=no
11808
allow_undefined_flag_CXX=
11809
always_export_symbols_CXX=no
11810
archive_expsym_cmds_CXX=
11811
export_dynamic_flag_spec_CXX=
11812
hardcode_direct_CXX=no
11813
hardcode_libdir_flag_spec_CXX=
11814
hardcode_libdir_flag_spec_ld_CXX=
11815
hardcode_libdir_separator_CXX=
11816
hardcode_minus_L_CXX=no
11817
hardcode_shlibpath_var_CXX=unsupported
11818
hardcode_automatic_CXX=no
11820
module_expsym_cmds_CXX=
11821
link_all_deplibs_CXX=unknown
11822
old_archive_cmds_CXX=$old_archive_cmds
11823
no_undefined_flag_CXX=
11824
whole_archive_flag_spec_CXX=
11825
enable_shared_with_static_runtimes_CXX=no
11827
# Dependencies to place before and after the object being linked:
11828
predep_objects_CXX=
11829
postdep_objects_CXX=
11832
compiler_lib_search_path_CXX=
11833
compiler_lib_search_dirs_CXX=
11835
# Source file extension for C++ test sources.
11838
# Object file extension for compiled C++ test sources.
11842
# Code to be used in simple compile tests
11843
lt_simple_compile_test_code="int some_variable = 0;"
11845
# Code to be used in simple link tests
11846
lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11848
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11850
# If no C compiler was specified, use CC.
11853
# If no C compiler flags were specified, use CFLAGS.
11854
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11856
# Allow CC to be a program name with arguments.
11860
# save warnings/boilerplate of simple test code
11861
ac_outfile=conftest.$ac_objext
11862
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11863
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11864
_lt_compiler_boilerplate=`cat conftest.err`
11867
ac_outfile=conftest.$ac_objext
11868
echo "$lt_simple_link_test_code" >conftest.$ac_ext
11869
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11870
_lt_linker_boilerplate=`cat conftest.err`
11874
# Allow CC to be a program name with arguments.
11879
lt_save_with_gnu_ld=$with_gnu_ld
11880
lt_save_path_LD=$lt_cv_path_LD
11881
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11882
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11884
$as_unset lt_cv_prog_gnu_ld
11886
if test -n "${lt_cv_path_LDCXX+set}"; then
11887
lt_cv_path_LD=$lt_cv_path_LDCXX
11889
$as_unset lt_cv_path_LD
11891
test -z "${LDCXX+set}" || LD=$LDCXX
11895
for cc_temp in $compiler""; do
11897
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11898
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11903
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11906
# We don't want -fno-exception wen compiling C++ code, so set the
11907
# no_builtin_flag separately
11908
if test "$GXX" = yes; then
11909
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11911
lt_prog_compiler_no_builtin_flag_CXX=
11914
if test "$GXX" = yes; then
11915
# Set up default GNU C++ configuration
11918
# Check whether --with-gnu-ld was given.
11919
if test "${with_gnu_ld+set}" = set; then
11920
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11926
if test "$GCC" = yes; then
11927
# Check if gcc -print-prog-name=ld gives a path.
11928
{ echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11929
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11932
# gcc leaves a trailing carriage return which upsets mingw
11933
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11935
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11938
# Accept absolute paths.
11940
re_direlt='/[^/][^/]*/\.\./'
11941
# Canonicalize the pathname of ld
11942
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11943
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11944
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11946
test -z "$LD" && LD="$ac_prog"
11949
# If it fails, then pretend we aren't using GCC.
11953
# If it is relative, then search for the first ld in PATH.
11954
with_gnu_ld=unknown
11957
elif test "$with_gnu_ld" = yes; then
11958
{ echo "$as_me:$LINENO: checking for GNU ld" >&5
11959
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11961
{ echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11962
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11964
if test "${lt_cv_path_LD+set}" = set; then
11965
echo $ECHO_N "(cached) $ECHO_C" >&6
11967
if test -z "$LD"; then
11968
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11969
for ac_dir in $PATH; do
11971
test -z "$ac_dir" && ac_dir=.
11972
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11973
lt_cv_path_LD="$ac_dir/$ac_prog"
11974
# Check to see if the program is GNU ld. I'd rather use --version,
11975
# but apparently some variants of GNU ld only accept -v.
11976
# Break only if it was the GNU/non-GNU ld that we prefer.
11977
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11978
*GNU* | *'with BFD'*)
11979
test "$with_gnu_ld" != no && break
11982
test "$with_gnu_ld" != yes && break
11989
lt_cv_path_LD="$LD" # Let the user override the test with a path.
11993
LD="$lt_cv_path_LD"
11994
if test -n "$LD"; then
11995
{ echo "$as_me:$LINENO: result: $LD" >&5
11996
echo "${ECHO_T}$LD" >&6; }
11998
{ echo "$as_me:$LINENO: result: no" >&5
11999
echo "${ECHO_T}no" >&6; }
12001
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12002
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12003
{ (exit 1); exit 1; }; }
12004
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12005
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12006
if test "${lt_cv_prog_gnu_ld+set}" = set; then
12007
echo $ECHO_N "(cached) $ECHO_C" >&6
12009
# I'd rather use --version here, but apparently some GNU lds only accept -v.
12010
case `$LD -v 2>&1 </dev/null` in
12011
*GNU* | *'with BFD'*)
12012
lt_cv_prog_gnu_ld=yes
12015
lt_cv_prog_gnu_ld=no
12019
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12020
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12021
with_gnu_ld=$lt_cv_prog_gnu_ld
12025
# Check if GNU C++ uses GNU ld as the underlying linker, since the
12026
# archiving commands below assume that GNU ld is being used.
12027
if test "$with_gnu_ld" = yes; then
12028
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12029
archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12031
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12032
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12034
# If archive_cmds runs LD, not CC, wlarc should be empty
12035
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12036
# investigate it a little bit more. (MM)
12039
# ancient GNU ld didn't support --whole-archive et. al.
12040
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12041
grep 'no-whole-archive' > /dev/null; then
12042
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12044
whole_archive_flag_spec_CXX=
12050
# A generic and very simple default shared library creation
12051
# command for GNU C++ for the case where it uses the native
12052
# linker, instead of GNU ld. If possible, this setting should
12053
# overridden to take advantage of the native linker features on
12054
# the platform it is being used on.
12055
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12058
# Commands to make compiler produce verbose output that lists
12059
# what "hidden" libraries, object files and flags are used when
12060
# linking a shared library.
12061
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12069
# PORTME: fill in a description of your system's C++ link characteristics
12070
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12071
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12075
# FIXME: insert proper C++ library support
12079
if test "$host_cpu" = ia64; then
12080
# On IA64, the linker does run time linking by default, so we don't
12081
# have to do anything special.
12082
aix_use_runtimelinking=no
12083
exp_sym_flag='-Bexport'
12086
aix_use_runtimelinking=no
12088
# Test if we are trying to use run time linking or normal
12089
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
12090
# need to do runtime linking.
12091
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12092
for ld_flag in $LDFLAGS; do
12095
aix_use_runtimelinking=yes
12103
exp_sym_flag='-bexport'
12104
no_entry_flag='-bnoentry'
12107
# When large executables or shared objects are built, AIX ld can
12108
# have problems creating the table of contents. If linking a library
12109
# or program results in "error TOC overflow" add -mminimal-toc to
12110
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12111
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12113
archive_cmds_CXX=''
12114
hardcode_direct_CXX=yes
12115
hardcode_libdir_separator_CXX=':'
12116
link_all_deplibs_CXX=yes
12118
if test "$GXX" = yes; then
12119
case $host_os in aix4.[012]|aix4.[012].*)
12120
# We only want to do this on AIX 4.2 and lower, the check
12121
# below for broken collect2 doesn't work under 4.3+
12122
collect2name=`${CC} -print-prog-name=collect2`
12123
if test -f "$collect2name" && \
12124
strings "$collect2name" | grep resolve_lib_name >/dev/null
12126
# We have reworked collect2
12129
# We have old collect2
12130
hardcode_direct_CXX=unsupported
12131
# It fails to find uninstalled libraries when the uninstalled
12132
# path is not listed in the libpath. Setting hardcode_minus_L
12133
# to unsupported forces relinking
12134
hardcode_minus_L_CXX=yes
12135
hardcode_libdir_flag_spec_CXX='-L$libdir'
12136
hardcode_libdir_separator_CXX=
12140
shared_flag='-shared'
12141
if test "$aix_use_runtimelinking" = yes; then
12142
shared_flag="$shared_flag "'${wl}-G'
12146
if test "$host_cpu" = ia64; then
12147
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12148
# chokes on -Wl,-G. The following line is correct:
12151
if test "$aix_use_runtimelinking" = yes; then
12152
shared_flag='${wl}-G'
12154
shared_flag='${wl}-bM:SRE'
12159
# It seems that -bexpall does not export symbols beginning with
12160
# underscore (_), so it is better to generate a list of symbols to export.
12161
always_export_symbols_CXX=yes
12162
if test "$aix_use_runtimelinking" = yes; then
12163
# Warning - without using the other runtime loading flags (-brtl),
12164
# -berok will link without error, but may produce a broken library.
12165
allow_undefined_flag_CXX='-berok'
12166
# Determine the default libpath from the value encoded in an empty executable.
12167
cat >conftest.$ac_ext <<_ACEOF
12170
cat confdefs.h >>conftest.$ac_ext
12171
cat >>conftest.$ac_ext <<_ACEOF
12172
/* end confdefs.h. */
12182
rm -f conftest.$ac_objext conftest$ac_exeext
12183
if { (ac_try="$ac_link"
12184
case "(($ac_try" in
12185
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12186
*) ac_try_echo=$ac_try;;
12188
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12189
(eval "$ac_link") 2>conftest.er1
12191
grep -v '^ *+' conftest.er1 >conftest.err
12193
cat conftest.err >&5
12194
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12195
(exit $ac_status); } && {
12196
test -z "$ac_cxx_werror_flag" ||
12197
test ! -s conftest.err
12198
} && test -s conftest$ac_exeext &&
12199
$as_test_x conftest$ac_exeext; then
12201
lt_aix_libpath_sed='
12202
/Import File Strings/,/^$/ {
12208
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12209
# Check for a 64-bit object if we didn't find anything.
12210
if test -z "$aix_libpath"; then
12211
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12214
echo "$as_me: failed program was:" >&5
12215
sed 's/^/| /' conftest.$ac_ext >&5
12220
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12221
conftest$ac_exeext conftest.$ac_ext
12222
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12224
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12226
archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12228
if test "$host_cpu" = ia64; then
12229
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12230
allow_undefined_flag_CXX="-z nodefs"
12231
archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
12233
# Determine the default libpath from the value encoded in an empty executable.
12234
cat >conftest.$ac_ext <<_ACEOF
12237
cat confdefs.h >>conftest.$ac_ext
12238
cat >>conftest.$ac_ext <<_ACEOF
12239
/* end confdefs.h. */
12249
rm -f conftest.$ac_objext conftest$ac_exeext
12250
if { (ac_try="$ac_link"
12251
case "(($ac_try" in
12252
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12253
*) ac_try_echo=$ac_try;;
12255
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12256
(eval "$ac_link") 2>conftest.er1
12258
grep -v '^ *+' conftest.er1 >conftest.err
12260
cat conftest.err >&5
12261
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12262
(exit $ac_status); } && {
12263
test -z "$ac_cxx_werror_flag" ||
12264
test ! -s conftest.err
12265
} && test -s conftest$ac_exeext &&
12266
$as_test_x conftest$ac_exeext; then
12268
lt_aix_libpath_sed='
12269
/Import File Strings/,/^$/ {
12275
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12276
# Check for a 64-bit object if we didn't find anything.
12277
if test -z "$aix_libpath"; then
12278
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12281
echo "$as_me: failed program was:" >&5
12282
sed 's/^/| /' conftest.$ac_ext >&5
12287
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12288
conftest$ac_exeext conftest.$ac_ext
12289
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12291
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12292
# Warning - without using the other run time loading flags,
12293
# -berok will link without error, but may produce a broken library.
12294
no_undefined_flag_CXX=' ${wl}-bernotok'
12295
allow_undefined_flag_CXX=' ${wl}-berok'
12296
# Exported symbols can be pulled into shared objects from archives
12297
whole_archive_flag_spec_CXX='$convenience'
12298
archive_cmds_need_lc_CXX=yes
12299
# This is similar to how AIX traditionally builds its shared libraries.
12300
archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12306
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12307
allow_undefined_flag_CXX=unsupported
12308
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12309
# support --undefined. This deserves some investigation. FIXME
12310
archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12317
case $cc_basename in
12319
# FIXME: insert proper C++ library support
12325
cygwin* | mingw* | pw32*)
12326
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12327
# as there is no search path for DLLs.
12328
hardcode_libdir_flag_spec_CXX='-L$libdir'
12329
allow_undefined_flag_CXX=unsupported
12330
always_export_symbols_CXX=no
12331
enable_shared_with_static_runtimes_CXX=yes
12333
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12334
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12335
# If the export-symbols file already is a .def file (1st line
12336
# is EXPORTS), use it as is; otherwise, prepend...
12337
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12338
cp $export_symbols $output_objdir/$soname.def;
12340
echo EXPORTS > $output_objdir/$soname.def;
12341
cat $export_symbols >> $output_objdir/$soname.def;
12343
$CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12348
darwin* | rhapsody*)
12349
archive_cmds_need_lc_CXX=no
12350
hardcode_direct_CXX=no
12351
hardcode_automatic_CXX=yes
12352
hardcode_shlibpath_var_CXX=unsupported
12353
whole_archive_flag_spec_CXX=''
12354
link_all_deplibs_CXX=yes
12355
allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12356
if test "$GXX" = yes ; then
12357
output_verbose_link_cmd='echo'
12358
archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12359
module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12360
archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
12361
module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
12362
if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12363
archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
12364
archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
12367
case $cc_basename in
12369
output_verbose_link_cmd='echo'
12370
archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
12371
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12372
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12373
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12374
module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12384
case $cc_basename in
12386
# FIXME: insert proper C++ library support
12390
# Green Hills C++ Compiler
12391
# FIXME: insert proper C++ library support
12395
# FIXME: insert proper C++ library support
12401
# C++ shared libraries reported to be fairly broken before switch to ELF
12405
archive_cmds_need_lc_CXX=no
12407
freebsd* | dragonfly*)
12408
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12415
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12416
hardcode_libdir_separator_CXX=:
12417
export_dynamic_flag_spec_CXX='${wl}-E'
12418
hardcode_direct_CXX=yes
12419
hardcode_minus_L_CXX=yes # Not in the search PATH,
12420
# but as the default
12421
# location of the library.
12423
case $cc_basename in
12425
# FIXME: insert proper C++ library support
12429
archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12430
# Commands to make compiler produce verbose output that lists
12431
# what "hidden" libraries, object files and flags are used when
12432
# linking a shared library.
12434
# There doesn't appear to be a way to prevent this compiler from
12435
# explicitly linking system object files so we need to strip them
12436
# from the output so that they don't get included in the library
12438
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12441
if test "$GXX" = yes; then
12442
archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12444
# FIXME: insert proper C++ library support
12451
if test $with_gnu_ld = no; then
12452
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12453
hardcode_libdir_separator_CXX=:
12458
export_dynamic_flag_spec_CXX='${wl}-E'
12464
hardcode_direct_CXX=no
12465
hardcode_shlibpath_var_CXX=no
12468
hardcode_direct_CXX=yes
12469
hardcode_minus_L_CXX=yes # Not in the search PATH,
12470
# but as the default
12471
# location of the library.
12475
case $cc_basename in
12477
# FIXME: insert proper C++ library support
12483
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12486
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12489
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12492
# Commands to make compiler produce verbose output that lists
12493
# what "hidden" libraries, object files and flags are used when
12494
# linking a shared library.
12496
# There doesn't appear to be a way to prevent this compiler from
12497
# explicitly linking system object files so we need to strip them
12498
# from the output so that they don't get included in the library
12500
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12503
if test "$GXX" = yes; then
12504
if test $with_gnu_ld = no; then
12507
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12510
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12513
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12518
# FIXME: insert proper C++ library support
12525
hardcode_direct_CXX=no
12526
hardcode_shlibpath_var_CXX=no
12527
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12528
export_dynamic_flag_spec_CXX='${wl}-E'
12529
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12530
# Instead, shared libraries are loaded at an image base (0x10000000 by
12531
# default) and relocated if they conflict, which is a slow very memory
12532
# consuming and fragmenting process. To avoid this, we pick a random,
12533
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12534
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
12535
archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12536
archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12539
case $cc_basename in
12542
archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12544
# Archives containing C++ object files must be created using
12545
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
12546
# necessary to make sure instantiated templates are included
12548
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12551
if test "$GXX" = yes; then
12552
if test "$with_gnu_ld" = no; then
12553
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12555
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
12558
link_all_deplibs_CXX=yes
12561
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12562
hardcode_libdir_separator_CXX=:
12564
linux* | k*bsd*-gnu)
12565
case $cc_basename in
12567
# Kuck and Associates, Inc. (KAI) C++ Compiler
12569
# KCC will only create a shared library if the output file
12570
# ends with ".so" (or ".sl" for HP-UX), so rename the library
12571
# to its proper name (with version) after linking.
12572
archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12573
archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
12574
# Commands to make compiler produce verbose output that lists
12575
# what "hidden" libraries, object files and flags are used when
12576
# linking a shared library.
12578
# There doesn't appear to be a way to prevent this compiler from
12579
# explicitly linking system object files so we need to strip them
12580
# from the output so that they don't get included in the library
12582
output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12584
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12585
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12587
# Archives containing C++ object files must be created using
12588
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12589
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12594
# version 8.0 and above of icpc choke on multiply defined symbols
12595
# if we add $predep_objects and $postdep_objects, however 7.1 and
12596
# earlier do not add the objects themselves.
12597
case `$CC -V 2>&1` in
12599
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12600
archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12602
*) # Version 8.0 or newer
12605
ia64*) tmp_idyn=' -i_dynamic';;
12607
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12608
archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12611
archive_cmds_need_lc_CXX=no
12612
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12613
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12614
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12617
# Portland Group C++ compiler
12618
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12619
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12621
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12622
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12623
whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
12627
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12628
archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
12630
runpath_var=LD_RUN_PATH
12631
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12632
hardcode_libdir_separator_CXX=:
12634
# Commands to make compiler produce verbose output that lists
12635
# what "hidden" libraries, object files and flags are used when
12636
# linking a shared library.
12638
# There doesn't appear to be a way to prevent this compiler from
12639
# explicitly linking system object files so we need to strip them
12640
# from the output so that they don't get included in the library
12642
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12645
case `$CC -V 2>&1 | sed 5q` in
12648
no_undefined_flag_CXX=' -zdefs'
12649
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12650
archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
12651
hardcode_libdir_flag_spec_CXX='-R$libdir'
12652
whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
12654
# Not sure whether something based on
12655
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12657
output_verbose_link_cmd='echo'
12659
# Archives containing C++ object files must be created using
12660
# "CC -xar", where "CC" is the Sun C++ compiler. This is
12661
# necessary to make sure instantiated templates are included
12663
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12670
# FIXME: insert proper C++ library support
12674
# FIXME: insert proper C++ library support
12678
case $cc_basename in
12680
# FIXME: insert proper C++ library support
12684
# FIXME: insert proper C++ library support
12689
netbsd* | netbsdelf*-gnu)
12690
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12691
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12693
hardcode_libdir_flag_spec_CXX='-R$libdir'
12694
hardcode_direct_CXX=yes
12695
hardcode_shlibpath_var_CXX=no
12697
# Workaround some broken pre-1.5 toolchains
12698
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12701
# C++ shared libraries are fairly broken
12705
if test -f /usr/libexec/ld.so; then
12706
hardcode_direct_CXX=yes
12707
hardcode_shlibpath_var_CXX=no
12708
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12709
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12710
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12711
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12712
export_dynamic_flag_spec_CXX='${wl}-E'
12713
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12715
output_verbose_link_cmd='echo'
12721
case $cc_basename in
12723
# Kuck and Associates, Inc. (KAI) C++ Compiler
12725
# KCC will only create a shared library if the output file
12726
# ends with ".so" (or ".sl" for HP-UX), so rename the library
12727
# to its proper name (with version) after linking.
12728
archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12730
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12731
hardcode_libdir_separator_CXX=:
12733
# Archives containing C++ object files must be created using
12734
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12735
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12739
# Rational C++ 2.4.1
12740
# FIXME: insert proper C++ library support
12744
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12745
archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12747
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12748
hardcode_libdir_separator_CXX=:
12750
# Commands to make compiler produce verbose output that lists
12751
# what "hidden" libraries, object files and flags are used when
12752
# linking a shared library.
12754
# There doesn't appear to be a way to prevent this compiler from
12755
# explicitly linking system object files so we need to strip them
12756
# from the output so that they don't get included in the library
12758
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12761
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12762
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12763
archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12765
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12766
hardcode_libdir_separator_CXX=:
12768
# Commands to make compiler produce verbose output that lists
12769
# what "hidden" libraries, object files and flags are used when
12770
# linking a shared library.
12771
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12774
# FIXME: insert proper C++ library support
12781
case $cc_basename in
12783
# Kuck and Associates, Inc. (KAI) C++ Compiler
12785
# KCC will only create a shared library if the output file
12786
# ends with ".so" (or ".sl" for HP-UX), so rename the library
12787
# to its proper name (with version) after linking.
12788
archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12790
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12791
hardcode_libdir_separator_CXX=:
12793
# Archives containing C++ object files must be created using
12794
# the KAI C++ compiler.
12795
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12798
# Rational C++ 2.4.1
12799
# FIXME: insert proper C++ library support
12803
allow_undefined_flag_CXX=' -expect_unresolved \*'
12804
archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12805
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12806
echo "-hidden">> $lib.exp~
12807
$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
12810
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12811
hardcode_libdir_separator_CXX=:
12813
# Commands to make compiler produce verbose output that lists
12814
# what "hidden" libraries, object files and flags are used when
12815
# linking a shared library.
12817
# There doesn't appear to be a way to prevent this compiler from
12818
# explicitly linking system object files so we need to strip them
12819
# from the output so that they don't get included in the library
12821
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12824
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12825
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12826
archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12828
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12829
hardcode_libdir_separator_CXX=:
12831
# Commands to make compiler produce verbose output that lists
12832
# what "hidden" libraries, object files and flags are used when
12833
# linking a shared library.
12834
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12837
# FIXME: insert proper C++ library support
12844
# FIXME: insert proper C++ library support
12848
case $cc_basename in
12851
# FIXME: insert proper C++ library support
12856
# FIXME: insert proper C++ library support
12860
# FIXME: insert proper C++ library support
12866
case $cc_basename in
12868
# Sun C++ 4.2, 5.x and Centerline C++
12869
archive_cmds_need_lc_CXX=yes
12870
no_undefined_flag_CXX=' -zdefs'
12871
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12872
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12873
$CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12875
hardcode_libdir_flag_spec_CXX='-R$libdir'
12876
hardcode_shlibpath_var_CXX=no
12878
solaris2.[0-5] | solaris2.[0-5].*) ;;
12880
# The compiler driver will combine and reorder linker options,
12881
# but understands `-z linker_flag'.
12882
# Supported since Solaris 2.6 (maybe 2.5.1?)
12883
whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12886
link_all_deplibs_CXX=yes
12888
output_verbose_link_cmd='echo'
12890
# Archives containing C++ object files must be created using
12891
# "CC -xar", where "CC" is the Sun C++ compiler. This is
12892
# necessary to make sure instantiated templates are included
12894
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12897
# Green Hills C++ Compiler
12898
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12900
# The C++ compiler must be used to create the archive.
12901
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12904
# GNU C++ compiler with Solaris linker
12905
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12906
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12907
if $CC --version | grep -v '^2\.7' > /dev/null; then
12908
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12909
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12910
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12912
# Commands to make compiler produce verbose output that lists
12913
# what "hidden" libraries, object files and flags are used when
12914
# linking a shared library.
12915
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12917
# g++ 2.7 appears to require `-G' NOT `-shared' on this
12919
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12920
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12921
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12923
# Commands to make compiler produce verbose output that lists
12924
# what "hidden" libraries, object files and flags are used when
12925
# linking a shared library.
12926
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12929
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12931
solaris2.[0-5] | solaris2.[0-5].*) ;;
12933
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12940
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12941
no_undefined_flag_CXX='${wl}-z,text'
12942
archive_cmds_need_lc_CXX=no
12943
hardcode_shlibpath_var_CXX=no
12944
runpath_var='LD_RUN_PATH'
12946
case $cc_basename in
12948
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12949
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12952
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12953
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12957
sysv5* | sco3.2v5* | sco5v6*)
12958
# Note: We can NOT use -z defs as we might desire, because we do not
12959
# link with -lc, and that would cause any symbols used from libc to
12960
# always be unresolved, which means just about no library would
12961
# ever link correctly. If we're not using GNU ld we use -z text
12962
# though, which does catch some bad symbols but isn't as heavy-handed
12964
# For security reasons, it is highly recommended that you always
12965
# use absolute paths for naming shared libraries, and exclude the
12966
# DT_RUNPATH tag from executables and libraries. But doing so
12967
# requires that you compile everything twice, which is a pain.
12968
# So that behaviour is only enabled if SCOABSPATH is set to a
12969
# non-empty value in the environment. Most likely only useful for
12970
# creating official distributions of packages.
12971
# This is a hack until libtool officially supports absolute path
12972
# names for shared libraries.
12973
no_undefined_flag_CXX='${wl}-z,text'
12974
allow_undefined_flag_CXX='${wl}-z,nodefs'
12975
archive_cmds_need_lc_CXX=no
12976
hardcode_shlibpath_var_CXX=no
12977
hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12978
hardcode_libdir_separator_CXX=':'
12979
link_all_deplibs_CXX=yes
12980
export_dynamic_flag_spec_CXX='${wl}-Bexport'
12981
runpath_var='LD_RUN_PATH'
12983
case $cc_basename in
12985
archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12986
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12989
archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12990
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12995
case $cc_basename in
12997
# NonStop-UX NCC 3.20
12998
# FIXME: insert proper C++ library support
13002
# FIXME: insert proper C++ library support
13008
# FIXME: insert proper C++ library support
13012
# FIXME: insert proper C++ library support
13016
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13017
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13018
test "$ld_shlibs_CXX" = no && can_build_shared=no
13023
cat > conftest.$ac_ext <<EOF
13027
Foo (void) { a = 0; }
13033
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13034
(eval $ac_compile) 2>&5
13036
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13037
(exit $ac_status); }; then
13038
# Parse the compiler output and extract the necessary
13039
# objects, libraries and library flags.
13041
# Sentinel used to keep track of whether or not we are before
13042
# the conftest object file.
13043
pre_test_object_deps_done=no
13045
# The `*' in the case matches for architectures that use `case' in
13046
# $output_verbose_cmd can trigger glob expansion during the loop
13047
# eval without this substitution.
13048
output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13050
for p in `eval $output_verbose_link_cmd`; do
13054
# Some compilers place space between "-{L,R}" and the path.
13055
# Remove the space.
13056
if test $p = "-L" \
13057
|| test $p = "-R"; then
13064
if test "$pre_test_object_deps_done" = no; then
13067
# Internal compiler library paths should come after those
13068
# provided the user. The postdeps already come after the
13069
# user supplied libs so there is no need to process them.
13070
if test -z "$compiler_lib_search_path_CXX"; then
13071
compiler_lib_search_path_CXX="${prev}${p}"
13073
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13076
# The "-l" case would never come before the object being
13077
# linked, so don't bother handling this case.
13080
if test -z "$postdeps_CXX"; then
13081
postdeps_CXX="${prev}${p}"
13083
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13089
# This assumes that the test object file only shows up
13090
# once in the compiler output.
13091
if test "$p" = "conftest.$objext"; then
13092
pre_test_object_deps_done=yes
13096
if test "$pre_test_object_deps_done" = no; then
13097
if test -z "$predep_objects_CXX"; then
13098
predep_objects_CXX="$p"
13100
predep_objects_CXX="$predep_objects_CXX $p"
13103
if test -z "$postdep_objects_CXX"; then
13104
postdep_objects_CXX="$p"
13106
postdep_objects_CXX="$postdep_objects_CXX $p"
13111
*) ;; # Ignore the rest.
13119
echo "libtool.m4: error: problem compiling CXX test program"
13122
$rm -f confest.$objext
13124
compiler_lib_search_dirs_CXX=
13125
if test -n "$compiler_lib_search_path_CXX"; then
13126
compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13129
# PORTME: override above test on systems where it is broken
13132
# Interix 3.5 installs completely hosed .la files for C++, so rather than
13133
# hack all around it, let's just trust "g++" to DTRT.
13134
predep_objects_CXX=
13135
postdep_objects_CXX=
13140
case `$CC -V 2>&1 | sed 5q` in
13144
# The more standards-conforming stlport4 library is
13145
# incompatible with the Cstd library. Avoid specifying
13146
# it if it's in CXXFLAGS. Ignore libCrun as
13147
# -library=stlport4 depends on it.
13148
case " $CXX $CXXFLAGS " in
13149
*" -library=stlport4 "*)
13150
solaris_use_stlport4=yes
13153
if test "$solaris_use_stlport4" != yes; then
13154
postdeps_CXX='-library=Cstd -library=Crun'
13161
case $cc_basename in
13163
# The more standards-conforming stlport4 library is
13164
# incompatible with the Cstd library. Avoid specifying
13165
# it if it's in CXXFLAGS. Ignore libCrun as
13166
# -library=stlport4 depends on it.
13167
case " $CXX $CXXFLAGS " in
13168
*" -library=stlport4 "*)
13169
solaris_use_stlport4=yes
13173
# Adding this requires a known-good setup of shared libraries for
13174
# Sun compiler versions before 5.6, else PIC objects from an old
13175
# archive will be linked into the output, leading to subtle bugs.
13176
if test "$solaris_use_stlport4" != yes; then
13177
postdeps_CXX='-library=Cstd -library=Crun'
13184
case " $postdeps_CXX " in
13185
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13188
lt_prog_compiler_wl_CXX=
13189
lt_prog_compiler_pic_CXX=
13190
lt_prog_compiler_static_CXX=
13192
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13193
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13195
# C++ specific cases for pic, static, wl, etc.
13196
if test "$GXX" = yes; then
13197
lt_prog_compiler_wl_CXX='-Wl,'
13198
lt_prog_compiler_static_CXX='-static'
13202
# All AIX code is PIC.
13203
if test "$host_cpu" = ia64; then
13204
# AIX 5 now supports IA64 processor
13205
lt_prog_compiler_static_CXX='-Bstatic'
13209
# FIXME: we need at least 68020 code to build shared libraries, but
13210
# adding the `-m68020' flag to GCC prevents building anything better,
13212
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13214
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13215
# PIC is the default for these OSes.
13217
mingw* | cygwin* | os2* | pw32*)
13218
# This hack is so that the source file can tell whether it is being
13219
# built for inclusion in a dll (and should export symbols for example).
13220
# Although the cygwin gcc ignores -fPIC, still need this for old-style
13221
# (--disable-auto-import) libraries
13222
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13224
darwin* | rhapsody*)
13225
# PIC is the default on this platform
13226
# Common symbols not allowed in MH_DYLIB files
13227
lt_prog_compiler_pic_CXX='-fno-common'
13230
# DJGPP does not support shared libraries at all
13231
lt_prog_compiler_pic_CXX=
13234
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
13235
# Instead, we relocate shared libraries at runtime.
13238
if test -d /usr/nec; then
13239
lt_prog_compiler_pic_CXX=-Kconform_pic
13243
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13244
# not for PA HP-UX.
13249
lt_prog_compiler_pic_CXX='-fPIC'
13254
lt_prog_compiler_pic_CXX='-fPIC'
13260
# All AIX code is PIC.
13261
if test "$host_cpu" = ia64; then
13262
# AIX 5 now supports IA64 processor
13263
lt_prog_compiler_static_CXX='-Bstatic'
13265
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13269
case $cc_basename in
13271
# Green Hills C++ Compiler
13272
# _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
13277
# PIC is the default on this platform
13278
# Common symbols not allowed in MH_DYLIB files
13279
case $cc_basename in
13281
lt_prog_compiler_pic_CXX='-qnocommon'
13282
lt_prog_compiler_wl_CXX='-Wl,'
13287
case $cc_basename in
13289
lt_prog_compiler_pic_CXX='-KPIC'
13292
# Green Hills C++ Compiler
13293
lt_prog_compiler_pic_CXX='-pic'
13299
freebsd* | dragonfly*)
13300
# FreeBSD uses GNU C++
13302
hpux9* | hpux10* | hpux11*)
13303
case $cc_basename in
13305
lt_prog_compiler_wl_CXX='-Wl,'
13306
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13307
if test "$host_cpu" != ia64; then
13308
lt_prog_compiler_pic_CXX='+Z'
13312
lt_prog_compiler_wl_CXX='-Wl,'
13313
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13319
lt_prog_compiler_pic_CXX='+Z'
13328
# This is c89, which is MS Visual C++ (no shared libs)
13329
# Anyone wants to do a port?
13331
irix5* | irix6* | nonstopux*)
13332
case $cc_basename in
13334
lt_prog_compiler_wl_CXX='-Wl,'
13335
lt_prog_compiler_static_CXX='-non_shared'
13336
# CC pic flag -KPIC is the default.
13342
linux* | k*bsd*-gnu)
13343
case $cc_basename in
13346
lt_prog_compiler_wl_CXX='--backend -Wl,'
13347
lt_prog_compiler_pic_CXX='-fPIC'
13351
lt_prog_compiler_wl_CXX='-Wl,'
13352
lt_prog_compiler_pic_CXX='-KPIC'
13353
lt_prog_compiler_static_CXX='-static'
13356
# Portland Group C++ compiler.
13357
lt_prog_compiler_wl_CXX='-Wl,'
13358
lt_prog_compiler_pic_CXX='-fpic'
13359
lt_prog_compiler_static_CXX='-Bstatic'
13363
# Make sure the PIC flag is empty. It appears that all Alpha
13364
# Linux and Compaq Tru64 Unix objects are PIC.
13365
lt_prog_compiler_pic_CXX=
13366
lt_prog_compiler_static_CXX='-non_shared'
13369
case `$CC -V 2>&1 | sed 5q` in
13372
lt_prog_compiler_pic_CXX='-KPIC'
13373
lt_prog_compiler_static_CXX='-Bstatic'
13374
lt_prog_compiler_wl_CXX='-Qoption ld '
13385
case $cc_basename in
13387
lt_prog_compiler_pic_CXX='-W c,exportall'
13393
netbsd* | netbsdelf*-gnu)
13395
osf3* | osf4* | osf5*)
13396
case $cc_basename in
13398
lt_prog_compiler_wl_CXX='--backend -Wl,'
13401
# Rational C++ 2.4.1
13402
lt_prog_compiler_pic_CXX='-pic'
13405
# Digital/Compaq C++
13406
lt_prog_compiler_wl_CXX='-Wl,'
13407
# Make sure the PIC flag is empty. It appears that all Alpha
13408
# Linux and Compaq Tru64 Unix objects are PIC.
13409
lt_prog_compiler_pic_CXX=
13410
lt_prog_compiler_static_CXX='-non_shared'
13419
case $cc_basename in
13421
# Sun C++ 4.2, 5.x and Centerline C++
13422
lt_prog_compiler_pic_CXX='-KPIC'
13423
lt_prog_compiler_static_CXX='-Bstatic'
13424
lt_prog_compiler_wl_CXX='-Qoption ld '
13427
# Green Hills C++ Compiler
13428
lt_prog_compiler_pic_CXX='-PIC'
13435
case $cc_basename in
13438
lt_prog_compiler_pic_CXX='-pic'
13439
lt_prog_compiler_static_CXX='-Bstatic'
13443
lt_prog_compiler_pic_CXX='-pic'
13450
case $cc_basename in
13452
# NonStop-UX NCC 3.20
13453
lt_prog_compiler_pic_CXX='-KPIC'
13459
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13460
case $cc_basename in
13462
lt_prog_compiler_wl_CXX='-Wl,'
13463
lt_prog_compiler_pic_CXX='-KPIC'
13464
lt_prog_compiler_static_CXX='-Bstatic'
13471
lt_prog_compiler_can_build_shared_CXX=no
13476
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13477
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
13480
# Check to make sure the PIC flag actually works.
13482
if test -n "$lt_prog_compiler_pic_CXX"; then
13484
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13485
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
13486
if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
13487
echo $ECHO_N "(cached) $ECHO_C" >&6
13489
lt_cv_prog_compiler_pic_works_CXX=no
13490
ac_outfile=conftest.$ac_objext
13491
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13492
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13493
# Insert the option either (1) after the last *FLAGS variable, or
13494
# (2) before a word containing "conftest.", or (3) at the end.
13495
# Note that $ac_compile itself does not contain backslashes and begins
13496
# with a dollar sign (not a hyphen), so the echo should work correctly.
13497
# The option is referenced via a variable to avoid confusing sed.
13498
lt_compile=`echo "$ac_compile" | $SED \
13499
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13500
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13501
-e 's:$: $lt_compiler_flag:'`
13502
(eval echo "\"\$as_me:13502: $lt_compile\"" >&5)
13503
(eval "$lt_compile" 2>conftest.err)
13505
cat conftest.err >&5
13506
echo "$as_me:13506: \$? = $ac_status" >&5
13507
if (exit $ac_status) && test -s "$ac_outfile"; then
13508
# The compiler can only warn and ignore the option if not recognized
13509
# So say no if there are warnings other than the usual output.
13510
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13511
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13512
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13513
lt_cv_prog_compiler_pic_works_CXX=yes
13519
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13520
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13522
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13523
case $lt_prog_compiler_pic_CXX in
13525
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13528
lt_prog_compiler_pic_CXX=
13529
lt_prog_compiler_can_build_shared_CXX=no
13534
# For platforms which do not support PIC, -DPIC is meaningless:
13536
lt_prog_compiler_pic_CXX=
13539
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13544
# Check to make sure the static flag actually works.
13546
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13547
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13548
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13549
if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
13550
echo $ECHO_N "(cached) $ECHO_C" >&6
13552
lt_cv_prog_compiler_static_works_CXX=no
13553
save_LDFLAGS="$LDFLAGS"
13554
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13555
echo "$lt_simple_link_test_code" > conftest.$ac_ext
13556
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13557
# The linker can only warn and ignore the option if not recognized
13558
# So say no if there are warnings
13559
if test -s conftest.err; then
13560
# Append any errors to the config.log.
13561
cat conftest.err 1>&5
13562
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13563
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13564
if diff conftest.exp conftest.er2 >/dev/null; then
13565
lt_cv_prog_compiler_static_works_CXX=yes
13568
lt_cv_prog_compiler_static_works_CXX=yes
13572
LDFLAGS="$save_LDFLAGS"
13575
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13576
echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
13578
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13581
lt_prog_compiler_static_CXX=
13585
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13586
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13587
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13588
echo $ECHO_N "(cached) $ECHO_C" >&6
13590
lt_cv_prog_compiler_c_o_CXX=no
13591
$rm -r conftest 2>/dev/null
13595
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13597
lt_compiler_flag="-o out/conftest2.$ac_objext"
13598
# Insert the option either (1) after the last *FLAGS variable, or
13599
# (2) before a word containing "conftest.", or (3) at the end.
13600
# Note that $ac_compile itself does not contain backslashes and begins
13601
# with a dollar sign (not a hyphen), so the echo should work correctly.
13602
lt_compile=`echo "$ac_compile" | $SED \
13603
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13604
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13605
-e 's:$: $lt_compiler_flag:'`
13606
(eval echo "\"\$as_me:13606: $lt_compile\"" >&5)
13607
(eval "$lt_compile" 2>out/conftest.err)
13609
cat out/conftest.err >&5
13610
echo "$as_me:13610: \$? = $ac_status" >&5
13611
if (exit $ac_status) && test -s out/conftest2.$ac_objext
13613
# The compiler can only warn and ignore the option if not recognized
13614
# So say no if there are warnings
13615
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13616
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13617
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13618
lt_cv_prog_compiler_c_o_CXX=yes
13623
# SGI C++ compiler will create directory out/ii_files/ for
13624
# template instantiation
13625
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13626
$rm out/* && rmdir out
13632
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13633
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13636
hard_links="nottested"
13637
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13638
# do not overwrite the value of need_locks provided by the user
13639
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13640
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13643
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13645
ln conftest.a conftest.b 2>&5 || hard_links=no
13646
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13647
{ echo "$as_me:$LINENO: result: $hard_links" >&5
13648
echo "${ECHO_T}$hard_links" >&6; }
13649
if test "$hard_links" = no; then
13650
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13651
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13658
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13659
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13661
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13664
# If we're using GNU nm, then we don't want the "-C" option.
13665
# -C means demangle to AIX nm, but means don't demangle with GNU nm
13666
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13667
export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13669
export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13673
export_symbols_cmds_CXX="$ltdll_cmds"
13676
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13678
linux* | k*bsd*-gnu)
13679
link_all_deplibs_CXX=no
13682
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13685
exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13687
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13688
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13689
test "$ld_shlibs_CXX" = no && can_build_shared=no
13692
# Do we need to explicitly link libc?
13694
case "x$archive_cmds_need_lc_CXX" in
13696
# Assume -lc should be added
13697
archive_cmds_need_lc_CXX=yes
13699
if test "$enable_shared" = yes && test "$GCC" = yes; then
13700
case $archive_cmds_CXX in
13702
# FIXME: we may have to deal with multi-command sequences.
13705
# Test whether the compiler implicitly links with -lc since on some
13706
# systems, -lgcc has to come before -lc. If gcc already passes -lc
13707
# to ld, don't add -lc before -lgcc.
13708
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13709
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13711
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13713
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13714
(eval $ac_compile) 2>&5
13716
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13717
(exit $ac_status); } 2>conftest.err; then
13720
libobjs=conftest.$ac_objext
13722
wl=$lt_prog_compiler_wl_CXX
13723
pic_flag=$lt_prog_compiler_pic_CXX
13729
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13730
allow_undefined_flag_CXX=
13731
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13732
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13734
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13735
(exit $ac_status); }
13737
archive_cmds_need_lc_CXX=no
13739
archive_cmds_need_lc_CXX=yes
13741
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13743
cat conftest.err 1>&5
13746
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13747
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13754
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13755
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13756
library_names_spec=
13757
libname_spec='lib$name'
13761
postuninstall_cmds=
13765
shlibpath_overrides_runpath=unknown
13767
dynamic_linker="$host_os ld.so"
13768
sys_lib_dlsearch_path_spec="/lib /usr/lib"
13770
need_lib_prefix=unknown
13771
hardcode_into_libs=no
13773
# when you set need_version to no, make sure it does not cause -set_version
13774
# flags to be left without arguments
13775
need_version=unknown
13780
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13781
shlibpath_var=LIBPATH
13783
# AIX 3 has no versioning support, so we append a major version to the name.
13784
soname_spec='${libname}${release}${shared_ext}$major'
13791
hardcode_into_libs=yes
13792
if test "$host_cpu" = ia64; then
13793
# AIX 5 supports IA64
13794
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13795
shlibpath_var=LD_LIBRARY_PATH
13797
# With GCC up to 2.95.x, collect2 would create an import file
13798
# for dependence libraries. The import file would start with
13799
# the line `#! .'. This would cause the generated library to
13800
# depend on `.', always an invalid library. This was fixed in
13801
# development snapshots of GCC prior to 3.0.
13803
aix4 | aix4.[01] | aix4.[01].*)
13804
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13806
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13809
can_build_shared=no
13813
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13814
# soname into executable. Probably we can add versioning support to
13815
# collect2, so additional links can be useful in future.
13816
if test "$aix_use_runtimelinking" = yes; then
13817
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
13818
# instead of lib<name>.a to let people know that these are not
13819
# typical AIX shared libraries.
13820
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13822
# We preserve .a as extension for shared libraries through AIX4.2
13823
# and later when we are not doing run time linking.
13824
library_names_spec='${libname}${release}.a $libname.a'
13825
soname_spec='${libname}${release}${shared_ext}$major'
13827
shlibpath_var=LIBPATH
13832
library_names_spec='$libname.ixlibrary $libname.a'
13833
# Create ${libname}_ixlibrary.a entries in /sys/libs.
13834
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
13838
library_names_spec='${libname}${shared_ext}'
13839
dynamic_linker="$host_os ld.so"
13840
shlibpath_var=LIBRARY_PATH
13846
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13847
soname_spec='${libname}${release}${shared_ext}$major'
13848
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13849
shlibpath_var=LD_LIBRARY_PATH
13850
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13851
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13852
# the default ld.so.conf also contains /usr/contrib/lib and
13853
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13854
# libtool to hard-code these into programs
13857
cygwin* | mingw* | pw32*)
13858
version_type=windows
13863
case $GCC,$host_os in
13864
yes,cygwin* | yes,mingw* | yes,pw32*)
13865
library_names_spec='$libname.dll.a'
13866
# DLL is installed to $(libdir)/../bin by postinstall_cmds
13867
postinstall_cmds='base_file=`basename \${file}`~
13868
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13869
dldir=$destdir/`dirname \$dlpath`~
13870
test -d \$dldir || mkdir -p \$dldir~
13871
$install_prog $dir/$dlname \$dldir/$dlname~
13872
chmod a+x \$dldir/$dlname'
13873
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13874
dlpath=$dir/\$dldll~
13876
shlibpath_overrides_runpath=yes
13880
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
13881
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13882
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13885
# MinGW DLLs use traditional 'lib' prefix
13886
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13887
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13888
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13889
# It is most probably a Windows format PATH printed by
13890
# mingw gcc, but we are running on Cygwin. Gcc prints its search
13891
# path with ; separators, and with drive letters. We can handle the
13892
# drive letters (cygwin fileutils understands them), so leave them,
13893
# especially as we might pass files found there to a mingw objdump,
13894
# which wouldn't understand a cygwinified path. Ahh.
13895
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13897
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13901
# pw32 DLLs use 'pw' prefix rather than 'lib'
13902
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13908
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13911
dynamic_linker='Win32 ld.exe'
13912
# FIXME: first we should search . and the directory the executable is in
13916
darwin* | rhapsody*)
13917
dynamic_linker="$host_os dyld"
13918
version_type=darwin
13921
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13922
soname_spec='${libname}${release}${major}$shared_ext'
13923
shlibpath_overrides_runpath=yes
13924
shlibpath_var=DYLD_LIBRARY_PATH
13925
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13927
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13934
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13935
soname_spec='${libname}${release}${shared_ext}$major'
13936
shlibpath_var=LD_LIBRARY_PATH
13943
freebsd* | dragonfly*)
13944
# DragonFly does not have aout. When/if they implement a new
13945
# versioning mechanism, adjust this.
13946
if test -x /usr/bin/objformat; then
13947
objformat=`/usr/bin/objformat`
13950
freebsd[123]*) objformat=aout ;;
13951
*) objformat=elf ;;
13954
version_type=freebsd-$objformat
13955
case $version_type in
13957
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13962
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13966
shlibpath_var=LD_LIBRARY_PATH
13969
shlibpath_overrides_runpath=yes
13971
freebsd3.[01]* | freebsdelf3.[01]*)
13972
shlibpath_overrides_runpath=yes
13973
hardcode_into_libs=yes
13975
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13976
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13977
shlibpath_overrides_runpath=no
13978
hardcode_into_libs=yes
13980
*) # from 4.6 on, and DragonFly
13981
shlibpath_overrides_runpath=yes
13982
hardcode_into_libs=yes
13991
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13992
soname_spec='${libname}${release}${shared_ext}$major'
13993
shlibpath_var=LD_LIBRARY_PATH
13994
hardcode_into_libs=yes
13997
hpux9* | hpux10* | hpux11*)
13998
# Give a soname corresponding to the major version so that dld.sl refuses to
13999
# link against other versions.
14006
hardcode_into_libs=yes
14007
dynamic_linker="$host_os dld.so"
14008
shlibpath_var=LD_LIBRARY_PATH
14009
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14010
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14011
soname_spec='${libname}${release}${shared_ext}$major'
14012
if test "X$HPUX_IA64_MODE" = X32; then
14013
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14015
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14017
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14021
hardcode_into_libs=yes
14022
dynamic_linker="$host_os dld.sl"
14023
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14024
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14025
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14026
soname_spec='${libname}${release}${shared_ext}$major'
14027
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14028
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14032
dynamic_linker="$host_os dld.sl"
14033
shlibpath_var=SHLIB_PATH
14034
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14035
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14036
soname_spec='${libname}${release}${shared_ext}$major'
14039
# HP-UX runs *really* slowly unless shared libraries are mode 555.
14040
postinstall_cmds='chmod 555 $lib'
14047
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14048
soname_spec='${libname}${release}${shared_ext}$major'
14049
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14050
shlibpath_var=LD_LIBRARY_PATH
14051
shlibpath_overrides_runpath=no
14052
hardcode_into_libs=yes
14055
irix5* | irix6* | nonstopux*)
14057
nonstopux*) version_type=nonstopux ;;
14059
if test "$lt_cv_prog_gnu_ld" = yes; then
14067
soname_spec='${libname}${release}${shared_ext}$major'
14068
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14070
irix5* | nonstopux*)
14071
libsuff= shlibsuff=
14074
case $LD in # libtool.m4 will add one of these switches to LD
14075
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14076
libsuff= shlibsuff= libmagic=32-bit;;
14077
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14078
libsuff=32 shlibsuff=N32 libmagic=N32;;
14079
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14080
libsuff=64 shlibsuff=64 libmagic=64-bit;;
14081
*) libsuff= shlibsuff= libmagic=never-match;;
14085
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14086
shlibpath_overrides_runpath=no
14087
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14088
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14089
hardcode_into_libs=yes
14092
# No shared lib support for Linux oldld, aout, or coff.
14093
linux*oldld* | linux*aout* | linux*coff*)
14097
# This must be Linux ELF.
14098
linux* | k*bsd*-gnu)
14102
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14103
soname_spec='${libname}${release}${shared_ext}$major'
14104
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14105
shlibpath_var=LD_LIBRARY_PATH
14106
shlibpath_overrides_runpath=no
14107
# This implies no fast_install, which is unacceptable.
14108
# Some rework will be needed to allow for fast_install
14109
# before this can be enabled.
14110
hardcode_into_libs=yes
14112
# Append ld.so.conf contents to the search path
14113
if test -f /etc/ld.so.conf; then
14114
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14115
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14118
# We used to test for /lib/ld.so.1 and disable shared libraries on
14119
# powerpc, because MkLinux only supported shared libraries with the
14120
# GNU dynamic linker. Since this was broken with cross compilers,
14121
# most powerpc-linux boxes support dynamic linking these days and
14122
# people can always --disable-shared, the test was removed, and we
14123
# assume the GNU/Linux dynamic linker is in use.
14124
dynamic_linker='GNU/Linux ld.so'
14131
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14132
soname_spec='${libname}${release}${shared_ext}$major'
14133
shlibpath_var=LD_LIBRARY_PATH
14134
shlibpath_overrides_runpath=no
14135
hardcode_into_libs=yes
14136
dynamic_linker='NetBSD ld.elf_so'
14143
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14144
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14145
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14146
dynamic_linker='NetBSD (a.out) ld.so'
14148
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14149
soname_spec='${libname}${release}${shared_ext}$major'
14150
dynamic_linker='NetBSD ld.elf_so'
14152
shlibpath_var=LD_LIBRARY_PATH
14153
shlibpath_overrides_runpath=yes
14154
hardcode_into_libs=yes
14159
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14160
shlibpath_var=LD_LIBRARY_PATH
14161
shlibpath_overrides_runpath=yes
14168
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14169
soname_spec='${libname}${release}${shared_ext}$major'
14170
shlibpath_var=LD_LIBRARY_PATH
14171
shlibpath_overrides_runpath=yes
14176
sys_lib_dlsearch_path_spec="/usr/lib"
14178
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14180
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14181
*) need_version=no ;;
14183
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14184
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14185
shlibpath_var=LD_LIBRARY_PATH
14186
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14188
openbsd2.[89] | openbsd2.[89].*)
14189
shlibpath_overrides_runpath=no
14192
shlibpath_overrides_runpath=yes
14196
shlibpath_overrides_runpath=yes
14201
libname_spec='$name'
14204
library_names_spec='$libname${shared_ext} $libname.a'
14205
dynamic_linker='OS/2 ld.exe'
14206
shlibpath_var=LIBPATH
14209
osf3* | osf4* | osf5*)
14213
soname_spec='${libname}${release}${shared_ext}$major'
14214
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14215
shlibpath_var=LD_LIBRARY_PATH
14216
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14217
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14228
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14229
soname_spec='${libname}${release}${shared_ext}$major'
14230
shlibpath_var=LD_LIBRARY_PATH
14231
shlibpath_overrides_runpath=yes
14232
hardcode_into_libs=yes
14233
# ldd complains unless libraries are executable
14234
postinstall_cmds='chmod +x $lib'
14239
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14240
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14241
shlibpath_var=LD_LIBRARY_PATH
14242
shlibpath_overrides_runpath=yes
14243
if test "$with_gnu_ld" = yes; then
14251
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14252
soname_spec='${libname}${release}${shared_ext}$major'
14253
shlibpath_var=LD_LIBRARY_PATH
14254
case $host_vendor in
14256
shlibpath_overrides_runpath=no
14258
export_dynamic_flag_spec='${wl}-Blargedynsym'
14259
runpath_var=LD_RUN_PATH
14267
shlibpath_overrides_runpath=no
14268
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14274
if test -d /usr/nec ;then
14276
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14277
soname_spec='$libname${shared_ext}.$major'
14278
shlibpath_var=LD_LIBRARY_PATH
14282
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14283
version_type=freebsd-elf
14286
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14287
soname_spec='${libname}${release}${shared_ext}$major'
14288
shlibpath_var=LD_LIBRARY_PATH
14289
hardcode_into_libs=yes
14290
if test "$with_gnu_ld" = yes; then
14291
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14292
shlibpath_overrides_runpath=no
14294
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14295
shlibpath_overrides_runpath=yes
14298
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14302
sys_lib_dlsearch_path_spec='/usr/lib'
14307
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14308
soname_spec='${libname}${release}${shared_ext}$major'
14309
shlibpath_var=LD_LIBRARY_PATH
14316
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14317
echo "${ECHO_T}$dynamic_linker" >&6; }
14318
test "$dynamic_linker" = no && can_build_shared=no
14320
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14321
echo $ECHO_N "(cached) $ECHO_C" >&6
14323
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
14326
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14327
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14328
echo $ECHO_N "(cached) $ECHO_C" >&6
14330
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
14333
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14335
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14336
if test "$GCC" = yes; then
14337
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14340
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14341
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
14342
hardcode_action_CXX=
14343
if test -n "$hardcode_libdir_flag_spec_CXX" || \
14344
test -n "$runpath_var_CXX" || \
14345
test "X$hardcode_automatic_CXX" = "Xyes" ; then
14347
# We can hardcode non-existant directories.
14348
if test "$hardcode_direct_CXX" != no &&
14349
# If the only mechanism to avoid hardcoding is shlibpath_var, we
14350
# have to relink, otherwise we might link with an installed library
14351
# when we should be linking with a yet-to-be-installed one
14352
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14353
test "$hardcode_minus_L_CXX" != no; then
14354
# Linking always hardcodes the temporary library directory.
14355
hardcode_action_CXX=relink
14357
# We can link without hardcoding, and we can hardcode nonexisting dirs.
14358
hardcode_action_CXX=immediate
14361
# We cannot hardcode anything, or else we can only hardcode existing
14363
hardcode_action_CXX=unsupported
14365
{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14366
echo "${ECHO_T}$hardcode_action_CXX" >&6; }
14368
if test "$hardcode_action_CXX" = relink; then
14369
# Fast installation is not supported
14370
enable_fast_install=no
14371
elif test "$shlibpath_overrides_runpath" = yes ||
14372
test "$enable_shared" = no; then
14373
# Fast installation is not necessary
14374
enable_fast_install=needless
14378
# The else clause should only fire when bootstrapping the
14379
# libtool distribution, otherwise you forgot to ship ltmain.sh
14380
# with your package, and you will get complaints that there are
14381
# no rules to generate ltmain.sh.
14382
if test -f "$ltmain"; then
14383
# See if we are running on zsh, and set the options which allow our commands through
14384
# without removal of \ escapes.
14385
if test -n "${ZSH_VERSION+set}" ; then
14386
setopt NO_GLOB_SUBST
14388
# Now quote all the things that may contain metacharacters while being
14389
# careful not to overquote the AC_SUBSTed values. We take copies of the
14390
# variables and quote the copies for generation of the libtool script.
14391
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14393
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14394
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14395
deplibs_check_method reload_flag reload_cmds need_locks \
14396
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14397
lt_cv_sys_global_symbol_to_c_name_address \
14398
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14399
old_postinstall_cmds old_postuninstall_cmds \
14403
lt_prog_compiler_wl_CXX \
14404
lt_prog_compiler_pic_CXX \
14405
lt_prog_compiler_static_CXX \
14406
lt_prog_compiler_no_builtin_flag_CXX \
14407
export_dynamic_flag_spec_CXX \
14408
thread_safe_flag_spec_CXX \
14409
whole_archive_flag_spec_CXX \
14410
enable_shared_with_static_runtimes_CXX \
14411
old_archive_cmds_CXX \
14412
old_archive_from_new_cmds_CXX \
14413
predep_objects_CXX \
14414
postdep_objects_CXX \
14417
compiler_lib_search_path_CXX \
14418
compiler_lib_search_dirs_CXX \
14420
archive_expsym_cmds_CXX \
14421
postinstall_cmds_CXX \
14422
postuninstall_cmds_CXX \
14423
old_archive_from_expsyms_cmds_CXX \
14424
allow_undefined_flag_CXX \
14425
no_undefined_flag_CXX \
14426
export_symbols_cmds_CXX \
14427
hardcode_libdir_flag_spec_CXX \
14428
hardcode_libdir_flag_spec_ld_CXX \
14429
hardcode_libdir_separator_CXX \
14430
hardcode_automatic_CXX \
14432
module_expsym_cmds_CXX \
14433
lt_cv_prog_compiler_c_o_CXX \
14434
fix_srcfile_path_CXX \
14435
exclude_expsyms_CXX \
14436
include_expsyms_CXX; do
14439
old_archive_cmds_CXX | \
14440
old_archive_from_new_cmds_CXX | \
14441
archive_cmds_CXX | \
14442
archive_expsym_cmds_CXX | \
14443
module_cmds_CXX | \
14444
module_expsym_cmds_CXX | \
14445
old_archive_from_expsyms_cmds_CXX | \
14446
export_symbols_cmds_CXX | \
14447
extract_expsyms_cmds | reload_cmds | finish_cmds | \
14448
postinstall_cmds | postuninstall_cmds | \
14449
old_postinstall_cmds | old_postuninstall_cmds | \
14450
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14451
# Double-quote double-evaled strings.
14452
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14455
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14461
*'\$0 --fallback-echo"')
14462
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14468
cat <<__EOF__ >> "$cfgfile"
14469
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14471
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14473
# Shell to use when invoking shell scripts.
14476
# Whether or not to build shared libraries.
14477
build_libtool_libs=$enable_shared
14479
# Whether or not to build static libraries.
14480
build_old_libs=$enable_static
14482
# Whether or not to add -lc for building shared libraries.
14483
build_libtool_need_lc=$archive_cmds_need_lc_CXX
14485
# Whether or not to disallow shared libs when runtime libs are static
14486
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14488
# Whether or not to optimize for fast installation.
14489
fast_install=$enable_fast_install
14492
host_alias=$host_alias
14496
# The build system.
14497
build_alias=$build_alias
14501
# An echo program that does not interpret backslashes.
14506
AR_FLAGS=$lt_AR_FLAGS
14511
# LTCC compiler flags.
14512
LTCFLAGS=$lt_LTCFLAGS
14514
# A language-specific compiler.
14515
CC=$lt_compiler_CXX
14517
# Is the compiler the GNU C compiler?
14523
# The linker used to build libraries.
14526
# Whether we need hard or soft links.
14529
# A BSD-compatible nm program.
14532
# A symbol stripping program
14535
# Used to examine libraries when file_magic_cmd begins "file"
14536
MAGIC_CMD=$MAGIC_CMD
14538
# Used on cygwin: DLL creation program.
14541
# Used on cygwin: object dumper.
14544
# Used on cygwin: assembler.
14547
# The name of the directory that contains temporary libtool files.
14550
# How to create reloadable object files.
14551
reload_flag=$lt_reload_flag
14552
reload_cmds=$lt_reload_cmds
14554
# How to pass a linker flag through the compiler.
14555
wl=$lt_lt_prog_compiler_wl_CXX
14557
# Object file suffix (normally "o").
14558
objext="$ac_objext"
14560
# Old archive suffix (normally "a").
14563
# Shared library suffix (normally ".so").
14564
shrext_cmds='$shrext_cmds'
14566
# Executable file suffix (normally "").
14569
# Additional compiler flags for building library objects.
14570
pic_flag=$lt_lt_prog_compiler_pic_CXX
14573
# What is the maximum length of a command?
14574
max_cmd_len=$lt_cv_sys_max_cmd_len
14576
# Does compiler simultaneously support -c and -o options?
14577
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14579
# Must we lock files when doing compilation?
14580
need_locks=$lt_need_locks
14582
# Do we need the lib prefix for modules?
14583
need_lib_prefix=$need_lib_prefix
14585
# Do we need a version for libraries?
14586
need_version=$need_version
14588
# Whether dlopen is supported.
14589
dlopen_support=$enable_dlopen
14591
# Whether dlopen of programs is supported.
14592
dlopen_self=$enable_dlopen_self
14594
# Whether dlopen of statically linked programs is supported.
14595
dlopen_self_static=$enable_dlopen_self_static
14597
# Compiler flag to prevent dynamic linking.
14598
link_static_flag=$lt_lt_prog_compiler_static_CXX
14600
# Compiler flag to turn off builtin functions.
14601
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14603
# Compiler flag to allow reflexive dlopens.
14604
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14606
# Compiler flag to generate shared objects directly from archives.
14607
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14609
# Compiler flag to generate thread-safe objects.
14610
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14612
# Library versioning type.
14613
version_type=$version_type
14615
# Format of library name prefix.
14616
libname_spec=$lt_libname_spec
14618
# List of archive names. First name is the real one, the rest are links.
14619
# The last name is the one that the linker finds with -lNAME.
14620
library_names_spec=$lt_library_names_spec
14622
# The coded name of the library, if different from the real name.
14623
soname_spec=$lt_soname_spec
14625
# Commands used to build and install an old-style archive.
14627
old_archive_cmds=$lt_old_archive_cmds_CXX
14628
old_postinstall_cmds=$lt_old_postinstall_cmds
14629
old_postuninstall_cmds=$lt_old_postuninstall_cmds
14631
# Create an old-style archive from a shared archive.
14632
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14634
# Create a temporary old-style archive to link instead of a shared archive.
14635
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14637
# Commands used to build and install a shared archive.
14638
archive_cmds=$lt_archive_cmds_CXX
14639
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14640
postinstall_cmds=$lt_postinstall_cmds
14641
postuninstall_cmds=$lt_postuninstall_cmds
14643
# Commands used to build a loadable module (assumed same as above if empty)
14644
module_cmds=$lt_module_cmds_CXX
14645
module_expsym_cmds=$lt_module_expsym_cmds_CXX
14647
# Commands to strip libraries.
14648
old_striplib=$lt_old_striplib
14649
striplib=$lt_striplib
14651
# Dependencies to place before the objects being linked to create a
14653
predep_objects=$lt_predep_objects_CXX
14655
# Dependencies to place after the objects being linked to create a
14657
postdep_objects=$lt_postdep_objects_CXX
14659
# Dependencies to place before the objects being linked to create a
14661
predeps=$lt_predeps_CXX
14663
# Dependencies to place after the objects being linked to create a
14665
postdeps=$lt_postdeps_CXX
14667
# The directories searched by this compiler when creating a shared
14669
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
14671
# The library search path used internally by the compiler when linking
14672
# a shared library.
14673
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14675
# Method to check whether dependent libraries are shared objects.
14676
deplibs_check_method=$lt_deplibs_check_method
14678
# Command to use when deplibs_check_method == file_magic.
14679
file_magic_cmd=$lt_file_magic_cmd
14681
# Flag that allows shared libraries with undefined symbols to be built.
14682
allow_undefined_flag=$lt_allow_undefined_flag_CXX
14684
# Flag that forces no undefined symbols.
14685
no_undefined_flag=$lt_no_undefined_flag_CXX
14687
# Commands used to finish a libtool library installation in a directory.
14688
finish_cmds=$lt_finish_cmds
14690
# Same as above, but a single script fragment to be evaled but not shown.
14691
finish_eval=$lt_finish_eval
14693
# Take the output of nm and produce a listing of raw symbols and C names.
14694
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14696
# Transform the output of nm in a proper C declaration
14697
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14699
# Transform the output of nm in a C name address pair
14700
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14702
# This is the shared library runtime path variable.
14703
runpath_var=$runpath_var
14705
# This is the shared library path variable.
14706
shlibpath_var=$shlibpath_var
14708
# Is shlibpath searched before the hard-coded library search path?
14709
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14711
# How to hardcode a shared library path into an executable.
14712
hardcode_action=$hardcode_action_CXX
14714
# Whether we should hardcode library paths into libraries.
14715
hardcode_into_libs=$hardcode_into_libs
14717
# Flag to hardcode \$libdir into a binary during linking.
14718
# This must work even if \$libdir does not exist.
14719
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14721
# If ld is used when linking, flag to hardcode \$libdir into
14722
# a binary during linking. This must work even if \$libdir does
14724
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14726
# Whether we need a single -rpath flag with a separated argument.
14727
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14729
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14730
# resulting binary.
14731
hardcode_direct=$hardcode_direct_CXX
14733
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14734
# resulting binary.
14735
hardcode_minus_L=$hardcode_minus_L_CXX
14737
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14738
# the resulting binary.
14739
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14741
# Set to yes if building a shared library automatically hardcodes DIR into the library
14742
# and all subsequent libraries and executables linked against it.
14743
hardcode_automatic=$hardcode_automatic_CXX
14745
# Variables whose values should be saved in libtool wrapper scripts and
14746
# restored at relink time.
14747
variables_saved_for_relink="$variables_saved_for_relink"
14749
# Whether libtool must link a program against all its dependency libraries.
14750
link_all_deplibs=$link_all_deplibs_CXX
14752
# Compile-time system search path for libraries
14753
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14755
# Run-time system search path for libraries
14756
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14758
# Fix the shell variable \$srcfile for the compiler.
14759
fix_srcfile_path=$lt_fix_srcfile_path
14761
# Set to yes if exported symbols are required.
14762
always_export_symbols=$always_export_symbols_CXX
14764
# The commands to list exported symbols.
14765
export_symbols_cmds=$lt_export_symbols_cmds_CXX
14767
# The commands to extract the exported symbol list from a shared archive.
14768
extract_expsyms_cmds=$lt_extract_expsyms_cmds
14770
# Symbols that should not be listed in the preloaded symbols.
14771
exclude_expsyms=$lt_exclude_expsyms_CXX
14773
# Symbols that must always be exported.
14774
include_expsyms=$lt_include_expsyms_CXX
14776
# ### END LIBTOOL TAG CONFIG: $tagname
14782
# If there is no Makefile yet, we rely on a make rule to execute
14783
# `config.status --recheck' to rerun these tests and create the
14784
# libtool script then.
14785
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14786
if test -f "$ltmain_in"; then
14787
test -f Makefile && make "$ltmain"
14793
ac_cpp='$CPP $CPPFLAGS'
14794
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14795
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14796
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14802
with_gnu_ldcxx=$with_gnu_ld
14803
with_gnu_ld=$lt_save_with_gnu_ld
14804
lt_cv_path_LDCXX=$lt_cv_path_LD
14805
lt_cv_path_LD=$lt_save_path_LD
14806
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14807
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14815
if test -n "$F77" && test "X$F77" != "Xno"; then
14818
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14819
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14820
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14823
archive_cmds_need_lc_F77=no
14824
allow_undefined_flag_F77=
14825
always_export_symbols_F77=no
14826
archive_expsym_cmds_F77=
14827
export_dynamic_flag_spec_F77=
14828
hardcode_direct_F77=no
14829
hardcode_libdir_flag_spec_F77=
14830
hardcode_libdir_flag_spec_ld_F77=
14831
hardcode_libdir_separator_F77=
14832
hardcode_minus_L_F77=no
14833
hardcode_automatic_F77=no
14835
module_expsym_cmds_F77=
14836
link_all_deplibs_F77=unknown
14837
old_archive_cmds_F77=$old_archive_cmds
14838
no_undefined_flag_F77=
14839
whole_archive_flag_spec_F77=
14840
enable_shared_with_static_runtimes_F77=no
14842
# Source file extension for f77 test sources.
14845
# Object file extension for compiled f77 test sources.
14849
# Code to be used in simple compile tests
14850
lt_simple_compile_test_code="\
14856
# Code to be used in simple link tests
14857
lt_simple_link_test_code="\
14862
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14864
# If no C compiler was specified, use CC.
14867
# If no C compiler flags were specified, use CFLAGS.
14868
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14870
# Allow CC to be a program name with arguments.
14874
# save warnings/boilerplate of simple test code
14875
ac_outfile=conftest.$ac_objext
14876
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14877
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14878
_lt_compiler_boilerplate=`cat conftest.err`
14881
ac_outfile=conftest.$ac_objext
14882
echo "$lt_simple_link_test_code" >conftest.$ac_ext
14883
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14884
_lt_linker_boilerplate=`cat conftest.err`
14888
# Allow CC to be a program name with arguments.
14893
for cc_temp in $compiler""; do
14895
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14896
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14901
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14904
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14905
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14906
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
14907
echo "${ECHO_T}$can_build_shared" >&6; }
14909
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14910
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14911
test "$can_build_shared" = "no" && enable_shared=no
14913
# On AIX, shared libraries and static libraries use the same namespace, and
14914
# are all built from PIC.
14917
test "$enable_shared" = yes && enable_static=no
14918
if test -n "$RANLIB"; then
14919
archive_cmds="$archive_cmds~\$RANLIB \$lib"
14920
postinstall_cmds='$RANLIB $lib'
14924
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14925
test "$enable_shared" = yes && enable_static=no
14929
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
14930
echo "${ECHO_T}$enable_shared" >&6; }
14932
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14933
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14934
# Make sure either enable_shared or enable_static is yes.
14935
test "$enable_shared" = yes || enable_static=yes
14936
{ echo "$as_me:$LINENO: result: $enable_static" >&5
14937
echo "${ECHO_T}$enable_static" >&6; }
14942
lt_prog_compiler_wl_F77=
14943
lt_prog_compiler_pic_F77=
14944
lt_prog_compiler_static_F77=
14946
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14947
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14949
if test "$GCC" = yes; then
14950
lt_prog_compiler_wl_F77='-Wl,'
14951
lt_prog_compiler_static_F77='-static'
14955
# All AIX code is PIC.
14956
if test "$host_cpu" = ia64; then
14957
# AIX 5 now supports IA64 processor
14958
lt_prog_compiler_static_F77='-Bstatic'
14963
# FIXME: we need at least 68020 code to build shared libraries, but
14964
# adding the `-m68020' flag to GCC prevents building anything better,
14966
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14969
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14970
# PIC is the default for these OSes.
14973
mingw* | cygwin* | pw32* | os2*)
14974
# This hack is so that the source file can tell whether it is being
14975
# built for inclusion in a dll (and should export symbols for example).
14976
# Although the cygwin gcc ignores -fPIC, still need this for old-style
14977
# (--disable-auto-import) libraries
14978
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14981
darwin* | rhapsody*)
14982
# PIC is the default on this platform
14983
# Common symbols not allowed in MH_DYLIB files
14984
lt_prog_compiler_pic_F77='-fno-common'
14988
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
14989
# Instead, we relocate shared libraries at runtime.
14993
# Just because we use GCC doesn't mean we suddenly get shared libraries
14994
# on systems that don't support them.
14995
lt_prog_compiler_can_build_shared_F77=no
15000
if test -d /usr/nec; then
15001
lt_prog_compiler_pic_F77=-Kconform_pic
15006
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15007
# not for PA HP-UX.
15013
lt_prog_compiler_pic_F77='-fPIC'
15019
lt_prog_compiler_pic_F77='-fPIC'
15023
# PORTME Check for flag to pass linker flags through the system compiler.
15026
lt_prog_compiler_wl_F77='-Wl,'
15027
if test "$host_cpu" = ia64; then
15028
# AIX 5 now supports IA64 processor
15029
lt_prog_compiler_static_F77='-Bstatic'
15031
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15035
# PIC is the default on this platform
15036
# Common symbols not allowed in MH_DYLIB files
15037
case $cc_basename in
15039
lt_prog_compiler_pic_F77='-qnocommon'
15040
lt_prog_compiler_wl_F77='-Wl,'
15045
mingw* | cygwin* | pw32* | os2*)
15046
# This hack is so that the source file can tell whether it is being
15047
# built for inclusion in a dll (and should export symbols for example).
15048
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15051
hpux9* | hpux10* | hpux11*)
15052
lt_prog_compiler_wl_F77='-Wl,'
15053
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15054
# not for PA HP-UX.
15060
lt_prog_compiler_pic_F77='+Z'
15063
# Is there a better lt_prog_compiler_static that works with the bundled CC?
15064
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15067
irix5* | irix6* | nonstopux*)
15068
lt_prog_compiler_wl_F77='-Wl,'
15069
# PIC (with -KPIC) is the default.
15070
lt_prog_compiler_static_F77='-non_shared'
15074
lt_prog_compiler_pic_F77='-KPIC'
15075
lt_prog_compiler_static_F77='-Bstatic'
15078
linux* | k*bsd*-gnu)
15079
case $cc_basename in
15081
lt_prog_compiler_wl_F77='-Wl,'
15082
lt_prog_compiler_pic_F77='-KPIC'
15083
lt_prog_compiler_static_F77='-static'
15085
pgcc* | pgf77* | pgf90* | pgf95*)
15086
# Portland Group compilers (*not* the Pentium gcc compiler,
15087
# which looks to be a dead project)
15088
lt_prog_compiler_wl_F77='-Wl,'
15089
lt_prog_compiler_pic_F77='-fpic'
15090
lt_prog_compiler_static_F77='-Bstatic'
15093
lt_prog_compiler_wl_F77='-Wl,'
15094
# All Alpha code is PIC.
15095
lt_prog_compiler_static_F77='-non_shared'
15098
case `$CC -V 2>&1 | sed 5q` in
15101
lt_prog_compiler_pic_F77='-KPIC'
15102
lt_prog_compiler_static_F77='-Bstatic'
15103
lt_prog_compiler_wl_F77='-Wl,'
15106
# Sun Fortran 8.3 passes all unrecognized flags to the linker
15107
lt_prog_compiler_pic_F77='-KPIC'
15108
lt_prog_compiler_static_F77='-Bstatic'
15109
lt_prog_compiler_wl_F77=''
15116
osf3* | osf4* | osf5*)
15117
lt_prog_compiler_wl_F77='-Wl,'
15118
# All OSF/1 code is PIC.
15119
lt_prog_compiler_static_F77='-non_shared'
15123
lt_prog_compiler_static_F77='-non_shared'
15127
lt_prog_compiler_pic_F77='-KPIC'
15128
lt_prog_compiler_static_F77='-Bstatic'
15129
case $cc_basename in
15130
f77* | f90* | f95*)
15131
lt_prog_compiler_wl_F77='-Qoption ld ';;
15133
lt_prog_compiler_wl_F77='-Wl,';;
15138
lt_prog_compiler_wl_F77='-Qoption ld '
15139
lt_prog_compiler_pic_F77='-PIC'
15140
lt_prog_compiler_static_F77='-Bstatic'
15143
sysv4 | sysv4.2uw2* | sysv4.3*)
15144
lt_prog_compiler_wl_F77='-Wl,'
15145
lt_prog_compiler_pic_F77='-KPIC'
15146
lt_prog_compiler_static_F77='-Bstatic'
15150
if test -d /usr/nec ;then
15151
lt_prog_compiler_pic_F77='-Kconform_pic'
15152
lt_prog_compiler_static_F77='-Bstatic'
15156
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15157
lt_prog_compiler_wl_F77='-Wl,'
15158
lt_prog_compiler_pic_F77='-KPIC'
15159
lt_prog_compiler_static_F77='-Bstatic'
15163
lt_prog_compiler_wl_F77='-Wl,'
15164
lt_prog_compiler_can_build_shared_F77=no
15168
lt_prog_compiler_pic_F77='-pic'
15169
lt_prog_compiler_static_F77='-Bstatic'
15173
lt_prog_compiler_can_build_shared_F77=no
15178
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15179
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
15182
# Check to make sure the PIC flag actually works.
15184
if test -n "$lt_prog_compiler_pic_F77"; then
15186
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15187
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
15188
if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
15189
echo $ECHO_N "(cached) $ECHO_C" >&6
15191
lt_cv_prog_compiler_pic_works_F77=no
15192
ac_outfile=conftest.$ac_objext
15193
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15194
lt_compiler_flag="$lt_prog_compiler_pic_F77"
15195
# Insert the option either (1) after the last *FLAGS variable, or
15196
# (2) before a word containing "conftest.", or (3) at the end.
15197
# Note that $ac_compile itself does not contain backslashes and begins
15198
# with a dollar sign (not a hyphen), so the echo should work correctly.
15199
# The option is referenced via a variable to avoid confusing sed.
15200
lt_compile=`echo "$ac_compile" | $SED \
15201
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15202
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15203
-e 's:$: $lt_compiler_flag:'`
15204
(eval echo "\"\$as_me:15204: $lt_compile\"" >&5)
15205
(eval "$lt_compile" 2>conftest.err)
15207
cat conftest.err >&5
15208
echo "$as_me:15208: \$? = $ac_status" >&5
15209
if (exit $ac_status) && test -s "$ac_outfile"; then
15210
# The compiler can only warn and ignore the option if not recognized
15211
# So say no if there are warnings other than the usual output.
15212
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15213
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15214
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15215
lt_cv_prog_compiler_pic_works_F77=yes
15221
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
15222
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
15224
if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
15225
case $lt_prog_compiler_pic_F77 in
15227
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15230
lt_prog_compiler_pic_F77=
15231
lt_prog_compiler_can_build_shared_F77=no
15236
# For platforms which do not support PIC, -DPIC is meaningless:
15238
lt_prog_compiler_pic_F77=
15241
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15246
# Check to make sure the static flag actually works.
15248
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
15249
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15250
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15251
if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
15252
echo $ECHO_N "(cached) $ECHO_C" >&6
15254
lt_cv_prog_compiler_static_works_F77=no
15255
save_LDFLAGS="$LDFLAGS"
15256
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15257
echo "$lt_simple_link_test_code" > conftest.$ac_ext
15258
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15259
# The linker can only warn and ignore the option if not recognized
15260
# So say no if there are warnings
15261
if test -s conftest.err; then
15262
# Append any errors to the config.log.
15263
cat conftest.err 1>&5
15264
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15265
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15266
if diff conftest.exp conftest.er2 >/dev/null; then
15267
lt_cv_prog_compiler_static_works_F77=yes
15270
lt_cv_prog_compiler_static_works_F77=yes
15274
LDFLAGS="$save_LDFLAGS"
15277
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
15278
echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
15280
if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
15283
lt_prog_compiler_static_F77=
15287
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15288
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15289
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15290
echo $ECHO_N "(cached) $ECHO_C" >&6
15292
lt_cv_prog_compiler_c_o_F77=no
15293
$rm -r conftest 2>/dev/null
15297
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15299
lt_compiler_flag="-o out/conftest2.$ac_objext"
15300
# Insert the option either (1) after the last *FLAGS variable, or
15301
# (2) before a word containing "conftest.", or (3) at the end.
15302
# Note that $ac_compile itself does not contain backslashes and begins
15303
# with a dollar sign (not a hyphen), so the echo should work correctly.
15304
lt_compile=`echo "$ac_compile" | $SED \
15305
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15306
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15307
-e 's:$: $lt_compiler_flag:'`
15308
(eval echo "\"\$as_me:15308: $lt_compile\"" >&5)
15309
(eval "$lt_compile" 2>out/conftest.err)
15311
cat out/conftest.err >&5
15312
echo "$as_me:15312: \$? = $ac_status" >&5
15313
if (exit $ac_status) && test -s out/conftest2.$ac_objext
15315
# The compiler can only warn and ignore the option if not recognized
15316
# So say no if there are warnings
15317
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15318
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15319
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15320
lt_cv_prog_compiler_c_o_F77=yes
15325
# SGI C++ compiler will create directory out/ii_files/ for
15326
# template instantiation
15327
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15328
$rm out/* && rmdir out
15334
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15335
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
15338
hard_links="nottested"
15339
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15340
# do not overwrite the value of need_locks provided by the user
15341
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15342
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15345
ln conftest.a conftest.b 2>/dev/null && hard_links=no
15347
ln conftest.a conftest.b 2>&5 || hard_links=no
15348
ln conftest.a conftest.b 2>/dev/null && hard_links=no
15349
{ echo "$as_me:$LINENO: result: $hard_links" >&5
15350
echo "${ECHO_T}$hard_links" >&6; }
15351
if test "$hard_links" = no; then
15352
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15353
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15360
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15361
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15364
allow_undefined_flag_F77=
15365
enable_shared_with_static_runtimes_F77=no
15367
archive_expsym_cmds_F77=
15368
old_archive_From_new_cmds_F77=
15369
old_archive_from_expsyms_cmds_F77=
15370
export_dynamic_flag_spec_F77=
15371
whole_archive_flag_spec_F77=
15372
thread_safe_flag_spec_F77=
15373
hardcode_libdir_flag_spec_F77=
15374
hardcode_libdir_flag_spec_ld_F77=
15375
hardcode_libdir_separator_F77=
15376
hardcode_direct_F77=no
15377
hardcode_minus_L_F77=no
15378
hardcode_shlibpath_var_F77=unsupported
15379
link_all_deplibs_F77=unknown
15380
hardcode_automatic_F77=no
15382
module_expsym_cmds_F77=
15383
always_export_symbols_F77=no
15384
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15385
# include_expsyms should be a list of space-separated symbols to be *always*
15386
# included in the symbol list
15387
include_expsyms_F77=
15388
# exclude_expsyms can be an extended regexp of symbols to exclude
15389
# it will be wrapped by ` (' and `)$', so one must not match beginning or
15390
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15391
# as well as any symbol that contains `d'.
15392
exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15393
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15394
# platforms (ab)use it in PIC code, but their linkers get confused if
15395
# the symbol is explicitly referenced. Since portable code cannot
15396
# rely on this symbol name, it's probably fine to never include it in
15397
# preloaded symbol tables.
15398
# Exclude shared library initialization/finalization symbols.
15399
extract_expsyms_cmds=
15400
# Just being paranoid about ensuring that cc_basename is set.
15401
for cc_temp in $compiler""; do
15403
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15404
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15409
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15412
cygwin* | mingw* | pw32*)
15413
# FIXME: the MSVC++ port hasn't been tested in a loooong time
15414
# When not using gcc, we currently assume that we are using
15415
# Microsoft Visual C++.
15416
if test "$GCC" != yes; then
15421
# we just hope/assume this is gcc and not c89 (= MSVC++)
15430
if test "$with_gnu_ld" = yes; then
15431
# If archive_cmds runs LD, not CC, wlarc should be empty
15434
# Set some defaults for GNU ld with shared library support. These
15435
# are reset later if shared libraries are not supported. Putting them
15436
# here allows them to be overridden if necessary.
15437
runpath_var=LD_RUN_PATH
15438
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15439
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15440
# ancient GNU ld didn't support --whole-archive et. al.
15441
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15442
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15444
whole_archive_flag_spec_F77=
15446
supports_anon_versioning=no
15447
case `$LD -v 2>/dev/null` in
15448
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15449
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15450
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15451
*\ 2.11.*) ;; # other 2.11 versions
15452
*) supports_anon_versioning=yes ;;
15455
# See if GNU ld supports shared libraries.
15458
# On AIX/PPC, the GNU linker is very broken
15459
if test "$host_cpu" != ia64; then
15463
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15464
*** to be unable to reliably create shared libraries on AIX.
15465
*** Therefore, libtool is disabling shared libraries support. If you
15466
*** really care for shared libraries, you may want to modify your PATH
15467
*** so that a non-GNU linker is found, and then restart.
15474
archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
15475
hardcode_libdir_flag_spec_F77='-L$libdir'
15476
hardcode_minus_L_F77=yes
15478
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15479
# that the semantics of dynamic libraries on AmigaOS, at least up
15480
# to version 4, is to share data among multiple programs linked
15481
# with the same dynamic library. Since this doesn't match the
15482
# behavior of shared libraries on other platforms, we can't use
15488
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15489
allow_undefined_flag_F77=unsupported
15490
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15491
# support --undefined. This deserves some investigation. FIXME
15492
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15498
cygwin* | mingw* | pw32*)
15499
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15500
# as there is no search path for DLLs.
15501
hardcode_libdir_flag_spec_F77='-L$libdir'
15502
allow_undefined_flag_F77=unsupported
15503
always_export_symbols_F77=no
15504
enable_shared_with_static_runtimes_F77=yes
15505
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15507
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15508
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15509
# If the export-symbols file already is a .def file (1st line
15510
# is EXPORTS), use it as is; otherwise, prepend...
15511
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15512
cp $export_symbols $output_objdir/$soname.def;
15514
echo EXPORTS > $output_objdir/$soname.def;
15515
cat $export_symbols >> $output_objdir/$soname.def;
15517
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15524
hardcode_direct_F77=no
15525
hardcode_shlibpath_var_F77=no
15526
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15527
export_dynamic_flag_spec_F77='${wl}-E'
15528
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15529
# Instead, shared libraries are loaded at an image base (0x10000000 by
15530
# default) and relocated if they conflict, which is a slow very memory
15531
# consuming and fragmenting process. To avoid this, we pick a random,
15532
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15533
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
15534
archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15535
archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15538
gnu* | linux* | k*bsd*-gnu)
15539
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15541
case $cc_basename,$host_cpu in
15542
pgcc*) # Portland Group C compiler
15543
whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15544
tmp_addflag=' $pic_flag'
15546
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15547
whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15548
tmp_addflag=' $pic_flag -Mnomain' ;;
15549
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15550
tmp_addflag=' -i_dynamic' ;;
15551
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15552
tmp_addflag=' -i_dynamic -nofor_main' ;;
15553
ifc* | ifort*) # Intel Fortran compiler
15554
tmp_addflag=' -nofor_main' ;;
15556
case `$CC -V 2>&1 | sed 5q` in
15557
*Sun\ C*) # Sun C 5.9
15558
whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15559
tmp_sharedflag='-G' ;;
15560
*Sun\ F*) # Sun Fortran 8.3
15561
tmp_sharedflag='-G' ;;
15563
tmp_sharedflag='-shared' ;;
15565
archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15567
if test $supports_anon_versioning = yes; then
15568
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15569
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15570
$echo "local: *; };" >> $output_objdir/$libname.ver~
15571
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15573
link_all_deplibs_F77=no
15579
netbsd* | netbsdelf*-gnu)
15580
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15581
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15584
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15585
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15590
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15594
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15595
*** create shared libraries on Solaris systems. Therefore, libtool
15596
*** is disabling shared libraries support. We urge you to upgrade GNU
15597
*** binutils to release 2.9.1 or newer. Another option is to modify
15598
*** your PATH or compiler configuration so that the native linker is
15599
*** used, and then restart.
15602
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15603
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15604
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15610
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15611
case `$LD -v 2>&1` in
15612
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15616
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15617
*** reliably create shared libraries on SCO systems. Therefore, libtool
15618
*** is disabling shared libraries support. We urge you to upgrade GNU
15619
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15620
*** your PATH or compiler configuration so that the native linker is
15621
*** used, and then restart.
15626
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15627
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15628
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15629
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15638
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15640
hardcode_direct_F77=yes
15641
hardcode_shlibpath_var_F77=no
15645
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15646
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15647
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15654
if test "$ld_shlibs_F77" = no; then
15656
hardcode_libdir_flag_spec_F77=
15657
export_dynamic_flag_spec_F77=
15658
whole_archive_flag_spec_F77=
15661
# PORTME fill in a description of your system's linker (not GNU ld)
15664
allow_undefined_flag_F77=unsupported
15665
always_export_symbols_F77=yes
15666
archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
15667
# Note: this linker hardcodes the directories in LIBPATH if there
15668
# are no directories specified by -L.
15669
hardcode_minus_L_F77=yes
15670
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15671
# Neither direct hardcoding nor static linking is supported with a
15673
hardcode_direct_F77=unsupported
15678
if test "$host_cpu" = ia64; then
15679
# On IA64, the linker does run time linking by default, so we don't
15680
# have to do anything special.
15681
aix_use_runtimelinking=no
15682
exp_sym_flag='-Bexport'
15685
# If we're using GNU nm, then we don't want the "-C" option.
15686
# -C means demangle to AIX nm, but means don't demangle with GNU nm
15687
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15688
export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15690
export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15692
aix_use_runtimelinking=no
15694
# Test if we are trying to use run time linking or normal
15695
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15696
# need to do runtime linking.
15697
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15698
for ld_flag in $LDFLAGS; do
15699
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15700
aix_use_runtimelinking=yes
15707
exp_sym_flag='-bexport'
15708
no_entry_flag='-bnoentry'
15711
# When large executables or shared objects are built, AIX ld can
15712
# have problems creating the table of contents. If linking a library
15713
# or program results in "error TOC overflow" add -mminimal-toc to
15714
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15715
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15717
archive_cmds_F77=''
15718
hardcode_direct_F77=yes
15719
hardcode_libdir_separator_F77=':'
15720
link_all_deplibs_F77=yes
15722
if test "$GCC" = yes; then
15723
case $host_os in aix4.[012]|aix4.[012].*)
15724
# We only want to do this on AIX 4.2 and lower, the check
15725
# below for broken collect2 doesn't work under 4.3+
15726
collect2name=`${CC} -print-prog-name=collect2`
15727
if test -f "$collect2name" && \
15728
strings "$collect2name" | grep resolve_lib_name >/dev/null
15730
# We have reworked collect2
15733
# We have old collect2
15734
hardcode_direct_F77=unsupported
15735
# It fails to find uninstalled libraries when the uninstalled
15736
# path is not listed in the libpath. Setting hardcode_minus_L
15737
# to unsupported forces relinking
15738
hardcode_minus_L_F77=yes
15739
hardcode_libdir_flag_spec_F77='-L$libdir'
15740
hardcode_libdir_separator_F77=
15744
shared_flag='-shared'
15745
if test "$aix_use_runtimelinking" = yes; then
15746
shared_flag="$shared_flag "'${wl}-G'
15750
if test "$host_cpu" = ia64; then
15751
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15752
# chokes on -Wl,-G. The following line is correct:
15755
if test "$aix_use_runtimelinking" = yes; then
15756
shared_flag='${wl}-G'
15758
shared_flag='${wl}-bM:SRE'
15763
# It seems that -bexpall does not export symbols beginning with
15764
# underscore (_), so it is better to generate a list of symbols to export.
15765
always_export_symbols_F77=yes
15766
if test "$aix_use_runtimelinking" = yes; then
15767
# Warning - without using the other runtime loading flags (-brtl),
15768
# -berok will link without error, but may produce a broken library.
15769
allow_undefined_flag_F77='-berok'
15770
# Determine the default libpath from the value encoded in an empty executable.
15771
cat >conftest.$ac_ext <<_ACEOF
15776
rm -f conftest.$ac_objext conftest$ac_exeext
15777
if { (ac_try="$ac_link"
15778
case "(($ac_try" in
15779
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15780
*) ac_try_echo=$ac_try;;
15782
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15783
(eval "$ac_link") 2>conftest.er1
15785
grep -v '^ *+' conftest.er1 >conftest.err
15787
cat conftest.err >&5
15788
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15789
(exit $ac_status); } && {
15790
test -z "$ac_f77_werror_flag" ||
15791
test ! -s conftest.err
15792
} && test -s conftest$ac_exeext &&
15793
$as_test_x conftest$ac_exeext; then
15795
lt_aix_libpath_sed='
15796
/Import File Strings/,/^$/ {
15802
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15803
# Check for a 64-bit object if we didn't find anything.
15804
if test -z "$aix_libpath"; then
15805
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15808
echo "$as_me: failed program was:" >&5
15809
sed 's/^/| /' conftest.$ac_ext >&5
15814
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15815
conftest$ac_exeext conftest.$ac_ext
15816
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15818
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15819
archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15821
if test "$host_cpu" = ia64; then
15822
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15823
allow_undefined_flag_F77="-z nodefs"
15824
archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
15826
# Determine the default libpath from the value encoded in an empty executable.
15827
cat >conftest.$ac_ext <<_ACEOF
15832
rm -f conftest.$ac_objext conftest$ac_exeext
15833
if { (ac_try="$ac_link"
15834
case "(($ac_try" in
15835
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15836
*) ac_try_echo=$ac_try;;
15838
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15839
(eval "$ac_link") 2>conftest.er1
15841
grep -v '^ *+' conftest.er1 >conftest.err
15843
cat conftest.err >&5
15844
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15845
(exit $ac_status); } && {
15846
test -z "$ac_f77_werror_flag" ||
15847
test ! -s conftest.err
15848
} && test -s conftest$ac_exeext &&
15849
$as_test_x conftest$ac_exeext; then
15851
lt_aix_libpath_sed='
15852
/Import File Strings/,/^$/ {
15858
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15859
# Check for a 64-bit object if we didn't find anything.
15860
if test -z "$aix_libpath"; then
15861
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15864
echo "$as_me: failed program was:" >&5
15865
sed 's/^/| /' conftest.$ac_ext >&5
15870
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15871
conftest$ac_exeext conftest.$ac_ext
15872
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15874
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15875
# Warning - without using the other run time loading flags,
15876
# -berok will link without error, but may produce a broken library.
15877
no_undefined_flag_F77=' ${wl}-bernotok'
15878
allow_undefined_flag_F77=' ${wl}-berok'
15879
# Exported symbols can be pulled into shared objects from archives
15880
whole_archive_flag_spec_F77='$convenience'
15881
archive_cmds_need_lc_F77=yes
15882
# This is similar to how AIX traditionally builds its shared libraries.
15883
archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15889
archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
15890
hardcode_libdir_flag_spec_F77='-L$libdir'
15891
hardcode_minus_L_F77=yes
15892
# see comment about different semantics on the GNU ld section
15897
export_dynamic_flag_spec_F77=-rdynamic
15900
cygwin* | mingw* | pw32*)
15901
# When not using gcc, we currently assume that we are using
15902
# Microsoft Visual C++.
15903
# hardcode_libdir_flag_spec is actually meaningless, as there is
15904
# no search path for DLLs.
15905
hardcode_libdir_flag_spec_F77=' '
15906
allow_undefined_flag_F77=unsupported
15907
# Tell ltmain to make .lib files, not .a files.
15909
# Tell ltmain to make .dll files, not .so files.
15911
# FIXME: Setting linknames here is a bad hack.
15912
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15913
# The linker will automatically build a .lib file if we build a DLL.
15914
old_archive_From_new_cmds_F77='true'
15915
# FIXME: Should let the user specify the lib program.
15916
old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15917
fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15918
enable_shared_with_static_runtimes_F77=yes
15921
darwin* | rhapsody*)
15923
rhapsody* | darwin1.[012])
15924
allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15927
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15928
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15930
case ${MACOSX_DEPLOYMENT_TARGET} in
15932
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15935
allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15941
archive_cmds_need_lc_F77=no
15942
hardcode_direct_F77=no
15943
hardcode_automatic_F77=yes
15944
hardcode_shlibpath_var_F77=unsupported
15945
whole_archive_flag_spec_F77=''
15946
link_all_deplibs_F77=yes
15947
if test "$GCC" = yes ; then
15948
output_verbose_link_cmd='echo'
15949
archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15950
module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15951
archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
15952
module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
15954
case $cc_basename in
15956
output_verbose_link_cmd='echo'
15957
archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15958
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15959
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15960
archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15961
module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15971
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15972
hardcode_libdir_flag_spec_F77='-L$libdir'
15973
hardcode_shlibpath_var_F77=no
15980
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15981
# support. Future versions do this automatically, but an explicit c++rt0.o
15982
# does not break anything, and helps significantly (at the cost of a little
15985
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15986
hardcode_libdir_flag_spec_F77='-R$libdir'
15987
hardcode_direct_F77=yes
15988
hardcode_shlibpath_var_F77=no
15991
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
15993
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15994
hardcode_direct_F77=yes
15995
hardcode_minus_L_F77=yes
15996
hardcode_shlibpath_var_F77=no
15999
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16000
freebsd* | dragonfly*)
16001
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16002
hardcode_libdir_flag_spec_F77='-R$libdir'
16003
hardcode_direct_F77=yes
16004
hardcode_shlibpath_var_F77=no
16008
if test "$GCC" = yes; then
16009
archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16011
archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16013
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16014
hardcode_libdir_separator_F77=:
16015
hardcode_direct_F77=yes
16017
# hardcode_minus_L: Not really in the search PATH,
16018
# but as the default location of the library.
16019
hardcode_minus_L_F77=yes
16020
export_dynamic_flag_spec_F77='${wl}-E'
16024
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16025
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16027
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16029
if test "$with_gnu_ld" = no; then
16030
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16031
hardcode_libdir_separator_F77=:
16033
hardcode_direct_F77=yes
16034
export_dynamic_flag_spec_F77='${wl}-E'
16036
# hardcode_minus_L: Not really in the search PATH,
16037
# but as the default location of the library.
16038
hardcode_minus_L_F77=yes
16043
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16046
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16049
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16052
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16058
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16061
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16064
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16068
if test "$with_gnu_ld" = no; then
16069
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16070
hardcode_libdir_separator_F77=:
16074
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16075
hardcode_direct_F77=no
16076
hardcode_shlibpath_var_F77=no
16079
hardcode_direct_F77=yes
16080
export_dynamic_flag_spec_F77='${wl}-E'
16082
# hardcode_minus_L: Not really in the search PATH,
16083
# but as the default location of the library.
16084
hardcode_minus_L_F77=yes
16090
irix5* | irix6* | nonstopux*)
16091
if test "$GCC" = yes; then
16092
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16094
archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16095
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16097
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16098
hardcode_libdir_separator_F77=:
16099
link_all_deplibs_F77=yes
16102
netbsd* | netbsdelf*-gnu)
16103
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16104
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16106
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16108
hardcode_libdir_flag_spec_F77='-R$libdir'
16109
hardcode_direct_F77=yes
16110
hardcode_shlibpath_var_F77=no
16114
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16115
hardcode_direct_F77=yes
16116
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16117
hardcode_libdir_separator_F77=:
16118
hardcode_shlibpath_var_F77=no
16122
if test -f /usr/libexec/ld.so; then
16123
hardcode_direct_F77=yes
16124
hardcode_shlibpath_var_F77=no
16125
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16126
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16127
archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16128
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16129
export_dynamic_flag_spec_F77='${wl}-E'
16132
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16133
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16134
hardcode_libdir_flag_spec_F77='-R$libdir'
16137
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16138
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16148
hardcode_libdir_flag_spec_F77='-L$libdir'
16149
hardcode_minus_L_F77=yes
16150
allow_undefined_flag_F77=unsupported
16151
archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
16152
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16156
if test "$GCC" = yes; then
16157
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16158
archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16160
allow_undefined_flag_F77=' -expect_unresolved \*'
16161
archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16163
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16164
hardcode_libdir_separator_F77=:
16167
osf4* | osf5*) # as osf3* with the addition of -msym flag
16168
if test "$GCC" = yes; then
16169
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16170
archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16171
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16173
allow_undefined_flag_F77=' -expect_unresolved \*'
16174
archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16175
archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16176
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
16178
# Both c and cxx compiler support -rpath directly
16179
hardcode_libdir_flag_spec_F77='-rpath $libdir'
16181
hardcode_libdir_separator_F77=:
16185
no_undefined_flag_F77=' -z text'
16186
if test "$GCC" = yes; then
16188
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16189
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16190
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16193
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16194
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16195
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16197
hardcode_libdir_flag_spec_F77='-R$libdir'
16198
hardcode_shlibpath_var_F77=no
16200
solaris2.[0-5] | solaris2.[0-5].*) ;;
16202
# The compiler driver will combine and reorder linker options,
16203
# but understands `-z linker_flag'. GCC discards it without `$wl',
16204
# but is careful enough not to reorder.
16205
# Supported since Solaris 2.6 (maybe 2.5.1?)
16206
if test "$GCC" = yes; then
16207
whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16209
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
16213
link_all_deplibs_F77=yes
16217
if test "x$host_vendor" = xsequent; then
16218
# Use $CC to link under sequent, because it throws in some extra .o
16219
# files that make .init and .fini sections work.
16220
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16222
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16224
hardcode_libdir_flag_spec_F77='-L$libdir'
16225
hardcode_direct_F77=yes
16226
hardcode_minus_L_F77=yes
16227
hardcode_shlibpath_var_F77=no
16231
case $host_vendor in
16233
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16234
hardcode_direct_F77=yes # is this really true???
16237
## LD is ld it makes a PLAMLIB
16238
## CC just makes a GrossModule.
16239
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16240
reload_cmds_F77='$CC -r -o $output$reload_objs'
16241
hardcode_direct_F77=no
16244
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16245
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16248
runpath_var='LD_RUN_PATH'
16249
hardcode_shlibpath_var_F77=no
16253
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16254
hardcode_shlibpath_var_F77=no
16255
export_dynamic_flag_spec_F77='-Bexport'
16259
if test -d /usr/nec; then
16260
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16261
hardcode_shlibpath_var_F77=no
16262
runpath_var=LD_RUN_PATH
16263
hardcode_runpath_var=yes
16268
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16269
no_undefined_flag_F77='${wl}-z,text'
16270
archive_cmds_need_lc_F77=no
16271
hardcode_shlibpath_var_F77=no
16272
runpath_var='LD_RUN_PATH'
16274
if test "$GCC" = yes; then
16275
archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16276
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16278
archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16279
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16283
sysv5* | sco3.2v5* | sco5v6*)
16284
# Note: We can NOT use -z defs as we might desire, because we do not
16285
# link with -lc, and that would cause any symbols used from libc to
16286
# always be unresolved, which means just about no library would
16287
# ever link correctly. If we're not using GNU ld we use -z text
16288
# though, which does catch some bad symbols but isn't as heavy-handed
16290
no_undefined_flag_F77='${wl}-z,text'
16291
allow_undefined_flag_F77='${wl}-z,nodefs'
16292
archive_cmds_need_lc_F77=no
16293
hardcode_shlibpath_var_F77=no
16294
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16295
hardcode_libdir_separator_F77=':'
16296
link_all_deplibs_F77=yes
16297
export_dynamic_flag_spec_F77='${wl}-Bexport'
16298
runpath_var='LD_RUN_PATH'
16300
if test "$GCC" = yes; then
16301
archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16302
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16304
archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16305
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16310
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16311
hardcode_libdir_flag_spec_F77='-L$libdir'
16312
hardcode_shlibpath_var_F77=no
16321
{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16322
echo "${ECHO_T}$ld_shlibs_F77" >&6; }
16323
test "$ld_shlibs_F77" = no && can_build_shared=no
16326
# Do we need to explicitly link libc?
16328
case "x$archive_cmds_need_lc_F77" in
16330
# Assume -lc should be added
16331
archive_cmds_need_lc_F77=yes
16333
if test "$enable_shared" = yes && test "$GCC" = yes; then
16334
case $archive_cmds_F77 in
16336
# FIXME: we may have to deal with multi-command sequences.
16339
# Test whether the compiler implicitly links with -lc since on some
16340
# systems, -lgcc has to come before -lc. If gcc already passes -lc
16341
# to ld, don't add -lc before -lgcc.
16342
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16343
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16345
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16347
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16348
(eval $ac_compile) 2>&5
16350
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16351
(exit $ac_status); } 2>conftest.err; then
16354
libobjs=conftest.$ac_objext
16356
wl=$lt_prog_compiler_wl_F77
16357
pic_flag=$lt_prog_compiler_pic_F77
16363
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16364
allow_undefined_flag_F77=
16365
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16366
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16368
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16369
(exit $ac_status); }
16371
archive_cmds_need_lc_F77=no
16373
archive_cmds_need_lc_F77=yes
16375
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16377
cat conftest.err 1>&5
16380
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16381
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
16388
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16389
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16390
library_names_spec=
16391
libname_spec='lib$name'
16395
postuninstall_cmds=
16399
shlibpath_overrides_runpath=unknown
16401
dynamic_linker="$host_os ld.so"
16402
sys_lib_dlsearch_path_spec="/lib /usr/lib"
16404
need_lib_prefix=unknown
16405
hardcode_into_libs=no
16407
# when you set need_version to no, make sure it does not cause -set_version
16408
# flags to be left without arguments
16409
need_version=unknown
16414
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16415
shlibpath_var=LIBPATH
16417
# AIX 3 has no versioning support, so we append a major version to the name.
16418
soname_spec='${libname}${release}${shared_ext}$major'
16425
hardcode_into_libs=yes
16426
if test "$host_cpu" = ia64; then
16427
# AIX 5 supports IA64
16428
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16429
shlibpath_var=LD_LIBRARY_PATH
16431
# With GCC up to 2.95.x, collect2 would create an import file
16432
# for dependence libraries. The import file would start with
16433
# the line `#! .'. This would cause the generated library to
16434
# depend on `.', always an invalid library. This was fixed in
16435
# development snapshots of GCC prior to 3.0.
16437
aix4 | aix4.[01] | aix4.[01].*)
16438
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16440
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16443
can_build_shared=no
16447
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16448
# soname into executable. Probably we can add versioning support to
16449
# collect2, so additional links can be useful in future.
16450
if test "$aix_use_runtimelinking" = yes; then
16451
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
16452
# instead of lib<name>.a to let people know that these are not
16453
# typical AIX shared libraries.
16454
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16456
# We preserve .a as extension for shared libraries through AIX4.2
16457
# and later when we are not doing run time linking.
16458
library_names_spec='${libname}${release}.a $libname.a'
16459
soname_spec='${libname}${release}${shared_ext}$major'
16461
shlibpath_var=LIBPATH
16466
library_names_spec='$libname.ixlibrary $libname.a'
16467
# Create ${libname}_ixlibrary.a entries in /sys/libs.
16468
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
16472
library_names_spec='${libname}${shared_ext}'
16473
dynamic_linker="$host_os ld.so"
16474
shlibpath_var=LIBRARY_PATH
16480
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16481
soname_spec='${libname}${release}${shared_ext}$major'
16482
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16483
shlibpath_var=LD_LIBRARY_PATH
16484
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16485
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16486
# the default ld.so.conf also contains /usr/contrib/lib and
16487
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16488
# libtool to hard-code these into programs
16491
cygwin* | mingw* | pw32*)
16492
version_type=windows
16497
case $GCC,$host_os in
16498
yes,cygwin* | yes,mingw* | yes,pw32*)
16499
library_names_spec='$libname.dll.a'
16500
# DLL is installed to $(libdir)/../bin by postinstall_cmds
16501
postinstall_cmds='base_file=`basename \${file}`~
16502
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16503
dldir=$destdir/`dirname \$dlpath`~
16504
test -d \$dldir || mkdir -p \$dldir~
16505
$install_prog $dir/$dlname \$dldir/$dlname~
16506
chmod a+x \$dldir/$dlname'
16507
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16508
dlpath=$dir/\$dldll~
16510
shlibpath_overrides_runpath=yes
16514
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
16515
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16516
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16519
# MinGW DLLs use traditional 'lib' prefix
16520
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16521
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16522
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16523
# It is most probably a Windows format PATH printed by
16524
# mingw gcc, but we are running on Cygwin. Gcc prints its search
16525
# path with ; separators, and with drive letters. We can handle the
16526
# drive letters (cygwin fileutils understands them), so leave them,
16527
# especially as we might pass files found there to a mingw objdump,
16528
# which wouldn't understand a cygwinified path. Ahh.
16529
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16531
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16535
# pw32 DLLs use 'pw' prefix rather than 'lib'
16536
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16542
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16545
dynamic_linker='Win32 ld.exe'
16546
# FIXME: first we should search . and the directory the executable is in
16550
darwin* | rhapsody*)
16551
dynamic_linker="$host_os dyld"
16552
version_type=darwin
16555
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16556
soname_spec='${libname}${release}${major}$shared_ext'
16557
shlibpath_overrides_runpath=yes
16558
shlibpath_var=DYLD_LIBRARY_PATH
16559
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16561
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16568
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16569
soname_spec='${libname}${release}${shared_ext}$major'
16570
shlibpath_var=LD_LIBRARY_PATH
16577
freebsd* | dragonfly*)
16578
# DragonFly does not have aout. When/if they implement a new
16579
# versioning mechanism, adjust this.
16580
if test -x /usr/bin/objformat; then
16581
objformat=`/usr/bin/objformat`
16584
freebsd[123]*) objformat=aout ;;
16585
*) objformat=elf ;;
16588
version_type=freebsd-$objformat
16589
case $version_type in
16591
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16596
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16600
shlibpath_var=LD_LIBRARY_PATH
16603
shlibpath_overrides_runpath=yes
16605
freebsd3.[01]* | freebsdelf3.[01]*)
16606
shlibpath_overrides_runpath=yes
16607
hardcode_into_libs=yes
16609
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16610
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16611
shlibpath_overrides_runpath=no
16612
hardcode_into_libs=yes
16614
*) # from 4.6 on, and DragonFly
16615
shlibpath_overrides_runpath=yes
16616
hardcode_into_libs=yes
16625
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16626
soname_spec='${libname}${release}${shared_ext}$major'
16627
shlibpath_var=LD_LIBRARY_PATH
16628
hardcode_into_libs=yes
16631
hpux9* | hpux10* | hpux11*)
16632
# Give a soname corresponding to the major version so that dld.sl refuses to
16633
# link against other versions.
16640
hardcode_into_libs=yes
16641
dynamic_linker="$host_os dld.so"
16642
shlibpath_var=LD_LIBRARY_PATH
16643
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16644
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16645
soname_spec='${libname}${release}${shared_ext}$major'
16646
if test "X$HPUX_IA64_MODE" = X32; then
16647
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16649
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16651
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16655
hardcode_into_libs=yes
16656
dynamic_linker="$host_os dld.sl"
16657
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16658
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16659
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16660
soname_spec='${libname}${release}${shared_ext}$major'
16661
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16662
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16666
dynamic_linker="$host_os dld.sl"
16667
shlibpath_var=SHLIB_PATH
16668
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16669
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16670
soname_spec='${libname}${release}${shared_ext}$major'
16673
# HP-UX runs *really* slowly unless shared libraries are mode 555.
16674
postinstall_cmds='chmod 555 $lib'
16681
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16682
soname_spec='${libname}${release}${shared_ext}$major'
16683
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16684
shlibpath_var=LD_LIBRARY_PATH
16685
shlibpath_overrides_runpath=no
16686
hardcode_into_libs=yes
16689
irix5* | irix6* | nonstopux*)
16691
nonstopux*) version_type=nonstopux ;;
16693
if test "$lt_cv_prog_gnu_ld" = yes; then
16701
soname_spec='${libname}${release}${shared_ext}$major'
16702
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16704
irix5* | nonstopux*)
16705
libsuff= shlibsuff=
16708
case $LD in # libtool.m4 will add one of these switches to LD
16709
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16710
libsuff= shlibsuff= libmagic=32-bit;;
16711
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16712
libsuff=32 shlibsuff=N32 libmagic=N32;;
16713
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16714
libsuff=64 shlibsuff=64 libmagic=64-bit;;
16715
*) libsuff= shlibsuff= libmagic=never-match;;
16719
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16720
shlibpath_overrides_runpath=no
16721
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16722
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16723
hardcode_into_libs=yes
16726
# No shared lib support for Linux oldld, aout, or coff.
16727
linux*oldld* | linux*aout* | linux*coff*)
16731
# This must be Linux ELF.
16732
linux* | k*bsd*-gnu)
16736
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16737
soname_spec='${libname}${release}${shared_ext}$major'
16738
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16739
shlibpath_var=LD_LIBRARY_PATH
16740
shlibpath_overrides_runpath=no
16741
# This implies no fast_install, which is unacceptable.
16742
# Some rework will be needed to allow for fast_install
16743
# before this can be enabled.
16744
hardcode_into_libs=yes
16746
# Append ld.so.conf contents to the search path
16747
if test -f /etc/ld.so.conf; then
16748
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16749
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16752
# We used to test for /lib/ld.so.1 and disable shared libraries on
16753
# powerpc, because MkLinux only supported shared libraries with the
16754
# GNU dynamic linker. Since this was broken with cross compilers,
16755
# most powerpc-linux boxes support dynamic linking these days and
16756
# people can always --disable-shared, the test was removed, and we
16757
# assume the GNU/Linux dynamic linker is in use.
16758
dynamic_linker='GNU/Linux ld.so'
16765
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16766
soname_spec='${libname}${release}${shared_ext}$major'
16767
shlibpath_var=LD_LIBRARY_PATH
16768
shlibpath_overrides_runpath=no
16769
hardcode_into_libs=yes
16770
dynamic_linker='NetBSD ld.elf_so'
16777
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16778
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16779
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16780
dynamic_linker='NetBSD (a.out) ld.so'
16782
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16783
soname_spec='${libname}${release}${shared_ext}$major'
16784
dynamic_linker='NetBSD ld.elf_so'
16786
shlibpath_var=LD_LIBRARY_PATH
16787
shlibpath_overrides_runpath=yes
16788
hardcode_into_libs=yes
16793
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16794
shlibpath_var=LD_LIBRARY_PATH
16795
shlibpath_overrides_runpath=yes
16802
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16803
soname_spec='${libname}${release}${shared_ext}$major'
16804
shlibpath_var=LD_LIBRARY_PATH
16805
shlibpath_overrides_runpath=yes
16810
sys_lib_dlsearch_path_spec="/usr/lib"
16812
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16814
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16815
*) need_version=no ;;
16817
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16818
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16819
shlibpath_var=LD_LIBRARY_PATH
16820
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16822
openbsd2.[89] | openbsd2.[89].*)
16823
shlibpath_overrides_runpath=no
16826
shlibpath_overrides_runpath=yes
16830
shlibpath_overrides_runpath=yes
16835
libname_spec='$name'
16838
library_names_spec='$libname${shared_ext} $libname.a'
16839
dynamic_linker='OS/2 ld.exe'
16840
shlibpath_var=LIBPATH
16843
osf3* | osf4* | osf5*)
16847
soname_spec='${libname}${release}${shared_ext}$major'
16848
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16849
shlibpath_var=LD_LIBRARY_PATH
16850
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16851
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16862
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16863
soname_spec='${libname}${release}${shared_ext}$major'
16864
shlibpath_var=LD_LIBRARY_PATH
16865
shlibpath_overrides_runpath=yes
16866
hardcode_into_libs=yes
16867
# ldd complains unless libraries are executable
16868
postinstall_cmds='chmod +x $lib'
16873
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16874
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16875
shlibpath_var=LD_LIBRARY_PATH
16876
shlibpath_overrides_runpath=yes
16877
if test "$with_gnu_ld" = yes; then
16885
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16886
soname_spec='${libname}${release}${shared_ext}$major'
16887
shlibpath_var=LD_LIBRARY_PATH
16888
case $host_vendor in
16890
shlibpath_overrides_runpath=no
16892
export_dynamic_flag_spec='${wl}-Blargedynsym'
16893
runpath_var=LD_RUN_PATH
16901
shlibpath_overrides_runpath=no
16902
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16908
if test -d /usr/nec ;then
16910
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16911
soname_spec='$libname${shared_ext}.$major'
16912
shlibpath_var=LD_LIBRARY_PATH
16916
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16917
version_type=freebsd-elf
16920
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16921
soname_spec='${libname}${release}${shared_ext}$major'
16922
shlibpath_var=LD_LIBRARY_PATH
16923
hardcode_into_libs=yes
16924
if test "$with_gnu_ld" = yes; then
16925
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16926
shlibpath_overrides_runpath=no
16928
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16929
shlibpath_overrides_runpath=yes
16932
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16936
sys_lib_dlsearch_path_spec='/usr/lib'
16941
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16942
soname_spec='${libname}${release}${shared_ext}$major'
16943
shlibpath_var=LD_LIBRARY_PATH
16950
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16951
echo "${ECHO_T}$dynamic_linker" >&6; }
16952
test "$dynamic_linker" = no && can_build_shared=no
16954
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16955
echo $ECHO_N "(cached) $ECHO_C" >&6
16957
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16960
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16961
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16962
echo $ECHO_N "(cached) $ECHO_C" >&6
16964
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16967
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16969
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16970
if test "$GCC" = yes; then
16971
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16974
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16975
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16976
hardcode_action_F77=
16977
if test -n "$hardcode_libdir_flag_spec_F77" || \
16978
test -n "$runpath_var_F77" || \
16979
test "X$hardcode_automatic_F77" = "Xyes" ; then
16981
# We can hardcode non-existant directories.
16982
if test "$hardcode_direct_F77" != no &&
16983
# If the only mechanism to avoid hardcoding is shlibpath_var, we
16984
# have to relink, otherwise we might link with an installed library
16985
# when we should be linking with a yet-to-be-installed one
16986
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16987
test "$hardcode_minus_L_F77" != no; then
16988
# Linking always hardcodes the temporary library directory.
16989
hardcode_action_F77=relink
16991
# We can link without hardcoding, and we can hardcode nonexisting dirs.
16992
hardcode_action_F77=immediate
16995
# We cannot hardcode anything, or else we can only hardcode existing
16997
hardcode_action_F77=unsupported
16999
{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17000
echo "${ECHO_T}$hardcode_action_F77" >&6; }
17002
if test "$hardcode_action_F77" = relink; then
17003
# Fast installation is not supported
17004
enable_fast_install=no
17005
elif test "$shlibpath_overrides_runpath" = yes ||
17006
test "$enable_shared" = no; then
17007
# Fast installation is not necessary
17008
enable_fast_install=needless
17012
# The else clause should only fire when bootstrapping the
17013
# libtool distribution, otherwise you forgot to ship ltmain.sh
17014
# with your package, and you will get complaints that there are
17015
# no rules to generate ltmain.sh.
17016
if test -f "$ltmain"; then
17017
# See if we are running on zsh, and set the options which allow our commands through
17018
# without removal of \ escapes.
17019
if test -n "${ZSH_VERSION+set}" ; then
17020
setopt NO_GLOB_SUBST
17022
# Now quote all the things that may contain metacharacters while being
17023
# careful not to overquote the AC_SUBSTed values. We take copies of the
17024
# variables and quote the copies for generation of the libtool script.
17025
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17027
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17028
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17029
deplibs_check_method reload_flag reload_cmds need_locks \
17030
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17031
lt_cv_sys_global_symbol_to_c_name_address \
17032
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17033
old_postinstall_cmds old_postuninstall_cmds \
17037
lt_prog_compiler_wl_F77 \
17038
lt_prog_compiler_pic_F77 \
17039
lt_prog_compiler_static_F77 \
17040
lt_prog_compiler_no_builtin_flag_F77 \
17041
export_dynamic_flag_spec_F77 \
17042
thread_safe_flag_spec_F77 \
17043
whole_archive_flag_spec_F77 \
17044
enable_shared_with_static_runtimes_F77 \
17045
old_archive_cmds_F77 \
17046
old_archive_from_new_cmds_F77 \
17047
predep_objects_F77 \
17048
postdep_objects_F77 \
17051
compiler_lib_search_path_F77 \
17052
compiler_lib_search_dirs_F77 \
17054
archive_expsym_cmds_F77 \
17055
postinstall_cmds_F77 \
17056
postuninstall_cmds_F77 \
17057
old_archive_from_expsyms_cmds_F77 \
17058
allow_undefined_flag_F77 \
17059
no_undefined_flag_F77 \
17060
export_symbols_cmds_F77 \
17061
hardcode_libdir_flag_spec_F77 \
17062
hardcode_libdir_flag_spec_ld_F77 \
17063
hardcode_libdir_separator_F77 \
17064
hardcode_automatic_F77 \
17066
module_expsym_cmds_F77 \
17067
lt_cv_prog_compiler_c_o_F77 \
17068
fix_srcfile_path_F77 \
17069
exclude_expsyms_F77 \
17070
include_expsyms_F77; do
17073
old_archive_cmds_F77 | \
17074
old_archive_from_new_cmds_F77 | \
17075
archive_cmds_F77 | \
17076
archive_expsym_cmds_F77 | \
17077
module_cmds_F77 | \
17078
module_expsym_cmds_F77 | \
17079
old_archive_from_expsyms_cmds_F77 | \
17080
export_symbols_cmds_F77 | \
17081
extract_expsyms_cmds | reload_cmds | finish_cmds | \
17082
postinstall_cmds | postuninstall_cmds | \
17083
old_postinstall_cmds | old_postuninstall_cmds | \
17084
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17085
# Double-quote double-evaled strings.
17086
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17089
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17095
*'\$0 --fallback-echo"')
17096
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17102
cat <<__EOF__ >> "$cfgfile"
17103
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17105
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17107
# Shell to use when invoking shell scripts.
17110
# Whether or not to build shared libraries.
17111
build_libtool_libs=$enable_shared
17113
# Whether or not to build static libraries.
17114
build_old_libs=$enable_static
17116
# Whether or not to add -lc for building shared libraries.
17117
build_libtool_need_lc=$archive_cmds_need_lc_F77
17119
# Whether or not to disallow shared libs when runtime libs are static
17120
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17122
# Whether or not to optimize for fast installation.
17123
fast_install=$enable_fast_install
17126
host_alias=$host_alias
17130
# The build system.
17131
build_alias=$build_alias
17135
# An echo program that does not interpret backslashes.
17140
AR_FLAGS=$lt_AR_FLAGS
17145
# LTCC compiler flags.
17146
LTCFLAGS=$lt_LTCFLAGS
17148
# A language-specific compiler.
17149
CC=$lt_compiler_F77
17151
# Is the compiler the GNU C compiler?
17157
# The linker used to build libraries.
17160
# Whether we need hard or soft links.
17163
# A BSD-compatible nm program.
17166
# A symbol stripping program
17169
# Used to examine libraries when file_magic_cmd begins "file"
17170
MAGIC_CMD=$MAGIC_CMD
17172
# Used on cygwin: DLL creation program.
17175
# Used on cygwin: object dumper.
17178
# Used on cygwin: assembler.
17181
# The name of the directory that contains temporary libtool files.
17184
# How to create reloadable object files.
17185
reload_flag=$lt_reload_flag
17186
reload_cmds=$lt_reload_cmds
17188
# How to pass a linker flag through the compiler.
17189
wl=$lt_lt_prog_compiler_wl_F77
17191
# Object file suffix (normally "o").
17192
objext="$ac_objext"
17194
# Old archive suffix (normally "a").
17197
# Shared library suffix (normally ".so").
17198
shrext_cmds='$shrext_cmds'
17200
# Executable file suffix (normally "").
17203
# Additional compiler flags for building library objects.
17204
pic_flag=$lt_lt_prog_compiler_pic_F77
17207
# What is the maximum length of a command?
17208
max_cmd_len=$lt_cv_sys_max_cmd_len
17210
# Does compiler simultaneously support -c and -o options?
17211
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17213
# Must we lock files when doing compilation?
17214
need_locks=$lt_need_locks
17216
# Do we need the lib prefix for modules?
17217
need_lib_prefix=$need_lib_prefix
17219
# Do we need a version for libraries?
17220
need_version=$need_version
17222
# Whether dlopen is supported.
17223
dlopen_support=$enable_dlopen
17225
# Whether dlopen of programs is supported.
17226
dlopen_self=$enable_dlopen_self
17228
# Whether dlopen of statically linked programs is supported.
17229
dlopen_self_static=$enable_dlopen_self_static
17231
# Compiler flag to prevent dynamic linking.
17232
link_static_flag=$lt_lt_prog_compiler_static_F77
17234
# Compiler flag to turn off builtin functions.
17235
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17237
# Compiler flag to allow reflexive dlopens.
17238
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17240
# Compiler flag to generate shared objects directly from archives.
17241
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17243
# Compiler flag to generate thread-safe objects.
17244
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17246
# Library versioning type.
17247
version_type=$version_type
17249
# Format of library name prefix.
17250
libname_spec=$lt_libname_spec
17252
# List of archive names. First name is the real one, the rest are links.
17253
# The last name is the one that the linker finds with -lNAME.
17254
library_names_spec=$lt_library_names_spec
17256
# The coded name of the library, if different from the real name.
17257
soname_spec=$lt_soname_spec
17259
# Commands used to build and install an old-style archive.
17261
old_archive_cmds=$lt_old_archive_cmds_F77
17262
old_postinstall_cmds=$lt_old_postinstall_cmds
17263
old_postuninstall_cmds=$lt_old_postuninstall_cmds
17265
# Create an old-style archive from a shared archive.
17266
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17268
# Create a temporary old-style archive to link instead of a shared archive.
17269
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17271
# Commands used to build and install a shared archive.
17272
archive_cmds=$lt_archive_cmds_F77
17273
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17274
postinstall_cmds=$lt_postinstall_cmds
17275
postuninstall_cmds=$lt_postuninstall_cmds
17277
# Commands used to build a loadable module (assumed same as above if empty)
17278
module_cmds=$lt_module_cmds_F77
17279
module_expsym_cmds=$lt_module_expsym_cmds_F77
17281
# Commands to strip libraries.
17282
old_striplib=$lt_old_striplib
17283
striplib=$lt_striplib
17285
# Dependencies to place before the objects being linked to create a
17287
predep_objects=$lt_predep_objects_F77
17289
# Dependencies to place after the objects being linked to create a
17291
postdep_objects=$lt_postdep_objects_F77
17293
# Dependencies to place before the objects being linked to create a
17295
predeps=$lt_predeps_F77
17297
# Dependencies to place after the objects being linked to create a
17299
postdeps=$lt_postdeps_F77
17301
# The directories searched by this compiler when creating a shared
17303
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
17305
# The library search path used internally by the compiler when linking
17306
# a shared library.
17307
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17309
# Method to check whether dependent libraries are shared objects.
17310
deplibs_check_method=$lt_deplibs_check_method
17312
# Command to use when deplibs_check_method == file_magic.
17313
file_magic_cmd=$lt_file_magic_cmd
17315
# Flag that allows shared libraries with undefined symbols to be built.
17316
allow_undefined_flag=$lt_allow_undefined_flag_F77
17318
# Flag that forces no undefined symbols.
17319
no_undefined_flag=$lt_no_undefined_flag_F77
17321
# Commands used to finish a libtool library installation in a directory.
17322
finish_cmds=$lt_finish_cmds
17324
# Same as above, but a single script fragment to be evaled but not shown.
17325
finish_eval=$lt_finish_eval
17327
# Take the output of nm and produce a listing of raw symbols and C names.
17328
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17330
# Transform the output of nm in a proper C declaration
17331
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17333
# Transform the output of nm in a C name address pair
17334
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17336
# This is the shared library runtime path variable.
17337
runpath_var=$runpath_var
17339
# This is the shared library path variable.
17340
shlibpath_var=$shlibpath_var
17342
# Is shlibpath searched before the hard-coded library search path?
17343
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17345
# How to hardcode a shared library path into an executable.
17346
hardcode_action=$hardcode_action_F77
17348
# Whether we should hardcode library paths into libraries.
17349
hardcode_into_libs=$hardcode_into_libs
17351
# Flag to hardcode \$libdir into a binary during linking.
17352
# This must work even if \$libdir does not exist.
17353
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17355
# If ld is used when linking, flag to hardcode \$libdir into
17356
# a binary during linking. This must work even if \$libdir does
17358
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17360
# Whether we need a single -rpath flag with a separated argument.
17361
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17363
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17364
# resulting binary.
17365
hardcode_direct=$hardcode_direct_F77
17367
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17368
# resulting binary.
17369
hardcode_minus_L=$hardcode_minus_L_F77
17371
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17372
# the resulting binary.
17373
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17375
# Set to yes if building a shared library automatically hardcodes DIR into the library
17376
# and all subsequent libraries and executables linked against it.
17377
hardcode_automatic=$hardcode_automatic_F77
17379
# Variables whose values should be saved in libtool wrapper scripts and
17380
# restored at relink time.
17381
variables_saved_for_relink="$variables_saved_for_relink"
17383
# Whether libtool must link a program against all its dependency libraries.
17384
link_all_deplibs=$link_all_deplibs_F77
17386
# Compile-time system search path for libraries
17387
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17389
# Run-time system search path for libraries
17390
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17392
# Fix the shell variable \$srcfile for the compiler.
17393
fix_srcfile_path=$lt_fix_srcfile_path
17395
# Set to yes if exported symbols are required.
17396
always_export_symbols=$always_export_symbols_F77
17398
# The commands to list exported symbols.
17399
export_symbols_cmds=$lt_export_symbols_cmds_F77
17401
# The commands to extract the exported symbol list from a shared archive.
17402
extract_expsyms_cmds=$lt_extract_expsyms_cmds
17404
# Symbols that should not be listed in the preloaded symbols.
17405
exclude_expsyms=$lt_exclude_expsyms_F77
17407
# Symbols that must always be exported.
17408
include_expsyms=$lt_include_expsyms_F77
17410
# ### END LIBTOOL TAG CONFIG: $tagname
17416
# If there is no Makefile yet, we rely on a make rule to execute
17417
# `config.status --recheck' to rerun these tests and create the
17418
# libtool script then.
17419
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17420
if test -f "$ltmain_in"; then
17421
test -f Makefile && make "$ltmain"
17427
ac_cpp='$CPP $CPPFLAGS'
17428
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17429
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17430
ac_compiler_gnu=$ac_cv_c_compiler_gnu
17440
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17443
# Source file extension for Java test sources.
17446
# Object file extension for compiled Java test sources.
17450
# Code to be used in simple compile tests
17451
lt_simple_compile_test_code="class foo {}"
17453
# Code to be used in simple link tests
17454
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
17456
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17458
# If no C compiler was specified, use CC.
17461
# If no C compiler flags were specified, use CFLAGS.
17462
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17464
# Allow CC to be a program name with arguments.
17468
# save warnings/boilerplate of simple test code
17469
ac_outfile=conftest.$ac_objext
17470
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17471
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17472
_lt_compiler_boilerplate=`cat conftest.err`
17475
ac_outfile=conftest.$ac_objext
17476
echo "$lt_simple_link_test_code" >conftest.$ac_ext
17477
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17478
_lt_linker_boilerplate=`cat conftest.err`
17482
# Allow CC to be a program name with arguments.
17487
for cc_temp in $compiler""; do
17489
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17490
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17495
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17498
# GCJ did not exist at the time GCC didn't implicitly link libc in.
17499
archive_cmds_need_lc_GCJ=no
17501
old_archive_cmds_GCJ=$old_archive_cmds
17504
lt_prog_compiler_no_builtin_flag_GCJ=
17506
if test "$GCC" = yes; then
17507
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17510
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17511
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
17512
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17513
echo $ECHO_N "(cached) $ECHO_C" >&6
17515
lt_cv_prog_compiler_rtti_exceptions=no
17516
ac_outfile=conftest.$ac_objext
17517
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17518
lt_compiler_flag="-fno-rtti -fno-exceptions"
17519
# Insert the option either (1) after the last *FLAGS variable, or
17520
# (2) before a word containing "conftest.", or (3) at the end.
17521
# Note that $ac_compile itself does not contain backslashes and begins
17522
# with a dollar sign (not a hyphen), so the echo should work correctly.
17523
# The option is referenced via a variable to avoid confusing sed.
17524
lt_compile=`echo "$ac_compile" | $SED \
17525
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17526
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17527
-e 's:$: $lt_compiler_flag:'`
17528
(eval echo "\"\$as_me:17528: $lt_compile\"" >&5)
17529
(eval "$lt_compile" 2>conftest.err)
17531
cat conftest.err >&5
17532
echo "$as_me:17532: \$? = $ac_status" >&5
17533
if (exit $ac_status) && test -s "$ac_outfile"; then
17534
# The compiler can only warn and ignore the option if not recognized
17535
# So say no if there are warnings other than the usual output.
17536
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17537
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17538
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17539
lt_cv_prog_compiler_rtti_exceptions=yes
17545
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17546
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17548
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17549
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17556
lt_prog_compiler_wl_GCJ=
17557
lt_prog_compiler_pic_GCJ=
17558
lt_prog_compiler_static_GCJ=
17560
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17561
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
17563
if test "$GCC" = yes; then
17564
lt_prog_compiler_wl_GCJ='-Wl,'
17565
lt_prog_compiler_static_GCJ='-static'
17569
# All AIX code is PIC.
17570
if test "$host_cpu" = ia64; then
17571
# AIX 5 now supports IA64 processor
17572
lt_prog_compiler_static_GCJ='-Bstatic'
17577
# FIXME: we need at least 68020 code to build shared libraries, but
17578
# adding the `-m68020' flag to GCC prevents building anything better,
17580
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17583
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17584
# PIC is the default for these OSes.
17587
mingw* | cygwin* | pw32* | os2*)
17588
# This hack is so that the source file can tell whether it is being
17589
# built for inclusion in a dll (and should export symbols for example).
17590
# Although the cygwin gcc ignores -fPIC, still need this for old-style
17591
# (--disable-auto-import) libraries
17595
darwin* | rhapsody*)
17596
# PIC is the default on this platform
17597
# Common symbols not allowed in MH_DYLIB files
17598
lt_prog_compiler_pic_GCJ='-fno-common'
17602
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
17603
# Instead, we relocate shared libraries at runtime.
17607
# Just because we use GCC doesn't mean we suddenly get shared libraries
17608
# on systems that don't support them.
17609
lt_prog_compiler_can_build_shared_GCJ=no
17614
if test -d /usr/nec; then
17615
lt_prog_compiler_pic_GCJ=-Kconform_pic
17620
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17621
# not for PA HP-UX.
17627
lt_prog_compiler_pic_GCJ='-fPIC'
17633
lt_prog_compiler_pic_GCJ='-fPIC'
17637
# PORTME Check for flag to pass linker flags through the system compiler.
17640
lt_prog_compiler_wl_GCJ='-Wl,'
17641
if test "$host_cpu" = ia64; then
17642
# AIX 5 now supports IA64 processor
17643
lt_prog_compiler_static_GCJ='-Bstatic'
17645
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17649
# PIC is the default on this platform
17650
# Common symbols not allowed in MH_DYLIB files
17651
case $cc_basename in
17653
lt_prog_compiler_pic_GCJ='-qnocommon'
17654
lt_prog_compiler_wl_GCJ='-Wl,'
17659
mingw* | cygwin* | pw32* | os2*)
17660
# This hack is so that the source file can tell whether it is being
17661
# built for inclusion in a dll (and should export symbols for example).
17665
hpux9* | hpux10* | hpux11*)
17666
lt_prog_compiler_wl_GCJ='-Wl,'
17667
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17668
# not for PA HP-UX.
17674
lt_prog_compiler_pic_GCJ='+Z'
17677
# Is there a better lt_prog_compiler_static that works with the bundled CC?
17678
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17681
irix5* | irix6* | nonstopux*)
17682
lt_prog_compiler_wl_GCJ='-Wl,'
17683
# PIC (with -KPIC) is the default.
17684
lt_prog_compiler_static_GCJ='-non_shared'
17688
lt_prog_compiler_pic_GCJ='-KPIC'
17689
lt_prog_compiler_static_GCJ='-Bstatic'
17692
linux* | k*bsd*-gnu)
17693
case $cc_basename in
17695
lt_prog_compiler_wl_GCJ='-Wl,'
17696
lt_prog_compiler_pic_GCJ='-KPIC'
17697
lt_prog_compiler_static_GCJ='-static'
17699
pgcc* | pgf77* | pgf90* | pgf95*)
17700
# Portland Group compilers (*not* the Pentium gcc compiler,
17701
# which looks to be a dead project)
17702
lt_prog_compiler_wl_GCJ='-Wl,'
17703
lt_prog_compiler_pic_GCJ='-fpic'
17704
lt_prog_compiler_static_GCJ='-Bstatic'
17707
lt_prog_compiler_wl_GCJ='-Wl,'
17708
# All Alpha code is PIC.
17709
lt_prog_compiler_static_GCJ='-non_shared'
17712
case `$CC -V 2>&1 | sed 5q` in
17715
lt_prog_compiler_pic_GCJ='-KPIC'
17716
lt_prog_compiler_static_GCJ='-Bstatic'
17717
lt_prog_compiler_wl_GCJ='-Wl,'
17720
# Sun Fortran 8.3 passes all unrecognized flags to the linker
17721
lt_prog_compiler_pic_GCJ='-KPIC'
17722
lt_prog_compiler_static_GCJ='-Bstatic'
17723
lt_prog_compiler_wl_GCJ=''
17730
osf3* | osf4* | osf5*)
17731
lt_prog_compiler_wl_GCJ='-Wl,'
17732
# All OSF/1 code is PIC.
17733
lt_prog_compiler_static_GCJ='-non_shared'
17737
lt_prog_compiler_static_GCJ='-non_shared'
17741
lt_prog_compiler_pic_GCJ='-KPIC'
17742
lt_prog_compiler_static_GCJ='-Bstatic'
17743
case $cc_basename in
17744
f77* | f90* | f95*)
17745
lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17747
lt_prog_compiler_wl_GCJ='-Wl,';;
17752
lt_prog_compiler_wl_GCJ='-Qoption ld '
17753
lt_prog_compiler_pic_GCJ='-PIC'
17754
lt_prog_compiler_static_GCJ='-Bstatic'
17757
sysv4 | sysv4.2uw2* | sysv4.3*)
17758
lt_prog_compiler_wl_GCJ='-Wl,'
17759
lt_prog_compiler_pic_GCJ='-KPIC'
17760
lt_prog_compiler_static_GCJ='-Bstatic'
17764
if test -d /usr/nec ;then
17765
lt_prog_compiler_pic_GCJ='-Kconform_pic'
17766
lt_prog_compiler_static_GCJ='-Bstatic'
17770
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17771
lt_prog_compiler_wl_GCJ='-Wl,'
17772
lt_prog_compiler_pic_GCJ='-KPIC'
17773
lt_prog_compiler_static_GCJ='-Bstatic'
17777
lt_prog_compiler_wl_GCJ='-Wl,'
17778
lt_prog_compiler_can_build_shared_GCJ=no
17782
lt_prog_compiler_pic_GCJ='-pic'
17783
lt_prog_compiler_static_GCJ='-Bstatic'
17787
lt_prog_compiler_can_build_shared_GCJ=no
17792
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17793
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17796
# Check to make sure the PIC flag actually works.
17798
if test -n "$lt_prog_compiler_pic_GCJ"; then
17800
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17801
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17802
if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17803
echo $ECHO_N "(cached) $ECHO_C" >&6
17805
lt_cv_prog_compiler_pic_works_GCJ=no
17806
ac_outfile=conftest.$ac_objext
17807
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17808
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17809
# Insert the option either (1) after the last *FLAGS variable, or
17810
# (2) before a word containing "conftest.", or (3) at the end.
17811
# Note that $ac_compile itself does not contain backslashes and begins
17812
# with a dollar sign (not a hyphen), so the echo should work correctly.
17813
# The option is referenced via a variable to avoid confusing sed.
17814
lt_compile=`echo "$ac_compile" | $SED \
17815
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17816
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17817
-e 's:$: $lt_compiler_flag:'`
17818
(eval echo "\"\$as_me:17818: $lt_compile\"" >&5)
17819
(eval "$lt_compile" 2>conftest.err)
17821
cat conftest.err >&5
17822
echo "$as_me:17822: \$? = $ac_status" >&5
17823
if (exit $ac_status) && test -s "$ac_outfile"; then
17824
# The compiler can only warn and ignore the option if not recognized
17825
# So say no if there are warnings other than the usual output.
17826
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17827
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17828
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17829
lt_cv_prog_compiler_pic_works_GCJ=yes
17835
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17836
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17838
if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17839
case $lt_prog_compiler_pic_GCJ in
17841
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17844
lt_prog_compiler_pic_GCJ=
17845
lt_prog_compiler_can_build_shared_GCJ=no
17850
# For platforms which do not support PIC, -DPIC is meaningless:
17852
lt_prog_compiler_pic_GCJ=
17855
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17860
# Check to make sure the static flag actually works.
17862
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17863
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17864
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17865
if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17866
echo $ECHO_N "(cached) $ECHO_C" >&6
17868
lt_cv_prog_compiler_static_works_GCJ=no
17869
save_LDFLAGS="$LDFLAGS"
17870
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17871
echo "$lt_simple_link_test_code" > conftest.$ac_ext
17872
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17873
# The linker can only warn and ignore the option if not recognized
17874
# So say no if there are warnings
17875
if test -s conftest.err; then
17876
# Append any errors to the config.log.
17877
cat conftest.err 1>&5
17878
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17879
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17880
if diff conftest.exp conftest.er2 >/dev/null; then
17881
lt_cv_prog_compiler_static_works_GCJ=yes
17884
lt_cv_prog_compiler_static_works_GCJ=yes
17888
LDFLAGS="$save_LDFLAGS"
17891
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17892
echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17894
if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17897
lt_prog_compiler_static_GCJ=
17901
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17902
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17903
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17904
echo $ECHO_N "(cached) $ECHO_C" >&6
17906
lt_cv_prog_compiler_c_o_GCJ=no
17907
$rm -r conftest 2>/dev/null
17911
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17913
lt_compiler_flag="-o out/conftest2.$ac_objext"
17914
# Insert the option either (1) after the last *FLAGS variable, or
17915
# (2) before a word containing "conftest.", or (3) at the end.
17916
# Note that $ac_compile itself does not contain backslashes and begins
17917
# with a dollar sign (not a hyphen), so the echo should work correctly.
17918
lt_compile=`echo "$ac_compile" | $SED \
17919
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17920
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17921
-e 's:$: $lt_compiler_flag:'`
17922
(eval echo "\"\$as_me:17922: $lt_compile\"" >&5)
17923
(eval "$lt_compile" 2>out/conftest.err)
17925
cat out/conftest.err >&5
17926
echo "$as_me:17926: \$? = $ac_status" >&5
17927
if (exit $ac_status) && test -s out/conftest2.$ac_objext
17929
# The compiler can only warn and ignore the option if not recognized
17930
# So say no if there are warnings
17931
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17932
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17933
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17934
lt_cv_prog_compiler_c_o_GCJ=yes
17939
# SGI C++ compiler will create directory out/ii_files/ for
17940
# template instantiation
17941
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17942
$rm out/* && rmdir out
17948
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17949
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17952
hard_links="nottested"
17953
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17954
# do not overwrite the value of need_locks provided by the user
17955
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17956
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17959
ln conftest.a conftest.b 2>/dev/null && hard_links=no
17961
ln conftest.a conftest.b 2>&5 || hard_links=no
17962
ln conftest.a conftest.b 2>/dev/null && hard_links=no
17963
{ echo "$as_me:$LINENO: result: $hard_links" >&5
17964
echo "${ECHO_T}$hard_links" >&6; }
17965
if test "$hard_links" = no; then
17966
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17967
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17974
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17975
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17978
allow_undefined_flag_GCJ=
17979
enable_shared_with_static_runtimes_GCJ=no
17981
archive_expsym_cmds_GCJ=
17982
old_archive_From_new_cmds_GCJ=
17983
old_archive_from_expsyms_cmds_GCJ=
17984
export_dynamic_flag_spec_GCJ=
17985
whole_archive_flag_spec_GCJ=
17986
thread_safe_flag_spec_GCJ=
17987
hardcode_libdir_flag_spec_GCJ=
17988
hardcode_libdir_flag_spec_ld_GCJ=
17989
hardcode_libdir_separator_GCJ=
17990
hardcode_direct_GCJ=no
17991
hardcode_minus_L_GCJ=no
17992
hardcode_shlibpath_var_GCJ=unsupported
17993
link_all_deplibs_GCJ=unknown
17994
hardcode_automatic_GCJ=no
17996
module_expsym_cmds_GCJ=
17997
always_export_symbols_GCJ=no
17998
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17999
# include_expsyms should be a list of space-separated symbols to be *always*
18000
# included in the symbol list
18001
include_expsyms_GCJ=
18002
# exclude_expsyms can be an extended regexp of symbols to exclude
18003
# it will be wrapped by ` (' and `)$', so one must not match beginning or
18004
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18005
# as well as any symbol that contains `d'.
18006
exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
18007
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18008
# platforms (ab)use it in PIC code, but their linkers get confused if
18009
# the symbol is explicitly referenced. Since portable code cannot
18010
# rely on this symbol name, it's probably fine to never include it in
18011
# preloaded symbol tables.
18012
# Exclude shared library initialization/finalization symbols.
18013
extract_expsyms_cmds=
18014
# Just being paranoid about ensuring that cc_basename is set.
18015
for cc_temp in $compiler""; do
18017
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18018
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18023
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18026
cygwin* | mingw* | pw32*)
18027
# FIXME: the MSVC++ port hasn't been tested in a loooong time
18028
# When not using gcc, we currently assume that we are using
18029
# Microsoft Visual C++.
18030
if test "$GCC" != yes; then
18035
# we just hope/assume this is gcc and not c89 (= MSVC++)
18044
if test "$with_gnu_ld" = yes; then
18045
# If archive_cmds runs LD, not CC, wlarc should be empty
18048
# Set some defaults for GNU ld with shared library support. These
18049
# are reset later if shared libraries are not supported. Putting them
18050
# here allows them to be overridden if necessary.
18051
runpath_var=LD_RUN_PATH
18052
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18053
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18054
# ancient GNU ld didn't support --whole-archive et. al.
18055
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18056
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18058
whole_archive_flag_spec_GCJ=
18060
supports_anon_versioning=no
18061
case `$LD -v 2>/dev/null` in
18062
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18063
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18064
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18065
*\ 2.11.*) ;; # other 2.11 versions
18066
*) supports_anon_versioning=yes ;;
18069
# See if GNU ld supports shared libraries.
18072
# On AIX/PPC, the GNU linker is very broken
18073
if test "$host_cpu" != ia64; then
18077
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
18078
*** to be unable to reliably create shared libraries on AIX.
18079
*** Therefore, libtool is disabling shared libraries support. If you
18080
*** really care for shared libraries, you may want to modify your PATH
18081
*** so that a non-GNU linker is found, and then restart.
18088
archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
18089
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18090
hardcode_minus_L_GCJ=yes
18092
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18093
# that the semantics of dynamic libraries on AmigaOS, at least up
18094
# to version 4, is to share data among multiple programs linked
18095
# with the same dynamic library. Since this doesn't match the
18096
# behavior of shared libraries on other platforms, we can't use
18102
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18103
allow_undefined_flag_GCJ=unsupported
18104
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18105
# support --undefined. This deserves some investigation. FIXME
18106
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18112
cygwin* | mingw* | pw32*)
18113
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18114
# as there is no search path for DLLs.
18115
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18116
allow_undefined_flag_GCJ=unsupported
18117
always_export_symbols_GCJ=no
18118
enable_shared_with_static_runtimes_GCJ=yes
18119
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
18121
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18122
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18123
# If the export-symbols file already is a .def file (1st line
18124
# is EXPORTS), use it as is; otherwise, prepend...
18125
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18126
cp $export_symbols $output_objdir/$soname.def;
18128
echo EXPORTS > $output_objdir/$soname.def;
18129
cat $export_symbols >> $output_objdir/$soname.def;
18131
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18138
hardcode_direct_GCJ=no
18139
hardcode_shlibpath_var_GCJ=no
18140
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18141
export_dynamic_flag_spec_GCJ='${wl}-E'
18142
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18143
# Instead, shared libraries are loaded at an image base (0x10000000 by
18144
# default) and relocated if they conflict, which is a slow very memory
18145
# consuming and fragmenting process. To avoid this, we pick a random,
18146
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18147
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
18148
archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
18149
archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
18152
gnu* | linux* | k*bsd*-gnu)
18153
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18155
case $cc_basename,$host_cpu in
18156
pgcc*) # Portland Group C compiler
18157
whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
18158
tmp_addflag=' $pic_flag'
18160
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
18161
whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
18162
tmp_addflag=' $pic_flag -Mnomain' ;;
18163
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
18164
tmp_addflag=' -i_dynamic' ;;
18165
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
18166
tmp_addflag=' -i_dynamic -nofor_main' ;;
18167
ifc* | ifort*) # Intel Fortran compiler
18168
tmp_addflag=' -nofor_main' ;;
18170
case `$CC -V 2>&1 | sed 5q` in
18171
*Sun\ C*) # Sun C 5.9
18172
whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
18173
tmp_sharedflag='-G' ;;
18174
*Sun\ F*) # Sun Fortran 8.3
18175
tmp_sharedflag='-G' ;;
18177
tmp_sharedflag='-shared' ;;
18179
archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18181
if test $supports_anon_versioning = yes; then
18182
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18183
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18184
$echo "local: *; };" >> $output_objdir/$libname.ver~
18185
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18187
link_all_deplibs_GCJ=no
18193
netbsd* | netbsdelf*-gnu)
18194
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18195
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18198
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18199
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18204
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18208
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
18209
*** create shared libraries on Solaris systems. Therefore, libtool
18210
*** is disabling shared libraries support. We urge you to upgrade GNU
18211
*** binutils to release 2.9.1 or newer. Another option is to modify
18212
*** your PATH or compiler configuration so that the native linker is
18213
*** used, and then restart.
18216
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18217
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18218
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18224
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18225
case `$LD -v 2>&1` in
18226
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18230
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18231
*** reliably create shared libraries on SCO systems. Therefore, libtool
18232
*** is disabling shared libraries support. We urge you to upgrade GNU
18233
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
18234
*** your PATH or compiler configuration so that the native linker is
18235
*** used, and then restart.
18240
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18241
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18242
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18243
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18252
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18254
hardcode_direct_GCJ=yes
18255
hardcode_shlibpath_var_GCJ=no
18259
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18260
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18261
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18268
if test "$ld_shlibs_GCJ" = no; then
18270
hardcode_libdir_flag_spec_GCJ=
18271
export_dynamic_flag_spec_GCJ=
18272
whole_archive_flag_spec_GCJ=
18275
# PORTME fill in a description of your system's linker (not GNU ld)
18278
allow_undefined_flag_GCJ=unsupported
18279
always_export_symbols_GCJ=yes
18280
archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
18281
# Note: this linker hardcodes the directories in LIBPATH if there
18282
# are no directories specified by -L.
18283
hardcode_minus_L_GCJ=yes
18284
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18285
# Neither direct hardcoding nor static linking is supported with a
18287
hardcode_direct_GCJ=unsupported
18292
if test "$host_cpu" = ia64; then
18293
# On IA64, the linker does run time linking by default, so we don't
18294
# have to do anything special.
18295
aix_use_runtimelinking=no
18296
exp_sym_flag='-Bexport'
18299
# If we're using GNU nm, then we don't want the "-C" option.
18300
# -C means demangle to AIX nm, but means don't demangle with GNU nm
18301
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18302
export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
18304
export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
18306
aix_use_runtimelinking=no
18308
# Test if we are trying to use run time linking or normal
18309
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
18310
# need to do runtime linking.
18311
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18312
for ld_flag in $LDFLAGS; do
18313
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18314
aix_use_runtimelinking=yes
18321
exp_sym_flag='-bexport'
18322
no_entry_flag='-bnoentry'
18325
# When large executables or shared objects are built, AIX ld can
18326
# have problems creating the table of contents. If linking a library
18327
# or program results in "error TOC overflow" add -mminimal-toc to
18328
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18329
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18331
archive_cmds_GCJ=''
18332
hardcode_direct_GCJ=yes
18333
hardcode_libdir_separator_GCJ=':'
18334
link_all_deplibs_GCJ=yes
18336
if test "$GCC" = yes; then
18337
case $host_os in aix4.[012]|aix4.[012].*)
18338
# We only want to do this on AIX 4.2 and lower, the check
18339
# below for broken collect2 doesn't work under 4.3+
18340
collect2name=`${CC} -print-prog-name=collect2`
18341
if test -f "$collect2name" && \
18342
strings "$collect2name" | grep resolve_lib_name >/dev/null
18344
# We have reworked collect2
18347
# We have old collect2
18348
hardcode_direct_GCJ=unsupported
18349
# It fails to find uninstalled libraries when the uninstalled
18350
# path is not listed in the libpath. Setting hardcode_minus_L
18351
# to unsupported forces relinking
18352
hardcode_minus_L_GCJ=yes
18353
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18354
hardcode_libdir_separator_GCJ=
18358
shared_flag='-shared'
18359
if test "$aix_use_runtimelinking" = yes; then
18360
shared_flag="$shared_flag "'${wl}-G'
18364
if test "$host_cpu" = ia64; then
18365
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18366
# chokes on -Wl,-G. The following line is correct:
18369
if test "$aix_use_runtimelinking" = yes; then
18370
shared_flag='${wl}-G'
18372
shared_flag='${wl}-bM:SRE'
18377
# It seems that -bexpall does not export symbols beginning with
18378
# underscore (_), so it is better to generate a list of symbols to export.
18379
always_export_symbols_GCJ=yes
18380
if test "$aix_use_runtimelinking" = yes; then
18381
# Warning - without using the other runtime loading flags (-brtl),
18382
# -berok will link without error, but may produce a broken library.
18383
allow_undefined_flag_GCJ='-berok'
18384
# Determine the default libpath from the value encoded in an empty executable.
18385
cat >conftest.$ac_ext <<_ACEOF
18388
cat confdefs.h >>conftest.$ac_ext
18389
cat >>conftest.$ac_ext <<_ACEOF
18390
/* end confdefs.h. */
18400
rm -f conftest.$ac_objext conftest$ac_exeext
18401
if { (ac_try="$ac_link"
18402
case "(($ac_try" in
18403
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18404
*) ac_try_echo=$ac_try;;
18406
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18407
(eval "$ac_link") 2>conftest.er1
18409
grep -v '^ *+' conftest.er1 >conftest.err
18411
cat conftest.err >&5
18412
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18413
(exit $ac_status); } && {
18414
test -z "$ac_c_werror_flag" ||
18415
test ! -s conftest.err
18416
} && test -s conftest$ac_exeext &&
18417
$as_test_x conftest$ac_exeext; then
18419
lt_aix_libpath_sed='
18420
/Import File Strings/,/^$/ {
18426
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18427
# Check for a 64-bit object if we didn't find anything.
18428
if test -z "$aix_libpath"; then
18429
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18432
echo "$as_me: failed program was:" >&5
18433
sed 's/^/| /' conftest.$ac_ext >&5
18438
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18439
conftest$ac_exeext conftest.$ac_ext
18440
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18442
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18443
archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
18445
if test "$host_cpu" = ia64; then
18446
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18447
allow_undefined_flag_GCJ="-z nodefs"
18448
archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
18450
# Determine the default libpath from the value encoded in an empty executable.
18451
cat >conftest.$ac_ext <<_ACEOF
18454
cat confdefs.h >>conftest.$ac_ext
18455
cat >>conftest.$ac_ext <<_ACEOF
18456
/* end confdefs.h. */
18466
rm -f conftest.$ac_objext conftest$ac_exeext
18467
if { (ac_try="$ac_link"
18468
case "(($ac_try" in
18469
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18470
*) ac_try_echo=$ac_try;;
18472
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18473
(eval "$ac_link") 2>conftest.er1
18475
grep -v '^ *+' conftest.er1 >conftest.err
18477
cat conftest.err >&5
18478
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18479
(exit $ac_status); } && {
18480
test -z "$ac_c_werror_flag" ||
18481
test ! -s conftest.err
18482
} && test -s conftest$ac_exeext &&
18483
$as_test_x conftest$ac_exeext; then
18485
lt_aix_libpath_sed='
18486
/Import File Strings/,/^$/ {
18492
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18493
# Check for a 64-bit object if we didn't find anything.
18494
if test -z "$aix_libpath"; then
18495
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18498
echo "$as_me: failed program was:" >&5
18499
sed 's/^/| /' conftest.$ac_ext >&5
18504
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18505
conftest$ac_exeext conftest.$ac_ext
18506
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18508
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18509
# Warning - without using the other run time loading flags,
18510
# -berok will link without error, but may produce a broken library.
18511
no_undefined_flag_GCJ=' ${wl}-bernotok'
18512
allow_undefined_flag_GCJ=' ${wl}-berok'
18513
# Exported symbols can be pulled into shared objects from archives
18514
whole_archive_flag_spec_GCJ='$convenience'
18515
archive_cmds_need_lc_GCJ=yes
18516
# This is similar to how AIX traditionally builds its shared libraries.
18517
archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
18523
archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
18524
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18525
hardcode_minus_L_GCJ=yes
18526
# see comment about different semantics on the GNU ld section
18531
export_dynamic_flag_spec_GCJ=-rdynamic
18534
cygwin* | mingw* | pw32*)
18535
# When not using gcc, we currently assume that we are using
18536
# Microsoft Visual C++.
18537
# hardcode_libdir_flag_spec is actually meaningless, as there is
18538
# no search path for DLLs.
18539
hardcode_libdir_flag_spec_GCJ=' '
18540
allow_undefined_flag_GCJ=unsupported
18541
# Tell ltmain to make .lib files, not .a files.
18543
# Tell ltmain to make .dll files, not .so files.
18545
# FIXME: Setting linknames here is a bad hack.
18546
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18547
# The linker will automatically build a .lib file if we build a DLL.
18548
old_archive_From_new_cmds_GCJ='true'
18549
# FIXME: Should let the user specify the lib program.
18550
old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
18551
fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18552
enable_shared_with_static_runtimes_GCJ=yes
18555
darwin* | rhapsody*)
18557
rhapsody* | darwin1.[012])
18558
allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18561
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18562
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18564
case ${MACOSX_DEPLOYMENT_TARGET} in
18566
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18569
allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18575
archive_cmds_need_lc_GCJ=no
18576
hardcode_direct_GCJ=no
18577
hardcode_automatic_GCJ=yes
18578
hardcode_shlibpath_var_GCJ=unsupported
18579
whole_archive_flag_spec_GCJ=''
18580
link_all_deplibs_GCJ=yes
18581
if test "$GCC" = yes ; then
18582
output_verbose_link_cmd='echo'
18583
archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
18584
module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18585
archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
18586
module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
18588
case $cc_basename in
18590
output_verbose_link_cmd='echo'
18591
archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
18592
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18593
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18594
archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18595
module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18605
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18606
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18607
hardcode_shlibpath_var_GCJ=no
18614
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18615
# support. Future versions do this automatically, but an explicit c++rt0.o
18616
# does not break anything, and helps significantly (at the cost of a little
18619
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18620
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18621
hardcode_direct_GCJ=yes
18622
hardcode_shlibpath_var_GCJ=no
18625
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
18627
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18628
hardcode_direct_GCJ=yes
18629
hardcode_minus_L_GCJ=yes
18630
hardcode_shlibpath_var_GCJ=no
18633
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18634
freebsd* | dragonfly*)
18635
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18636
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18637
hardcode_direct_GCJ=yes
18638
hardcode_shlibpath_var_GCJ=no
18642
if test "$GCC" = yes; then
18643
archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
18645
archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
18647
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18648
hardcode_libdir_separator_GCJ=:
18649
hardcode_direct_GCJ=yes
18651
# hardcode_minus_L: Not really in the search PATH,
18652
# but as the default location of the library.
18653
hardcode_minus_L_GCJ=yes
18654
export_dynamic_flag_spec_GCJ='${wl}-E'
18658
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18659
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18661
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18663
if test "$with_gnu_ld" = no; then
18664
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18665
hardcode_libdir_separator_GCJ=:
18667
hardcode_direct_GCJ=yes
18668
export_dynamic_flag_spec_GCJ='${wl}-E'
18670
# hardcode_minus_L: Not really in the search PATH,
18671
# but as the default location of the library.
18672
hardcode_minus_L_GCJ=yes
18677
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18680
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18683
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18686
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18692
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18695
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18698
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18702
if test "$with_gnu_ld" = no; then
18703
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18704
hardcode_libdir_separator_GCJ=:
18708
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18709
hardcode_direct_GCJ=no
18710
hardcode_shlibpath_var_GCJ=no
18713
hardcode_direct_GCJ=yes
18714
export_dynamic_flag_spec_GCJ='${wl}-E'
18716
# hardcode_minus_L: Not really in the search PATH,
18717
# but as the default location of the library.
18718
hardcode_minus_L_GCJ=yes
18724
irix5* | irix6* | nonstopux*)
18725
if test "$GCC" = yes; then
18726
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18728
archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18729
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18731
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18732
hardcode_libdir_separator_GCJ=:
18733
link_all_deplibs_GCJ=yes
18736
netbsd* | netbsdelf*-gnu)
18737
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18738
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18740
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18742
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18743
hardcode_direct_GCJ=yes
18744
hardcode_shlibpath_var_GCJ=no
18748
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18749
hardcode_direct_GCJ=yes
18750
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18751
hardcode_libdir_separator_GCJ=:
18752
hardcode_shlibpath_var_GCJ=no
18756
if test -f /usr/libexec/ld.so; then
18757
hardcode_direct_GCJ=yes
18758
hardcode_shlibpath_var_GCJ=no
18759
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18760
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18761
archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18762
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18763
export_dynamic_flag_spec_GCJ='${wl}-E'
18766
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18767
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18768
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18771
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18772
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18782
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18783
hardcode_minus_L_GCJ=yes
18784
allow_undefined_flag_GCJ=unsupported
18785
archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
18786
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18790
if test "$GCC" = yes; then
18791
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18792
archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18794
allow_undefined_flag_GCJ=' -expect_unresolved \*'
18795
archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18797
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18798
hardcode_libdir_separator_GCJ=:
18801
osf4* | osf5*) # as osf3* with the addition of -msym flag
18802
if test "$GCC" = yes; then
18803
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18804
archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18805
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18807
allow_undefined_flag_GCJ=' -expect_unresolved \*'
18808
archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18809
archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
18810
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
18812
# Both c and cxx compiler support -rpath directly
18813
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18815
hardcode_libdir_separator_GCJ=:
18819
no_undefined_flag_GCJ=' -z text'
18820
if test "$GCC" = yes; then
18822
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18823
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18824
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18827
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18828
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18829
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18831
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18832
hardcode_shlibpath_var_GCJ=no
18834
solaris2.[0-5] | solaris2.[0-5].*) ;;
18836
# The compiler driver will combine and reorder linker options,
18837
# but understands `-z linker_flag'. GCC discards it without `$wl',
18838
# but is careful enough not to reorder.
18839
# Supported since Solaris 2.6 (maybe 2.5.1?)
18840
if test "$GCC" = yes; then
18841
whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18843
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18847
link_all_deplibs_GCJ=yes
18851
if test "x$host_vendor" = xsequent; then
18852
# Use $CC to link under sequent, because it throws in some extra .o
18853
# files that make .init and .fini sections work.
18854
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18856
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18858
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18859
hardcode_direct_GCJ=yes
18860
hardcode_minus_L_GCJ=yes
18861
hardcode_shlibpath_var_GCJ=no
18865
case $host_vendor in
18867
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18868
hardcode_direct_GCJ=yes # is this really true???
18871
## LD is ld it makes a PLAMLIB
18872
## CC just makes a GrossModule.
18873
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18874
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18875
hardcode_direct_GCJ=no
18878
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18879
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18882
runpath_var='LD_RUN_PATH'
18883
hardcode_shlibpath_var_GCJ=no
18887
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18888
hardcode_shlibpath_var_GCJ=no
18889
export_dynamic_flag_spec_GCJ='-Bexport'
18893
if test -d /usr/nec; then
18894
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18895
hardcode_shlibpath_var_GCJ=no
18896
runpath_var=LD_RUN_PATH
18897
hardcode_runpath_var=yes
18902
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18903
no_undefined_flag_GCJ='${wl}-z,text'
18904
archive_cmds_need_lc_GCJ=no
18905
hardcode_shlibpath_var_GCJ=no
18906
runpath_var='LD_RUN_PATH'
18908
if test "$GCC" = yes; then
18909
archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18910
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18912
archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18913
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18917
sysv5* | sco3.2v5* | sco5v6*)
18918
# Note: We can NOT use -z defs as we might desire, because we do not
18919
# link with -lc, and that would cause any symbols used from libc to
18920
# always be unresolved, which means just about no library would
18921
# ever link correctly. If we're not using GNU ld we use -z text
18922
# though, which does catch some bad symbols but isn't as heavy-handed
18924
no_undefined_flag_GCJ='${wl}-z,text'
18925
allow_undefined_flag_GCJ='${wl}-z,nodefs'
18926
archive_cmds_need_lc_GCJ=no
18927
hardcode_shlibpath_var_GCJ=no
18928
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18929
hardcode_libdir_separator_GCJ=':'
18930
link_all_deplibs_GCJ=yes
18931
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18932
runpath_var='LD_RUN_PATH'
18934
if test "$GCC" = yes; then
18935
archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18936
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18938
archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18939
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18944
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18945
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18946
hardcode_shlibpath_var_GCJ=no
18955
{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18956
echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18957
test "$ld_shlibs_GCJ" = no && can_build_shared=no
18960
# Do we need to explicitly link libc?
18962
case "x$archive_cmds_need_lc_GCJ" in
18964
# Assume -lc should be added
18965
archive_cmds_need_lc_GCJ=yes
18967
if test "$enable_shared" = yes && test "$GCC" = yes; then
18968
case $archive_cmds_GCJ in
18970
# FIXME: we may have to deal with multi-command sequences.
18973
# Test whether the compiler implicitly links with -lc since on some
18974
# systems, -lgcc has to come before -lc. If gcc already passes -lc
18975
# to ld, don't add -lc before -lgcc.
18976
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18977
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18979
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18981
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18982
(eval $ac_compile) 2>&5
18984
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18985
(exit $ac_status); } 2>conftest.err; then
18988
libobjs=conftest.$ac_objext
18990
wl=$lt_prog_compiler_wl_GCJ
18991
pic_flag=$lt_prog_compiler_pic_GCJ
18997
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18998
allow_undefined_flag_GCJ=
18999
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19000
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19002
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19003
(exit $ac_status); }
19005
archive_cmds_need_lc_GCJ=no
19007
archive_cmds_need_lc_GCJ=yes
19009
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19011
cat conftest.err 1>&5
19014
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19015
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
19022
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19023
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19024
library_names_spec=
19025
libname_spec='lib$name'
19029
postuninstall_cmds=
19033
shlibpath_overrides_runpath=unknown
19035
dynamic_linker="$host_os ld.so"
19036
sys_lib_dlsearch_path_spec="/lib /usr/lib"
19038
need_lib_prefix=unknown
19039
hardcode_into_libs=no
19041
# when you set need_version to no, make sure it does not cause -set_version
19042
# flags to be left without arguments
19043
need_version=unknown
19048
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19049
shlibpath_var=LIBPATH
19051
# AIX 3 has no versioning support, so we append a major version to the name.
19052
soname_spec='${libname}${release}${shared_ext}$major'
19059
hardcode_into_libs=yes
19060
if test "$host_cpu" = ia64; then
19061
# AIX 5 supports IA64
19062
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19063
shlibpath_var=LD_LIBRARY_PATH
19065
# With GCC up to 2.95.x, collect2 would create an import file
19066
# for dependence libraries. The import file would start with
19067
# the line `#! .'. This would cause the generated library to
19068
# depend on `.', always an invalid library. This was fixed in
19069
# development snapshots of GCC prior to 3.0.
19071
aix4 | aix4.[01] | aix4.[01].*)
19072
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19074
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19077
can_build_shared=no
19081
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19082
# soname into executable. Probably we can add versioning support to
19083
# collect2, so additional links can be useful in future.
19084
if test "$aix_use_runtimelinking" = yes; then
19085
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
19086
# instead of lib<name>.a to let people know that these are not
19087
# typical AIX shared libraries.
19088
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19090
# We preserve .a as extension for shared libraries through AIX4.2
19091
# and later when we are not doing run time linking.
19092
library_names_spec='${libname}${release}.a $libname.a'
19093
soname_spec='${libname}${release}${shared_ext}$major'
19095
shlibpath_var=LIBPATH
19100
library_names_spec='$libname.ixlibrary $libname.a'
19101
# Create ${libname}_ixlibrary.a entries in /sys/libs.
19102
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
19106
library_names_spec='${libname}${shared_ext}'
19107
dynamic_linker="$host_os ld.so"
19108
shlibpath_var=LIBRARY_PATH
19114
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19115
soname_spec='${libname}${release}${shared_ext}$major'
19116
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19117
shlibpath_var=LD_LIBRARY_PATH
19118
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19119
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19120
# the default ld.so.conf also contains /usr/contrib/lib and
19121
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19122
# libtool to hard-code these into programs
19125
cygwin* | mingw* | pw32*)
19126
version_type=windows
19131
case $GCC,$host_os in
19132
yes,cygwin* | yes,mingw* | yes,pw32*)
19133
library_names_spec='$libname.dll.a'
19134
# DLL is installed to $(libdir)/../bin by postinstall_cmds
19135
postinstall_cmds='base_file=`basename \${file}`~
19136
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19137
dldir=$destdir/`dirname \$dlpath`~
19138
test -d \$dldir || mkdir -p \$dldir~
19139
$install_prog $dir/$dlname \$dldir/$dlname~
19140
chmod a+x \$dldir/$dlname'
19141
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19142
dlpath=$dir/\$dldll~
19144
shlibpath_overrides_runpath=yes
19148
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
19149
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19150
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19153
# MinGW DLLs use traditional 'lib' prefix
19154
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19155
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19156
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19157
# It is most probably a Windows format PATH printed by
19158
# mingw gcc, but we are running on Cygwin. Gcc prints its search
19159
# path with ; separators, and with drive letters. We can handle the
19160
# drive letters (cygwin fileutils understands them), so leave them,
19161
# especially as we might pass files found there to a mingw objdump,
19162
# which wouldn't understand a cygwinified path. Ahh.
19163
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19165
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19169
# pw32 DLLs use 'pw' prefix rather than 'lib'
19170
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19176
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19179
dynamic_linker='Win32 ld.exe'
19180
# FIXME: first we should search . and the directory the executable is in
19184
darwin* | rhapsody*)
19185
dynamic_linker="$host_os dyld"
19186
version_type=darwin
19189
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19190
soname_spec='${libname}${release}${major}$shared_ext'
19191
shlibpath_overrides_runpath=yes
19192
shlibpath_var=DYLD_LIBRARY_PATH
19193
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19195
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19202
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19203
soname_spec='${libname}${release}${shared_ext}$major'
19204
shlibpath_var=LD_LIBRARY_PATH
19211
freebsd* | dragonfly*)
19212
# DragonFly does not have aout. When/if they implement a new
19213
# versioning mechanism, adjust this.
19214
if test -x /usr/bin/objformat; then
19215
objformat=`/usr/bin/objformat`
19218
freebsd[123]*) objformat=aout ;;
19219
*) objformat=elf ;;
19222
version_type=freebsd-$objformat
19223
case $version_type in
19225
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19230
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19234
shlibpath_var=LD_LIBRARY_PATH
19237
shlibpath_overrides_runpath=yes
19239
freebsd3.[01]* | freebsdelf3.[01]*)
19240
shlibpath_overrides_runpath=yes
19241
hardcode_into_libs=yes
19243
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19244
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19245
shlibpath_overrides_runpath=no
19246
hardcode_into_libs=yes
19248
*) # from 4.6 on, and DragonFly
19249
shlibpath_overrides_runpath=yes
19250
hardcode_into_libs=yes
19259
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19260
soname_spec='${libname}${release}${shared_ext}$major'
19261
shlibpath_var=LD_LIBRARY_PATH
19262
hardcode_into_libs=yes
19265
hpux9* | hpux10* | hpux11*)
19266
# Give a soname corresponding to the major version so that dld.sl refuses to
19267
# link against other versions.
19274
hardcode_into_libs=yes
19275
dynamic_linker="$host_os dld.so"
19276
shlibpath_var=LD_LIBRARY_PATH
19277
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19278
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19279
soname_spec='${libname}${release}${shared_ext}$major'
19280
if test "X$HPUX_IA64_MODE" = X32; then
19281
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19283
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19285
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19289
hardcode_into_libs=yes
19290
dynamic_linker="$host_os dld.sl"
19291
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19292
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19293
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19294
soname_spec='${libname}${release}${shared_ext}$major'
19295
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19296
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19300
dynamic_linker="$host_os dld.sl"
19301
shlibpath_var=SHLIB_PATH
19302
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19303
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19304
soname_spec='${libname}${release}${shared_ext}$major'
19307
# HP-UX runs *really* slowly unless shared libraries are mode 555.
19308
postinstall_cmds='chmod 555 $lib'
19315
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19316
soname_spec='${libname}${release}${shared_ext}$major'
19317
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19318
shlibpath_var=LD_LIBRARY_PATH
19319
shlibpath_overrides_runpath=no
19320
hardcode_into_libs=yes
19323
irix5* | irix6* | nonstopux*)
19325
nonstopux*) version_type=nonstopux ;;
19327
if test "$lt_cv_prog_gnu_ld" = yes; then
19335
soname_spec='${libname}${release}${shared_ext}$major'
19336
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19338
irix5* | nonstopux*)
19339
libsuff= shlibsuff=
19342
case $LD in # libtool.m4 will add one of these switches to LD
19343
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19344
libsuff= shlibsuff= libmagic=32-bit;;
19345
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19346
libsuff=32 shlibsuff=N32 libmagic=N32;;
19347
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19348
libsuff=64 shlibsuff=64 libmagic=64-bit;;
19349
*) libsuff= shlibsuff= libmagic=never-match;;
19353
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19354
shlibpath_overrides_runpath=no
19355
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19356
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19357
hardcode_into_libs=yes
19360
# No shared lib support for Linux oldld, aout, or coff.
19361
linux*oldld* | linux*aout* | linux*coff*)
19365
# This must be Linux ELF.
19366
linux* | k*bsd*-gnu)
19370
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19371
soname_spec='${libname}${release}${shared_ext}$major'
19372
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19373
shlibpath_var=LD_LIBRARY_PATH
19374
shlibpath_overrides_runpath=no
19375
# This implies no fast_install, which is unacceptable.
19376
# Some rework will be needed to allow for fast_install
19377
# before this can be enabled.
19378
hardcode_into_libs=yes
19380
# Append ld.so.conf contents to the search path
19381
if test -f /etc/ld.so.conf; then
19382
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
19383
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19386
# We used to test for /lib/ld.so.1 and disable shared libraries on
19387
# powerpc, because MkLinux only supported shared libraries with the
19388
# GNU dynamic linker. Since this was broken with cross compilers,
19389
# most powerpc-linux boxes support dynamic linking these days and
19390
# people can always --disable-shared, the test was removed, and we
19391
# assume the GNU/Linux dynamic linker is in use.
19392
dynamic_linker='GNU/Linux ld.so'
19399
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19400
soname_spec='${libname}${release}${shared_ext}$major'
19401
shlibpath_var=LD_LIBRARY_PATH
19402
shlibpath_overrides_runpath=no
19403
hardcode_into_libs=yes
19404
dynamic_linker='NetBSD ld.elf_so'
19411
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19412
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19413
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19414
dynamic_linker='NetBSD (a.out) ld.so'
19416
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19417
soname_spec='${libname}${release}${shared_ext}$major'
19418
dynamic_linker='NetBSD ld.elf_so'
19420
shlibpath_var=LD_LIBRARY_PATH
19421
shlibpath_overrides_runpath=yes
19422
hardcode_into_libs=yes
19427
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19428
shlibpath_var=LD_LIBRARY_PATH
19429
shlibpath_overrides_runpath=yes
19436
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19437
soname_spec='${libname}${release}${shared_ext}$major'
19438
shlibpath_var=LD_LIBRARY_PATH
19439
shlibpath_overrides_runpath=yes
19444
sys_lib_dlsearch_path_spec="/usr/lib"
19446
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19448
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19449
*) need_version=no ;;
19451
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19452
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19453
shlibpath_var=LD_LIBRARY_PATH
19454
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19456
openbsd2.[89] | openbsd2.[89].*)
19457
shlibpath_overrides_runpath=no
19460
shlibpath_overrides_runpath=yes
19464
shlibpath_overrides_runpath=yes
19469
libname_spec='$name'
19472
library_names_spec='$libname${shared_ext} $libname.a'
19473
dynamic_linker='OS/2 ld.exe'
19474
shlibpath_var=LIBPATH
19477
osf3* | osf4* | osf5*)
19481
soname_spec='${libname}${release}${shared_ext}$major'
19482
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19483
shlibpath_var=LD_LIBRARY_PATH
19484
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19485
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19496
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19497
soname_spec='${libname}${release}${shared_ext}$major'
19498
shlibpath_var=LD_LIBRARY_PATH
19499
shlibpath_overrides_runpath=yes
19500
hardcode_into_libs=yes
19501
# ldd complains unless libraries are executable
19502
postinstall_cmds='chmod +x $lib'
19507
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19508
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19509
shlibpath_var=LD_LIBRARY_PATH
19510
shlibpath_overrides_runpath=yes
19511
if test "$with_gnu_ld" = yes; then
19519
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19520
soname_spec='${libname}${release}${shared_ext}$major'
19521
shlibpath_var=LD_LIBRARY_PATH
19522
case $host_vendor in
19524
shlibpath_overrides_runpath=no
19526
export_dynamic_flag_spec='${wl}-Blargedynsym'
19527
runpath_var=LD_RUN_PATH
19535
shlibpath_overrides_runpath=no
19536
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19542
if test -d /usr/nec ;then
19544
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19545
soname_spec='$libname${shared_ext}.$major'
19546
shlibpath_var=LD_LIBRARY_PATH
19550
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19551
version_type=freebsd-elf
19554
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19555
soname_spec='${libname}${release}${shared_ext}$major'
19556
shlibpath_var=LD_LIBRARY_PATH
19557
hardcode_into_libs=yes
19558
if test "$with_gnu_ld" = yes; then
19559
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19560
shlibpath_overrides_runpath=no
19562
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19563
shlibpath_overrides_runpath=yes
19566
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19570
sys_lib_dlsearch_path_spec='/usr/lib'
19575
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19576
soname_spec='${libname}${release}${shared_ext}$major'
19577
shlibpath_var=LD_LIBRARY_PATH
19584
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19585
echo "${ECHO_T}$dynamic_linker" >&6; }
19586
test "$dynamic_linker" = no && can_build_shared=no
19588
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19589
echo $ECHO_N "(cached) $ECHO_C" >&6
19591
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
19594
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19595
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19596
echo $ECHO_N "(cached) $ECHO_C" >&6
19598
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
19601
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19603
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19604
if test "$GCC" = yes; then
19605
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19608
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19609
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19610
hardcode_action_GCJ=
19611
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19612
test -n "$runpath_var_GCJ" || \
19613
test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19615
# We can hardcode non-existant directories.
19616
if test "$hardcode_direct_GCJ" != no &&
19617
# If the only mechanism to avoid hardcoding is shlibpath_var, we
19618
# have to relink, otherwise we might link with an installed library
19619
# when we should be linking with a yet-to-be-installed one
19620
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19621
test "$hardcode_minus_L_GCJ" != no; then
19622
# Linking always hardcodes the temporary library directory.
19623
hardcode_action_GCJ=relink
19625
# We can link without hardcoding, and we can hardcode nonexisting dirs.
19626
hardcode_action_GCJ=immediate
19629
# We cannot hardcode anything, or else we can only hardcode existing
19631
hardcode_action_GCJ=unsupported
19633
{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19634
echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
19636
if test "$hardcode_action_GCJ" = relink; then
19637
# Fast installation is not supported
19638
enable_fast_install=no
19639
elif test "$shlibpath_overrides_runpath" = yes ||
19640
test "$enable_shared" = no; then
19641
# Fast installation is not necessary
19642
enable_fast_install=needless
19646
# The else clause should only fire when bootstrapping the
19647
# libtool distribution, otherwise you forgot to ship ltmain.sh
19648
# with your package, and you will get complaints that there are
19649
# no rules to generate ltmain.sh.
19650
if test -f "$ltmain"; then
19651
# See if we are running on zsh, and set the options which allow our commands through
19652
# without removal of \ escapes.
19653
if test -n "${ZSH_VERSION+set}" ; then
19654
setopt NO_GLOB_SUBST
19656
# Now quote all the things that may contain metacharacters while being
19657
# careful not to overquote the AC_SUBSTed values. We take copies of the
19658
# variables and quote the copies for generation of the libtool script.
19659
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19661
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19662
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19663
deplibs_check_method reload_flag reload_cmds need_locks \
19664
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19665
lt_cv_sys_global_symbol_to_c_name_address \
19666
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19667
old_postinstall_cmds old_postuninstall_cmds \
19671
lt_prog_compiler_wl_GCJ \
19672
lt_prog_compiler_pic_GCJ \
19673
lt_prog_compiler_static_GCJ \
19674
lt_prog_compiler_no_builtin_flag_GCJ \
19675
export_dynamic_flag_spec_GCJ \
19676
thread_safe_flag_spec_GCJ \
19677
whole_archive_flag_spec_GCJ \
19678
enable_shared_with_static_runtimes_GCJ \
19679
old_archive_cmds_GCJ \
19680
old_archive_from_new_cmds_GCJ \
19681
predep_objects_GCJ \
19682
postdep_objects_GCJ \
19685
compiler_lib_search_path_GCJ \
19686
compiler_lib_search_dirs_GCJ \
19688
archive_expsym_cmds_GCJ \
19689
postinstall_cmds_GCJ \
19690
postuninstall_cmds_GCJ \
19691
old_archive_from_expsyms_cmds_GCJ \
19692
allow_undefined_flag_GCJ \
19693
no_undefined_flag_GCJ \
19694
export_symbols_cmds_GCJ \
19695
hardcode_libdir_flag_spec_GCJ \
19696
hardcode_libdir_flag_spec_ld_GCJ \
19697
hardcode_libdir_separator_GCJ \
19698
hardcode_automatic_GCJ \
19700
module_expsym_cmds_GCJ \
19701
lt_cv_prog_compiler_c_o_GCJ \
19702
fix_srcfile_path_GCJ \
19703
exclude_expsyms_GCJ \
19704
include_expsyms_GCJ; do
19707
old_archive_cmds_GCJ | \
19708
old_archive_from_new_cmds_GCJ | \
19709
archive_cmds_GCJ | \
19710
archive_expsym_cmds_GCJ | \
19711
module_cmds_GCJ | \
19712
module_expsym_cmds_GCJ | \
19713
old_archive_from_expsyms_cmds_GCJ | \
19714
export_symbols_cmds_GCJ | \
19715
extract_expsyms_cmds | reload_cmds | finish_cmds | \
19716
postinstall_cmds | postuninstall_cmds | \
19717
old_postinstall_cmds | old_postuninstall_cmds | \
19718
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19719
# Double-quote double-evaled strings.
19720
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19723
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19729
*'\$0 --fallback-echo"')
19730
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19736
cat <<__EOF__ >> "$cfgfile"
19737
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19739
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19741
# Shell to use when invoking shell scripts.
19744
# Whether or not to build shared libraries.
19745
build_libtool_libs=$enable_shared
19747
# Whether or not to build static libraries.
19748
build_old_libs=$enable_static
19750
# Whether or not to add -lc for building shared libraries.
19751
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19753
# Whether or not to disallow shared libs when runtime libs are static
19754
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19756
# Whether or not to optimize for fast installation.
19757
fast_install=$enable_fast_install
19760
host_alias=$host_alias
19764
# The build system.
19765
build_alias=$build_alias
19769
# An echo program that does not interpret backslashes.
19774
AR_FLAGS=$lt_AR_FLAGS
19779
# LTCC compiler flags.
19780
LTCFLAGS=$lt_LTCFLAGS
19782
# A language-specific compiler.
19783
CC=$lt_compiler_GCJ
19785
# Is the compiler the GNU C compiler?
19791
# The linker used to build libraries.
19794
# Whether we need hard or soft links.
19797
# A BSD-compatible nm program.
19800
# A symbol stripping program
19803
# Used to examine libraries when file_magic_cmd begins "file"
19804
MAGIC_CMD=$MAGIC_CMD
19806
# Used on cygwin: DLL creation program.
19809
# Used on cygwin: object dumper.
19812
# Used on cygwin: assembler.
19815
# The name of the directory that contains temporary libtool files.
19818
# How to create reloadable object files.
19819
reload_flag=$lt_reload_flag
19820
reload_cmds=$lt_reload_cmds
19822
# How to pass a linker flag through the compiler.
19823
wl=$lt_lt_prog_compiler_wl_GCJ
19825
# Object file suffix (normally "o").
19826
objext="$ac_objext"
19828
# Old archive suffix (normally "a").
19831
# Shared library suffix (normally ".so").
19832
shrext_cmds='$shrext_cmds'
19834
# Executable file suffix (normally "").
19837
# Additional compiler flags for building library objects.
19838
pic_flag=$lt_lt_prog_compiler_pic_GCJ
19841
# What is the maximum length of a command?
19842
max_cmd_len=$lt_cv_sys_max_cmd_len
19844
# Does compiler simultaneously support -c and -o options?
19845
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19847
# Must we lock files when doing compilation?
19848
need_locks=$lt_need_locks
19850
# Do we need the lib prefix for modules?
19851
need_lib_prefix=$need_lib_prefix
19853
# Do we need a version for libraries?
19854
need_version=$need_version
19856
# Whether dlopen is supported.
19857
dlopen_support=$enable_dlopen
19859
# Whether dlopen of programs is supported.
19860
dlopen_self=$enable_dlopen_self
19862
# Whether dlopen of statically linked programs is supported.
19863
dlopen_self_static=$enable_dlopen_self_static
19865
# Compiler flag to prevent dynamic linking.
19866
link_static_flag=$lt_lt_prog_compiler_static_GCJ
19868
# Compiler flag to turn off builtin functions.
19869
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19871
# Compiler flag to allow reflexive dlopens.
19872
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19874
# Compiler flag to generate shared objects directly from archives.
19875
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19877
# Compiler flag to generate thread-safe objects.
19878
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19880
# Library versioning type.
19881
version_type=$version_type
19883
# Format of library name prefix.
19884
libname_spec=$lt_libname_spec
19886
# List of archive names. First name is the real one, the rest are links.
19887
# The last name is the one that the linker finds with -lNAME.
19888
library_names_spec=$lt_library_names_spec
19890
# The coded name of the library, if different from the real name.
19891
soname_spec=$lt_soname_spec
19893
# Commands used to build and install an old-style archive.
19895
old_archive_cmds=$lt_old_archive_cmds_GCJ
19896
old_postinstall_cmds=$lt_old_postinstall_cmds
19897
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19899
# Create an old-style archive from a shared archive.
19900
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19902
# Create a temporary old-style archive to link instead of a shared archive.
19903
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19905
# Commands used to build and install a shared archive.
19906
archive_cmds=$lt_archive_cmds_GCJ
19907
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19908
postinstall_cmds=$lt_postinstall_cmds
19909
postuninstall_cmds=$lt_postuninstall_cmds
19911
# Commands used to build a loadable module (assumed same as above if empty)
19912
module_cmds=$lt_module_cmds_GCJ
19913
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19915
# Commands to strip libraries.
19916
old_striplib=$lt_old_striplib
19917
striplib=$lt_striplib
19919
# Dependencies to place before the objects being linked to create a
19921
predep_objects=$lt_predep_objects_GCJ
19923
# Dependencies to place after the objects being linked to create a
19925
postdep_objects=$lt_postdep_objects_GCJ
19927
# Dependencies to place before the objects being linked to create a
19929
predeps=$lt_predeps_GCJ
19931
# Dependencies to place after the objects being linked to create a
19933
postdeps=$lt_postdeps_GCJ
19935
# The directories searched by this compiler when creating a shared
19937
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19939
# The library search path used internally by the compiler when linking
19940
# a shared library.
19941
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19943
# Method to check whether dependent libraries are shared objects.
19944
deplibs_check_method=$lt_deplibs_check_method
19946
# Command to use when deplibs_check_method == file_magic.
19947
file_magic_cmd=$lt_file_magic_cmd
19949
# Flag that allows shared libraries with undefined symbols to be built.
19950
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19952
# Flag that forces no undefined symbols.
19953
no_undefined_flag=$lt_no_undefined_flag_GCJ
19955
# Commands used to finish a libtool library installation in a directory.
19956
finish_cmds=$lt_finish_cmds
19958
# Same as above, but a single script fragment to be evaled but not shown.
19959
finish_eval=$lt_finish_eval
19961
# Take the output of nm and produce a listing of raw symbols and C names.
19962
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19964
# Transform the output of nm in a proper C declaration
19965
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19967
# Transform the output of nm in a C name address pair
19968
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19970
# This is the shared library runtime path variable.
19971
runpath_var=$runpath_var
19973
# This is the shared library path variable.
19974
shlibpath_var=$shlibpath_var
19976
# Is shlibpath searched before the hard-coded library search path?
19977
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19979
# How to hardcode a shared library path into an executable.
19980
hardcode_action=$hardcode_action_GCJ
19982
# Whether we should hardcode library paths into libraries.
19983
hardcode_into_libs=$hardcode_into_libs
19985
# Flag to hardcode \$libdir into a binary during linking.
19986
# This must work even if \$libdir does not exist.
19987
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19989
# If ld is used when linking, flag to hardcode \$libdir into
19990
# a binary during linking. This must work even if \$libdir does
19992
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19994
# Whether we need a single -rpath flag with a separated argument.
19995
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19997
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19998
# resulting binary.
19999
hardcode_direct=$hardcode_direct_GCJ
20001
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20002
# resulting binary.
20003
hardcode_minus_L=$hardcode_minus_L_GCJ
20005
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20006
# the resulting binary.
20007
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20009
# Set to yes if building a shared library automatically hardcodes DIR into the library
20010
# and all subsequent libraries and executables linked against it.
20011
hardcode_automatic=$hardcode_automatic_GCJ
20013
# Variables whose values should be saved in libtool wrapper scripts and
20014
# restored at relink time.
20015
variables_saved_for_relink="$variables_saved_for_relink"
20017
# Whether libtool must link a program against all its dependency libraries.
20018
link_all_deplibs=$link_all_deplibs_GCJ
20020
# Compile-time system search path for libraries
20021
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20023
# Run-time system search path for libraries
20024
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20026
# Fix the shell variable \$srcfile for the compiler.
20027
fix_srcfile_path=$lt_fix_srcfile_path
20029
# Set to yes if exported symbols are required.
20030
always_export_symbols=$always_export_symbols_GCJ
20032
# The commands to list exported symbols.
20033
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20035
# The commands to extract the exported symbol list from a shared archive.
20036
extract_expsyms_cmds=$lt_extract_expsyms_cmds
20038
# Symbols that should not be listed in the preloaded symbols.
20039
exclude_expsyms=$lt_exclude_expsyms_GCJ
20041
# Symbols that must always be exported.
20042
include_expsyms=$lt_include_expsyms_GCJ
20044
# ### END LIBTOOL TAG CONFIG: $tagname
20050
# If there is no Makefile yet, we rely on a make rule to execute
20051
# `config.status --recheck' to rerun these tests and create the
20052
# libtool script then.
20053
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20054
if test -f "$ltmain_in"; then
20055
test -f Makefile && make "$ltmain"
20061
ac_cpp='$CPP $CPPFLAGS'
20062
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20063
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20064
ac_compiler_gnu=$ac_cv_c_compiler_gnu
20076
# Source file extension for RC test sources.
20079
# Object file extension for compiled RC test sources.
20083
# Code to be used in simple compile tests
20084
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
20086
# Code to be used in simple link tests
20087
lt_simple_link_test_code="$lt_simple_compile_test_code"
20089
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
20091
# If no C compiler was specified, use CC.
20094
# If no C compiler flags were specified, use CFLAGS.
20095
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20097
# Allow CC to be a program name with arguments.
20101
# save warnings/boilerplate of simple test code
20102
ac_outfile=conftest.$ac_objext
20103
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
20104
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20105
_lt_compiler_boilerplate=`cat conftest.err`
20108
ac_outfile=conftest.$ac_objext
20109
echo "$lt_simple_link_test_code" >conftest.$ac_ext
20110
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20111
_lt_linker_boilerplate=`cat conftest.err`
20115
# Allow CC to be a program name with arguments.
20120
for cc_temp in $compiler""; do
20122
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20123
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20128
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20130
lt_cv_prog_compiler_c_o_RC=yes
20132
# The else clause should only fire when bootstrapping the
20133
# libtool distribution, otherwise you forgot to ship ltmain.sh
20134
# with your package, and you will get complaints that there are
20135
# no rules to generate ltmain.sh.
20136
if test -f "$ltmain"; then
20137
# See if we are running on zsh, and set the options which allow our commands through
20138
# without removal of \ escapes.
20139
if test -n "${ZSH_VERSION+set}" ; then
20140
setopt NO_GLOB_SUBST
20142
# Now quote all the things that may contain metacharacters while being
20143
# careful not to overquote the AC_SUBSTed values. We take copies of the
20144
# variables and quote the copies for generation of the libtool script.
20145
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20147
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20148
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20149
deplibs_check_method reload_flag reload_cmds need_locks \
20150
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20151
lt_cv_sys_global_symbol_to_c_name_address \
20152
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20153
old_postinstall_cmds old_postuninstall_cmds \
20157
lt_prog_compiler_wl_RC \
20158
lt_prog_compiler_pic_RC \
20159
lt_prog_compiler_static_RC \
20160
lt_prog_compiler_no_builtin_flag_RC \
20161
export_dynamic_flag_spec_RC \
20162
thread_safe_flag_spec_RC \
20163
whole_archive_flag_spec_RC \
20164
enable_shared_with_static_runtimes_RC \
20165
old_archive_cmds_RC \
20166
old_archive_from_new_cmds_RC \
20167
predep_objects_RC \
20168
postdep_objects_RC \
20171
compiler_lib_search_path_RC \
20172
compiler_lib_search_dirs_RC \
20174
archive_expsym_cmds_RC \
20175
postinstall_cmds_RC \
20176
postuninstall_cmds_RC \
20177
old_archive_from_expsyms_cmds_RC \
20178
allow_undefined_flag_RC \
20179
no_undefined_flag_RC \
20180
export_symbols_cmds_RC \
20181
hardcode_libdir_flag_spec_RC \
20182
hardcode_libdir_flag_spec_ld_RC \
20183
hardcode_libdir_separator_RC \
20184
hardcode_automatic_RC \
20186
module_expsym_cmds_RC \
20187
lt_cv_prog_compiler_c_o_RC \
20188
fix_srcfile_path_RC \
20189
exclude_expsyms_RC \
20190
include_expsyms_RC; do
20193
old_archive_cmds_RC | \
20194
old_archive_from_new_cmds_RC | \
20195
archive_cmds_RC | \
20196
archive_expsym_cmds_RC | \
20198
module_expsym_cmds_RC | \
20199
old_archive_from_expsyms_cmds_RC | \
20200
export_symbols_cmds_RC | \
20201
extract_expsyms_cmds | reload_cmds | finish_cmds | \
20202
postinstall_cmds | postuninstall_cmds | \
20203
old_postinstall_cmds | old_postuninstall_cmds | \
20204
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20205
# Double-quote double-evaled strings.
20206
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20209
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20215
*'\$0 --fallback-echo"')
20216
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20222
cat <<__EOF__ >> "$cfgfile"
20223
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20225
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20227
# Shell to use when invoking shell scripts.
20230
# Whether or not to build shared libraries.
20231
build_libtool_libs=$enable_shared
20233
# Whether or not to build static libraries.
20234
build_old_libs=$enable_static
20236
# Whether or not to add -lc for building shared libraries.
20237
build_libtool_need_lc=$archive_cmds_need_lc_RC
20239
# Whether or not to disallow shared libs when runtime libs are static
20240
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20242
# Whether or not to optimize for fast installation.
20243
fast_install=$enable_fast_install
20246
host_alias=$host_alias
20250
# The build system.
20251
build_alias=$build_alias
20255
# An echo program that does not interpret backslashes.
20260
AR_FLAGS=$lt_AR_FLAGS
20265
# LTCC compiler flags.
20266
LTCFLAGS=$lt_LTCFLAGS
20268
# A language-specific compiler.
20271
# Is the compiler the GNU C compiler?
20277
# The linker used to build libraries.
20280
# Whether we need hard or soft links.
20283
# A BSD-compatible nm program.
20286
# A symbol stripping program
20289
# Used to examine libraries when file_magic_cmd begins "file"
20290
MAGIC_CMD=$MAGIC_CMD
20292
# Used on cygwin: DLL creation program.
20295
# Used on cygwin: object dumper.
20298
# Used on cygwin: assembler.
20301
# The name of the directory that contains temporary libtool files.
20304
# How to create reloadable object files.
20305
reload_flag=$lt_reload_flag
20306
reload_cmds=$lt_reload_cmds
20308
# How to pass a linker flag through the compiler.
20309
wl=$lt_lt_prog_compiler_wl_RC
20311
# Object file suffix (normally "o").
20312
objext="$ac_objext"
20314
# Old archive suffix (normally "a").
20317
# Shared library suffix (normally ".so").
20318
shrext_cmds='$shrext_cmds'
20320
# Executable file suffix (normally "").
20323
# Additional compiler flags for building library objects.
20324
pic_flag=$lt_lt_prog_compiler_pic_RC
20327
# What is the maximum length of a command?
20328
max_cmd_len=$lt_cv_sys_max_cmd_len
20330
# Does compiler simultaneously support -c and -o options?
20331
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20333
# Must we lock files when doing compilation?
20334
need_locks=$lt_need_locks
20336
# Do we need the lib prefix for modules?
20337
need_lib_prefix=$need_lib_prefix
20339
# Do we need a version for libraries?
20340
need_version=$need_version
20342
# Whether dlopen is supported.
20343
dlopen_support=$enable_dlopen
20345
# Whether dlopen of programs is supported.
20346
dlopen_self=$enable_dlopen_self
20348
# Whether dlopen of statically linked programs is supported.
20349
dlopen_self_static=$enable_dlopen_self_static
20351
# Compiler flag to prevent dynamic linking.
20352
link_static_flag=$lt_lt_prog_compiler_static_RC
20354
# Compiler flag to turn off builtin functions.
20355
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20357
# Compiler flag to allow reflexive dlopens.
20358
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20360
# Compiler flag to generate shared objects directly from archives.
20361
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20363
# Compiler flag to generate thread-safe objects.
20364
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20366
# Library versioning type.
20367
version_type=$version_type
20369
# Format of library name prefix.
20370
libname_spec=$lt_libname_spec
20372
# List of archive names. First name is the real one, the rest are links.
20373
# The last name is the one that the linker finds with -lNAME.
20374
library_names_spec=$lt_library_names_spec
20376
# The coded name of the library, if different from the real name.
20377
soname_spec=$lt_soname_spec
20379
# Commands used to build and install an old-style archive.
20381
old_archive_cmds=$lt_old_archive_cmds_RC
20382
old_postinstall_cmds=$lt_old_postinstall_cmds
20383
old_postuninstall_cmds=$lt_old_postuninstall_cmds
20385
# Create an old-style archive from a shared archive.
20386
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20388
# Create a temporary old-style archive to link instead of a shared archive.
20389
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20391
# Commands used to build and install a shared archive.
20392
archive_cmds=$lt_archive_cmds_RC
20393
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20394
postinstall_cmds=$lt_postinstall_cmds
20395
postuninstall_cmds=$lt_postuninstall_cmds
20397
# Commands used to build a loadable module (assumed same as above if empty)
20398
module_cmds=$lt_module_cmds_RC
20399
module_expsym_cmds=$lt_module_expsym_cmds_RC
20401
# Commands to strip libraries.
20402
old_striplib=$lt_old_striplib
20403
striplib=$lt_striplib
20405
# Dependencies to place before the objects being linked to create a
20407
predep_objects=$lt_predep_objects_RC
20409
# Dependencies to place after the objects being linked to create a
20411
postdep_objects=$lt_postdep_objects_RC
20413
# Dependencies to place before the objects being linked to create a
20415
predeps=$lt_predeps_RC
20417
# Dependencies to place after the objects being linked to create a
20419
postdeps=$lt_postdeps_RC
20421
# The directories searched by this compiler when creating a shared
20423
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
20425
# The library search path used internally by the compiler when linking
20426
# a shared library.
20427
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20429
# Method to check whether dependent libraries are shared objects.
20430
deplibs_check_method=$lt_deplibs_check_method
20432
# Command to use when deplibs_check_method == file_magic.
20433
file_magic_cmd=$lt_file_magic_cmd
20435
# Flag that allows shared libraries with undefined symbols to be built.
20436
allow_undefined_flag=$lt_allow_undefined_flag_RC
20438
# Flag that forces no undefined symbols.
20439
no_undefined_flag=$lt_no_undefined_flag_RC
20441
# Commands used to finish a libtool library installation in a directory.
20442
finish_cmds=$lt_finish_cmds
20444
# Same as above, but a single script fragment to be evaled but not shown.
20445
finish_eval=$lt_finish_eval
20447
# Take the output of nm and produce a listing of raw symbols and C names.
20448
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20450
# Transform the output of nm in a proper C declaration
20451
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20453
# Transform the output of nm in a C name address pair
20454
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20456
# This is the shared library runtime path variable.
20457
runpath_var=$runpath_var
20459
# This is the shared library path variable.
20460
shlibpath_var=$shlibpath_var
20462
# Is shlibpath searched before the hard-coded library search path?
20463
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20465
# How to hardcode a shared library path into an executable.
20466
hardcode_action=$hardcode_action_RC
20468
# Whether we should hardcode library paths into libraries.
20469
hardcode_into_libs=$hardcode_into_libs
20471
# Flag to hardcode \$libdir into a binary during linking.
20472
# This must work even if \$libdir does not exist.
20473
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20475
# If ld is used when linking, flag to hardcode \$libdir into
20476
# a binary during linking. This must work even if \$libdir does
20478
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20480
# Whether we need a single -rpath flag with a separated argument.
20481
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20483
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20484
# resulting binary.
20485
hardcode_direct=$hardcode_direct_RC
20487
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20488
# resulting binary.
20489
hardcode_minus_L=$hardcode_minus_L_RC
20491
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20492
# the resulting binary.
20493
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20495
# Set to yes if building a shared library automatically hardcodes DIR into the library
20496
# and all subsequent libraries and executables linked against it.
20497
hardcode_automatic=$hardcode_automatic_RC
20499
# Variables whose values should be saved in libtool wrapper scripts and
20500
# restored at relink time.
20501
variables_saved_for_relink="$variables_saved_for_relink"
20503
# Whether libtool must link a program against all its dependency libraries.
20504
link_all_deplibs=$link_all_deplibs_RC
20506
# Compile-time system search path for libraries
20507
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20509
# Run-time system search path for libraries
20510
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20512
# Fix the shell variable \$srcfile for the compiler.
20513
fix_srcfile_path=$lt_fix_srcfile_path
20515
# Set to yes if exported symbols are required.
20516
always_export_symbols=$always_export_symbols_RC
20518
# The commands to list exported symbols.
20519
export_symbols_cmds=$lt_export_symbols_cmds_RC
20521
# The commands to extract the exported symbol list from a shared archive.
20522
extract_expsyms_cmds=$lt_extract_expsyms_cmds
20524
# Symbols that should not be listed in the preloaded symbols.
20525
exclude_expsyms=$lt_exclude_expsyms_RC
20527
# Symbols that must always be exported.
20528
include_expsyms=$lt_include_expsyms_RC
20530
# ### END LIBTOOL TAG CONFIG: $tagname
20536
# If there is no Makefile yet, we rely on a make rule to execute
20537
# `config.status --recheck' to rerun these tests and create the
20538
# libtool script then.
20539
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20540
if test -f "$ltmain_in"; then
20541
test -f Makefile && make "$ltmain"
20547
ac_cpp='$CPP $CPPFLAGS'
20548
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20549
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20550
ac_compiler_gnu=$ac_cv_c_compiler_gnu
20557
{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20558
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20559
{ (exit 1); exit 1; }; }
20563
# Append the new tag name to the list of available tags.
20564
if test -n "$tagname" ; then
20565
available_tags="$available_tags $tagname"
20571
# Now substitute the updated list of available tags.
20572
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20573
mv "${ofile}T" "$ofile"
20577
{ { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20578
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20579
{ (exit 1); exit 1; }; }
20585
# This can be used to rebuild libtool when needed
20586
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20588
# Always use our own libtool.
20589
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20591
# Prevent multiple expansion
14959
{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14960
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
14961
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14962
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14963
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14964
{ echo "$as_me:$LINENO: result: yes" >&5
14965
echo "${ECHO_T}yes" >&6; }
14967
# FIXME - insert some real tests, host_os isn't really good enough
14970
if test -n "$STRIP" ; then
14971
striplib="$STRIP -x"
14972
old_striplib="$STRIP -S"
14973
{ echo "$as_me:$LINENO: result: yes" >&5
14974
echo "${ECHO_T}yes" >&6; }
14976
{ echo "$as_me:$LINENO: result: no" >&5
14977
echo "${ECHO_T}no" >&6; }
14981
{ echo "$as_me:$LINENO: result: no" >&5
14982
echo "${ECHO_T}no" >&6; }
14998
# Report which library types will actually be built
14999
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15000
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
15001
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
15002
echo "${ECHO_T}$can_build_shared" >&6; }
15004
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15005
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
15006
test "$can_build_shared" = "no" && enable_shared=no
15008
# On AIX, shared libraries and static libraries use the same namespace, and
15009
# are all built from PIC.
15012
test "$enable_shared" = yes && enable_static=no
15013
if test -n "$RANLIB"; then
15014
archive_cmds="$archive_cmds~\$RANLIB \$lib"
15015
postinstall_cmds='$RANLIB $lib'
15020
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15021
test "$enable_shared" = yes && enable_static=no
15025
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
15026
echo "${ECHO_T}$enable_shared" >&6; }
15028
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15029
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
15030
# Make sure either enable_shared or enable_static is yes.
15031
test "$enable_shared" = yes || enable_static=yes
15032
{ echo "$as_me:$LINENO: result: $enable_static" >&5
15033
echo "${ECHO_T}$enable_static" >&6; }
15040
ac_cpp='$CPP $CPPFLAGS'
15041
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15042
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15043
ac_compiler_gnu=$ac_cv_c_compiler_gnu
15059
ac_config_commands="$ac_config_commands libtool"
15064
# Only expand once:
15282
compiler_id="unknown"
15285
flags_dbg_all="unknown"
15286
flags_dbg_yes="unknown"
15287
flags_dbg_off="unknown"
15288
flags_opt_all="unknown"
15289
flags_opt_yes="unknown"
15290
flags_opt_off="unknown"
15293
{ echo "$as_me:$LINENO: checking if compiler is DEC/Compaq/HP C" >&5
15294
echo $ECHO_N "checking if compiler is DEC/Compaq/HP C... $ECHO_C" >&6; }
15296
if test -z "$SED"; then
15297
{ { echo "$as_me:$LINENO: error: SED not set. Cannot continue without SED being set." >&5
15298
echo "$as_me: error: SED not set. Cannot continue without SED being set." >&2;}
15299
{ (exit 1); exit 1; }; }
15301
if test -z "$GREP"; then
15302
{ { echo "$as_me:$LINENO: error: GREP not set. Cannot continue without GREP being set." >&5
15303
echo "$as_me: error: GREP not set. Cannot continue without GREP being set." >&2;}
15304
{ (exit 1); exit 1; }; }
15308
cat >conftest.$ac_ext <<_ACEOF
15312
cat confdefs.h >>conftest.$ac_ext
15313
cat >>conftest.$ac_ext <<_ACEOF
15314
/* end confdefs.h. */
15317
CURL_DEF_TOKEN __DECC
15322
if { (ac_try="$ac_cpp conftest.$ac_ext"
15323
case "(($ac_try" in
15324
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15325
*) ac_try_echo=$ac_try;;
15327
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15328
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15330
grep -v '^ *+' conftest.er1 >conftest.err
15332
cat conftest.err >&5
15333
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15334
(exit $ac_status); } >/dev/null && {
15335
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15336
test ! -s conftest.err
15339
tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15340
"$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15341
"$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
15342
"$SED" 's/["][ ]*["]//g' 2>/dev/null`
15343
if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC"; then
15348
echo "$as_me: failed program was:" >&5
15349
sed 's/^/| /' conftest.$ac_ext >&5
15354
rm -f conftest.err conftest.$ac_ext
15355
if test -z "$tmp_exp"; then
15356
curl_cv_have_def___DECC=no
15359
curl_cv_have_def___DECC=yes
15360
curl_cv_def___DECC=$tmp_exp
15365
if test -z "$SED"; then
15366
{ { echo "$as_me:$LINENO: error: SED not set. Cannot continue without SED being set." >&5
15367
echo "$as_me: error: SED not set. Cannot continue without SED being set." >&2;}
15368
{ (exit 1); exit 1; }; }
15370
if test -z "$GREP"; then
15371
{ { echo "$as_me:$LINENO: error: GREP not set. Cannot continue without GREP being set." >&5
15372
echo "$as_me: error: GREP not set. Cannot continue without GREP being set." >&2;}
15373
{ (exit 1); exit 1; }; }
15377
cat >conftest.$ac_ext <<_ACEOF
15381
cat confdefs.h >>conftest.$ac_ext
15382
cat >>conftest.$ac_ext <<_ACEOF
15383
/* end confdefs.h. */
15386
CURL_DEF_TOKEN __DECC_VER
15391
if { (ac_try="$ac_cpp conftest.$ac_ext"
15392
case "(($ac_try" in
15393
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15394
*) ac_try_echo=$ac_try;;
15396
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15397
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15399
grep -v '^ *+' conftest.er1 >conftest.err
15401
cat conftest.err >&5
15402
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15403
(exit $ac_status); } >/dev/null && {
15404
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15405
test ! -s conftest.err
15408
tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15409
"$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15410
"$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
15411
"$SED" 's/["][ ]*["]//g' 2>/dev/null`
15412
if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC_VER"; then
15417
echo "$as_me: failed program was:" >&5
15418
sed 's/^/| /' conftest.$ac_ext >&5
15423
rm -f conftest.err conftest.$ac_ext
15424
if test -z "$tmp_exp"; then
15425
curl_cv_have_def___DECC_VER=no
15428
curl_cv_have_def___DECC_VER=yes
15429
curl_cv_def___DECC_VER=$tmp_exp
15433
if test "$curl_cv_have_def___DECC" = "yes" &&
15434
test "$curl_cv_have_def___DECC_VER" = "yes"; then
15435
{ echo "$as_me:$LINENO: result: yes" >&5
15436
echo "${ECHO_T}yes" >&6; }
15437
compiler_id="DEC_C"
15438
flags_dbg_all="-g -g0 -g1 -g2 -g3"
15439
flags_dbg_yes="-g2"
15440
flags_dbg_off="-g0"
15441
flags_opt_all="-O -O0 -O1 -O2 -O3 -O4"
15442
flags_opt_yes="-O1"
15443
flags_opt_off="-O0"
15445
{ echo "$as_me:$LINENO: result: no" >&5
15446
echo "${ECHO_T}no" >&6; }
15450
{ echo "$as_me:$LINENO: checking if compiler is HP-UX C" >&5
15451
echo $ECHO_N "checking if compiler is HP-UX C... $ECHO_C" >&6; }
15453
if test -z "$SED"; then
15454
{ { echo "$as_me:$LINENO: error: SED not set. Cannot continue without SED being set." >&5
15455
echo "$as_me: error: SED not set. Cannot continue without SED being set." >&2;}
15456
{ (exit 1); exit 1; }; }
15458
if test -z "$GREP"; then
15459
{ { echo "$as_me:$LINENO: error: GREP not set. Cannot continue without GREP being set." >&5
15460
echo "$as_me: error: GREP not set. Cannot continue without GREP being set." >&2;}
15461
{ (exit 1); exit 1; }; }
15465
cat >conftest.$ac_ext <<_ACEOF
15469
cat confdefs.h >>conftest.$ac_ext
15470
cat >>conftest.$ac_ext <<_ACEOF
15471
/* end confdefs.h. */
15474
CURL_DEF_TOKEN __HP_cc
15479
if { (ac_try="$ac_cpp conftest.$ac_ext"
15480
case "(($ac_try" in
15481
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15482
*) ac_try_echo=$ac_try;;
15484
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15485
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15487
grep -v '^ *+' conftest.er1 >conftest.err
15489
cat conftest.err >&5
15490
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15491
(exit $ac_status); } >/dev/null && {
15492
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15493
test ! -s conftest.err
15496
tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15497
"$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15498
"$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
15499
"$SED" 's/["][ ]*["]//g' 2>/dev/null`
15500
if test -z "$tmp_exp" || test "$tmp_exp" = "__HP_cc"; then
15505
echo "$as_me: failed program was:" >&5
15506
sed 's/^/| /' conftest.$ac_ext >&5
15511
rm -f conftest.err conftest.$ac_ext
15512
if test -z "$tmp_exp"; then
15513
curl_cv_have_def___HP_cc=no
15516
curl_cv_have_def___HP_cc=yes
15517
curl_cv_def___HP_cc=$tmp_exp
15521
if test "$curl_cv_have_def___HP_cc" = "yes"; then
15522
{ echo "$as_me:$LINENO: result: yes" >&5
15523
echo "${ECHO_T}yes" >&6; }
15524
compiler_id="HP_UX_C"
15525
flags_dbg_all="-g -s"
15528
flags_opt_all="-O +O0 +O1 +O2 +O3 +O4"
15529
flags_opt_yes="+O2"
15530
flags_opt_off="+O0"
15532
{ echo "$as_me:$LINENO: result: no" >&5
15533
echo "${ECHO_T}no" >&6; }
15537
{ echo "$as_me:$LINENO: checking if compiler is IBM C" >&5
15538
echo $ECHO_N "checking if compiler is IBM C... $ECHO_C" >&6; }
15540
if test -z "$SED"; then
15541
{ { echo "$as_me:$LINENO: error: SED not set. Cannot continue without SED being set." >&5
15542
echo "$as_me: error: SED not set. Cannot continue without SED being set." >&2;}
15543
{ (exit 1); exit 1; }; }
15545
if test -z "$GREP"; then
15546
{ { echo "$as_me:$LINENO: error: GREP not set. Cannot continue without GREP being set." >&5
15547
echo "$as_me: error: GREP not set. Cannot continue without GREP being set." >&2;}
15548
{ (exit 1); exit 1; }; }
15552
cat >conftest.$ac_ext <<_ACEOF
15556
cat confdefs.h >>conftest.$ac_ext
15557
cat >>conftest.$ac_ext <<_ACEOF
15558
/* end confdefs.h. */
15561
CURL_DEF_TOKEN __IBMC__
15566
if { (ac_try="$ac_cpp conftest.$ac_ext"
15567
case "(($ac_try" in
15568
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15569
*) ac_try_echo=$ac_try;;
15571
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15572
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15574
grep -v '^ *+' conftest.er1 >conftest.err
15576
cat conftest.err >&5
15577
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15578
(exit $ac_status); } >/dev/null && {
15579
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15580
test ! -s conftest.err
15583
tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15584
"$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15585
"$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
15586
"$SED" 's/["][ ]*["]//g' 2>/dev/null`
15587
if test -z "$tmp_exp" || test "$tmp_exp" = "__IBMC__"; then
15592
echo "$as_me: failed program was:" >&5
15593
sed 's/^/| /' conftest.$ac_ext >&5
15598
rm -f conftest.err conftest.$ac_ext
15599
if test -z "$tmp_exp"; then
15600
curl_cv_have_def___IBMC__=no
15603
curl_cv_have_def___IBMC__=yes
15604
curl_cv_def___IBMC__=$tmp_exp
15608
if test "$curl_cv_have_def___IBMC__" = "yes"; then
15609
{ echo "$as_me:$LINENO: result: yes" >&5
15610
echo "${ECHO_T}yes" >&6; }
15611
compiler_id="IBM_C"
15612
flags_dbg_all="-g -g0 -g1 -g2 -g3"
15615
flags_opt_all="-O -O0 -O1 -O2 -O3 -O4 -O5"
15616
flags_opt_all="$flags_opt_all -qnooptimize"
15617
flags_opt_all="$flags_opt_all -qoptimize=0"
15618
flags_opt_all="$flags_opt_all -qoptimize=1"
15619
flags_opt_all="$flags_opt_all -qoptimize=2"
15620
flags_opt_all="$flags_opt_all -qoptimize=3"
15621
flags_opt_all="$flags_opt_all -qoptimize=4"
15622
flags_opt_all="$flags_opt_all -qoptimize=5"
15623
flags_opt_yes="-O2"
15624
flags_opt_off="-qnooptimize"
15626
{ echo "$as_me:$LINENO: result: no" >&5
15627
echo "${ECHO_T}no" >&6; }
15631
{ echo "$as_me:$LINENO: checking if compiler is Intel C" >&5
15632
echo $ECHO_N "checking if compiler is Intel C... $ECHO_C" >&6; }
15634
if test -z "$SED"; then
15635
{ { echo "$as_me:$LINENO: error: SED not set. Cannot continue without SED being set." >&5
15636
echo "$as_me: error: SED not set. Cannot continue without SED being set." >&2;}
15637
{ (exit 1); exit 1; }; }
15639
if test -z "$GREP"; then
15640
{ { echo "$as_me:$LINENO: error: GREP not set. Cannot continue without GREP being set." >&5
15641
echo "$as_me: error: GREP not set. Cannot continue without GREP being set." >&2;}
15642
{ (exit 1); exit 1; }; }
15646
cat >conftest.$ac_ext <<_ACEOF
15650
cat confdefs.h >>conftest.$ac_ext
15651
cat >>conftest.$ac_ext <<_ACEOF
15652
/* end confdefs.h. */
15654
#ifdef __INTEL_COMPILER
15655
CURL_DEF_TOKEN __INTEL_COMPILER
15660
if { (ac_try="$ac_cpp conftest.$ac_ext"
15661
case "(($ac_try" in
15662
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15663
*) ac_try_echo=$ac_try;;
15665
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15666
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15668
grep -v '^ *+' conftest.er1 >conftest.err
15670
cat conftest.err >&5
15671
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15672
(exit $ac_status); } >/dev/null && {
15673
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15674
test ! -s conftest.err
15677
tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15678
"$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15679
"$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
15680
"$SED" 's/["][ ]*["]//g' 2>/dev/null`
15681
if test -z "$tmp_exp" || test "$tmp_exp" = "__INTEL_COMPILER"; then
15686
echo "$as_me: failed program was:" >&5
15687
sed 's/^/| /' conftest.$ac_ext >&5
15692
rm -f conftest.err conftest.$ac_ext
15693
if test -z "$tmp_exp"; then
15694
curl_cv_have_def___INTEL_COMPILER=no
15697
curl_cv_have_def___INTEL_COMPILER=yes
15698
curl_cv_def___INTEL_COMPILER=$tmp_exp
15702
if test "$curl_cv_have_def___INTEL_COMPILER" = "yes"; then
15703
{ echo "$as_me:$LINENO: result: yes" >&5
15704
echo "${ECHO_T}yes" >&6; }
15705
compiler_num="$curl_cv_def___INTEL_COMPILER"
15707
if test -z "$SED"; then
15708
{ { echo "$as_me:$LINENO: error: SED not set. Cannot continue without SED being set." >&5
15709
echo "$as_me: error: SED not set. Cannot continue without SED being set." >&2;}
15710
{ (exit 1); exit 1; }; }
15712
if test -z "$GREP"; then
15713
{ { echo "$as_me:$LINENO: error: GREP not set. Cannot continue without GREP being set." >&5
15714
echo "$as_me: error: GREP not set. Cannot continue without GREP being set." >&2;}
15715
{ (exit 1); exit 1; }; }
15719
cat >conftest.$ac_ext <<_ACEOF
15723
cat confdefs.h >>conftest.$ac_ext
15724
cat >>conftest.$ac_ext <<_ACEOF
15725
/* end confdefs.h. */
15728
CURL_DEF_TOKEN __i386__
15733
if { (ac_try="$ac_cpp conftest.$ac_ext"
15734
case "(($ac_try" in
15735
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15736
*) ac_try_echo=$ac_try;;
15738
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15739
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15741
grep -v '^ *+' conftest.er1 >conftest.err
15743
cat conftest.err >&5
15744
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15745
(exit $ac_status); } >/dev/null && {
15746
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15747
test ! -s conftest.err
15750
tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15751
"$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15752
"$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
15753
"$SED" 's/["][ ]*["]//g' 2>/dev/null`
15754
if test -z "$tmp_exp" || test "$tmp_exp" = "__i386__"; then
15759
echo "$as_me: failed program was:" >&5
15760
sed 's/^/| /' conftest.$ac_ext >&5
15765
rm -f conftest.err conftest.$ac_ext
15766
if test -z "$tmp_exp"; then
15767
curl_cv_have_def___i386__=no
15770
curl_cv_have_def___i386__=yes
15771
curl_cv_def___i386__=$tmp_exp
15776
if test -z "$SED"; then
15777
{ { echo "$as_me:$LINENO: error: SED not set. Cannot continue without SED being set." >&5
15778
echo "$as_me: error: SED not set. Cannot continue without SED being set." >&2;}
15779
{ (exit 1); exit 1; }; }
15781
if test -z "$GREP"; then
15782
{ { echo "$as_me:$LINENO: error: GREP not set. Cannot continue without GREP being set." >&5
15783
echo "$as_me: error: GREP not set. Cannot continue without GREP being set." >&2;}
15784
{ (exit 1); exit 1; }; }
15788
cat >conftest.$ac_ext <<_ACEOF
15792
cat confdefs.h >>conftest.$ac_ext
15793
cat >>conftest.$ac_ext <<_ACEOF
15794
/* end confdefs.h. */
15797
CURL_DEF_TOKEN __unix__
15802
if { (ac_try="$ac_cpp conftest.$ac_ext"
15803
case "(($ac_try" in
15804
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15805
*) ac_try_echo=$ac_try;;
15807
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15808
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15810
grep -v '^ *+' conftest.er1 >conftest.err
15812
cat conftest.err >&5
15813
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15814
(exit $ac_status); } >/dev/null && {
15815
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15816
test ! -s conftest.err
15819
tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15820
"$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15821
"$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
15822
"$SED" 's/["][ ]*["]//g' 2>/dev/null`
15823
if test -z "$tmp_exp" || test "$tmp_exp" = ""; then
15828
echo "$as_me: failed program was:" >&5
15829
sed 's/^/| /' conftest.$ac_ext >&5
15834
rm -f conftest.err conftest.$ac_ext
15835
if test -z "$tmp_exp"; then
15836
curl_cv_have_def___unix__=no
15839
curl_cv_have_def___unix__=yes
15840
curl_cv_def___unix__=$tmp_exp
15844
if test "$curl_cv_have_def___unix__" = "yes"; then
15845
compiler_id="INTEL_UNIX_C"
15846
flags_dbg_all="-g -g0"
15848
flags_dbg_off="-g0"
15849
flags_opt_all="-O -O0 -O1 -O2 -O3 -Os"
15850
flags_opt_yes="-O2"
15851
flags_opt_off="-O0"
15852
if test "$curl_cv_have_def___i386__" = "yes" &&
15853
test "$compiler_num" -eq "910"; then
15854
INTEL_UNIX_C_OPT_SIGSEGV="yes"
15856
INTEL_UNIX_C_OPT_SIGSEGV="no"
15859
compiler_id="INTEL_WINDOWS_C"
15860
flags_dbg_all="/ZI /Zi /zI /zi /ZD /Zd /zD /zd /Z7 /z7 /Oy /Oy-"
15861
flags_dbg_all="$flags_dbg_all /debug"
15862
flags_dbg_all="$flags_dbg_all /debug:none"
15863
flags_dbg_all="$flags_dbg_all /debug:minimal"
15864
flags_dbg_all="$flags_dbg_all /debug:partial"
15865
flags_dbg_all="$flags_dbg_all /debug:full"
15866
flags_dbg_all="$flags_dbg_all /debug:semantic_stepping"
15867
flags_dbg_all="$flags_dbg_all /debug:extended"
15868
flags_dbg_yes="/Zi /Oy-"
15869
flags_dbg_off="/debug:none /Oy-"
15870
flags_opt_all="/O /O0 /O1 /O2 /O3 /Od /Og /Og- /Oi /Oi-"
15871
flags_opt_yes="/O2"
15872
flags_opt_off="/Od"
15875
{ echo "$as_me:$LINENO: result: no" >&5
15876
echo "${ECHO_T}no" >&6; }
15880
{ echo "$as_me:$LINENO: checking if compiler is GNU C" >&5
15881
echo $ECHO_N "checking if compiler is GNU C... $ECHO_C" >&6; }
15883
if test -z "$SED"; then
15884
{ { echo "$as_me:$LINENO: error: SED not set. Cannot continue without SED being set." >&5
15885
echo "$as_me: error: SED not set. Cannot continue without SED being set." >&2;}
15886
{ (exit 1); exit 1; }; }
15888
if test -z "$GREP"; then
15889
{ { echo "$as_me:$LINENO: error: GREP not set. Cannot continue without GREP being set." >&5
15890
echo "$as_me: error: GREP not set. Cannot continue without GREP being set." >&2;}
15891
{ (exit 1); exit 1; }; }
15895
cat >conftest.$ac_ext <<_ACEOF
15899
cat confdefs.h >>conftest.$ac_ext
15900
cat >>conftest.$ac_ext <<_ACEOF
15901
/* end confdefs.h. */
15904
CURL_DEF_TOKEN __GNUC__
15909
if { (ac_try="$ac_cpp conftest.$ac_ext"
15910
case "(($ac_try" in
15911
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15912
*) ac_try_echo=$ac_try;;
15914
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15915
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15917
grep -v '^ *+' conftest.er1 >conftest.err
15919
cat conftest.err >&5
15920
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15921
(exit $ac_status); } >/dev/null && {
15922
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15923
test ! -s conftest.err
15926
tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15927
"$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15928
"$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
15929
"$SED" 's/["][ ]*["]//g' 2>/dev/null`
15930
if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
15935
echo "$as_me: failed program was:" >&5
15936
sed 's/^/| /' conftest.$ac_ext >&5
15941
rm -f conftest.err conftest.$ac_ext
15942
if test -z "$tmp_exp"; then
15943
curl_cv_have_def___GNUC__=no
15946
curl_cv_have_def___GNUC__=yes
15947
curl_cv_def___GNUC__=$tmp_exp
15951
if test "$curl_cv_have_def___GNUC__" = "yes" &&
15952
test "$compiler_id" = "unknown"; then
15953
{ echo "$as_me:$LINENO: result: yes" >&5
15954
echo "${ECHO_T}yes" >&6; }
15955
compiler_id="GNU_C"
15956
gccver=`$CC -dumpversion`
15957
gccvhi=`echo $gccver | cut -d . -f1`
15958
gccvlo=`echo $gccver | cut -d . -f2`
15959
compiler_num=`(expr $gccvhi "*" 100 + $gccvlo) 2>/dev/null`
15960
flags_dbg_all="-g -g0 -g1 -g2 -g3"
15961
flags_dbg_all="$flags_dbg_all -ggdb"
15962
flags_dbg_all="$flags_dbg_all -gstabs"
15963
flags_dbg_all="$flags_dbg_all -gstabs+"
15964
flags_dbg_all="$flags_dbg_all -gcoff"
15965
flags_dbg_all="$flags_dbg_all -gxcoff"
15966
flags_dbg_all="$flags_dbg_all -gdwarf-2"
15967
flags_dbg_all="$flags_dbg_all -gvms"
15969
flags_dbg_off="-g0"
15970
flags_opt_all="-O -O0 -O1 -O2 -O3 -Os"
15971
flags_opt_yes="-O2"
15972
flags_opt_off="-O0"
15974
{ echo "$as_me:$LINENO: result: no" >&5
15975
echo "${ECHO_T}no" >&6; }
15979
{ echo "$as_me:$LINENO: checking if compiler is LCC" >&5
15980
echo $ECHO_N "checking if compiler is LCC... $ECHO_C" >&6; }
15982
if test -z "$SED"; then
15983
{ { echo "$as_me:$LINENO: error: SED not set. Cannot continue without SED being set." >&5
15984
echo "$as_me: error: SED not set. Cannot continue without SED being set." >&2;}
15985
{ (exit 1); exit 1; }; }
15987
if test -z "$GREP"; then
15988
{ { echo "$as_me:$LINENO: error: GREP not set. Cannot continue without GREP being set." >&5
15989
echo "$as_me: error: GREP not set. Cannot continue without GREP being set." >&2;}
15990
{ (exit 1); exit 1; }; }
15994
cat >conftest.$ac_ext <<_ACEOF
15998
cat confdefs.h >>conftest.$ac_ext
15999
cat >>conftest.$ac_ext <<_ACEOF
16000
/* end confdefs.h. */
16003
CURL_DEF_TOKEN __LCC__
16008
if { (ac_try="$ac_cpp conftest.$ac_ext"
16009
case "(($ac_try" in
16010
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16011
*) ac_try_echo=$ac_try;;
16013
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16014
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16016
grep -v '^ *+' conftest.er1 >conftest.err
16018
cat conftest.err >&5
16019
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16020
(exit $ac_status); } >/dev/null && {
16021
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16022
test ! -s conftest.err
16025
tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16026
"$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16027
"$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
16028
"$SED" 's/["][ ]*["]//g' 2>/dev/null`
16029
if test -z "$tmp_exp" || test "$tmp_exp" = "__LCC__"; then
16034
echo "$as_me: failed program was:" >&5
16035
sed 's/^/| /' conftest.$ac_ext >&5
16040
rm -f conftest.err conftest.$ac_ext
16041
if test -z "$tmp_exp"; then
16042
curl_cv_have_def___LCC__=no
16045
curl_cv_have_def___LCC__=yes
16046
curl_cv_def___LCC__=$tmp_exp
16050
if test "$curl_cv_have_def___LCC__" = "yes"; then
16051
{ echo "$as_me:$LINENO: result: yes" >&5
16052
echo "${ECHO_T}yes" >&6; }
16061
{ echo "$as_me:$LINENO: result: no" >&5
16062
echo "${ECHO_T}no" >&6; }
16066
{ echo "$as_me:$LINENO: checking if compiler is SGI MIPSpro C" >&5
16067
echo $ECHO_N "checking if compiler is SGI MIPSpro C... $ECHO_C" >&6; }
16069
if test -z "$SED"; then
16070
{ { echo "$as_me:$LINENO: error: SED not set. Cannot continue without SED being set." >&5
16071
echo "$as_me: error: SED not set. Cannot continue without SED being set." >&2;}
16072
{ (exit 1); exit 1; }; }
16074
if test -z "$GREP"; then
16075
{ { echo "$as_me:$LINENO: error: GREP not set. Cannot continue without GREP being set." >&5
16076
echo "$as_me: error: GREP not set. Cannot continue without GREP being set." >&2;}
16077
{ (exit 1); exit 1; }; }
16081
cat >conftest.$ac_ext <<_ACEOF
16085
cat confdefs.h >>conftest.$ac_ext
16086
cat >>conftest.$ac_ext <<_ACEOF
16087
/* end confdefs.h. */
16090
CURL_DEF_TOKEN __GNUC__
16095
if { (ac_try="$ac_cpp conftest.$ac_ext"
16096
case "(($ac_try" in
16097
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16098
*) ac_try_echo=$ac_try;;
16100
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16101
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16103
grep -v '^ *+' conftest.er1 >conftest.err
16105
cat conftest.err >&5
16106
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16107
(exit $ac_status); } >/dev/null && {
16108
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16109
test ! -s conftest.err
16112
tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16113
"$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16114
"$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
16115
"$SED" 's/["][ ]*["]//g' 2>/dev/null`
16116
if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
16121
echo "$as_me: failed program was:" >&5
16122
sed 's/^/| /' conftest.$ac_ext >&5
16127
rm -f conftest.err conftest.$ac_ext
16128
if test -z "$tmp_exp"; then
16129
curl_cv_have_def___GNUC__=no
16132
curl_cv_have_def___GNUC__=yes
16133
curl_cv_def___GNUC__=$tmp_exp
16138
if test -z "$SED"; then
16139
{ { echo "$as_me:$LINENO: error: SED not set. Cannot continue without SED being set." >&5
16140
echo "$as_me: error: SED not set. Cannot continue without SED being set." >&2;}
16141
{ (exit 1); exit 1; }; }
16143
if test -z "$GREP"; then
16144
{ { echo "$as_me:$LINENO: error: GREP not set. Cannot continue without GREP being set." >&5
16145
echo "$as_me: error: GREP not set. Cannot continue without GREP being set." >&2;}
16146
{ (exit 1); exit 1; }; }
16150
cat >conftest.$ac_ext <<_ACEOF
16154
cat confdefs.h >>conftest.$ac_ext
16155
cat >>conftest.$ac_ext <<_ACEOF
16156
/* end confdefs.h. */
16158
#ifdef _COMPILER_VERSION
16159
CURL_DEF_TOKEN _COMPILER_VERSION
16164
if { (ac_try="$ac_cpp conftest.$ac_ext"
16165
case "(($ac_try" in
16166
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16167
*) ac_try_echo=$ac_try;;
16169
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16170
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16172
grep -v '^ *+' conftest.er1 >conftest.err
16174
cat conftest.err >&5
16175
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16176
(exit $ac_status); } >/dev/null && {
16177
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16178
test ! -s conftest.err
16181
tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16182
"$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16183
"$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
16184
"$SED" 's/["][ ]*["]//g' 2>/dev/null`
16185
if test -z "$tmp_exp" || test "$tmp_exp" = "_COMPILER_VERSION"; then
16190
echo "$as_me: failed program was:" >&5
16191
sed 's/^/| /' conftest.$ac_ext >&5
16196
rm -f conftest.err conftest.$ac_ext
16197
if test -z "$tmp_exp"; then
16198
curl_cv_have_def__COMPILER_VERSION=no
16201
curl_cv_have_def__COMPILER_VERSION=yes
16202
curl_cv_def__COMPILER_VERSION=$tmp_exp
16207
if test -z "$SED"; then
16208
{ { echo "$as_me:$LINENO: error: SED not set. Cannot continue without SED being set." >&5
16209
echo "$as_me: error: SED not set. Cannot continue without SED being set." >&2;}
16210
{ (exit 1); exit 1; }; }
16212
if test -z "$GREP"; then
16213
{ { echo "$as_me:$LINENO: error: GREP not set. Cannot continue without GREP being set." >&5
16214
echo "$as_me: error: GREP not set. Cannot continue without GREP being set." >&2;}
16215
{ (exit 1); exit 1; }; }
16219
cat >conftest.$ac_ext <<_ACEOF
16223
cat confdefs.h >>conftest.$ac_ext
16224
cat >>conftest.$ac_ext <<_ACEOF
16225
/* end confdefs.h. */
16227
#ifdef _SGI_COMPILER_VERSION
16228
CURL_DEF_TOKEN _SGI_COMPILER_VERSION
16233
if { (ac_try="$ac_cpp conftest.$ac_ext"
16234
case "(($ac_try" in
16235
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16236
*) ac_try_echo=$ac_try;;
16238
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16239
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16241
grep -v '^ *+' conftest.er1 >conftest.err
16243
cat conftest.err >&5
16244
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16245
(exit $ac_status); } >/dev/null && {
16246
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16247
test ! -s conftest.err
16250
tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16251
"$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16252
"$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
16253
"$SED" 's/["][ ]*["]//g' 2>/dev/null`
16254
if test -z "$tmp_exp" || test "$tmp_exp" = "_SGI_COMPILER_VERSION"; then
16259
echo "$as_me: failed program was:" >&5
16260
sed 's/^/| /' conftest.$ac_ext >&5
16265
rm -f conftest.err conftest.$ac_ext
16266
if test -z "$tmp_exp"; then
16267
curl_cv_have_def__SGI_COMPILER_VERSION=no
16270
curl_cv_have_def__SGI_COMPILER_VERSION=yes
16271
curl_cv_def__SGI_COMPILER_VERSION=$tmp_exp
16275
if test "$curl_cv_have_def___GNUC__" = "no" &&
16276
(test "$curl_cv_have_def__SGI_COMPILER_VERSION" = "yes" ||
16277
test "$curl_cv_have_def__COMPILER_VERSION" = "yes"); then
16278
{ echo "$as_me:$LINENO: result: yes" >&5
16279
echo "${ECHO_T}yes" >&6; }
16280
compiler_id="SGI_MIPSPRO_C"
16281
flags_dbg_all="-g -g0 -g1 -g2 -g3"
16283
flags_dbg_off="-g0"
16284
flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
16285
flags_opt_yes="-O2"
16286
flags_opt_off="-O0"
16288
{ echo "$as_me:$LINENO: result: no" >&5
16289
echo "${ECHO_T}no" >&6; }
16293
{ echo "$as_me:$LINENO: checking if compiler is SGI MIPS C" >&5
16294
echo $ECHO_N "checking if compiler is SGI MIPS C... $ECHO_C" >&6; }
16296
if test -z "$SED"; then
16297
{ { echo "$as_me:$LINENO: error: SED not set. Cannot continue without SED being set." >&5
16298
echo "$as_me: error: SED not set. Cannot continue without SED being set." >&2;}
16299
{ (exit 1); exit 1; }; }
16301
if test -z "$GREP"; then
16302
{ { echo "$as_me:$LINENO: error: GREP not set. Cannot continue without GREP being set." >&5
16303
echo "$as_me: error: GREP not set. Cannot continue without GREP being set." >&2;}
16304
{ (exit 1); exit 1; }; }
16308
cat >conftest.$ac_ext <<_ACEOF
16312
cat confdefs.h >>conftest.$ac_ext
16313
cat >>conftest.$ac_ext <<_ACEOF
16314
/* end confdefs.h. */
16317
CURL_DEF_TOKEN __GNUC__
16322
if { (ac_try="$ac_cpp conftest.$ac_ext"
16323
case "(($ac_try" in
16324
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16325
*) ac_try_echo=$ac_try;;
16327
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16328
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16330
grep -v '^ *+' conftest.er1 >conftest.err
16332
cat conftest.err >&5
16333
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16334
(exit $ac_status); } >/dev/null && {
16335
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16336
test ! -s conftest.err
16339
tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16340
"$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16341
"$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
16342
"$SED" 's/["][ ]*["]//g' 2>/dev/null`
16343
if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
16348
echo "$as_me: failed program was:" >&5
16349
sed 's/^/| /' conftest.$ac_ext >&5
16354
rm -f conftest.err conftest.$ac_ext
16355
if test -z "$tmp_exp"; then
16356
curl_cv_have_def___GNUC__=no
16359
curl_cv_have_def___GNUC__=yes
16360
curl_cv_def___GNUC__=$tmp_exp
16365
if test -z "$SED"; then
16366
{ { echo "$as_me:$LINENO: error: SED not set. Cannot continue without SED being set." >&5
16367
echo "$as_me: error: SED not set. Cannot continue without SED being set." >&2;}
16368
{ (exit 1); exit 1; }; }
16370
if test -z "$GREP"; then
16371
{ { echo "$as_me:$LINENO: error: GREP not set. Cannot continue without GREP being set." >&5
16372
echo "$as_me: error: GREP not set. Cannot continue without GREP being set." >&2;}
16373
{ (exit 1); exit 1; }; }
16377
cat >conftest.$ac_ext <<_ACEOF
16381
cat confdefs.h >>conftest.$ac_ext
16382
cat >>conftest.$ac_ext <<_ACEOF
16383
/* end confdefs.h. */
16386
CURL_DEF_TOKEN __sgi
16391
if { (ac_try="$ac_cpp conftest.$ac_ext"
16392
case "(($ac_try" in
16393
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16394
*) ac_try_echo=$ac_try;;
16396
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16397
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16399
grep -v '^ *+' conftest.er1 >conftest.err
16401
cat conftest.err >&5
16402
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16403
(exit $ac_status); } >/dev/null && {
16404
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16405
test ! -s conftest.err
16408
tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16409
"$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16410
"$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
16411
"$SED" 's/["][ ]*["]//g' 2>/dev/null`
16412
if test -z "$tmp_exp" || test "$tmp_exp" = "__sgi"; then
16417
echo "$as_me: failed program was:" >&5
16418
sed 's/^/| /' conftest.$ac_ext >&5
16423
rm -f conftest.err conftest.$ac_ext
16424
if test -z "$tmp_exp"; then
16425
curl_cv_have_def___sgi=no
16428
curl_cv_have_def___sgi=yes
16429
curl_cv_def___sgi=$tmp_exp
16433
if test "$curl_cv_have_def___GNUC__" = "no" &&
16434
test "$curl_cv_have_def___sgi" = "yes" &&
16435
test "$compiler_id" = "unknown"; then
16436
{ echo "$as_me:$LINENO: result: yes" >&5
16437
echo "${ECHO_T}yes" >&6; }
16438
compiler_id="SGI_MIPS_C"
16439
flags_dbg_all="-g -g0 -g1 -g2 -g3"
16441
flags_dbg_off="-g0"
16442
flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
16443
flags_opt_yes="-O2"
16444
flags_opt_off="-O0"
16446
{ echo "$as_me:$LINENO: result: no" >&5
16447
echo "${ECHO_T}no" >&6; }
16451
{ echo "$as_me:$LINENO: checking if compiler is SunPro C" >&5
16452
echo $ECHO_N "checking if compiler is SunPro C... $ECHO_C" >&6; }
16454
if test -z "$SED"; then
16455
{ { echo "$as_me:$LINENO: error: SED not set. Cannot continue without SED being set." >&5
16456
echo "$as_me: error: SED not set. Cannot continue without SED being set." >&2;}
16457
{ (exit 1); exit 1; }; }
16459
if test -z "$GREP"; then
16460
{ { echo "$as_me:$LINENO: error: GREP not set. Cannot continue without GREP being set." >&5
16461
echo "$as_me: error: GREP not set. Cannot continue without GREP being set." >&2;}
16462
{ (exit 1); exit 1; }; }
16466
cat >conftest.$ac_ext <<_ACEOF
16470
cat confdefs.h >>conftest.$ac_ext
16471
cat >>conftest.$ac_ext <<_ACEOF
16472
/* end confdefs.h. */
16475
CURL_DEF_TOKEN __SUNPRO_C
16480
if { (ac_try="$ac_cpp conftest.$ac_ext"
16481
case "(($ac_try" in
16482
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16483
*) ac_try_echo=$ac_try;;
16485
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16486
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16488
grep -v '^ *+' conftest.er1 >conftest.err
16490
cat conftest.err >&5
16491
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16492
(exit $ac_status); } >/dev/null && {
16493
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16494
test ! -s conftest.err
16497
tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16498
"$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16499
"$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
16500
"$SED" 's/["][ ]*["]//g' 2>/dev/null`
16501
if test -z "$tmp_exp" || test "$tmp_exp" = "__SUNPRO_C"; then
16506
echo "$as_me: failed program was:" >&5
16507
sed 's/^/| /' conftest.$ac_ext >&5
16512
rm -f conftest.err conftest.$ac_ext
16513
if test -z "$tmp_exp"; then
16514
curl_cv_have_def___SUNPRO_C=no
16517
curl_cv_have_def___SUNPRO_C=yes
16518
curl_cv_def___SUNPRO_C=$tmp_exp
16522
if test "$curl_cv_have_def___SUNPRO_C" = "yes"; then
16523
{ echo "$as_me:$LINENO: result: yes" >&5
16524
echo "${ECHO_T}yes" >&6; }
16525
compiler_id="SUNPRO_C"
16526
flags_dbg_all="-g -s"
16529
flags_opt_all="-O -xO -xO1 -xO2 -xO3 -xO4 -xO5"
16530
flags_opt_yes="-xO2"
16533
{ echo "$as_me:$LINENO: result: no" >&5
16534
echo "${ECHO_T}no" >&6; }
16538
{ echo "$as_me:$LINENO: checking if compiler is Tiny C" >&5
16539
echo $ECHO_N "checking if compiler is Tiny C... $ECHO_C" >&6; }
16541
if test -z "$SED"; then
16542
{ { echo "$as_me:$LINENO: error: SED not set. Cannot continue without SED being set." >&5
16543
echo "$as_me: error: SED not set. Cannot continue without SED being set." >&2;}
16544
{ (exit 1); exit 1; }; }
16546
if test -z "$GREP"; then
16547
{ { echo "$as_me:$LINENO: error: GREP not set. Cannot continue without GREP being set." >&5
16548
echo "$as_me: error: GREP not set. Cannot continue without GREP being set." >&2;}
16549
{ (exit 1); exit 1; }; }
16553
cat >conftest.$ac_ext <<_ACEOF
16557
cat confdefs.h >>conftest.$ac_ext
16558
cat >>conftest.$ac_ext <<_ACEOF
16559
/* end confdefs.h. */
16562
CURL_DEF_TOKEN __TINYC__
16567
if { (ac_try="$ac_cpp conftest.$ac_ext"
16568
case "(($ac_try" in
16569
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16570
*) ac_try_echo=$ac_try;;
16572
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16573
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16575
grep -v '^ *+' conftest.er1 >conftest.err
16577
cat conftest.err >&5
16578
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16579
(exit $ac_status); } >/dev/null && {
16580
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16581
test ! -s conftest.err
16584
tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16585
"$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16586
"$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
16587
"$SED" 's/["][ ]*["]//g' 2>/dev/null`
16588
if test -z "$tmp_exp" || test "$tmp_exp" = "__TINYC__"; then
16593
echo "$as_me: failed program was:" >&5
16594
sed 's/^/| /' conftest.$ac_ext >&5
16599
rm -f conftest.err conftest.$ac_ext
16600
if test -z "$tmp_exp"; then
16601
curl_cv_have_def___TINYC__=no
16604
curl_cv_have_def___TINYC__=yes
16605
curl_cv_def___TINYC__=$tmp_exp
16609
if test "$curl_cv_have_def___TINYC__" = "yes"; then
16610
{ echo "$as_me:$LINENO: result: yes" >&5
16611
echo "${ECHO_T}yes" >&6; }
16612
compiler_id="TINY_C"
16613
flags_dbg_all="-g -b"
16620
{ echo "$as_me:$LINENO: result: no" >&5
16621
echo "${ECHO_T}no" >&6; }
16625
{ echo "$as_me:$LINENO: checking if compiler is Watcom C" >&5
16626
echo $ECHO_N "checking if compiler is Watcom C... $ECHO_C" >&6; }
16628
if test -z "$SED"; then
16629
{ { echo "$as_me:$LINENO: error: SED not set. Cannot continue without SED being set." >&5
16630
echo "$as_me: error: SED not set. Cannot continue without SED being set." >&2;}
16631
{ (exit 1); exit 1; }; }
16633
if test -z "$GREP"; then
16634
{ { echo "$as_me:$LINENO: error: GREP not set. Cannot continue without GREP being set." >&5
16635
echo "$as_me: error: GREP not set. Cannot continue without GREP being set." >&2;}
16636
{ (exit 1); exit 1; }; }
16640
cat >conftest.$ac_ext <<_ACEOF
16644
cat confdefs.h >>conftest.$ac_ext
16645
cat >>conftest.$ac_ext <<_ACEOF
16646
/* end confdefs.h. */
16649
CURL_DEF_TOKEN __WATCOMC__
16654
if { (ac_try="$ac_cpp conftest.$ac_ext"
16655
case "(($ac_try" in
16656
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16657
*) ac_try_echo=$ac_try;;
16659
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16660
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16662
grep -v '^ *+' conftest.er1 >conftest.err
16664
cat conftest.err >&5
16665
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16666
(exit $ac_status); } >/dev/null && {
16667
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16668
test ! -s conftest.err
16671
tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16672
"$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16673
"$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
16674
"$SED" 's/["][ ]*["]//g' 2>/dev/null`
16675
if test -z "$tmp_exp" || test "$tmp_exp" = "__WATCOMC__"; then
16680
echo "$as_me: failed program was:" >&5
16681
sed 's/^/| /' conftest.$ac_ext >&5
16686
rm -f conftest.err conftest.$ac_ext
16687
if test -z "$tmp_exp"; then
16688
curl_cv_have_def___WATCOMC__=no
16691
curl_cv_have_def___WATCOMC__=yes
16692
curl_cv_def___WATCOMC__=$tmp_exp
16696
if test "$curl_cv_have_def___WATCOMC__" = "yes"; then
16697
{ echo "$as_me:$LINENO: result: yes" >&5
16698
echo "${ECHO_T}yes" >&6; }
16700
if test -z "$SED"; then
16701
{ { echo "$as_me:$LINENO: error: SED not set. Cannot continue without SED being set." >&5
16702
echo "$as_me: error: SED not set. Cannot continue without SED being set." >&2;}
16703
{ (exit 1); exit 1; }; }
16705
if test -z "$GREP"; then
16706
{ { echo "$as_me:$LINENO: error: GREP not set. Cannot continue without GREP being set." >&5
16707
echo "$as_me: error: GREP not set. Cannot continue without GREP being set." >&2;}
16708
{ (exit 1); exit 1; }; }
16712
cat >conftest.$ac_ext <<_ACEOF
16716
cat confdefs.h >>conftest.$ac_ext
16717
cat >>conftest.$ac_ext <<_ACEOF
16718
/* end confdefs.h. */
16721
CURL_DEF_TOKEN __UNIX__
16726
if { (ac_try="$ac_cpp conftest.$ac_ext"
16727
case "(($ac_try" in
16728
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16729
*) ac_try_echo=$ac_try;;
16731
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16732
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16734
grep -v '^ *+' conftest.er1 >conftest.err
16736
cat conftest.err >&5
16737
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16738
(exit $ac_status); } >/dev/null && {
16739
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16740
test ! -s conftest.err
16743
tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16744
"$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16745
"$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
16746
"$SED" 's/["][ ]*["]//g' 2>/dev/null`
16747
if test -z "$tmp_exp" || test "$tmp_exp" = "__UNIX__"; then
16752
echo "$as_me: failed program was:" >&5
16753
sed 's/^/| /' conftest.$ac_ext >&5
16758
rm -f conftest.err conftest.$ac_ext
16759
if test -z "$tmp_exp"; then
16760
curl_cv_have_def___UNIX__=no
16763
curl_cv_have_def___UNIX__=yes
16764
curl_cv_def___UNIX__=$tmp_exp
16768
if test "$curl_cv_have_def___UNIX__" = "yes"; then
16769
compiler_id="WATCOM_UNIX_C"
16770
flags_dbg_all="-g1 -g1+ -g2 -g3"
16771
flags_dbg_yes="-g2"
16773
flags_opt_all="-O0 -O1 -O2 -O3"
16774
flags_opt_yes="-O2"
16775
flags_opt_off="-O0"
16777
compiler_id="WATCOM_WINDOWS_C"
16786
{ echo "$as_me:$LINENO: result: no" >&5
16787
echo "${ECHO_T}no" >&6; }
16791
if test "$compiler_id" = "unknown"; then
16794
*** Warning: This configure script does not have information about the
16795
*** compiler you are using, relative to the flags required to enable or
16796
*** disable generation of debug info, optimization options or warnings.
16798
*** Whatever settings are present in CFLAGS will be used for this run.
16800
*** If you wish to help the cURL project to better support your compiler
16801
*** you can report this and the required info on the libcurl development
16802
*** mailing list: http://cool.haxx.se/mailman/listinfo/curl-library/
16809
if test "$compiler_id" != "unknown"; then
16811
if test "$compiler_id" = "GNU_C"; then
16813
tmp_has_include="no"
16814
tmp_chg_FLAGS="$CFLAGS"
16815
for word1 in $tmp_chg_FLAGS; do
16818
tmp_has_include="yes"
16822
if test "$tmp_has_include" = "yes"; then
16823
tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
16824
tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
16825
CFLAGS="$tmp_chg_FLAGS"
16828
tmp_has_include="no"
16829
tmp_chg_FLAGS="$CPPFLAGS"
16830
for word1 in $tmp_chg_FLAGS; do
16833
tmp_has_include="yes"
16837
if test "$tmp_has_include" = "yes"; then
16838
tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
16839
tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
16840
CPPFLAGS="$tmp_chg_FLAGS"
16846
tmp_save_CPPFLAGS="$CPPFLAGS"
16847
tmp_save_CFLAGS="$CFLAGS"
16851
case "$compiler_id" in
16855
tmp_CFLAGS="$tmp_CFLAGS -std1"
16856
tmp_CFLAGS="$tmp_CFLAGS -noansi_alias"
16857
tmp_CFLAGS="$tmp_CFLAGS -warnprotos"
16858
tmp_CFLAGS="$tmp_CFLAGS -msg_fatal toofewargs,toomanyargs"
16863
tmp_CFLAGS="$tmp_CFLAGS"
16868
tmp_CFLAGS="$tmp_CFLAGS -z"
16869
tmp_CFLAGS="$tmp_CFLAGS +W 4227,4255"
16874
tmp_CFLAGS="$tmp_CFLAGS -qthreaded"
16875
tmp_CFLAGS="$tmp_CFLAGS -qnoansialias"
16876
tmp_CFLAGS="$tmp_CFLAGS -qhalt=e"
16881
tmp_CFLAGS="$tmp_CFLAGS -std=gnu89"
16882
tmp_CPPFLAGS="$tmp_CPPFLAGS -we 140,147,165,266"
16883
tmp_CPPFLAGS="$tmp_CPPFLAGS -wd 279,981,1469"
16888
tmp_CFLAGS="$tmp_CFLAGS"
16893
tmp_CFLAGS="$tmp_CFLAGS -n"
16898
tmp_CFLAGS="$tmp_CFLAGS"
16903
tmp_CFLAGS="$tmp_CFLAGS"
16908
tmp_CFLAGS="$tmp_CFLAGS"
16913
tmp_CFLAGS="$tmp_CFLAGS"
16918
tmp_CFLAGS="$tmp_CFLAGS"
16923
tmp_CFLAGS="$tmp_CFLAGS"
16928
squeeze tmp_CPPFLAGS
16931
if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
16932
{ echo "$as_me:$LINENO: checking if compiler accepts some basic options" >&5
16933
echo $ECHO_N "checking if compiler accepts some basic options... $ECHO_C" >&6; }
16934
CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
16935
CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
16939
tmp_compiler_works="unknown"
16940
cat >conftest.$ac_ext <<_ACEOF
16944
cat confdefs.h >>conftest.$ac_ext
16945
cat >>conftest.$ac_ext <<_ACEOF
16946
/* end confdefs.h. */
16960
rm -f conftest.$ac_objext
16961
if { (ac_try="$ac_compile"
16962
case "(($ac_try" in
16963
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16964
*) ac_try_echo=$ac_try;;
16966
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16967
(eval "$ac_compile") 2>conftest.er1
16969
grep -v '^ *+' conftest.er1 >conftest.err
16971
cat conftest.err >&5
16972
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16973
(exit $ac_status); } && {
16974
test -z "$ac_c_werror_flag" ||
16975
test ! -s conftest.err
16976
} && test -s conftest.$ac_objext; then
16978
tmp_compiler_works="yes"
16981
echo "$as_me: failed program was:" >&5
16982
sed 's/^/| /' conftest.$ac_ext >&5
16985
tmp_compiler_works="no"
16987
sed 's/^/cc-fail: /' conftest.err >&6
16992
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16993
if test "$tmp_compiler_works" = "yes"; then
16994
cat >conftest.$ac_ext <<_ACEOF
16998
cat confdefs.h >>conftest.$ac_ext
16999
cat >>conftest.$ac_ext <<_ACEOF
17000
/* end confdefs.h. */
17014
rm -f conftest.$ac_objext conftest$ac_exeext
17015
if { (ac_try="$ac_link"
17016
case "(($ac_try" in
17017
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17018
*) ac_try_echo=$ac_try;;
17020
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17021
(eval "$ac_link") 2>conftest.er1
17023
grep -v '^ *+' conftest.er1 >conftest.err
17025
cat conftest.err >&5
17026
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17027
(exit $ac_status); } && {
17028
test -z "$ac_c_werror_flag" ||
17029
test ! -s conftest.err
17030
} && test -s conftest$ac_exeext &&
17031
$as_test_x conftest$ac_exeext; then
17033
tmp_compiler_works="yes"
17036
echo "$as_me: failed program was:" >&5
17037
sed 's/^/| /' conftest.$ac_ext >&5
17040
tmp_compiler_works="no"
17042
sed 's/^/link-fail: /' conftest.err >&6
17047
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17048
conftest$ac_exeext conftest.$ac_ext
17050
if test "x$cross_compiling" != "xyes" &&
17051
test "$tmp_compiler_works" = "yes"; then
17052
if test "$cross_compiling" = yes; then
17053
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17054
See \`config.log' for more details." >&5
17055
echo "$as_me: error: cannot run test program while cross compiling
17056
See \`config.log' for more details." >&2;}
17057
{ (exit 1); exit 1; }; }
17059
cat >conftest.$ac_ext <<_ACEOF
17063
cat confdefs.h >>conftest.$ac_ext
17064
cat >>conftest.$ac_ext <<_ACEOF
17065
/* end confdefs.h. */
17068
# include <stdlib.h>
17082
rm -f conftest$ac_exeext
17083
if { (ac_try="$ac_link"
17084
case "(($ac_try" in
17085
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17086
*) ac_try_echo=$ac_try;;
17088
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17089
(eval "$ac_link") 2>&5
17091
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17092
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17093
{ (case "(($ac_try" in
17094
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17095
*) ac_try_echo=$ac_try;;
17097
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17098
(eval "$ac_try") 2>&5
17100
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17101
(exit $ac_status); }; }; then
17103
tmp_compiler_works="yes"
17106
echo "$as_me: program exited with status $ac_status" >&5
17107
echo "$as_me: failed program was:" >&5
17108
sed 's/^/| /' conftest.$ac_ext >&5
17110
( exit $ac_status )
17112
tmp_compiler_works="no"
17114
echo "run-fail: test program exited with status $ac_status" >&6
17118
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17123
if test "$tmp_compiler_works" = "yes"; then
17125
{ echo "$as_me:$LINENO: result: yes" >&5
17126
echo "${ECHO_T}yes" >&6; }
17127
{ echo "$as_me:$LINENO: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
17128
echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
17132
{ echo "$as_me:$LINENO: result: no" >&5
17133
echo "${ECHO_T}no" >&6; }
17134
{ echo "$as_me:$LINENO: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
17135
echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
17136
CPPFLAGS="$tmp_save_CPPFLAGS"
17137
CFLAGS="$tmp_save_CFLAGS"
17147
if test "$compiler_id" != "unknown"; then
17149
tmp_save_CFLAGS="$CFLAGS"
17150
tmp_save_CPPFLAGS="$CPPFLAGS"
17153
tmp_CFLAGS="$CFLAGS"
17154
tmp_CPPFLAGS="$CPPFLAGS"
17157
for word1 in $tmp_CFLAGS; do
17158
ac_var_strip_word="no"
17159
for word2 in $flags_dbg_all; do
17160
if test "$word1" = "$word2"; then
17161
ac_var_strip_word="yes"
17164
if test "$ac_var_strip_word" = "no"; then
17165
ac_var_stripped="$ac_var_stripped $word1"
17168
tmp_CFLAGS="$ac_var_stripped"
17173
for word1 in $tmp_CPPFLAGS; do
17174
ac_var_strip_word="no"
17175
for word2 in $flags_dbg_all; do
17176
if test "$word1" = "$word2"; then
17177
ac_var_strip_word="yes"
17180
if test "$ac_var_strip_word" = "no"; then
17181
ac_var_stripped="$ac_var_stripped $word1"
17184
tmp_CPPFLAGS="$ac_var_stripped"
17185
squeeze tmp_CPPFLAGS
17188
if test "$want_debug" = "yes"; then
17189
{ echo "$as_me:$LINENO: checking if compiler accepts debug enabling options" >&5
17190
echo $ECHO_N "checking if compiler accepts debug enabling options... $ECHO_C" >&6; }
17191
tmp_options="$flags_dbg_yes"
17193
if test "$want_debug" = "no"; then
17194
{ echo "$as_me:$LINENO: checking if compiler accepts debug disabling options" >&5
17195
echo $ECHO_N "checking if compiler accepts debug disabling options... $ECHO_C" >&6; }
17196
tmp_options="$flags_dbg_off"
17199
CPPFLAGS="$tmp_CPPFLAGS"
17200
CFLAGS="$tmp_CFLAGS $tmp_options"
17204
tmp_compiler_works="unknown"
17205
cat >conftest.$ac_ext <<_ACEOF
17209
cat confdefs.h >>conftest.$ac_ext
17210
cat >>conftest.$ac_ext <<_ACEOF
17211
/* end confdefs.h. */
17225
rm -f conftest.$ac_objext
17226
if { (ac_try="$ac_compile"
17227
case "(($ac_try" in
17228
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17229
*) ac_try_echo=$ac_try;;
17231
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17232
(eval "$ac_compile") 2>conftest.er1
17234
grep -v '^ *+' conftest.er1 >conftest.err
17236
cat conftest.err >&5
17237
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17238
(exit $ac_status); } && {
17239
test -z "$ac_c_werror_flag" ||
17240
test ! -s conftest.err
17241
} && test -s conftest.$ac_objext; then
17243
tmp_compiler_works="yes"
17246
echo "$as_me: failed program was:" >&5
17247
sed 's/^/| /' conftest.$ac_ext >&5
17250
tmp_compiler_works="no"
17252
sed 's/^/cc-fail: /' conftest.err >&6
17257
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17258
if test "$tmp_compiler_works" = "yes"; then
17259
cat >conftest.$ac_ext <<_ACEOF
17263
cat confdefs.h >>conftest.$ac_ext
17264
cat >>conftest.$ac_ext <<_ACEOF
17265
/* end confdefs.h. */
17279
rm -f conftest.$ac_objext conftest$ac_exeext
17280
if { (ac_try="$ac_link"
17281
case "(($ac_try" in
17282
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17283
*) ac_try_echo=$ac_try;;
17285
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17286
(eval "$ac_link") 2>conftest.er1
17288
grep -v '^ *+' conftest.er1 >conftest.err
17290
cat conftest.err >&5
17291
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17292
(exit $ac_status); } && {
17293
test -z "$ac_c_werror_flag" ||
17294
test ! -s conftest.err
17295
} && test -s conftest$ac_exeext &&
17296
$as_test_x conftest$ac_exeext; then
17298
tmp_compiler_works="yes"
17301
echo "$as_me: failed program was:" >&5
17302
sed 's/^/| /' conftest.$ac_ext >&5
17305
tmp_compiler_works="no"
17307
sed 's/^/link-fail: /' conftest.err >&6
17312
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17313
conftest$ac_exeext conftest.$ac_ext
17315
if test "x$cross_compiling" != "xyes" &&
17316
test "$tmp_compiler_works" = "yes"; then
17317
if test "$cross_compiling" = yes; then
17318
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17319
See \`config.log' for more details." >&5
17320
echo "$as_me: error: cannot run test program while cross compiling
17321
See \`config.log' for more details." >&2;}
17322
{ (exit 1); exit 1; }; }
17324
cat >conftest.$ac_ext <<_ACEOF
17328
cat confdefs.h >>conftest.$ac_ext
17329
cat >>conftest.$ac_ext <<_ACEOF
17330
/* end confdefs.h. */
17333
# include <stdlib.h>
17347
rm -f conftest$ac_exeext
17348
if { (ac_try="$ac_link"
17349
case "(($ac_try" in
17350
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17351
*) ac_try_echo=$ac_try;;
17353
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17354
(eval "$ac_link") 2>&5
17356
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17357
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17358
{ (case "(($ac_try" in
17359
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17360
*) ac_try_echo=$ac_try;;
17362
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17363
(eval "$ac_try") 2>&5
17365
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17366
(exit $ac_status); }; }; then
17368
tmp_compiler_works="yes"
17371
echo "$as_me: program exited with status $ac_status" >&5
17372
echo "$as_me: failed program was:" >&5
17373
sed 's/^/| /' conftest.$ac_ext >&5
17375
( exit $ac_status )
17377
tmp_compiler_works="no"
17379
echo "run-fail: test program exited with status $ac_status" >&6
17383
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17388
if test "$tmp_compiler_works" = "yes"; then
17390
{ echo "$as_me:$LINENO: result: yes" >&5
17391
echo "${ECHO_T}yes" >&6; }
17392
{ echo "$as_me:$LINENO: compiler options added: $tmp_options" >&5
17393
echo "$as_me: compiler options added: $tmp_options" >&6;}
17397
{ echo "$as_me:$LINENO: result: no" >&5
17398
echo "${ECHO_T}no" >&6; }
17399
{ echo "$as_me:$LINENO: WARNING: compiler options rejected: $tmp_options" >&5
17400
echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
17401
CPPFLAGS="$tmp_save_CPPFLAGS"
17402
CFLAGS="$tmp_save_CFLAGS"
17411
if test "$compiler_id" != "unknown"; then
17413
tmp_save_CFLAGS="$CFLAGS"
17414
tmp_save_CPPFLAGS="$CPPFLAGS"
17417
tmp_CFLAGS="$CFLAGS"
17418
tmp_CPPFLAGS="$CPPFLAGS"
17419
honor_optimize_option="yes"
17422
if test "$want_optimize" = "assume_no" ||
17423
test "$want_optimize" = "assume_yes"; then
17424
{ echo "$as_me:$LINENO: checking if compiler optimizer assumed setting might be used" >&5
17425
echo $ECHO_N "checking if compiler optimizer assumed setting might be used... $ECHO_C" >&6; }
17428
ac_var_match_word="no"
17429
for word1 in $tmp_CFLAGS; do
17430
for word2 in $flags_opt_all; do
17431
if test "$word1" = "$word2"; then
17432
ac_var_match_word="yes"
17437
if test "$ac_var_match_word" = "yes"; then
17439
honor_optimize_option="no"
17446
ac_var_match_word="no"
17447
for word1 in $tmp_CPPFLAGS; do
17448
for word2 in $flags_opt_all; do
17449
if test "$word1" = "$word2"; then
17450
ac_var_match_word="yes"
17455
if test "$ac_var_match_word" = "yes"; then
17457
honor_optimize_option="no"
17462
{ echo "$as_me:$LINENO: result: $honor_optimize_option" >&5
17463
echo "${ECHO_T}$honor_optimize_option" >&6; }
17464
if test "$honor_optimize_option" = "yes"; then
17465
if test "$want_optimize" = "assume_yes"; then
17466
want_optimize="yes"
17468
if test "$want_optimize" = "assume_no"; then
17474
if test "$honor_optimize_option" = "yes"; then
17477
for word1 in $tmp_CFLAGS; do
17478
ac_var_strip_word="no"
17479
for word2 in $flags_opt_all; do
17480
if test "$word1" = "$word2"; then
17481
ac_var_strip_word="yes"
17484
if test "$ac_var_strip_word" = "no"; then
17485
ac_var_stripped="$ac_var_stripped $word1"
17488
tmp_CFLAGS="$ac_var_stripped"
17493
for word1 in $tmp_CPPFLAGS; do
17494
ac_var_strip_word="no"
17495
for word2 in $flags_opt_all; do
17496
if test "$word1" = "$word2"; then
17497
ac_var_strip_word="yes"
17500
if test "$ac_var_strip_word" = "no"; then
17501
ac_var_stripped="$ac_var_stripped $word1"
17504
tmp_CPPFLAGS="$ac_var_stripped"
17505
squeeze tmp_CPPFLAGS
17507
if test "$want_optimize" = "yes"; then
17508
{ echo "$as_me:$LINENO: checking if compiler accepts optimizer enabling options" >&5
17509
echo $ECHO_N "checking if compiler accepts optimizer enabling options... $ECHO_C" >&6; }
17510
tmp_options="$flags_opt_yes"
17512
if test "$want_optimize" = "no"; then
17513
{ echo "$as_me:$LINENO: checking if compiler accepts optimizer disabling options" >&5
17514
echo $ECHO_N "checking if compiler accepts optimizer disabling options... $ECHO_C" >&6; }
17515
tmp_options="$flags_opt_off"
17517
CPPFLAGS="$tmp_CPPFLAGS"
17518
CFLAGS="$tmp_CFLAGS $tmp_options"
17522
tmp_compiler_works="unknown"
17523
cat >conftest.$ac_ext <<_ACEOF
17527
cat confdefs.h >>conftest.$ac_ext
17528
cat >>conftest.$ac_ext <<_ACEOF
17529
/* end confdefs.h. */
17543
rm -f conftest.$ac_objext
17544
if { (ac_try="$ac_compile"
17545
case "(($ac_try" in
17546
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17547
*) ac_try_echo=$ac_try;;
17549
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17550
(eval "$ac_compile") 2>conftest.er1
17552
grep -v '^ *+' conftest.er1 >conftest.err
17554
cat conftest.err >&5
17555
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17556
(exit $ac_status); } && {
17557
test -z "$ac_c_werror_flag" ||
17558
test ! -s conftest.err
17559
} && test -s conftest.$ac_objext; then
17561
tmp_compiler_works="yes"
17564
echo "$as_me: failed program was:" >&5
17565
sed 's/^/| /' conftest.$ac_ext >&5
17568
tmp_compiler_works="no"
17570
sed 's/^/cc-fail: /' conftest.err >&6
17575
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17576
if test "$tmp_compiler_works" = "yes"; then
17577
cat >conftest.$ac_ext <<_ACEOF
17581
cat confdefs.h >>conftest.$ac_ext
17582
cat >>conftest.$ac_ext <<_ACEOF
17583
/* end confdefs.h. */
17597
rm -f conftest.$ac_objext conftest$ac_exeext
17598
if { (ac_try="$ac_link"
17599
case "(($ac_try" in
17600
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17601
*) ac_try_echo=$ac_try;;
17603
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17604
(eval "$ac_link") 2>conftest.er1
17606
grep -v '^ *+' conftest.er1 >conftest.err
17608
cat conftest.err >&5
17609
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17610
(exit $ac_status); } && {
17611
test -z "$ac_c_werror_flag" ||
17612
test ! -s conftest.err
17613
} && test -s conftest$ac_exeext &&
17614
$as_test_x conftest$ac_exeext; then
17616
tmp_compiler_works="yes"
17619
echo "$as_me: failed program was:" >&5
17620
sed 's/^/| /' conftest.$ac_ext >&5
17623
tmp_compiler_works="no"
17625
sed 's/^/link-fail: /' conftest.err >&6
17630
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17631
conftest$ac_exeext conftest.$ac_ext
17633
if test "x$cross_compiling" != "xyes" &&
17634
test "$tmp_compiler_works" = "yes"; then
17635
if test "$cross_compiling" = yes; then
17636
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17637
See \`config.log' for more details." >&5
17638
echo "$as_me: error: cannot run test program while cross compiling
17639
See \`config.log' for more details." >&2;}
17640
{ (exit 1); exit 1; }; }
17642
cat >conftest.$ac_ext <<_ACEOF
17646
cat confdefs.h >>conftest.$ac_ext
17647
cat >>conftest.$ac_ext <<_ACEOF
17648
/* end confdefs.h. */
17651
# include <stdlib.h>
17665
rm -f conftest$ac_exeext
17666
if { (ac_try="$ac_link"
17667
case "(($ac_try" in
17668
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17669
*) ac_try_echo=$ac_try;;
17671
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17672
(eval "$ac_link") 2>&5
17674
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17675
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17676
{ (case "(($ac_try" in
17677
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17678
*) ac_try_echo=$ac_try;;
17680
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17681
(eval "$ac_try") 2>&5
17683
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17684
(exit $ac_status); }; }; then
17686
tmp_compiler_works="yes"
17689
echo "$as_me: program exited with status $ac_status" >&5
17690
echo "$as_me: failed program was:" >&5
17691
sed 's/^/| /' conftest.$ac_ext >&5
17693
( exit $ac_status )
17695
tmp_compiler_works="no"
17697
echo "run-fail: test program exited with status $ac_status" >&6
17701
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17706
if test "$tmp_compiler_works" = "yes"; then
17708
{ echo "$as_me:$LINENO: result: yes" >&5
17709
echo "${ECHO_T}yes" >&6; }
17710
{ echo "$as_me:$LINENO: compiler options added: $tmp_options" >&5
17711
echo "$as_me: compiler options added: $tmp_options" >&6;}
17715
{ echo "$as_me:$LINENO: result: no" >&5
17716
echo "${ECHO_T}no" >&6; }
17717
{ echo "$as_me:$LINENO: WARNING: compiler options rejected: $tmp_options" >&5
17718
echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
17719
CPPFLAGS="$tmp_save_CPPFLAGS"
17720
CFLAGS="$tmp_save_CFLAGS"
17730
if test "$compiler_id" != "unknown"; then
17732
tmp_save_CPPFLAGS="$CPPFLAGS"
17733
tmp_save_CFLAGS="$CFLAGS"
17737
case "$compiler_id" in
17741
if test "$want_warnings" = "yes"; then
17742
tmp_CFLAGS="$tmp_CFLAGS -msg_enable level3"
17748
if test "$want_warnings" = "yes"; then
17750
if test "x$cross_compiling" != "xyes" ||
17751
test "$compiler_num" -ge "300"; then
17752
tmp_CFLAGS="$tmp_CFLAGS -pedantic"
17755
tmp_CFLAGS="$tmp_CFLAGS -Wall -W"
17757
if test "$compiler_num" -ge "104"; then
17758
tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
17759
if test "x$cross_compiling" != "xyes" ||
17760
test "$compiler_num" -ge "300"; then
17761
tmp_CFLAGS="$tmp_CFLAGS -Wunused -Wshadow"
17765
if test "$compiler_num" -ge "207"; then
17766
tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs"
17767
if test "x$cross_compiling" != "xyes" ||
17768
test "$compiler_num" -ge "300"; then
17769
tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations"
17770
tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes"
17774
if test "$compiler_num" -ge "295"; then
17775
tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
17778
if test "$compiler_num" -ge "296"; then
17779
tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal"
17780
tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare"
17781
tmp_CFLAGS="$tmp_CFLAGS -Wundef"
17784
if test "$compiler_num" -ge "297"; then
17785
tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
17788
if test "$compiler_num" -ge "300"; then
17789
tmp_CFLAGS="$tmp_CFLAGS"
17792
if test "$compiler_num" -ge "303"; then
17793
tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes"
17796
if test "$compiler_num" -ge "304"; then
17797
tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
17800
if test "$compiler_num" -ge "403"; then
17801
tmp_CFLAGS="$tmp_CFLAGS -Wtype-limits -Wold-style-declaration"
17802
tmp_CFLAGS="$tmp_CFLAGS -Wmissing-parameter-type -Wempty-body"
17803
tmp_CFLAGS="$tmp_CFLAGS -Wclobbered -Wignored-qualifiers"
17808
if test "$compiler_num" -ge "300"; then
17809
tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
17811
if test "x$cross_compiling" = "xyes"; then
17812
if test "$compiler_num" -ge "104"; then
17813
tmp_CFLAGS="$tmp_CFLAGS -Wno-unused -Wno-shadow"
17815
if test "$compiler_num" -ge "207"; then
17816
tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-declarations"
17817
tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-prototypes"
17825
if test "$want_warnings" = "yes"; then
17826
tmp_CFLAGS="$tmp_CFLAGS +w2"
17832
tmp_CFLAGS="$tmp_CFLAGS"
17837
if test "$want_warnings" = "yes"; then
17838
if test "$compiler_num" -gt "600"; then
17839
tmp_CPPFLAGS="$tmp_CPPFLAGS -Wall -w2"
17840
tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcheck"
17841
tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcomment"
17842
tmp_CPPFLAGS="$tmp_CPPFLAGS -Wdeprecated"
17843
tmp_CPPFLAGS="$tmp_CPPFLAGS -Wmissing-prototypes"
17844
tmp_CPPFLAGS="$tmp_CPPFLAGS -Wp64"
17845
tmp_CPPFLAGS="$tmp_CPPFLAGS -Wpointer-arith"
17846
tmp_CPPFLAGS="$tmp_CPPFLAGS -Wreturn-type"
17847
tmp_CPPFLAGS="$tmp_CPPFLAGS -Wshadow"
17848
tmp_CPPFLAGS="$tmp_CPPFLAGS -Wuninitialized"
17849
tmp_CPPFLAGS="$tmp_CPPFLAGS -Wunused-function"
17852
tmp_CFLAGS="$tmp_CFLAGS -fno-omit-frame-pointer"
17853
tmp_CFLAGS="$tmp_CFLAGS -no-ansi-alias"
17854
tmp_CFLAGS="$tmp_CFLAGS -fp-model precise"
17855
if test "$compiler_num" -ge "1000"; then
17856
tmp_CFLAGS="$tmp_CFLAGS -vec-report0"
17858
if test "$INTEL_UNIX_C_OPT_SIGSEGV" = "yes"; then
17859
tmp_CFLAGS="$tmp_CFLAGS -no-ip -no-ipo"
17860
tmp_CFLAGS="$tmp_CFLAGS -ffunction-sections"
17861
tmp_CFLAGS="$tmp_CFLAGS -Ob0"
17862
tmp_CFLAGS="$tmp_CFLAGS -fno-builtin"
17863
tmp_CFLAGS="$tmp_CFLAGS -fno-inline"
17864
tmp_CFLAGS="$tmp_CFLAGS -fno-inline-functions"
17865
tmp_CFLAGS="$tmp_CFLAGS -nolib-inline"
17866
tmp_CFLAGS="$tmp_CFLAGS -ip-no-inlining"
17867
tmp_CFLAGS="$tmp_CFLAGS -fpstkchk"
17868
tmp_CFLAGS="$tmp_CFLAGS -fstack-security-check"
17869
tmp_CFLAGS="$tmp_CFLAGS -falias"
17870
tmp_CFLAGS="$tmp_CFLAGS -alias-args"
17871
tmp_CFLAGS="$tmp_CFLAGS -ffnalias"
17872
tmp_CFLAGS="$tmp_CFLAGS -no-prefetch"
17873
tmp_CFLAGS="$tmp_CFLAGS -unroll0"
17879
tmp_CFLAGS="$tmp_CFLAGS"
17884
if test "$want_warnings" = "yes"; then
17885
tmp_CFLAGS="$tmp_CFLAGS"
17891
if test "$want_warnings" = "yes"; then
17892
tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
17898
if test "$want_warnings" = "yes"; then
17899
tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
17900
tmp_CFLAGS="$tmp_CFLAGS -woff 1209"
17906
if test "$want_warnings" = "yes"; then
17907
tmp_CFLAGS="$tmp_CFLAGS -v"
17913
if test "$want_warnings" = "yes"; then
17914
tmp_CFLAGS="$tmp_CFLAGS -Wall"
17915
tmp_CFLAGS="$tmp_CFLAGS -Wwrite-strings"
17916
tmp_CFLAGS="$tmp_CFLAGS -Wunsupported"
17922
if test "$want_warnings" = "yes"; then
17923
tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
17929
tmp_CFLAGS="$tmp_CFLAGS"
17934
squeeze tmp_CPPFLAGS
17937
if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
17938
{ echo "$as_me:$LINENO: checking if compiler accepts strict warning options" >&5
17939
echo $ECHO_N "checking if compiler accepts strict warning options... $ECHO_C" >&6; }
17940
CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
17941
CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
17945
tmp_compiler_works="unknown"
17946
cat >conftest.$ac_ext <<_ACEOF
17950
cat confdefs.h >>conftest.$ac_ext
17951
cat >>conftest.$ac_ext <<_ACEOF
17952
/* end confdefs.h. */
17966
rm -f conftest.$ac_objext
17967
if { (ac_try="$ac_compile"
17968
case "(($ac_try" in
17969
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17970
*) ac_try_echo=$ac_try;;
17972
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17973
(eval "$ac_compile") 2>conftest.er1
17975
grep -v '^ *+' conftest.er1 >conftest.err
17977
cat conftest.err >&5
17978
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17979
(exit $ac_status); } && {
17980
test -z "$ac_c_werror_flag" ||
17981
test ! -s conftest.err
17982
} && test -s conftest.$ac_objext; then
17984
tmp_compiler_works="yes"
17987
echo "$as_me: failed program was:" >&5
17988
sed 's/^/| /' conftest.$ac_ext >&5
17991
tmp_compiler_works="no"
17993
sed 's/^/cc-fail: /' conftest.err >&6
17998
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17999
if test "$tmp_compiler_works" = "yes"; then
18000
cat >conftest.$ac_ext <<_ACEOF
18004
cat confdefs.h >>conftest.$ac_ext
18005
cat >>conftest.$ac_ext <<_ACEOF
18006
/* end confdefs.h. */
18020
rm -f conftest.$ac_objext conftest$ac_exeext
18021
if { (ac_try="$ac_link"
18022
case "(($ac_try" in
18023
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18024
*) ac_try_echo=$ac_try;;
18026
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18027
(eval "$ac_link") 2>conftest.er1
18029
grep -v '^ *+' conftest.er1 >conftest.err
18031
cat conftest.err >&5
18032
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18033
(exit $ac_status); } && {
18034
test -z "$ac_c_werror_flag" ||
18035
test ! -s conftest.err
18036
} && test -s conftest$ac_exeext &&
18037
$as_test_x conftest$ac_exeext; then
18039
tmp_compiler_works="yes"
18042
echo "$as_me: failed program was:" >&5
18043
sed 's/^/| /' conftest.$ac_ext >&5
18046
tmp_compiler_works="no"
18048
sed 's/^/link-fail: /' conftest.err >&6
18053
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18054
conftest$ac_exeext conftest.$ac_ext
18056
if test "x$cross_compiling" != "xyes" &&
18057
test "$tmp_compiler_works" = "yes"; then
18058
if test "$cross_compiling" = yes; then
18059
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18060
See \`config.log' for more details." >&5
18061
echo "$as_me: error: cannot run test program while cross compiling
18062
See \`config.log' for more details." >&2;}
18063
{ (exit 1); exit 1; }; }
18065
cat >conftest.$ac_ext <<_ACEOF
18069
cat confdefs.h >>conftest.$ac_ext
18070
cat >>conftest.$ac_ext <<_ACEOF
18071
/* end confdefs.h. */
18074
# include <stdlib.h>
18088
rm -f conftest$ac_exeext
18089
if { (ac_try="$ac_link"
18090
case "(($ac_try" in
18091
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18092
*) ac_try_echo=$ac_try;;
18094
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18095
(eval "$ac_link") 2>&5
18097
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18098
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18099
{ (case "(($ac_try" in
18100
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18101
*) ac_try_echo=$ac_try;;
18103
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18104
(eval "$ac_try") 2>&5
18106
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18107
(exit $ac_status); }; }; then
18109
tmp_compiler_works="yes"
18112
echo "$as_me: program exited with status $ac_status" >&5
18113
echo "$as_me: failed program was:" >&5
18114
sed 's/^/| /' conftest.$ac_ext >&5
18116
( exit $ac_status )
18118
tmp_compiler_works="no"
18120
echo "run-fail: test program exited with status $ac_status" >&6
18124
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18129
if test "$tmp_compiler_works" = "yes"; then
18131
{ echo "$as_me:$LINENO: result: yes" >&5
18132
echo "${ECHO_T}yes" >&6; }
18133
{ echo "$as_me:$LINENO: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
18134
echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
18138
{ echo "$as_me:$LINENO: result: no" >&5
18139
echo "${ECHO_T}no" >&6; }
18140
{ echo "$as_me:$LINENO: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
18141
echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
18142
CPPFLAGS="$tmp_save_CPPFLAGS"
18143
CFLAGS="$tmp_save_CFLAGS"
18154
x86_64*linux*|amd64*freebsd*|ia64*freebsd*)
18156
if test "$compiler_id" = "INTEL_UNIX_C"; then
18158
if test "$compiler_num" -ge "900" &&
18159
test "$compiler_num" -lt "1000"; then
18160
CFLAGS="$CFLAGS -i-dynamic"
18163
if test "$compiler_num" -ge "1000"; then
18164
CFLAGS="$CFLAGS -shared-intel"
18173
{ echo "$as_me:$LINENO: checking if compiler halts on compilation errors" >&5
18174
echo $ECHO_N "checking if compiler halts on compilation errors... $ECHO_C" >&6; }
18175
cat >conftest.$ac_ext <<_ACEOF
18179
cat confdefs.h >>conftest.$ac_ext
18180
cat >>conftest.$ac_ext <<_ACEOF
18181
/* end confdefs.h. */
18187
force compilation error
18194
rm -f conftest.$ac_objext
18195
if { (ac_try="$ac_compile"
18196
case "(($ac_try" in
18197
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18198
*) ac_try_echo=$ac_try;;
18200
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18201
(eval "$ac_compile") 2>conftest.er1
18203
grep -v '^ *+' conftest.er1 >conftest.err
18205
cat conftest.err >&5
18206
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18207
(exit $ac_status); } && {
18208
test -z "$ac_c_werror_flag" ||
18209
test ! -s conftest.err
18210
} && test -s conftest.$ac_objext; then
18212
{ echo "$as_me:$LINENO: result: no" >&5
18213
echo "${ECHO_T}no" >&6; }
18214
{ { echo "$as_me:$LINENO: error: compiler does not halt on compilation errors." >&5
18215
echo "$as_me: error: compiler does not halt on compilation errors." >&2;}
18216
{ (exit 1); exit 1; }; }
18219
echo "$as_me: failed program was:" >&5
18220
sed 's/^/| /' conftest.$ac_ext >&5
18223
{ echo "$as_me:$LINENO: result: yes" >&5
18224
echo "${ECHO_T}yes" >&6; }
18228
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18231
{ echo "$as_me:$LINENO: checking if compiler halts on negative sized arrays" >&5
18232
echo $ECHO_N "checking if compiler halts on negative sized arrays... $ECHO_C" >&6; }
18233
cat >conftest.$ac_ext <<_ACEOF
18237
cat confdefs.h >>conftest.$ac_ext
18238
cat >>conftest.$ac_ext <<_ACEOF
18239
/* end confdefs.h. */
18241
typedef char bad_t[sizeof(char) == sizeof(int) ? -1 : -1 ];
18253
rm -f conftest.$ac_objext
18254
if { (ac_try="$ac_compile"
18255
case "(($ac_try" in
18256
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18257
*) ac_try_echo=$ac_try;;
18259
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18260
(eval "$ac_compile") 2>conftest.er1
18262
grep -v '^ *+' conftest.er1 >conftest.err
18264
cat conftest.err >&5
18265
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18266
(exit $ac_status); } && {
18267
test -z "$ac_c_werror_flag" ||
18268
test ! -s conftest.err
18269
} && test -s conftest.$ac_objext; then
18271
{ echo "$as_me:$LINENO: result: no" >&5
18272
echo "${ECHO_T}no" >&6; }
18273
{ { echo "$as_me:$LINENO: error: compiler does not halt on negative sized arrays." >&5
18274
echo "$as_me: error: compiler does not halt on negative sized arrays." >&2;}
18275
{ (exit 1); exit 1; }; }
18278
echo "$as_me: failed program was:" >&5
18279
sed 's/^/| /' conftest.$ac_ext >&5
18282
{ echo "$as_me:$LINENO: result: yes" >&5
18283
echo "${ECHO_T}yes" >&6; }
18287
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20815
18293
{ echo "$as_me:$LINENO: checking for windows.h" >&5
20816
18294
echo $ECHO_N "checking for windows.h... $ECHO_C" >&6; }
20817
18295
if test "${ac_cv_header_windows_h+set}" = set; then
32776
curl_includes_unistd="\
32777
/* includes start */
32778
#ifdef HAVE_SYS_TYPES_H
32779
# include <sys/types.h>
32781
#ifdef HAVE_UNISTD_H
32782
# include <unistd.h>
32784
/* includes end */"
32787
for ac_header in sys/types.h unistd.h
32789
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32790
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
32791
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32792
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32793
echo $ECHO_N "(cached) $ECHO_C" >&6
32795
cat >conftest.$ac_ext <<_ACEOF
32798
cat confdefs.h >>conftest.$ac_ext
32799
cat >>conftest.$ac_ext <<_ACEOF
32800
/* end confdefs.h. */
32801
$curl_includes_unistd
32803
#include <$ac_header>
32805
rm -f conftest.$ac_objext
32806
if { (ac_try="$ac_compile"
32807
case "(($ac_try" in
32808
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32809
*) ac_try_echo=$ac_try;;
32811
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32812
(eval "$ac_compile") 2>conftest.er1
32814
grep -v '^ *+' conftest.er1 >conftest.err
32816
cat conftest.err >&5
32817
echo "$as_me:$LINENO: \$? = $ac_status" >&5
32818
(exit $ac_status); } && {
32819
test -z "$ac_c_werror_flag" ||
32820
test ! -s conftest.err
32821
} && test -s conftest.$ac_objext; then
32822
eval "$as_ac_Header=yes"
32824
echo "$as_me: failed program was:" >&5
32825
sed 's/^/| /' conftest.$ac_ext >&5
32827
eval "$as_ac_Header=no"
32830
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32832
ac_res=`eval echo '${'$as_ac_Header'}'`
32833
{ echo "$as_me:$LINENO: result: $ac_res" >&5
32834
echo "${ECHO_T}$ac_res" >&6; }
32835
if test `eval echo '${'$as_ac_Header'}'` = yes; then
32836
cat >>confdefs.h <<_ACEOF
32837
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32847
tst_links_alarm="unknown"
32848
tst_proto_alarm="unknown"
32849
tst_compi_alarm="unknown"
32850
tst_allow_alarm="unknown"
32852
{ echo "$as_me:$LINENO: checking if alarm can be linked" >&5
32853
echo $ECHO_N "checking if alarm can be linked... $ECHO_C" >&6; }
32854
cat >conftest.$ac_ext <<_ACEOF
32858
cat confdefs.h >>conftest.$ac_ext
32859
cat >>conftest.$ac_ext <<_ACEOF
32860
/* end confdefs.h. */
32862
#define alarm innocuous_alarm
32864
# include <limits.h>
32866
# include <assert.h>
32873
#if defined __stub_alarm || defined __stub___alarm
32885
rm -f conftest.$ac_objext conftest$ac_exeext
32886
if { (ac_try="$ac_link"
32887
case "(($ac_try" in
32888
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32889
*) ac_try_echo=$ac_try;;
32891
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32892
(eval "$ac_link") 2>conftest.er1
32894
grep -v '^ *+' conftest.er1 >conftest.err
32896
cat conftest.err >&5
32897
echo "$as_me:$LINENO: \$? = $ac_status" >&5
32898
(exit $ac_status); } && {
32899
test -z "$ac_c_werror_flag" ||
32900
test ! -s conftest.err
32901
} && test -s conftest$ac_exeext &&
32902
$as_test_x conftest$ac_exeext; then
32904
{ echo "$as_me:$LINENO: result: yes" >&5
32905
echo "${ECHO_T}yes" >&6; }
32906
tst_links_alarm="yes"
32909
echo "$as_me: failed program was:" >&5
32910
sed 's/^/| /' conftest.$ac_ext >&5
32913
{ echo "$as_me:$LINENO: result: no" >&5
32914
echo "${ECHO_T}no" >&6; }
32915
tst_links_alarm="no"
32919
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32920
conftest$ac_exeext conftest.$ac_ext
32922
if test "$tst_links_alarm" = "yes"; then
32923
{ echo "$as_me:$LINENO: checking if alarm is prototyped" >&5
32924
echo $ECHO_N "checking if alarm is prototyped... $ECHO_C" >&6; }
32925
cat >conftest.$ac_ext <<_ACEOF
32928
cat confdefs.h >>conftest.$ac_ext
32929
cat >>conftest.$ac_ext <<_ACEOF
32930
/* end confdefs.h. */
32932
$curl_includes_unistd
32935
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32936
$EGREP "alarm" >/dev/null 2>&1; then
32938
{ echo "$as_me:$LINENO: result: yes" >&5
32939
echo "${ECHO_T}yes" >&6; }
32940
tst_proto_alarm="yes"
32944
{ echo "$as_me:$LINENO: result: no" >&5
32945
echo "${ECHO_T}no" >&6; }
32946
tst_proto_alarm="no"
32953
if test "$tst_proto_alarm" = "yes"; then
32954
{ echo "$as_me:$LINENO: checking if alarm is compilable" >&5
32955
echo $ECHO_N "checking if alarm is compilable... $ECHO_C" >&6; }
32956
cat >conftest.$ac_ext <<_ACEOF
32960
cat confdefs.h >>conftest.$ac_ext
32961
cat >>conftest.$ac_ext <<_ACEOF
32962
/* end confdefs.h. */
32964
$curl_includes_unistd
32977
rm -f conftest.$ac_objext
32978
if { (ac_try="$ac_compile"
32979
case "(($ac_try" in
32980
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32981
*) ac_try_echo=$ac_try;;
32983
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32984
(eval "$ac_compile") 2>conftest.er1
32986
grep -v '^ *+' conftest.er1 >conftest.err
32988
cat conftest.err >&5
32989
echo "$as_me:$LINENO: \$? = $ac_status" >&5
32990
(exit $ac_status); } && {
32991
test -z "$ac_c_werror_flag" ||
32992
test ! -s conftest.err
32993
} && test -s conftest.$ac_objext; then
32995
{ echo "$as_me:$LINENO: result: yes" >&5
32996
echo "${ECHO_T}yes" >&6; }
32997
tst_compi_alarm="yes"
33000
echo "$as_me: failed program was:" >&5
33001
sed 's/^/| /' conftest.$ac_ext >&5
33004
{ echo "$as_me:$LINENO: result: no" >&5
33005
echo "${ECHO_T}no" >&6; }
33006
tst_compi_alarm="no"
33010
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33013
if test "$tst_compi_alarm" = "yes"; then
33014
{ echo "$as_me:$LINENO: checking if alarm usage allowed" >&5
33015
echo $ECHO_N "checking if alarm usage allowed... $ECHO_C" >&6; }
33016
if test "x$curl_disallow_alarm" != "xyes"; then
33017
{ echo "$as_me:$LINENO: result: yes" >&5
33018
echo "${ECHO_T}yes" >&6; }
33019
tst_allow_alarm="yes"
33021
{ echo "$as_me:$LINENO: result: no" >&5
33022
echo "${ECHO_T}no" >&6; }
33023
tst_allow_alarm="no"
33027
{ echo "$as_me:$LINENO: checking if alarm might be used" >&5
33028
echo $ECHO_N "checking if alarm might be used... $ECHO_C" >&6; }
33029
if test "$tst_links_alarm" = "yes" &&
33030
test "$tst_proto_alarm" = "yes" &&
33031
test "$tst_compi_alarm" = "yes" &&
33032
test "$tst_allow_alarm" = "yes"; then
33033
{ echo "$as_me:$LINENO: result: yes" >&5
33034
echo "${ECHO_T}yes" >&6; }
33036
cat >>confdefs.h <<_ACEOF
33037
#define HAVE_ALARM 1
33040
ac_cv_func_alarm="yes"
33042
{ echo "$as_me:$LINENO: result: no" >&5
33043
echo "${ECHO_T}no" >&6; }
33044
ac_cv_func_alarm="no"
33048
curl_includes_fcntl="\
33049
/* includes start */
33050
#ifdef HAVE_SYS_TYPES_H
33051
# include <sys/types.h>
33053
#ifdef HAVE_UNISTD_H
33054
# include <unistd.h>
33056
#ifdef HAVE_FCNTL_H
33057
# include <fcntl.h>
33059
/* includes end */"
33063
for ac_header in sys/types.h unistd.h fcntl.h
33065
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33066
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
33067
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33068
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33069
echo $ECHO_N "(cached) $ECHO_C" >&6
33071
cat >conftest.$ac_ext <<_ACEOF
33074
cat confdefs.h >>conftest.$ac_ext
33075
cat >>conftest.$ac_ext <<_ACEOF
33076
/* end confdefs.h. */
33077
$curl_includes_fcntl
33079
#include <$ac_header>
33081
rm -f conftest.$ac_objext
33082
if { (ac_try="$ac_compile"
33083
case "(($ac_try" in
33084
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33085
*) ac_try_echo=$ac_try;;
33087
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33088
(eval "$ac_compile") 2>conftest.er1
33090
grep -v '^ *+' conftest.er1 >conftest.err
33092
cat conftest.err >&5
33093
echo "$as_me:$LINENO: \$? = $ac_status" >&5
33094
(exit $ac_status); } && {
33095
test -z "$ac_c_werror_flag" ||
33096
test ! -s conftest.err
33097
} && test -s conftest.$ac_objext; then
33098
eval "$as_ac_Header=yes"
33100
echo "$as_me: failed program was:" >&5
33101
sed 's/^/| /' conftest.$ac_ext >&5
33103
eval "$as_ac_Header=no"
33106
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33108
ac_res=`eval echo '${'$as_ac_Header'}'`
33109
{ echo "$as_me:$LINENO: result: $ac_res" >&5
33110
echo "${ECHO_T}$ac_res" >&6; }
33111
if test `eval echo '${'$as_ac_Header'}'` = yes; then
33112
cat >>confdefs.h <<_ACEOF
33113
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33123
tst_links_fcntl="unknown"
33124
tst_proto_fcntl="unknown"
33125
tst_compi_fcntl="unknown"
33126
tst_allow_fcntl="unknown"
33128
{ echo "$as_me:$LINENO: checking if fcntl can be linked" >&5
33129
echo $ECHO_N "checking if fcntl can be linked... $ECHO_C" >&6; }
33130
cat >conftest.$ac_ext <<_ACEOF
33134
cat confdefs.h >>conftest.$ac_ext
33135
cat >>conftest.$ac_ext <<_ACEOF
33136
/* end confdefs.h. */
33138
#define fcntl innocuous_fcntl
33140
# include <limits.h>
33142
# include <assert.h>
33149
#if defined __stub_fcntl || defined __stub___fcntl
33161
rm -f conftest.$ac_objext conftest$ac_exeext
33162
if { (ac_try="$ac_link"
33163
case "(($ac_try" in
33164
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33165
*) ac_try_echo=$ac_try;;
33167
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33168
(eval "$ac_link") 2>conftest.er1
33170
grep -v '^ *+' conftest.er1 >conftest.err
33172
cat conftest.err >&5
33173
echo "$as_me:$LINENO: \$? = $ac_status" >&5
33174
(exit $ac_status); } && {
33175
test -z "$ac_c_werror_flag" ||
33176
test ! -s conftest.err
33177
} && test -s conftest$ac_exeext &&
33178
$as_test_x conftest$ac_exeext; then
33180
{ echo "$as_me:$LINENO: result: yes" >&5
33181
echo "${ECHO_T}yes" >&6; }
33182
tst_links_fcntl="yes"
33185
echo "$as_me: failed program was:" >&5
33186
sed 's/^/| /' conftest.$ac_ext >&5
33189
{ echo "$as_me:$LINENO: result: no" >&5
33190
echo "${ECHO_T}no" >&6; }
33191
tst_links_fcntl="no"
33195
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33196
conftest$ac_exeext conftest.$ac_ext
33198
if test "$tst_links_fcntl" = "yes"; then
33199
{ echo "$as_me:$LINENO: checking if fcntl is prototyped" >&5
33200
echo $ECHO_N "checking if fcntl is prototyped... $ECHO_C" >&6; }
33201
cat >conftest.$ac_ext <<_ACEOF
33204
cat confdefs.h >>conftest.$ac_ext
33205
cat >>conftest.$ac_ext <<_ACEOF
33206
/* end confdefs.h. */
33208
$curl_includes_fcntl
33211
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33212
$EGREP "fcntl" >/dev/null 2>&1; then
33214
{ echo "$as_me:$LINENO: result: yes" >&5
33215
echo "${ECHO_T}yes" >&6; }
33216
tst_proto_fcntl="yes"
33220
{ echo "$as_me:$LINENO: result: no" >&5
33221
echo "${ECHO_T}no" >&6; }
33222
tst_proto_fcntl="no"
33229
if test "$tst_proto_fcntl" = "yes"; then
33230
{ echo "$as_me:$LINENO: checking if fcntl is compilable" >&5
33231
echo $ECHO_N "checking if fcntl is compilable... $ECHO_C" >&6; }
33232
cat >conftest.$ac_ext <<_ACEOF
33236
cat confdefs.h >>conftest.$ac_ext
33237
cat >>conftest.$ac_ext <<_ACEOF
33238
/* end confdefs.h. */
33240
$curl_includes_fcntl
33245
if(0 != fcntl(0, 0, 0))
33253
rm -f conftest.$ac_objext
33254
if { (ac_try="$ac_compile"
33255
case "(($ac_try" in
33256
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33257
*) ac_try_echo=$ac_try;;
33259
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33260
(eval "$ac_compile") 2>conftest.er1
33262
grep -v '^ *+' conftest.er1 >conftest.err
33264
cat conftest.err >&5
33265
echo "$as_me:$LINENO: \$? = $ac_status" >&5
33266
(exit $ac_status); } && {
33267
test -z "$ac_c_werror_flag" ||
33268
test ! -s conftest.err
33269
} && test -s conftest.$ac_objext; then
33271
{ echo "$as_me:$LINENO: result: yes" >&5
33272
echo "${ECHO_T}yes" >&6; }
33273
tst_compi_fcntl="yes"
33276
echo "$as_me: failed program was:" >&5
33277
sed 's/^/| /' conftest.$ac_ext >&5
33280
{ echo "$as_me:$LINENO: result: no" >&5
33281
echo "${ECHO_T}no" >&6; }
33282
tst_compi_fcntl="no"
33286
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33289
if test "$tst_compi_fcntl" = "yes"; then
33290
{ echo "$as_me:$LINENO: checking if fcntl usage allowed" >&5
33291
echo $ECHO_N "checking if fcntl usage allowed... $ECHO_C" >&6; }
33292
if test "x$curl_disallow_fcntl" != "xyes"; then
33293
{ echo "$as_me:$LINENO: result: yes" >&5
33294
echo "${ECHO_T}yes" >&6; }
33295
tst_allow_fcntl="yes"
33297
{ echo "$as_me:$LINENO: result: no" >&5
33298
echo "${ECHO_T}no" >&6; }
33299
tst_allow_fcntl="no"
33303
{ echo "$as_me:$LINENO: checking if fcntl might be used" >&5
33304
echo $ECHO_N "checking if fcntl might be used... $ECHO_C" >&6; }
33305
if test "$tst_links_fcntl" = "yes" &&
33306
test "$tst_proto_fcntl" = "yes" &&
33307
test "$tst_compi_fcntl" = "yes" &&
33308
test "$tst_allow_fcntl" = "yes"; then
33309
{ echo "$as_me:$LINENO: result: yes" >&5
33310
echo "${ECHO_T}yes" >&6; }
33312
cat >>confdefs.h <<_ACEOF
33313
#define HAVE_FCNTL 1
33316
ac_cv_func_fcntl="yes"
33319
tst_compi_fcntl_o_nonblock="unknown"
33320
tst_allow_fcntl_o_nonblock="unknown"
33323
sunos4* | aix3* | beos*)
33324
curl_disallow_fcntl_o_nonblock="yes"
33328
if test "$ac_cv_func_fcntl" = "yes"; then
33329
{ echo "$as_me:$LINENO: checking if fcntl O_NONBLOCK is compilable" >&5
33330
echo $ECHO_N "checking if fcntl O_NONBLOCK is compilable... $ECHO_C" >&6; }
33331
cat >conftest.$ac_ext <<_ACEOF
33335
cat confdefs.h >>conftest.$ac_ext
33336
cat >>conftest.$ac_ext <<_ACEOF
33337
/* end confdefs.h. */
33339
$curl_includes_fcntl
33345
if(0 != fcntl(0, F_SETFL, flags | O_NONBLOCK))
33353
rm -f conftest.$ac_objext
33354
if { (ac_try="$ac_compile"
33355
case "(($ac_try" in
33356
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33357
*) ac_try_echo=$ac_try;;
33359
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33360
(eval "$ac_compile") 2>conftest.er1
33362
grep -v '^ *+' conftest.er1 >conftest.err
33364
cat conftest.err >&5
33365
echo "$as_me:$LINENO: \$? = $ac_status" >&5
33366
(exit $ac_status); } && {
33367
test -z "$ac_c_werror_flag" ||
33368
test ! -s conftest.err
33369
} && test -s conftest.$ac_objext; then
33371
{ echo "$as_me:$LINENO: result: yes" >&5
33372
echo "${ECHO_T}yes" >&6; }
33373
tst_compi_fcntl_o_nonblock="yes"
33376
echo "$as_me: failed program was:" >&5
33377
sed 's/^/| /' conftest.$ac_ext >&5
33380
{ echo "$as_me:$LINENO: result: no" >&5
33381
echo "${ECHO_T}no" >&6; }
33382
tst_compi_fcntl_o_nonblock="no"
33386
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33389
if test "$tst_compi_fcntl_o_nonblock" = "yes"; then
33390
{ echo "$as_me:$LINENO: checking if fcntl O_NONBLOCK usage allowed" >&5
33391
echo $ECHO_N "checking if fcntl O_NONBLOCK usage allowed... $ECHO_C" >&6; }
33392
if test "x$curl_disallow_fcntl_o_nonblock" != "xyes"; then
33393
{ echo "$as_me:$LINENO: result: yes" >&5
33394
echo "${ECHO_T}yes" >&6; }
33395
tst_allow_fcntl_o_nonblock="yes"
33397
{ echo "$as_me:$LINENO: result: no" >&5
33398
echo "${ECHO_T}no" >&6; }
33399
tst_allow_fcntl_o_nonblock="no"
33403
{ echo "$as_me:$LINENO: checking if fcntl O_NONBLOCK might be used" >&5
33404
echo $ECHO_N "checking if fcntl O_NONBLOCK might be used... $ECHO_C" >&6; }
33405
if test "$tst_compi_fcntl_o_nonblock" = "yes" &&
33406
test "$tst_allow_fcntl_o_nonblock" = "yes"; then
33407
{ echo "$as_me:$LINENO: result: yes" >&5
33408
echo "${ECHO_T}yes" >&6; }
33410
cat >>confdefs.h <<_ACEOF
33411
#define HAVE_FCNTL_O_NONBLOCK 1
33414
ac_cv_func_fcntl_o_nonblock="yes"
33416
{ echo "$as_me:$LINENO: result: no" >&5
33417
echo "${ECHO_T}no" >&6; }
33418
ac_cv_func_fcntl_o_nonblock="no"
33422
{ echo "$as_me:$LINENO: result: no" >&5
33423
echo "${ECHO_T}no" >&6; }
33424
ac_cv_func_fcntl="no"
33428
curl_includes_stdio="\
33429
/* includes start */
33430
#ifdef HAVE_SYS_TYPES_H
33431
# include <sys/types.h>
33433
#ifdef HAVE_STDIO_H
33434
# include <stdio.h>
33436
/* includes end */"
33439
for ac_header in sys/types.h stdio.h
33441
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33442
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
33443
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33444
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33445
echo $ECHO_N "(cached) $ECHO_C" >&6
33447
cat >conftest.$ac_ext <<_ACEOF
33450
cat confdefs.h >>conftest.$ac_ext
33451
cat >>conftest.$ac_ext <<_ACEOF
33452
/* end confdefs.h. */
33453
$curl_includes_stdio
33455
#include <$ac_header>
33457
rm -f conftest.$ac_objext
33458
if { (ac_try="$ac_compile"
33459
case "(($ac_try" in
33460
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33461
*) ac_try_echo=$ac_try;;
33463
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33464
(eval "$ac_compile") 2>conftest.er1
33466
grep -v '^ *+' conftest.er1 >conftest.err
33468
cat conftest.err >&5
33469
echo "$as_me:$LINENO: \$? = $ac_status" >&5
33470
(exit $ac_status); } && {
33471
test -z "$ac_c_werror_flag" ||
33472
test ! -s conftest.err
33473
} && test -s conftest.$ac_objext; then
33474
eval "$as_ac_Header=yes"
33476
echo "$as_me: failed program was:" >&5
33477
sed 's/^/| /' conftest.$ac_ext >&5
33479
eval "$as_ac_Header=no"
33482
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33484
ac_res=`eval echo '${'$as_ac_Header'}'`
33485
{ echo "$as_me:$LINENO: result: $ac_res" >&5
33486
echo "${ECHO_T}$ac_res" >&6; }
33487
if test `eval echo '${'$as_ac_Header'}'` = yes; then
33488
cat >>confdefs.h <<_ACEOF
33489
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33499
tst_links_fdopen="unknown"
33500
tst_proto_fdopen="unknown"
33501
tst_compi_fdopen="unknown"
33502
tst_allow_fdopen="unknown"
33504
{ echo "$as_me:$LINENO: checking if fdopen can be linked" >&5
33505
echo $ECHO_N "checking if fdopen can be linked... $ECHO_C" >&6; }
33506
cat >conftest.$ac_ext <<_ACEOF
33510
cat confdefs.h >>conftest.$ac_ext
33511
cat >>conftest.$ac_ext <<_ACEOF
33512
/* end confdefs.h. */
33514
#define fdopen innocuous_fdopen
33516
# include <limits.h>
33518
# include <assert.h>
33525
#if defined __stub_fdopen || defined __stub___fdopen
33537
rm -f conftest.$ac_objext conftest$ac_exeext
33538
if { (ac_try="$ac_link"
33539
case "(($ac_try" in
33540
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33541
*) ac_try_echo=$ac_try;;
33543
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33544
(eval "$ac_link") 2>conftest.er1
33546
grep -v '^ *+' conftest.er1 >conftest.err
33548
cat conftest.err >&5
33549
echo "$as_me:$LINENO: \$? = $ac_status" >&5
33550
(exit $ac_status); } && {
33551
test -z "$ac_c_werror_flag" ||
33552
test ! -s conftest.err
33553
} && test -s conftest$ac_exeext &&
33554
$as_test_x conftest$ac_exeext; then
33556
{ echo "$as_me:$LINENO: result: yes" >&5
33557
echo "${ECHO_T}yes" >&6; }
33558
tst_links_fdopen="yes"
33561
echo "$as_me: failed program was:" >&5
33562
sed 's/^/| /' conftest.$ac_ext >&5
33565
{ echo "$as_me:$LINENO: result: no" >&5
33566
echo "${ECHO_T}no" >&6; }
33567
tst_links_fdopen="no"
33571
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33572
conftest$ac_exeext conftest.$ac_ext
33574
if test "$tst_links_fdopen" = "yes"; then
33575
{ echo "$as_me:$LINENO: checking if fdopen is prototyped" >&5
33576
echo $ECHO_N "checking if fdopen is prototyped... $ECHO_C" >&6; }
33577
cat >conftest.$ac_ext <<_ACEOF
33580
cat confdefs.h >>conftest.$ac_ext
33581
cat >>conftest.$ac_ext <<_ACEOF
33582
/* end confdefs.h. */
33584
$curl_includes_stdio
33587
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33588
$EGREP "fdopen" >/dev/null 2>&1; then
33590
{ echo "$as_me:$LINENO: result: yes" >&5
33591
echo "${ECHO_T}yes" >&6; }
33592
tst_proto_fdopen="yes"
33596
{ echo "$as_me:$LINENO: result: no" >&5
33597
echo "${ECHO_T}no" >&6; }
33598
tst_proto_fdopen="no"
33605
if test "$tst_proto_fdopen" = "yes"; then
33606
{ echo "$as_me:$LINENO: checking if fdopen is compilable" >&5
33607
echo $ECHO_N "checking if fdopen is compilable... $ECHO_C" >&6; }
33608
cat >conftest.$ac_ext <<_ACEOF
33612
cat confdefs.h >>conftest.$ac_ext
33613
cat >>conftest.$ac_ext <<_ACEOF
33614
/* end confdefs.h. */
33616
$curl_includes_stdio
33621
if(0 != fdopen(0, 0))
33629
rm -f conftest.$ac_objext
33630
if { (ac_try="$ac_compile"
33631
case "(($ac_try" in
33632
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33633
*) ac_try_echo=$ac_try;;
33635
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33636
(eval "$ac_compile") 2>conftest.er1
33638
grep -v '^ *+' conftest.er1 >conftest.err
33640
cat conftest.err >&5
33641
echo "$as_me:$LINENO: \$? = $ac_status" >&5
33642
(exit $ac_status); } && {
33643
test -z "$ac_c_werror_flag" ||
33644
test ! -s conftest.err
33645
} && test -s conftest.$ac_objext; then
33647
{ echo "$as_me:$LINENO: result: yes" >&5
33648
echo "${ECHO_T}yes" >&6; }
33649
tst_compi_fdopen="yes"
33652
echo "$as_me: failed program was:" >&5
33653
sed 's/^/| /' conftest.$ac_ext >&5
33656
{ echo "$as_me:$LINENO: result: no" >&5
33657
echo "${ECHO_T}no" >&6; }
33658
tst_compi_fdopen="no"
33662
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33665
if test "$tst_compi_fdopen" = "yes"; then
33666
{ echo "$as_me:$LINENO: checking if fdopen usage allowed" >&5
33667
echo $ECHO_N "checking if fdopen usage allowed... $ECHO_C" >&6; }
33668
if test "x$curl_disallow_fdopen" != "xyes"; then
33669
{ echo "$as_me:$LINENO: result: yes" >&5
33670
echo "${ECHO_T}yes" >&6; }
33671
tst_allow_fdopen="yes"
33673
{ echo "$as_me:$LINENO: result: no" >&5
33674
echo "${ECHO_T}no" >&6; }
33675
tst_allow_fdopen="no"
33679
{ echo "$as_me:$LINENO: checking if fdopen might be used" >&5
33680
echo $ECHO_N "checking if fdopen might be used... $ECHO_C" >&6; }
33681
if test "$tst_links_fdopen" = "yes" &&
33682
test "$tst_proto_fdopen" = "yes" &&
33683
test "$tst_compi_fdopen" = "yes" &&
33684
test "$tst_allow_fdopen" = "yes"; then
33685
{ echo "$as_me:$LINENO: result: yes" >&5
33686
echo "${ECHO_T}yes" >&6; }
33688
cat >>confdefs.h <<_ACEOF
33689
#define HAVE_FDOPEN 1
33692
ac_cv_func_fdopen="yes"
33694
{ echo "$as_me:$LINENO: result: no" >&5
33695
echo "${ECHO_T}no" >&6; }
33696
ac_cv_func_fdopen="no"
33700
curl_includes_ws2tcpip="\
33701
/* includes start */
33702
#ifdef HAVE_WINDOWS_H
33703
# ifndef WIN32_LEAN_AND_MEAN
33704
# define WIN32_LEAN_AND_MEAN
33706
# include <windows.h>
33707
# ifdef HAVE_WINSOCK2_H
33708
# include <winsock2.h>
33709
# ifdef HAVE_WS2TCPIP_H
33710
# include <ws2tcpip.h>
33714
/* includes end */"
33716
{ echo "$as_me:$LINENO: checking for windows.h" >&5
33717
echo $ECHO_N "checking for windows.h... $ECHO_C" >&6; }
33718
if test "${ac_cv_header_windows_h+set}" = set; then
33719
echo $ECHO_N "(cached) $ECHO_C" >&6
33722
cat >conftest.$ac_ext <<_ACEOF
33726
cat confdefs.h >>conftest.$ac_ext
33727
cat >>conftest.$ac_ext <<_ACEOF
33728
/* end confdefs.h. */
33731
#ifndef WIN32_LEAN_AND_MEAN
33732
#define WIN32_LEAN_AND_MEAN
33734
#include <windows.h>
33739
#if defined(__CYGWIN__) || defined(__CEGCC__)
33740
HAVE_WINDOWS_H shall not be defined.
33742
int dummy=2*WINVER;
33750
rm -f conftest.$ac_objext
33751
if { (ac_try="$ac_compile"
33752
case "(($ac_try" in
33753
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33754
*) ac_try_echo=$ac_try;;
33756
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33757
(eval "$ac_compile") 2>conftest.er1
33759
grep -v '^ *+' conftest.er1 >conftest.err
33761
cat conftest.err >&5
33762
echo "$as_me:$LINENO: \$? = $ac_status" >&5
33763
(exit $ac_status); } && {
33764
test -z "$ac_c_werror_flag" ||
33765
test ! -s conftest.err
33766
} && test -s conftest.$ac_objext; then
33768
ac_cv_header_windows_h="yes"
33771
echo "$as_me: failed program was:" >&5
33772
sed 's/^/| /' conftest.$ac_ext >&5
33775
ac_cv_header_windows_h="no"
33779
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33782
{ echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
33783
echo "${ECHO_T}$ac_cv_header_windows_h" >&6; }
33784
case "$ac_cv_header_windows_h" in
33787
cat >>confdefs.h <<_ACEOF
33788
#define HAVE_WINDOWS_H 1
33792
cat >>confdefs.h <<_ACEOF
33793
#define WIN32_LEAN_AND_MEAN 1
33800
{ echo "$as_me:$LINENO: checking for winsock2.h" >&5
33801
echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6; }
33802
if test "${ac_cv_header_winsock2_h+set}" = set; then
33803
echo $ECHO_N "(cached) $ECHO_C" >&6
33806
cat >conftest.$ac_ext <<_ACEOF
33810
cat confdefs.h >>conftest.$ac_ext
33811
cat >>conftest.$ac_ext <<_ACEOF
33812
/* end confdefs.h. */
33815
#ifndef WIN32_LEAN_AND_MEAN
33816
#define WIN32_LEAN_AND_MEAN
33818
#include <windows.h>
33819
#include <winsock2.h>
33824
#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
33825
HAVE_WINSOCK2_H shall not be defined.
33827
int dummy=2*IPPROTO_ESP;
33835
rm -f conftest.$ac_objext
33836
if { (ac_try="$ac_compile"
33837
case "(($ac_try" in
33838
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33839
*) ac_try_echo=$ac_try;;
33841
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33842
(eval "$ac_compile") 2>conftest.er1
33844
grep -v '^ *+' conftest.er1 >conftest.err
33846
cat conftest.err >&5
33847
echo "$as_me:$LINENO: \$? = $ac_status" >&5
33848
(exit $ac_status); } && {
33849
test -z "$ac_c_werror_flag" ||
33850
test ! -s conftest.err
33851
} && test -s conftest.$ac_objext; then
33853
ac_cv_header_winsock2_h="yes"
33856
echo "$as_me: failed program was:" >&5
33857
sed 's/^/| /' conftest.$ac_ext >&5
33860
ac_cv_header_winsock2_h="no"
33864
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33867
{ echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5
33868
echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6; }
33869
case "$ac_cv_header_winsock2_h" in
33872
cat >>confdefs.h <<_ACEOF
33873
#define HAVE_WINSOCK2_H 1
33880
{ echo "$as_me:$LINENO: checking for ws2tcpip.h" >&5
33881
echo $ECHO_N "checking for ws2tcpip.h... $ECHO_C" >&6; }
33882
if test "${ac_cv_header_ws2tcpip_h+set}" = set; then
33883
echo $ECHO_N "(cached) $ECHO_C" >&6
33886
cat >conftest.$ac_ext <<_ACEOF
33890
cat confdefs.h >>conftest.$ac_ext
33891
cat >>conftest.$ac_ext <<_ACEOF
33892
/* end confdefs.h. */
33895
#ifndef WIN32_LEAN_AND_MEAN
33896
#define WIN32_LEAN_AND_MEAN
33898
#include <windows.h>
33899
#include <winsock2.h>
33900
#include <ws2tcpip.h>
33905
#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
33906
HAVE_WS2TCPIP_H shall not be defined.
33908
int dummy=2*IP_PKTINFO;
33916
rm -f conftest.$ac_objext
33917
if { (ac_try="$ac_compile"
33918
case "(($ac_try" in
33919
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33920
*) ac_try_echo=$ac_try;;
33922
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33923
(eval "$ac_compile") 2>conftest.er1
33925
grep -v '^ *+' conftest.er1 >conftest.err
33927
cat conftest.err >&5
33928
echo "$as_me:$LINENO: \$? = $ac_status" >&5
33929
(exit $ac_status); } && {
33930
test -z "$ac_c_werror_flag" ||
33931
test ! -s conftest.err
33932
} && test -s conftest.$ac_objext; then
33934
ac_cv_header_ws2tcpip_h="yes"
33937
echo "$as_me: failed program was:" >&5
33938
sed 's/^/| /' conftest.$ac_ext >&5
33941
ac_cv_header_ws2tcpip_h="no"
33945
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33948
{ echo "$as_me:$LINENO: result: $ac_cv_header_ws2tcpip_h" >&5
33949
echo "${ECHO_T}$ac_cv_header_ws2tcpip_h" >&6; }
33950
case "$ac_cv_header_ws2tcpip_h" in
33953
cat >>confdefs.h <<_ACEOF
33954
#define HAVE_WS2TCPIP_H 1
33962
curl_includes_sys_socket="\
33963
/* includes start */
33964
#ifdef HAVE_SYS_TYPES_H
33965
# include <sys/types.h>
33967
#ifdef HAVE_SYS_SOCKET_H
33968
# include <sys/socket.h>
33970
/* includes end */"
33973
for ac_header in sys/types.h sys/socket.h
33975
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33976
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
33977
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33978
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33979
echo $ECHO_N "(cached) $ECHO_C" >&6
33981
cat >conftest.$ac_ext <<_ACEOF
33984
cat confdefs.h >>conftest.$ac_ext
33985
cat >>conftest.$ac_ext <<_ACEOF
33986
/* end confdefs.h. */
33987
$curl_includes_sys_socket
33989
#include <$ac_header>
33991
rm -f conftest.$ac_objext
33992
if { (ac_try="$ac_compile"
33993
case "(($ac_try" in
33994
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33995
*) ac_try_echo=$ac_try;;
33997
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33998
(eval "$ac_compile") 2>conftest.er1
34000
grep -v '^ *+' conftest.er1 >conftest.err
34002
cat conftest.err >&5
34003
echo "$as_me:$LINENO: \$? = $ac_status" >&5
34004
(exit $ac_status); } && {
34005
test -z "$ac_c_werror_flag" ||
34006
test ! -s conftest.err
34007
} && test -s conftest.$ac_objext; then
34008
eval "$as_ac_Header=yes"
34010
echo "$as_me: failed program was:" >&5
34011
sed 's/^/| /' conftest.$ac_ext >&5
34013
eval "$as_ac_Header=no"
34016
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34018
ac_res=`eval echo '${'$as_ac_Header'}'`
34019
{ echo "$as_me:$LINENO: result: $ac_res" >&5
34020
echo "${ECHO_T}$ac_res" >&6; }
34021
if test `eval echo '${'$as_ac_Header'}'` = yes; then
34022
cat >>confdefs.h <<_ACEOF
34023
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34032
curl_includes_netdb="\
34033
/* includes start */
34034
#ifdef HAVE_SYS_TYPES_H
34035
# include <sys/types.h>
34037
#ifdef HAVE_NETDB_H
34038
# include <netdb.h>
34040
/* includes end */"
34043
for ac_header in sys/types.h netdb.h
34045
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34046
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
34047
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34048
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34049
echo $ECHO_N "(cached) $ECHO_C" >&6
34051
cat >conftest.$ac_ext <<_ACEOF
34054
cat confdefs.h >>conftest.$ac_ext
34055
cat >>conftest.$ac_ext <<_ACEOF
34056
/* end confdefs.h. */
34057
$curl_includes_netdb
34059
#include <$ac_header>
34061
rm -f conftest.$ac_objext
34062
if { (ac_try="$ac_compile"
34063
case "(($ac_try" in
34064
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34065
*) ac_try_echo=$ac_try;;
34067
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34068
(eval "$ac_compile") 2>conftest.er1
34070
grep -v '^ *+' conftest.er1 >conftest.err
34072
cat conftest.err >&5
34073
echo "$as_me:$LINENO: \$? = $ac_status" >&5
34074
(exit $ac_status); } && {
34075
test -z "$ac_c_werror_flag" ||
34076
test ! -s conftest.err
34077
} && test -s conftest.$ac_objext; then
34078
eval "$as_ac_Header=yes"
34080
echo "$as_me: failed program was:" >&5
34081
sed 's/^/| /' conftest.$ac_ext >&5
34083
eval "$as_ac_Header=no"
34086
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34088
ac_res=`eval echo '${'$as_ac_Header'}'`
34089
{ echo "$as_me:$LINENO: result: $ac_res" >&5
34090
echo "${ECHO_T}$ac_res" >&6; }
34091
if test `eval echo '${'$as_ac_Header'}'` = yes; then
34092
cat >>confdefs.h <<_ACEOF
34093
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34103
tst_links_freeaddrinfo="unknown"
34104
tst_proto_freeaddrinfo="unknown"
34105
tst_compi_freeaddrinfo="unknown"
34106
tst_allow_freeaddrinfo="unknown"
34108
{ echo "$as_me:$LINENO: checking if freeaddrinfo can be linked" >&5
34109
echo $ECHO_N "checking if freeaddrinfo can be linked... $ECHO_C" >&6; }
34110
cat >conftest.$ac_ext <<_ACEOF
34114
cat confdefs.h >>conftest.$ac_ext
34115
cat >>conftest.$ac_ext <<_ACEOF
34116
/* end confdefs.h. */
34118
$curl_includes_ws2tcpip
34119
$curl_includes_sys_socket
34120
$curl_includes_netdb
34132
rm -f conftest.$ac_objext conftest$ac_exeext
34133
if { (ac_try="$ac_link"
34134
case "(($ac_try" in
34135
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34136
*) ac_try_echo=$ac_try;;
34138
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34139
(eval "$ac_link") 2>conftest.er1
34141
grep -v '^ *+' conftest.er1 >conftest.err
34143
cat conftest.err >&5
34144
echo "$as_me:$LINENO: \$? = $ac_status" >&5
34145
(exit $ac_status); } && {
34146
test -z "$ac_c_werror_flag" ||
34147
test ! -s conftest.err
34148
} && test -s conftest$ac_exeext &&
34149
$as_test_x conftest$ac_exeext; then
34151
{ echo "$as_me:$LINENO: result: yes" >&5
34152
echo "${ECHO_T}yes" >&6; }
34153
tst_links_freeaddrinfo="yes"
34156
echo "$as_me: failed program was:" >&5
34157
sed 's/^/| /' conftest.$ac_ext >&5
34160
{ echo "$as_me:$LINENO: result: no" >&5
34161
echo "${ECHO_T}no" >&6; }
34162
tst_links_freeaddrinfo="no"
34166
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34167
conftest$ac_exeext conftest.$ac_ext
34169
if test "$tst_links_freeaddrinfo" = "yes"; then
34170
{ echo "$as_me:$LINENO: checking if freeaddrinfo is prototyped" >&5
34171
echo $ECHO_N "checking if freeaddrinfo is prototyped... $ECHO_C" >&6; }
34172
cat >conftest.$ac_ext <<_ACEOF
34175
cat confdefs.h >>conftest.$ac_ext
34176
cat >>conftest.$ac_ext <<_ACEOF
34177
/* end confdefs.h. */
34179
$curl_includes_ws2tcpip
34180
$curl_includes_sys_socket
34181
$curl_includes_netdb
34184
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34185
$EGREP "freeaddrinfo" >/dev/null 2>&1; then
34187
{ echo "$as_me:$LINENO: result: yes" >&5
34188
echo "${ECHO_T}yes" >&6; }
34189
tst_proto_freeaddrinfo="yes"
34193
{ echo "$as_me:$LINENO: result: no" >&5
34194
echo "${ECHO_T}no" >&6; }
34195
tst_proto_freeaddrinfo="no"
34202
if test "$tst_proto_freeaddrinfo" = "yes"; then
34203
{ echo "$as_me:$LINENO: checking if freeaddrinfo is compilable" >&5
34204
echo $ECHO_N "checking if freeaddrinfo is compilable... $ECHO_C" >&6; }
34205
cat >conftest.$ac_ext <<_ACEOF
34209
cat confdefs.h >>conftest.$ac_ext
34210
cat >>conftest.$ac_ext <<_ACEOF
34211
/* end confdefs.h. */
34213
$curl_includes_ws2tcpip
34214
$curl_includes_sys_socket
34215
$curl_includes_netdb
34227
rm -f conftest.$ac_objext
34228
if { (ac_try="$ac_compile"
34229
case "(($ac_try" in
34230
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34231
*) ac_try_echo=$ac_try;;
34233
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34234
(eval "$ac_compile") 2>conftest.er1
34236
grep -v '^ *+' conftest.er1 >conftest.err
34238
cat conftest.err >&5
34239
echo "$as_me:$LINENO: \$? = $ac_status" >&5
34240
(exit $ac_status); } && {
34241
test -z "$ac_c_werror_flag" ||
34242
test ! -s conftest.err
34243
} && test -s conftest.$ac_objext; then
34245
{ echo "$as_me:$LINENO: result: yes" >&5
34246
echo "${ECHO_T}yes" >&6; }
34247
tst_compi_freeaddrinfo="yes"
34250
echo "$as_me: failed program was:" >&5
34251
sed 's/^/| /' conftest.$ac_ext >&5
34254
{ echo "$as_me:$LINENO: result: no" >&5
34255
echo "${ECHO_T}no" >&6; }
34256
tst_compi_freeaddrinfo="no"
34260
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34263
if test "$tst_compi_freeaddrinfo" = "yes"; then
34264
{ echo "$as_me:$LINENO: checking if freeaddrinfo usage allowed" >&5
34265
echo $ECHO_N "checking if freeaddrinfo usage allowed... $ECHO_C" >&6; }
34266
if test "x$curl_disallow_freeaddrinfo" != "xyes"; then
34267
{ echo "$as_me:$LINENO: result: yes" >&5
34268
echo "${ECHO_T}yes" >&6; }
34269
tst_allow_freeaddrinfo="yes"
34271
{ echo "$as_me:$LINENO: result: no" >&5
34272
echo "${ECHO_T}no" >&6; }
34273
tst_allow_freeaddrinfo="no"
34277
{ echo "$as_me:$LINENO: checking if freeaddrinfo might be used" >&5
34278
echo $ECHO_N "checking if freeaddrinfo might be used... $ECHO_C" >&6; }
34279
if test "$tst_links_freeaddrinfo" = "yes" &&
34280
test "$tst_proto_freeaddrinfo" = "yes" &&
34281
test "$tst_compi_freeaddrinfo" = "yes" &&
34282
test "$tst_allow_freeaddrinfo" = "yes"; then
34283
{ echo "$as_me:$LINENO: result: yes" >&5
34284
echo "${ECHO_T}yes" >&6; }
34286
cat >>confdefs.h <<_ACEOF
34287
#define HAVE_FREEADDRINFO 1
34290
ac_cv_func_freeaddrinfo="yes"
34292
{ echo "$as_me:$LINENO: result: no" >&5
34293
echo "${ECHO_T}no" >&6; }
34294
ac_cv_func_freeaddrinfo="no"
34298
curl_includes_ifaddrs="\
34299
/* includes start */
34300
#ifdef HAVE_SYS_TYPES_H
34301
# include <sys/types.h>
34303
#ifdef HAVE_SYS_SOCKET_H
34304
# include <sys/socket.h>
34306
#ifdef HAVE_NETINET_IN_H
34307
# include <netinet/in.h>
34309
#ifdef HAVE_IFADDRS_H
34310
# include <ifaddrs.h>
34312
/* includes end */"
34317
for ac_header in sys/types.h sys/socket.h netinet/in.h ifaddrs.h
34319
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34320
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
34321
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34322
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34323
echo $ECHO_N "(cached) $ECHO_C" >&6
34325
cat >conftest.$ac_ext <<_ACEOF
34328
cat confdefs.h >>conftest.$ac_ext
34329
cat >>conftest.$ac_ext <<_ACEOF
34330
/* end confdefs.h. */
34331
$curl_includes_ifaddrs
34333
#include <$ac_header>
34335
rm -f conftest.$ac_objext
34336
if { (ac_try="$ac_compile"
34337
case "(($ac_try" in
34338
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34339
*) ac_try_echo=$ac_try;;
34341
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34342
(eval "$ac_compile") 2>conftest.er1
34344
grep -v '^ *+' conftest.er1 >conftest.err
34346
cat conftest.err >&5
34347
echo "$as_me:$LINENO: \$? = $ac_status" >&5
34348
(exit $ac_status); } && {
34349
test -z "$ac_c_werror_flag" ||
34350
test ! -s conftest.err
34351
} && test -s conftest.$ac_objext; then
34352
eval "$as_ac_Header=yes"
34354
echo "$as_me: failed program was:" >&5
34355
sed 's/^/| /' conftest.$ac_ext >&5
34357
eval "$as_ac_Header=no"
34360
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34362
ac_res=`eval echo '${'$as_ac_Header'}'`
34363
{ echo "$as_me:$LINENO: result: $ac_res" >&5
34364
echo "${ECHO_T}$ac_res" >&6; }
34365
if test `eval echo '${'$as_ac_Header'}'` = yes; then
34366
cat >>confdefs.h <<_ACEOF
34367
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34377
tst_links_freeifaddrs="unknown"
34378
tst_proto_freeifaddrs="unknown"
34379
tst_compi_freeifaddrs="unknown"
34380
tst_allow_freeifaddrs="unknown"
34382
{ echo "$as_me:$LINENO: checking if freeifaddrs can be linked" >&5
34383
echo $ECHO_N "checking if freeifaddrs can be linked... $ECHO_C" >&6; }
34384
cat >conftest.$ac_ext <<_ACEOF
34388
cat confdefs.h >>conftest.$ac_ext
34389
cat >>conftest.$ac_ext <<_ACEOF
34390
/* end confdefs.h. */
34392
#define freeifaddrs innocuous_freeifaddrs
34394
# include <limits.h>
34396
# include <assert.h>
34402
char freeifaddrs ();
34403
#if defined __stub_freeifaddrs || defined __stub___freeifaddrs
34409
return freeifaddrs ();
34415
rm -f conftest.$ac_objext conftest$ac_exeext
34416
if { (ac_try="$ac_link"
34417
case "(($ac_try" in
34418
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34419
*) ac_try_echo=$ac_try;;
34421
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34422
(eval "$ac_link") 2>conftest.er1
34424
grep -v '^ *+' conftest.er1 >conftest.err
34426
cat conftest.err >&5
34427
echo "$as_me:$LINENO: \$? = $ac_status" >&5
34428
(exit $ac_status); } && {
34429
test -z "$ac_c_werror_flag" ||
34430
test ! -s conftest.err
34431
} && test -s conftest$ac_exeext &&
34432
$as_test_x conftest$ac_exeext; then
34434
{ echo "$as_me:$LINENO: result: yes" >&5
34435
echo "${ECHO_T}yes" >&6; }
34436
tst_links_freeifaddrs="yes"
34439
echo "$as_me: failed program was:" >&5
34440
sed 's/^/| /' conftest.$ac_ext >&5
34443
{ echo "$as_me:$LINENO: result: no" >&5
34444
echo "${ECHO_T}no" >&6; }
34445
tst_links_freeifaddrs="no"
34449
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34450
conftest$ac_exeext conftest.$ac_ext
34452
if test "$tst_links_freeifaddrs" = "yes"; then
34453
{ echo "$as_me:$LINENO: checking if freeifaddrs is prototyped" >&5
34454
echo $ECHO_N "checking if freeifaddrs is prototyped... $ECHO_C" >&6; }
34455
cat >conftest.$ac_ext <<_ACEOF
34458
cat confdefs.h >>conftest.$ac_ext
34459
cat >>conftest.$ac_ext <<_ACEOF
34460
/* end confdefs.h. */
34462
$curl_includes_ifaddrs
34465
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34466
$EGREP "freeifaddrs" >/dev/null 2>&1; then
34468
{ echo "$as_me:$LINENO: result: yes" >&5
34469
echo "${ECHO_T}yes" >&6; }
34470
tst_proto_freeifaddrs="yes"
34474
{ echo "$as_me:$LINENO: result: no" >&5
34475
echo "${ECHO_T}no" >&6; }
34476
tst_proto_freeifaddrs="no"
34483
if test "$tst_proto_freeifaddrs" = "yes"; then
34484
{ echo "$as_me:$LINENO: checking if freeifaddrs is compilable" >&5
34485
echo $ECHO_N "checking if freeifaddrs is compilable... $ECHO_C" >&6; }
34486
cat >conftest.$ac_ext <<_ACEOF
34490
cat confdefs.h >>conftest.$ac_ext
34491
cat >>conftest.$ac_ext <<_ACEOF
34492
/* end confdefs.h. */
34494
$curl_includes_ifaddrs
34506
rm -f conftest.$ac_objext
34507
if { (ac_try="$ac_compile"
34508
case "(($ac_try" in
34509
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34510
*) ac_try_echo=$ac_try;;
34512
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34513
(eval "$ac_compile") 2>conftest.er1
34515
grep -v '^ *+' conftest.er1 >conftest.err
34517
cat conftest.err >&5
34518
echo "$as_me:$LINENO: \$? = $ac_status" >&5
34519
(exit $ac_status); } && {
34520
test -z "$ac_c_werror_flag" ||
34521
test ! -s conftest.err
34522
} && test -s conftest.$ac_objext; then
34524
{ echo "$as_me:$LINENO: result: yes" >&5
34525
echo "${ECHO_T}yes" >&6; }
34526
tst_compi_freeifaddrs="yes"
34529
echo "$as_me: failed program was:" >&5
34530
sed 's/^/| /' conftest.$ac_ext >&5
34533
{ echo "$as_me:$LINENO: result: no" >&5
34534
echo "${ECHO_T}no" >&6; }
34535
tst_compi_freeifaddrs="no"
34539
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34542
if test "$tst_compi_freeifaddrs" = "yes"; then
34543
{ echo "$as_me:$LINENO: checking if freeifaddrs usage allowed" >&5
34544
echo $ECHO_N "checking if freeifaddrs usage allowed... $ECHO_C" >&6; }
34545
if test "x$curl_disallow_freeifaddrs" != "xyes"; then
34546
{ echo "$as_me:$LINENO: result: yes" >&5
34547
echo "${ECHO_T}yes" >&6; }
34548
tst_allow_freeifaddrs="yes"
34550
{ echo "$as_me:$LINENO: result: no" >&5
34551
echo "${ECHO_T}no" >&6; }
34552
tst_allow_freeifaddrs="no"
34556
{ echo "$as_me:$LINENO: checking if freeifaddrs might be used" >&5
34557
echo $ECHO_N "checking if freeifaddrs might be used... $ECHO_C" >&6; }
34558
if test "$tst_links_freeifaddrs" = "yes" &&
34559
test "$tst_proto_freeifaddrs" = "yes" &&
34560
test "$tst_compi_freeifaddrs" = "yes" &&
34561
test "$tst_allow_freeifaddrs" = "yes"; then
34562
{ echo "$as_me:$LINENO: result: yes" >&5
34563
echo "${ECHO_T}yes" >&6; }
34565
cat >>confdefs.h <<_ACEOF
34566
#define HAVE_FREEIFADDRS 1
34569
ac_cv_func_freeifaddrs="yes"
34571
{ echo "$as_me:$LINENO: result: no" >&5
34572
echo "${ECHO_T}no" >&6; }
34573
ac_cv_func_freeifaddrs="no"
34578
tst_links_ftruncate="unknown"
34579
tst_proto_ftruncate="unknown"
34580
tst_compi_ftruncate="unknown"
34581
tst_allow_ftruncate="unknown"
34583
{ echo "$as_me:$LINENO: checking if ftruncate can be linked" >&5
34584
echo $ECHO_N "checking if ftruncate can be linked... $ECHO_C" >&6; }
34585
cat >conftest.$ac_ext <<_ACEOF
34589
cat confdefs.h >>conftest.$ac_ext
34590
cat >>conftest.$ac_ext <<_ACEOF
34591
/* end confdefs.h. */
34593
#define ftruncate innocuous_ftruncate
34595
# include <limits.h>
34597
# include <assert.h>
34604
#if defined __stub_ftruncate || defined __stub___ftruncate
34610
return ftruncate ();
34616
rm -f conftest.$ac_objext conftest$ac_exeext
34617
if { (ac_try="$ac_link"
34618
case "(($ac_try" in
34619
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34620
*) ac_try_echo=$ac_try;;
34622
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34623
(eval "$ac_link") 2>conftest.er1
34625
grep -v '^ *+' conftest.er1 >conftest.err
34627
cat conftest.err >&5
34628
echo "$as_me:$LINENO: \$? = $ac_status" >&5
34629
(exit $ac_status); } && {
34630
test -z "$ac_c_werror_flag" ||
34631
test ! -s conftest.err
34632
} && test -s conftest$ac_exeext &&
34633
$as_test_x conftest$ac_exeext; then
34635
{ echo "$as_me:$LINENO: result: yes" >&5
34636
echo "${ECHO_T}yes" >&6; }
34637
tst_links_ftruncate="yes"
34640
echo "$as_me: failed program was:" >&5
34641
sed 's/^/| /' conftest.$ac_ext >&5
34644
{ echo "$as_me:$LINENO: result: no" >&5
34645
echo "${ECHO_T}no" >&6; }
34646
tst_links_ftruncate="no"
34650
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34651
conftest$ac_exeext conftest.$ac_ext
34653
if test "$tst_links_ftruncate" = "yes"; then
34654
{ echo "$as_me:$LINENO: checking if ftruncate is prototyped" >&5
34655
echo $ECHO_N "checking if ftruncate is prototyped... $ECHO_C" >&6; }
34656
cat >conftest.$ac_ext <<_ACEOF
34659
cat confdefs.h >>conftest.$ac_ext
34660
cat >>conftest.$ac_ext <<_ACEOF
34661
/* end confdefs.h. */
34663
$curl_includes_unistd
34666
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34667
$EGREP "ftruncate" >/dev/null 2>&1; then
34669
{ echo "$as_me:$LINENO: result: yes" >&5
34670
echo "${ECHO_T}yes" >&6; }
34671
tst_proto_ftruncate="yes"
34675
{ echo "$as_me:$LINENO: result: no" >&5
34676
echo "${ECHO_T}no" >&6; }
34677
tst_proto_ftruncate="no"
34684
if test "$tst_proto_ftruncate" = "yes"; then
34685
{ echo "$as_me:$LINENO: checking if ftruncate is compilable" >&5
34686
echo $ECHO_N "checking if ftruncate is compilable... $ECHO_C" >&6; }
34687
cat >conftest.$ac_ext <<_ACEOF
34691
cat confdefs.h >>conftest.$ac_ext
34692
cat >>conftest.$ac_ext <<_ACEOF
34693
/* end confdefs.h. */
34695
$curl_includes_unistd
34700
if(0 != ftruncate(0, 0))
34708
rm -f conftest.$ac_objext
34709
if { (ac_try="$ac_compile"
34710
case "(($ac_try" in
34711
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34712
*) ac_try_echo=$ac_try;;
34714
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34715
(eval "$ac_compile") 2>conftest.er1
34717
grep -v '^ *+' conftest.er1 >conftest.err
34719
cat conftest.err >&5
34720
echo "$as_me:$LINENO: \$? = $ac_status" >&5
34721
(exit $ac_status); } && {
34722
test -z "$ac_c_werror_flag" ||
34723
test ! -s conftest.err
34724
} && test -s conftest.$ac_objext; then
34726
{ echo "$as_me:$LINENO: result: yes" >&5
34727
echo "${ECHO_T}yes" >&6; }
34728
tst_compi_ftruncate="yes"
34731
echo "$as_me: failed program was:" >&5
34732
sed 's/^/| /' conftest.$ac_ext >&5
34735
{ echo "$as_me:$LINENO: result: no" >&5
34736
echo "${ECHO_T}no" >&6; }
34737
tst_compi_ftruncate="no"
34741
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34744
if test "$tst_compi_ftruncate" = "yes"; then
34745
{ echo "$as_me:$LINENO: checking if ftruncate usage allowed" >&5
34746
echo $ECHO_N "checking if ftruncate usage allowed... $ECHO_C" >&6; }
34747
if test "x$curl_disallow_ftruncate" != "xyes"; then
34748
{ echo "$as_me:$LINENO: result: yes" >&5
34749
echo "${ECHO_T}yes" >&6; }
34750
tst_allow_ftruncate="yes"
34752
{ echo "$as_me:$LINENO: result: no" >&5
34753
echo "${ECHO_T}no" >&6; }
34754
tst_allow_ftruncate="no"
34758
{ echo "$as_me:$LINENO: checking if ftruncate might be used" >&5
34759
echo $ECHO_N "checking if ftruncate might be used... $ECHO_C" >&6; }
34760
if test "$tst_links_ftruncate" = "yes" &&
34761
test "$tst_proto_ftruncate" = "yes" &&
34762
test "$tst_compi_ftruncate" = "yes" &&
34763
test "$tst_allow_ftruncate" = "yes"; then
34764
{ echo "$as_me:$LINENO: result: yes" >&5
34765
echo "${ECHO_T}yes" >&6; }
34767
cat >>confdefs.h <<_ACEOF
34768
#define HAVE_FTRUNCATE 1
34771
ac_cv_func_ftruncate="yes"
34773
{ echo "$as_me:$LINENO: result: no" >&5
34774
echo "${ECHO_T}no" >&6; }
34775
ac_cv_func_ftruncate="no"
34779
curl_includes_stdlib="\
34780
/* includes start */
34781
#ifdef HAVE_SYS_TYPES_H
34782
# include <sys/types.h>
34784
#ifdef HAVE_STDLIB_H
34785
# include <stdlib.h>
34787
/* includes end */"
34790
for ac_header in sys/types.h stdlib.h
34792
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34793
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
34794
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34795
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34796
echo $ECHO_N "(cached) $ECHO_C" >&6
34798
cat >conftest.$ac_ext <<_ACEOF
34801
cat confdefs.h >>conftest.$ac_ext
34802
cat >>conftest.$ac_ext <<_ACEOF
34803
/* end confdefs.h. */
34804
$curl_includes_stdlib
34806
#include <$ac_header>
34808
rm -f conftest.$ac_objext
34809
if { (ac_try="$ac_compile"
34810
case "(($ac_try" in
34811
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34812
*) ac_try_echo=$ac_try;;
34814
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34815
(eval "$ac_compile") 2>conftest.er1
34817
grep -v '^ *+' conftest.er1 >conftest.err
34819
cat conftest.err >&5
34820
echo "$as_me:$LINENO: \$? = $ac_status" >&5
34821
(exit $ac_status); } && {
34822
test -z "$ac_c_werror_flag" ||
34823
test ! -s conftest.err
34824
} && test -s conftest.$ac_objext; then
34825
eval "$as_ac_Header=yes"
34827
echo "$as_me: failed program was:" >&5
34828
sed 's/^/| /' conftest.$ac_ext >&5
34830
eval "$as_ac_Header=no"
34833
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34835
ac_res=`eval echo '${'$as_ac_Header'}'`
34836
{ echo "$as_me:$LINENO: result: $ac_res" >&5
34837
echo "${ECHO_T}$ac_res" >&6; }
34838
if test `eval echo '${'$as_ac_Header'}'` = yes; then
34839
cat >>confdefs.h <<_ACEOF
34840
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34849
curl_includes_string="\
34850
/* includes start */
34851
#ifdef HAVE_SYS_TYPES_H
34852
# include <sys/types.h>
34854
#ifdef HAVE_STRING_H
34855
# include <string.h>
34857
#ifdef HAVE_STRINGS_H
34858
# include <strings.h>
34860
/* includes end */"
34864
for ac_header in sys/types.h string.h strings.h
34866
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34867
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
34868
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34869
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34870
echo $ECHO_N "(cached) $ECHO_C" >&6
34872
cat >conftest.$ac_ext <<_ACEOF
34875
cat confdefs.h >>conftest.$ac_ext
34876
cat >>conftest.$ac_ext <<_ACEOF
34877
/* end confdefs.h. */
34878
$curl_includes_string
34880
#include <$ac_header>
34882
rm -f conftest.$ac_objext
34883
if { (ac_try="$ac_compile"
34884
case "(($ac_try" in
34885
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34886
*) ac_try_echo=$ac_try;;
34888
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34889
(eval "$ac_compile") 2>conftest.er1
34891
grep -v '^ *+' conftest.er1 >conftest.err
34893
cat conftest.err >&5
34894
echo "$as_me:$LINENO: \$? = $ac_status" >&5
34895
(exit $ac_status); } && {
34896
test -z "$ac_c_werror_flag" ||
34897
test ! -s conftest.err
34898
} && test -s conftest.$ac_objext; then
34899
eval "$as_ac_Header=yes"
34901
echo "$as_me: failed program was:" >&5
34902
sed 's/^/| /' conftest.$ac_ext >&5
34904
eval "$as_ac_Header=no"
34907
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34909
ac_res=`eval echo '${'$as_ac_Header'}'`
34910
{ echo "$as_me:$LINENO: result: $ac_res" >&5
34911
echo "${ECHO_T}$ac_res" >&6; }
34912
if test `eval echo '${'$as_ac_Header'}'` = yes; then
34913
cat >>confdefs.h <<_ACEOF
34914
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34924
tst_links_getaddrinfo="unknown"
34925
tst_proto_getaddrinfo="unknown"
34926
tst_compi_getaddrinfo="unknown"
34927
tst_works_getaddrinfo="unknown"
34928
tst_allow_getaddrinfo="unknown"
34930
{ echo "$as_me:$LINENO: checking if getaddrinfo can be linked" >&5
34931
echo $ECHO_N "checking if getaddrinfo can be linked... $ECHO_C" >&6; }
34932
cat >conftest.$ac_ext <<_ACEOF
34936
cat confdefs.h >>conftest.$ac_ext
34937
cat >>conftest.$ac_ext <<_ACEOF
34938
/* end confdefs.h. */
34940
$curl_includes_ws2tcpip
34941
$curl_includes_sys_socket
34942
$curl_includes_netdb
34947
if(0 != getaddrinfo(0, 0, 0, 0))
34955
rm -f conftest.$ac_objext conftest$ac_exeext
34956
if { (ac_try="$ac_link"
34957
case "(($ac_try" in
34958
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34959
*) ac_try_echo=$ac_try;;
34961
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34962
(eval "$ac_link") 2>conftest.er1
34964
grep -v '^ *+' conftest.er1 >conftest.err
34966
cat conftest.err >&5
34967
echo "$as_me:$LINENO: \$? = $ac_status" >&5
34968
(exit $ac_status); } && {
34969
test -z "$ac_c_werror_flag" ||
34970
test ! -s conftest.err
34971
} && test -s conftest$ac_exeext &&
34972
$as_test_x conftest$ac_exeext; then
34974
{ echo "$as_me:$LINENO: result: yes" >&5
34975
echo "${ECHO_T}yes" >&6; }
34976
tst_links_getaddrinfo="yes"
34979
echo "$as_me: failed program was:" >&5
34980
sed 's/^/| /' conftest.$ac_ext >&5
34983
{ echo "$as_me:$LINENO: result: no" >&5
34984
echo "${ECHO_T}no" >&6; }
34985
tst_links_getaddrinfo="no"
34989
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34990
conftest$ac_exeext conftest.$ac_ext
34992
if test "$tst_links_getaddrinfo" = "yes"; then
34993
{ echo "$as_me:$LINENO: checking if getaddrinfo is prototyped" >&5
34994
echo $ECHO_N "checking if getaddrinfo is prototyped... $ECHO_C" >&6; }
34995
cat >conftest.$ac_ext <<_ACEOF
34998
cat confdefs.h >>conftest.$ac_ext
34999
cat >>conftest.$ac_ext <<_ACEOF
35000
/* end confdefs.h. */
35002
$curl_includes_ws2tcpip
35003
$curl_includes_sys_socket
35004
$curl_includes_netdb
35007
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35008
$EGREP "getaddrinfo" >/dev/null 2>&1; then
35010
{ echo "$as_me:$LINENO: result: yes" >&5
35011
echo "${ECHO_T}yes" >&6; }
35012
tst_proto_getaddrinfo="yes"
35016
{ echo "$as_me:$LINENO: result: no" >&5
35017
echo "${ECHO_T}no" >&6; }
35018
tst_proto_getaddrinfo="no"
35025
if test "$tst_proto_getaddrinfo" = "yes"; then
35026
{ echo "$as_me:$LINENO: checking if getaddrinfo is compilable" >&5
35027
echo $ECHO_N "checking if getaddrinfo is compilable... $ECHO_C" >&6; }
35028
cat >conftest.$ac_ext <<_ACEOF
35032
cat confdefs.h >>conftest.$ac_ext
35033
cat >>conftest.$ac_ext <<_ACEOF
35034
/* end confdefs.h. */
35036
$curl_includes_ws2tcpip
35037
$curl_includes_sys_socket
35038
$curl_includes_netdb
35043
if(0 != getaddrinfo(0, 0, 0, 0))
35051
rm -f conftest.$ac_objext
35052
if { (ac_try="$ac_compile"
35053
case "(($ac_try" in
35054
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35055
*) ac_try_echo=$ac_try;;
35057
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35058
(eval "$ac_compile") 2>conftest.er1
35060
grep -v '^ *+' conftest.er1 >conftest.err
35062
cat conftest.err >&5
35063
echo "$as_me:$LINENO: \$? = $ac_status" >&5
35064
(exit $ac_status); } && {
35065
test -z "$ac_c_werror_flag" ||
35066
test ! -s conftest.err
35067
} && test -s conftest.$ac_objext; then
35069
{ echo "$as_me:$LINENO: result: yes" >&5
35070
echo "${ECHO_T}yes" >&6; }
35071
tst_compi_getaddrinfo="yes"
35074
echo "$as_me: failed program was:" >&5
35075
sed 's/^/| /' conftest.$ac_ext >&5
35078
{ echo "$as_me:$LINENO: result: no" >&5
35079
echo "${ECHO_T}no" >&6; }
35080
tst_compi_getaddrinfo="no"
35084
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35087
if test "x$cross_compiling" != "xyes" &&
35088
test "$tst_compi_getaddrinfo" = "yes"; then
35089
{ echo "$as_me:$LINENO: checking if getaddrinfo seems to work" >&5
35090
echo $ECHO_N "checking if getaddrinfo seems to work... $ECHO_C" >&6; }
35091
if test "$cross_compiling" = yes; then
35092
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
35093
See \`config.log' for more details." >&5
35094
echo "$as_me: error: cannot run test program while cross compiling
35095
See \`config.log' for more details." >&2;}
35096
{ (exit 1); exit 1; }; }
35098
cat >conftest.$ac_ext <<_ACEOF
35102
cat confdefs.h >>conftest.$ac_ext
35103
cat >>conftest.$ac_ext <<_ACEOF
35104
/* end confdefs.h. */
35106
$curl_includes_ws2tcpip
35107
$curl_includes_stdlib
35108
$curl_includes_string
35109
$curl_includes_sys_socket
35110
$curl_includes_netdb
35115
struct addrinfo hints;
35116
struct addrinfo *ai = 0;
35119
memset(&hints, 0, sizeof(hints));
35120
hints.ai_flags = AI_NUMERICHOST;
35121
hints.ai_family = AF_UNSPEC;
35122
hints.ai_socktype = SOCK_STREAM;
35123
error = getaddrinfo("127.0.0.1", 0, &hints, &ai);
35125
exit(1); /* fail */
35134
rm -f conftest$ac_exeext
35135
if { (ac_try="$ac_link"
35136
case "(($ac_try" in
35137
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35138
*) ac_try_echo=$ac_try;;
35140
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35141
(eval "$ac_link") 2>&5
35143
echo "$as_me:$LINENO: \$? = $ac_status" >&5
35144
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35145
{ (case "(($ac_try" in
35146
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35147
*) ac_try_echo=$ac_try;;
35149
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35150
(eval "$ac_try") 2>&5
35152
echo "$as_me:$LINENO: \$? = $ac_status" >&5
35153
(exit $ac_status); }; }; then
35155
{ echo "$as_me:$LINENO: result: yes" >&5
35156
echo "${ECHO_T}yes" >&6; }
35157
tst_works_getaddrinfo="yes"
35160
echo "$as_me: program exited with status $ac_status" >&5
35161
echo "$as_me: failed program was:" >&5
35162
sed 's/^/| /' conftest.$ac_ext >&5
35164
( exit $ac_status )
35166
{ echo "$as_me:$LINENO: result: no" >&5
35167
echo "${ECHO_T}no" >&6; }
35168
tst_works_getaddrinfo="no"
35171
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35177
if test "$tst_compi_getaddrinfo" = "yes" &&
35178
test "$tst_works_getaddrinfo" != "no"; then
35179
{ echo "$as_me:$LINENO: checking if getaddrinfo usage allowed" >&5
35180
echo $ECHO_N "checking if getaddrinfo usage allowed... $ECHO_C" >&6; }
35181
if test "x$curl_disallow_getaddrinfo" != "xyes"; then
35182
{ echo "$as_me:$LINENO: result: yes" >&5
35183
echo "${ECHO_T}yes" >&6; }
35184
tst_allow_getaddrinfo="yes"
35186
{ echo "$as_me:$LINENO: result: no" >&5
35187
echo "${ECHO_T}no" >&6; }
35188
tst_allow_getaddrinfo="no"
35192
{ echo "$as_me:$LINENO: checking if getaddrinfo might be used" >&5
35193
echo $ECHO_N "checking if getaddrinfo might be used... $ECHO_C" >&6; }
35194
if test "$tst_links_getaddrinfo" = "yes" &&
35195
test "$tst_proto_getaddrinfo" = "yes" &&
35196
test "$tst_compi_getaddrinfo" = "yes" &&
35197
test "$tst_allow_getaddrinfo" = "yes" &&
35198
test "$tst_works_getaddrinfo" != "no"; then
35199
{ echo "$as_me:$LINENO: result: yes" >&5
35200
echo "${ECHO_T}yes" >&6; }
35202
cat >>confdefs.h <<_ACEOF
35203
#define HAVE_GETADDRINFO 1
35206
ac_cv_func_getaddrinfo="yes"
35208
{ echo "$as_me:$LINENO: result: no" >&5
35209
echo "${ECHO_T}no" >&6; }
35210
ac_cv_func_getaddrinfo="no"
35214
curl_includes_winsock2="\
35215
/* includes start */
35216
#ifdef HAVE_WINDOWS_H
35217
# ifndef WIN32_LEAN_AND_MEAN
35218
# define WIN32_LEAN_AND_MEAN
35220
# include <windows.h>
35221
# ifdef HAVE_WINSOCK2_H
35222
# include <winsock2.h>
35224
# ifdef HAVE_WINSOCK_H
35225
# include <winsock.h>
35229
/* includes end */"
35231
{ echo "$as_me:$LINENO: checking for windows.h" >&5
35232
echo $ECHO_N "checking for windows.h... $ECHO_C" >&6; }
35233
if test "${ac_cv_header_windows_h+set}" = set; then
35234
echo $ECHO_N "(cached) $ECHO_C" >&6
35237
cat >conftest.$ac_ext <<_ACEOF
35241
cat confdefs.h >>conftest.$ac_ext
35242
cat >>conftest.$ac_ext <<_ACEOF
35243
/* end confdefs.h. */
35246
#ifndef WIN32_LEAN_AND_MEAN
35247
#define WIN32_LEAN_AND_MEAN
35249
#include <windows.h>
35254
#if defined(__CYGWIN__) || defined(__CEGCC__)
35255
HAVE_WINDOWS_H shall not be defined.
35257
int dummy=2*WINVER;
35265
rm -f conftest.$ac_objext
35266
if { (ac_try="$ac_compile"
35267
case "(($ac_try" in
35268
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35269
*) ac_try_echo=$ac_try;;
35271
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35272
(eval "$ac_compile") 2>conftest.er1
35274
grep -v '^ *+' conftest.er1 >conftest.err
35276
cat conftest.err >&5
35277
echo "$as_me:$LINENO: \$? = $ac_status" >&5
35278
(exit $ac_status); } && {
35279
test -z "$ac_c_werror_flag" ||
35280
test ! -s conftest.err
35281
} && test -s conftest.$ac_objext; then
35283
ac_cv_header_windows_h="yes"
35286
echo "$as_me: failed program was:" >&5
35287
sed 's/^/| /' conftest.$ac_ext >&5
35290
ac_cv_header_windows_h="no"
35294
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35297
{ echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
35298
echo "${ECHO_T}$ac_cv_header_windows_h" >&6; }
35299
case "$ac_cv_header_windows_h" in
35302
cat >>confdefs.h <<_ACEOF
35303
#define HAVE_WINDOWS_H 1
35307
cat >>confdefs.h <<_ACEOF
35308
#define WIN32_LEAN_AND_MEAN 1
35315
{ echo "$as_me:$LINENO: checking for winsock.h" >&5
35316
echo $ECHO_N "checking for winsock.h... $ECHO_C" >&6; }
35317
if test "${ac_cv_header_winsock_h+set}" = set; then
35318
echo $ECHO_N "(cached) $ECHO_C" >&6
35321
cat >conftest.$ac_ext <<_ACEOF
35325
cat confdefs.h >>conftest.$ac_ext
35326
cat >>conftest.$ac_ext <<_ACEOF
35327
/* end confdefs.h. */
35330
#ifndef WIN32_LEAN_AND_MEAN
35331
#define WIN32_LEAN_AND_MEAN
35333
#include <windows.h>
35334
#include <winsock.h>
35339
#if defined(__CYGWIN__) || defined(__CEGCC__)
35340
HAVE_WINSOCK_H shall not be defined.
35342
int dummy=WSACleanup();
35350
rm -f conftest.$ac_objext
35351
if { (ac_try="$ac_compile"
35352
case "(($ac_try" in
35353
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35354
*) ac_try_echo=$ac_try;;
35356
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35357
(eval "$ac_compile") 2>conftest.er1
35359
grep -v '^ *+' conftest.er1 >conftest.err
35361
cat conftest.err >&5
35362
echo "$as_me:$LINENO: \$? = $ac_status" >&5
35363
(exit $ac_status); } && {
35364
test -z "$ac_c_werror_flag" ||
35365
test ! -s conftest.err
35366
} && test -s conftest.$ac_objext; then
35368
ac_cv_header_winsock_h="yes"
35371
echo "$as_me: failed program was:" >&5
35372
sed 's/^/| /' conftest.$ac_ext >&5
35375
ac_cv_header_winsock_h="no"
35379
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35382
{ echo "$as_me:$LINENO: result: $ac_cv_header_winsock_h" >&5
35383
echo "${ECHO_T}$ac_cv_header_winsock_h" >&6; }
35384
case "$ac_cv_header_winsock_h" in
35387
cat >>confdefs.h <<_ACEOF
35388
#define HAVE_WINSOCK_H 1
35395
{ echo "$as_me:$LINENO: checking for winsock2.h" >&5
35396
echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6; }
35397
if test "${ac_cv_header_winsock2_h+set}" = set; then
35398
echo $ECHO_N "(cached) $ECHO_C" >&6
35401
cat >conftest.$ac_ext <<_ACEOF
35405
cat confdefs.h >>conftest.$ac_ext
35406
cat >>conftest.$ac_ext <<_ACEOF
35407
/* end confdefs.h. */
35410
#ifndef WIN32_LEAN_AND_MEAN
35411
#define WIN32_LEAN_AND_MEAN
35413
#include <windows.h>
35414
#include <winsock2.h>
35419
#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
35420
HAVE_WINSOCK2_H shall not be defined.
35422
int dummy=2*IPPROTO_ESP;
35430
rm -f conftest.$ac_objext
35431
if { (ac_try="$ac_compile"
35432
case "(($ac_try" in
35433
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35434
*) ac_try_echo=$ac_try;;
35436
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35437
(eval "$ac_compile") 2>conftest.er1
35439
grep -v '^ *+' conftest.er1 >conftest.err
35441
cat conftest.err >&5
35442
echo "$as_me:$LINENO: \$? = $ac_status" >&5
35443
(exit $ac_status); } && {
35444
test -z "$ac_c_werror_flag" ||
35445
test ! -s conftest.err
35446
} && test -s conftest.$ac_objext; then
35448
ac_cv_header_winsock2_h="yes"
35451
echo "$as_me: failed program was:" >&5
35452
sed 's/^/| /' conftest.$ac_ext >&5
35455
ac_cv_header_winsock2_h="no"
35459
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35462
{ echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5
35463
echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6; }
35464
case "$ac_cv_header_winsock2_h" in
35467
cat >>confdefs.h <<_ACEOF
35468
#define HAVE_WINSOCK2_H 1
35477
tst_links_gethostbyaddr="unknown"
35478
tst_proto_gethostbyaddr="unknown"
35479
tst_compi_gethostbyaddr="unknown"
35480
tst_allow_gethostbyaddr="unknown"
35482
{ echo "$as_me:$LINENO: checking if gethostbyaddr can be linked" >&5
35483
echo $ECHO_N "checking if gethostbyaddr can be linked... $ECHO_C" >&6; }
35484
cat >conftest.$ac_ext <<_ACEOF
35488
cat confdefs.h >>conftest.$ac_ext
35489
cat >>conftest.$ac_ext <<_ACEOF
35490
/* end confdefs.h. */
35492
$curl_includes_winsock2
35493
$curl_includes_netdb
35498
if(0 != gethostbyaddr(0, 0, 0))
35506
rm -f conftest.$ac_objext conftest$ac_exeext
35507
if { (ac_try="$ac_link"
35508
case "(($ac_try" in
35509
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35510
*) ac_try_echo=$ac_try;;
35512
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35513
(eval "$ac_link") 2>conftest.er1
35515
grep -v '^ *+' conftest.er1 >conftest.err
35517
cat conftest.err >&5
35518
echo "$as_me:$LINENO: \$? = $ac_status" >&5
35519
(exit $ac_status); } && {
35520
test -z "$ac_c_werror_flag" ||
35521
test ! -s conftest.err
35522
} && test -s conftest$ac_exeext &&
35523
$as_test_x conftest$ac_exeext; then
35525
{ echo "$as_me:$LINENO: result: yes" >&5
35526
echo "${ECHO_T}yes" >&6; }
35527
tst_links_gethostbyaddr="yes"
35530
echo "$as_me: failed program was:" >&5
35531
sed 's/^/| /' conftest.$ac_ext >&5
35534
{ echo "$as_me:$LINENO: result: no" >&5
35535
echo "${ECHO_T}no" >&6; }
35536
tst_links_gethostbyaddr="no"
35540
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35541
conftest$ac_exeext conftest.$ac_ext
35543
if test "$tst_links_gethostbyaddr" = "yes"; then
35544
{ echo "$as_me:$LINENO: checking if gethostbyaddr is prototyped" >&5
35545
echo $ECHO_N "checking if gethostbyaddr is prototyped... $ECHO_C" >&6; }
35546
cat >conftest.$ac_ext <<_ACEOF
35549
cat confdefs.h >>conftest.$ac_ext
35550
cat >>conftest.$ac_ext <<_ACEOF
35551
/* end confdefs.h. */
35553
$curl_includes_winsock2
35554
$curl_includes_netdb
35557
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35558
$EGREP "gethostbyaddr" >/dev/null 2>&1; then
35560
{ echo "$as_me:$LINENO: result: yes" >&5
35561
echo "${ECHO_T}yes" >&6; }
35562
tst_proto_gethostbyaddr="yes"
35566
{ echo "$as_me:$LINENO: result: no" >&5
35567
echo "${ECHO_T}no" >&6; }
35568
tst_proto_gethostbyaddr="no"
35575
if test "$tst_proto_gethostbyaddr" = "yes"; then
35576
{ echo "$as_me:$LINENO: checking if gethostbyaddr is compilable" >&5
35577
echo $ECHO_N "checking if gethostbyaddr is compilable... $ECHO_C" >&6; }
35578
cat >conftest.$ac_ext <<_ACEOF
35582
cat confdefs.h >>conftest.$ac_ext
35583
cat >>conftest.$ac_ext <<_ACEOF
35584
/* end confdefs.h. */
35586
$curl_includes_winsock2
35587
$curl_includes_netdb
35592
if(0 != gethostbyaddr(0, 0, 0))
35600
rm -f conftest.$ac_objext
35601
if { (ac_try="$ac_compile"
35602
case "(($ac_try" in
35603
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35604
*) ac_try_echo=$ac_try;;
35606
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35607
(eval "$ac_compile") 2>conftest.er1
35609
grep -v '^ *+' conftest.er1 >conftest.err
35611
cat conftest.err >&5
35612
echo "$as_me:$LINENO: \$? = $ac_status" >&5
35613
(exit $ac_status); } && {
35614
test -z "$ac_c_werror_flag" ||
35615
test ! -s conftest.err
35616
} && test -s conftest.$ac_objext; then
35618
{ echo "$as_me:$LINENO: result: yes" >&5
35619
echo "${ECHO_T}yes" >&6; }
35620
tst_compi_gethostbyaddr="yes"
35623
echo "$as_me: failed program was:" >&5
35624
sed 's/^/| /' conftest.$ac_ext >&5
35627
{ echo "$as_me:$LINENO: result: no" >&5
35628
echo "${ECHO_T}no" >&6; }
35629
tst_compi_gethostbyaddr="no"
35633
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35636
if test "$tst_compi_gethostbyaddr" = "yes"; then
35637
{ echo "$as_me:$LINENO: checking if gethostbyaddr usage allowed" >&5
35638
echo $ECHO_N "checking if gethostbyaddr usage allowed... $ECHO_C" >&6; }
35639
if test "x$curl_disallow_gethostbyaddr" != "xyes"; then
35640
{ echo "$as_me:$LINENO: result: yes" >&5
35641
echo "${ECHO_T}yes" >&6; }
35642
tst_allow_gethostbyaddr="yes"
35644
{ echo "$as_me:$LINENO: result: no" >&5
35645
echo "${ECHO_T}no" >&6; }
35646
tst_allow_gethostbyaddr="no"
35650
{ echo "$as_me:$LINENO: checking if gethostbyaddr might be used" >&5
35651
echo $ECHO_N "checking if gethostbyaddr might be used... $ECHO_C" >&6; }
35652
if test "$tst_links_gethostbyaddr" = "yes" &&
35653
test "$tst_proto_gethostbyaddr" = "yes" &&
35654
test "$tst_compi_gethostbyaddr" = "yes" &&
35655
test "$tst_allow_gethostbyaddr" = "yes"; then
35656
{ echo "$as_me:$LINENO: result: yes" >&5
35657
echo "${ECHO_T}yes" >&6; }
35659
cat >>confdefs.h <<_ACEOF
35660
#define HAVE_GETHOSTBYADDR 1
35663
ac_cv_func_gethostbyaddr="yes"
35665
{ echo "$as_me:$LINENO: result: no" >&5
35666
echo "${ECHO_T}no" >&6; }
35667
ac_cv_func_gethostbyaddr="no"
35672
tst_links_gethostbyaddr_r="unknown"
35673
tst_proto_gethostbyaddr_r="unknown"
35674
tst_compi_gethostbyaddr_r="unknown"
35675
tst_allow_gethostbyaddr_r="unknown"
35676
tst_nargs_gethostbyaddr_r="unknown"
35678
{ echo "$as_me:$LINENO: checking if gethostbyaddr_r can be linked" >&5
35679
echo $ECHO_N "checking if gethostbyaddr_r can be linked... $ECHO_C" >&6; }
35680
cat >conftest.$ac_ext <<_ACEOF
35684
cat confdefs.h >>conftest.$ac_ext
35685
cat >>conftest.$ac_ext <<_ACEOF
35686
/* end confdefs.h. */
35688
#define gethostbyaddr_r innocuous_gethostbyaddr_r
35690
# include <limits.h>
35692
# include <assert.h>
35694
#undef gethostbyaddr_r
35698
char gethostbyaddr_r ();
35699
#if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r
35705
return gethostbyaddr_r ();
35711
rm -f conftest.$ac_objext conftest$ac_exeext
35712
if { (ac_try="$ac_link"
35713
case "(($ac_try" in
35714
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35715
*) ac_try_echo=$ac_try;;
35717
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35718
(eval "$ac_link") 2>conftest.er1
35720
grep -v '^ *+' conftest.er1 >conftest.err
35722
cat conftest.err >&5
35723
echo "$as_me:$LINENO: \$? = $ac_status" >&5
35724
(exit $ac_status); } && {
35725
test -z "$ac_c_werror_flag" ||
35726
test ! -s conftest.err
35727
} && test -s conftest$ac_exeext &&
35728
$as_test_x conftest$ac_exeext; then
35730
{ echo "$as_me:$LINENO: result: yes" >&5
35731
echo "${ECHO_T}yes" >&6; }
35732
tst_links_gethostbyaddr_r="yes"
35735
echo "$as_me: failed program was:" >&5
35736
sed 's/^/| /' conftest.$ac_ext >&5
35739
{ echo "$as_me:$LINENO: result: no" >&5
35740
echo "${ECHO_T}no" >&6; }
35741
tst_links_gethostbyaddr_r="no"
35745
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35746
conftest$ac_exeext conftest.$ac_ext
35748
if test "$tst_links_gethostbyaddr_r" = "yes"; then
35749
{ echo "$as_me:$LINENO: checking if gethostbyaddr_r is prototyped" >&5
35750
echo $ECHO_N "checking if gethostbyaddr_r is prototyped... $ECHO_C" >&6; }
35751
cat >conftest.$ac_ext <<_ACEOF
35754
cat confdefs.h >>conftest.$ac_ext
35755
cat >>conftest.$ac_ext <<_ACEOF
35756
/* end confdefs.h. */
35758
$curl_includes_netdb
35761
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35762
$EGREP "gethostbyaddr_r" >/dev/null 2>&1; then
35764
{ echo "$as_me:$LINENO: result: yes" >&5
35765
echo "${ECHO_T}yes" >&6; }
35766
tst_proto_gethostbyaddr_r="yes"
35770
{ echo "$as_me:$LINENO: result: no" >&5
35771
echo "${ECHO_T}no" >&6; }
35772
tst_proto_gethostbyaddr_r="no"
35779
if test "$tst_proto_gethostbyaddr_r" = "yes"; then
35780
if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
35781
{ echo "$as_me:$LINENO: checking if gethostbyaddr_r takes 5 args." >&5
35782
echo $ECHO_N "checking if gethostbyaddr_r takes 5 args.... $ECHO_C" >&6; }
35783
cat >conftest.$ac_ext <<_ACEOF
35787
cat confdefs.h >>conftest.$ac_ext
35788
cat >>conftest.$ac_ext <<_ACEOF
35789
/* end confdefs.h. */
35791
$curl_includes_netdb
35796
if(0 != gethostbyaddr_r(0, 0, 0, 0, 0))
35804
rm -f conftest.$ac_objext
35805
if { (ac_try="$ac_compile"
35806
case "(($ac_try" in
35807
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35808
*) ac_try_echo=$ac_try;;
35810
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35811
(eval "$ac_compile") 2>conftest.er1
35813
grep -v '^ *+' conftest.er1 >conftest.err
35815
cat conftest.err >&5
35816
echo "$as_me:$LINENO: \$? = $ac_status" >&5
35817
(exit $ac_status); } && {
35818
test -z "$ac_c_werror_flag" ||
35819
test ! -s conftest.err
35820
} && test -s conftest.$ac_objext; then
35822
{ echo "$as_me:$LINENO: result: yes" >&5
35823
echo "${ECHO_T}yes" >&6; }
35824
tst_compi_gethostbyaddr_r="yes"
35825
tst_nargs_gethostbyaddr_r="5"
35828
echo "$as_me: failed program was:" >&5
35829
sed 's/^/| /' conftest.$ac_ext >&5
35832
{ echo "$as_me:$LINENO: result: no" >&5
35833
echo "${ECHO_T}no" >&6; }
35834
tst_compi_gethostbyaddr_r="no"
35838
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35840
if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
35841
{ echo "$as_me:$LINENO: checking if gethostbyaddr_r takes 7 args." >&5
35842
echo $ECHO_N "checking if gethostbyaddr_r takes 7 args.... $ECHO_C" >&6; }
35843
cat >conftest.$ac_ext <<_ACEOF
35847
cat confdefs.h >>conftest.$ac_ext
35848
cat >>conftest.$ac_ext <<_ACEOF
35849
/* end confdefs.h. */
35851
$curl_includes_netdb
35856
if(0 != gethostbyaddr_r(0, 0, 0, 0, 0, 0, 0))
35864
rm -f conftest.$ac_objext
35865
if { (ac_try="$ac_compile"
35866
case "(($ac_try" in
35867
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35868
*) ac_try_echo=$ac_try;;
35870
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35871
(eval "$ac_compile") 2>conftest.er1
35873
grep -v '^ *+' conftest.er1 >conftest.err
35875
cat conftest.err >&5
35876
echo "$as_me:$LINENO: \$? = $ac_status" >&5
35877
(exit $ac_status); } && {
35878
test -z "$ac_c_werror_flag" ||
35879
test ! -s conftest.err
35880
} && test -s conftest.$ac_objext; then
35882
{ echo "$as_me:$LINENO: result: yes" >&5
35883
echo "${ECHO_T}yes" >&6; }
35884
tst_compi_gethostbyaddr_r="yes"
35885
tst_nargs_gethostbyaddr_r="7"
35888
echo "$as_me: failed program was:" >&5
35889
sed 's/^/| /' conftest.$ac_ext >&5
35892
{ echo "$as_me:$LINENO: result: no" >&5
35893
echo "${ECHO_T}no" >&6; }
35894
tst_compi_gethostbyaddr_r="no"
35898
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35900
if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
35901
{ echo "$as_me:$LINENO: checking if gethostbyaddr_r takes 8 args." >&5
35902
echo $ECHO_N "checking if gethostbyaddr_r takes 8 args.... $ECHO_C" >&6; }
35903
cat >conftest.$ac_ext <<_ACEOF
35907
cat confdefs.h >>conftest.$ac_ext
35908
cat >>conftest.$ac_ext <<_ACEOF
35909
/* end confdefs.h. */
35911
$curl_includes_netdb
35916
if(0 != gethostbyaddr_r(0, 0, 0, 0, 0, 0, 0, 0))
35924
rm -f conftest.$ac_objext
35925
if { (ac_try="$ac_compile"
35926
case "(($ac_try" in
35927
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35928
*) ac_try_echo=$ac_try;;
35930
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35931
(eval "$ac_compile") 2>conftest.er1
35933
grep -v '^ *+' conftest.er1 >conftest.err
35935
cat conftest.err >&5
35936
echo "$as_me:$LINENO: \$? = $ac_status" >&5
35937
(exit $ac_status); } && {
35938
test -z "$ac_c_werror_flag" ||
35939
test ! -s conftest.err
35940
} && test -s conftest.$ac_objext; then
35942
{ echo "$as_me:$LINENO: result: yes" >&5
35943
echo "${ECHO_T}yes" >&6; }
35944
tst_compi_gethostbyaddr_r="yes"
35945
tst_nargs_gethostbyaddr_r="8"
35948
echo "$as_me: failed program was:" >&5
35949
sed 's/^/| /' conftest.$ac_ext >&5
35952
{ echo "$as_me:$LINENO: result: no" >&5
35953
echo "${ECHO_T}no" >&6; }
35954
tst_compi_gethostbyaddr_r="no"
35958
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35960
{ echo "$as_me:$LINENO: checking if gethostbyaddr_r is compilable" >&5
35961
echo $ECHO_N "checking if gethostbyaddr_r is compilable... $ECHO_C" >&6; }
35962
if test "$tst_compi_gethostbyaddr_r" = "yes"; then
35963
{ echo "$as_me:$LINENO: result: yes" >&5
35964
echo "${ECHO_T}yes" >&6; }
35966
{ echo "$as_me:$LINENO: result: no" >&5
35967
echo "${ECHO_T}no" >&6; }
35971
if test "$tst_compi_gethostbyaddr_r" = "yes"; then
35972
{ echo "$as_me:$LINENO: checking if gethostbyaddr_r usage allowed" >&5
35973
echo $ECHO_N "checking if gethostbyaddr_r usage allowed... $ECHO_C" >&6; }
35974
if test "x$curl_disallow_gethostbyaddr_r" != "xyes"; then
35975
{ echo "$as_me:$LINENO: result: yes" >&5
35976
echo "${ECHO_T}yes" >&6; }
35977
tst_allow_gethostbyaddr_r="yes"
35979
{ echo "$as_me:$LINENO: result: no" >&5
35980
echo "${ECHO_T}no" >&6; }
35981
tst_allow_gethostbyaddr_r="no"
35985
{ echo "$as_me:$LINENO: checking if gethostbyaddr_r might be used" >&5
35986
echo $ECHO_N "checking if gethostbyaddr_r might be used... $ECHO_C" >&6; }
35987
if test "$tst_links_gethostbyaddr_r" = "yes" &&
35988
test "$tst_proto_gethostbyaddr_r" = "yes" &&
35989
test "$tst_compi_gethostbyaddr_r" = "yes" &&
35990
test "$tst_allow_gethostbyaddr_r" = "yes"; then
35991
{ echo "$as_me:$LINENO: result: yes" >&5
35992
echo "${ECHO_T}yes" >&6; }
35994
cat >>confdefs.h <<_ACEOF
35995
#define HAVE_GETHOSTBYADDR_R 1
35999
if test "$tst_nargs_gethostbyaddr_r" -eq "5"; then
36001
cat >>confdefs.h <<\_ACEOF
36002
#define HAVE_GETHOSTBYADDR_R_5 1
36005
elif test "$tst_nargs_gethostbyaddr_r" -eq "7"; then
36007
cat >>confdefs.h <<\_ACEOF
36008
#define HAVE_GETHOSTBYADDR_R_7 1
36011
elif test "$tst_nargs_gethostbyaddr_r" -eq "8"; then
36013
cat >>confdefs.h <<\_ACEOF
36014
#define HAVE_GETHOSTBYADDR_R_8 1
36019
ac_cv_func_gethostbyaddr_r="yes"
36021
{ echo "$as_me:$LINENO: result: no" >&5
36022
echo "${ECHO_T}no" >&6; }
36023
ac_cv_func_gethostbyaddr_r="no"
36028
tst_links_gethostbyname="unknown"
36029
tst_proto_gethostbyname="unknown"
36030
tst_compi_gethostbyname="unknown"
36031
tst_allow_gethostbyname="unknown"
36033
{ echo "$as_me:$LINENO: checking if gethostbyname can be linked" >&5
36034
echo $ECHO_N "checking if gethostbyname can be linked... $ECHO_C" >&6; }
36035
cat >conftest.$ac_ext <<_ACEOF
36039
cat confdefs.h >>conftest.$ac_ext
36040
cat >>conftest.$ac_ext <<_ACEOF
36041
/* end confdefs.h. */
36043
$curl_includes_winsock2
36044
$curl_includes_netdb
36049
if(0 != gethostbyname(0))
36057
rm -f conftest.$ac_objext conftest$ac_exeext
36058
if { (ac_try="$ac_link"
36059
case "(($ac_try" in
36060
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36061
*) ac_try_echo=$ac_try;;
36063
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36064
(eval "$ac_link") 2>conftest.er1
36066
grep -v '^ *+' conftest.er1 >conftest.err
36068
cat conftest.err >&5
36069
echo "$as_me:$LINENO: \$? = $ac_status" >&5
36070
(exit $ac_status); } && {
36071
test -z "$ac_c_werror_flag" ||
36072
test ! -s conftest.err
36073
} && test -s conftest$ac_exeext &&
36074
$as_test_x conftest$ac_exeext; then
36076
{ echo "$as_me:$LINENO: result: yes" >&5
36077
echo "${ECHO_T}yes" >&6; }
36078
tst_links_gethostbyname="yes"
36081
echo "$as_me: failed program was:" >&5
36082
sed 's/^/| /' conftest.$ac_ext >&5
36085
{ echo "$as_me:$LINENO: result: no" >&5
36086
echo "${ECHO_T}no" >&6; }
36087
tst_links_gethostbyname="no"
36091
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36092
conftest$ac_exeext conftest.$ac_ext
36094
if test "$tst_links_gethostbyname" = "yes"; then
36095
{ echo "$as_me:$LINENO: checking if gethostbyname is prototyped" >&5
36096
echo $ECHO_N "checking if gethostbyname is prototyped... $ECHO_C" >&6; }
36097
cat >conftest.$ac_ext <<_ACEOF
36100
cat confdefs.h >>conftest.$ac_ext
36101
cat >>conftest.$ac_ext <<_ACEOF
36102
/* end confdefs.h. */
36104
$curl_includes_winsock2
36105
$curl_includes_netdb
36108
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36109
$EGREP "gethostbyname" >/dev/null 2>&1; then
36111
{ echo "$as_me:$LINENO: result: yes" >&5
36112
echo "${ECHO_T}yes" >&6; }
36113
tst_proto_gethostbyname="yes"
36117
{ echo "$as_me:$LINENO: result: no" >&5
36118
echo "${ECHO_T}no" >&6; }
36119
tst_proto_gethostbyname="no"
36126
if test "$tst_proto_gethostbyname" = "yes"; then
36127
{ echo "$as_me:$LINENO: checking if gethostbyname is compilable" >&5
36128
echo $ECHO_N "checking if gethostbyname is compilable... $ECHO_C" >&6; }
36129
cat >conftest.$ac_ext <<_ACEOF
36133
cat confdefs.h >>conftest.$ac_ext
36134
cat >>conftest.$ac_ext <<_ACEOF
36135
/* end confdefs.h. */
36137
$curl_includes_winsock2
36138
$curl_includes_netdb
36143
if(0 != gethostbyname(0))
36151
rm -f conftest.$ac_objext
36152
if { (ac_try="$ac_compile"
36153
case "(($ac_try" in
36154
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36155
*) ac_try_echo=$ac_try;;
36157
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36158
(eval "$ac_compile") 2>conftest.er1
36160
grep -v '^ *+' conftest.er1 >conftest.err
36162
cat conftest.err >&5
36163
echo "$as_me:$LINENO: \$? = $ac_status" >&5
36164
(exit $ac_status); } && {
36165
test -z "$ac_c_werror_flag" ||
36166
test ! -s conftest.err
36167
} && test -s conftest.$ac_objext; then
36169
{ echo "$as_me:$LINENO: result: yes" >&5
36170
echo "${ECHO_T}yes" >&6; }
36171
tst_compi_gethostbyname="yes"
36174
echo "$as_me: failed program was:" >&5
36175
sed 's/^/| /' conftest.$ac_ext >&5
36178
{ echo "$as_me:$LINENO: result: no" >&5
36179
echo "${ECHO_T}no" >&6; }
36180
tst_compi_gethostbyname="no"
36184
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36187
if test "$tst_compi_gethostbyname" = "yes"; then
36188
{ echo "$as_me:$LINENO: checking if gethostbyname usage allowed" >&5
36189
echo $ECHO_N "checking if gethostbyname usage allowed... $ECHO_C" >&6; }
36190
if test "x$curl_disallow_gethostbyname" != "xyes"; then
36191
{ echo "$as_me:$LINENO: result: yes" >&5
36192
echo "${ECHO_T}yes" >&6; }
36193
tst_allow_gethostbyname="yes"
36195
{ echo "$as_me:$LINENO: result: no" >&5
36196
echo "${ECHO_T}no" >&6; }
36197
tst_allow_gethostbyname="no"
36201
{ echo "$as_me:$LINENO: checking if gethostbyname might be used" >&5
36202
echo $ECHO_N "checking if gethostbyname might be used... $ECHO_C" >&6; }
36203
if test "$tst_links_gethostbyname" = "yes" &&
36204
test "$tst_proto_gethostbyname" = "yes" &&
36205
test "$tst_compi_gethostbyname" = "yes" &&
36206
test "$tst_allow_gethostbyname" = "yes"; then
36207
{ echo "$as_me:$LINENO: result: yes" >&5
36208
echo "${ECHO_T}yes" >&6; }
36210
cat >>confdefs.h <<_ACEOF
36211
#define HAVE_GETHOSTBYNAME 1
36214
ac_cv_func_gethostbyname="yes"
36216
{ echo "$as_me:$LINENO: result: no" >&5
36217
echo "${ECHO_T}no" >&6; }
36218
ac_cv_func_gethostbyname="no"
36223
tst_links_gethostbyname_r="unknown"
36224
tst_proto_gethostbyname_r="unknown"
36225
tst_compi_gethostbyname_r="unknown"
36226
tst_allow_gethostbyname_r="unknown"
36227
tst_nargs_gethostbyname_r="unknown"
36229
{ echo "$as_me:$LINENO: checking if gethostbyname_r can be linked" >&5
36230
echo $ECHO_N "checking if gethostbyname_r can be linked... $ECHO_C" >&6; }
36231
cat >conftest.$ac_ext <<_ACEOF
36235
cat confdefs.h >>conftest.$ac_ext
36236
cat >>conftest.$ac_ext <<_ACEOF
36237
/* end confdefs.h. */
36239
#define gethostbyname_r innocuous_gethostbyname_r
36241
# include <limits.h>
36243
# include <assert.h>
36245
#undef gethostbyname_r
36249
char gethostbyname_r ();
36250
#if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
36256
return gethostbyname_r ();
36262
rm -f conftest.$ac_objext conftest$ac_exeext
36263
if { (ac_try="$ac_link"
36264
case "(($ac_try" in
36265
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36266
*) ac_try_echo=$ac_try;;
36268
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36269
(eval "$ac_link") 2>conftest.er1
36271
grep -v '^ *+' conftest.er1 >conftest.err
36273
cat conftest.err >&5
36274
echo "$as_me:$LINENO: \$? = $ac_status" >&5
36275
(exit $ac_status); } && {
36276
test -z "$ac_c_werror_flag" ||
36277
test ! -s conftest.err
36278
} && test -s conftest$ac_exeext &&
36279
$as_test_x conftest$ac_exeext; then
36281
{ echo "$as_me:$LINENO: result: yes" >&5
36282
echo "${ECHO_T}yes" >&6; }
36283
tst_links_gethostbyname_r="yes"
36286
echo "$as_me: failed program was:" >&5
36287
sed 's/^/| /' conftest.$ac_ext >&5
36290
{ echo "$as_me:$LINENO: result: no" >&5
36291
echo "${ECHO_T}no" >&6; }
36292
tst_links_gethostbyname_r="no"
36296
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36297
conftest$ac_exeext conftest.$ac_ext
36299
if test "$tst_links_gethostbyname_r" = "yes"; then
36300
{ echo "$as_me:$LINENO: checking if gethostbyname_r is prototyped" >&5
36301
echo $ECHO_N "checking if gethostbyname_r is prototyped... $ECHO_C" >&6; }
36302
cat >conftest.$ac_ext <<_ACEOF
36305
cat confdefs.h >>conftest.$ac_ext
36306
cat >>conftest.$ac_ext <<_ACEOF
36307
/* end confdefs.h. */
36309
$curl_includes_netdb
36312
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36313
$EGREP "gethostbyname_r" >/dev/null 2>&1; then
36315
{ echo "$as_me:$LINENO: result: yes" >&5
36316
echo "${ECHO_T}yes" >&6; }
36317
tst_proto_gethostbyname_r="yes"
36321
{ echo "$as_me:$LINENO: result: no" >&5
36322
echo "${ECHO_T}no" >&6; }
36323
tst_proto_gethostbyname_r="no"
36330
if test "$tst_proto_gethostbyname_r" = "yes"; then
36331
if test "$tst_nargs_gethostbyname_r" = "unknown"; then
36332
{ echo "$as_me:$LINENO: checking if gethostbyname_r takes 3 args." >&5
36333
echo $ECHO_N "checking if gethostbyname_r takes 3 args.... $ECHO_C" >&6; }
36334
cat >conftest.$ac_ext <<_ACEOF
36338
cat confdefs.h >>conftest.$ac_ext
36339
cat >>conftest.$ac_ext <<_ACEOF
36340
/* end confdefs.h. */
36342
$curl_includes_netdb
36347
if(0 != gethostbyname_r(0, 0, 0))
36355
rm -f conftest.$ac_objext
36356
if { (ac_try="$ac_compile"
36357
case "(($ac_try" in
36358
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36359
*) ac_try_echo=$ac_try;;
36361
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36362
(eval "$ac_compile") 2>conftest.er1
36364
grep -v '^ *+' conftest.er1 >conftest.err
36366
cat conftest.err >&5
36367
echo "$as_me:$LINENO: \$? = $ac_status" >&5
36368
(exit $ac_status); } && {
36369
test -z "$ac_c_werror_flag" ||
36370
test ! -s conftest.err
36371
} && test -s conftest.$ac_objext; then
36373
{ echo "$as_me:$LINENO: result: yes" >&5
36374
echo "${ECHO_T}yes" >&6; }
36375
tst_compi_gethostbyname_r="yes"
36376
tst_nargs_gethostbyname_r="3"
36379
echo "$as_me: failed program was:" >&5
36380
sed 's/^/| /' conftest.$ac_ext >&5
36383
{ echo "$as_me:$LINENO: result: no" >&5
36384
echo "${ECHO_T}no" >&6; }
36385
tst_compi_gethostbyname_r="no"
36389
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36391
if test "$tst_nargs_gethostbyname_r" = "unknown"; then
36392
{ echo "$as_me:$LINENO: checking if gethostbyname_r takes 5 args." >&5
36393
echo $ECHO_N "checking if gethostbyname_r takes 5 args.... $ECHO_C" >&6; }
36394
cat >conftest.$ac_ext <<_ACEOF
36398
cat confdefs.h >>conftest.$ac_ext
36399
cat >>conftest.$ac_ext <<_ACEOF
36400
/* end confdefs.h. */
36402
$curl_includes_netdb
36407
if(0 != gethostbyname_r(0, 0, 0, 0, 0))
36415
rm -f conftest.$ac_objext
36416
if { (ac_try="$ac_compile"
36417
case "(($ac_try" in
36418
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36419
*) ac_try_echo=$ac_try;;
36421
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36422
(eval "$ac_compile") 2>conftest.er1
36424
grep -v '^ *+' conftest.er1 >conftest.err
36426
cat conftest.err >&5
36427
echo "$as_me:$LINENO: \$? = $ac_status" >&5
36428
(exit $ac_status); } && {
36429
test -z "$ac_c_werror_flag" ||
36430
test ! -s conftest.err
36431
} && test -s conftest.$ac_objext; then
36433
{ echo "$as_me:$LINENO: result: yes" >&5
36434
echo "${ECHO_T}yes" >&6; }
36435
tst_compi_gethostbyname_r="yes"
36436
tst_nargs_gethostbyname_r="5"
36439
echo "$as_me: failed program was:" >&5
36440
sed 's/^/| /' conftest.$ac_ext >&5
36443
{ echo "$as_me:$LINENO: result: no" >&5
36444
echo "${ECHO_T}no" >&6; }
36445
tst_compi_gethostbyname_r="no"
36449
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36451
if test "$tst_nargs_gethostbyname_r" = "unknown"; then
36452
{ echo "$as_me:$LINENO: checking if gethostbyname_r takes 6 args." >&5
36453
echo $ECHO_N "checking if gethostbyname_r takes 6 args.... $ECHO_C" >&6; }
36454
cat >conftest.$ac_ext <<_ACEOF
36458
cat confdefs.h >>conftest.$ac_ext
36459
cat >>conftest.$ac_ext <<_ACEOF
36460
/* end confdefs.h. */
36462
$curl_includes_netdb
36467
if(0 != gethostbyname_r(0, 0, 0, 0, 0, 0))
36475
rm -f conftest.$ac_objext
36476
if { (ac_try="$ac_compile"
36477
case "(($ac_try" in
36478
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36479
*) ac_try_echo=$ac_try;;
36481
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36482
(eval "$ac_compile") 2>conftest.er1
36484
grep -v '^ *+' conftest.er1 >conftest.err
36486
cat conftest.err >&5
36487
echo "$as_me:$LINENO: \$? = $ac_status" >&5
36488
(exit $ac_status); } && {
36489
test -z "$ac_c_werror_flag" ||
36490
test ! -s conftest.err
36491
} && test -s conftest.$ac_objext; then
36493
{ echo "$as_me:$LINENO: result: yes" >&5
36494
echo "${ECHO_T}yes" >&6; }
36495
tst_compi_gethostbyname_r="yes"
36496
tst_nargs_gethostbyname_r="6"
36499
echo "$as_me: failed program was:" >&5
36500
sed 's/^/| /' conftest.$ac_ext >&5
36503
{ echo "$as_me:$LINENO: result: no" >&5
36504
echo "${ECHO_T}no" >&6; }
36505
tst_compi_gethostbyname_r="no"
36509
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36511
{ echo "$as_me:$LINENO: checking if gethostbyname_r is compilable" >&5
36512
echo $ECHO_N "checking if gethostbyname_r is compilable... $ECHO_C" >&6; }
36513
if test "$tst_compi_gethostbyname_r" = "yes"; then
36514
{ echo "$as_me:$LINENO: result: yes" >&5
36515
echo "${ECHO_T}yes" >&6; }
36517
{ echo "$as_me:$LINENO: result: no" >&5
36518
echo "${ECHO_T}no" >&6; }
36522
if test "$tst_compi_gethostbyname_r" = "yes"; then
36523
{ echo "$as_me:$LINENO: checking if gethostbyname_r usage allowed" >&5
36524
echo $ECHO_N "checking if gethostbyname_r usage allowed... $ECHO_C" >&6; }
36525
if test "x$curl_disallow_gethostbyname_r" != "xyes"; then
36526
{ echo "$as_me:$LINENO: result: yes" >&5
36527
echo "${ECHO_T}yes" >&6; }
36528
tst_allow_gethostbyname_r="yes"
36530
{ echo "$as_me:$LINENO: result: no" >&5
36531
echo "${ECHO_T}no" >&6; }
36532
tst_allow_gethostbyname_r="no"
36536
{ echo "$as_me:$LINENO: checking if gethostbyname_r might be used" >&5
36537
echo $ECHO_N "checking if gethostbyname_r might be used... $ECHO_C" >&6; }
36538
if test "$tst_links_gethostbyname_r" = "yes" &&
36539
test "$tst_proto_gethostbyname_r" = "yes" &&
36540
test "$tst_compi_gethostbyname_r" = "yes" &&
36541
test "$tst_allow_gethostbyname_r" = "yes"; then
36542
{ echo "$as_me:$LINENO: result: yes" >&5
36543
echo "${ECHO_T}yes" >&6; }
36545
cat >>confdefs.h <<_ACEOF
36546
#define HAVE_GETHOSTBYNAME_R 1
36550
if test "$tst_nargs_gethostbyname_r" -eq "3"; then
36552
cat >>confdefs.h <<\_ACEOF
36553
#define HAVE_GETHOSTBYNAME_R_3 1
36556
elif test "$tst_nargs_gethostbyname_r" -eq "5"; then
36558
cat >>confdefs.h <<\_ACEOF
36559
#define HAVE_GETHOSTBYNAME_R_5 1
36562
elif test "$tst_nargs_gethostbyname_r" -eq "6"; then
36564
cat >>confdefs.h <<\_ACEOF
36565
#define HAVE_GETHOSTBYNAME_R_6 1
36570
ac_cv_func_gethostbyname_r="yes"
36572
{ echo "$as_me:$LINENO: result: no" >&5
36573
echo "${ECHO_T}no" >&6; }
36574
ac_cv_func_gethostbyname_r="no"
36579
tst_links_gethostname="unknown"
36580
tst_proto_gethostname="unknown"
36581
tst_compi_gethostname="unknown"
36582
tst_allow_gethostname="unknown"
36584
{ echo "$as_me:$LINENO: checking if gethostname can be linked" >&5
36585
echo $ECHO_N "checking if gethostname can be linked... $ECHO_C" >&6; }
36586
cat >conftest.$ac_ext <<_ACEOF
36590
cat confdefs.h >>conftest.$ac_ext
36591
cat >>conftest.$ac_ext <<_ACEOF
36592
/* end confdefs.h. */
36594
$curl_includes_winsock2
36595
$curl_includes_unistd
36600
if(0 != gethostname(0, 0))
36608
rm -f conftest.$ac_objext conftest$ac_exeext
36609
if { (ac_try="$ac_link"
36610
case "(($ac_try" in
36611
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36612
*) ac_try_echo=$ac_try;;
36614
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36615
(eval "$ac_link") 2>conftest.er1
36617
grep -v '^ *+' conftest.er1 >conftest.err
36619
cat conftest.err >&5
36620
echo "$as_me:$LINENO: \$? = $ac_status" >&5
36621
(exit $ac_status); } && {
36622
test -z "$ac_c_werror_flag" ||
36623
test ! -s conftest.err
36624
} && test -s conftest$ac_exeext &&
36625
$as_test_x conftest$ac_exeext; then
36627
{ echo "$as_me:$LINENO: result: yes" >&5
36628
echo "${ECHO_T}yes" >&6; }
36629
tst_links_gethostname="yes"
36632
echo "$as_me: failed program was:" >&5
36633
sed 's/^/| /' conftest.$ac_ext >&5
36636
{ echo "$as_me:$LINENO: result: no" >&5
36637
echo "${ECHO_T}no" >&6; }
36638
tst_links_gethostname="no"
36642
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36643
conftest$ac_exeext conftest.$ac_ext
36645
if test "$tst_links_gethostname" = "yes"; then
36646
{ echo "$as_me:$LINENO: checking if gethostname is prototyped" >&5
36647
echo $ECHO_N "checking if gethostname is prototyped... $ECHO_C" >&6; }
36648
cat >conftest.$ac_ext <<_ACEOF
36651
cat confdefs.h >>conftest.$ac_ext
36652
cat >>conftest.$ac_ext <<_ACEOF
36653
/* end confdefs.h. */
36655
$curl_includes_winsock2
36656
$curl_includes_unistd
36659
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36660
$EGREP "gethostname" >/dev/null 2>&1; then
36662
{ echo "$as_me:$LINENO: result: yes" >&5
36663
echo "${ECHO_T}yes" >&6; }
36664
tst_proto_gethostname="yes"
36668
{ echo "$as_me:$LINENO: result: no" >&5
36669
echo "${ECHO_T}no" >&6; }
36670
tst_proto_gethostname="no"
36677
if test "$tst_proto_gethostname" = "yes"; then
36678
{ echo "$as_me:$LINENO: checking if gethostname is compilable" >&5
36679
echo $ECHO_N "checking if gethostname is compilable... $ECHO_C" >&6; }
36680
cat >conftest.$ac_ext <<_ACEOF
36684
cat confdefs.h >>conftest.$ac_ext
36685
cat >>conftest.$ac_ext <<_ACEOF
36686
/* end confdefs.h. */
36688
$curl_includes_winsock2
36689
$curl_includes_unistd
36694
if(0 != gethostname(0, 0))
36702
rm -f conftest.$ac_objext
36703
if { (ac_try="$ac_compile"
36704
case "(($ac_try" in
36705
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36706
*) ac_try_echo=$ac_try;;
36708
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36709
(eval "$ac_compile") 2>conftest.er1
36711
grep -v '^ *+' conftest.er1 >conftest.err
36713
cat conftest.err >&5
36714
echo "$as_me:$LINENO: \$? = $ac_status" >&5
36715
(exit $ac_status); } && {
36716
test -z "$ac_c_werror_flag" ||
36717
test ! -s conftest.err
36718
} && test -s conftest.$ac_objext; then
36720
{ echo "$as_me:$LINENO: result: yes" >&5
36721
echo "${ECHO_T}yes" >&6; }
36722
tst_compi_gethostname="yes"
36725
echo "$as_me: failed program was:" >&5
36726
sed 's/^/| /' conftest.$ac_ext >&5
36729
{ echo "$as_me:$LINENO: result: no" >&5
36730
echo "${ECHO_T}no" >&6; }
36731
tst_compi_gethostname="no"
36735
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36738
if test "$tst_compi_gethostname" = "yes"; then
36739
{ echo "$as_me:$LINENO: checking if gethostname usage allowed" >&5
36740
echo $ECHO_N "checking if gethostname usage allowed... $ECHO_C" >&6; }
36741
if test "x$curl_disallow_gethostname" != "xyes"; then
36742
{ echo "$as_me:$LINENO: result: yes" >&5
36743
echo "${ECHO_T}yes" >&6; }
36744
tst_allow_gethostname="yes"
36746
{ echo "$as_me:$LINENO: result: no" >&5
36747
echo "${ECHO_T}no" >&6; }
36748
tst_allow_gethostname="no"
36752
{ echo "$as_me:$LINENO: checking if gethostname might be used" >&5
36753
echo $ECHO_N "checking if gethostname might be used... $ECHO_C" >&6; }
36754
if test "$tst_links_gethostname" = "yes" &&
36755
test "$tst_proto_gethostname" = "yes" &&
36756
test "$tst_compi_gethostname" = "yes" &&
36757
test "$tst_allow_gethostname" = "yes"; then
36758
{ echo "$as_me:$LINENO: result: yes" >&5
36759
echo "${ECHO_T}yes" >&6; }
36761
cat >>confdefs.h <<_ACEOF
36762
#define HAVE_GETHOSTNAME 1
36765
ac_cv_func_gethostname="yes"
36767
{ echo "$as_me:$LINENO: result: no" >&5
36768
echo "${ECHO_T}no" >&6; }
36769
ac_cv_func_gethostname="no"
36774
tst_links_getifaddrs="unknown"
36775
tst_proto_getifaddrs="unknown"
36776
tst_compi_getifaddrs="unknown"
36777
tst_works_getifaddrs="unknown"
36778
tst_allow_getifaddrs="unknown"
36780
{ echo "$as_me:$LINENO: checking if getifaddrs can be linked" >&5
36781
echo $ECHO_N "checking if getifaddrs can be linked... $ECHO_C" >&6; }
36782
cat >conftest.$ac_ext <<_ACEOF
36786
cat confdefs.h >>conftest.$ac_ext
36787
cat >>conftest.$ac_ext <<_ACEOF
36788
/* end confdefs.h. */
36790
#define getifaddrs innocuous_getifaddrs
36792
# include <limits.h>
36794
# include <assert.h>
36800
char getifaddrs ();
36801
#if defined __stub_getifaddrs || defined __stub___getifaddrs
36807
return getifaddrs ();
36813
rm -f conftest.$ac_objext conftest$ac_exeext
36814
if { (ac_try="$ac_link"
36815
case "(($ac_try" in
36816
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36817
*) ac_try_echo=$ac_try;;
36819
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36820
(eval "$ac_link") 2>conftest.er1
36822
grep -v '^ *+' conftest.er1 >conftest.err
36824
cat conftest.err >&5
36825
echo "$as_me:$LINENO: \$? = $ac_status" >&5
36826
(exit $ac_status); } && {
36827
test -z "$ac_c_werror_flag" ||
36828
test ! -s conftest.err
36829
} && test -s conftest$ac_exeext &&
36830
$as_test_x conftest$ac_exeext; then
36832
{ echo "$as_me:$LINENO: result: yes" >&5
36833
echo "${ECHO_T}yes" >&6; }
36834
tst_links_getifaddrs="yes"
36837
echo "$as_me: failed program was:" >&5
36838
sed 's/^/| /' conftest.$ac_ext >&5
36841
{ echo "$as_me:$LINENO: result: no" >&5
36842
echo "${ECHO_T}no" >&6; }
36843
tst_links_getifaddrs="no"
36847
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36848
conftest$ac_exeext conftest.$ac_ext
36850
if test "$tst_links_getifaddrs" = "yes"; then
36851
{ echo "$as_me:$LINENO: checking if getifaddrs is prototyped" >&5
36852
echo $ECHO_N "checking if getifaddrs is prototyped... $ECHO_C" >&6; }
36853
cat >conftest.$ac_ext <<_ACEOF
36856
cat confdefs.h >>conftest.$ac_ext
36857
cat >>conftest.$ac_ext <<_ACEOF
36858
/* end confdefs.h. */
36860
$curl_includes_ifaddrs
36863
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36864
$EGREP "getifaddrs" >/dev/null 2>&1; then
36866
{ echo "$as_me:$LINENO: result: yes" >&5
36867
echo "${ECHO_T}yes" >&6; }
36868
tst_proto_getifaddrs="yes"
36872
{ echo "$as_me:$LINENO: result: no" >&5
36873
echo "${ECHO_T}no" >&6; }
36874
tst_proto_getifaddrs="no"
36881
if test "$tst_proto_getifaddrs" = "yes"; then
36882
{ echo "$as_me:$LINENO: checking if getifaddrs is compilable" >&5
36883
echo $ECHO_N "checking if getifaddrs is compilable... $ECHO_C" >&6; }
36884
cat >conftest.$ac_ext <<_ACEOF
36888
cat confdefs.h >>conftest.$ac_ext
36889
cat >>conftest.$ac_ext <<_ACEOF
36890
/* end confdefs.h. */
36892
$curl_includes_ifaddrs
36897
if(0 != getifaddrs(0))
36905
rm -f conftest.$ac_objext
36906
if { (ac_try="$ac_compile"
36907
case "(($ac_try" in
36908
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36909
*) ac_try_echo=$ac_try;;
36911
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36912
(eval "$ac_compile") 2>conftest.er1
36914
grep -v '^ *+' conftest.er1 >conftest.err
36916
cat conftest.err >&5
36917
echo "$as_me:$LINENO: \$? = $ac_status" >&5
36918
(exit $ac_status); } && {
36919
test -z "$ac_c_werror_flag" ||
36920
test ! -s conftest.err
36921
} && test -s conftest.$ac_objext; then
36923
{ echo "$as_me:$LINENO: result: yes" >&5
36924
echo "${ECHO_T}yes" >&6; }
36925
tst_compi_getifaddrs="yes"
36928
echo "$as_me: failed program was:" >&5
36929
sed 's/^/| /' conftest.$ac_ext >&5
36932
{ echo "$as_me:$LINENO: result: no" >&5
36933
echo "${ECHO_T}no" >&6; }
36934
tst_compi_getifaddrs="no"
36938
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36941
if test "x$cross_compiling" != "xyes" &&
36942
test "$tst_compi_getifaddrs" = "yes"; then
36943
{ echo "$as_me:$LINENO: checking if getifaddrs seems to work" >&5
36944
echo $ECHO_N "checking if getifaddrs seems to work... $ECHO_C" >&6; }
36945
if test "$cross_compiling" = yes; then
36946
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
36947
See \`config.log' for more details." >&5
36948
echo "$as_me: error: cannot run test program while cross compiling
36949
See \`config.log' for more details." >&2;}
36950
{ (exit 1); exit 1; }; }
36952
cat >conftest.$ac_ext <<_ACEOF
36956
cat confdefs.h >>conftest.$ac_ext
36957
cat >>conftest.$ac_ext <<_ACEOF
36958
/* end confdefs.h. */
36960
$curl_includes_stdlib
36961
$curl_includes_ifaddrs
36966
struct ifaddrs *ifa = 0;
36969
error = getifaddrs(&ifa);
36971
exit(1); /* fail */
36980
rm -f conftest$ac_exeext
36981
if { (ac_try="$ac_link"
36982
case "(($ac_try" in
36983
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36984
*) ac_try_echo=$ac_try;;
36986
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36987
(eval "$ac_link") 2>&5
36989
echo "$as_me:$LINENO: \$? = $ac_status" >&5
36990
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36991
{ (case "(($ac_try" in
36992
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36993
*) ac_try_echo=$ac_try;;
36995
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36996
(eval "$ac_try") 2>&5
36998
echo "$as_me:$LINENO: \$? = $ac_status" >&5
36999
(exit $ac_status); }; }; then
37001
{ echo "$as_me:$LINENO: result: yes" >&5
37002
echo "${ECHO_T}yes" >&6; }
37003
tst_works_getifaddrs="yes"
37006
echo "$as_me: program exited with status $ac_status" >&5
37007
echo "$as_me: failed program was:" >&5
37008
sed 's/^/| /' conftest.$ac_ext >&5
37010
( exit $ac_status )
37012
{ echo "$as_me:$LINENO: result: no" >&5
37013
echo "${ECHO_T}no" >&6; }
37014
tst_works_getifaddrs="no"
37017
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37023
if test "$tst_compi_getifaddrs" = "yes" &&
37024
test "$tst_works_getifaddrs" != "no"; then
37025
{ echo "$as_me:$LINENO: checking if getifaddrs usage allowed" >&5
37026
echo $ECHO_N "checking if getifaddrs usage allowed... $ECHO_C" >&6; }
37027
if test "x$curl_disallow_getifaddrs" != "xyes"; then
37028
{ echo "$as_me:$LINENO: result: yes" >&5
37029
echo "${ECHO_T}yes" >&6; }
37030
tst_allow_getifaddrs="yes"
37032
{ echo "$as_me:$LINENO: result: no" >&5
37033
echo "${ECHO_T}no" >&6; }
37034
tst_allow_getifaddrs="no"
37038
{ echo "$as_me:$LINENO: checking if getifaddrs might be used" >&5
37039
echo $ECHO_N "checking if getifaddrs might be used... $ECHO_C" >&6; }
37040
if test "$tst_links_getifaddrs" = "yes" &&
37041
test "$tst_proto_getifaddrs" = "yes" &&
37042
test "$tst_compi_getifaddrs" = "yes" &&
37043
test "$tst_allow_getifaddrs" = "yes" &&
37044
test "$tst_works_getifaddrs" != "no"; then
37045
{ echo "$as_me:$LINENO: result: yes" >&5
37046
echo "${ECHO_T}yes" >&6; }
37048
cat >>confdefs.h <<_ACEOF
37049
#define HAVE_GETIFADDRS 1
37052
ac_cv_func_getifaddrs="yes"
37054
{ echo "$as_me:$LINENO: result: no" >&5
37055
echo "${ECHO_T}no" >&6; }
37056
ac_cv_func_getifaddrs="no"
37061
tst_links_getservbyport_r="unknown"
37062
tst_proto_getservbyport_r="unknown"
37063
tst_compi_getservbyport_r="unknown"
37064
tst_allow_getservbyport_r="unknown"
37065
tst_nargs_getservbyport_r="unknown"
37067
{ echo "$as_me:$LINENO: checking if getservbyport_r can be linked" >&5
37068
echo $ECHO_N "checking if getservbyport_r can be linked... $ECHO_C" >&6; }
37069
cat >conftest.$ac_ext <<_ACEOF
37073
cat confdefs.h >>conftest.$ac_ext
37074
cat >>conftest.$ac_ext <<_ACEOF
37075
/* end confdefs.h. */
37077
#define getservbyport_r innocuous_getservbyport_r
37079
# include <limits.h>
37081
# include <assert.h>
37083
#undef getservbyport_r
37087
char getservbyport_r ();
37088
#if defined __stub_getservbyport_r || defined __stub___getservbyport_r
37094
return getservbyport_r ();
37100
rm -f conftest.$ac_objext conftest$ac_exeext
37101
if { (ac_try="$ac_link"
37102
case "(($ac_try" in
37103
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37104
*) ac_try_echo=$ac_try;;
37106
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37107
(eval "$ac_link") 2>conftest.er1
37109
grep -v '^ *+' conftest.er1 >conftest.err
37111
cat conftest.err >&5
37112
echo "$as_me:$LINENO: \$? = $ac_status" >&5
37113
(exit $ac_status); } && {
37114
test -z "$ac_c_werror_flag" ||
37115
test ! -s conftest.err
37116
} && test -s conftest$ac_exeext &&
37117
$as_test_x conftest$ac_exeext; then
37119
{ echo "$as_me:$LINENO: result: yes" >&5
37120
echo "${ECHO_T}yes" >&6; }
37121
tst_links_getservbyport_r="yes"
37124
echo "$as_me: failed program was:" >&5
37125
sed 's/^/| /' conftest.$ac_ext >&5
37128
{ echo "$as_me:$LINENO: result: no" >&5
37129
echo "${ECHO_T}no" >&6; }
37130
tst_links_getservbyport_r="no"
37134
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37135
conftest$ac_exeext conftest.$ac_ext
37137
if test "$tst_links_getservbyport_r" = "yes"; then
37138
{ echo "$as_me:$LINENO: checking if getservbyport_r is prototyped" >&5
37139
echo $ECHO_N "checking if getservbyport_r is prototyped... $ECHO_C" >&6; }
37140
cat >conftest.$ac_ext <<_ACEOF
37143
cat confdefs.h >>conftest.$ac_ext
37144
cat >>conftest.$ac_ext <<_ACEOF
37145
/* end confdefs.h. */
37147
$curl_includes_netdb
37150
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37151
$EGREP "getservbyport_r" >/dev/null 2>&1; then
37153
{ echo "$as_me:$LINENO: result: yes" >&5
37154
echo "${ECHO_T}yes" >&6; }
37155
tst_proto_getservbyport_r="yes"
37159
{ echo "$as_me:$LINENO: result: no" >&5
37160
echo "${ECHO_T}no" >&6; }
37161
tst_proto_getservbyport_r="no"
37168
if test "$tst_proto_getservbyport_r" = "yes"; then
37169
if test "$tst_nargs_getservbyport_r" = "unknown"; then
37170
{ echo "$as_me:$LINENO: checking if getservbyport_r takes 4 args." >&5
37171
echo $ECHO_N "checking if getservbyport_r takes 4 args.... $ECHO_C" >&6; }
37172
cat >conftest.$ac_ext <<_ACEOF
37176
cat confdefs.h >>conftest.$ac_ext
37177
cat >>conftest.$ac_ext <<_ACEOF
37178
/* end confdefs.h. */
37180
$curl_includes_netdb
37185
if(0 != getservbyport_r(0, 0, 0, 0))
37193
rm -f conftest.$ac_objext
37194
if { (ac_try="$ac_compile"
37195
case "(($ac_try" in
37196
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37197
*) ac_try_echo=$ac_try;;
37199
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37200
(eval "$ac_compile") 2>conftest.er1
37202
grep -v '^ *+' conftest.er1 >conftest.err
37204
cat conftest.err >&5
37205
echo "$as_me:$LINENO: \$? = $ac_status" >&5
37206
(exit $ac_status); } && {
37207
test -z "$ac_c_werror_flag" ||
37208
test ! -s conftest.err
37209
} && test -s conftest.$ac_objext; then
37211
{ echo "$as_me:$LINENO: result: yes" >&5
37212
echo "${ECHO_T}yes" >&6; }
37213
tst_compi_getservbyport_r="yes"
37214
tst_nargs_getservbyport_r="4"
37217
echo "$as_me: failed program was:" >&5
37218
sed 's/^/| /' conftest.$ac_ext >&5
37221
{ echo "$as_me:$LINENO: result: no" >&5
37222
echo "${ECHO_T}no" >&6; }
37223
tst_compi_getservbyport_r="no"
37227
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37229
if test "$tst_nargs_getservbyport_r" = "unknown"; then
37230
{ echo "$as_me:$LINENO: checking if getservbyport_r takes 5 args." >&5
37231
echo $ECHO_N "checking if getservbyport_r takes 5 args.... $ECHO_C" >&6; }
37232
cat >conftest.$ac_ext <<_ACEOF
37236
cat confdefs.h >>conftest.$ac_ext
37237
cat >>conftest.$ac_ext <<_ACEOF
37238
/* end confdefs.h. */
37240
$curl_includes_netdb
37245
if(0 != getservbyport_r(0, 0, 0, 0, 0))
37253
rm -f conftest.$ac_objext
37254
if { (ac_try="$ac_compile"
37255
case "(($ac_try" in
37256
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37257
*) ac_try_echo=$ac_try;;
37259
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37260
(eval "$ac_compile") 2>conftest.er1
37262
grep -v '^ *+' conftest.er1 >conftest.err
37264
cat conftest.err >&5
37265
echo "$as_me:$LINENO: \$? = $ac_status" >&5
37266
(exit $ac_status); } && {
37267
test -z "$ac_c_werror_flag" ||
37268
test ! -s conftest.err
37269
} && test -s conftest.$ac_objext; then
37271
{ echo "$as_me:$LINENO: result: yes" >&5
37272
echo "${ECHO_T}yes" >&6; }
37273
tst_compi_getservbyport_r="yes"
37274
tst_nargs_getservbyport_r="5"
37277
echo "$as_me: failed program was:" >&5
37278
sed 's/^/| /' conftest.$ac_ext >&5
37281
{ echo "$as_me:$LINENO: result: no" >&5
37282
echo "${ECHO_T}no" >&6; }
37283
tst_compi_getservbyport_r="no"
37287
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37289
if test "$tst_nargs_getservbyport_r" = "unknown"; then
37290
{ echo "$as_me:$LINENO: checking if getservbyport_r takes 6 args." >&5
37291
echo $ECHO_N "checking if getservbyport_r takes 6 args.... $ECHO_C" >&6; }
37292
cat >conftest.$ac_ext <<_ACEOF
37296
cat confdefs.h >>conftest.$ac_ext
37297
cat >>conftest.$ac_ext <<_ACEOF
37298
/* end confdefs.h. */
37300
$curl_includes_netdb
37305
if(0 != getservbyport_r(0, 0, 0, 0, 0, 0))
37313
rm -f conftest.$ac_objext
37314
if { (ac_try="$ac_compile"
37315
case "(($ac_try" in
37316
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37317
*) ac_try_echo=$ac_try;;
37319
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37320
(eval "$ac_compile") 2>conftest.er1
37322
grep -v '^ *+' conftest.er1 >conftest.err
37324
cat conftest.err >&5
37325
echo "$as_me:$LINENO: \$? = $ac_status" >&5
37326
(exit $ac_status); } && {
37327
test -z "$ac_c_werror_flag" ||
37328
test ! -s conftest.err
37329
} && test -s conftest.$ac_objext; then
37331
{ echo "$as_me:$LINENO: result: yes" >&5
37332
echo "${ECHO_T}yes" >&6; }
37333
tst_compi_getservbyport_r="yes"
37334
tst_nargs_getservbyport_r="6"
37337
echo "$as_me: failed program was:" >&5
37338
sed 's/^/| /' conftest.$ac_ext >&5
37341
{ echo "$as_me:$LINENO: result: no" >&5
37342
echo "${ECHO_T}no" >&6; }
37343
tst_compi_getservbyport_r="no"
37347
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37349
{ echo "$as_me:$LINENO: checking if getservbyport_r is compilable" >&5
37350
echo $ECHO_N "checking if getservbyport_r is compilable... $ECHO_C" >&6; }
37351
if test "$tst_compi_getservbyport_r" = "yes"; then
37352
{ echo "$as_me:$LINENO: result: yes" >&5
37353
echo "${ECHO_T}yes" >&6; }
37355
{ echo "$as_me:$LINENO: result: no" >&5
37356
echo "${ECHO_T}no" >&6; }
37360
if test "$tst_compi_getservbyport_r" = "yes"; then
37361
{ echo "$as_me:$LINENO: checking if getservbyport_r usage allowed" >&5
37362
echo $ECHO_N "checking if getservbyport_r usage allowed... $ECHO_C" >&6; }
37363
if test "x$curl_disallow_getservbyport_r" != "xyes"; then
37364
{ echo "$as_me:$LINENO: result: yes" >&5
37365
echo "${ECHO_T}yes" >&6; }
37366
tst_allow_getservbyport_r="yes"
37368
{ echo "$as_me:$LINENO: result: no" >&5
37369
echo "${ECHO_T}no" >&6; }
37370
tst_allow_getservbyport_r="no"
37374
{ echo "$as_me:$LINENO: checking if getservbyport_r might be used" >&5
37375
echo $ECHO_N "checking if getservbyport_r might be used... $ECHO_C" >&6; }
37376
if test "$tst_links_getservbyport_r" = "yes" &&
37377
test "$tst_proto_getservbyport_r" = "yes" &&
37378
test "$tst_compi_getservbyport_r" = "yes" &&
37379
test "$tst_allow_getservbyport_r" = "yes"; then
37380
{ echo "$as_me:$LINENO: result: yes" >&5
37381
echo "${ECHO_T}yes" >&6; }
37383
cat >>confdefs.h <<_ACEOF
37384
#define HAVE_GETSERVBYPORT_R 1
37388
cat >>confdefs.h <<_ACEOF
37389
#define GETSERVBYPORT_R_ARGS $tst_nargs_getservbyport_r
37392
if test "$tst_nargs_getservbyport_r" -eq "4"; then
37394
cat >>confdefs.h <<\_ACEOF
37395
#define GETSERVBYPORT_R_BUFSIZE sizeof(struct servent_data)
37400
cat >>confdefs.h <<\_ACEOF
37401
#define GETSERVBYPORT_R_BUFSIZE 4096
37405
ac_cv_func_getservbyport_r="yes"
37407
{ echo "$as_me:$LINENO: result: no" >&5
37408
echo "${ECHO_T}no" >&6; }
37409
ac_cv_func_getservbyport_r="no"
37413
curl_includes_time="\
37414
/* includes start */
37415
#ifdef HAVE_SYS_TYPES_H
37416
# include <sys/types.h>
37418
#ifdef HAVE_SYS_TIME_H
37419
# include <sys/time.h>
37420
# ifdef TIME_WITH_SYS_TIME
37424
# ifdef HAVE_TIME_H
37428
/* includes end */"
37432
for ac_header in sys/types.h sys/time.h time.h
37434
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37435
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
37436
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
37437
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
37438
echo $ECHO_N "(cached) $ECHO_C" >&6
37440
cat >conftest.$ac_ext <<_ACEOF
37443
cat confdefs.h >>conftest.$ac_ext
37444
cat >>conftest.$ac_ext <<_ACEOF
37445
/* end confdefs.h. */
37446
$curl_includes_time
37448
#include <$ac_header>
37450
rm -f conftest.$ac_objext
37451
if { (ac_try="$ac_compile"
37452
case "(($ac_try" in
37453
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37454
*) ac_try_echo=$ac_try;;
37456
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37457
(eval "$ac_compile") 2>conftest.er1
37459
grep -v '^ *+' conftest.er1 >conftest.err
37461
cat conftest.err >&5
37462
echo "$as_me:$LINENO: \$? = $ac_status" >&5
37463
(exit $ac_status); } && {
37464
test -z "$ac_c_werror_flag" ||
37465
test ! -s conftest.err
37466
} && test -s conftest.$ac_objext; then
37467
eval "$as_ac_Header=yes"
37469
echo "$as_me: failed program was:" >&5
37470
sed 's/^/| /' conftest.$ac_ext >&5
37472
eval "$as_ac_Header=no"
37475
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37477
ac_res=`eval echo '${'$as_ac_Header'}'`
37478
{ echo "$as_me:$LINENO: result: $ac_res" >&5
37479
echo "${ECHO_T}$ac_res" >&6; }
37480
if test `eval echo '${'$as_ac_Header'}'` = yes; then
37481
cat >>confdefs.h <<_ACEOF
37482
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37492
tst_links_gmtime_r="unknown"
37493
tst_proto_gmtime_r="unknown"
37494
tst_compi_gmtime_r="unknown"
37495
tst_works_gmtime_r="unknown"
37496
tst_allow_gmtime_r="unknown"
37498
{ echo "$as_me:$LINENO: checking if gmtime_r can be linked" >&5
37499
echo $ECHO_N "checking if gmtime_r can be linked... $ECHO_C" >&6; }
37500
cat >conftest.$ac_ext <<_ACEOF
37504
cat confdefs.h >>conftest.$ac_ext
37505
cat >>conftest.$ac_ext <<_ACEOF
37506
/* end confdefs.h. */
37508
#define gmtime_r innocuous_gmtime_r
37510
# include <limits.h>
37512
# include <assert.h>
37519
#if defined __stub_gmtime_r || defined __stub___gmtime_r
37525
return gmtime_r ();
37531
rm -f conftest.$ac_objext conftest$ac_exeext
37532
if { (ac_try="$ac_link"
37533
case "(($ac_try" in
37534
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37535
*) ac_try_echo=$ac_try;;
37537
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37538
(eval "$ac_link") 2>conftest.er1
37540
grep -v '^ *+' conftest.er1 >conftest.err
37542
cat conftest.err >&5
37543
echo "$as_me:$LINENO: \$? = $ac_status" >&5
37544
(exit $ac_status); } && {
37545
test -z "$ac_c_werror_flag" ||
37546
test ! -s conftest.err
37547
} && test -s conftest$ac_exeext &&
37548
$as_test_x conftest$ac_exeext; then
37550
{ echo "$as_me:$LINENO: result: yes" >&5
37551
echo "${ECHO_T}yes" >&6; }
37552
tst_links_gmtime_r="yes"
37555
echo "$as_me: failed program was:" >&5
37556
sed 's/^/| /' conftest.$ac_ext >&5
37559
{ echo "$as_me:$LINENO: result: no" >&5
37560
echo "${ECHO_T}no" >&6; }
37561
tst_links_gmtime_r="no"
37565
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37566
conftest$ac_exeext conftest.$ac_ext
37568
if test "$tst_links_gmtime_r" = "yes"; then
37569
{ echo "$as_me:$LINENO: checking if gmtime_r is prototyped" >&5
37570
echo $ECHO_N "checking if gmtime_r is prototyped... $ECHO_C" >&6; }
37571
cat >conftest.$ac_ext <<_ACEOF
37574
cat confdefs.h >>conftest.$ac_ext
37575
cat >>conftest.$ac_ext <<_ACEOF
37576
/* end confdefs.h. */
37578
$curl_includes_time
37581
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37582
$EGREP "gmtime_r" >/dev/null 2>&1; then
37584
{ echo "$as_me:$LINENO: result: yes" >&5
37585
echo "${ECHO_T}yes" >&6; }
37586
tst_proto_gmtime_r="yes"
37590
{ echo "$as_me:$LINENO: result: no" >&5
37591
echo "${ECHO_T}no" >&6; }
37592
tst_proto_gmtime_r="no"
37599
if test "$tst_proto_gmtime_r" = "yes"; then
37600
{ echo "$as_me:$LINENO: checking if gmtime_r is compilable" >&5
37601
echo $ECHO_N "checking if gmtime_r is compilable... $ECHO_C" >&6; }
37602
cat >conftest.$ac_ext <<_ACEOF
37606
cat confdefs.h >>conftest.$ac_ext
37607
cat >>conftest.$ac_ext <<_ACEOF
37608
/* end confdefs.h. */
37610
$curl_includes_time
37615
if(0 != gmtime_r(0, 0))
37623
rm -f conftest.$ac_objext
37624
if { (ac_try="$ac_compile"
37625
case "(($ac_try" in
37626
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37627
*) ac_try_echo=$ac_try;;
37629
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37630
(eval "$ac_compile") 2>conftest.er1
37632
grep -v '^ *+' conftest.er1 >conftest.err
37634
cat conftest.err >&5
37635
echo "$as_me:$LINENO: \$? = $ac_status" >&5
37636
(exit $ac_status); } && {
37637
test -z "$ac_c_werror_flag" ||
37638
test ! -s conftest.err
37639
} && test -s conftest.$ac_objext; then
37641
{ echo "$as_me:$LINENO: result: yes" >&5
37642
echo "${ECHO_T}yes" >&6; }
37643
tst_compi_gmtime_r="yes"
37646
echo "$as_me: failed program was:" >&5
37647
sed 's/^/| /' conftest.$ac_ext >&5
37650
{ echo "$as_me:$LINENO: result: no" >&5
37651
echo "${ECHO_T}no" >&6; }
37652
tst_compi_gmtime_r="no"
37656
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37659
if test "x$cross_compiling" != "xyes" &&
37660
test "$tst_compi_gmtime_r" = "yes"; then
37661
{ echo "$as_me:$LINENO: checking if gmtime_r seems to work" >&5
37662
echo $ECHO_N "checking if gmtime_r seems to work... $ECHO_C" >&6; }
37663
if test "$cross_compiling" = yes; then
37664
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
37665
See \`config.log' for more details." >&5
37666
echo "$as_me: error: cannot run test program while cross compiling
37667
See \`config.log' for more details." >&2;}
37668
{ (exit 1); exit 1; }; }
37670
cat >conftest.$ac_ext <<_ACEOF
37674
cat confdefs.h >>conftest.$ac_ext
37675
cat >>conftest.$ac_ext <<_ACEOF
37676
/* end confdefs.h. */
37678
$curl_includes_stdlib
37679
$curl_includes_time
37684
time_t local = 1170352587;
37685
struct tm *gmt = 0;
37687
gmt = gmtime_r(&local, &result);
37698
rm -f conftest$ac_exeext
37699
if { (ac_try="$ac_link"
37700
case "(($ac_try" in
37701
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37702
*) ac_try_echo=$ac_try;;
37704
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37705
(eval "$ac_link") 2>&5
37707
echo "$as_me:$LINENO: \$? = $ac_status" >&5
37708
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37709
{ (case "(($ac_try" in
37710
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37711
*) ac_try_echo=$ac_try;;
37713
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37714
(eval "$ac_try") 2>&5
37716
echo "$as_me:$LINENO: \$? = $ac_status" >&5
37717
(exit $ac_status); }; }; then
37719
{ echo "$as_me:$LINENO: result: yes" >&5
37720
echo "${ECHO_T}yes" >&6; }
37721
tst_works_gmtime_r="yes"
37724
echo "$as_me: program exited with status $ac_status" >&5
37725
echo "$as_me: failed program was:" >&5
37726
sed 's/^/| /' conftest.$ac_ext >&5
37728
( exit $ac_status )
37730
{ echo "$as_me:$LINENO: result: no" >&5
37731
echo "${ECHO_T}no" >&6; }
37732
tst_works_gmtime_r="no"
37735
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37741
if test "$tst_compi_gmtime_r" = "yes" &&
37742
test "$tst_works_gmtime_r" != "no"; then
37743
{ echo "$as_me:$LINENO: checking if gmtime_r usage allowed" >&5
37744
echo $ECHO_N "checking if gmtime_r usage allowed... $ECHO_C" >&6; }
37745
if test "x$curl_disallow_gmtime_r" != "xyes"; then
37746
{ echo "$as_me:$LINENO: result: yes" >&5
37747
echo "${ECHO_T}yes" >&6; }
37748
tst_allow_gmtime_r="yes"
37750
{ echo "$as_me:$LINENO: result: no" >&5
37751
echo "${ECHO_T}no" >&6; }
37752
tst_allow_gmtime_r="no"
37756
{ echo "$as_me:$LINENO: checking if gmtime_r might be used" >&5
37757
echo $ECHO_N "checking if gmtime_r might be used... $ECHO_C" >&6; }
37758
if test "$tst_links_gmtime_r" = "yes" &&
37759
test "$tst_proto_gmtime_r" = "yes" &&
37760
test "$tst_compi_gmtime_r" = "yes" &&
37761
test "$tst_allow_gmtime_r" = "yes" &&
37762
test "$tst_works_gmtime_r" != "no"; then
37763
{ echo "$as_me:$LINENO: result: yes" >&5
37764
echo "${ECHO_T}yes" >&6; }
37766
cat >>confdefs.h <<_ACEOF
37767
#define HAVE_GMTIME_R 1
37770
ac_cv_func_gmtime_r="yes"
37772
{ echo "$as_me:$LINENO: result: no" >&5
37773
echo "${ECHO_T}no" >&6; }
37774
ac_cv_func_gmtime_r="no"
37778
curl_includes_arpa_inet="\
37779
/* includes start */
37780
#ifdef HAVE_SYS_TYPES_H
37781
# include <sys/types.h>
37783
#ifdef HAVE_SYS_SOCKET_H
37784
# include <sys/socket.h>
37786
#ifdef HAVE_NETINET_IN_H
37787
# include <netinet/in.h>
37789
#ifdef HAVE_ARPA_INET_H
37790
# include <arpa/inet.h>
37792
/* includes end */"
37797
for ac_header in sys/types.h sys/socket.h netinet/in.h arpa/inet.h
37799
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37800
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
37801
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
37802
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
37803
echo $ECHO_N "(cached) $ECHO_C" >&6
37805
cat >conftest.$ac_ext <<_ACEOF
37808
cat confdefs.h >>conftest.$ac_ext
37809
cat >>conftest.$ac_ext <<_ACEOF
37810
/* end confdefs.h. */
37811
$curl_includes_arpa_inet
37813
#include <$ac_header>
37815
rm -f conftest.$ac_objext
37816
if { (ac_try="$ac_compile"
37817
case "(($ac_try" in
37818
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37819
*) ac_try_echo=$ac_try;;
37821
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37822
(eval "$ac_compile") 2>conftest.er1
37824
grep -v '^ *+' conftest.er1 >conftest.err
37826
cat conftest.err >&5
37827
echo "$as_me:$LINENO: \$? = $ac_status" >&5
37828
(exit $ac_status); } && {
37829
test -z "$ac_c_werror_flag" ||
37830
test ! -s conftest.err
37831
} && test -s conftest.$ac_objext; then
37832
eval "$as_ac_Header=yes"
37834
echo "$as_me: failed program was:" >&5
37835
sed 's/^/| /' conftest.$ac_ext >&5
37837
eval "$as_ac_Header=no"
37840
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37842
ac_res=`eval echo '${'$as_ac_Header'}'`
37843
{ echo "$as_me:$LINENO: result: $ac_res" >&5
37844
echo "${ECHO_T}$ac_res" >&6; }
37845
if test `eval echo '${'$as_ac_Header'}'` = yes; then
37846
cat >>confdefs.h <<_ACEOF
37847
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37857
tst_links_inet_ntoa_r="unknown"
37858
tst_proto_inet_ntoa_r="unknown"
37859
tst_compi_inet_ntoa_r="unknown"
37860
tst_allow_inet_ntoa_r="unknown"
37861
tst_nargs_inet_ntoa_r="unknown"
37863
{ echo "$as_me:$LINENO: checking if inet_ntoa_r can be linked" >&5
37864
echo $ECHO_N "checking if inet_ntoa_r can be linked... $ECHO_C" >&6; }
37865
cat >conftest.$ac_ext <<_ACEOF
37869
cat confdefs.h >>conftest.$ac_ext
37870
cat >>conftest.$ac_ext <<_ACEOF
37871
/* end confdefs.h. */
37873
#define inet_ntoa_r innocuous_inet_ntoa_r
37875
# include <limits.h>
37877
# include <assert.h>
37883
char inet_ntoa_r ();
37884
#if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r
37890
return inet_ntoa_r ();
37896
rm -f conftest.$ac_objext conftest$ac_exeext
37897
if { (ac_try="$ac_link"
37898
case "(($ac_try" in
37899
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37900
*) ac_try_echo=$ac_try;;
37902
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37903
(eval "$ac_link") 2>conftest.er1
37905
grep -v '^ *+' conftest.er1 >conftest.err
37907
cat conftest.err >&5
37908
echo "$as_me:$LINENO: \$? = $ac_status" >&5
37909
(exit $ac_status); } && {
37910
test -z "$ac_c_werror_flag" ||
37911
test ! -s conftest.err
37912
} && test -s conftest$ac_exeext &&
37913
$as_test_x conftest$ac_exeext; then
37915
{ echo "$as_me:$LINENO: result: yes" >&5
37916
echo "${ECHO_T}yes" >&6; }
37917
tst_links_inet_ntoa_r="yes"
37920
echo "$as_me: failed program was:" >&5
37921
sed 's/^/| /' conftest.$ac_ext >&5
37924
{ echo "$as_me:$LINENO: result: no" >&5
37925
echo "${ECHO_T}no" >&6; }
37926
tst_links_inet_ntoa_r="no"
37930
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37931
conftest$ac_exeext conftest.$ac_ext
37933
if test "$tst_links_inet_ntoa_r" = "yes"; then
37934
{ echo "$as_me:$LINENO: checking if inet_ntoa_r is prototyped" >&5
37935
echo $ECHO_N "checking if inet_ntoa_r is prototyped... $ECHO_C" >&6; }
37936
cat >conftest.$ac_ext <<_ACEOF
37939
cat confdefs.h >>conftest.$ac_ext
37940
cat >>conftest.$ac_ext <<_ACEOF
37941
/* end confdefs.h. */
37943
$curl_includes_arpa_inet
37946
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37947
$EGREP "inet_ntoa_r" >/dev/null 2>&1; then
37949
{ echo "$as_me:$LINENO: result: yes" >&5
37950
echo "${ECHO_T}yes" >&6; }
37951
tst_proto_inet_ntoa_r="yes"
37955
{ echo "$as_me:$LINENO: result: no" >&5
37956
echo "${ECHO_T}no" >&6; }
37957
tst_proto_inet_ntoa_r="no"
37964
if test "$tst_proto_inet_ntoa_r" = "yes"; then
37965
if test "$tst_nargs_inet_ntoa_r" = "unknown"; then
37966
{ echo "$as_me:$LINENO: checking if inet_ntoa_r takes 2 args." >&5
37967
echo $ECHO_N "checking if inet_ntoa_r takes 2 args.... $ECHO_C" >&6; }
37968
cat >conftest.$ac_ext <<_ACEOF
37972
cat confdefs.h >>conftest.$ac_ext
37973
cat >>conftest.$ac_ext <<_ACEOF
37974
/* end confdefs.h. */
37976
$curl_includes_arpa_inet
37981
struct in_addr addr;
37982
if(0 != inet_ntoa_r(addr, 0))
37990
rm -f conftest.$ac_objext
37991
if { (ac_try="$ac_compile"
37992
case "(($ac_try" in
37993
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37994
*) ac_try_echo=$ac_try;;
37996
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37997
(eval "$ac_compile") 2>conftest.er1
37999
grep -v '^ *+' conftest.er1 >conftest.err
38001
cat conftest.err >&5
38002
echo "$as_me:$LINENO: \$? = $ac_status" >&5
38003
(exit $ac_status); } && {
38004
test -z "$ac_c_werror_flag" ||
38005
test ! -s conftest.err
38006
} && test -s conftest.$ac_objext; then
38008
{ echo "$as_me:$LINENO: result: yes" >&5
38009
echo "${ECHO_T}yes" >&6; }
38010
tst_compi_inet_ntoa_r="yes"
38011
tst_nargs_inet_ntoa_r="2"
38014
echo "$as_me: failed program was:" >&5
38015
sed 's/^/| /' conftest.$ac_ext >&5
38018
{ echo "$as_me:$LINENO: result: no" >&5
38019
echo "${ECHO_T}no" >&6; }
38020
tst_compi_inet_ntoa_r="no"
38024
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38026
if test "$tst_nargs_inet_ntoa_r" = "unknown"; then
38027
{ echo "$as_me:$LINENO: checking if inet_ntoa_r takes 3 args." >&5
38028
echo $ECHO_N "checking if inet_ntoa_r takes 3 args.... $ECHO_C" >&6; }
38029
cat >conftest.$ac_ext <<_ACEOF
38033
cat confdefs.h >>conftest.$ac_ext
38034
cat >>conftest.$ac_ext <<_ACEOF
38035
/* end confdefs.h. */
38037
$curl_includes_arpa_inet
38042
struct in_addr addr;
38043
if(0 != inet_ntoa_r(addr, 0, 0))
38051
rm -f conftest.$ac_objext
38052
if { (ac_try="$ac_compile"
38053
case "(($ac_try" in
38054
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38055
*) ac_try_echo=$ac_try;;
38057
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38058
(eval "$ac_compile") 2>conftest.er1
38060
grep -v '^ *+' conftest.er1 >conftest.err
38062
cat conftest.err >&5
38063
echo "$as_me:$LINENO: \$? = $ac_status" >&5
38064
(exit $ac_status); } && {
38065
test -z "$ac_c_werror_flag" ||
38066
test ! -s conftest.err
38067
} && test -s conftest.$ac_objext; then
38069
{ echo "$as_me:$LINENO: result: yes" >&5
38070
echo "${ECHO_T}yes" >&6; }
38071
tst_compi_inet_ntoa_r="yes"
38072
tst_nargs_inet_ntoa_r="3"
38075
echo "$as_me: failed program was:" >&5
38076
sed 's/^/| /' conftest.$ac_ext >&5
38079
{ echo "$as_me:$LINENO: result: no" >&5
38080
echo "${ECHO_T}no" >&6; }
38081
tst_compi_inet_ntoa_r="no"
38085
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38087
{ echo "$as_me:$LINENO: checking if inet_ntoa_r is compilable" >&5
38088
echo $ECHO_N "checking if inet_ntoa_r is compilable... $ECHO_C" >&6; }
38089
if test "$tst_compi_inet_ntoa_r" = "yes"; then
38090
{ echo "$as_me:$LINENO: result: yes" >&5
38091
echo "${ECHO_T}yes" >&6; }
38093
{ echo "$as_me:$LINENO: result: no" >&5
38094
echo "${ECHO_T}no" >&6; }
38098
if test "$tst_compi_inet_ntoa_r" = "yes"; then
38099
{ echo "$as_me:$LINENO: checking if inet_ntoa_r usage allowed" >&5
38100
echo $ECHO_N "checking if inet_ntoa_r usage allowed... $ECHO_C" >&6; }
38101
if test "x$curl_disallow_inet_ntoa_r" != "xyes"; then
38102
{ echo "$as_me:$LINENO: result: yes" >&5
38103
echo "${ECHO_T}yes" >&6; }
38104
tst_allow_inet_ntoa_r="yes"
38106
{ echo "$as_me:$LINENO: result: no" >&5
38107
echo "${ECHO_T}no" >&6; }
38108
tst_allow_inet_ntoa_r="no"
38112
{ echo "$as_me:$LINENO: checking if inet_ntoa_r might be used" >&5
38113
echo $ECHO_N "checking if inet_ntoa_r might be used... $ECHO_C" >&6; }
38114
if test "$tst_links_inet_ntoa_r" = "yes" &&
38115
test "$tst_proto_inet_ntoa_r" = "yes" &&
38116
test "$tst_compi_inet_ntoa_r" = "yes" &&
38117
test "$tst_allow_inet_ntoa_r" = "yes"; then
38118
{ echo "$as_me:$LINENO: result: yes" >&5
38119
echo "${ECHO_T}yes" >&6; }
38121
cat >>confdefs.h <<_ACEOF
38122
#define HAVE_INET_NTOA_R 1
38126
if test "$tst_nargs_inet_ntoa_r" -eq "2"; then
38128
cat >>confdefs.h <<\_ACEOF
38129
#define HAVE_INET_NTOA_R_2 1
38132
elif test "$tst_nargs_inet_ntoa_r" -eq "3"; then
38134
cat >>confdefs.h <<\_ACEOF
38135
#define HAVE_INET_NTOA_R_3 1
38140
ac_cv_func_inet_ntoa_r="yes"
38142
{ echo "$as_me:$LINENO: result: no" >&5
38143
echo "${ECHO_T}no" >&6; }
38144
ac_cv_func_inet_ntoa_r="no"
38149
tst_links_inet_ntop="unknown"
38150
tst_proto_inet_ntop="unknown"
38151
tst_compi_inet_ntop="unknown"
38152
tst_works_inet_ntop="unknown"
38153
tst_allow_inet_ntop="unknown"
38155
{ echo "$as_me:$LINENO: checking if inet_ntop can be linked" >&5
38156
echo $ECHO_N "checking if inet_ntop can be linked... $ECHO_C" >&6; }
38157
cat >conftest.$ac_ext <<_ACEOF
38161
cat confdefs.h >>conftest.$ac_ext
38162
cat >>conftest.$ac_ext <<_ACEOF
38163
/* end confdefs.h. */
38165
#define inet_ntop innocuous_inet_ntop
38167
# include <limits.h>
38169
# include <assert.h>
38176
#if defined __stub_inet_ntop || defined __stub___inet_ntop
38182
return inet_ntop ();
38188
rm -f conftest.$ac_objext conftest$ac_exeext
38189
if { (ac_try="$ac_link"
38190
case "(($ac_try" in
38191
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38192
*) ac_try_echo=$ac_try;;
38194
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38195
(eval "$ac_link") 2>conftest.er1
38197
grep -v '^ *+' conftest.er1 >conftest.err
38199
cat conftest.err >&5
38200
echo "$as_me:$LINENO: \$? = $ac_status" >&5
38201
(exit $ac_status); } && {
38202
test -z "$ac_c_werror_flag" ||
38203
test ! -s conftest.err
38204
} && test -s conftest$ac_exeext &&
38205
$as_test_x conftest$ac_exeext; then
38207
{ echo "$as_me:$LINENO: result: yes" >&5
38208
echo "${ECHO_T}yes" >&6; }
38209
tst_links_inet_ntop="yes"
38212
echo "$as_me: failed program was:" >&5
38213
sed 's/^/| /' conftest.$ac_ext >&5
38216
{ echo "$as_me:$LINENO: result: no" >&5
38217
echo "${ECHO_T}no" >&6; }
38218
tst_links_inet_ntop="no"
38222
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38223
conftest$ac_exeext conftest.$ac_ext
38225
if test "$tst_links_inet_ntop" = "yes"; then
38226
{ echo "$as_me:$LINENO: checking if inet_ntop is prototyped" >&5
38227
echo $ECHO_N "checking if inet_ntop is prototyped... $ECHO_C" >&6; }
38228
cat >conftest.$ac_ext <<_ACEOF
38231
cat confdefs.h >>conftest.$ac_ext
38232
cat >>conftest.$ac_ext <<_ACEOF
38233
/* end confdefs.h. */
38235
$curl_includes_arpa_inet
38238
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38239
$EGREP "inet_ntop" >/dev/null 2>&1; then
38241
{ echo "$as_me:$LINENO: result: yes" >&5
38242
echo "${ECHO_T}yes" >&6; }
38243
tst_proto_inet_ntop="yes"
38247
{ echo "$as_me:$LINENO: result: no" >&5
38248
echo "${ECHO_T}no" >&6; }
38249
tst_proto_inet_ntop="no"
38256
if test "$tst_proto_inet_ntop" = "yes"; then
38257
{ echo "$as_me:$LINENO: checking if inet_ntop is compilable" >&5
38258
echo $ECHO_N "checking if inet_ntop is compilable... $ECHO_C" >&6; }
38259
cat >conftest.$ac_ext <<_ACEOF
38263
cat confdefs.h >>conftest.$ac_ext
38264
cat >>conftest.$ac_ext <<_ACEOF
38265
/* end confdefs.h. */
38267
$curl_includes_arpa_inet
38272
if(0 != inet_ntop(0, 0, 0, 0))
38280
rm -f conftest.$ac_objext
38281
if { (ac_try="$ac_compile"
38282
case "(($ac_try" in
38283
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38284
*) ac_try_echo=$ac_try;;
38286
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38287
(eval "$ac_compile") 2>conftest.er1
38289
grep -v '^ *+' conftest.er1 >conftest.err
38291
cat conftest.err >&5
38292
echo "$as_me:$LINENO: \$? = $ac_status" >&5
38293
(exit $ac_status); } && {
38294
test -z "$ac_c_werror_flag" ||
38295
test ! -s conftest.err
38296
} && test -s conftest.$ac_objext; then
38298
{ echo "$as_me:$LINENO: result: yes" >&5
38299
echo "${ECHO_T}yes" >&6; }
38300
tst_compi_inet_ntop="yes"
38303
echo "$as_me: failed program was:" >&5
38304
sed 's/^/| /' conftest.$ac_ext >&5
38307
{ echo "$as_me:$LINENO: result: no" >&5
38308
echo "${ECHO_T}no" >&6; }
38309
tst_compi_inet_ntop="no"
38313
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38316
if test "x$cross_compiling" != "xyes" &&
38317
test "$tst_compi_inet_ntop" = "yes"; then
38318
{ echo "$as_me:$LINENO: checking if inet_ntop seems to work" >&5
38319
echo $ECHO_N "checking if inet_ntop seems to work... $ECHO_C" >&6; }
38320
if test "$cross_compiling" = yes; then
38321
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
38322
See \`config.log' for more details." >&5
38323
echo "$as_me: error: cannot run test program while cross compiling
38324
See \`config.log' for more details." >&2;}
38325
{ (exit 1); exit 1; }; }
38327
cat >conftest.$ac_ext <<_ACEOF
38331
cat confdefs.h >>conftest.$ac_ext
38332
cat >>conftest.$ac_ext <<_ACEOF
38333
/* end confdefs.h. */
38335
$curl_includes_stdlib
38336
$curl_includes_arpa_inet
38337
$curl_includes_string
38342
char ipv6res[sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255")];
38343
char ipv4res[sizeof "255.255.255.255"];
38344
unsigned char ipv6a[26];
38345
unsigned char ipv4a[5];
38356
ipv4ptr = inet_ntop(AF_INET, ipv4a, ipv4res, sizeof(ipv4res));
38358
exit(1); /* fail */
38359
if(ipv4ptr != ipv4res)
38360
exit(1); /* fail */
38362
exit(1); /* fail */
38363
if(memcmp(ipv4res, "192.168.100.1", 13) != 0)
38364
exit(1); /* fail */
38367
memset(ipv6a, 0, sizeof(ipv6a));
38380
ipv6ptr = inet_ntop(AF_INET6, ipv6a, ipv6res, sizeof(ipv6res));
38382
exit(1); /* fail */
38383
if(ipv6ptr != ipv6res)
38384
exit(1); /* fail */
38386
exit(1); /* fail */
38387
if(memcmp(ipv6res, "fe80::214:4fff:fe0b:76c8", 24) != 0)
38388
exit(1); /* fail */
38397
rm -f conftest$ac_exeext
38398
if { (ac_try="$ac_link"
38399
case "(($ac_try" in
38400
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38401
*) ac_try_echo=$ac_try;;
38403
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38404
(eval "$ac_link") 2>&5
38406
echo "$as_me:$LINENO: \$? = $ac_status" >&5
38407
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38408
{ (case "(($ac_try" in
38409
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38410
*) ac_try_echo=$ac_try;;
38412
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38413
(eval "$ac_try") 2>&5
38415
echo "$as_me:$LINENO: \$? = $ac_status" >&5
38416
(exit $ac_status); }; }; then
38418
{ echo "$as_me:$LINENO: result: yes" >&5
38419
echo "${ECHO_T}yes" >&6; }
38420
tst_works_inet_ntop="yes"
38423
echo "$as_me: program exited with status $ac_status" >&5
38424
echo "$as_me: failed program was:" >&5
38425
sed 's/^/| /' conftest.$ac_ext >&5
38427
( exit $ac_status )
38429
{ echo "$as_me:$LINENO: result: no" >&5
38430
echo "${ECHO_T}no" >&6; }
38431
tst_works_inet_ntop="no"
38434
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38440
if test "$tst_compi_inet_ntop" = "yes" &&
38441
test "$tst_works_inet_ntop" != "no"; then
38442
{ echo "$as_me:$LINENO: checking if inet_ntop usage allowed" >&5
38443
echo $ECHO_N "checking if inet_ntop usage allowed... $ECHO_C" >&6; }
38444
if test "x$curl_disallow_inet_ntop" != "xyes"; then
38445
{ echo "$as_me:$LINENO: result: yes" >&5
38446
echo "${ECHO_T}yes" >&6; }
38447
tst_allow_inet_ntop="yes"
38449
{ echo "$as_me:$LINENO: result: no" >&5
38450
echo "${ECHO_T}no" >&6; }
38451
tst_allow_inet_ntop="no"
38455
{ echo "$as_me:$LINENO: checking if inet_ntop might be used" >&5
38456
echo $ECHO_N "checking if inet_ntop might be used... $ECHO_C" >&6; }
38457
if test "$tst_links_inet_ntop" = "yes" &&
38458
test "$tst_proto_inet_ntop" = "yes" &&
38459
test "$tst_compi_inet_ntop" = "yes" &&
38460
test "$tst_allow_inet_ntop" = "yes" &&
38461
test "$tst_works_inet_ntop" != "no"; then
38462
{ echo "$as_me:$LINENO: result: yes" >&5
38463
echo "${ECHO_T}yes" >&6; }
38465
cat >>confdefs.h <<_ACEOF
38466
#define HAVE_INET_NTOP 1
38469
ac_cv_func_inet_ntop="yes"
38471
{ echo "$as_me:$LINENO: result: no" >&5
38472
echo "${ECHO_T}no" >&6; }
38473
ac_cv_func_inet_ntop="no"
38478
tst_links_inet_pton="unknown"
38479
tst_proto_inet_pton="unknown"
38480
tst_compi_inet_pton="unknown"
38481
tst_works_inet_pton="unknown"
38482
tst_allow_inet_pton="unknown"
38484
{ echo "$as_me:$LINENO: checking if inet_pton can be linked" >&5
38485
echo $ECHO_N "checking if inet_pton can be linked... $ECHO_C" >&6; }
38486
cat >conftest.$ac_ext <<_ACEOF
38490
cat confdefs.h >>conftest.$ac_ext
38491
cat >>conftest.$ac_ext <<_ACEOF
38492
/* end confdefs.h. */
38494
#define inet_pton innocuous_inet_pton
38496
# include <limits.h>
38498
# include <assert.h>
38505
#if defined __stub_inet_pton || defined __stub___inet_pton
38511
return inet_pton ();
38517
rm -f conftest.$ac_objext conftest$ac_exeext
38518
if { (ac_try="$ac_link"
38519
case "(($ac_try" in
38520
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38521
*) ac_try_echo=$ac_try;;
38523
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38524
(eval "$ac_link") 2>conftest.er1
38526
grep -v '^ *+' conftest.er1 >conftest.err
38528
cat conftest.err >&5
38529
echo "$as_me:$LINENO: \$? = $ac_status" >&5
38530
(exit $ac_status); } && {
38531
test -z "$ac_c_werror_flag" ||
38532
test ! -s conftest.err
38533
} && test -s conftest$ac_exeext &&
38534
$as_test_x conftest$ac_exeext; then
38536
{ echo "$as_me:$LINENO: result: yes" >&5
38537
echo "${ECHO_T}yes" >&6; }
38538
tst_links_inet_pton="yes"
38541
echo "$as_me: failed program was:" >&5
38542
sed 's/^/| /' conftest.$ac_ext >&5
38545
{ echo "$as_me:$LINENO: result: no" >&5
38546
echo "${ECHO_T}no" >&6; }
38547
tst_links_inet_pton="no"
38551
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38552
conftest$ac_exeext conftest.$ac_ext
38554
if test "$tst_links_inet_pton" = "yes"; then
38555
{ echo "$as_me:$LINENO: checking if inet_pton is prototyped" >&5
38556
echo $ECHO_N "checking if inet_pton is prototyped... $ECHO_C" >&6; }
38557
cat >conftest.$ac_ext <<_ACEOF
38560
cat confdefs.h >>conftest.$ac_ext
38561
cat >>conftest.$ac_ext <<_ACEOF
38562
/* end confdefs.h. */
38564
$curl_includes_arpa_inet
38567
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38568
$EGREP "inet_pton" >/dev/null 2>&1; then
38570
{ echo "$as_me:$LINENO: result: yes" >&5
38571
echo "${ECHO_T}yes" >&6; }
38572
tst_proto_inet_pton="yes"
38576
{ echo "$as_me:$LINENO: result: no" >&5
38577
echo "${ECHO_T}no" >&6; }
38578
tst_proto_inet_pton="no"
38585
if test "$tst_proto_inet_pton" = "yes"; then
38586
{ echo "$as_me:$LINENO: checking if inet_pton is compilable" >&5
38587
echo $ECHO_N "checking if inet_pton is compilable... $ECHO_C" >&6; }
38588
cat >conftest.$ac_ext <<_ACEOF
38592
cat confdefs.h >>conftest.$ac_ext
38593
cat >>conftest.$ac_ext <<_ACEOF
38594
/* end confdefs.h. */
38596
$curl_includes_arpa_inet
38601
if(0 != inet_pton(0, 0, 0))
38609
rm -f conftest.$ac_objext
38610
if { (ac_try="$ac_compile"
38611
case "(($ac_try" in
38612
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38613
*) ac_try_echo=$ac_try;;
38615
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38616
(eval "$ac_compile") 2>conftest.er1
38618
grep -v '^ *+' conftest.er1 >conftest.err
38620
cat conftest.err >&5
38621
echo "$as_me:$LINENO: \$? = $ac_status" >&5
38622
(exit $ac_status); } && {
38623
test -z "$ac_c_werror_flag" ||
38624
test ! -s conftest.err
38625
} && test -s conftest.$ac_objext; then
38627
{ echo "$as_me:$LINENO: result: yes" >&5
38628
echo "${ECHO_T}yes" >&6; }
38629
tst_compi_inet_pton="yes"
38632
echo "$as_me: failed program was:" >&5
38633
sed 's/^/| /' conftest.$ac_ext >&5
38636
{ echo "$as_me:$LINENO: result: no" >&5
38637
echo "${ECHO_T}no" >&6; }
38638
tst_compi_inet_pton="no"
38642
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38645
if test "x$cross_compiling" != "xyes" &&
38646
test "$tst_compi_inet_pton" = "yes"; then
38647
{ echo "$as_me:$LINENO: checking if inet_pton seems to work" >&5
38648
echo $ECHO_N "checking if inet_pton seems to work... $ECHO_C" >&6; }
38649
if test "$cross_compiling" = yes; then
38650
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
38651
See \`config.log' for more details." >&5
38652
echo "$as_me: error: cannot run test program while cross compiling
38653
See \`config.log' for more details." >&2;}
38654
{ (exit 1); exit 1; }; }
38656
cat >conftest.$ac_ext <<_ACEOF
38660
cat confdefs.h >>conftest.$ac_ext
38661
cat >>conftest.$ac_ext <<_ACEOF
38662
/* end confdefs.h. */
38664
$curl_includes_stdlib
38665
$curl_includes_arpa_inet
38666
$curl_includes_string
38671
unsigned char ipv6a[16+1];
38672
unsigned char ipv4a[4+1];
38673
const char *ipv6src = "fe80::214:4fff:fe0b:76c8";
38674
const char *ipv4src = "192.168.100.1";
38676
memset(ipv4a, 1, sizeof(ipv4a));
38677
if(1 != inet_pton(AF_INET, ipv4src, ipv4a))
38678
exit(1); /* fail */
38680
if( (ipv4a[0] != 0xc0) ||
38681
(ipv4a[1] != 0xa8) ||
38682
(ipv4a[2] != 0x64) ||
38683
(ipv4a[3] != 0x01) ||
38684
(ipv4a[4] != 0x01) )
38685
exit(1); /* fail */
38687
memset(ipv6a, 1, sizeof(ipv6a));
38688
if(1 != inet_pton(AF_INET6, ipv6src, ipv6a))
38689
exit(1); /* fail */
38691
if( (ipv6a[0] != 0xfe) ||
38692
(ipv6a[1] != 0x80) ||
38693
(ipv6a[8] != 0x02) ||
38694
(ipv6a[9] != 0x14) ||
38695
(ipv6a[10] != 0x4f) ||
38696
(ipv6a[11] != 0xff) ||
38697
(ipv6a[12] != 0xfe) ||
38698
(ipv6a[13] != 0x0b) ||
38699
(ipv6a[14] != 0x76) ||
38700
(ipv6a[15] != 0xc8) ||
38701
(ipv6a[16] != 0x01) )
38702
exit(1); /* fail */
38704
if( (ipv6a[2] != 0x0) ||
38705
(ipv6a[3] != 0x0) ||
38706
(ipv6a[4] != 0x0) ||
38707
(ipv6a[5] != 0x0) ||
38708
(ipv6a[6] != 0x0) ||
38709
(ipv6a[7] != 0x0) )
38710
exit(1); /* fail */
38719
rm -f conftest$ac_exeext
38720
if { (ac_try="$ac_link"
38721
case "(($ac_try" in
38722
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38723
*) ac_try_echo=$ac_try;;
38725
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38726
(eval "$ac_link") 2>&5
38728
echo "$as_me:$LINENO: \$? = $ac_status" >&5
38729
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38730
{ (case "(($ac_try" in
38731
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38732
*) ac_try_echo=$ac_try;;
38734
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38735
(eval "$ac_try") 2>&5
38737
echo "$as_me:$LINENO: \$? = $ac_status" >&5
38738
(exit $ac_status); }; }; then
38740
{ echo "$as_me:$LINENO: result: yes" >&5
38741
echo "${ECHO_T}yes" >&6; }
38742
tst_works_inet_pton="yes"
38745
echo "$as_me: program exited with status $ac_status" >&5
38746
echo "$as_me: failed program was:" >&5
38747
sed 's/^/| /' conftest.$ac_ext >&5
38749
( exit $ac_status )
38751
{ echo "$as_me:$LINENO: result: no" >&5
38752
echo "${ECHO_T}no" >&6; }
38753
tst_works_inet_pton="no"
38756
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38762
if test "$tst_compi_inet_pton" = "yes" &&
38763
test "$tst_works_inet_pton" != "no"; then
38764
{ echo "$as_me:$LINENO: checking if inet_pton usage allowed" >&5
38765
echo $ECHO_N "checking if inet_pton usage allowed... $ECHO_C" >&6; }
38766
if test "x$curl_disallow_inet_pton" != "xyes"; then
38767
{ echo "$as_me:$LINENO: result: yes" >&5
38768
echo "${ECHO_T}yes" >&6; }
38769
tst_allow_inet_pton="yes"
38771
{ echo "$as_me:$LINENO: result: no" >&5
38772
echo "${ECHO_T}no" >&6; }
38773
tst_allow_inet_pton="no"
38777
{ echo "$as_me:$LINENO: checking if inet_pton might be used" >&5
38778
echo $ECHO_N "checking if inet_pton might be used... $ECHO_C" >&6; }
38779
if test "$tst_links_inet_pton" = "yes" &&
38780
test "$tst_proto_inet_pton" = "yes" &&
38781
test "$tst_compi_inet_pton" = "yes" &&
38782
test "$tst_allow_inet_pton" = "yes" &&
38783
test "$tst_works_inet_pton" != "no"; then
38784
{ echo "$as_me:$LINENO: result: yes" >&5
38785
echo "${ECHO_T}yes" >&6; }
38787
cat >>confdefs.h <<_ACEOF
38788
#define HAVE_INET_PTON 1
38791
ac_cv_func_inet_pton="yes"
38793
{ echo "$as_me:$LINENO: result: no" >&5
38794
echo "${ECHO_T}no" >&6; }
38795
ac_cv_func_inet_pton="no"
38799
curl_includes_stropts="\
38800
/* includes start */
38801
#ifdef HAVE_SYS_TYPES_H
38802
# include <sys/types.h>
38804
#ifdef HAVE_UNISTD_H
38805
# include <unistd.h>
38807
#ifdef HAVE_SYS_SOCKET_H
38808
# include <sys/socket.h>
38810
#ifdef HAVE_SYS_IOCTL_H
38811
# include <sys/ioctl.h>
38813
#ifdef HAVE_STROPTS_H
38814
# include <stropts.h>
38816
/* includes end */"
38822
for ac_header in sys/types.h unistd.h sys/socket.h sys/ioctl.h stropts.h
38824
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38825
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
38826
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
38827
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
38828
echo $ECHO_N "(cached) $ECHO_C" >&6
38830
cat >conftest.$ac_ext <<_ACEOF
38833
cat confdefs.h >>conftest.$ac_ext
38834
cat >>conftest.$ac_ext <<_ACEOF
38835
/* end confdefs.h. */
38836
$curl_includes_stropts
38838
#include <$ac_header>
38840
rm -f conftest.$ac_objext
38841
if { (ac_try="$ac_compile"
38842
case "(($ac_try" in
38843
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38844
*) ac_try_echo=$ac_try;;
38846
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38847
(eval "$ac_compile") 2>conftest.er1
38849
grep -v '^ *+' conftest.er1 >conftest.err
38851
cat conftest.err >&5
38852
echo "$as_me:$LINENO: \$? = $ac_status" >&5
38853
(exit $ac_status); } && {
38854
test -z "$ac_c_werror_flag" ||
38855
test ! -s conftest.err
38856
} && test -s conftest.$ac_objext; then
38857
eval "$as_ac_Header=yes"
38859
echo "$as_me: failed program was:" >&5
38860
sed 's/^/| /' conftest.$ac_ext >&5
38862
eval "$as_ac_Header=no"
38865
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38867
ac_res=`eval echo '${'$as_ac_Header'}'`
38868
{ echo "$as_me:$LINENO: result: $ac_res" >&5
38869
echo "${ECHO_T}$ac_res" >&6; }
38870
if test `eval echo '${'$as_ac_Header'}'` = yes; then
38871
cat >>confdefs.h <<_ACEOF
38872
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38882
tst_links_ioctl="unknown"
38883
tst_proto_ioctl="unknown"
38884
tst_compi_ioctl="unknown"
38885
tst_allow_ioctl="unknown"
38887
{ echo "$as_me:$LINENO: checking if ioctl can be linked" >&5
38888
echo $ECHO_N "checking if ioctl can be linked... $ECHO_C" >&6; }
38889
cat >conftest.$ac_ext <<_ACEOF
38893
cat confdefs.h >>conftest.$ac_ext
38894
cat >>conftest.$ac_ext <<_ACEOF
38895
/* end confdefs.h. */
38897
#define ioctl innocuous_ioctl
38899
# include <limits.h>
38901
# include <assert.h>
38908
#if defined __stub_ioctl || defined __stub___ioctl
38920
rm -f conftest.$ac_objext conftest$ac_exeext
38921
if { (ac_try="$ac_link"
38922
case "(($ac_try" in
38923
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38924
*) ac_try_echo=$ac_try;;
38926
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38927
(eval "$ac_link") 2>conftest.er1
38929
grep -v '^ *+' conftest.er1 >conftest.err
38931
cat conftest.err >&5
38932
echo "$as_me:$LINENO: \$? = $ac_status" >&5
38933
(exit $ac_status); } && {
38934
test -z "$ac_c_werror_flag" ||
38935
test ! -s conftest.err
38936
} && test -s conftest$ac_exeext &&
38937
$as_test_x conftest$ac_exeext; then
38939
{ echo "$as_me:$LINENO: result: yes" >&5
38940
echo "${ECHO_T}yes" >&6; }
38941
tst_links_ioctl="yes"
38944
echo "$as_me: failed program was:" >&5
38945
sed 's/^/| /' conftest.$ac_ext >&5
38948
{ echo "$as_me:$LINENO: result: no" >&5
38949
echo "${ECHO_T}no" >&6; }
38950
tst_links_ioctl="no"
38954
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38955
conftest$ac_exeext conftest.$ac_ext
38957
if test "$tst_links_ioctl" = "yes"; then
38958
{ echo "$as_me:$LINENO: checking if ioctl is prototyped" >&5
38959
echo $ECHO_N "checking if ioctl is prototyped... $ECHO_C" >&6; }
38960
cat >conftest.$ac_ext <<_ACEOF
38963
cat confdefs.h >>conftest.$ac_ext
38964
cat >>conftest.$ac_ext <<_ACEOF
38965
/* end confdefs.h. */
38967
$curl_includes_stropts
38970
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38971
$EGREP "ioctl" >/dev/null 2>&1; then
38973
{ echo "$as_me:$LINENO: result: yes" >&5
38974
echo "${ECHO_T}yes" >&6; }
38975
tst_proto_ioctl="yes"
38979
{ echo "$as_me:$LINENO: result: no" >&5
38980
echo "${ECHO_T}no" >&6; }
38981
tst_proto_ioctl="no"
38988
if test "$tst_proto_ioctl" = "yes"; then
38989
{ echo "$as_me:$LINENO: checking if ioctl is compilable" >&5
38990
echo $ECHO_N "checking if ioctl is compilable... $ECHO_C" >&6; }
38991
cat >conftest.$ac_ext <<_ACEOF
38995
cat confdefs.h >>conftest.$ac_ext
38996
cat >>conftest.$ac_ext <<_ACEOF
38997
/* end confdefs.h. */
38999
$curl_includes_stropts
39004
if(0 != ioctl(0, 0, 0))
39012
rm -f conftest.$ac_objext
39013
if { (ac_try="$ac_compile"
39014
case "(($ac_try" in
39015
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39016
*) ac_try_echo=$ac_try;;
39018
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39019
(eval "$ac_compile") 2>conftest.er1
39021
grep -v '^ *+' conftest.er1 >conftest.err
39023
cat conftest.err >&5
39024
echo "$as_me:$LINENO: \$? = $ac_status" >&5
39025
(exit $ac_status); } && {
39026
test -z "$ac_c_werror_flag" ||
39027
test ! -s conftest.err
39028
} && test -s conftest.$ac_objext; then
39030
{ echo "$as_me:$LINENO: result: yes" >&5
39031
echo "${ECHO_T}yes" >&6; }
39032
tst_compi_ioctl="yes"
39035
echo "$as_me: failed program was:" >&5
39036
sed 's/^/| /' conftest.$ac_ext >&5
39039
{ echo "$as_me:$LINENO: result: no" >&5
39040
echo "${ECHO_T}no" >&6; }
39041
tst_compi_ioctl="no"
39045
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39048
if test "$tst_compi_ioctl" = "yes"; then
39049
{ echo "$as_me:$LINENO: checking if ioctl usage allowed" >&5
39050
echo $ECHO_N "checking if ioctl usage allowed... $ECHO_C" >&6; }
39051
if test "x$curl_disallow_ioctl" != "xyes"; then
39052
{ echo "$as_me:$LINENO: result: yes" >&5
39053
echo "${ECHO_T}yes" >&6; }
39054
tst_allow_ioctl="yes"
39056
{ echo "$as_me:$LINENO: result: no" >&5
39057
echo "${ECHO_T}no" >&6; }
39058
tst_allow_ioctl="no"
39062
{ echo "$as_me:$LINENO: checking if ioctl might be used" >&5
39063
echo $ECHO_N "checking if ioctl might be used... $ECHO_C" >&6; }
39064
if test "$tst_links_ioctl" = "yes" &&
39065
test "$tst_proto_ioctl" = "yes" &&
39066
test "$tst_compi_ioctl" = "yes" &&
39067
test "$tst_allow_ioctl" = "yes"; then
39068
{ echo "$as_me:$LINENO: result: yes" >&5
39069
echo "${ECHO_T}yes" >&6; }
39071
cat >>confdefs.h <<_ACEOF
39072
#define HAVE_IOCTL 1
39075
ac_cv_func_ioctl="yes"
39078
tst_compi_ioctl_fionbio="unknown"
39079
tst_allow_ioctl_fionbio="unknown"
39081
if test "$ac_cv_func_ioctl" = "yes"; then
39082
{ echo "$as_me:$LINENO: checking if ioctl FIONBIO is compilable" >&5
39083
echo $ECHO_N "checking if ioctl FIONBIO is compilable... $ECHO_C" >&6; }
39084
cat >conftest.$ac_ext <<_ACEOF
39088
cat confdefs.h >>conftest.$ac_ext
39089
cat >>conftest.$ac_ext <<_ACEOF
39090
/* end confdefs.h. */
39092
$curl_includes_stropts
39098
if(0 != ioctl(0, FIONBIO, &flags))
39106
rm -f conftest.$ac_objext
39107
if { (ac_try="$ac_compile"
39108
case "(($ac_try" in
39109
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39110
*) ac_try_echo=$ac_try;;
39112
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39113
(eval "$ac_compile") 2>conftest.er1
39115
grep -v '^ *+' conftest.er1 >conftest.err
39117
cat conftest.err >&5
39118
echo "$as_me:$LINENO: \$? = $ac_status" >&5
39119
(exit $ac_status); } && {
39120
test -z "$ac_c_werror_flag" ||
39121
test ! -s conftest.err
39122
} && test -s conftest.$ac_objext; then
39124
{ echo "$as_me:$LINENO: result: yes" >&5
39125
echo "${ECHO_T}yes" >&6; }
39126
tst_compi_ioctl_fionbio="yes"
39129
echo "$as_me: failed program was:" >&5
39130
sed 's/^/| /' conftest.$ac_ext >&5
39133
{ echo "$as_me:$LINENO: result: no" >&5
39134
echo "${ECHO_T}no" >&6; }
39135
tst_compi_ioctl_fionbio="no"
39139
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39142
if test "$tst_compi_ioctl_fionbio" = "yes"; then
39143
{ echo "$as_me:$LINENO: checking if ioctl FIONBIO usage allowed" >&5
39144
echo $ECHO_N "checking if ioctl FIONBIO usage allowed... $ECHO_C" >&6; }
39145
if test "x$curl_disallow_ioctl_fionbio" != "xyes"; then
39146
{ echo "$as_me:$LINENO: result: yes" >&5
39147
echo "${ECHO_T}yes" >&6; }
39148
tst_allow_ioctl_fionbio="yes"
39150
{ echo "$as_me:$LINENO: result: no" >&5
39151
echo "${ECHO_T}no" >&6; }
39152
tst_allow_ioctl_fionbio="no"
39156
{ echo "$as_me:$LINENO: checking if ioctl FIONBIO might be used" >&5
39157
echo $ECHO_N "checking if ioctl FIONBIO might be used... $ECHO_C" >&6; }
39158
if test "$tst_compi_ioctl_fionbio" = "yes" &&
39159
test "$tst_allow_ioctl_fionbio" = "yes"; then
39160
{ echo "$as_me:$LINENO: result: yes" >&5
39161
echo "${ECHO_T}yes" >&6; }
39163
cat >>confdefs.h <<_ACEOF
39164
#define HAVE_IOCTL_FIONBIO 1
39167
ac_cv_func_ioctl_fionbio="yes"
39169
{ echo "$as_me:$LINENO: result: no" >&5
39170
echo "${ECHO_T}no" >&6; }
39171
ac_cv_func_ioctl_fionbio="no"
39176
tst_compi_ioctl_siocgifaddr="unknown"
39177
tst_allow_ioctl_siocgifaddr="unknown"
39179
if test "$ac_cv_func_ioctl" = "yes"; then
39180
{ echo "$as_me:$LINENO: checking if ioctl SIOCGIFADDR is compilable" >&5
39181
echo $ECHO_N "checking if ioctl SIOCGIFADDR is compilable... $ECHO_C" >&6; }
39182
cat >conftest.$ac_ext <<_ACEOF
39186
cat confdefs.h >>conftest.$ac_ext
39187
cat >>conftest.$ac_ext <<_ACEOF
39188
/* end confdefs.h. */
39190
$curl_includes_stropts
39191
#include <net/if.h>
39197
if(0 != ioctl(0, SIOCGIFADDR, &ifr))
39205
rm -f conftest.$ac_objext
39206
if { (ac_try="$ac_compile"
39207
case "(($ac_try" in
39208
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39209
*) ac_try_echo=$ac_try;;
39211
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39212
(eval "$ac_compile") 2>conftest.er1
39214
grep -v '^ *+' conftest.er1 >conftest.err
39216
cat conftest.err >&5
39217
echo "$as_me:$LINENO: \$? = $ac_status" >&5
39218
(exit $ac_status); } && {
39219
test -z "$ac_c_werror_flag" ||
39220
test ! -s conftest.err
39221
} && test -s conftest.$ac_objext; then
39223
{ echo "$as_me:$LINENO: result: yes" >&5
39224
echo "${ECHO_T}yes" >&6; }
39225
tst_compi_ioctl_siocgifaddr="yes"
39228
echo "$as_me: failed program was:" >&5
39229
sed 's/^/| /' conftest.$ac_ext >&5
39232
{ echo "$as_me:$LINENO: result: no" >&5
39233
echo "${ECHO_T}no" >&6; }
39234
tst_compi_ioctl_siocgifaddr="no"
39238
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39241
if test "$tst_compi_ioctl_siocgifaddr" = "yes"; then
39242
{ echo "$as_me:$LINENO: checking if ioctl SIOCGIFADDR usage allowed" >&5
39243
echo $ECHO_N "checking if ioctl SIOCGIFADDR usage allowed... $ECHO_C" >&6; }
39244
if test "x$curl_disallow_ioctl_siocgifaddr" != "xyes"; then
39245
{ echo "$as_me:$LINENO: result: yes" >&5
39246
echo "${ECHO_T}yes" >&6; }
39247
tst_allow_ioctl_siocgifaddr="yes"
39249
{ echo "$as_me:$LINENO: result: no" >&5
39250
echo "${ECHO_T}no" >&6; }
39251
tst_allow_ioctl_siocgifaddr="no"
39255
{ echo "$as_me:$LINENO: checking if ioctl SIOCGIFADDR might be used" >&5
39256
echo $ECHO_N "checking if ioctl SIOCGIFADDR might be used... $ECHO_C" >&6; }
39257
if test "$tst_compi_ioctl_siocgifaddr" = "yes" &&
39258
test "$tst_allow_ioctl_siocgifaddr" = "yes"; then
39259
{ echo "$as_me:$LINENO: result: yes" >&5
39260
echo "${ECHO_T}yes" >&6; }
39262
cat >>confdefs.h <<_ACEOF
39263
#define HAVE_IOCTL_SIOCGIFADDR 1
39266
ac_cv_func_ioctl_siocgifaddr="yes"
39268
{ echo "$as_me:$LINENO: result: no" >&5
39269
echo "${ECHO_T}no" >&6; }
39270
ac_cv_func_ioctl_siocgifaddr="no"
39274
{ echo "$as_me:$LINENO: result: no" >&5
39275
echo "${ECHO_T}no" >&6; }
39276
ac_cv_func_ioctl="no"
39281
tst_links_ioctlsocket="unknown"
39282
tst_proto_ioctlsocket="unknown"
39283
tst_compi_ioctlsocket="unknown"
39284
tst_allow_ioctlsocket="unknown"
39286
{ echo "$as_me:$LINENO: checking if ioctlsocket can be linked" >&5
39287
echo $ECHO_N "checking if ioctlsocket can be linked... $ECHO_C" >&6; }
39288
cat >conftest.$ac_ext <<_ACEOF
39292
cat confdefs.h >>conftest.$ac_ext
39293
cat >>conftest.$ac_ext <<_ACEOF
39294
/* end confdefs.h. */
39296
$curl_includes_winsock2
39301
if(0 != ioctlsocket(0, 0, 0))
39309
rm -f conftest.$ac_objext conftest$ac_exeext
39310
if { (ac_try="$ac_link"
39311
case "(($ac_try" in
39312
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39313
*) ac_try_echo=$ac_try;;
39315
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39316
(eval "$ac_link") 2>conftest.er1
39318
grep -v '^ *+' conftest.er1 >conftest.err
39320
cat conftest.err >&5
39321
echo "$as_me:$LINENO: \$? = $ac_status" >&5
39322
(exit $ac_status); } && {
39323
test -z "$ac_c_werror_flag" ||
39324
test ! -s conftest.err
39325
} && test -s conftest$ac_exeext &&
39326
$as_test_x conftest$ac_exeext; then
39328
{ echo "$as_me:$LINENO: result: yes" >&5
39329
echo "${ECHO_T}yes" >&6; }
39330
tst_links_ioctlsocket="yes"
39333
echo "$as_me: failed program was:" >&5
39334
sed 's/^/| /' conftest.$ac_ext >&5
39337
{ echo "$as_me:$LINENO: result: no" >&5
39338
echo "${ECHO_T}no" >&6; }
39339
tst_links_ioctlsocket="no"
39343
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39344
conftest$ac_exeext conftest.$ac_ext
39346
if test "$tst_links_ioctlsocket" = "yes"; then
39347
{ echo "$as_me:$LINENO: checking if ioctlsocket is prototyped" >&5
39348
echo $ECHO_N "checking if ioctlsocket is prototyped... $ECHO_C" >&6; }
39349
cat >conftest.$ac_ext <<_ACEOF
39352
cat confdefs.h >>conftest.$ac_ext
39353
cat >>conftest.$ac_ext <<_ACEOF
39354
/* end confdefs.h. */
39356
$curl_includes_winsock2
39359
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39360
$EGREP "ioctlsocket" >/dev/null 2>&1; then
39362
{ echo "$as_me:$LINENO: result: yes" >&5
39363
echo "${ECHO_T}yes" >&6; }
39364
tst_proto_ioctlsocket="yes"
39368
{ echo "$as_me:$LINENO: result: no" >&5
39369
echo "${ECHO_T}no" >&6; }
39370
tst_proto_ioctlsocket="no"
39377
if test "$tst_proto_ioctlsocket" = "yes"; then
39378
{ echo "$as_me:$LINENO: checking if ioctlsocket is compilable" >&5
39379
echo $ECHO_N "checking if ioctlsocket is compilable... $ECHO_C" >&6; }
39380
cat >conftest.$ac_ext <<_ACEOF
39384
cat confdefs.h >>conftest.$ac_ext
39385
cat >>conftest.$ac_ext <<_ACEOF
39386
/* end confdefs.h. */
39388
$curl_includes_winsock2
39393
if(0 != ioctlsocket(0, 0, 0))
39401
rm -f conftest.$ac_objext
39402
if { (ac_try="$ac_compile"
39403
case "(($ac_try" in
39404
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39405
*) ac_try_echo=$ac_try;;
39407
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39408
(eval "$ac_compile") 2>conftest.er1
39410
grep -v '^ *+' conftest.er1 >conftest.err
39412
cat conftest.err >&5
39413
echo "$as_me:$LINENO: \$? = $ac_status" >&5
39414
(exit $ac_status); } && {
39415
test -z "$ac_c_werror_flag" ||
39416
test ! -s conftest.err
39417
} && test -s conftest.$ac_objext; then
39419
{ echo "$as_me:$LINENO: result: yes" >&5
39420
echo "${ECHO_T}yes" >&6; }
39421
tst_compi_ioctlsocket="yes"
39424
echo "$as_me: failed program was:" >&5
39425
sed 's/^/| /' conftest.$ac_ext >&5
39428
{ echo "$as_me:$LINENO: result: no" >&5
39429
echo "${ECHO_T}no" >&6; }
39430
tst_compi_ioctlsocket="no"
39434
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39437
if test "$tst_compi_ioctlsocket" = "yes"; then
39438
{ echo "$as_me:$LINENO: checking if ioctlsocket usage allowed" >&5
39439
echo $ECHO_N "checking if ioctlsocket usage allowed... $ECHO_C" >&6; }
39440
if test "x$curl_disallow_ioctlsocket" != "xyes"; then
39441
{ echo "$as_me:$LINENO: result: yes" >&5
39442
echo "${ECHO_T}yes" >&6; }
39443
tst_allow_ioctlsocket="yes"
39445
{ echo "$as_me:$LINENO: result: no" >&5
39446
echo "${ECHO_T}no" >&6; }
39447
tst_allow_ioctlsocket="no"
39451
{ echo "$as_me:$LINENO: checking if ioctlsocket might be used" >&5
39452
echo $ECHO_N "checking if ioctlsocket might be used... $ECHO_C" >&6; }
39453
if test "$tst_links_ioctlsocket" = "yes" &&
39454
test "$tst_proto_ioctlsocket" = "yes" &&
39455
test "$tst_compi_ioctlsocket" = "yes" &&
39456
test "$tst_allow_ioctlsocket" = "yes"; then
39457
{ echo "$as_me:$LINENO: result: yes" >&5
39458
echo "${ECHO_T}yes" >&6; }
39460
cat >>confdefs.h <<_ACEOF
39461
#define HAVE_IOCTLSOCKET 1
39464
ac_cv_func_ioctlsocket="yes"
39467
tst_compi_ioctlsocket_fionbio="unknown"
39468
tst_allow_ioctlsocket_fionbio="unknown"
39470
if test "$ac_cv_func_ioctlsocket" = "yes"; then
39471
{ echo "$as_me:$LINENO: checking if ioctlsocket FIONBIO is compilable" >&5
39472
echo $ECHO_N "checking if ioctlsocket FIONBIO is compilable... $ECHO_C" >&6; }
39473
cat >conftest.$ac_ext <<_ACEOF
39477
cat confdefs.h >>conftest.$ac_ext
39478
cat >>conftest.$ac_ext <<_ACEOF
39479
/* end confdefs.h. */
39481
$curl_includes_winsock2
39487
if(0 != ioctlsocket(0, FIONBIO, &flags))
39495
rm -f conftest.$ac_objext
39496
if { (ac_try="$ac_compile"
39497
case "(($ac_try" in
39498
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39499
*) ac_try_echo=$ac_try;;
39501
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39502
(eval "$ac_compile") 2>conftest.er1
39504
grep -v '^ *+' conftest.er1 >conftest.err
39506
cat conftest.err >&5
39507
echo "$as_me:$LINENO: \$? = $ac_status" >&5
39508
(exit $ac_status); } && {
39509
test -z "$ac_c_werror_flag" ||
39510
test ! -s conftest.err
39511
} && test -s conftest.$ac_objext; then
39513
{ echo "$as_me:$LINENO: result: yes" >&5
39514
echo "${ECHO_T}yes" >&6; }
39515
tst_compi_ioctlsocket_fionbio="yes"
39518
echo "$as_me: failed program was:" >&5
39519
sed 's/^/| /' conftest.$ac_ext >&5
39522
{ echo "$as_me:$LINENO: result: no" >&5
39523
echo "${ECHO_T}no" >&6; }
39524
tst_compi_ioctlsocket_fionbio="no"
39528
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39531
if test "$tst_compi_ioctlsocket_fionbio" = "yes"; then
39532
{ echo "$as_me:$LINENO: checking if ioctlsocket FIONBIO usage allowed" >&5
39533
echo $ECHO_N "checking if ioctlsocket FIONBIO usage allowed... $ECHO_C" >&6; }
39534
if test "x$curl_disallow_ioctlsocket_fionbio" != "xyes"; then
39535
{ echo "$as_me:$LINENO: result: yes" >&5
39536
echo "${ECHO_T}yes" >&6; }
39537
tst_allow_ioctlsocket_fionbio="yes"
39539
{ echo "$as_me:$LINENO: result: no" >&5
39540
echo "${ECHO_T}no" >&6; }
39541
tst_allow_ioctlsocket_fionbio="no"
39545
{ echo "$as_me:$LINENO: checking if ioctlsocket FIONBIO might be used" >&5
39546
echo $ECHO_N "checking if ioctlsocket FIONBIO might be used... $ECHO_C" >&6; }
39547
if test "$tst_compi_ioctlsocket_fionbio" = "yes" &&
39548
test "$tst_allow_ioctlsocket_fionbio" = "yes"; then
39549
{ echo "$as_me:$LINENO: result: yes" >&5
39550
echo "${ECHO_T}yes" >&6; }
39552
cat >>confdefs.h <<_ACEOF
39553
#define HAVE_IOCTLSOCKET_FIONBIO 1
39556
ac_cv_func_ioctlsocket_fionbio="yes"
39558
{ echo "$as_me:$LINENO: result: no" >&5
39559
echo "${ECHO_T}no" >&6; }
39560
ac_cv_func_ioctlsocket_fionbio="no"
39564
{ echo "$as_me:$LINENO: result: no" >&5
39565
echo "${ECHO_T}no" >&6; }
39566
ac_cv_func_ioctlsocket="no"
39571
tst_links_ioctlsocket_camel="unknown"
39572
tst_proto_ioctlsocket_camel="unknown"
39573
tst_compi_ioctlsocket_camel="unknown"
39574
tst_allow_ioctlsocket_camel="unknown"
39576
{ echo "$as_me:$LINENO: checking if IoctlSocket can be linked" >&5
39577
echo $ECHO_N "checking if IoctlSocket can be linked... $ECHO_C" >&6; }
39578
cat >conftest.$ac_ext <<_ACEOF
39582
cat confdefs.h >>conftest.$ac_ext
39583
cat >>conftest.$ac_ext <<_ACEOF
39584
/* end confdefs.h. */
39586
#define IoctlSocket innocuous_IoctlSocket
39588
# include <limits.h>
39590
# include <assert.h>
39596
char IoctlSocket ();
39597
#if defined __stub_IoctlSocket || defined __stub___IoctlSocket
39603
return IoctlSocket ();
39609
rm -f conftest.$ac_objext conftest$ac_exeext
39610
if { (ac_try="$ac_link"
39611
case "(($ac_try" in
39612
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39613
*) ac_try_echo=$ac_try;;
39615
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39616
(eval "$ac_link") 2>conftest.er1
39618
grep -v '^ *+' conftest.er1 >conftest.err
39620
cat conftest.err >&5
39621
echo "$as_me:$LINENO: \$? = $ac_status" >&5
39622
(exit $ac_status); } && {
39623
test -z "$ac_c_werror_flag" ||
39624
test ! -s conftest.err
39625
} && test -s conftest$ac_exeext &&
39626
$as_test_x conftest$ac_exeext; then
39628
{ echo "$as_me:$LINENO: result: yes" >&5
39629
echo "${ECHO_T}yes" >&6; }
39630
tst_links_ioctlsocket_camel="yes"
39633
echo "$as_me: failed program was:" >&5
39634
sed 's/^/| /' conftest.$ac_ext >&5
39637
{ echo "$as_me:$LINENO: result: no" >&5
39638
echo "${ECHO_T}no" >&6; }
39639
tst_links_ioctlsocket_camel="no"
39643
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39644
conftest$ac_exeext conftest.$ac_ext
39646
if test "$tst_links_ioctlsocket_camel" = "yes"; then
39647
{ echo "$as_me:$LINENO: checking if IoctlSocket is prototyped" >&5
39648
echo $ECHO_N "checking if IoctlSocket is prototyped... $ECHO_C" >&6; }
39649
cat >conftest.$ac_ext <<_ACEOF
39652
cat confdefs.h >>conftest.$ac_ext
39653
cat >>conftest.$ac_ext <<_ACEOF
39654
/* end confdefs.h. */
39656
$curl_includes_stropts
39659
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39660
$EGREP "IoctlSocket" >/dev/null 2>&1; then
39662
{ echo "$as_me:$LINENO: result: yes" >&5
39663
echo "${ECHO_T}yes" >&6; }
39664
tst_proto_ioctlsocket_camel="yes"
39668
{ echo "$as_me:$LINENO: result: no" >&5
39669
echo "${ECHO_T}no" >&6; }
39670
tst_proto_ioctlsocket_camel="no"
39677
if test "$tst_proto_ioctlsocket_camel" = "yes"; then
39678
{ echo "$as_me:$LINENO: checking if IoctlSocket is compilable" >&5
39679
echo $ECHO_N "checking if IoctlSocket is compilable... $ECHO_C" >&6; }
39680
cat >conftest.$ac_ext <<_ACEOF
39684
cat confdefs.h >>conftest.$ac_ext
39685
cat >>conftest.$ac_ext <<_ACEOF
39686
/* end confdefs.h. */
39688
$curl_includes_stropts
39693
if(0 != IoctlSocket(0, 0, 0))
39701
rm -f conftest.$ac_objext
39702
if { (ac_try="$ac_compile"
39703
case "(($ac_try" in
39704
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39705
*) ac_try_echo=$ac_try;;
39707
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39708
(eval "$ac_compile") 2>conftest.er1
39710
grep -v '^ *+' conftest.er1 >conftest.err
39712
cat conftest.err >&5
39713
echo "$as_me:$LINENO: \$? = $ac_status" >&5
39714
(exit $ac_status); } && {
39715
test -z "$ac_c_werror_flag" ||
39716
test ! -s conftest.err
39717
} && test -s conftest.$ac_objext; then
39719
{ echo "$as_me:$LINENO: result: yes" >&5
39720
echo "${ECHO_T}yes" >&6; }
39721
tst_compi_ioctlsocket_camel="yes"
39724
echo "$as_me: failed program was:" >&5
39725
sed 's/^/| /' conftest.$ac_ext >&5
39728
{ echo "$as_me:$LINENO: result: no" >&5
39729
echo "${ECHO_T}no" >&6; }
39730
tst_compi_ioctlsocket_camel="no"
39734
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39737
if test "$tst_compi_ioctlsocket_camel" = "yes"; then
39738
{ echo "$as_me:$LINENO: checking if IoctlSocket usage allowed" >&5
39739
echo $ECHO_N "checking if IoctlSocket usage allowed... $ECHO_C" >&6; }
39740
if test "x$curl_disallow_ioctlsocket_camel" != "xyes"; then
39741
{ echo "$as_me:$LINENO: result: yes" >&5
39742
echo "${ECHO_T}yes" >&6; }
39743
tst_allow_ioctlsocket_camel="yes"
39745
{ echo "$as_me:$LINENO: result: no" >&5
39746
echo "${ECHO_T}no" >&6; }
39747
tst_allow_ioctlsocket_camel="no"
39751
{ echo "$as_me:$LINENO: checking if IoctlSocket might be used" >&5
39752
echo $ECHO_N "checking if IoctlSocket might be used... $ECHO_C" >&6; }
39753
if test "$tst_links_ioctlsocket_camel" = "yes" &&
39754
test "$tst_proto_ioctlsocket_camel" = "yes" &&
39755
test "$tst_compi_ioctlsocket_camel" = "yes" &&
39756
test "$tst_allow_ioctlsocket_camel" = "yes"; then
39757
{ echo "$as_me:$LINENO: result: yes" >&5
39758
echo "${ECHO_T}yes" >&6; }
39760
cat >>confdefs.h <<_ACEOF
39761
#define HAVE_IOCTLSOCKET_CAMEL 1
39764
ac_cv_func_ioctlsocket_camel="yes"
39767
tst_compi_ioctlsocket_camel_fionbio="unknown"
39768
tst_allow_ioctlsocket_camel_fionbio="unknown"
39770
if test "$ac_cv_func_ioctlsocket_camel" = "yes"; then
39771
{ echo "$as_me:$LINENO: checking if IoctlSocket FIONBIO is compilable" >&5
39772
echo $ECHO_N "checking if IoctlSocket FIONBIO is compilable... $ECHO_C" >&6; }
39773
cat >conftest.$ac_ext <<_ACEOF
39777
cat confdefs.h >>conftest.$ac_ext
39778
cat >>conftest.$ac_ext <<_ACEOF
39779
/* end confdefs.h. */
39781
$curl_includes_stropts
39787
if(0 != ioctlsocket(0, FIONBIO, &flags))
39795
rm -f conftest.$ac_objext
39796
if { (ac_try="$ac_compile"
39797
case "(($ac_try" in
39798
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39799
*) ac_try_echo=$ac_try;;
39801
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39802
(eval "$ac_compile") 2>conftest.er1
39804
grep -v '^ *+' conftest.er1 >conftest.err
39806
cat conftest.err >&5
39807
echo "$as_me:$LINENO: \$? = $ac_status" >&5
39808
(exit $ac_status); } && {
39809
test -z "$ac_c_werror_flag" ||
39810
test ! -s conftest.err
39811
} && test -s conftest.$ac_objext; then
39813
{ echo "$as_me:$LINENO: result: yes" >&5
39814
echo "${ECHO_T}yes" >&6; }
39815
tst_compi_ioctlsocket_camel_fionbio="yes"
39818
echo "$as_me: failed program was:" >&5
39819
sed 's/^/| /' conftest.$ac_ext >&5
39822
{ echo "$as_me:$LINENO: result: no" >&5
39823
echo "${ECHO_T}no" >&6; }
39824
tst_compi_ioctlsocket_camel_fionbio="no"
39828
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39831
if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes"; then
39832
{ echo "$as_me:$LINENO: checking if IoctlSocket FIONBIO usage allowed" >&5
39833
echo $ECHO_N "checking if IoctlSocket FIONBIO usage allowed... $ECHO_C" >&6; }
39834
if test "x$curl_disallow_ioctlsocket_camel_fionbio" != "xyes"; then
39835
{ echo "$as_me:$LINENO: result: yes" >&5
39836
echo "${ECHO_T}yes" >&6; }
39837
tst_allow_ioctlsocket_camel_fionbio="yes"
39839
{ echo "$as_me:$LINENO: result: no" >&5
39840
echo "${ECHO_T}no" >&6; }
39841
tst_allow_ioctlsocket_camel_fionbio="no"
39845
{ echo "$as_me:$LINENO: checking if IoctlSocket FIONBIO might be used" >&5
39846
echo $ECHO_N "checking if IoctlSocket FIONBIO might be used... $ECHO_C" >&6; }
39847
if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes" &&
39848
test "$tst_allow_ioctlsocket_camel_fionbio" = "yes"; then
39849
{ echo "$as_me:$LINENO: result: yes" >&5
39850
echo "${ECHO_T}yes" >&6; }
39852
cat >>confdefs.h <<_ACEOF
39853
#define HAVE_IOCTLSOCKET_CAMEL_FIONBIO 1
39856
ac_cv_func_ioctlsocket_camel_fionbio="yes"
39858
{ echo "$as_me:$LINENO: result: no" >&5
39859
echo "${ECHO_T}no" >&6; }
39860
ac_cv_func_ioctlsocket_camel_fionbio="no"
39864
{ echo "$as_me:$LINENO: result: no" >&5
39865
echo "${ECHO_T}no" >&6; }
39866
ac_cv_func_ioctlsocket_camel="no"
39871
tst_links_localtime_r="unknown"
39872
tst_proto_localtime_r="unknown"
39873
tst_compi_localtime_r="unknown"
39874
tst_works_localtime_r="unknown"
39875
tst_allow_localtime_r="unknown"
39877
{ echo "$as_me:$LINENO: checking if localtime_r can be linked" >&5
39878
echo $ECHO_N "checking if localtime_r can be linked... $ECHO_C" >&6; }
39879
cat >conftest.$ac_ext <<_ACEOF
39883
cat confdefs.h >>conftest.$ac_ext
39884
cat >>conftest.$ac_ext <<_ACEOF
39885
/* end confdefs.h. */
39887
#define localtime_r innocuous_localtime_r
39889
# include <limits.h>
39891
# include <assert.h>
39897
char localtime_r ();
39898
#if defined __stub_localtime_r || defined __stub___localtime_r
39904
return localtime_r ();
39910
rm -f conftest.$ac_objext conftest$ac_exeext
39911
if { (ac_try="$ac_link"
39912
case "(($ac_try" in
39913
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39914
*) ac_try_echo=$ac_try;;
39916
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39917
(eval "$ac_link") 2>conftest.er1
39919
grep -v '^ *+' conftest.er1 >conftest.err
39921
cat conftest.err >&5
39922
echo "$as_me:$LINENO: \$? = $ac_status" >&5
39923
(exit $ac_status); } && {
39924
test -z "$ac_c_werror_flag" ||
39925
test ! -s conftest.err
39926
} && test -s conftest$ac_exeext &&
39927
$as_test_x conftest$ac_exeext; then
39929
{ echo "$as_me:$LINENO: result: yes" >&5
39930
echo "${ECHO_T}yes" >&6; }
39931
tst_links_localtime_r="yes"
39934
echo "$as_me: failed program was:" >&5
39935
sed 's/^/| /' conftest.$ac_ext >&5
39938
{ echo "$as_me:$LINENO: result: no" >&5
39939
echo "${ECHO_T}no" >&6; }
39940
tst_links_localtime_r="no"
39944
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39945
conftest$ac_exeext conftest.$ac_ext
39947
if test "$tst_links_localtime_r" = "yes"; then
39948
{ echo "$as_me:$LINENO: checking if localtime_r is prototyped" >&5
39949
echo $ECHO_N "checking if localtime_r is prototyped... $ECHO_C" >&6; }
39950
cat >conftest.$ac_ext <<_ACEOF
39953
cat confdefs.h >>conftest.$ac_ext
39954
cat >>conftest.$ac_ext <<_ACEOF
39955
/* end confdefs.h. */
39957
$curl_includes_time
39960
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39961
$EGREP "localtime_r" >/dev/null 2>&1; then
39963
{ echo "$as_me:$LINENO: result: yes" >&5
39964
echo "${ECHO_T}yes" >&6; }
39965
tst_proto_localtime_r="yes"
39969
{ echo "$as_me:$LINENO: result: no" >&5
39970
echo "${ECHO_T}no" >&6; }
39971
tst_proto_localtime_r="no"
39978
if test "$tst_proto_localtime_r" = "yes"; then
39979
{ echo "$as_me:$LINENO: checking if localtime_r is compilable" >&5
39980
echo $ECHO_N "checking if localtime_r is compilable... $ECHO_C" >&6; }
39981
cat >conftest.$ac_ext <<_ACEOF
39985
cat confdefs.h >>conftest.$ac_ext
39986
cat >>conftest.$ac_ext <<_ACEOF
39987
/* end confdefs.h. */
39989
$curl_includes_time
39994
if(0 != localtime_r(0, 0))
40002
rm -f conftest.$ac_objext
40003
if { (ac_try="$ac_compile"
40004
case "(($ac_try" in
40005
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40006
*) ac_try_echo=$ac_try;;
40008
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40009
(eval "$ac_compile") 2>conftest.er1
40011
grep -v '^ *+' conftest.er1 >conftest.err
40013
cat conftest.err >&5
40014
echo "$as_me:$LINENO: \$? = $ac_status" >&5
40015
(exit $ac_status); } && {
40016
test -z "$ac_c_werror_flag" ||
40017
test ! -s conftest.err
40018
} && test -s conftest.$ac_objext; then
40020
{ echo "$as_me:$LINENO: result: yes" >&5
40021
echo "${ECHO_T}yes" >&6; }
40022
tst_compi_localtime_r="yes"
40025
echo "$as_me: failed program was:" >&5
40026
sed 's/^/| /' conftest.$ac_ext >&5
40029
{ echo "$as_me:$LINENO: result: no" >&5
40030
echo "${ECHO_T}no" >&6; }
40031
tst_compi_localtime_r="no"
40035
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40038
if test "x$cross_compiling" != "xyes" &&
40039
test "$tst_compi_localtime_r" = "yes"; then
40040
{ echo "$as_me:$LINENO: checking if localtime_r seems to work" >&5
40041
echo $ECHO_N "checking if localtime_r seems to work... $ECHO_C" >&6; }
40042
if test "$cross_compiling" = yes; then
40043
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
40044
See \`config.log' for more details." >&5
40045
echo "$as_me: error: cannot run test program while cross compiling
40046
See \`config.log' for more details." >&2;}
40047
{ (exit 1); exit 1; }; }
40049
cat >conftest.$ac_ext <<_ACEOF
40053
cat confdefs.h >>conftest.$ac_ext
40054
cat >>conftest.$ac_ext <<_ACEOF
40055
/* end confdefs.h. */
40057
$curl_includes_stdlib
40058
$curl_includes_time
40063
time_t clock = 1170352587;
40064
struct tm *tmp = 0;
40066
tmp = localtime_r(&clock, &result);
40077
rm -f conftest$ac_exeext
40078
if { (ac_try="$ac_link"
40079
case "(($ac_try" in
40080
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40081
*) ac_try_echo=$ac_try;;
40083
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40084
(eval "$ac_link") 2>&5
40086
echo "$as_me:$LINENO: \$? = $ac_status" >&5
40087
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40088
{ (case "(($ac_try" in
40089
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40090
*) ac_try_echo=$ac_try;;
40092
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40093
(eval "$ac_try") 2>&5
40095
echo "$as_me:$LINENO: \$? = $ac_status" >&5
40096
(exit $ac_status); }; }; then
40098
{ echo "$as_me:$LINENO: result: yes" >&5
40099
echo "${ECHO_T}yes" >&6; }
40100
tst_works_localtime_r="yes"
40103
echo "$as_me: program exited with status $ac_status" >&5
40104
echo "$as_me: failed program was:" >&5
40105
sed 's/^/| /' conftest.$ac_ext >&5
40107
( exit $ac_status )
40109
{ echo "$as_me:$LINENO: result: no" >&5
40110
echo "${ECHO_T}no" >&6; }
40111
tst_works_localtime_r="no"
40114
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40120
if test "$tst_compi_localtime_r" = "yes" &&
40121
test "$tst_works_localtime_r" != "no"; then
40122
{ echo "$as_me:$LINENO: checking if localtime_r usage allowed" >&5
40123
echo $ECHO_N "checking if localtime_r usage allowed... $ECHO_C" >&6; }
40124
if test "x$curl_disallow_localtime_r" != "xyes"; then
40125
{ echo "$as_me:$LINENO: result: yes" >&5
40126
echo "${ECHO_T}yes" >&6; }
40127
tst_allow_localtime_r="yes"
40129
{ echo "$as_me:$LINENO: result: no" >&5
40130
echo "${ECHO_T}no" >&6; }
40131
tst_allow_localtime_r="no"
40135
{ echo "$as_me:$LINENO: checking if localtime_r might be used" >&5
40136
echo $ECHO_N "checking if localtime_r might be used... $ECHO_C" >&6; }
40137
if test "$tst_links_localtime_r" = "yes" &&
40138
test "$tst_proto_localtime_r" = "yes" &&
40139
test "$tst_compi_localtime_r" = "yes" &&
40140
test "$tst_allow_localtime_r" = "yes" &&
40141
test "$tst_works_localtime_r" != "no"; then
40142
{ echo "$as_me:$LINENO: result: yes" >&5
40143
echo "${ECHO_T}yes" >&6; }
40145
cat >>confdefs.h <<_ACEOF
40146
#define HAVE_LOCALTIME_R 1
40149
ac_cv_func_localtime_r="yes"
40151
{ echo "$as_me:$LINENO: result: no" >&5
40152
echo "${ECHO_T}no" >&6; }
40153
ac_cv_func_localtime_r="no"
40157
curl_includes_poll="\
40158
/* includes start */
40159
#ifdef HAVE_SYS_TYPES_H
40160
# include <sys/types.h>
40165
#ifdef HAVE_SYS_POLL_H
40166
# include <sys/poll.h>
40168
/* includes end */"
40172
for ac_header in sys/types.h poll.h sys/poll.h
40174
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40175
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
40176
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40177
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40178
echo $ECHO_N "(cached) $ECHO_C" >&6
40180
cat >conftest.$ac_ext <<_ACEOF
40183
cat confdefs.h >>conftest.$ac_ext
40184
cat >>conftest.$ac_ext <<_ACEOF
40185
/* end confdefs.h. */
40186
$curl_includes_poll
40188
#include <$ac_header>
40190
rm -f conftest.$ac_objext
40191
if { (ac_try="$ac_compile"
40192
case "(($ac_try" in
40193
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40194
*) ac_try_echo=$ac_try;;
40196
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40197
(eval "$ac_compile") 2>conftest.er1
40199
grep -v '^ *+' conftest.er1 >conftest.err
40201
cat conftest.err >&5
40202
echo "$as_me:$LINENO: \$? = $ac_status" >&5
40203
(exit $ac_status); } && {
40204
test -z "$ac_c_werror_flag" ||
40205
test ! -s conftest.err
40206
} && test -s conftest.$ac_objext; then
40207
eval "$as_ac_Header=yes"
40209
echo "$as_me: failed program was:" >&5
40210
sed 's/^/| /' conftest.$ac_ext >&5
40212
eval "$as_ac_Header=no"
40215
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40217
ac_res=`eval echo '${'$as_ac_Header'}'`
40218
{ echo "$as_me:$LINENO: result: $ac_res" >&5
40219
echo "${ECHO_T}$ac_res" >&6; }
40220
if test `eval echo '${'$as_ac_Header'}'` = yes; then
40221
cat >>confdefs.h <<_ACEOF
40222
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40232
tst_links_poll="unknown"
40233
tst_proto_poll="unknown"
40234
tst_compi_poll="unknown"
40235
tst_works_poll="unknown"
40236
tst_allow_poll="unknown"
40240
curl_disallow_poll="yes"
40244
{ echo "$as_me:$LINENO: checking if poll can be linked" >&5
40245
echo $ECHO_N "checking if poll can be linked... $ECHO_C" >&6; }
40246
cat >conftest.$ac_ext <<_ACEOF
40250
cat confdefs.h >>conftest.$ac_ext
40251
cat >>conftest.$ac_ext <<_ACEOF
40252
/* end confdefs.h. */
40254
$curl_includes_poll
40259
if(0 != poll(0, 0, 0))
40267
rm -f conftest.$ac_objext conftest$ac_exeext
40268
if { (ac_try="$ac_link"
40269
case "(($ac_try" in
40270
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40271
*) ac_try_echo=$ac_try;;
40273
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40274
(eval "$ac_link") 2>conftest.er1
40276
grep -v '^ *+' conftest.er1 >conftest.err
40278
cat conftest.err >&5
40279
echo "$as_me:$LINENO: \$? = $ac_status" >&5
40280
(exit $ac_status); } && {
40281
test -z "$ac_c_werror_flag" ||
40282
test ! -s conftest.err
40283
} && test -s conftest$ac_exeext &&
40284
$as_test_x conftest$ac_exeext; then
40286
{ echo "$as_me:$LINENO: result: yes" >&5
40287
echo "${ECHO_T}yes" >&6; }
40288
tst_links_poll="yes"
40291
echo "$as_me: failed program was:" >&5
40292
sed 's/^/| /' conftest.$ac_ext >&5
40295
{ echo "$as_me:$LINENO: result: no" >&5
40296
echo "${ECHO_T}no" >&6; }
40297
tst_links_poll="no"
40301
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40302
conftest$ac_exeext conftest.$ac_ext
40304
if test "$tst_links_poll" = "yes"; then
40305
{ echo "$as_me:$LINENO: checking if poll is prototyped" >&5
40306
echo $ECHO_N "checking if poll is prototyped... $ECHO_C" >&6; }
40307
cat >conftest.$ac_ext <<_ACEOF
40310
cat confdefs.h >>conftest.$ac_ext
40311
cat >>conftest.$ac_ext <<_ACEOF
40312
/* end confdefs.h. */
40314
$curl_includes_poll
40317
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40318
$EGREP "poll" >/dev/null 2>&1; then
40320
{ echo "$as_me:$LINENO: result: yes" >&5
40321
echo "${ECHO_T}yes" >&6; }
40322
tst_proto_poll="yes"
40326
{ echo "$as_me:$LINENO: result: no" >&5
40327
echo "${ECHO_T}no" >&6; }
40328
tst_proto_poll="no"
40335
if test "$tst_proto_poll" = "yes"; then
40336
{ echo "$as_me:$LINENO: checking if poll is compilable" >&5
40337
echo $ECHO_N "checking if poll is compilable... $ECHO_C" >&6; }
40338
cat >conftest.$ac_ext <<_ACEOF
40342
cat confdefs.h >>conftest.$ac_ext
40343
cat >>conftest.$ac_ext <<_ACEOF
40344
/* end confdefs.h. */
40346
$curl_includes_poll
40351
if(0 != poll(0, 0, 0))
40359
rm -f conftest.$ac_objext
40360
if { (ac_try="$ac_compile"
40361
case "(($ac_try" in
40362
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40363
*) ac_try_echo=$ac_try;;
40365
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40366
(eval "$ac_compile") 2>conftest.er1
40368
grep -v '^ *+' conftest.er1 >conftest.err
40370
cat conftest.err >&5
40371
echo "$as_me:$LINENO: \$? = $ac_status" >&5
40372
(exit $ac_status); } && {
40373
test -z "$ac_c_werror_flag" ||
40374
test ! -s conftest.err
40375
} && test -s conftest.$ac_objext; then
40377
{ echo "$as_me:$LINENO: result: yes" >&5
40378
echo "${ECHO_T}yes" >&6; }
40379
tst_compi_poll="yes"
40382
echo "$as_me: failed program was:" >&5
40383
sed 's/^/| /' conftest.$ac_ext >&5
40386
{ echo "$as_me:$LINENO: result: no" >&5
40387
echo "${ECHO_T}no" >&6; }
40388
tst_compi_poll="no"
40392
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40395
if test "x$cross_compiling" != "xyes" &&
40396
test "$tst_compi_poll" = "yes"; then
40397
{ echo "$as_me:$LINENO: checking if poll seems to work" >&5
40398
echo $ECHO_N "checking if poll seems to work... $ECHO_C" >&6; }
40399
if test "$cross_compiling" = yes; then
40400
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
40401
See \`config.log' for more details." >&5
40402
echo "$as_me: error: cannot run test program while cross compiling
40403
See \`config.log' for more details." >&2;}
40404
{ (exit 1); exit 1; }; }
40406
cat >conftest.$ac_ext <<_ACEOF
40410
cat confdefs.h >>conftest.$ac_ext
40411
cat >>conftest.$ac_ext <<_ACEOF
40412
/* end confdefs.h. */
40414
$curl_includes_stdlib
40415
$curl_includes_poll
40420
if(0 != poll(0, 0, 10))
40421
exit(1); /* fail */
40430
rm -f conftest$ac_exeext
40431
if { (ac_try="$ac_link"
40432
case "(($ac_try" in
40433
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40434
*) ac_try_echo=$ac_try;;
40436
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40437
(eval "$ac_link") 2>&5
40439
echo "$as_me:$LINENO: \$? = $ac_status" >&5
40440
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40441
{ (case "(($ac_try" in
40442
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40443
*) ac_try_echo=$ac_try;;
40445
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40446
(eval "$ac_try") 2>&5
40448
echo "$as_me:$LINENO: \$? = $ac_status" >&5
40449
(exit $ac_status); }; }; then
40451
{ echo "$as_me:$LINENO: result: yes" >&5
40452
echo "${ECHO_T}yes" >&6; }
40453
tst_works_poll="yes"
40456
echo "$as_me: program exited with status $ac_status" >&5
40457
echo "$as_me: failed program was:" >&5
40458
sed 's/^/| /' conftest.$ac_ext >&5
40460
( exit $ac_status )
40462
{ echo "$as_me:$LINENO: result: no" >&5
40463
echo "${ECHO_T}no" >&6; }
40464
tst_works_poll="no"
40467
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40473
if test "$tst_compi_poll" = "yes" &&
40474
test "$tst_works_poll" != "no"; then
40475
{ echo "$as_me:$LINENO: checking if poll usage allowed" >&5
40476
echo $ECHO_N "checking if poll usage allowed... $ECHO_C" >&6; }
40477
if test "x$curl_disallow_poll" != "xyes"; then
40478
{ echo "$as_me:$LINENO: result: yes" >&5
40479
echo "${ECHO_T}yes" >&6; }
40480
tst_allow_poll="yes"
40482
{ echo "$as_me:$LINENO: result: no" >&5
40483
echo "${ECHO_T}no" >&6; }
40484
tst_allow_poll="no"
40488
{ echo "$as_me:$LINENO: checking if poll might be used" >&5
40489
echo $ECHO_N "checking if poll might be used... $ECHO_C" >&6; }
40490
if test "$tst_links_poll" = "yes" &&
40491
test "$tst_proto_poll" = "yes" &&
40492
test "$tst_compi_poll" = "yes" &&
40493
test "$tst_allow_poll" = "yes" &&
40494
test "$tst_works_poll" != "no"; then
40495
{ echo "$as_me:$LINENO: result: yes" >&5
40496
echo "${ECHO_T}yes" >&6; }
40498
cat >>confdefs.h <<_ACEOF
40499
#define HAVE_POLL 1
40503
cat >>confdefs.h <<_ACEOF
40504
#define HAVE_POLL_FINE 1
40507
ac_cv_func_poll="yes"
40509
{ echo "$as_me:$LINENO: result: no" >&5
40510
echo "${ECHO_T}no" >&6; }
40511
ac_cv_func_poll="no"
40516
tst_links_setsockopt="unknown"
40517
tst_proto_setsockopt="unknown"
40518
tst_compi_setsockopt="unknown"
40519
tst_allow_setsockopt="unknown"
40521
{ echo "$as_me:$LINENO: checking if setsockopt can be linked" >&5
40522
echo $ECHO_N "checking if setsockopt can be linked... $ECHO_C" >&6; }
40523
cat >conftest.$ac_ext <<_ACEOF
40527
cat confdefs.h >>conftest.$ac_ext
40528
cat >>conftest.$ac_ext <<_ACEOF
40529
/* end confdefs.h. */
40531
$curl_includes_winsock2
40532
$curl_includes_sys_socket
40537
if(0 != setsockopt(0, 0, 0, 0, 0))
40545
rm -f conftest.$ac_objext conftest$ac_exeext
40546
if { (ac_try="$ac_link"
40547
case "(($ac_try" in
40548
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40549
*) ac_try_echo=$ac_try;;
40551
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40552
(eval "$ac_link") 2>conftest.er1
40554
grep -v '^ *+' conftest.er1 >conftest.err
40556
cat conftest.err >&5
40557
echo "$as_me:$LINENO: \$? = $ac_status" >&5
40558
(exit $ac_status); } && {
40559
test -z "$ac_c_werror_flag" ||
40560
test ! -s conftest.err
40561
} && test -s conftest$ac_exeext &&
40562
$as_test_x conftest$ac_exeext; then
40564
{ echo "$as_me:$LINENO: result: yes" >&5
40565
echo "${ECHO_T}yes" >&6; }
40566
tst_links_setsockopt="yes"
40569
echo "$as_me: failed program was:" >&5
40570
sed 's/^/| /' conftest.$ac_ext >&5
40573
{ echo "$as_me:$LINENO: result: no" >&5
40574
echo "${ECHO_T}no" >&6; }
40575
tst_links_setsockopt="no"
40579
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40580
conftest$ac_exeext conftest.$ac_ext
40582
if test "$tst_links_setsockopt" = "yes"; then
40583
{ echo "$as_me:$LINENO: checking if setsockopt is prototyped" >&5
40584
echo $ECHO_N "checking if setsockopt is prototyped... $ECHO_C" >&6; }
40585
cat >conftest.$ac_ext <<_ACEOF
40588
cat confdefs.h >>conftest.$ac_ext
40589
cat >>conftest.$ac_ext <<_ACEOF
40590
/* end confdefs.h. */
40592
$curl_includes_winsock2
40593
$curl_includes_sys_socket
40596
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40597
$EGREP "setsockopt" >/dev/null 2>&1; then
40599
{ echo "$as_me:$LINENO: result: yes" >&5
40600
echo "${ECHO_T}yes" >&6; }
40601
tst_proto_setsockopt="yes"
40605
{ echo "$as_me:$LINENO: result: no" >&5
40606
echo "${ECHO_T}no" >&6; }
40607
tst_proto_setsockopt="no"
40614
if test "$tst_proto_setsockopt" = "yes"; then
40615
{ echo "$as_me:$LINENO: checking if setsockopt is compilable" >&5
40616
echo $ECHO_N "checking if setsockopt is compilable... $ECHO_C" >&6; }
40617
cat >conftest.$ac_ext <<_ACEOF
40621
cat confdefs.h >>conftest.$ac_ext
40622
cat >>conftest.$ac_ext <<_ACEOF
40623
/* end confdefs.h. */
40625
$curl_includes_winsock2
40626
$curl_includes_sys_socket
40631
if(0 != setsockopt(0, 0, 0, 0, 0))
40639
rm -f conftest.$ac_objext
40640
if { (ac_try="$ac_compile"
40641
case "(($ac_try" in
40642
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40643
*) ac_try_echo=$ac_try;;
40645
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40646
(eval "$ac_compile") 2>conftest.er1
40648
grep -v '^ *+' conftest.er1 >conftest.err
40650
cat conftest.err >&5
40651
echo "$as_me:$LINENO: \$? = $ac_status" >&5
40652
(exit $ac_status); } && {
40653
test -z "$ac_c_werror_flag" ||
40654
test ! -s conftest.err
40655
} && test -s conftest.$ac_objext; then
40657
{ echo "$as_me:$LINENO: result: yes" >&5
40658
echo "${ECHO_T}yes" >&6; }
40659
tst_compi_setsockopt="yes"
40662
echo "$as_me: failed program was:" >&5
40663
sed 's/^/| /' conftest.$ac_ext >&5
40666
{ echo "$as_me:$LINENO: result: no" >&5
40667
echo "${ECHO_T}no" >&6; }
40668
tst_compi_setsockopt="no"
40672
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40675
if test "$tst_compi_setsockopt" = "yes"; then
40676
{ echo "$as_me:$LINENO: checking if setsockopt usage allowed" >&5
40677
echo $ECHO_N "checking if setsockopt usage allowed... $ECHO_C" >&6; }
40678
if test "x$curl_disallow_setsockopt" != "xyes"; then
40679
{ echo "$as_me:$LINENO: result: yes" >&5
40680
echo "${ECHO_T}yes" >&6; }
40681
tst_allow_setsockopt="yes"
40683
{ echo "$as_me:$LINENO: result: no" >&5
40684
echo "${ECHO_T}no" >&6; }
40685
tst_allow_setsockopt="no"
40689
{ echo "$as_me:$LINENO: checking if setsockopt might be used" >&5
40690
echo $ECHO_N "checking if setsockopt might be used... $ECHO_C" >&6; }
40691
if test "$tst_links_setsockopt" = "yes" &&
40692
test "$tst_proto_setsockopt" = "yes" &&
40693
test "$tst_compi_setsockopt" = "yes" &&
40694
test "$tst_allow_setsockopt" = "yes"; then
40695
{ echo "$as_me:$LINENO: result: yes" >&5
40696
echo "${ECHO_T}yes" >&6; }
40698
cat >>confdefs.h <<_ACEOF
40699
#define HAVE_SETSOCKOPT 1
40702
ac_cv_func_setsockopt="yes"
40705
tst_compi_setsockopt_so_nonblock="unknown"
40706
tst_allow_setsockopt_so_nonblock="unknown"
40708
if test "$ac_cv_func_setsockopt" = "yes"; then
40709
{ echo "$as_me:$LINENO: checking if setsockopt SO_NONBLOCK is compilable" >&5
40710
echo $ECHO_N "checking if setsockopt SO_NONBLOCK is compilable... $ECHO_C" >&6; }
40711
cat >conftest.$ac_ext <<_ACEOF
40715
cat confdefs.h >>conftest.$ac_ext
40716
cat >>conftest.$ac_ext <<_ACEOF
40717
/* end confdefs.h. */
40719
$curl_includes_winsock2
40720
$curl_includes_sys_socket
40725
if(0 != setsockopt(0, SOL_SOCKET, SO_NONBLOCK, 0, 0))
40733
rm -f conftest.$ac_objext
40734
if { (ac_try="$ac_compile"
40735
case "(($ac_try" in
40736
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40737
*) ac_try_echo=$ac_try;;
40739
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40740
(eval "$ac_compile") 2>conftest.er1
40742
grep -v '^ *+' conftest.er1 >conftest.err
40744
cat conftest.err >&5
40745
echo "$as_me:$LINENO: \$? = $ac_status" >&5
40746
(exit $ac_status); } && {
40747
test -z "$ac_c_werror_flag" ||
40748
test ! -s conftest.err
40749
} && test -s conftest.$ac_objext; then
40751
{ echo "$as_me:$LINENO: result: yes" >&5
40752
echo "${ECHO_T}yes" >&6; }
40753
tst_compi_setsockopt_so_nonblock="yes"
40756
echo "$as_me: failed program was:" >&5
40757
sed 's/^/| /' conftest.$ac_ext >&5
40760
{ echo "$as_me:$LINENO: result: no" >&5
40761
echo "${ECHO_T}no" >&6; }
40762
tst_compi_setsockopt_so_nonblock="no"
40766
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40769
if test "$tst_compi_setsockopt_so_nonblock" = "yes"; then
40770
{ echo "$as_me:$LINENO: checking if setsockopt SO_NONBLOCK usage allowed" >&5
40771
echo $ECHO_N "checking if setsockopt SO_NONBLOCK usage allowed... $ECHO_C" >&6; }
40772
if test "x$curl_disallow_setsockopt_so_nonblock" != "xyes"; then
40773
{ echo "$as_me:$LINENO: result: yes" >&5
40774
echo "${ECHO_T}yes" >&6; }
40775
tst_allow_setsockopt_so_nonblock="yes"
40777
{ echo "$as_me:$LINENO: result: no" >&5
40778
echo "${ECHO_T}no" >&6; }
40779
tst_allow_setsockopt_so_nonblock="no"
40783
{ echo "$as_me:$LINENO: checking if setsockopt SO_NONBLOCK might be used" >&5
40784
echo $ECHO_N "checking if setsockopt SO_NONBLOCK might be used... $ECHO_C" >&6; }
40785
if test "$tst_compi_setsockopt_so_nonblock" = "yes" &&
40786
test "$tst_allow_setsockopt_so_nonblock" = "yes"; then
40787
{ echo "$as_me:$LINENO: result: yes" >&5
40788
echo "${ECHO_T}yes" >&6; }
40790
cat >>confdefs.h <<_ACEOF
40791
#define HAVE_SETSOCKOPT_SO_NONBLOCK 1
40794
ac_cv_func_setsockopt_so_nonblock="yes"
40796
{ echo "$as_me:$LINENO: result: no" >&5
40797
echo "${ECHO_T}no" >&6; }
40798
ac_cv_func_setsockopt_so_nonblock="no"
40802
{ echo "$as_me:$LINENO: result: no" >&5
40803
echo "${ECHO_T}no" >&6; }
40804
ac_cv_func_setsockopt="no"
40808
curl_includes_signal="\
40809
/* includes start */
40810
#ifdef HAVE_SYS_TYPES_H
40811
# include <sys/types.h>
40813
#ifdef HAVE_SIGNAL_H
40814
# include <signal.h>
40816
/* includes end */"
40819
for ac_header in sys/types.h signal.h
40821
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40822
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
40823
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40824
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40825
echo $ECHO_N "(cached) $ECHO_C" >&6
40827
cat >conftest.$ac_ext <<_ACEOF
40830
cat confdefs.h >>conftest.$ac_ext
40831
cat >>conftest.$ac_ext <<_ACEOF
40832
/* end confdefs.h. */
40833
$curl_includes_signal
40835
#include <$ac_header>
40837
rm -f conftest.$ac_objext
40838
if { (ac_try="$ac_compile"
40839
case "(($ac_try" in
40840
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40841
*) ac_try_echo=$ac_try;;
40843
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40844
(eval "$ac_compile") 2>conftest.er1
40846
grep -v '^ *+' conftest.er1 >conftest.err
40848
cat conftest.err >&5
40849
echo "$as_me:$LINENO: \$? = $ac_status" >&5
40850
(exit $ac_status); } && {
40851
test -z "$ac_c_werror_flag" ||
40852
test ! -s conftest.err
40853
} && test -s conftest.$ac_objext; then
40854
eval "$as_ac_Header=yes"
40856
echo "$as_me: failed program was:" >&5
40857
sed 's/^/| /' conftest.$ac_ext >&5
40859
eval "$as_ac_Header=no"
40862
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40864
ac_res=`eval echo '${'$as_ac_Header'}'`
40865
{ echo "$as_me:$LINENO: result: $ac_res" >&5
40866
echo "${ECHO_T}$ac_res" >&6; }
40867
if test `eval echo '${'$as_ac_Header'}'` = yes; then
40868
cat >>confdefs.h <<_ACEOF
40869
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40879
tst_links_sigaction="unknown"
40880
tst_proto_sigaction="unknown"
40881
tst_compi_sigaction="unknown"
40882
tst_allow_sigaction="unknown"
40884
{ echo "$as_me:$LINENO: checking if sigaction can be linked" >&5
40885
echo $ECHO_N "checking if sigaction can be linked... $ECHO_C" >&6; }
40886
cat >conftest.$ac_ext <<_ACEOF
40890
cat confdefs.h >>conftest.$ac_ext
40891
cat >>conftest.$ac_ext <<_ACEOF
40892
/* end confdefs.h. */
40894
#define sigaction innocuous_sigaction
40896
# include <limits.h>
40898
# include <assert.h>
40905
#if defined __stub_sigaction || defined __stub___sigaction
40911
return sigaction ();
40917
rm -f conftest.$ac_objext conftest$ac_exeext
40918
if { (ac_try="$ac_link"
40919
case "(($ac_try" in
40920
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40921
*) ac_try_echo=$ac_try;;
40923
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40924
(eval "$ac_link") 2>conftest.er1
40926
grep -v '^ *+' conftest.er1 >conftest.err
40928
cat conftest.err >&5
40929
echo "$as_me:$LINENO: \$? = $ac_status" >&5
40930
(exit $ac_status); } && {
40931
test -z "$ac_c_werror_flag" ||
40932
test ! -s conftest.err
40933
} && test -s conftest$ac_exeext &&
40934
$as_test_x conftest$ac_exeext; then
40936
{ echo "$as_me:$LINENO: result: yes" >&5
40937
echo "${ECHO_T}yes" >&6; }
40938
tst_links_sigaction="yes"
40941
echo "$as_me: failed program was:" >&5
40942
sed 's/^/| /' conftest.$ac_ext >&5
40945
{ echo "$as_me:$LINENO: result: no" >&5
40946
echo "${ECHO_T}no" >&6; }
40947
tst_links_sigaction="no"
40951
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40952
conftest$ac_exeext conftest.$ac_ext
40954
if test "$tst_links_sigaction" = "yes"; then
40955
{ echo "$as_me:$LINENO: checking if sigaction is prototyped" >&5
40956
echo $ECHO_N "checking if sigaction is prototyped... $ECHO_C" >&6; }
40957
cat >conftest.$ac_ext <<_ACEOF
40960
cat confdefs.h >>conftest.$ac_ext
40961
cat >>conftest.$ac_ext <<_ACEOF
40962
/* end confdefs.h. */
40964
$curl_includes_signal
40967
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40968
$EGREP "sigaction" >/dev/null 2>&1; then
40970
{ echo "$as_me:$LINENO: result: yes" >&5
40971
echo "${ECHO_T}yes" >&6; }
40972
tst_proto_sigaction="yes"
40976
{ echo "$as_me:$LINENO: result: no" >&5
40977
echo "${ECHO_T}no" >&6; }
40978
tst_proto_sigaction="no"
40985
if test "$tst_proto_sigaction" = "yes"; then
40986
{ echo "$as_me:$LINENO: checking if sigaction is compilable" >&5
40987
echo $ECHO_N "checking if sigaction is compilable... $ECHO_C" >&6; }
40988
cat >conftest.$ac_ext <<_ACEOF
40992
cat confdefs.h >>conftest.$ac_ext
40993
cat >>conftest.$ac_ext <<_ACEOF
40994
/* end confdefs.h. */
40996
$curl_includes_signal
41001
if(0 != sigaction(0, 0, 0))
41009
rm -f conftest.$ac_objext
41010
if { (ac_try="$ac_compile"
41011
case "(($ac_try" in
41012
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41013
*) ac_try_echo=$ac_try;;
41015
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41016
(eval "$ac_compile") 2>conftest.er1
41018
grep -v '^ *+' conftest.er1 >conftest.err
41020
cat conftest.err >&5
41021
echo "$as_me:$LINENO: \$? = $ac_status" >&5
41022
(exit $ac_status); } && {
41023
test -z "$ac_c_werror_flag" ||
41024
test ! -s conftest.err
41025
} && test -s conftest.$ac_objext; then
41027
{ echo "$as_me:$LINENO: result: yes" >&5
41028
echo "${ECHO_T}yes" >&6; }
41029
tst_compi_sigaction="yes"
41032
echo "$as_me: failed program was:" >&5
41033
sed 's/^/| /' conftest.$ac_ext >&5
41036
{ echo "$as_me:$LINENO: result: no" >&5
41037
echo "${ECHO_T}no" >&6; }
41038
tst_compi_sigaction="no"
41042
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41045
if test "$tst_compi_sigaction" = "yes"; then
41046
{ echo "$as_me:$LINENO: checking if sigaction usage allowed" >&5
41047
echo $ECHO_N "checking if sigaction usage allowed... $ECHO_C" >&6; }
41048
if test "x$curl_disallow_sigaction" != "xyes"; then
41049
{ echo "$as_me:$LINENO: result: yes" >&5
41050
echo "${ECHO_T}yes" >&6; }
41051
tst_allow_sigaction="yes"
41053
{ echo "$as_me:$LINENO: result: no" >&5
41054
echo "${ECHO_T}no" >&6; }
41055
tst_allow_sigaction="no"
41059
{ echo "$as_me:$LINENO: checking if sigaction might be used" >&5
41060
echo $ECHO_N "checking if sigaction might be used... $ECHO_C" >&6; }
41061
if test "$tst_links_sigaction" = "yes" &&
41062
test "$tst_proto_sigaction" = "yes" &&
41063
test "$tst_compi_sigaction" = "yes" &&
41064
test "$tst_allow_sigaction" = "yes"; then
41065
{ echo "$as_me:$LINENO: result: yes" >&5
41066
echo "${ECHO_T}yes" >&6; }
41068
cat >>confdefs.h <<_ACEOF
41069
#define HAVE_SIGACTION 1
41072
ac_cv_func_sigaction="yes"
41074
{ echo "$as_me:$LINENO: result: no" >&5
41075
echo "${ECHO_T}no" >&6; }
41076
ac_cv_func_sigaction="no"
41081
tst_links_siginterrupt="unknown"
41082
tst_proto_siginterrupt="unknown"
41083
tst_compi_siginterrupt="unknown"
41084
tst_allow_siginterrupt="unknown"
41086
{ echo "$as_me:$LINENO: checking if siginterrupt can be linked" >&5
41087
echo $ECHO_N "checking if siginterrupt can be linked... $ECHO_C" >&6; }
41088
cat >conftest.$ac_ext <<_ACEOF
41092
cat confdefs.h >>conftest.$ac_ext
41093
cat >>conftest.$ac_ext <<_ACEOF
41094
/* end confdefs.h. */
41096
#define siginterrupt innocuous_siginterrupt
41098
# include <limits.h>
41100
# include <assert.h>
41102
#undef siginterrupt
41106
char siginterrupt ();
41107
#if defined __stub_siginterrupt || defined __stub___siginterrupt
41113
return siginterrupt ();
41119
rm -f conftest.$ac_objext conftest$ac_exeext
41120
if { (ac_try="$ac_link"
41121
case "(($ac_try" in
41122
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41123
*) ac_try_echo=$ac_try;;
41125
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41126
(eval "$ac_link") 2>conftest.er1
41128
grep -v '^ *+' conftest.er1 >conftest.err
41130
cat conftest.err >&5
41131
echo "$as_me:$LINENO: \$? = $ac_status" >&5
41132
(exit $ac_status); } && {
41133
test -z "$ac_c_werror_flag" ||
41134
test ! -s conftest.err
41135
} && test -s conftest$ac_exeext &&
41136
$as_test_x conftest$ac_exeext; then
41138
{ echo "$as_me:$LINENO: result: yes" >&5
41139
echo "${ECHO_T}yes" >&6; }
41140
tst_links_siginterrupt="yes"
41143
echo "$as_me: failed program was:" >&5
41144
sed 's/^/| /' conftest.$ac_ext >&5
41147
{ echo "$as_me:$LINENO: result: no" >&5
41148
echo "${ECHO_T}no" >&6; }
41149
tst_links_siginterrupt="no"
41153
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41154
conftest$ac_exeext conftest.$ac_ext
41156
if test "$tst_links_siginterrupt" = "yes"; then
41157
{ echo "$as_me:$LINENO: checking if siginterrupt is prototyped" >&5
41158
echo $ECHO_N "checking if siginterrupt is prototyped... $ECHO_C" >&6; }
41159
cat >conftest.$ac_ext <<_ACEOF
41162
cat confdefs.h >>conftest.$ac_ext
41163
cat >>conftest.$ac_ext <<_ACEOF
41164
/* end confdefs.h. */
41166
$curl_includes_signal
41169
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41170
$EGREP "siginterrupt" >/dev/null 2>&1; then
41172
{ echo "$as_me:$LINENO: result: yes" >&5
41173
echo "${ECHO_T}yes" >&6; }
41174
tst_proto_siginterrupt="yes"
41178
{ echo "$as_me:$LINENO: result: no" >&5
41179
echo "${ECHO_T}no" >&6; }
41180
tst_proto_siginterrupt="no"
41187
if test "$tst_proto_siginterrupt" = "yes"; then
41188
{ echo "$as_me:$LINENO: checking if siginterrupt is compilable" >&5
41189
echo $ECHO_N "checking if siginterrupt is compilable... $ECHO_C" >&6; }
41190
cat >conftest.$ac_ext <<_ACEOF
41194
cat confdefs.h >>conftest.$ac_ext
41195
cat >>conftest.$ac_ext <<_ACEOF
41196
/* end confdefs.h. */
41198
$curl_includes_signal
41203
if(0 != siginterrupt(0, 0))
41211
rm -f conftest.$ac_objext
41212
if { (ac_try="$ac_compile"
41213
case "(($ac_try" in
41214
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41215
*) ac_try_echo=$ac_try;;
41217
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41218
(eval "$ac_compile") 2>conftest.er1
41220
grep -v '^ *+' conftest.er1 >conftest.err
41222
cat conftest.err >&5
41223
echo "$as_me:$LINENO: \$? = $ac_status" >&5
41224
(exit $ac_status); } && {
41225
test -z "$ac_c_werror_flag" ||
41226
test ! -s conftest.err
41227
} && test -s conftest.$ac_objext; then
41229
{ echo "$as_me:$LINENO: result: yes" >&5
41230
echo "${ECHO_T}yes" >&6; }
41231
tst_compi_siginterrupt="yes"
41234
echo "$as_me: failed program was:" >&5
41235
sed 's/^/| /' conftest.$ac_ext >&5
41238
{ echo "$as_me:$LINENO: result: no" >&5
41239
echo "${ECHO_T}no" >&6; }
41240
tst_compi_siginterrupt="no"
41244
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41247
if test "$tst_compi_siginterrupt" = "yes"; then
41248
{ echo "$as_me:$LINENO: checking if siginterrupt usage allowed" >&5
41249
echo $ECHO_N "checking if siginterrupt usage allowed... $ECHO_C" >&6; }
41250
if test "x$curl_disallow_siginterrupt" != "xyes"; then
41251
{ echo "$as_me:$LINENO: result: yes" >&5
41252
echo "${ECHO_T}yes" >&6; }
41253
tst_allow_siginterrupt="yes"
41255
{ echo "$as_me:$LINENO: result: no" >&5
41256
echo "${ECHO_T}no" >&6; }
41257
tst_allow_siginterrupt="no"
41261
{ echo "$as_me:$LINENO: checking if siginterrupt might be used" >&5
41262
echo $ECHO_N "checking if siginterrupt might be used... $ECHO_C" >&6; }
41263
if test "$tst_links_siginterrupt" = "yes" &&
41264
test "$tst_proto_siginterrupt" = "yes" &&
41265
test "$tst_compi_siginterrupt" = "yes" &&
41266
test "$tst_allow_siginterrupt" = "yes"; then
41267
{ echo "$as_me:$LINENO: result: yes" >&5
41268
echo "${ECHO_T}yes" >&6; }
41270
cat >>confdefs.h <<_ACEOF
41271
#define HAVE_SIGINTERRUPT 1
41274
ac_cv_func_siginterrupt="yes"
41276
{ echo "$as_me:$LINENO: result: no" >&5
41277
echo "${ECHO_T}no" >&6; }
41278
ac_cv_func_siginterrupt="no"
41283
tst_links_signal="unknown"
41284
tst_proto_signal="unknown"
41285
tst_compi_signal="unknown"
41286
tst_allow_signal="unknown"
41288
{ echo "$as_me:$LINENO: checking if signal can be linked" >&5
41289
echo $ECHO_N "checking if signal can be linked... $ECHO_C" >&6; }
41290
cat >conftest.$ac_ext <<_ACEOF
41294
cat confdefs.h >>conftest.$ac_ext
41295
cat >>conftest.$ac_ext <<_ACEOF
41296
/* end confdefs.h. */
41298
#define signal innocuous_signal
41300
# include <limits.h>
41302
# include <assert.h>
41309
#if defined __stub_signal || defined __stub___signal
41321
rm -f conftest.$ac_objext conftest$ac_exeext
41322
if { (ac_try="$ac_link"
41323
case "(($ac_try" in
41324
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41325
*) ac_try_echo=$ac_try;;
41327
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41328
(eval "$ac_link") 2>conftest.er1
41330
grep -v '^ *+' conftest.er1 >conftest.err
41332
cat conftest.err >&5
41333
echo "$as_me:$LINENO: \$? = $ac_status" >&5
41334
(exit $ac_status); } && {
41335
test -z "$ac_c_werror_flag" ||
41336
test ! -s conftest.err
41337
} && test -s conftest$ac_exeext &&
41338
$as_test_x conftest$ac_exeext; then
41340
{ echo "$as_me:$LINENO: result: yes" >&5
41341
echo "${ECHO_T}yes" >&6; }
41342
tst_links_signal="yes"
41345
echo "$as_me: failed program was:" >&5
41346
sed 's/^/| /' conftest.$ac_ext >&5
41349
{ echo "$as_me:$LINENO: result: no" >&5
41350
echo "${ECHO_T}no" >&6; }
41351
tst_links_signal="no"
41355
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41356
conftest$ac_exeext conftest.$ac_ext
41358
if test "$tst_links_signal" = "yes"; then
41359
{ echo "$as_me:$LINENO: checking if signal is prototyped" >&5
41360
echo $ECHO_N "checking if signal is prototyped... $ECHO_C" >&6; }
41361
cat >conftest.$ac_ext <<_ACEOF
41364
cat confdefs.h >>conftest.$ac_ext
41365
cat >>conftest.$ac_ext <<_ACEOF
41366
/* end confdefs.h. */
41368
$curl_includes_signal
41371
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41372
$EGREP "signal" >/dev/null 2>&1; then
41374
{ echo "$as_me:$LINENO: result: yes" >&5
41375
echo "${ECHO_T}yes" >&6; }
41376
tst_proto_signal="yes"
41380
{ echo "$as_me:$LINENO: result: no" >&5
41381
echo "${ECHO_T}no" >&6; }
41382
tst_proto_signal="no"
41389
if test "$tst_proto_signal" = "yes"; then
41390
{ echo "$as_me:$LINENO: checking if signal is compilable" >&5
41391
echo $ECHO_N "checking if signal is compilable... $ECHO_C" >&6; }
41392
cat >conftest.$ac_ext <<_ACEOF
41396
cat confdefs.h >>conftest.$ac_ext
41397
cat >>conftest.$ac_ext <<_ACEOF
41398
/* end confdefs.h. */
41400
$curl_includes_signal
41405
if(0 != signal(0, 0))
41413
rm -f conftest.$ac_objext
41414
if { (ac_try="$ac_compile"
41415
case "(($ac_try" in
41416
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41417
*) ac_try_echo=$ac_try;;
41419
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41420
(eval "$ac_compile") 2>conftest.er1
41422
grep -v '^ *+' conftest.er1 >conftest.err
41424
cat conftest.err >&5
41425
echo "$as_me:$LINENO: \$? = $ac_status" >&5
41426
(exit $ac_status); } && {
41427
test -z "$ac_c_werror_flag" ||
41428
test ! -s conftest.err
41429
} && test -s conftest.$ac_objext; then
41431
{ echo "$as_me:$LINENO: result: yes" >&5
41432
echo "${ECHO_T}yes" >&6; }
41433
tst_compi_signal="yes"
41436
echo "$as_me: failed program was:" >&5
41437
sed 's/^/| /' conftest.$ac_ext >&5
41440
{ echo "$as_me:$LINENO: result: no" >&5
41441
echo "${ECHO_T}no" >&6; }
41442
tst_compi_signal="no"
41446
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41449
if test "$tst_compi_signal" = "yes"; then
41450
{ echo "$as_me:$LINENO: checking if signal usage allowed" >&5
41451
echo $ECHO_N "checking if signal usage allowed... $ECHO_C" >&6; }
41452
if test "x$curl_disallow_signal" != "xyes"; then
41453
{ echo "$as_me:$LINENO: result: yes" >&5
41454
echo "${ECHO_T}yes" >&6; }
41455
tst_allow_signal="yes"
41457
{ echo "$as_me:$LINENO: result: no" >&5
41458
echo "${ECHO_T}no" >&6; }
41459
tst_allow_signal="no"
41463
{ echo "$as_me:$LINENO: checking if signal might be used" >&5
41464
echo $ECHO_N "checking if signal might be used... $ECHO_C" >&6; }
41465
if test "$tst_links_signal" = "yes" &&
41466
test "$tst_proto_signal" = "yes" &&
41467
test "$tst_compi_signal" = "yes" &&
41468
test "$tst_allow_signal" = "yes"; then
41469
{ echo "$as_me:$LINENO: result: yes" >&5
41470
echo "${ECHO_T}yes" >&6; }
41472
cat >>confdefs.h <<_ACEOF
41473
#define HAVE_SIGNAL 1
41476
ac_cv_func_signal="yes"
41478
{ echo "$as_me:$LINENO: result: no" >&5
41479
echo "${ECHO_T}no" >&6; }
41480
ac_cv_func_signal="no"
41484
curl_includes_setjmp="\
41485
/* includes start */
41486
#ifdef HAVE_SYS_TYPES_H
41487
# include <sys/types.h>
41489
#ifdef HAVE_SETJMP_H
41490
# include <setjmp.h>
41492
/* includes end */"
41495
for ac_header in sys/types.h setjmp.h
41497
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
41498
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
41499
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
41500
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41501
echo $ECHO_N "(cached) $ECHO_C" >&6
41503
cat >conftest.$ac_ext <<_ACEOF
41506
cat confdefs.h >>conftest.$ac_ext
41507
cat >>conftest.$ac_ext <<_ACEOF
41508
/* end confdefs.h. */
41509
$curl_includes_setjmp
41511
#include <$ac_header>
41513
rm -f conftest.$ac_objext
41514
if { (ac_try="$ac_compile"
41515
case "(($ac_try" in
41516
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41517
*) ac_try_echo=$ac_try;;
41519
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41520
(eval "$ac_compile") 2>conftest.er1
41522
grep -v '^ *+' conftest.er1 >conftest.err
41524
cat conftest.err >&5
41525
echo "$as_me:$LINENO: \$? = $ac_status" >&5
41526
(exit $ac_status); } && {
41527
test -z "$ac_c_werror_flag" ||
41528
test ! -s conftest.err
41529
} && test -s conftest.$ac_objext; then
41530
eval "$as_ac_Header=yes"
41532
echo "$as_me: failed program was:" >&5
41533
sed 's/^/| /' conftest.$ac_ext >&5
41535
eval "$as_ac_Header=no"
41538
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41540
ac_res=`eval echo '${'$as_ac_Header'}'`
41541
{ echo "$as_me:$LINENO: result: $ac_res" >&5
41542
echo "${ECHO_T}$ac_res" >&6; }
41543
if test `eval echo '${'$as_ac_Header'}'` = yes; then
41544
cat >>confdefs.h <<_ACEOF
41545
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
41555
tst_links_sigsetjmp="unknown"
41556
tst_macro_sigsetjmp="unknown"
41557
tst_proto_sigsetjmp="unknown"
41558
tst_compi_sigsetjmp="unknown"
41559
tst_allow_sigsetjmp="unknown"
41561
{ echo "$as_me:$LINENO: checking if sigsetjmp can be linked" >&5
41562
echo $ECHO_N "checking if sigsetjmp can be linked... $ECHO_C" >&6; }
41563
cat >conftest.$ac_ext <<_ACEOF
41567
cat confdefs.h >>conftest.$ac_ext
41568
cat >>conftest.$ac_ext <<_ACEOF
41569
/* end confdefs.h. */
41571
#define sigsetjmp innocuous_sigsetjmp
41573
# include <limits.h>
41575
# include <assert.h>
41582
#if defined __stub_sigsetjmp || defined __stub___sigsetjmp
41588
return sigsetjmp ();
41594
rm -f conftest.$ac_objext conftest$ac_exeext
41595
if { (ac_try="$ac_link"
41596
case "(($ac_try" in
41597
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41598
*) ac_try_echo=$ac_try;;
41600
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41601
(eval "$ac_link") 2>conftest.er1
41603
grep -v '^ *+' conftest.er1 >conftest.err
41605
cat conftest.err >&5
41606
echo "$as_me:$LINENO: \$? = $ac_status" >&5
41607
(exit $ac_status); } && {
41608
test -z "$ac_c_werror_flag" ||
41609
test ! -s conftest.err
41610
} && test -s conftest$ac_exeext &&
41611
$as_test_x conftest$ac_exeext; then
41613
{ echo "$as_me:$LINENO: result: yes" >&5
41614
echo "${ECHO_T}yes" >&6; }
41615
tst_links_sigsetjmp="yes"
41618
echo "$as_me: failed program was:" >&5
41619
sed 's/^/| /' conftest.$ac_ext >&5
41622
{ echo "$as_me:$LINENO: result: no" >&5
41623
echo "${ECHO_T}no" >&6; }
41624
tst_links_sigsetjmp="no"
41628
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41629
conftest$ac_exeext conftest.$ac_ext
41631
if test "$tst_links_sigsetjmp" = "no"; then
41632
{ echo "$as_me:$LINENO: checking if sigsetjmp seems a macro" >&5
41633
echo $ECHO_N "checking if sigsetjmp seems a macro... $ECHO_C" >&6; }
41634
cat >conftest.$ac_ext <<_ACEOF
41638
cat confdefs.h >>conftest.$ac_ext
41639
cat >>conftest.$ac_ext <<_ACEOF
41640
/* end confdefs.h. */
41642
$curl_includes_setjmp
41648
if(0 != sigsetjmp(env, 0))
41656
rm -f conftest.$ac_objext conftest$ac_exeext
41657
if { (ac_try="$ac_link"
41658
case "(($ac_try" in
41659
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41660
*) ac_try_echo=$ac_try;;
41662
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41663
(eval "$ac_link") 2>conftest.er1
41665
grep -v '^ *+' conftest.er1 >conftest.err
41667
cat conftest.err >&5
41668
echo "$as_me:$LINENO: \$? = $ac_status" >&5
41669
(exit $ac_status); } && {
41670
test -z "$ac_c_werror_flag" ||
41671
test ! -s conftest.err
41672
} && test -s conftest$ac_exeext &&
41673
$as_test_x conftest$ac_exeext; then
41675
{ echo "$as_me:$LINENO: result: yes" >&5
41676
echo "${ECHO_T}yes" >&6; }
41677
tst_macro_sigsetjmp="yes"
41680
echo "$as_me: failed program was:" >&5
41681
sed 's/^/| /' conftest.$ac_ext >&5
41684
{ echo "$as_me:$LINENO: result: no" >&5
41685
echo "${ECHO_T}no" >&6; }
41686
tst_macro_sigsetjmp="no"
41690
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41691
conftest$ac_exeext conftest.$ac_ext
41694
if test "$tst_links_sigsetjmp" = "yes"; then
41695
{ echo "$as_me:$LINENO: checking if sigsetjmp is prototyped" >&5
41696
echo $ECHO_N "checking if sigsetjmp is prototyped... $ECHO_C" >&6; }
41697
cat >conftest.$ac_ext <<_ACEOF
41700
cat confdefs.h >>conftest.$ac_ext
41701
cat >>conftest.$ac_ext <<_ACEOF
41702
/* end confdefs.h. */
41704
$curl_includes_setjmp
41707
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41708
$EGREP "sigsetjmp" >/dev/null 2>&1; then
41710
{ echo "$as_me:$LINENO: result: yes" >&5
41711
echo "${ECHO_T}yes" >&6; }
41712
tst_proto_sigsetjmp="yes"
41716
{ echo "$as_me:$LINENO: result: no" >&5
41717
echo "${ECHO_T}no" >&6; }
41718
tst_proto_sigsetjmp="no"
41725
if test "$tst_proto_sigsetjmp" = "yes" ||
41726
test "$tst_macro_sigsetjmp" = "yes"; then
41727
{ echo "$as_me:$LINENO: checking if sigsetjmp is compilable" >&5
41728
echo $ECHO_N "checking if sigsetjmp is compilable... $ECHO_C" >&6; }
41729
cat >conftest.$ac_ext <<_ACEOF
41733
cat confdefs.h >>conftest.$ac_ext
41734
cat >>conftest.$ac_ext <<_ACEOF
41735
/* end confdefs.h. */
41737
$curl_includes_setjmp
41743
if(0 != sigsetjmp(env, 0))
41751
rm -f conftest.$ac_objext
41752
if { (ac_try="$ac_compile"
41753
case "(($ac_try" in
41754
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41755
*) ac_try_echo=$ac_try;;
41757
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41758
(eval "$ac_compile") 2>conftest.er1
41760
grep -v '^ *+' conftest.er1 >conftest.err
41762
cat conftest.err >&5
41763
echo "$as_me:$LINENO: \$? = $ac_status" >&5
41764
(exit $ac_status); } && {
41765
test -z "$ac_c_werror_flag" ||
41766
test ! -s conftest.err
41767
} && test -s conftest.$ac_objext; then
41769
{ echo "$as_me:$LINENO: result: yes" >&5
41770
echo "${ECHO_T}yes" >&6; }
41771
tst_compi_sigsetjmp="yes"
41774
echo "$as_me: failed program was:" >&5
41775
sed 's/^/| /' conftest.$ac_ext >&5
41778
{ echo "$as_me:$LINENO: result: no" >&5
41779
echo "${ECHO_T}no" >&6; }
41780
tst_compi_sigsetjmp="no"
41784
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41787
if test "$tst_compi_sigsetjmp" = "yes"; then
41788
{ echo "$as_me:$LINENO: checking if sigsetjmp usage allowed" >&5
41789
echo $ECHO_N "checking if sigsetjmp usage allowed... $ECHO_C" >&6; }
41790
if test "x$curl_disallow_sigsetjmp" != "xyes"; then
41791
{ echo "$as_me:$LINENO: result: yes" >&5
41792
echo "${ECHO_T}yes" >&6; }
41793
tst_allow_sigsetjmp="yes"
41795
{ echo "$as_me:$LINENO: result: no" >&5
41796
echo "${ECHO_T}no" >&6; }
41797
tst_allow_sigsetjmp="no"
41801
{ echo "$as_me:$LINENO: checking if sigsetjmp might be used" >&5
41802
echo $ECHO_N "checking if sigsetjmp might be used... $ECHO_C" >&6; }
41803
if (test "$tst_proto_sigsetjmp" = "yes" ||
41804
test "$tst_macro_sigsetjmp" = "yes") &&
41805
test "$tst_compi_sigsetjmp" = "yes" &&
41806
test "$tst_allow_sigsetjmp" = "yes"; then
41807
{ echo "$as_me:$LINENO: result: yes" >&5
41808
echo "${ECHO_T}yes" >&6; }
41810
cat >>confdefs.h <<_ACEOF
41811
#define HAVE_SIGSETJMP 1
41814
ac_cv_func_sigsetjmp="yes"
41816
{ echo "$as_me:$LINENO: result: no" >&5
41817
echo "${ECHO_T}no" >&6; }
41818
ac_cv_func_sigsetjmp="no"
41823
tst_links_strcasecmp="unknown"
41824
tst_proto_strcasecmp="unknown"
41825
tst_compi_strcasecmp="unknown"
41826
tst_allow_strcasecmp="unknown"
41828
{ echo "$as_me:$LINENO: checking if strcasecmp can be linked" >&5
41829
echo $ECHO_N "checking if strcasecmp can be linked... $ECHO_C" >&6; }
41830
cat >conftest.$ac_ext <<_ACEOF
41834
cat confdefs.h >>conftest.$ac_ext
41835
cat >>conftest.$ac_ext <<_ACEOF
41836
/* end confdefs.h. */
41838
#define strcasecmp innocuous_strcasecmp
41840
# include <limits.h>
41842
# include <assert.h>
41848
char strcasecmp ();
41849
#if defined __stub_strcasecmp || defined __stub___strcasecmp
41855
return strcasecmp ();
41861
rm -f conftest.$ac_objext conftest$ac_exeext
41862
if { (ac_try="$ac_link"
41863
case "(($ac_try" in
41864
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41865
*) ac_try_echo=$ac_try;;
41867
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41868
(eval "$ac_link") 2>conftest.er1
41870
grep -v '^ *+' conftest.er1 >conftest.err
41872
cat conftest.err >&5
41873
echo "$as_me:$LINENO: \$? = $ac_status" >&5
41874
(exit $ac_status); } && {
41875
test -z "$ac_c_werror_flag" ||
41876
test ! -s conftest.err
41877
} && test -s conftest$ac_exeext &&
41878
$as_test_x conftest$ac_exeext; then
41880
{ echo "$as_me:$LINENO: result: yes" >&5
41881
echo "${ECHO_T}yes" >&6; }
41882
tst_links_strcasecmp="yes"
41885
echo "$as_me: failed program was:" >&5
41886
sed 's/^/| /' conftest.$ac_ext >&5
41889
{ echo "$as_me:$LINENO: result: no" >&5
41890
echo "${ECHO_T}no" >&6; }
41891
tst_links_strcasecmp="no"
41895
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41896
conftest$ac_exeext conftest.$ac_ext
41898
if test "$tst_links_strcasecmp" = "yes"; then
41899
{ echo "$as_me:$LINENO: checking if strcasecmp is prototyped" >&5
41900
echo $ECHO_N "checking if strcasecmp is prototyped... $ECHO_C" >&6; }
41901
cat >conftest.$ac_ext <<_ACEOF
41904
cat confdefs.h >>conftest.$ac_ext
41905
cat >>conftest.$ac_ext <<_ACEOF
41906
/* end confdefs.h. */
41908
$curl_includes_string
41911
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41912
$EGREP "strcasecmp" >/dev/null 2>&1; then
41914
{ echo "$as_me:$LINENO: result: yes" >&5
41915
echo "${ECHO_T}yes" >&6; }
41916
tst_proto_strcasecmp="yes"
41920
{ echo "$as_me:$LINENO: result: no" >&5
41921
echo "${ECHO_T}no" >&6; }
41922
tst_proto_strcasecmp="no"
41929
if test "$tst_proto_strcasecmp" = "yes"; then
41930
{ echo "$as_me:$LINENO: checking if strcasecmp is compilable" >&5
41931
echo $ECHO_N "checking if strcasecmp is compilable... $ECHO_C" >&6; }
41932
cat >conftest.$ac_ext <<_ACEOF
41936
cat confdefs.h >>conftest.$ac_ext
41937
cat >>conftest.$ac_ext <<_ACEOF
41938
/* end confdefs.h. */
41940
$curl_includes_string
41945
if(0 != strcasecmp(0, 0))
41953
rm -f conftest.$ac_objext
41954
if { (ac_try="$ac_compile"
41955
case "(($ac_try" in
41956
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41957
*) ac_try_echo=$ac_try;;
41959
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41960
(eval "$ac_compile") 2>conftest.er1
41962
grep -v '^ *+' conftest.er1 >conftest.err
41964
cat conftest.err >&5
41965
echo "$as_me:$LINENO: \$? = $ac_status" >&5
41966
(exit $ac_status); } && {
41967
test -z "$ac_c_werror_flag" ||
41968
test ! -s conftest.err
41969
} && test -s conftest.$ac_objext; then
41971
{ echo "$as_me:$LINENO: result: yes" >&5
41972
echo "${ECHO_T}yes" >&6; }
41973
tst_compi_strcasecmp="yes"
41976
echo "$as_me: failed program was:" >&5
41977
sed 's/^/| /' conftest.$ac_ext >&5
41980
{ echo "$as_me:$LINENO: result: no" >&5
41981
echo "${ECHO_T}no" >&6; }
41982
tst_compi_strcasecmp="no"
41986
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41989
if test "$tst_compi_strcasecmp" = "yes"; then
41990
{ echo "$as_me:$LINENO: checking if strcasecmp usage allowed" >&5
41991
echo $ECHO_N "checking if strcasecmp usage allowed... $ECHO_C" >&6; }
41992
if test "x$curl_disallow_strcasecmp" != "xyes"; then
41993
{ echo "$as_me:$LINENO: result: yes" >&5
41994
echo "${ECHO_T}yes" >&6; }
41995
tst_allow_strcasecmp="yes"
41997
{ echo "$as_me:$LINENO: result: no" >&5
41998
echo "${ECHO_T}no" >&6; }
41999
tst_allow_strcasecmp="no"
42003
{ echo "$as_me:$LINENO: checking if strcasecmp might be used" >&5
42004
echo $ECHO_N "checking if strcasecmp might be used... $ECHO_C" >&6; }
42005
if test "$tst_links_strcasecmp" = "yes" &&
42006
test "$tst_proto_strcasecmp" = "yes" &&
42007
test "$tst_compi_strcasecmp" = "yes" &&
42008
test "$tst_allow_strcasecmp" = "yes"; then
42009
{ echo "$as_me:$LINENO: result: yes" >&5
42010
echo "${ECHO_T}yes" >&6; }
42012
cat >>confdefs.h <<_ACEOF
42013
#define HAVE_STRCASECMP 1
42016
ac_cv_func_strcasecmp="yes"
42018
{ echo "$as_me:$LINENO: result: no" >&5
42019
echo "${ECHO_T}no" >&6; }
42020
ac_cv_func_strcasecmp="no"
42025
tst_links_strcasestr="unknown"
42026
tst_proto_strcasestr="unknown"
42027
tst_compi_strcasestr="unknown"
42028
tst_allow_strcasestr="unknown"
42030
{ echo "$as_me:$LINENO: checking if strcasestr can be linked" >&5
42031
echo $ECHO_N "checking if strcasestr can be linked... $ECHO_C" >&6; }
42032
cat >conftest.$ac_ext <<_ACEOF
42036
cat confdefs.h >>conftest.$ac_ext
42037
cat >>conftest.$ac_ext <<_ACEOF
42038
/* end confdefs.h. */
42040
#define strcasestr innocuous_strcasestr
42042
# include <limits.h>
42044
# include <assert.h>
42050
char strcasestr ();
42051
#if defined __stub_strcasestr || defined __stub___strcasestr
42057
return strcasestr ();
42063
rm -f conftest.$ac_objext conftest$ac_exeext
42064
if { (ac_try="$ac_link"
42065
case "(($ac_try" in
42066
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42067
*) ac_try_echo=$ac_try;;
42069
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42070
(eval "$ac_link") 2>conftest.er1
42072
grep -v '^ *+' conftest.er1 >conftest.err
42074
cat conftest.err >&5
42075
echo "$as_me:$LINENO: \$? = $ac_status" >&5
42076
(exit $ac_status); } && {
42077
test -z "$ac_c_werror_flag" ||
42078
test ! -s conftest.err
42079
} && test -s conftest$ac_exeext &&
42080
$as_test_x conftest$ac_exeext; then
42082
{ echo "$as_me:$LINENO: result: yes" >&5
42083
echo "${ECHO_T}yes" >&6; }
42084
tst_links_strcasestr="yes"
42087
echo "$as_me: failed program was:" >&5
42088
sed 's/^/| /' conftest.$ac_ext >&5
42091
{ echo "$as_me:$LINENO: result: no" >&5
42092
echo "${ECHO_T}no" >&6; }
42093
tst_links_strcasestr="no"
42097
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42098
conftest$ac_exeext conftest.$ac_ext
42100
if test "$tst_links_strcasestr" = "yes"; then
42101
{ echo "$as_me:$LINENO: checking if strcasestr is prototyped" >&5
42102
echo $ECHO_N "checking if strcasestr is prototyped... $ECHO_C" >&6; }
42103
cat >conftest.$ac_ext <<_ACEOF
42106
cat confdefs.h >>conftest.$ac_ext
42107
cat >>conftest.$ac_ext <<_ACEOF
42108
/* end confdefs.h. */
42110
$curl_includes_string
42113
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42114
$EGREP "strcasestr" >/dev/null 2>&1; then
42116
{ echo "$as_me:$LINENO: result: yes" >&5
42117
echo "${ECHO_T}yes" >&6; }
42118
tst_proto_strcasestr="yes"
42122
{ echo "$as_me:$LINENO: result: no" >&5
42123
echo "${ECHO_T}no" >&6; }
42124
tst_proto_strcasestr="no"
42131
if test "$tst_proto_strcasestr" = "yes"; then
42132
{ echo "$as_me:$LINENO: checking if strcasestr is compilable" >&5
42133
echo $ECHO_N "checking if strcasestr is compilable... $ECHO_C" >&6; }
42134
cat >conftest.$ac_ext <<_ACEOF
42138
cat confdefs.h >>conftest.$ac_ext
42139
cat >>conftest.$ac_ext <<_ACEOF
42140
/* end confdefs.h. */
42142
$curl_includes_string
42147
if(0 != strcasestr(0, 0))
42155
rm -f conftest.$ac_objext
42156
if { (ac_try="$ac_compile"
42157
case "(($ac_try" in
42158
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42159
*) ac_try_echo=$ac_try;;
42161
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42162
(eval "$ac_compile") 2>conftest.er1
42164
grep -v '^ *+' conftest.er1 >conftest.err
42166
cat conftest.err >&5
42167
echo "$as_me:$LINENO: \$? = $ac_status" >&5
42168
(exit $ac_status); } && {
42169
test -z "$ac_c_werror_flag" ||
42170
test ! -s conftest.err
42171
} && test -s conftest.$ac_objext; then
42173
{ echo "$as_me:$LINENO: result: yes" >&5
42174
echo "${ECHO_T}yes" >&6; }
42175
tst_compi_strcasestr="yes"
42178
echo "$as_me: failed program was:" >&5
42179
sed 's/^/| /' conftest.$ac_ext >&5
42182
{ echo "$as_me:$LINENO: result: no" >&5
42183
echo "${ECHO_T}no" >&6; }
42184
tst_compi_strcasestr="no"
42188
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42191
if test "$tst_compi_strcasestr" = "yes"; then
42192
{ echo "$as_me:$LINENO: checking if strcasestr usage allowed" >&5
42193
echo $ECHO_N "checking if strcasestr usage allowed... $ECHO_C" >&6; }
42194
if test "x$curl_disallow_strcasestr" != "xyes"; then
42195
{ echo "$as_me:$LINENO: result: yes" >&5
42196
echo "${ECHO_T}yes" >&6; }
42197
tst_allow_strcasestr="yes"
42199
{ echo "$as_me:$LINENO: result: no" >&5
42200
echo "${ECHO_T}no" >&6; }
42201
tst_allow_strcasestr="no"
42205
{ echo "$as_me:$LINENO: checking if strcasestr might be used" >&5
42206
echo $ECHO_N "checking if strcasestr might be used... $ECHO_C" >&6; }
42207
if test "$tst_links_strcasestr" = "yes" &&
42208
test "$tst_proto_strcasestr" = "yes" &&
42209
test "$tst_compi_strcasestr" = "yes" &&
42210
test "$tst_allow_strcasestr" = "yes"; then
42211
{ echo "$as_me:$LINENO: result: yes" >&5
42212
echo "${ECHO_T}yes" >&6; }
42214
cat >>confdefs.h <<_ACEOF
42215
#define HAVE_STRCASESTR 1
42218
ac_cv_func_strcasestr="yes"
42220
{ echo "$as_me:$LINENO: result: no" >&5
42221
echo "${ECHO_T}no" >&6; }
42222
ac_cv_func_strcasestr="no"
42227
tst_links_strcmpi="unknown"
42228
tst_proto_strcmpi="unknown"
42229
tst_compi_strcmpi="unknown"
42230
tst_allow_strcmpi="unknown"
42232
{ echo "$as_me:$LINENO: checking if strcmpi can be linked" >&5
42233
echo $ECHO_N "checking if strcmpi can be linked... $ECHO_C" >&6; }
42234
cat >conftest.$ac_ext <<_ACEOF
42238
cat confdefs.h >>conftest.$ac_ext
42239
cat >>conftest.$ac_ext <<_ACEOF
42240
/* end confdefs.h. */
42242
#define strcmpi innocuous_strcmpi
42244
# include <limits.h>
42246
# include <assert.h>
42253
#if defined __stub_strcmpi || defined __stub___strcmpi
42265
rm -f conftest.$ac_objext conftest$ac_exeext
42266
if { (ac_try="$ac_link"
42267
case "(($ac_try" in
42268
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42269
*) ac_try_echo=$ac_try;;
42271
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42272
(eval "$ac_link") 2>conftest.er1
42274
grep -v '^ *+' conftest.er1 >conftest.err
42276
cat conftest.err >&5
42277
echo "$as_me:$LINENO: \$? = $ac_status" >&5
42278
(exit $ac_status); } && {
42279
test -z "$ac_c_werror_flag" ||
42280
test ! -s conftest.err
42281
} && test -s conftest$ac_exeext &&
42282
$as_test_x conftest$ac_exeext; then
42284
{ echo "$as_me:$LINENO: result: yes" >&5
42285
echo "${ECHO_T}yes" >&6; }
42286
tst_links_strcmpi="yes"
42289
echo "$as_me: failed program was:" >&5
42290
sed 's/^/| /' conftest.$ac_ext >&5
42293
{ echo "$as_me:$LINENO: result: no" >&5
42294
echo "${ECHO_T}no" >&6; }
42295
tst_links_strcmpi="no"
42299
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42300
conftest$ac_exeext conftest.$ac_ext
42302
if test "$tst_links_strcmpi" = "yes"; then
42303
{ echo "$as_me:$LINENO: checking if strcmpi is prototyped" >&5
42304
echo $ECHO_N "checking if strcmpi is prototyped... $ECHO_C" >&6; }
42305
cat >conftest.$ac_ext <<_ACEOF
42308
cat confdefs.h >>conftest.$ac_ext
42309
cat >>conftest.$ac_ext <<_ACEOF
42310
/* end confdefs.h. */
42312
$curl_includes_string
42315
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42316
$EGREP "strcmpi" >/dev/null 2>&1; then
42318
{ echo "$as_me:$LINENO: result: yes" >&5
42319
echo "${ECHO_T}yes" >&6; }
42320
tst_proto_strcmpi="yes"
42324
{ echo "$as_me:$LINENO: result: no" >&5
42325
echo "${ECHO_T}no" >&6; }
42326
tst_proto_strcmpi="no"
42333
if test "$tst_proto_strcmpi" = "yes"; then
42334
{ echo "$as_me:$LINENO: checking if strcmpi is compilable" >&5
42335
echo $ECHO_N "checking if strcmpi is compilable... $ECHO_C" >&6; }
42336
cat >conftest.$ac_ext <<_ACEOF
42340
cat confdefs.h >>conftest.$ac_ext
42341
cat >>conftest.$ac_ext <<_ACEOF
42342
/* end confdefs.h. */
42344
$curl_includes_string
42349
if(0 != strcmpi(0, 0))
42357
rm -f conftest.$ac_objext
42358
if { (ac_try="$ac_compile"
42359
case "(($ac_try" in
42360
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42361
*) ac_try_echo=$ac_try;;
42363
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42364
(eval "$ac_compile") 2>conftest.er1
42366
grep -v '^ *+' conftest.er1 >conftest.err
42368
cat conftest.err >&5
42369
echo "$as_me:$LINENO: \$? = $ac_status" >&5
42370
(exit $ac_status); } && {
42371
test -z "$ac_c_werror_flag" ||
42372
test ! -s conftest.err
42373
} && test -s conftest.$ac_objext; then
42375
{ echo "$as_me:$LINENO: result: yes" >&5
42376
echo "${ECHO_T}yes" >&6; }
42377
tst_compi_strcmpi="yes"
42380
echo "$as_me: failed program was:" >&5
42381
sed 's/^/| /' conftest.$ac_ext >&5
42384
{ echo "$as_me:$LINENO: result: no" >&5
42385
echo "${ECHO_T}no" >&6; }
42386
tst_compi_strcmpi="no"
42390
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42393
if test "$tst_compi_strcmpi" = "yes"; then
42394
{ echo "$as_me:$LINENO: checking if strcmpi usage allowed" >&5
42395
echo $ECHO_N "checking if strcmpi usage allowed... $ECHO_C" >&6; }
42396
if test "x$curl_disallow_strcmpi" != "xyes"; then
42397
{ echo "$as_me:$LINENO: result: yes" >&5
42398
echo "${ECHO_T}yes" >&6; }
42399
tst_allow_strcmpi="yes"
42401
{ echo "$as_me:$LINENO: result: no" >&5
42402
echo "${ECHO_T}no" >&6; }
42403
tst_allow_strcmpi="no"
42407
{ echo "$as_me:$LINENO: checking if strcmpi might be used" >&5
42408
echo $ECHO_N "checking if strcmpi might be used... $ECHO_C" >&6; }
42409
if test "$tst_links_strcmpi" = "yes" &&
42410
test "$tst_proto_strcmpi" = "yes" &&
42411
test "$tst_compi_strcmpi" = "yes" &&
42412
test "$tst_allow_strcmpi" = "yes"; then
42413
{ echo "$as_me:$LINENO: result: yes" >&5
42414
echo "${ECHO_T}yes" >&6; }
42416
cat >>confdefs.h <<_ACEOF
42417
#define HAVE_STRCMPI 1
42420
ac_cv_func_strcmpi="yes"
42422
{ echo "$as_me:$LINENO: result: no" >&5
42423
echo "${ECHO_T}no" >&6; }
42424
ac_cv_func_strcmpi="no"
42429
tst_links_strdup="unknown"
42430
tst_proto_strdup="unknown"
42431
tst_compi_strdup="unknown"
42432
tst_allow_strdup="unknown"
42434
{ echo "$as_me:$LINENO: checking if strdup can be linked" >&5
42435
echo $ECHO_N "checking if strdup can be linked... $ECHO_C" >&6; }
42436
cat >conftest.$ac_ext <<_ACEOF
42440
cat confdefs.h >>conftest.$ac_ext
42441
cat >>conftest.$ac_ext <<_ACEOF
42442
/* end confdefs.h. */
42444
#define strdup innocuous_strdup
42446
# include <limits.h>
42448
# include <assert.h>
42455
#if defined __stub_strdup || defined __stub___strdup
42467
rm -f conftest.$ac_objext conftest$ac_exeext
42468
if { (ac_try="$ac_link"
42469
case "(($ac_try" in
42470
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42471
*) ac_try_echo=$ac_try;;
42473
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42474
(eval "$ac_link") 2>conftest.er1
42476
grep -v '^ *+' conftest.er1 >conftest.err
42478
cat conftest.err >&5
42479
echo "$as_me:$LINENO: \$? = $ac_status" >&5
42480
(exit $ac_status); } && {
42481
test -z "$ac_c_werror_flag" ||
42482
test ! -s conftest.err
42483
} && test -s conftest$ac_exeext &&
42484
$as_test_x conftest$ac_exeext; then
42486
{ echo "$as_me:$LINENO: result: yes" >&5
42487
echo "${ECHO_T}yes" >&6; }
42488
tst_links_strdup="yes"
42491
echo "$as_me: failed program was:" >&5
42492
sed 's/^/| /' conftest.$ac_ext >&5
42495
{ echo "$as_me:$LINENO: result: no" >&5
42496
echo "${ECHO_T}no" >&6; }
42497
tst_links_strdup="no"
42501
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42502
conftest$ac_exeext conftest.$ac_ext
42504
if test "$tst_links_strdup" = "yes"; then
42505
{ echo "$as_me:$LINENO: checking if strdup is prototyped" >&5
42506
echo $ECHO_N "checking if strdup is prototyped... $ECHO_C" >&6; }
42507
cat >conftest.$ac_ext <<_ACEOF
42510
cat confdefs.h >>conftest.$ac_ext
42511
cat >>conftest.$ac_ext <<_ACEOF
42512
/* end confdefs.h. */
42514
$curl_includes_string
42517
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42518
$EGREP "strdup" >/dev/null 2>&1; then
42520
{ echo "$as_me:$LINENO: result: yes" >&5
42521
echo "${ECHO_T}yes" >&6; }
42522
tst_proto_strdup="yes"
42526
{ echo "$as_me:$LINENO: result: no" >&5
42527
echo "${ECHO_T}no" >&6; }
42528
tst_proto_strdup="no"
42535
if test "$tst_proto_strdup" = "yes"; then
42536
{ echo "$as_me:$LINENO: checking if strdup is compilable" >&5
42537
echo $ECHO_N "checking if strdup is compilable... $ECHO_C" >&6; }
42538
cat >conftest.$ac_ext <<_ACEOF
42542
cat confdefs.h >>conftest.$ac_ext
42543
cat >>conftest.$ac_ext <<_ACEOF
42544
/* end confdefs.h. */
42546
$curl_includes_string
42559
rm -f conftest.$ac_objext
42560
if { (ac_try="$ac_compile"
42561
case "(($ac_try" in
42562
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42563
*) ac_try_echo=$ac_try;;
42565
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42566
(eval "$ac_compile") 2>conftest.er1
42568
grep -v '^ *+' conftest.er1 >conftest.err
42570
cat conftest.err >&5
42571
echo "$as_me:$LINENO: \$? = $ac_status" >&5
42572
(exit $ac_status); } && {
42573
test -z "$ac_c_werror_flag" ||
42574
test ! -s conftest.err
42575
} && test -s conftest.$ac_objext; then
42577
{ echo "$as_me:$LINENO: result: yes" >&5
42578
echo "${ECHO_T}yes" >&6; }
42579
tst_compi_strdup="yes"
42582
echo "$as_me: failed program was:" >&5
42583
sed 's/^/| /' conftest.$ac_ext >&5
42586
{ echo "$as_me:$LINENO: result: no" >&5
42587
echo "${ECHO_T}no" >&6; }
42588
tst_compi_strdup="no"
42592
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42595
if test "$tst_compi_strdup" = "yes"; then
42596
{ echo "$as_me:$LINENO: checking if strdup usage allowed" >&5
42597
echo $ECHO_N "checking if strdup usage allowed... $ECHO_C" >&6; }
42598
if test "x$curl_disallow_strdup" != "xyes"; then
42599
{ echo "$as_me:$LINENO: result: yes" >&5
42600
echo "${ECHO_T}yes" >&6; }
42601
tst_allow_strdup="yes"
42603
{ echo "$as_me:$LINENO: result: no" >&5
42604
echo "${ECHO_T}no" >&6; }
42605
tst_allow_strdup="no"
42609
{ echo "$as_me:$LINENO: checking if strdup might be used" >&5
42610
echo $ECHO_N "checking if strdup might be used... $ECHO_C" >&6; }
42611
if test "$tst_links_strdup" = "yes" &&
42612
test "$tst_proto_strdup" = "yes" &&
42613
test "$tst_compi_strdup" = "yes" &&
42614
test "$tst_allow_strdup" = "yes"; then
42615
{ echo "$as_me:$LINENO: result: yes" >&5
42616
echo "${ECHO_T}yes" >&6; }
42618
cat >>confdefs.h <<_ACEOF
42619
#define HAVE_STRDUP 1
42622
ac_cv_func_strdup="yes"
42624
{ echo "$as_me:$LINENO: result: no" >&5
42625
echo "${ECHO_T}no" >&6; }
42626
ac_cv_func_strdup="no"
42631
tst_links_strerror_r="unknown"
42632
tst_proto_strerror_r="unknown"
42633
tst_compi_strerror_r="unknown"
42634
tst_glibc_strerror_r="unknown"
42635
tst_posix_strerror_r="unknown"
42636
tst_allow_strerror_r="unknown"
42637
tst_works_glibc_strerror_r="unknown"
42638
tst_works_posix_strerror_r="unknown"
42639
tst_glibc_strerror_r_type_arg3="unknown"
42640
tst_posix_strerror_r_type_arg3="unknown"
42642
{ echo "$as_me:$LINENO: checking if strerror_r can be linked" >&5
42643
echo $ECHO_N "checking if strerror_r can be linked... $ECHO_C" >&6; }
42644
cat >conftest.$ac_ext <<_ACEOF
42648
cat confdefs.h >>conftest.$ac_ext
42649
cat >>conftest.$ac_ext <<_ACEOF
42650
/* end confdefs.h. */
42652
#define strerror_r innocuous_strerror_r
42654
# include <limits.h>
42656
# include <assert.h>
42662
char strerror_r ();
42663
#if defined __stub_strerror_r || defined __stub___strerror_r
42669
return strerror_r ();
42675
rm -f conftest.$ac_objext conftest$ac_exeext
42676
if { (ac_try="$ac_link"
42677
case "(($ac_try" in
42678
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42679
*) ac_try_echo=$ac_try;;
42681
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42682
(eval "$ac_link") 2>conftest.er1
42684
grep -v '^ *+' conftest.er1 >conftest.err
42686
cat conftest.err >&5
42687
echo "$as_me:$LINENO: \$? = $ac_status" >&5
42688
(exit $ac_status); } && {
42689
test -z "$ac_c_werror_flag" ||
42690
test ! -s conftest.err
42691
} && test -s conftest$ac_exeext &&
42692
$as_test_x conftest$ac_exeext; then
42694
{ echo "$as_me:$LINENO: result: yes" >&5
42695
echo "${ECHO_T}yes" >&6; }
42696
tst_links_strerror_r="yes"
42699
echo "$as_me: failed program was:" >&5
42700
sed 's/^/| /' conftest.$ac_ext >&5
42703
{ echo "$as_me:$LINENO: result: no" >&5
42704
echo "${ECHO_T}no" >&6; }
42705
tst_links_strerror_r="no"
42709
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42710
conftest$ac_exeext conftest.$ac_ext
42712
if test "$tst_links_strerror_r" = "yes"; then
42713
{ echo "$as_me:$LINENO: checking if strerror_r is prototyped" >&5
42714
echo $ECHO_N "checking if strerror_r is prototyped... $ECHO_C" >&6; }
42715
cat >conftest.$ac_ext <<_ACEOF
42718
cat confdefs.h >>conftest.$ac_ext
42719
cat >>conftest.$ac_ext <<_ACEOF
42720
/* end confdefs.h. */
42722
$curl_includes_string
42725
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42726
$EGREP "strerror_r" >/dev/null 2>&1; then
42728
{ echo "$as_me:$LINENO: result: yes" >&5
42729
echo "${ECHO_T}yes" >&6; }
42730
tst_proto_strerror_r="yes"
42734
{ echo "$as_me:$LINENO: result: no" >&5
42735
echo "${ECHO_T}no" >&6; }
42736
tst_proto_strerror_r="no"
42743
if test "$tst_proto_strerror_r" = "yes"; then
42744
{ echo "$as_me:$LINENO: checking if strerror_r is compilable" >&5
42745
echo $ECHO_N "checking if strerror_r is compilable... $ECHO_C" >&6; }
42746
cat >conftest.$ac_ext <<_ACEOF
42750
cat confdefs.h >>conftest.$ac_ext
42751
cat >>conftest.$ac_ext <<_ACEOF
42752
/* end confdefs.h. */
42754
$curl_includes_string
42759
if(0 != strerror_r(0, 0, 0))
42767
rm -f conftest.$ac_objext
42768
if { (ac_try="$ac_compile"
42769
case "(($ac_try" in
42770
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42771
*) ac_try_echo=$ac_try;;
42773
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42774
(eval "$ac_compile") 2>conftest.er1
42776
grep -v '^ *+' conftest.er1 >conftest.err
42778
cat conftest.err >&5
42779
echo "$as_me:$LINENO: \$? = $ac_status" >&5
42780
(exit $ac_status); } && {
42781
test -z "$ac_c_werror_flag" ||
42782
test ! -s conftest.err
42783
} && test -s conftest.$ac_objext; then
42785
{ echo "$as_me:$LINENO: result: yes" >&5
42786
echo "${ECHO_T}yes" >&6; }
42787
tst_compi_strerror_r="yes"
42790
echo "$as_me: failed program was:" >&5
42791
sed 's/^/| /' conftest.$ac_ext >&5
42794
{ echo "$as_me:$LINENO: result: no" >&5
42795
echo "${ECHO_T}no" >&6; }
42796
tst_compi_strerror_r="no"
42800
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42803
if test "$tst_compi_strerror_r" = "yes"; then
42804
{ echo "$as_me:$LINENO: checking if strerror_r is glibc like" >&5
42805
echo $ECHO_N "checking if strerror_r is glibc like... $ECHO_C" >&6; }
42806
tst_glibc_strerror_r_type_arg3="unknown"
42807
for arg3 in 'size_t' 'int' 'unsigned int'; do
42808
if test "$tst_glibc_strerror_r_type_arg3" = "unknown"; then
42809
cat >conftest.$ac_ext <<_ACEOF
42813
cat confdefs.h >>conftest.$ac_ext
42814
cat >>conftest.$ac_ext <<_ACEOF
42815
/* end confdefs.h. */
42817
$curl_includes_string
42822
char *strerror_r(int errnum, char *workbuf, $arg3 bufsize);
42823
if(0 != strerror_r(0, 0, 0))
42831
rm -f conftest.$ac_objext
42832
if { (ac_try="$ac_compile"
42833
case "(($ac_try" in
42834
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42835
*) ac_try_echo=$ac_try;;
42837
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42838
(eval "$ac_compile") 2>conftest.er1
42840
grep -v '^ *+' conftest.er1 >conftest.err
42842
cat conftest.err >&5
42843
echo "$as_me:$LINENO: \$? = $ac_status" >&5
42844
(exit $ac_status); } && {
42845
test -z "$ac_c_werror_flag" ||
42846
test ! -s conftest.err
42847
} && test -s conftest.$ac_objext; then
42849
tst_glibc_strerror_r_type_arg3="$arg3"
42852
echo "$as_me: failed program was:" >&5
42853
sed 's/^/| /' conftest.$ac_ext >&5
42858
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42861
case "$tst_glibc_strerror_r_type_arg3" in
42863
{ echo "$as_me:$LINENO: result: no" >&5
42864
echo "${ECHO_T}no" >&6; }
42865
tst_glibc_strerror_r="no"
42868
{ echo "$as_me:$LINENO: result: yes" >&5
42869
echo "${ECHO_T}yes" >&6; }
42870
tst_glibc_strerror_r="yes"
42875
if test "x$cross_compiling" != "xyes" &&
42876
test "$tst_glibc_strerror_r" = "yes"; then
42877
{ echo "$as_me:$LINENO: checking if strerror_r seems to work" >&5
42878
echo $ECHO_N "checking if strerror_r seems to work... $ECHO_C" >&6; }
42879
if test "$cross_compiling" = yes; then
42880
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
42881
See \`config.log' for more details." >&5
42882
echo "$as_me: error: cannot run test program while cross compiling
42883
See \`config.log' for more details." >&2;}
42884
{ (exit 1); exit 1; }; }
42886
cat >conftest.$ac_ext <<_ACEOF
42890
cat confdefs.h >>conftest.$ac_ext
42891
cat >>conftest.$ac_ext <<_ACEOF
42892
/* end confdefs.h. */
42894
$curl_includes_stdlib
42895
$curl_includes_string
42896
# include <errno.h>
42904
string = strerror_r(EACCES, buffer, sizeof(buffer));
42906
exit(1); /* fail */
42908
exit(1); /* fail */
42917
rm -f conftest$ac_exeext
42918
if { (ac_try="$ac_link"
42919
case "(($ac_try" in
42920
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42921
*) ac_try_echo=$ac_try;;
42923
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42924
(eval "$ac_link") 2>&5
42926
echo "$as_me:$LINENO: \$? = $ac_status" >&5
42927
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42928
{ (case "(($ac_try" in
42929
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42930
*) ac_try_echo=$ac_try;;
42932
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42933
(eval "$ac_try") 2>&5
42935
echo "$as_me:$LINENO: \$? = $ac_status" >&5
42936
(exit $ac_status); }; }; then
42938
{ echo "$as_me:$LINENO: result: yes" >&5
42939
echo "${ECHO_T}yes" >&6; }
42940
tst_works_glibc_strerror_r="yes"
42943
echo "$as_me: program exited with status $ac_status" >&5
42944
echo "$as_me: failed program was:" >&5
42945
sed 's/^/| /' conftest.$ac_ext >&5
42947
( exit $ac_status )
42949
{ echo "$as_me:$LINENO: result: no" >&5
42950
echo "${ECHO_T}no" >&6; }
42951
tst_works_glibc_strerror_r="no"
42954
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42960
if test "$tst_compi_strerror_r" = "yes" &&
42961
test "$tst_works_glibc_strerror_r" != "yes"; then
42962
{ echo "$as_me:$LINENO: checking if strerror_r is POSIX like" >&5
42963
echo $ECHO_N "checking if strerror_r is POSIX like... $ECHO_C" >&6; }
42964
tst_posix_strerror_r_type_arg3="unknown"
42965
for arg3 in 'size_t' 'int' 'unsigned int'; do
42966
if test "$tst_posix_strerror_r_type_arg3" = "unknown"; then
42967
cat >conftest.$ac_ext <<_ACEOF
42971
cat confdefs.h >>conftest.$ac_ext
42972
cat >>conftest.$ac_ext <<_ACEOF
42973
/* end confdefs.h. */
42975
$curl_includes_string
42980
int strerror_r(int errnum, char *resultbuf, $arg3 bufsize);
42981
if(0 != strerror_r(0, 0, 0))
42989
rm -f conftest.$ac_objext
42990
if { (ac_try="$ac_compile"
42991
case "(($ac_try" in
42992
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42993
*) ac_try_echo=$ac_try;;
42995
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42996
(eval "$ac_compile") 2>conftest.er1
42998
grep -v '^ *+' conftest.er1 >conftest.err
43000
cat conftest.err >&5
43001
echo "$as_me:$LINENO: \$? = $ac_status" >&5
43002
(exit $ac_status); } && {
43003
test -z "$ac_c_werror_flag" ||
43004
test ! -s conftest.err
43005
} && test -s conftest.$ac_objext; then
43007
tst_posix_strerror_r_type_arg3="$arg3"
43010
echo "$as_me: failed program was:" >&5
43011
sed 's/^/| /' conftest.$ac_ext >&5
43016
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43019
case "$tst_posix_strerror_r_type_arg3" in
43021
{ echo "$as_me:$LINENO: result: no" >&5
43022
echo "${ECHO_T}no" >&6; }
43023
tst_posix_strerror_r="no"
43026
{ echo "$as_me:$LINENO: result: yes" >&5
43027
echo "${ECHO_T}yes" >&6; }
43028
tst_posix_strerror_r="yes"
43033
if test "x$cross_compiling" != "xyes" &&
43034
test "$tst_posix_strerror_r" = "yes"; then
43035
{ echo "$as_me:$LINENO: checking if strerror_r seems to work" >&5
43036
echo $ECHO_N "checking if strerror_r seems to work... $ECHO_C" >&6; }
43037
if test "$cross_compiling" = yes; then
43038
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
43039
See \`config.log' for more details." >&5
43040
echo "$as_me: error: cannot run test program while cross compiling
43041
See \`config.log' for more details." >&2;}
43042
{ (exit 1); exit 1; }; }
43044
cat >conftest.$ac_ext <<_ACEOF
43048
cat confdefs.h >>conftest.$ac_ext
43049
cat >>conftest.$ac_ext <<_ACEOF
43050
/* end confdefs.h. */
43052
$curl_includes_stdlib
43053
$curl_includes_string
43054
# include <errno.h>
43062
error = strerror_r(EACCES, buffer, sizeof(buffer));
43064
exit(1); /* fail */
43065
if(buffer[0] == '\0')
43066
exit(1); /* fail */
43075
rm -f conftest$ac_exeext
43076
if { (ac_try="$ac_link"
43077
case "(($ac_try" in
43078
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43079
*) ac_try_echo=$ac_try;;
43081
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43082
(eval "$ac_link") 2>&5
43084
echo "$as_me:$LINENO: \$? = $ac_status" >&5
43085
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
43086
{ (case "(($ac_try" in
43087
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43088
*) ac_try_echo=$ac_try;;
43090
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43091
(eval "$ac_try") 2>&5
43093
echo "$as_me:$LINENO: \$? = $ac_status" >&5
43094
(exit $ac_status); }; }; then
43096
{ echo "$as_me:$LINENO: result: yes" >&5
43097
echo "${ECHO_T}yes" >&6; }
43098
tst_works_posix_strerror_r="yes"
43101
echo "$as_me: program exited with status $ac_status" >&5
43102
echo "$as_me: failed program was:" >&5
43103
sed 's/^/| /' conftest.$ac_ext >&5
43105
( exit $ac_status )
43107
{ echo "$as_me:$LINENO: result: no" >&5
43108
echo "${ECHO_T}no" >&6; }
43109
tst_works_posix_strerror_r="no"
43112
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
43118
if test "$tst_works_glibc_strerror_r" = "yes"; then
43119
tst_posix_strerror_r="no"
43121
if test "$tst_works_posix_strerror_r" = "yes"; then
43122
tst_glibc_strerror_r="no"
43124
if test "$tst_glibc_strerror_r" = "yes" &&
43125
test "$tst_works_glibc_strerror_r" != "no" &&
43126
test "$tst_posix_strerror_r" != "yes"; then
43127
tst_allow_strerror_r="check"
43129
if test "$tst_posix_strerror_r" = "yes" &&
43130
test "$tst_works_posix_strerror_r" != "no" &&
43131
test "$tst_glibc_strerror_r" != "yes"; then
43132
tst_allow_strerror_r="check"
43134
if test "$tst_allow_strerror_r" = "check"; then
43135
{ echo "$as_me:$LINENO: checking if strerror_r usage allowed" >&5
43136
echo $ECHO_N "checking if strerror_r usage allowed... $ECHO_C" >&6; }
43137
if test "x$curl_disallow_strerror_r" != "xyes"; then
43138
{ echo "$as_me:$LINENO: result: yes" >&5
43139
echo "${ECHO_T}yes" >&6; }
43140
tst_allow_strerror_r="yes"
43142
{ echo "$as_me:$LINENO: result: no" >&5
43143
echo "${ECHO_T}no" >&6; }
43144
tst_allow_strerror_r="no"
43148
{ echo "$as_me:$LINENO: checking if strerror_r might be used" >&5
43149
echo $ECHO_N "checking if strerror_r might be used... $ECHO_C" >&6; }
43150
if test "$tst_links_strerror_r" = "yes" &&
43151
test "$tst_proto_strerror_r" = "yes" &&
43152
test "$tst_compi_strerror_r" = "yes" &&
43153
test "$tst_allow_strerror_r" = "yes"; then
43154
{ echo "$as_me:$LINENO: result: yes" >&5
43155
echo "${ECHO_T}yes" >&6; }
43156
if test "$tst_glibc_strerror_r" = "yes"; then
43158
cat >>confdefs.h <<_ACEOF
43159
#define HAVE_STRERROR_R 1
43163
cat >>confdefs.h <<_ACEOF
43164
#define HAVE_GLIBC_STRERROR_R 1
43168
cat >>confdefs.h <<_ACEOF
43169
#define STRERROR_R_TYPE_ARG3 $tst_glibc_strerror_r_type_arg3
43173
if test "$tst_posix_strerror_r" = "yes"; then
43175
cat >>confdefs.h <<_ACEOF
43176
#define HAVE_STRERROR_R 1
43180
cat >>confdefs.h <<_ACEOF
43181
#define HAVE_POSIX_STRERROR_R 1
43185
cat >>confdefs.h <<_ACEOF
43186
#define STRERROR_R_TYPE_ARG3 $tst_posix_strerror_r_type_arg3
43190
ac_cv_func_strerror_r="yes"
43192
{ echo "$as_me:$LINENO: result: no" >&5
43193
echo "${ECHO_T}no" >&6; }
43194
ac_cv_func_strerror_r="no"
43197
if test "$tst_compi_strerror_r" = "yes" &&
43198
test "$tst_allow_strerror_r" = "unknown"; then
43199
{ echo "$as_me:$LINENO: WARNING: cannot determine strerror_r() style: edit lib/config.h manually." >&5
43200
echo "$as_me: WARNING: cannot determine strerror_r() style: edit lib/config.h manually." >&2;}
43206
tst_links_stricmp="unknown"
43207
tst_proto_stricmp="unknown"
43208
tst_compi_stricmp="unknown"
43209
tst_allow_stricmp="unknown"
43211
{ echo "$as_me:$LINENO: checking if stricmp can be linked" >&5
43212
echo $ECHO_N "checking if stricmp can be linked... $ECHO_C" >&6; }
43213
cat >conftest.$ac_ext <<_ACEOF
43217
cat confdefs.h >>conftest.$ac_ext
43218
cat >>conftest.$ac_ext <<_ACEOF
43219
/* end confdefs.h. */
43221
#define stricmp innocuous_stricmp
43223
# include <limits.h>
43225
# include <assert.h>
43232
#if defined __stub_stricmp || defined __stub___stricmp
43244
rm -f conftest.$ac_objext conftest$ac_exeext
43245
if { (ac_try="$ac_link"
43246
case "(($ac_try" in
43247
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43248
*) ac_try_echo=$ac_try;;
43250
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43251
(eval "$ac_link") 2>conftest.er1
43253
grep -v '^ *+' conftest.er1 >conftest.err
43255
cat conftest.err >&5
43256
echo "$as_me:$LINENO: \$? = $ac_status" >&5
43257
(exit $ac_status); } && {
43258
test -z "$ac_c_werror_flag" ||
43259
test ! -s conftest.err
43260
} && test -s conftest$ac_exeext &&
43261
$as_test_x conftest$ac_exeext; then
43263
{ echo "$as_me:$LINENO: result: yes" >&5
43264
echo "${ECHO_T}yes" >&6; }
43265
tst_links_stricmp="yes"
43268
echo "$as_me: failed program was:" >&5
43269
sed 's/^/| /' conftest.$ac_ext >&5
43272
{ echo "$as_me:$LINENO: result: no" >&5
43273
echo "${ECHO_T}no" >&6; }
43274
tst_links_stricmp="no"
43278
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43279
conftest$ac_exeext conftest.$ac_ext
43281
if test "$tst_links_stricmp" = "yes"; then
43282
{ echo "$as_me:$LINENO: checking if stricmp is prototyped" >&5
43283
echo $ECHO_N "checking if stricmp is prototyped... $ECHO_C" >&6; }
43284
cat >conftest.$ac_ext <<_ACEOF
43287
cat confdefs.h >>conftest.$ac_ext
43288
cat >>conftest.$ac_ext <<_ACEOF
43289
/* end confdefs.h. */
43291
$curl_includes_string
43294
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43295
$EGREP "stricmp" >/dev/null 2>&1; then
43297
{ echo "$as_me:$LINENO: result: yes" >&5
43298
echo "${ECHO_T}yes" >&6; }
43299
tst_proto_stricmp="yes"
43303
{ echo "$as_me:$LINENO: result: no" >&5
43304
echo "${ECHO_T}no" >&6; }
43305
tst_proto_stricmp="no"
43312
if test "$tst_proto_stricmp" = "yes"; then
43313
{ echo "$as_me:$LINENO: checking if stricmp is compilable" >&5
43314
echo $ECHO_N "checking if stricmp is compilable... $ECHO_C" >&6; }
43315
cat >conftest.$ac_ext <<_ACEOF
43319
cat confdefs.h >>conftest.$ac_ext
43320
cat >>conftest.$ac_ext <<_ACEOF
43321
/* end confdefs.h. */
43323
$curl_includes_string
43328
if(0 != stricmp(0, 0))
43336
rm -f conftest.$ac_objext
43337
if { (ac_try="$ac_compile"
43338
case "(($ac_try" in
43339
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43340
*) ac_try_echo=$ac_try;;
43342
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43343
(eval "$ac_compile") 2>conftest.er1
43345
grep -v '^ *+' conftest.er1 >conftest.err
43347
cat conftest.err >&5
43348
echo "$as_me:$LINENO: \$? = $ac_status" >&5
43349
(exit $ac_status); } && {
43350
test -z "$ac_c_werror_flag" ||
43351
test ! -s conftest.err
43352
} && test -s conftest.$ac_objext; then
43354
{ echo "$as_me:$LINENO: result: yes" >&5
43355
echo "${ECHO_T}yes" >&6; }
43356
tst_compi_stricmp="yes"
43359
echo "$as_me: failed program was:" >&5
43360
sed 's/^/| /' conftest.$ac_ext >&5
43363
{ echo "$as_me:$LINENO: result: no" >&5
43364
echo "${ECHO_T}no" >&6; }
43365
tst_compi_stricmp="no"
43369
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43372
if test "$tst_compi_stricmp" = "yes"; then
43373
{ echo "$as_me:$LINENO: checking if stricmp usage allowed" >&5
43374
echo $ECHO_N "checking if stricmp usage allowed... $ECHO_C" >&6; }
43375
if test "x$curl_disallow_stricmp" != "xyes"; then
43376
{ echo "$as_me:$LINENO: result: yes" >&5
43377
echo "${ECHO_T}yes" >&6; }
43378
tst_allow_stricmp="yes"
43380
{ echo "$as_me:$LINENO: result: no" >&5
43381
echo "${ECHO_T}no" >&6; }
43382
tst_allow_stricmp="no"
43386
{ echo "$as_me:$LINENO: checking if stricmp might be used" >&5
43387
echo $ECHO_N "checking if stricmp might be used... $ECHO_C" >&6; }
43388
if test "$tst_links_stricmp" = "yes" &&
43389
test "$tst_proto_stricmp" = "yes" &&
43390
test "$tst_compi_stricmp" = "yes" &&
43391
test "$tst_allow_stricmp" = "yes"; then
43392
{ echo "$as_me:$LINENO: result: yes" >&5
43393
echo "${ECHO_T}yes" >&6; }
43395
cat >>confdefs.h <<_ACEOF
43396
#define HAVE_STRICMP 1
43399
ac_cv_func_stricmp="yes"
43401
{ echo "$as_me:$LINENO: result: no" >&5
43402
echo "${ECHO_T}no" >&6; }
43403
ac_cv_func_stricmp="no"
43408
tst_links_strlcat="unknown"
43409
tst_proto_strlcat="unknown"
43410
tst_compi_strlcat="unknown"
43411
tst_allow_strlcat="unknown"
43413
{ echo "$as_me:$LINENO: checking if strlcat can be linked" >&5
43414
echo $ECHO_N "checking if strlcat can be linked... $ECHO_C" >&6; }
43415
cat >conftest.$ac_ext <<_ACEOF
43419
cat confdefs.h >>conftest.$ac_ext
43420
cat >>conftest.$ac_ext <<_ACEOF
43421
/* end confdefs.h. */
43423
#define strlcat innocuous_strlcat
43425
# include <limits.h>
43427
# include <assert.h>
43434
#if defined __stub_strlcat || defined __stub___strlcat
43446
rm -f conftest.$ac_objext conftest$ac_exeext
43447
if { (ac_try="$ac_link"
43448
case "(($ac_try" in
43449
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43450
*) ac_try_echo=$ac_try;;
43452
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43453
(eval "$ac_link") 2>conftest.er1
43455
grep -v '^ *+' conftest.er1 >conftest.err
43457
cat conftest.err >&5
43458
echo "$as_me:$LINENO: \$? = $ac_status" >&5
43459
(exit $ac_status); } && {
43460
test -z "$ac_c_werror_flag" ||
43461
test ! -s conftest.err
43462
} && test -s conftest$ac_exeext &&
43463
$as_test_x conftest$ac_exeext; then
43465
{ echo "$as_me:$LINENO: result: yes" >&5
43466
echo "${ECHO_T}yes" >&6; }
43467
tst_links_strlcat="yes"
43470
echo "$as_me: failed program was:" >&5
43471
sed 's/^/| /' conftest.$ac_ext >&5
43474
{ echo "$as_me:$LINENO: result: no" >&5
43475
echo "${ECHO_T}no" >&6; }
43476
tst_links_strlcat="no"
43480
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43481
conftest$ac_exeext conftest.$ac_ext
43483
if test "$tst_links_strlcat" = "yes"; then
43484
{ echo "$as_me:$LINENO: checking if strlcat is prototyped" >&5
43485
echo $ECHO_N "checking if strlcat is prototyped... $ECHO_C" >&6; }
43486
cat >conftest.$ac_ext <<_ACEOF
43489
cat confdefs.h >>conftest.$ac_ext
43490
cat >>conftest.$ac_ext <<_ACEOF
43491
/* end confdefs.h. */
43493
$curl_includes_string
43496
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43497
$EGREP "strlcat" >/dev/null 2>&1; then
43499
{ echo "$as_me:$LINENO: result: yes" >&5
43500
echo "${ECHO_T}yes" >&6; }
43501
tst_proto_strlcat="yes"
43505
{ echo "$as_me:$LINENO: result: no" >&5
43506
echo "${ECHO_T}no" >&6; }
43507
tst_proto_strlcat="no"
43514
if test "$tst_proto_strlcat" = "yes"; then
43515
{ echo "$as_me:$LINENO: checking if strlcat is compilable" >&5
43516
echo $ECHO_N "checking if strlcat is compilable... $ECHO_C" >&6; }
43517
cat >conftest.$ac_ext <<_ACEOF
43521
cat confdefs.h >>conftest.$ac_ext
43522
cat >>conftest.$ac_ext <<_ACEOF
43523
/* end confdefs.h. */
43525
$curl_includes_string
43530
if(0 != strlcat(0, 0, 0))
43538
rm -f conftest.$ac_objext
43539
if { (ac_try="$ac_compile"
43540
case "(($ac_try" in
43541
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43542
*) ac_try_echo=$ac_try;;
43544
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43545
(eval "$ac_compile") 2>conftest.er1
43547
grep -v '^ *+' conftest.er1 >conftest.err
43549
cat conftest.err >&5
43550
echo "$as_me:$LINENO: \$? = $ac_status" >&5
43551
(exit $ac_status); } && {
43552
test -z "$ac_c_werror_flag" ||
43553
test ! -s conftest.err
43554
} && test -s conftest.$ac_objext; then
43556
{ echo "$as_me:$LINENO: result: yes" >&5
43557
echo "${ECHO_T}yes" >&6; }
43558
tst_compi_strlcat="yes"
43561
echo "$as_me: failed program was:" >&5
43562
sed 's/^/| /' conftest.$ac_ext >&5
43565
{ echo "$as_me:$LINENO: result: no" >&5
43566
echo "${ECHO_T}no" >&6; }
43567
tst_compi_strlcat="no"
43571
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43574
if test "$tst_compi_strlcat" = "yes"; then
43575
{ echo "$as_me:$LINENO: checking if strlcat usage allowed" >&5
43576
echo $ECHO_N "checking if strlcat usage allowed... $ECHO_C" >&6; }
43577
if test "x$curl_disallow_strlcat" != "xyes"; then
43578
{ echo "$as_me:$LINENO: result: yes" >&5
43579
echo "${ECHO_T}yes" >&6; }
43580
tst_allow_strlcat="yes"
43582
{ echo "$as_me:$LINENO: result: no" >&5
43583
echo "${ECHO_T}no" >&6; }
43584
tst_allow_strlcat="no"
43588
{ echo "$as_me:$LINENO: checking if strlcat might be used" >&5
43589
echo $ECHO_N "checking if strlcat might be used... $ECHO_C" >&6; }
43590
if test "$tst_links_strlcat" = "yes" &&
43591
test "$tst_proto_strlcat" = "yes" &&
43592
test "$tst_compi_strlcat" = "yes" &&
43593
test "$tst_allow_strlcat" = "yes"; then
43594
{ echo "$as_me:$LINENO: result: yes" >&5
43595
echo "${ECHO_T}yes" >&6; }
43597
cat >>confdefs.h <<_ACEOF
43598
#define HAVE_STRLCAT 1
43601
ac_cv_func_strlcat="yes"
43603
{ echo "$as_me:$LINENO: result: no" >&5
43604
echo "${ECHO_T}no" >&6; }
43605
ac_cv_func_strlcat="no"
43610
tst_links_strncasecmp="unknown"
43611
tst_proto_strncasecmp="unknown"
43612
tst_compi_strncasecmp="unknown"
43613
tst_allow_strncasecmp="unknown"
43615
{ echo "$as_me:$LINENO: checking if strncasecmp can be linked" >&5
43616
echo $ECHO_N "checking if strncasecmp can be linked... $ECHO_C" >&6; }
43617
cat >conftest.$ac_ext <<_ACEOF
43621
cat confdefs.h >>conftest.$ac_ext
43622
cat >>conftest.$ac_ext <<_ACEOF
43623
/* end confdefs.h. */
43625
#define strncasecmp innocuous_strncasecmp
43627
# include <limits.h>
43629
# include <assert.h>
43635
char strncasecmp ();
43636
#if defined __stub_strncasecmp || defined __stub___strncasecmp
43642
return strncasecmp ();
43648
rm -f conftest.$ac_objext conftest$ac_exeext
43649
if { (ac_try="$ac_link"
43650
case "(($ac_try" in
43651
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43652
*) ac_try_echo=$ac_try;;
43654
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43655
(eval "$ac_link") 2>conftest.er1
43657
grep -v '^ *+' conftest.er1 >conftest.err
43659
cat conftest.err >&5
43660
echo "$as_me:$LINENO: \$? = $ac_status" >&5
43661
(exit $ac_status); } && {
43662
test -z "$ac_c_werror_flag" ||
43663
test ! -s conftest.err
43664
} && test -s conftest$ac_exeext &&
43665
$as_test_x conftest$ac_exeext; then
43667
{ echo "$as_me:$LINENO: result: yes" >&5
43668
echo "${ECHO_T}yes" >&6; }
43669
tst_links_strncasecmp="yes"
43672
echo "$as_me: failed program was:" >&5
43673
sed 's/^/| /' conftest.$ac_ext >&5
43676
{ echo "$as_me:$LINENO: result: no" >&5
43677
echo "${ECHO_T}no" >&6; }
43678
tst_links_strncasecmp="no"
43682
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43683
conftest$ac_exeext conftest.$ac_ext
43685
if test "$tst_links_strncasecmp" = "yes"; then
43686
{ echo "$as_me:$LINENO: checking if strncasecmp is prototyped" >&5
43687
echo $ECHO_N "checking if strncasecmp is prototyped... $ECHO_C" >&6; }
43688
cat >conftest.$ac_ext <<_ACEOF
43691
cat confdefs.h >>conftest.$ac_ext
43692
cat >>conftest.$ac_ext <<_ACEOF
43693
/* end confdefs.h. */
43695
$curl_includes_string
43698
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43699
$EGREP "strncasecmp" >/dev/null 2>&1; then
43701
{ echo "$as_me:$LINENO: result: yes" >&5
43702
echo "${ECHO_T}yes" >&6; }
43703
tst_proto_strncasecmp="yes"
43707
{ echo "$as_me:$LINENO: result: no" >&5
43708
echo "${ECHO_T}no" >&6; }
43709
tst_proto_strncasecmp="no"
43716
if test "$tst_proto_strncasecmp" = "yes"; then
43717
{ echo "$as_me:$LINENO: checking if strncasecmp is compilable" >&5
43718
echo $ECHO_N "checking if strncasecmp is compilable... $ECHO_C" >&6; }
43719
cat >conftest.$ac_ext <<_ACEOF
43723
cat confdefs.h >>conftest.$ac_ext
43724
cat >>conftest.$ac_ext <<_ACEOF
43725
/* end confdefs.h. */
43727
$curl_includes_string
43732
if(0 != strncasecmp(0, 0, 0))
43740
rm -f conftest.$ac_objext
43741
if { (ac_try="$ac_compile"
43742
case "(($ac_try" in
43743
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43744
*) ac_try_echo=$ac_try;;
43746
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43747
(eval "$ac_compile") 2>conftest.er1
43749
grep -v '^ *+' conftest.er1 >conftest.err
43751
cat conftest.err >&5
43752
echo "$as_me:$LINENO: \$? = $ac_status" >&5
43753
(exit $ac_status); } && {
43754
test -z "$ac_c_werror_flag" ||
43755
test ! -s conftest.err
43756
} && test -s conftest.$ac_objext; then
43758
{ echo "$as_me:$LINENO: result: yes" >&5
43759
echo "${ECHO_T}yes" >&6; }
43760
tst_compi_strncasecmp="yes"
43763
echo "$as_me: failed program was:" >&5
43764
sed 's/^/| /' conftest.$ac_ext >&5
43767
{ echo "$as_me:$LINENO: result: no" >&5
43768
echo "${ECHO_T}no" >&6; }
43769
tst_compi_strncasecmp="no"
43773
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43776
if test "$tst_compi_strncasecmp" = "yes"; then
43777
{ echo "$as_me:$LINENO: checking if strncasecmp usage allowed" >&5
43778
echo $ECHO_N "checking if strncasecmp usage allowed... $ECHO_C" >&6; }
43779
if test "x$curl_disallow_strncasecmp" != "xyes"; then
43780
{ echo "$as_me:$LINENO: result: yes" >&5
43781
echo "${ECHO_T}yes" >&6; }
43782
tst_allow_strncasecmp="yes"
43784
{ echo "$as_me:$LINENO: result: no" >&5
43785
echo "${ECHO_T}no" >&6; }
43786
tst_allow_strncasecmp="no"
43790
{ echo "$as_me:$LINENO: checking if strncasecmp might be used" >&5
43791
echo $ECHO_N "checking if strncasecmp might be used... $ECHO_C" >&6; }
43792
if test "$tst_links_strncasecmp" = "yes" &&
43793
test "$tst_proto_strncasecmp" = "yes" &&
43794
test "$tst_compi_strncasecmp" = "yes" &&
43795
test "$tst_allow_strncasecmp" = "yes"; then
43796
{ echo "$as_me:$LINENO: result: yes" >&5
43797
echo "${ECHO_T}yes" >&6; }
43799
cat >>confdefs.h <<_ACEOF
43800
#define HAVE_STRNCASECMP 1
43803
ac_cv_func_strncasecmp="yes"
43805
{ echo "$as_me:$LINENO: result: no" >&5
43806
echo "${ECHO_T}no" >&6; }
43807
ac_cv_func_strncasecmp="no"
43812
tst_links_strncmpi="unknown"
43813
tst_proto_strncmpi="unknown"
43814
tst_compi_strncmpi="unknown"
43815
tst_allow_strncmpi="unknown"
43817
{ echo "$as_me:$LINENO: checking if strncmpi can be linked" >&5
43818
echo $ECHO_N "checking if strncmpi can be linked... $ECHO_C" >&6; }
43819
cat >conftest.$ac_ext <<_ACEOF
43823
cat confdefs.h >>conftest.$ac_ext
43824
cat >>conftest.$ac_ext <<_ACEOF
43825
/* end confdefs.h. */
43827
#define strncmpi innocuous_strncmpi
43829
# include <limits.h>
43831
# include <assert.h>
43838
#if defined __stub_strncmpi || defined __stub___strncmpi
43844
return strncmpi ();
43850
rm -f conftest.$ac_objext conftest$ac_exeext
43851
if { (ac_try="$ac_link"
43852
case "(($ac_try" in
43853
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43854
*) ac_try_echo=$ac_try;;
43856
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43857
(eval "$ac_link") 2>conftest.er1
43859
grep -v '^ *+' conftest.er1 >conftest.err
43861
cat conftest.err >&5
43862
echo "$as_me:$LINENO: \$? = $ac_status" >&5
43863
(exit $ac_status); } && {
43864
test -z "$ac_c_werror_flag" ||
43865
test ! -s conftest.err
43866
} && test -s conftest$ac_exeext &&
43867
$as_test_x conftest$ac_exeext; then
43869
{ echo "$as_me:$LINENO: result: yes" >&5
43870
echo "${ECHO_T}yes" >&6; }
43871
tst_links_strncmpi="yes"
43874
echo "$as_me: failed program was:" >&5
43875
sed 's/^/| /' conftest.$ac_ext >&5
43878
{ echo "$as_me:$LINENO: result: no" >&5
43879
echo "${ECHO_T}no" >&6; }
43880
tst_links_strncmpi="no"
43884
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43885
conftest$ac_exeext conftest.$ac_ext
43887
if test "$tst_links_strncmpi" = "yes"; then
43888
{ echo "$as_me:$LINENO: checking if strncmpi is prototyped" >&5
43889
echo $ECHO_N "checking if strncmpi is prototyped... $ECHO_C" >&6; }
43890
cat >conftest.$ac_ext <<_ACEOF
43893
cat confdefs.h >>conftest.$ac_ext
43894
cat >>conftest.$ac_ext <<_ACEOF
43895
/* end confdefs.h. */
43897
$curl_includes_string
43900
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43901
$EGREP "strncmpi" >/dev/null 2>&1; then
43903
{ echo "$as_me:$LINENO: result: yes" >&5
43904
echo "${ECHO_T}yes" >&6; }
43905
tst_proto_strncmpi="yes"
43909
{ echo "$as_me:$LINENO: result: no" >&5
43910
echo "${ECHO_T}no" >&6; }
43911
tst_proto_strncmpi="no"
43918
if test "$tst_proto_strncmpi" = "yes"; then
43919
{ echo "$as_me:$LINENO: checking if strncmpi is compilable" >&5
43920
echo $ECHO_N "checking if strncmpi is compilable... $ECHO_C" >&6; }
43921
cat >conftest.$ac_ext <<_ACEOF
43925
cat confdefs.h >>conftest.$ac_ext
43926
cat >>conftest.$ac_ext <<_ACEOF
43927
/* end confdefs.h. */
43929
$curl_includes_string
43934
if(0 != strncmpi(0, 0))
43942
rm -f conftest.$ac_objext
43943
if { (ac_try="$ac_compile"
43944
case "(($ac_try" in
43945
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43946
*) ac_try_echo=$ac_try;;
43948
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43949
(eval "$ac_compile") 2>conftest.er1
43951
grep -v '^ *+' conftest.er1 >conftest.err
43953
cat conftest.err >&5
43954
echo "$as_me:$LINENO: \$? = $ac_status" >&5
43955
(exit $ac_status); } && {
43956
test -z "$ac_c_werror_flag" ||
43957
test ! -s conftest.err
43958
} && test -s conftest.$ac_objext; then
43960
{ echo "$as_me:$LINENO: result: yes" >&5
43961
echo "${ECHO_T}yes" >&6; }
43962
tst_compi_strncmpi="yes"
43965
echo "$as_me: failed program was:" >&5
43966
sed 's/^/| /' conftest.$ac_ext >&5
43969
{ echo "$as_me:$LINENO: result: no" >&5
43970
echo "${ECHO_T}no" >&6; }
43971
tst_compi_strncmpi="no"
43975
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43978
if test "$tst_compi_strncmpi" = "yes"; then
43979
{ echo "$as_me:$LINENO: checking if strncmpi usage allowed" >&5
43980
echo $ECHO_N "checking if strncmpi usage allowed... $ECHO_C" >&6; }
43981
if test "x$curl_disallow_strncmpi" != "xyes"; then
43982
{ echo "$as_me:$LINENO: result: yes" >&5
43983
echo "${ECHO_T}yes" >&6; }
43984
tst_allow_strncmpi="yes"
43986
{ echo "$as_me:$LINENO: result: no" >&5
43987
echo "${ECHO_T}no" >&6; }
43988
tst_allow_strncmpi="no"
43992
{ echo "$as_me:$LINENO: checking if strncmpi might be used" >&5
43993
echo $ECHO_N "checking if strncmpi might be used... $ECHO_C" >&6; }
43994
if test "$tst_links_strncmpi" = "yes" &&
43995
test "$tst_proto_strncmpi" = "yes" &&
43996
test "$tst_compi_strncmpi" = "yes" &&
43997
test "$tst_allow_strncmpi" = "yes"; then
43998
{ echo "$as_me:$LINENO: result: yes" >&5
43999
echo "${ECHO_T}yes" >&6; }
44001
cat >>confdefs.h <<_ACEOF
44002
#define HAVE_STRNCMPI 1
44005
ac_cv_func_strncmpi="yes"
44007
{ echo "$as_me:$LINENO: result: no" >&5
44008
echo "${ECHO_T}no" >&6; }
44009
ac_cv_func_strncmpi="no"
44014
tst_links_strnicmp="unknown"
44015
tst_proto_strnicmp="unknown"
44016
tst_compi_strnicmp="unknown"
44017
tst_allow_strnicmp="unknown"
44019
{ echo "$as_me:$LINENO: checking if strnicmp can be linked" >&5
44020
echo $ECHO_N "checking if strnicmp can be linked... $ECHO_C" >&6; }
44021
cat >conftest.$ac_ext <<_ACEOF
44025
cat confdefs.h >>conftest.$ac_ext
44026
cat >>conftest.$ac_ext <<_ACEOF
44027
/* end confdefs.h. */
44029
#define strnicmp innocuous_strnicmp
44031
# include <limits.h>
44033
# include <assert.h>
44040
#if defined __stub_strnicmp || defined __stub___strnicmp
44046
return strnicmp ();
44052
rm -f conftest.$ac_objext conftest$ac_exeext
44053
if { (ac_try="$ac_link"
44054
case "(($ac_try" in
44055
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44056
*) ac_try_echo=$ac_try;;
44058
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44059
(eval "$ac_link") 2>conftest.er1
44061
grep -v '^ *+' conftest.er1 >conftest.err
44063
cat conftest.err >&5
44064
echo "$as_me:$LINENO: \$? = $ac_status" >&5
44065
(exit $ac_status); } && {
44066
test -z "$ac_c_werror_flag" ||
44067
test ! -s conftest.err
44068
} && test -s conftest$ac_exeext &&
44069
$as_test_x conftest$ac_exeext; then
44071
{ echo "$as_me:$LINENO: result: yes" >&5
44072
echo "${ECHO_T}yes" >&6; }
44073
tst_links_strnicmp="yes"
44076
echo "$as_me: failed program was:" >&5
44077
sed 's/^/| /' conftest.$ac_ext >&5
44080
{ echo "$as_me:$LINENO: result: no" >&5
44081
echo "${ECHO_T}no" >&6; }
44082
tst_links_strnicmp="no"
44086
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44087
conftest$ac_exeext conftest.$ac_ext
44089
if test "$tst_links_strnicmp" = "yes"; then
44090
{ echo "$as_me:$LINENO: checking if strnicmp is prototyped" >&5
44091
echo $ECHO_N "checking if strnicmp is prototyped... $ECHO_C" >&6; }
44092
cat >conftest.$ac_ext <<_ACEOF
44095
cat confdefs.h >>conftest.$ac_ext
44096
cat >>conftest.$ac_ext <<_ACEOF
44097
/* end confdefs.h. */
44099
$curl_includes_string
44102
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44103
$EGREP "strnicmp" >/dev/null 2>&1; then
44105
{ echo "$as_me:$LINENO: result: yes" >&5
44106
echo "${ECHO_T}yes" >&6; }
44107
tst_proto_strnicmp="yes"
44111
{ echo "$as_me:$LINENO: result: no" >&5
44112
echo "${ECHO_T}no" >&6; }
44113
tst_proto_strnicmp="no"
44120
if test "$tst_proto_strnicmp" = "yes"; then
44121
{ echo "$as_me:$LINENO: checking if strnicmp is compilable" >&5
44122
echo $ECHO_N "checking if strnicmp is compilable... $ECHO_C" >&6; }
44123
cat >conftest.$ac_ext <<_ACEOF
44127
cat confdefs.h >>conftest.$ac_ext
44128
cat >>conftest.$ac_ext <<_ACEOF
44129
/* end confdefs.h. */
44131
$curl_includes_string
44136
if(0 != strnicmp(0, 0))
44144
rm -f conftest.$ac_objext
44145
if { (ac_try="$ac_compile"
44146
case "(($ac_try" in
44147
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44148
*) ac_try_echo=$ac_try;;
44150
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44151
(eval "$ac_compile") 2>conftest.er1
44153
grep -v '^ *+' conftest.er1 >conftest.err
44155
cat conftest.err >&5
44156
echo "$as_me:$LINENO: \$? = $ac_status" >&5
44157
(exit $ac_status); } && {
44158
test -z "$ac_c_werror_flag" ||
44159
test ! -s conftest.err
44160
} && test -s conftest.$ac_objext; then
44162
{ echo "$as_me:$LINENO: result: yes" >&5
44163
echo "${ECHO_T}yes" >&6; }
44164
tst_compi_strnicmp="yes"
44167
echo "$as_me: failed program was:" >&5
44168
sed 's/^/| /' conftest.$ac_ext >&5
44171
{ echo "$as_me:$LINENO: result: no" >&5
44172
echo "${ECHO_T}no" >&6; }
44173
tst_compi_strnicmp="no"
44177
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44180
if test "$tst_compi_strnicmp" = "yes"; then
44181
{ echo "$as_me:$LINENO: checking if strnicmp usage allowed" >&5
44182
echo $ECHO_N "checking if strnicmp usage allowed... $ECHO_C" >&6; }
44183
if test "x$curl_disallow_strnicmp" != "xyes"; then
44184
{ echo "$as_me:$LINENO: result: yes" >&5
44185
echo "${ECHO_T}yes" >&6; }
44186
tst_allow_strnicmp="yes"
44188
{ echo "$as_me:$LINENO: result: no" >&5
44189
echo "${ECHO_T}no" >&6; }
44190
tst_allow_strnicmp="no"
44194
{ echo "$as_me:$LINENO: checking if strnicmp might be used" >&5
44195
echo $ECHO_N "checking if strnicmp might be used... $ECHO_C" >&6; }
44196
if test "$tst_links_strnicmp" = "yes" &&
44197
test "$tst_proto_strnicmp" = "yes" &&
44198
test "$tst_compi_strnicmp" = "yes" &&
44199
test "$tst_allow_strnicmp" = "yes"; then
44200
{ echo "$as_me:$LINENO: result: yes" >&5
44201
echo "${ECHO_T}yes" >&6; }
44203
cat >>confdefs.h <<_ACEOF
44204
#define HAVE_STRNICMP 1
44207
ac_cv_func_strnicmp="yes"
44209
{ echo "$as_me:$LINENO: result: no" >&5
44210
echo "${ECHO_T}no" >&6; }
44211
ac_cv_func_strnicmp="no"
44216
tst_links_strstr="unknown"
44217
tst_proto_strstr="unknown"
44218
tst_compi_strstr="unknown"
44219
tst_allow_strstr="unknown"
44221
{ echo "$as_me:$LINENO: checking if strstr can be linked" >&5
44222
echo $ECHO_N "checking if strstr can be linked... $ECHO_C" >&6; }
44223
cat >conftest.$ac_ext <<_ACEOF
44227
cat confdefs.h >>conftest.$ac_ext
44228
cat >>conftest.$ac_ext <<_ACEOF
44229
/* end confdefs.h. */
44231
#define strstr innocuous_strstr
44233
# include <limits.h>
44235
# include <assert.h>
44242
#if defined __stub_strstr || defined __stub___strstr
44254
rm -f conftest.$ac_objext conftest$ac_exeext
44255
if { (ac_try="$ac_link"
44256
case "(($ac_try" in
44257
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44258
*) ac_try_echo=$ac_try;;
44260
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44261
(eval "$ac_link") 2>conftest.er1
44263
grep -v '^ *+' conftest.er1 >conftest.err
44265
cat conftest.err >&5
44266
echo "$as_me:$LINENO: \$? = $ac_status" >&5
44267
(exit $ac_status); } && {
44268
test -z "$ac_c_werror_flag" ||
44269
test ! -s conftest.err
44270
} && test -s conftest$ac_exeext &&
44271
$as_test_x conftest$ac_exeext; then
44273
{ echo "$as_me:$LINENO: result: yes" >&5
44274
echo "${ECHO_T}yes" >&6; }
44275
tst_links_strstr="yes"
44278
echo "$as_me: failed program was:" >&5
44279
sed 's/^/| /' conftest.$ac_ext >&5
44282
{ echo "$as_me:$LINENO: result: no" >&5
44283
echo "${ECHO_T}no" >&6; }
44284
tst_links_strstr="no"
44288
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44289
conftest$ac_exeext conftest.$ac_ext
44291
if test "$tst_links_strstr" = "yes"; then
44292
{ echo "$as_me:$LINENO: checking if strstr is prototyped" >&5
44293
echo $ECHO_N "checking if strstr is prototyped... $ECHO_C" >&6; }
44294
cat >conftest.$ac_ext <<_ACEOF
44297
cat confdefs.h >>conftest.$ac_ext
44298
cat >>conftest.$ac_ext <<_ACEOF
44299
/* end confdefs.h. */
44301
$curl_includes_string
44304
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44305
$EGREP "strstr" >/dev/null 2>&1; then
44307
{ echo "$as_me:$LINENO: result: yes" >&5
44308
echo "${ECHO_T}yes" >&6; }
44309
tst_proto_strstr="yes"
44313
{ echo "$as_me:$LINENO: result: no" >&5
44314
echo "${ECHO_T}no" >&6; }
44315
tst_proto_strstr="no"
44322
if test "$tst_proto_strstr" = "yes"; then
44323
{ echo "$as_me:$LINENO: checking if strstr is compilable" >&5
44324
echo $ECHO_N "checking if strstr is compilable... $ECHO_C" >&6; }
44325
cat >conftest.$ac_ext <<_ACEOF
44329
cat confdefs.h >>conftest.$ac_ext
44330
cat >>conftest.$ac_ext <<_ACEOF
44331
/* end confdefs.h. */
44333
$curl_includes_string
44338
if(0 != strstr(0, 0))
44346
rm -f conftest.$ac_objext
44347
if { (ac_try="$ac_compile"
44348
case "(($ac_try" in
44349
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44350
*) ac_try_echo=$ac_try;;
44352
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44353
(eval "$ac_compile") 2>conftest.er1
44355
grep -v '^ *+' conftest.er1 >conftest.err
44357
cat conftest.err >&5
44358
echo "$as_me:$LINENO: \$? = $ac_status" >&5
44359
(exit $ac_status); } && {
44360
test -z "$ac_c_werror_flag" ||
44361
test ! -s conftest.err
44362
} && test -s conftest.$ac_objext; then
44364
{ echo "$as_me:$LINENO: result: yes" >&5
44365
echo "${ECHO_T}yes" >&6; }
44366
tst_compi_strstr="yes"
44369
echo "$as_me: failed program was:" >&5
44370
sed 's/^/| /' conftest.$ac_ext >&5
44373
{ echo "$as_me:$LINENO: result: no" >&5
44374
echo "${ECHO_T}no" >&6; }
44375
tst_compi_strstr="no"
44379
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44382
if test "$tst_compi_strstr" = "yes"; then
44383
{ echo "$as_me:$LINENO: checking if strstr usage allowed" >&5
44384
echo $ECHO_N "checking if strstr usage allowed... $ECHO_C" >&6; }
44385
if test "x$curl_disallow_strstr" != "xyes"; then
44386
{ echo "$as_me:$LINENO: result: yes" >&5
44387
echo "${ECHO_T}yes" >&6; }
44388
tst_allow_strstr="yes"
44390
{ echo "$as_me:$LINENO: result: no" >&5
44391
echo "${ECHO_T}no" >&6; }
44392
tst_allow_strstr="no"
44396
{ echo "$as_me:$LINENO: checking if strstr might be used" >&5
44397
echo $ECHO_N "checking if strstr might be used... $ECHO_C" >&6; }
44398
if test "$tst_links_strstr" = "yes" &&
44399
test "$tst_proto_strstr" = "yes" &&
44400
test "$tst_compi_strstr" = "yes" &&
44401
test "$tst_allow_strstr" = "yes"; then
44402
{ echo "$as_me:$LINENO: result: yes" >&5
44403
echo "${ECHO_T}yes" >&6; }
44405
cat >>confdefs.h <<_ACEOF
44406
#define HAVE_STRSTR 1
44409
ac_cv_func_strstr="yes"
44411
{ echo "$as_me:$LINENO: result: no" >&5
44412
echo "${ECHO_T}no" >&6; }
44413
ac_cv_func_strstr="no"
44418
tst_links_strtok_r="unknown"
44419
tst_proto_strtok_r="unknown"
44420
tst_compi_strtok_r="unknown"
44421
tst_allow_strtok_r="unknown"
44423
{ echo "$as_me:$LINENO: checking if strtok_r can be linked" >&5
44424
echo $ECHO_N "checking if strtok_r can be linked... $ECHO_C" >&6; }
44425
cat >conftest.$ac_ext <<_ACEOF
44429
cat confdefs.h >>conftest.$ac_ext
44430
cat >>conftest.$ac_ext <<_ACEOF
44431
/* end confdefs.h. */
44433
#define strtok_r innocuous_strtok_r
44435
# include <limits.h>
44437
# include <assert.h>
44444
#if defined __stub_strtok_r || defined __stub___strtok_r
44450
return strtok_r ();
44456
rm -f conftest.$ac_objext conftest$ac_exeext
44457
if { (ac_try="$ac_link"
44458
case "(($ac_try" in
44459
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44460
*) ac_try_echo=$ac_try;;
44462
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44463
(eval "$ac_link") 2>conftest.er1
44465
grep -v '^ *+' conftest.er1 >conftest.err
44467
cat conftest.err >&5
44468
echo "$as_me:$LINENO: \$? = $ac_status" >&5
44469
(exit $ac_status); } && {
44470
test -z "$ac_c_werror_flag" ||
44471
test ! -s conftest.err
44472
} && test -s conftest$ac_exeext &&
44473
$as_test_x conftest$ac_exeext; then
44475
{ echo "$as_me:$LINENO: result: yes" >&5
44476
echo "${ECHO_T}yes" >&6; }
44477
tst_links_strtok_r="yes"
44480
echo "$as_me: failed program was:" >&5
44481
sed 's/^/| /' conftest.$ac_ext >&5
44484
{ echo "$as_me:$LINENO: result: no" >&5
44485
echo "${ECHO_T}no" >&6; }
44486
tst_links_strtok_r="no"
44490
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44491
conftest$ac_exeext conftest.$ac_ext
44493
if test "$tst_links_strtok_r" = "yes"; then
44494
{ echo "$as_me:$LINENO: checking if strtok_r is prototyped" >&5
44495
echo $ECHO_N "checking if strtok_r is prototyped... $ECHO_C" >&6; }
44496
cat >conftest.$ac_ext <<_ACEOF
44499
cat confdefs.h >>conftest.$ac_ext
44500
cat >>conftest.$ac_ext <<_ACEOF
44501
/* end confdefs.h. */
44503
$curl_includes_string
44506
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44507
$EGREP "strtok_r" >/dev/null 2>&1; then
44509
{ echo "$as_me:$LINENO: result: yes" >&5
44510
echo "${ECHO_T}yes" >&6; }
44511
tst_proto_strtok_r="yes"
44515
{ echo "$as_me:$LINENO: result: no" >&5
44516
echo "${ECHO_T}no" >&6; }
44517
tst_proto_strtok_r="no"
44524
if test "$tst_proto_strtok_r" = "yes"; then
44525
{ echo "$as_me:$LINENO: checking if strtok_r is compilable" >&5
44526
echo $ECHO_N "checking if strtok_r is compilable... $ECHO_C" >&6; }
44527
cat >conftest.$ac_ext <<_ACEOF
44531
cat confdefs.h >>conftest.$ac_ext
44532
cat >>conftest.$ac_ext <<_ACEOF
44533
/* end confdefs.h. */
44535
$curl_includes_string
44540
if(0 != strtok_r(0, 0, 0))
44548
rm -f conftest.$ac_objext
44549
if { (ac_try="$ac_compile"
44550
case "(($ac_try" in
44551
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44552
*) ac_try_echo=$ac_try;;
44554
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44555
(eval "$ac_compile") 2>conftest.er1
44557
grep -v '^ *+' conftest.er1 >conftest.err
44559
cat conftest.err >&5
44560
echo "$as_me:$LINENO: \$? = $ac_status" >&5
44561
(exit $ac_status); } && {
44562
test -z "$ac_c_werror_flag" ||
44563
test ! -s conftest.err
44564
} && test -s conftest.$ac_objext; then
44566
{ echo "$as_me:$LINENO: result: yes" >&5
44567
echo "${ECHO_T}yes" >&6; }
44568
tst_compi_strtok_r="yes"
44571
echo "$as_me: failed program was:" >&5
44572
sed 's/^/| /' conftest.$ac_ext >&5
44575
{ echo "$as_me:$LINENO: result: no" >&5
44576
echo "${ECHO_T}no" >&6; }
44577
tst_compi_strtok_r="no"
44581
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44584
if test "$tst_compi_strtok_r" = "yes"; then
44585
{ echo "$as_me:$LINENO: checking if strtok_r usage allowed" >&5
44586
echo $ECHO_N "checking if strtok_r usage allowed... $ECHO_C" >&6; }
44587
if test "x$curl_disallow_strtok_r" != "xyes"; then
44588
{ echo "$as_me:$LINENO: result: yes" >&5
44589
echo "${ECHO_T}yes" >&6; }
44590
tst_allow_strtok_r="yes"
44592
{ echo "$as_me:$LINENO: result: no" >&5
44593
echo "${ECHO_T}no" >&6; }
44594
tst_allow_strtok_r="no"
44598
{ echo "$as_me:$LINENO: checking if strtok_r might be used" >&5
44599
echo $ECHO_N "checking if strtok_r might be used... $ECHO_C" >&6; }
44600
if test "$tst_links_strtok_r" = "yes" &&
44601
test "$tst_proto_strtok_r" = "yes" &&
44602
test "$tst_compi_strtok_r" = "yes" &&
44603
test "$tst_allow_strtok_r" = "yes"; then
44604
{ echo "$as_me:$LINENO: result: yes" >&5
44605
echo "${ECHO_T}yes" >&6; }
44607
cat >>confdefs.h <<_ACEOF
44608
#define HAVE_STRTOK_R 1
44611
ac_cv_func_strtok_r="yes"
44613
{ echo "$as_me:$LINENO: result: no" >&5
44614
echo "${ECHO_T}no" >&6; }
44615
ac_cv_func_strtok_r="no"
44620
tst_links_strtoll="unknown"
44621
tst_proto_strtoll="unknown"
44622
tst_compi_strtoll="unknown"
44623
tst_allow_strtoll="unknown"
44625
{ echo "$as_me:$LINENO: checking if strtoll can be linked" >&5
44626
echo $ECHO_N "checking if strtoll can be linked... $ECHO_C" >&6; }
44627
cat >conftest.$ac_ext <<_ACEOF
44631
cat confdefs.h >>conftest.$ac_ext
44632
cat >>conftest.$ac_ext <<_ACEOF
44633
/* end confdefs.h. */
44635
#define strtoll innocuous_strtoll
44637
# include <limits.h>
44639
# include <assert.h>
44646
#if defined __stub_strtoll || defined __stub___strtoll
44658
rm -f conftest.$ac_objext conftest$ac_exeext
44659
if { (ac_try="$ac_link"
44660
case "(($ac_try" in
44661
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44662
*) ac_try_echo=$ac_try;;
44664
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44665
(eval "$ac_link") 2>conftest.er1
44667
grep -v '^ *+' conftest.er1 >conftest.err
44669
cat conftest.err >&5
44670
echo "$as_me:$LINENO: \$? = $ac_status" >&5
44671
(exit $ac_status); } && {
44672
test -z "$ac_c_werror_flag" ||
44673
test ! -s conftest.err
44674
} && test -s conftest$ac_exeext &&
44675
$as_test_x conftest$ac_exeext; then
44677
{ echo "$as_me:$LINENO: result: yes" >&5
44678
echo "${ECHO_T}yes" >&6; }
44679
tst_links_strtoll="yes"
44682
echo "$as_me: failed program was:" >&5
44683
sed 's/^/| /' conftest.$ac_ext >&5
44686
{ echo "$as_me:$LINENO: result: no" >&5
44687
echo "${ECHO_T}no" >&6; }
44688
tst_links_strtoll="no"
44692
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44693
conftest$ac_exeext conftest.$ac_ext
44695
if test "$tst_links_strtoll" = "yes"; then
44696
{ echo "$as_me:$LINENO: checking if strtoll is prototyped" >&5
44697
echo $ECHO_N "checking if strtoll is prototyped... $ECHO_C" >&6; }
44698
cat >conftest.$ac_ext <<_ACEOF
44701
cat confdefs.h >>conftest.$ac_ext
44702
cat >>conftest.$ac_ext <<_ACEOF
44703
/* end confdefs.h. */
44705
$curl_includes_stdlib
44708
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44709
$EGREP "strtoll" >/dev/null 2>&1; then
44711
{ echo "$as_me:$LINENO: result: yes" >&5
44712
echo "${ECHO_T}yes" >&6; }
44713
tst_proto_strtoll="yes"
44717
{ echo "$as_me:$LINENO: result: no" >&5
44718
echo "${ECHO_T}no" >&6; }
44719
tst_proto_strtoll="no"
44726
if test "$tst_proto_strtoll" = "yes"; then
44727
{ echo "$as_me:$LINENO: checking if strtoll is compilable" >&5
44728
echo $ECHO_N "checking if strtoll is compilable... $ECHO_C" >&6; }
44729
cat >conftest.$ac_ext <<_ACEOF
44733
cat confdefs.h >>conftest.$ac_ext
44734
cat >>conftest.$ac_ext <<_ACEOF
44735
/* end confdefs.h. */
44737
$curl_includes_stdlib
44742
if(0 != strtoll(0, 0, 0))
44750
rm -f conftest.$ac_objext
44751
if { (ac_try="$ac_compile"
44752
case "(($ac_try" in
44753
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44754
*) ac_try_echo=$ac_try;;
44756
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44757
(eval "$ac_compile") 2>conftest.er1
44759
grep -v '^ *+' conftest.er1 >conftest.err
44761
cat conftest.err >&5
44762
echo "$as_me:$LINENO: \$? = $ac_status" >&5
44763
(exit $ac_status); } && {
44764
test -z "$ac_c_werror_flag" ||
44765
test ! -s conftest.err
44766
} && test -s conftest.$ac_objext; then
44768
{ echo "$as_me:$LINENO: result: yes" >&5
44769
echo "${ECHO_T}yes" >&6; }
44770
tst_compi_strtoll="yes"
44773
echo "$as_me: failed program was:" >&5
44774
sed 's/^/| /' conftest.$ac_ext >&5
44777
{ echo "$as_me:$LINENO: result: no" >&5
44778
echo "${ECHO_T}no" >&6; }
44779
tst_compi_strtoll="no"
44783
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44786
if test "$tst_compi_strtoll" = "yes"; then
44787
{ echo "$as_me:$LINENO: checking if strtoll usage allowed" >&5
44788
echo $ECHO_N "checking if strtoll usage allowed... $ECHO_C" >&6; }
44789
if test "x$curl_disallow_strtoll" != "xyes"; then
44790
{ echo "$as_me:$LINENO: result: yes" >&5
44791
echo "${ECHO_T}yes" >&6; }
44792
tst_allow_strtoll="yes"
44794
{ echo "$as_me:$LINENO: result: no" >&5
44795
echo "${ECHO_T}no" >&6; }
44796
tst_allow_strtoll="no"
44800
{ echo "$as_me:$LINENO: checking if strtoll might be used" >&5
44801
echo $ECHO_N "checking if strtoll might be used... $ECHO_C" >&6; }
44802
if test "$tst_links_strtoll" = "yes" &&
44803
test "$tst_proto_strtoll" = "yes" &&
44804
test "$tst_compi_strtoll" = "yes" &&
44805
test "$tst_allow_strtoll" = "yes"; then
44806
{ echo "$as_me:$LINENO: result: yes" >&5
44807
echo "${ECHO_T}yes" >&6; }
44809
cat >>confdefs.h <<_ACEOF
44810
#define HAVE_STRTOLL 1
44813
ac_cv_func_strtoll="yes"
44815
{ echo "$as_me:$LINENO: result: no" >&5
44816
echo "${ECHO_T}no" >&6; }
44817
ac_cv_func_strtoll="no"
44821
curl_includes_sys_uio="\
44822
/* includes start */
44823
#ifdef HAVE_SYS_TYPES_H
44824
# include <sys/types.h>
44826
#ifdef HAVE_SYS_UIO_H
44827
# include <sys/uio.h>
44829
/* includes end */"
44832
for ac_header in sys/types.h sys/uio.h
44834
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44835
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
44836
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
44837
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
44838
echo $ECHO_N "(cached) $ECHO_C" >&6
44840
cat >conftest.$ac_ext <<_ACEOF
44843
cat confdefs.h >>conftest.$ac_ext
44844
cat >>conftest.$ac_ext <<_ACEOF
44845
/* end confdefs.h. */
44846
$curl_includes_sys_uio
44848
#include <$ac_header>
44850
rm -f conftest.$ac_objext
44851
if { (ac_try="$ac_compile"
44852
case "(($ac_try" in
44853
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44854
*) ac_try_echo=$ac_try;;
44856
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44857
(eval "$ac_compile") 2>conftest.er1
44859
grep -v '^ *+' conftest.er1 >conftest.err
44861
cat conftest.err >&5
44862
echo "$as_me:$LINENO: \$? = $ac_status" >&5
44863
(exit $ac_status); } && {
44864
test -z "$ac_c_werror_flag" ||
44865
test ! -s conftest.err
44866
} && test -s conftest.$ac_objext; then
44867
eval "$as_ac_Header=yes"
44869
echo "$as_me: failed program was:" >&5
44870
sed 's/^/| /' conftest.$ac_ext >&5
44872
eval "$as_ac_Header=no"
44875
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44877
ac_res=`eval echo '${'$as_ac_Header'}'`
44878
{ echo "$as_me:$LINENO: result: $ac_res" >&5
44879
echo "${ECHO_T}$ac_res" >&6; }
44880
if test `eval echo '${'$as_ac_Header'}'` = yes; then
44881
cat >>confdefs.h <<_ACEOF
44882
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44892
tst_links_writev="unknown"
44893
tst_proto_writev="unknown"
44894
tst_compi_writev="unknown"
44895
tst_allow_writev="unknown"
44897
{ echo "$as_me:$LINENO: checking if writev can be linked" >&5
44898
echo $ECHO_N "checking if writev can be linked... $ECHO_C" >&6; }
44899
cat >conftest.$ac_ext <<_ACEOF
44903
cat confdefs.h >>conftest.$ac_ext
44904
cat >>conftest.$ac_ext <<_ACEOF
44905
/* end confdefs.h. */
44907
#define writev innocuous_writev
44909
# include <limits.h>
44911
# include <assert.h>
44918
#if defined __stub_writev || defined __stub___writev
44930
rm -f conftest.$ac_objext conftest$ac_exeext
44931
if { (ac_try="$ac_link"
44932
case "(($ac_try" in
44933
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44934
*) ac_try_echo=$ac_try;;
44936
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44937
(eval "$ac_link") 2>conftest.er1
44939
grep -v '^ *+' conftest.er1 >conftest.err
44941
cat conftest.err >&5
44942
echo "$as_me:$LINENO: \$? = $ac_status" >&5
44943
(exit $ac_status); } && {
44944
test -z "$ac_c_werror_flag" ||
44945
test ! -s conftest.err
44946
} && test -s conftest$ac_exeext &&
44947
$as_test_x conftest$ac_exeext; then
44949
{ echo "$as_me:$LINENO: result: yes" >&5
44950
echo "${ECHO_T}yes" >&6; }
44951
tst_links_writev="yes"
44954
echo "$as_me: failed program was:" >&5
44955
sed 's/^/| /' conftest.$ac_ext >&5
44958
{ echo "$as_me:$LINENO: result: no" >&5
44959
echo "${ECHO_T}no" >&6; }
44960
tst_links_writev="no"
44964
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44965
conftest$ac_exeext conftest.$ac_ext
44967
if test "$tst_links_writev" = "yes"; then
44968
{ echo "$as_me:$LINENO: checking if writev is prototyped" >&5
44969
echo $ECHO_N "checking if writev is prototyped... $ECHO_C" >&6; }
44970
cat >conftest.$ac_ext <<_ACEOF
44973
cat confdefs.h >>conftest.$ac_ext
44974
cat >>conftest.$ac_ext <<_ACEOF
44975
/* end confdefs.h. */
44977
$curl_includes_sys_uio
44980
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44981
$EGREP "writev" >/dev/null 2>&1; then
44983
{ echo "$as_me:$LINENO: result: yes" >&5
44984
echo "${ECHO_T}yes" >&6; }
44985
tst_proto_writev="yes"
44989
{ echo "$as_me:$LINENO: result: no" >&5
44990
echo "${ECHO_T}no" >&6; }
44991
tst_proto_writev="no"
44998
if test "$tst_proto_writev" = "yes"; then
44999
{ echo "$as_me:$LINENO: checking if writev is compilable" >&5
45000
echo $ECHO_N "checking if writev is compilable... $ECHO_C" >&6; }
45001
cat >conftest.$ac_ext <<_ACEOF
45005
cat confdefs.h >>conftest.$ac_ext
45006
cat >>conftest.$ac_ext <<_ACEOF
45007
/* end confdefs.h. */
45009
$curl_includes_sys_uio
45014
if(0 != writev(0, 0, 0))
45022
rm -f conftest.$ac_objext
45023
if { (ac_try="$ac_compile"
45024
case "(($ac_try" in
45025
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45026
*) ac_try_echo=$ac_try;;
45028
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45029
(eval "$ac_compile") 2>conftest.er1
45031
grep -v '^ *+' conftest.er1 >conftest.err
45033
cat conftest.err >&5
45034
echo "$as_me:$LINENO: \$? = $ac_status" >&5
45035
(exit $ac_status); } && {
45036
test -z "$ac_c_werror_flag" ||
45037
test ! -s conftest.err
45038
} && test -s conftest.$ac_objext; then
45040
{ echo "$as_me:$LINENO: result: yes" >&5
45041
echo "${ECHO_T}yes" >&6; }
45042
tst_compi_writev="yes"
45045
echo "$as_me: failed program was:" >&5
45046
sed 's/^/| /' conftest.$ac_ext >&5
45049
{ echo "$as_me:$LINENO: result: no" >&5
45050
echo "${ECHO_T}no" >&6; }
45051
tst_compi_writev="no"
45055
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45058
if test "$tst_compi_writev" = "yes"; then
45059
{ echo "$as_me:$LINENO: checking if writev usage allowed" >&5
45060
echo $ECHO_N "checking if writev usage allowed... $ECHO_C" >&6; }
45061
if test "x$curl_disallow_writev" != "xyes"; then
45062
{ echo "$as_me:$LINENO: result: yes" >&5
45063
echo "${ECHO_T}yes" >&6; }
45064
tst_allow_writev="yes"
45066
{ echo "$as_me:$LINENO: result: no" >&5
45067
echo "${ECHO_T}no" >&6; }
45068
tst_allow_writev="no"
45072
{ echo "$as_me:$LINENO: checking if writev might be used" >&5
45073
echo $ECHO_N "checking if writev might be used... $ECHO_C" >&6; }
45074
if test "$tst_links_writev" = "yes" &&
45075
test "$tst_proto_writev" = "yes" &&
45076
test "$tst_compi_writev" = "yes" &&
45077
test "$tst_allow_writev" = "yes"; then
45078
{ echo "$as_me:$LINENO: result: yes" >&5
45079
echo "${ECHO_T}yes" >&6; }
45081
cat >>confdefs.h <<_ACEOF
45082
#define HAVE_WRITEV 1
45085
ac_cv_func_writev="yes"
45087
{ echo "$as_me:$LINENO: result: no" >&5
45088
echo "${ECHO_T}no" >&6; }
45089
ac_cv_func_writev="no"
37269
45094
case $host in
37271
45096
ac_cv_func_pipe=no