2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.65 for aria2 1.10.0.
5
# Report bugs to <t-tujikawa@users.sourceforge.net>.
8
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
13
# This configure script is free software; the Free Software Foundation
14
# gives unlimited permission to copy, distribute and modify it.
15
## -------------------- ##
16
## M4sh Initialization. ##
17
## -------------------- ##
19
# Be more Bourne compatible
20
DUALCASE=1; export DUALCASE # for MKS sh
21
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25
# is contrary to our usage. Disable this feature.
26
alias -g '${1+"$@"}'='"$@"'
29
case `(set -o) 2>/dev/null` in #(
41
# Printing a long string crashes Solaris 7 /usr/bin/printf.
42
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45
# Prefer a ksh shell builtin over an external printf program on Solaris,
46
# but without wasting forks for bash or zsh.
47
if test -z "$BASH_VERSION$ZSH_VERSION" \
48
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50
as_echo_n='print -rn --'
51
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57
as_echo_n='/usr/ucb/echo -n'
59
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64
expr "X$arg" : "X\\(.*\\)$as_nl";
65
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70
as_echo_n='sh -c $as_echo_n_body as_echo'
73
as_echo='sh -c $as_echo_body as_echo'
76
# The user is always right.
77
if test "${PATH_SEPARATOR+set}" != set; then
79
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87
# We need space, tab and new line, in precisely that order. Quoting is
88
# there to prevent editors from complaining about space-tab.
89
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90
# splitting by setting IFS to empty value.)
93
# Find who we are. Look in the path if we contain no directory separator.
95
*[\\/]* ) as_myself=$0 ;;
96
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100
test -z "$as_dir" && as_dir=.
101
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107
# We did not find ourselves, most probably we were run as `sh COMMAND'
108
# in which case we are not to be found in the path.
109
if test "x$as_myself" = x; then
112
if test ! -f "$as_myself"; then
113
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117
# Unset variables that we do not need and which cause bugs (e.g. in
118
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119
# suppresses any "Segmentation fault" message there. '((' could
120
# trigger a bug in pdksh 5.2.14.
121
for as_var in BASH_ENV ENV MAIL MAILPATH
122
do eval test x\${$as_var+set} = xset \
123
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
136
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
if test "x$CONFIG_SHELL" = x; then
139
as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
142
# Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143
# is contrary to our usage. Disable this feature.
144
alias -g '\${1+\"\$@\"}'='\"\$@\"'
147
case \`(set -o) 2>/dev/null\` in #(
155
as_required="as_fn_return () { (exit \$1); }
156
as_fn_success () { as_fn_return 0; }
157
as_fn_failure () { as_fn_return 1; }
158
as_fn_ret_success () { return 0; }
159
as_fn_ret_failure () { return 1; }
162
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
169
exitcode=1; echo positional parameters were not saved.
171
test x\$exitcode = x0 || exit 1"
172
as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173
as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174
eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175
test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176
test \$(( 1 + 1 )) = 2 || exit 1"
177
if (eval "$as_required") 2>/dev/null; then :
182
if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
185
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
190
test -z "$as_dir" && as_dir=.
194
for as_base in sh bash ksh sh5; do
195
# Try only shells that exist, to save several forks.
196
as_shell=$as_dir/$as_base
197
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199
CONFIG_SHELL=$as_shell as_have_required=yes
200
if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
208
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210
CONFIG_SHELL=$SHELL as_have_required=yes
215
if test "x$CONFIG_SHELL" != x; then :
216
# We cannot yet assume a decent shell, so we have to provide a
217
# neutralization value for shells without unset; and this also
218
# works around shells that cannot unset nonexistent variables.
221
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
223
exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
226
if test x$as_have_required = xno; then :
227
$as_echo "$0: This script requires a shell more modern than all"
228
$as_echo "$0: the shells that I found on your system."
229
if test x${ZSH_VERSION+set} = xset ; then
230
$as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231
$as_echo "$0: be upgraded to zsh 4.3.4 or later."
233
$as_echo "$0: Please tell bug-autoconf@gnu.org and
234
$0: t-tujikawa@users.sourceforge.net about your system,
235
$0: including any error possibly output before this
236
$0: message. Then install a modern shell, or manually run
237
$0: the script under such a shell if you do have one."
243
SHELL=${CONFIG_SHELL-/bin/sh}
245
# Unset more variables known to interfere with behavior of common tools.
246
CLICOLOR_FORCE= GREP_OPTIONS=
247
unset CLICOLOR_FORCE GREP_OPTIONS
249
## --------------------- ##
250
## M4sh Shell Functions. ##
251
## --------------------- ##
254
# Portably unset VAR.
257
{ eval $1=; unset $1;}
261
# as_fn_set_status STATUS
262
# -----------------------
263
# Set $? to STATUS, without forking.
271
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281
# Create "$as_dir" as a directory, including parents if necessary.
286
-*) as_dir=./$as_dir;;
288
test -d "$as_dir" || eval $as_mkdir_p || {
292
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
295
as_dirs="'$as_qdir' $as_dirs"
296
as_dir=`$as_dirname -- "$as_dir" ||
297
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298
X"$as_dir" : 'X\(//\)[^/]' \| \
299
X"$as_dir" : 'X\(//\)$' \| \
300
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301
$as_echo X"$as_dir" |
302
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319
test -d "$as_dir" && break
321
test -z "$as_dirs" || eval "mkdir $as_dirs"
322
} || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
# as_fn_append VAR VALUE
327
# ----------------------
328
# Append the text in VALUE to the end of the definition contained in VAR. Take
329
# advantage of any shell optimizations that allow amortized linear growth over
330
# repeated appends, instead of the typical quadratic growth present in naive
332
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333
eval 'as_fn_append ()
346
# Perform arithmetic evaluation on the ARGs, and store the result in the
347
# global $as_val. Take advantage of shells that can avoid forks. The arguments
348
# must be portable across $(()) and expr.
349
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
357
as_val=`expr "$@" || test $? -eq 1`
362
# as_fn_error ERROR [LINENO LOG_FD]
363
# ---------------------------------
364
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366
# script with status $?, using 1 if that was 0.
369
as_status=$?; test $as_status -eq 0 && as_status=1
371
as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372
$as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
374
$as_echo "$as_me: error: $1" >&2
375
as_fn_exit $as_status
378
if expr a : '\(a\)' >/dev/null 2>&1 &&
379
test "X`expr 00001 : '.*\(...\)'`" = X001; then
385
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397
as_me=`$as_basename -- "$0" ||
398
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399
X"$0" : 'X\(//\)$' \| \
400
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
402
sed '/^.*\/\([^/][^/]*\)\/*$/{
416
# Avoid depending upon Character Ranges.
417
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420
as_cr_digits='0123456789'
421
as_cr_alnum=$as_cr_Letters$as_cr_digits
424
as_lineno_1=$LINENO as_lineno_1a=$LINENO
425
as_lineno_2=$LINENO as_lineno_2a=$LINENO
426
eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427
test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428
# Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
440
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444
chmod +x "$as_me.lineno" ||
445
{ $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
447
# Don't try to exec as it changes $[0], causing all sort of problems
448
# (the dirname of $[0] is not the place where we might find the
449
# original and so on. Autoconf is especially sensitive to this).
451
# Exit status is that of the last command.
455
ECHO_C= ECHO_N= ECHO_T=
456
case `echo -n x` in #(((((
458
case `echo 'xy\c'` in
459
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
461
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null
468
rm -f conf$$ conf$$.exe conf$$.file
469
if test -d conf$$.dir; then
470
rm -f conf$$.dir/conf$$.file
473
mkdir conf$$.dir 2>/dev/null
475
if (echo >conf$$.file) 2>/dev/null; then
476
if ln -s conf$$.file conf$$ 2>/dev/null; then
478
# ... but there are two gotchas:
479
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481
# In both cases, we have to default to `cp -p'.
482
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
484
elif ln conf$$.file conf$$ 2>/dev/null; then
492
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493
rmdir conf$$.dir 2>/dev/null
495
if mkdir -p . 2>/dev/null; then
496
as_mkdir_p='mkdir -p "$as_dir"'
498
test -d ./-p && rmdir ./-p
502
if test -x / >/dev/null 2>&1; then
505
if ls -dL / >/dev/null 2>&1; then
512
if test -d "$1"; then
518
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519
???[sx]*):;;*)false;;esac;fi
523
as_executable_p=$as_test_x
525
# Sed expression to map a string onto a valid CPP name.
526
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
528
# Sed expression to map a string onto a valid variable name.
529
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
532
test -n "$DJDIR" || exec 7<&0 </dev/null
536
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
537
# so uname gets run too.
538
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
ac_default_prefix=/usr/local
545
ac_config_libobj_dir=.
552
# Identity of this package.
554
PACKAGE_TARNAME='aria2'
555
PACKAGE_VERSION='1.10.0'
556
PACKAGE_STRING='aria2 1.10.0'
557
PACKAGE_BUGREPORT='t-tujikawa@users.sourceforge.net'
558
PACKAGE_URL='http://aria2.sourceforge.net/'
560
ac_unique_file="src/a2io.h"
561
# Factoring default headers for most tests.
562
ac_includes_default="\
564
#ifdef HAVE_SYS_TYPES_H
565
# include <sys/types.h>
567
#ifdef HAVE_SYS_STAT_H
568
# include <sys/stat.h>
574
# ifdef HAVE_STDLIB_H
579
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584
#ifdef HAVE_STRINGS_H
585
# include <strings.h>
587
#ifdef HAVE_INTTYPES_H
588
# include <inttypes.h>
600
ac_subst_vars='am__EXEEXT_FALSE
605
HAVE_PORT_ASSOCIATE_FALSE
606
HAVE_PORT_ASSOCIATE_TRUE
607
HAVE_TIMEGETTIME_FALSE
608
HAVE_TIMEGETTIME_TRUE
611
HAVE_MACH_ABSOLUTE_TIME_FALSE
612
HAVE_MACH_ABSOLUTE_TIME_TRUE
619
HAVE_LOCALTIME_R_FALSE
620
HAVE_LOCALTIME_R_TRUE
623
HAVE_GETTIMEOFDAY_FALSE
624
HAVE_GETTIMEOFDAY_TRUE
625
HAVE_GETADDRINFO_FALSE
626
HAVE_GETADDRINFO_TRUE
627
HAVE_GAI_STRERROR_FALSE
628
HAVE_GAI_STRERROR_TRUE
633
HAVE_SOME_FALLOCATE_FALSE
634
HAVE_SOME_FALLOCATE_TRUE
643
INTL_LIBTOOL_SUFFIX_PREFIX
650
BUILD_INCLUDED_LIBINTL
675
XGETTEXT_EXTRA_OPTIONS
683
GETTEXT_MACRO_VERSION
690
ENABLE_ASYNC_DNS_FALSE
691
ENABLE_ASYNC_DNS_TRUE
698
ENABLE_METALINK_LIBEXPAT_FALSE
699
ENABLE_METALINK_LIBEXPAT_TRUE
700
ENABLE_METALINK_LIBXML2_FALSE
701
ENABLE_METALINK_LIBXML2_TRUE
702
ENABLE_METALINK_FALSE
704
ENABLE_BITTORRENT_FALSE
705
ENABLE_BITTORRENT_TRUE
706
ENABLE_MESSAGE_DIGEST_FALSE
707
ENABLE_MESSAGE_DIGEST_TRUE
777
INSTALL_STRIP_PROGRAM
831
program_transform_name
844
enable_option_checking
846
with_cppunit_exec_prefix
858
enable_dependency_tracking
864
with_libgnutls_prefix
865
with_libgcrypt_prefix
876
with_included_gettext
879
ac_precious_vars='build_alias
902
# Initialize some variables set by options.
904
ac_init_version=false
905
ac_unrecognized_opts=
907
# The variables have the same names as the options, with
908
# dashes changed to underlines.
916
program_transform_name=s,x,x,
924
# Installation directory options.
925
# These are left unexpanded so users can "make install exec_prefix=/foo"
926
# and all the variables that are supposed to be based on exec_prefix
927
# by default will actually change.
928
# Use braces instead of parens because sh, perl, etc. also accept them.
929
# (The list follows the same order as the GNU Coding Standards.)
930
bindir='${exec_prefix}/bin'
931
sbindir='${exec_prefix}/sbin'
932
libexecdir='${exec_prefix}/libexec'
933
datarootdir='${prefix}/share'
934
datadir='${datarootdir}'
935
sysconfdir='${prefix}/etc'
936
sharedstatedir='${prefix}/com'
937
localstatedir='${prefix}/var'
938
includedir='${prefix}/include'
939
oldincludedir='/usr/include'
940
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
941
infodir='${datarootdir}/info'
946
libdir='${exec_prefix}/lib'
947
localedir='${datarootdir}/locale'
948
mandir='${datarootdir}/man'
954
# If the previous option needs an argument, assign it.
955
if test -n "$ac_prev"; then
956
eval $ac_prev=\$ac_option
962
*=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
966
# Accept the important Cygnus configure options, so we can diagnose typos.
968
case $ac_dashdash$ac_option in
972
-bindir | --bindir | --bindi | --bind | --bin | --bi)
974
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
977
-build | --build | --buil | --bui | --bu)
978
ac_prev=build_alias ;;
979
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
980
build_alias=$ac_optarg ;;
982
-cache-file | --cache-file | --cache-fil | --cache-fi \
983
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
984
ac_prev=cache_file ;;
985
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
986
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
987
cache_file=$ac_optarg ;;
990
cache_file=config.cache ;;
992
-datadir | --datadir | --datadi | --datad)
994
-datadir=* | --datadir=* | --datadi=* | --datad=*)
995
datadir=$ac_optarg ;;
997
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
998
| --dataroo | --dataro | --datar)
999
ac_prev=datarootdir ;;
1000
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1001
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1002
datarootdir=$ac_optarg ;;
1004
-disable-* | --disable-*)
1005
ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1006
# Reject names that are not valid shell variable names.
1007
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1008
as_fn_error "invalid feature name: $ac_useropt"
1009
ac_useropt_orig=$ac_useropt
1010
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1011
case $ac_user_opts in
1013
"enable_$ac_useropt"
1015
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1016
ac_unrecognized_sep=', ';;
1018
eval enable_$ac_useropt=no ;;
1020
-docdir | --docdir | --docdi | --doc | --do)
1022
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1023
docdir=$ac_optarg ;;
1025
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1027
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1028
dvidir=$ac_optarg ;;
1030
-enable-* | --enable-*)
1031
ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1032
# Reject names that are not valid shell variable names.
1033
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1034
as_fn_error "invalid feature name: $ac_useropt"
1035
ac_useropt_orig=$ac_useropt
1036
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1037
case $ac_user_opts in
1039
"enable_$ac_useropt"
1041
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1042
ac_unrecognized_sep=', ';;
1044
eval enable_$ac_useropt=\$ac_optarg ;;
1046
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1047
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1048
| --exec | --exe | --ex)
1049
ac_prev=exec_prefix ;;
1050
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1051
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1052
| --exec=* | --exe=* | --ex=*)
1053
exec_prefix=$ac_optarg ;;
1055
-gas | --gas | --ga | --g)
1056
# Obsolete; use --with-gas.
1059
-help | --help | --hel | --he | -h)
1060
ac_init_help=long ;;
1061
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1062
ac_init_help=recursive ;;
1063
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1064
ac_init_help=short ;;
1066
-host | --host | --hos | --ho)
1067
ac_prev=host_alias ;;
1068
-host=* | --host=* | --hos=* | --ho=*)
1069
host_alias=$ac_optarg ;;
1071
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1073
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1075
htmldir=$ac_optarg ;;
1077
-includedir | --includedir | --includedi | --included | --include \
1078
| --includ | --inclu | --incl | --inc)
1079
ac_prev=includedir ;;
1080
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1081
| --includ=* | --inclu=* | --incl=* | --inc=*)
1082
includedir=$ac_optarg ;;
1084
-infodir | --infodir | --infodi | --infod | --info | --inf)
1086
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1087
infodir=$ac_optarg ;;
1089
-libdir | --libdir | --libdi | --libd)
1091
-libdir=* | --libdir=* | --libdi=* | --libd=*)
1092
libdir=$ac_optarg ;;
1094
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1095
| --libexe | --libex | --libe)
1096
ac_prev=libexecdir ;;
1097
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1098
| --libexe=* | --libex=* | --libe=*)
1099
libexecdir=$ac_optarg ;;
1101
-localedir | --localedir | --localedi | --localed | --locale)
1102
ac_prev=localedir ;;
1103
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1104
localedir=$ac_optarg ;;
1106
-localstatedir | --localstatedir | --localstatedi | --localstated \
1107
| --localstate | --localstat | --localsta | --localst | --locals)
1108
ac_prev=localstatedir ;;
1109
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1110
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1111
localstatedir=$ac_optarg ;;
1113
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1115
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1116
mandir=$ac_optarg ;;
1118
-nfp | --nfp | --nf)
1119
# Obsolete; use --without-fp.
1122
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
1123
| --no-cr | --no-c | -n)
1126
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
1127
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1130
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1131
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1132
| --oldin | --oldi | --old | --ol | --o)
1133
ac_prev=oldincludedir ;;
1134
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1135
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1136
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1137
oldincludedir=$ac_optarg ;;
1139
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1141
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1142
prefix=$ac_optarg ;;
1144
-program-prefix | --program-prefix | --program-prefi | --program-pref \
1145
| --program-pre | --program-pr | --program-p)
1146
ac_prev=program_prefix ;;
1147
-program-prefix=* | --program-prefix=* | --program-prefi=* \
1148
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1149
program_prefix=$ac_optarg ;;
1151
-program-suffix | --program-suffix | --program-suffi | --program-suff \
1152
| --program-suf | --program-su | --program-s)
1153
ac_prev=program_suffix ;;
1154
-program-suffix=* | --program-suffix=* | --program-suffi=* \
1155
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1156
program_suffix=$ac_optarg ;;
1158
-program-transform-name | --program-transform-name \
1159
| --program-transform-nam | --program-transform-na \
1160
| --program-transform-n | --program-transform- \
1161
| --program-transform | --program-transfor \
1162
| --program-transfo | --program-transf \
1163
| --program-trans | --program-tran \
1164
| --progr-tra | --program-tr | --program-t)
1165
ac_prev=program_transform_name ;;
1166
-program-transform-name=* | --program-transform-name=* \
1167
| --program-transform-nam=* | --program-transform-na=* \
1168
| --program-transform-n=* | --program-transform-=* \
1169
| --program-transform=* | --program-transfor=* \
1170
| --program-transfo=* | --program-transf=* \
1171
| --program-trans=* | --program-tran=* \
1172
| --progr-tra=* | --program-tr=* | --program-t=*)
1173
program_transform_name=$ac_optarg ;;
1175
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1177
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1178
pdfdir=$ac_optarg ;;
1180
-psdir | --psdir | --psdi | --psd | --ps)
1182
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1185
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1186
| -silent | --silent | --silen | --sile | --sil)
1189
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1191
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1193
sbindir=$ac_optarg ;;
1195
-sharedstatedir | --sharedstatedir | --sharedstatedi \
1196
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1197
| --sharedst | --shareds | --shared | --share | --shar \
1199
ac_prev=sharedstatedir ;;
1200
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1201
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1202
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1204
sharedstatedir=$ac_optarg ;;
1206
-site | --site | --sit)
1208
-site=* | --site=* | --sit=*)
1211
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1213
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1214
srcdir=$ac_optarg ;;
1216
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1217
| --syscon | --sysco | --sysc | --sys | --sy)
1218
ac_prev=sysconfdir ;;
1219
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1220
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1221
sysconfdir=$ac_optarg ;;
1223
-target | --target | --targe | --targ | --tar | --ta | --t)
1224
ac_prev=target_alias ;;
1225
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1226
target_alias=$ac_optarg ;;
1228
-v | -verbose | --verbose | --verbos | --verbo | --verb)
1231
-version | --version | --versio | --versi | --vers | -V)
1232
ac_init_version=: ;;
1235
ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1236
# Reject names that are not valid shell variable names.
1237
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1238
as_fn_error "invalid package name: $ac_useropt"
1239
ac_useropt_orig=$ac_useropt
1240
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1241
case $ac_user_opts in
1245
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1246
ac_unrecognized_sep=', ';;
1248
eval with_$ac_useropt=\$ac_optarg ;;
1250
-without-* | --without-*)
1251
ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1252
# Reject names that are not valid shell variable names.
1253
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1254
as_fn_error "invalid package name: $ac_useropt"
1255
ac_useropt_orig=$ac_useropt
1256
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1257
case $ac_user_opts in
1261
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1262
ac_unrecognized_sep=', ';;
1264
eval with_$ac_useropt=no ;;
1267
# Obsolete; use --with-x.
1270
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1271
| --x-incl | --x-inc | --x-in | --x-i)
1272
ac_prev=x_includes ;;
1273
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1274
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1275
x_includes=$ac_optarg ;;
1277
-x-libraries | --x-libraries | --x-librarie | --x-librari \
1278
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1279
ac_prev=x_libraries ;;
1280
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1281
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1282
x_libraries=$ac_optarg ;;
1284
-*) as_fn_error "unrecognized option: \`$ac_option'
1285
Try \`$0 --help' for more information."
1289
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1290
# Reject names that are not valid shell variable names.
1291
case $ac_envvar in #(
1292
'' | [0-9]* | *[!_$as_cr_alnum]* )
1293
as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1295
eval $ac_envvar=\$ac_optarg
1296
export $ac_envvar ;;
1299
# FIXME: should be removed in autoconf 3.0.
1300
$as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1301
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1302
$as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1303
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1309
if test -n "$ac_prev"; then
1310
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1311
as_fn_error "missing argument to $ac_option"
1314
if test -n "$ac_unrecognized_opts"; then
1315
case $enable_option_checking in
1317
fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1318
*) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1322
# Check all directory arguments for consistency.
1323
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1324
datadir sysconfdir sharedstatedir localstatedir includedir \
1325
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1326
libdir localedir mandir
1328
eval ac_val=\$$ac_var
1329
# Remove trailing slashes.
1332
ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1333
eval $ac_var=\$ac_val;;
1335
# Be sure to have absolute directory names.
1337
[\\/$]* | ?:[\\/]* ) continue;;
1338
NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1340
as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1343
# There might be people who depend on the old broken behavior: `$host'
1344
# used to hold the argument of --host etc.
1345
# FIXME: To remove some day.
1348
target=$target_alias
1350
# FIXME: To remove some day.
1351
if test "x$host_alias" != x; then
1352
if test "x$build_alias" = x; then
1353
cross_compiling=maybe
1354
$as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1355
If a cross compiler is detected then cross compile mode will be used." >&2
1356
elif test "x$build_alias" != "x$host_alias"; then
1362
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1364
test "$silent" = yes && exec 6>/dev/null
1367
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1368
ac_ls_di=`ls -di .` &&
1369
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1370
as_fn_error "working directory cannot be determined"
1371
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1372
as_fn_error "pwd does not report name of working directory"
1375
# Find the source files, if location was not specified.
1376
if test -z "$srcdir"; then
1377
ac_srcdir_defaulted=yes
1378
# Try the directory containing this script, then the parent directory.
1379
ac_confdir=`$as_dirname -- "$as_myself" ||
1380
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1381
X"$as_myself" : 'X\(//\)[^/]' \| \
1382
X"$as_myself" : 'X\(//\)$' \| \
1383
X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1384
$as_echo X"$as_myself" |
1385
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1403
if test ! -r "$srcdir/$ac_unique_file"; then
1407
ac_srcdir_defaulted=no
1409
if test ! -r "$srcdir/$ac_unique_file"; then
1410
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1411
as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1413
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1415
cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1417
# When building in place, set srcdir=.
1418
if test "$ac_abs_confdir" = "$ac_pwd"; then
1421
# Remove unnecessary trailing slashes from srcdir.
1422
# Double slashes in file names in object file debugging info
1423
# mess up M-x gdb in Emacs.
1425
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1427
for ac_var in $ac_precious_vars; do
1428
eval ac_env_${ac_var}_set=\${${ac_var}+set}
1429
eval ac_env_${ac_var}_value=\$${ac_var}
1430
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1431
eval ac_cv_env_${ac_var}_value=\$${ac_var}
1435
# Report the --help message.
1437
if test "$ac_init_help" = "long"; then
1438
# Omit some internal or obsolete options to make the list less imposing.
1439
# This message is too long to be a string in the A/UX 3.1 sh.
1441
\`configure' configures aria2 1.10.0 to adapt to many kinds of systems.
1443
Usage: $0 [OPTION]... [VAR=VALUE]...
1445
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1446
VAR=VALUE. See below for descriptions of some of the useful variables.
1448
Defaults for the options are specified in brackets.
1451
-h, --help display this help and exit
1452
--help=short display options specific to this package
1453
--help=recursive display the short help of all the included packages
1454
-V, --version display version information and exit
1455
-q, --quiet, --silent do not print \`checking...' messages
1456
--cache-file=FILE cache test results in FILE [disabled]
1457
-C, --config-cache alias for \`--cache-file=config.cache'
1458
-n, --no-create do not create output files
1459
--srcdir=DIR find the sources in DIR [configure dir or \`..']
1461
Installation directories:
1462
--prefix=PREFIX install architecture-independent files in PREFIX
1463
[$ac_default_prefix]
1464
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1467
By default, \`make install' will install all the files in
1468
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1469
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1470
for instance \`--prefix=\$HOME'.
1472
For better control, use the options below.
1474
Fine tuning of the installation directories:
1475
--bindir=DIR user executables [EPREFIX/bin]
1476
--sbindir=DIR system admin executables [EPREFIX/sbin]
1477
--libexecdir=DIR program executables [EPREFIX/libexec]
1478
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1479
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1480
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1481
--libdir=DIR object code libraries [EPREFIX/lib]
1482
--includedir=DIR C header files [PREFIX/include]
1483
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1484
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1485
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1486
--infodir=DIR info documentation [DATAROOTDIR/info]
1487
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1488
--mandir=DIR man documentation [DATAROOTDIR/man]
1489
--docdir=DIR documentation root [DATAROOTDIR/doc/aria2]
1490
--htmldir=DIR html documentation [DOCDIR]
1491
--dvidir=DIR dvi documentation [DOCDIR]
1492
--pdfdir=DIR pdf documentation [DOCDIR]
1493
--psdir=DIR ps documentation [DOCDIR]
1499
--program-prefix=PREFIX prepend PREFIX to installed program names
1500
--program-suffix=SUFFIX append SUFFIX to installed program names
1501
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
1504
--build=BUILD configure for building on BUILD [guessed]
1505
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1506
--target=TARGET configure for building compilers for TARGET [HOST]
1510
if test -n "$ac_init_help"; then
1511
case $ac_init_help in
1512
short | recursive ) echo "Configuration of aria2 1.10.0:";;
1517
--disable-option-checking ignore unrecognized --enable/--with options
1518
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1519
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1520
--enable-bittorrent Enable bittorrent support.
1521
--enable-metalink Enable metalink support.
1522
--enable-epoll Enable epoll support.
1523
--disable-dependency-tracking speeds up one-time build
1524
--enable-dependency-tracking do not reject slow dependency extractors
1525
--disable-xmltest Do not try to compile and run a test LIBXML program
1526
--disable-largefile omit support for large files
1527
--disable-nls do not use Native Language Support
1528
--enable-threads={posix|solaris|pth|win32}
1529
specify multithreading API
1530
--disable-threads build without multithread safety
1531
--disable-rpath do not hardcode runtime library paths
1534
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1535
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1536
--with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1537
--with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1538
--with-gnutls Use gnutls if it is installed.
1539
--with-openssl Use openssl if it is installed.
1540
--with-sqlite3 Use sqlite3 if it is installed.
1541
--with-libxml2 Use libxml2 if it is installed.
1542
--with-libexpat Use libexpat if it is installed.
1543
--with-libcares Use libcares if it is installed.
1544
--with-libz Use libz if it is installed.
1545
--with-ca-bundle=FILE Use FILE as default CA bundle.
1546
--with-xml-prefix=PFX Prefix where libxml is installed (optional)
1547
--with-xml-exec-prefix=PFX Exec prefix where libxml is installed (optional)
1548
--with-libexpat-prefix=PREFIX Prefix where libexpat installed (optional)
1549
--with-sqlite3-prefix=PREFIX Prefix where SQLite3 installed (optional)
1550
--with-libgnutls-prefix=PFX Prefix where libgnutls is installed (optional)
1551
--with-libgcrypt-prefix=PFX
1552
prefix where LIBGCRYPT is installed (optional)
1553
--with-openssl-prefix=PREFIX Prefix where OpenSSL installed (optional)
1554
--with-libcares-prefix=PREFIX Prefix where libcares installed (optional)
1555
--with-libz-prefix=PREFIX Prefix where libz installed (optional)
1556
--with-gnu-ld assume the C compiler uses GNU ld default=no
1557
--with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
1558
--without-libpth-prefix don't search for libpth in includedir and libdir
1559
--with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1560
--without-libiconv-prefix don't search for libiconv in includedir and libdir
1561
--with-included-gettext use the GNU gettext library included here
1562
--with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1563
--without-libintl-prefix don't search for libintl in includedir and libdir
1565
Some influential environment variables:
1566
CXX C++ compiler command
1567
CXXFLAGS C++ compiler flags
1568
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1569
nonstandard directory <lib dir>
1570
LIBS libraries to pass to the linker, e.g. -l<library>
1571
CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1572
you have headers in a nonstandard directory <include dir>
1573
CC C compiler command
1574
CFLAGS C compiler flags
1575
YACC The `Yet Another C Compiler' implementation to use. Defaults to
1576
the first program found out of: `bison -y', `byacc', `yacc'.
1577
YFLAGS The list of arguments that will be passed by default to $YACC.
1578
This script will default YFLAGS to the empty string to avoid a
1579
default value of `-d' given by some make applications.
1580
CXXCPP C++ preprocessor
1581
PKG_CONFIG path to pkg-config utility
1583
directories to add to pkg-config's search path
1585
path overriding pkg-config's built-in search path
1587
C compiler flags for SQLITE3, overriding pkg-config
1589
linker flags for SQLITE3, overriding pkg-config
1591
C compiler flags for LIBGNUTLS, overriding pkg-config
1593
linker flags for LIBGNUTLS, overriding pkg-config
1595
Use these variables to override the choices made by `configure' or to help
1596
it to find libraries and programs with nonstandard names/locations.
1598
Report bugs to <t-tujikawa@users.sourceforge.net>.
1599
aria2 home page: <http://aria2.sourceforge.net/>.
1604
if test "$ac_init_help" = "recursive"; then
1605
# If there are subdirs, report their specific --help.
1606
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1607
test -d "$ac_dir" ||
1608
{ cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1613
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1615
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1616
# A ".." for each directory in $ac_dir_suffix.
1617
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1618
case $ac_top_builddir_sub in
1619
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1620
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1623
ac_abs_top_builddir=$ac_pwd
1624
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1625
# for backward compatibility:
1626
ac_top_builddir=$ac_top_build_prefix
1629
.) # We are building in place.
1631
ac_top_srcdir=$ac_top_builddir_sub
1632
ac_abs_top_srcdir=$ac_pwd ;;
1633
[\\/]* | ?:[\\/]* ) # Absolute name.
1634
ac_srcdir=$srcdir$ac_dir_suffix;
1635
ac_top_srcdir=$srcdir
1636
ac_abs_top_srcdir=$srcdir ;;
1638
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1639
ac_top_srcdir=$ac_top_build_prefix$srcdir
1640
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1642
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1644
cd "$ac_dir" || { ac_status=$?; continue; }
1645
# Check for guested configure.
1646
if test -f "$ac_srcdir/configure.gnu"; then
1648
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
1649
elif test -f "$ac_srcdir/configure"; then
1651
$SHELL "$ac_srcdir/configure" --help=recursive
1653
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1655
cd "$ac_pwd" || { ac_status=$?; break; }
1659
test -n "$ac_init_help" && exit $ac_status
1660
if $ac_init_version; then
1662
aria2 configure 1.10.0
1663
generated by GNU Autoconf 2.65
1665
Copyright (C) 2009 Free Software Foundation, Inc.
1666
This configure script is free software; the Free Software Foundation
1667
gives unlimited permission to copy, distribute and modify it.
1672
## ------------------------ ##
1673
## Autoconf initialization. ##
1674
## ------------------------ ##
1676
# ac_fn_cxx_try_compile LINENO
1677
# ----------------------------
1678
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1679
ac_fn_cxx_try_compile ()
1681
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1682
rm -f conftest.$ac_objext
1683
if { { ac_try="$ac_compile"
1685
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1686
*) ac_try_echo=$ac_try;;
1688
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1689
$as_echo "$ac_try_echo"; } >&5
1690
(eval "$ac_compile") 2>conftest.err
1692
if test -s conftest.err; then
1693
grep -v '^ *+' conftest.err >conftest.er1
1694
cat conftest.er1 >&5
1695
mv -f conftest.er1 conftest.err
1697
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1698
test $ac_status = 0; } && {
1699
test -z "$ac_cxx_werror_flag" ||
1700
test ! -s conftest.err
1701
} && test -s conftest.$ac_objext; then :
1704
$as_echo "$as_me: failed program was:" >&5
1705
sed 's/^/| /' conftest.$ac_ext >&5
1709
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1710
as_fn_set_status $ac_retval
1712
} # ac_fn_cxx_try_compile
1714
# ac_fn_c_try_compile LINENO
1715
# --------------------------
1716
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1717
ac_fn_c_try_compile ()
1719
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1720
rm -f conftest.$ac_objext
1721
if { { ac_try="$ac_compile"
1723
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1724
*) ac_try_echo=$ac_try;;
1726
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1727
$as_echo "$ac_try_echo"; } >&5
1728
(eval "$ac_compile") 2>conftest.err
1730
if test -s conftest.err; then
1731
grep -v '^ *+' conftest.err >conftest.er1
1732
cat conftest.er1 >&5
1733
mv -f conftest.er1 conftest.err
1735
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1736
test $ac_status = 0; } && {
1737
test -z "$ac_c_werror_flag" ||
1738
test ! -s conftest.err
1739
} && test -s conftest.$ac_objext; then :
1742
$as_echo "$as_me: failed program was:" >&5
1743
sed 's/^/| /' conftest.$ac_ext >&5
1747
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1748
as_fn_set_status $ac_retval
1750
} # ac_fn_c_try_compile
1752
# ac_fn_cxx_try_cpp LINENO
1753
# ------------------------
1754
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1755
ac_fn_cxx_try_cpp ()
1757
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1758
if { { ac_try="$ac_cpp conftest.$ac_ext"
1760
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1761
*) ac_try_echo=$ac_try;;
1763
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1764
$as_echo "$ac_try_echo"; } >&5
1765
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1767
if test -s conftest.err; then
1768
grep -v '^ *+' conftest.err >conftest.er1
1769
cat conftest.er1 >&5
1770
mv -f conftest.er1 conftest.err
1772
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1773
test $ac_status = 0; } >/dev/null && {
1774
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1775
test ! -s conftest.err
1779
$as_echo "$as_me: failed program was:" >&5
1780
sed 's/^/| /' conftest.$ac_ext >&5
1784
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1785
as_fn_set_status $ac_retval
1787
} # ac_fn_cxx_try_cpp
1789
# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1790
# ---------------------------------------------------------
1791
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1792
# the include files in INCLUDES and setting the cache variable VAR
1794
ac_fn_cxx_check_header_mongrel ()
1796
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1797
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1798
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1799
$as_echo_n "checking for $2... " >&6; }
1800
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1801
$as_echo_n "(cached) " >&6
1804
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1805
$as_echo "$ac_res" >&6; }
1807
# Is the header compilable?
1808
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1809
$as_echo_n "checking $2 usability... " >&6; }
1810
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1811
/* end confdefs.h. */
1815
if ac_fn_cxx_try_compile "$LINENO"; then :
1816
ac_header_compiler=yes
1818
ac_header_compiler=no
1820
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1821
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1822
$as_echo "$ac_header_compiler" >&6; }
1824
# Is the header present?
1825
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1826
$as_echo_n "checking $2 presence... " >&6; }
1827
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1828
/* end confdefs.h. */
1831
if ac_fn_cxx_try_cpp "$LINENO"; then :
1832
ac_header_preproc=yes
1834
ac_header_preproc=no
1836
rm -f conftest.err conftest.$ac_ext
1837
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1838
$as_echo "$ac_header_preproc" >&6; }
1840
# So? What about this header?
1841
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
1843
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1844
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1845
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1846
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1849
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1850
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1851
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1852
$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1853
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1854
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1855
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1856
$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1857
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1858
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1860
## ----------------------------------------------- ##
1861
## Report this to t-tujikawa@users.sourceforge.net ##
1862
## ----------------------------------------------- ##
1864
) | sed "s/^/$as_me: WARNING: /" >&2
1867
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1868
$as_echo_n "checking for $2... " >&6; }
1869
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1870
$as_echo_n "(cached) " >&6
1872
eval "$3=\$ac_header_compiler"
1875
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1876
$as_echo "$ac_res" >&6; }
1878
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1880
} # ac_fn_cxx_check_header_mongrel
1882
# ac_fn_cxx_try_run LINENO
1883
# ------------------------
1884
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1885
# that executables *can* be run.
1886
ac_fn_cxx_try_run ()
1888
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1889
if { { ac_try="$ac_link"
1891
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1892
*) ac_try_echo=$ac_try;;
1894
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1895
$as_echo "$ac_try_echo"; } >&5
1896
(eval "$ac_link") 2>&5
1898
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1899
test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1900
{ { case "(($ac_try" in
1901
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1902
*) ac_try_echo=$ac_try;;
1904
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1905
$as_echo "$ac_try_echo"; } >&5
1906
(eval "$ac_try") 2>&5
1908
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1909
test $ac_status = 0; }; }; then :
1912
$as_echo "$as_me: program exited with status $ac_status" >&5
1913
$as_echo "$as_me: failed program was:" >&5
1914
sed 's/^/| /' conftest.$ac_ext >&5
1916
ac_retval=$ac_status
1918
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1919
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1920
as_fn_set_status $ac_retval
1922
} # ac_fn_cxx_try_run
1924
# ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
1925
# ---------------------------------------------------------
1926
# Tests whether HEADER exists and can be compiled using the include files in
1927
# INCLUDES, setting the cache variable VAR accordingly.
1928
ac_fn_cxx_check_header_compile ()
1930
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1931
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1932
$as_echo_n "checking for $2... " >&6; }
1933
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1934
$as_echo_n "(cached) " >&6
1936
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1937
/* end confdefs.h. */
1941
if ac_fn_cxx_try_compile "$LINENO"; then :
1946
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1949
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1950
$as_echo "$ac_res" >&6; }
1951
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1953
} # ac_fn_cxx_check_header_compile
1955
# ac_fn_cxx_try_link LINENO
1956
# -------------------------
1957
# Try to link conftest.$ac_ext, and return whether this succeeded.
1958
ac_fn_cxx_try_link ()
1960
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1961
rm -f conftest.$ac_objext conftest$ac_exeext
1962
if { { ac_try="$ac_link"
1964
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1965
*) ac_try_echo=$ac_try;;
1967
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1968
$as_echo "$ac_try_echo"; } >&5
1969
(eval "$ac_link") 2>conftest.err
1971
if test -s conftest.err; then
1972
grep -v '^ *+' conftest.err >conftest.er1
1973
cat conftest.er1 >&5
1974
mv -f conftest.er1 conftest.err
1976
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1977
test $ac_status = 0; } && {
1978
test -z "$ac_cxx_werror_flag" ||
1979
test ! -s conftest.err
1980
} && test -s conftest$ac_exeext && {
1981
test "$cross_compiling" = yes ||
1982
$as_test_x conftest$ac_exeext
1986
$as_echo "$as_me: failed program was:" >&5
1987
sed 's/^/| /' conftest.$ac_ext >&5
1991
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1992
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1993
# interfere with the next link command; also delete a directory that is
1994
# left behind by Apple's compiler. We do this before executing the actions.
1995
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1996
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1997
as_fn_set_status $ac_retval
1999
} # ac_fn_cxx_try_link
2001
# ac_fn_cxx_check_func LINENO FUNC VAR
2002
# ------------------------------------
2003
# Tests whether FUNC exists, setting the cache variable VAR accordingly
2004
ac_fn_cxx_check_func ()
2006
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2007
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2008
$as_echo_n "checking for $2... " >&6; }
2009
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2010
$as_echo_n "(cached) " >&6
2012
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2013
/* end confdefs.h. */
2014
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2015
For example, HP-UX 11i <limits.h> declares gettimeofday. */
2016
#define $2 innocuous_$2
2018
/* System header to define __stub macros and hopefully few prototypes,
2019
which can conflict with char $2 (); below.
2020
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2021
<limits.h> exists even on freestanding compilers. */
2024
# include <limits.h>
2026
# include <assert.h>
2031
/* Override any GCC internal prototype to avoid an error.
2032
Use char because int might match the return type of a GCC
2033
builtin and then its argument prototype would still apply. */
2038
/* The GNU C library defines this for functions which it implements
2039
to always fail with ENOSYS. Some functions are actually named
2040
something starting with __ and the normal name is an alias. */
2041
#if defined __stub_$2 || defined __stub___$2
2053
if ac_fn_cxx_try_link "$LINENO"; then :
2058
rm -f core conftest.err conftest.$ac_objext \
2059
conftest$ac_exeext conftest.$ac_ext
2062
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2063
$as_echo "$ac_res" >&6; }
2064
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2066
} # ac_fn_cxx_check_func
2068
# ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2069
# ---------------------------------------------
2070
# Tests whether TYPE exists after having included INCLUDES, setting cache
2071
# variable VAR accordingly.
2072
ac_fn_cxx_check_type ()
2074
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2075
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2076
$as_echo_n "checking for $2... " >&6; }
2077
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2078
$as_echo_n "(cached) " >&6
2081
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2082
/* end confdefs.h. */
2093
if ac_fn_cxx_try_compile "$LINENO"; then :
2094
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2095
/* end confdefs.h. */
2106
if ac_fn_cxx_try_compile "$LINENO"; then :
2111
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2113
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2116
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2117
$as_echo "$ac_res" >&6; }
2118
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2120
} # ac_fn_cxx_check_type
2122
# ac_fn_c_find_intX_t LINENO BITS VAR
2123
# -----------------------------------
2124
# Finds a signed integer type with width BITS, setting cache variable VAR
2126
ac_fn_c_find_intX_t ()
2128
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2129
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2130
$as_echo_n "checking for int$2_t... " >&6; }
2131
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2132
$as_echo_n "(cached) " >&6
2135
# Order is important - never check a type that is potentially smaller
2136
# than half of the expected target width.
2137
for ac_type in int$2_t 'int' 'long int' \
2138
'long long int' 'short int' 'signed char'; do
2139
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2140
/* end confdefs.h. */
2141
$ac_includes_default
2142
enum { N = $2 / 2 - 1 };
2146
static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2153
if ac_fn_cxx_try_compile "$LINENO"; then :
2154
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2155
/* end confdefs.h. */
2156
$ac_includes_default
2157
enum { N = $2 / 2 - 1 };
2161
static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2162
< ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2169
if ac_fn_cxx_try_compile "$LINENO"; then :
2176
eval "$3=\$ac_type" ;;
2179
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2181
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2183
if test "x$as_val" = x""no; then :
2191
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2192
$as_echo "$ac_res" >&6; }
2193
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2195
} # ac_fn_c_find_intX_t
2197
# ac_fn_c_find_uintX_t LINENO BITS VAR
2198
# ------------------------------------
2199
# Finds an unsigned integer type with width BITS, setting cache variable VAR
2201
ac_fn_c_find_uintX_t ()
2203
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2204
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2205
$as_echo_n "checking for uint$2_t... " >&6; }
2206
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2207
$as_echo_n "(cached) " >&6
2210
# Order is important - never check a type that is potentially smaller
2211
# than half of the expected target width.
2212
for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2213
'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2214
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2215
/* end confdefs.h. */
2216
$ac_includes_default
2220
static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2227
if ac_fn_cxx_try_compile "$LINENO"; then :
2232
eval "$3=\$ac_type" ;;
2235
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2237
if test "x$as_val" = x""no; then :
2245
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2246
$as_echo "$ac_res" >&6; }
2247
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2249
} # ac_fn_c_find_uintX_t
2251
# ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2252
# ----------------------------------------------
2253
# Tries to find the compile-time value of EXPR in a program that includes
2254
# INCLUDES, setting VAR accordingly. Returns whether the value could be
2256
ac_fn_cxx_compute_int ()
2258
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2259
if test "$cross_compiling" = yes; then
2260
# Depending upon the size, compute the lo and hi bounds.
2261
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2262
/* end confdefs.h. */
2267
static int test_array [1 - 2 * !(($2) >= 0)];
2274
if ac_fn_cxx_try_compile "$LINENO"; then :
2277
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2278
/* end confdefs.h. */
2283
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2290
if ac_fn_cxx_try_compile "$LINENO"; then :
2291
ac_hi=$ac_mid; break
2293
as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2294
if test $ac_lo -le $ac_mid; then
2298
as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2300
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2303
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2304
/* end confdefs.h. */
2309
static int test_array [1 - 2 * !(($2) < 0)];
2316
if ac_fn_cxx_try_compile "$LINENO"; then :
2319
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2320
/* end confdefs.h. */
2325
static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2332
if ac_fn_cxx_try_compile "$LINENO"; then :
2333
ac_lo=$ac_mid; break
2335
as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2336
if test $ac_mid -le $ac_hi; then
2340
as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2342
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2347
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2349
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2350
# Binary search between lo and hi bounds.
2351
while test "x$ac_lo" != "x$ac_hi"; do
2352
as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2353
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2354
/* end confdefs.h. */
2359
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2366
if ac_fn_cxx_try_compile "$LINENO"; then :
2369
as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2371
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2374
?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2378
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2379
/* end confdefs.h. */
2381
static long int longval () { return $2; }
2382
static unsigned long int ulongval () { return $2; }
2389
FILE *f = fopen ("conftest.val", "w");
2394
long int i = longval ();
2397
fprintf (f, "%ld", i);
2401
unsigned long int i = ulongval ();
2404
fprintf (f, "%lu", i);
2406
/* Do not output a trailing newline, as this causes \r\n confusion
2407
on some platforms. */
2408
return ferror (f) || fclose (f) != 0;
2414
if ac_fn_cxx_try_run "$LINENO"; then :
2415
echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2419
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2420
conftest.$ac_objext conftest.beam conftest.$ac_ext
2424
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2425
as_fn_set_status $ac_retval
2427
} # ac_fn_cxx_compute_int
2429
# ac_fn_cxx_check_member LINENO AGGR MEMBER VAR INCLUDES
2430
# ------------------------------------------------------
2431
# Tries to find if the field MEMBER exists in type AGGR, after including
2432
# INCLUDES, setting cache variable VAR accordingly.
2433
ac_fn_cxx_check_member ()
2435
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2436
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2437
$as_echo_n "checking for $2.$3... " >&6; }
2438
if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2439
$as_echo_n "(cached) " >&6
2441
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2442
/* end confdefs.h. */
2454
if ac_fn_cxx_try_compile "$LINENO"; then :
2457
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2458
/* end confdefs.h. */
2464
if (sizeof ac_aggr.$3)
2470
if ac_fn_cxx_try_compile "$LINENO"; then :
2475
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2477
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2480
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2481
$as_echo "$ac_res" >&6; }
2482
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2484
} # ac_fn_cxx_check_member
2485
cat >config.log <<_ACEOF
2486
This file contains any messages produced by compilers while
2487
running configure, to aid debugging if configure makes a mistake.
2489
It was created by aria2 $as_me 1.10.0, which was
2490
generated by GNU Autoconf 2.65. Invocation command line was
2502
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2503
uname -m = `(uname -m) 2>/dev/null || echo unknown`
2504
uname -r = `(uname -r) 2>/dev/null || echo unknown`
2505
uname -s = `(uname -s) 2>/dev/null || echo unknown`
2506
uname -v = `(uname -v) 2>/dev/null || echo unknown`
2508
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2509
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2511
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2512
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2513
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2514
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2515
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2516
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2517
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2521
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2525
test -z "$as_dir" && as_dir=.
2526
$as_echo "PATH: $as_dir"
2542
# Keep a trace of the command line.
2543
# Strip out --no-create and --no-recursion so they do not pile up.
2544
# Strip out --silent because we don't want to record it for future runs.
2545
# Also quote any args containing shell meta-characters.
2546
# Make two passes to allow for proper duplicate-argument suppression.
2550
ac_must_keep_next=false
2556
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2557
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
2558
| -silent | --silent | --silen | --sile | --sil)
2561
ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2564
1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2566
as_fn_append ac_configure_args1 " '$ac_arg'"
2567
if test $ac_must_keep_next = true; then
2568
ac_must_keep_next=false # Got value, back to normal.
2571
*=* | --config-cache | -C | -disable-* | --disable-* \
2572
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2573
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2574
| -with-* | --with-* | -without-* | --without-* | --x)
2575
case "$ac_configure_args0 " in
2576
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2579
-* ) ac_must_keep_next=true ;;
2582
as_fn_append ac_configure_args " '$ac_arg'"
2587
{ ac_configure_args0=; unset ac_configure_args0;}
2588
{ ac_configure_args1=; unset ac_configure_args1;}
2590
# When interrupted or exit'd, cleanup temporary files, and complete
2591
# config.log. We remove comments because anyway the quotes in there
2592
# would cause problems or look ugly.
2593
# WARNING: Use '\'' to represent an apostrophe within the trap.
2594
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2595
trap 'exit_status=$?
2596
# Save into config.log some information that might help in debugging.
2601
## ---------------- ##
2602
## Cache variables. ##
2603
## ---------------- ##
2606
# The following way of writing the cache mishandles newlines in values,
2608
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2609
eval ac_val=\$$ac_var
2613
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2614
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2617
_ | IFS | as_nl) ;; #(
2618
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2619
*) { eval $ac_var=; unset $ac_var;} ;;
2624
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2625
*${as_nl}ac_space=\ *)
2627
"s/'\''/'\''\\\\'\'''\''/g;
2628
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2631
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2639
## ----------------- ##
2640
## Output variables. ##
2641
## ----------------- ##
2644
for ac_var in $ac_subst_vars
2646
eval ac_val=\$$ac_var
2648
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2650
$as_echo "$ac_var='\''$ac_val'\''"
2654
if test -n "$ac_subst_files"; then
2656
## ------------------- ##
2657
## File substitutions. ##
2658
## ------------------- ##
2661
for ac_var in $ac_subst_files
2663
eval ac_val=\$$ac_var
2665
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2667
$as_echo "$ac_var='\''$ac_val'\''"
2672
if test -s confdefs.h; then
2682
test "$ac_signal" != 0 &&
2683
$as_echo "$as_me: caught signal $ac_signal"
2684
$as_echo "$as_me: exit $exit_status"
2686
rm -f core *.core core.conftest.* &&
2687
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2690
for ac_signal in 1 2 13 15; do
2691
trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2695
# confdefs.h avoids OS command line length limits that DEFS can exceed.
2696
rm -f -r conftest* confdefs.h
2698
$as_echo "/* confdefs.h */" > confdefs.h
2700
# Predefined preprocessor variables.
2702
cat >>confdefs.h <<_ACEOF
2703
#define PACKAGE_NAME "$PACKAGE_NAME"
2706
cat >>confdefs.h <<_ACEOF
2707
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2710
cat >>confdefs.h <<_ACEOF
2711
#define PACKAGE_VERSION "$PACKAGE_VERSION"
2714
cat >>confdefs.h <<_ACEOF
2715
#define PACKAGE_STRING "$PACKAGE_STRING"
2718
cat >>confdefs.h <<_ACEOF
2719
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2722
cat >>confdefs.h <<_ACEOF
2723
#define PACKAGE_URL "$PACKAGE_URL"
2727
# Let the site file select an alternate cache file if it wants to.
2728
# Prefer an explicitly selected file to automatically selected ones.
2731
if test -n "$CONFIG_SITE"; then
2732
ac_site_file1=$CONFIG_SITE
2733
elif test "x$prefix" != xNONE; then
2734
ac_site_file1=$prefix/share/config.site
2735
ac_site_file2=$prefix/etc/config.site
2737
ac_site_file1=$ac_default_prefix/share/config.site
2738
ac_site_file2=$ac_default_prefix/etc/config.site
2740
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2742
test "x$ac_site_file" = xNONE && continue
2743
if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2744
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2745
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2746
sed 's/^/| /' "$ac_site_file" >&5
2751
if test -r "$cache_file"; then
2752
# Some versions of bash will fail to source /dev/null (special files
2753
# actually), so we avoid doing that. DJGPP emulates it as a regular file.
2754
if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2755
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2756
$as_echo "$as_me: loading cache $cache_file" >&6;}
2758
[\\/]* | ?:[\\/]* ) . "$cache_file";;
2759
*) . "./$cache_file";;
2763
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2764
$as_echo "$as_me: creating cache $cache_file" >&6;}
2768
gt_needs="$gt_needs "
2769
as_fn_append ac_header_list " stdlib.h"
2770
as_fn_append ac_header_list " unistd.h"
2771
as_fn_append ac_header_list " sys/param.h"
2772
as_fn_append ac_header_list " sys/time.h"
2773
as_fn_append ac_func_list " alarm"
2774
# Check that the precious variables saved in the cache have kept the same
2776
ac_cache_corrupted=false
2777
for ac_var in $ac_precious_vars; do
2778
eval ac_old_set=\$ac_cv_env_${ac_var}_set
2779
eval ac_new_set=\$ac_env_${ac_var}_set
2780
eval ac_old_val=\$ac_cv_env_${ac_var}_value
2781
eval ac_new_val=\$ac_env_${ac_var}_value
2782
case $ac_old_set,$ac_new_set in
2784
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2785
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2786
ac_cache_corrupted=: ;;
2788
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2789
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2790
ac_cache_corrupted=: ;;
2793
if test "x$ac_old_val" != "x$ac_new_val"; then
2794
# differences in whitespace do not lead to failure.
2795
ac_old_val_w=`echo x $ac_old_val`
2796
ac_new_val_w=`echo x $ac_new_val`
2797
if test "$ac_old_val_w" != "$ac_new_val_w"; then
2798
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2799
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2800
ac_cache_corrupted=:
2802
{ $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2803
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2804
eval $ac_var=\$ac_old_val
2806
{ $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2807
$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2808
{ $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2809
$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2812
# Pass precious variables to config.status.
2813
if test "$ac_new_set" = set; then
2815
*\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2816
*) ac_arg=$ac_var=$ac_new_val ;;
2818
case " $ac_configure_args " in
2819
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2820
*) as_fn_append ac_configure_args " '$ac_arg'" ;;
2824
if $ac_cache_corrupted; then
2825
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2826
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2827
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2828
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2829
as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2831
## -------------------- ##
2832
## Main body of script. ##
2833
## -------------------- ##
2836
ac_cpp='$CPP $CPPFLAGS'
2837
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2838
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2839
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2843
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2844
for ac_t in install-sh install.sh shtool; do
2845
if test -f "$ac_dir/$ac_t"; then
2847
ac_install_sh="$ac_aux_dir/$ac_t -c"
2852
if test -z "$ac_aux_dir"; then
2853
as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2856
# These three variables are undocumented and unsupported,
2857
# and are intended to be withdrawn in a future Autoconf release.
2858
# They can cause serious problems if a builder's source tree is in a directory
2859
# whose full name contains unusual characters.
2860
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2861
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2862
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2865
# Make sure we can run config.sub.
2866
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2867
as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2869
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2870
$as_echo_n "checking build system type... " >&6; }
2871
if test "${ac_cv_build+set}" = set; then :
2872
$as_echo_n "(cached) " >&6
2874
ac_build_alias=$build_alias
2875
test "x$ac_build_alias" = x &&
2876
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2877
test "x$ac_build_alias" = x &&
2878
as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2879
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2880
as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2883
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2884
$as_echo "$ac_cv_build" >&6; }
2885
case $ac_cv_build in
2887
*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2890
ac_save_IFS=$IFS; IFS='-'
2896
# Remember, the first character of IFS is used to create $*,
2897
# except with old shells:
2900
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2903
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2904
$as_echo_n "checking host system type... " >&6; }
2905
if test "${ac_cv_host+set}" = set; then :
2906
$as_echo_n "(cached) " >&6
2908
if test "x$host_alias" = x; then
2909
ac_cv_host=$ac_cv_build
2911
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2912
as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2916
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2917
$as_echo "$ac_cv_host" >&6; }
2920
*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2923
ac_save_IFS=$IFS; IFS='-'
2929
# Remember, the first character of IFS is used to create $*,
2930
# except with old shells:
2933
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2936
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2937
$as_echo_n "checking target system type... " >&6; }
2938
if test "${ac_cv_target+set}" = set; then :
2939
$as_echo_n "(cached) " >&6
2941
if test "x$target_alias" = x; then
2942
ac_cv_target=$ac_cv_host
2944
ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2945
as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2949
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2950
$as_echo "$ac_cv_target" >&6; }
2951
case $ac_cv_target in
2953
*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2955
target=$ac_cv_target
2956
ac_save_IFS=$IFS; IFS='-'
2962
# Remember, the first character of IFS is used to create $*,
2963
# except with old shells:
2966
case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2969
# The aliases save the names the user supplied, while $host etc.
2970
# will get canonicalized.
2971
test -n "$target_alias" &&
2972
test "$program_prefix$program_suffix$program_transform_name" = \
2974
program_prefix=${target_alias}-
2975
am__api_version='1.11'
2977
# Find a good install program. We prefer a C program (faster),
2978
# so one script is as good as another. But avoid the broken or
2979
# incompatible versions:
2980
# SysV /etc/install, /usr/sbin/install
2981
# SunOS /usr/etc/install
2982
# IRIX /sbin/install
2984
# AmigaOS /C/install, which installs bootblocks on floppy discs
2985
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2986
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2987
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2988
# OS/2's system install, which has a completely different semantic
2989
# ./install, which can be erroneously created by make from ./install.sh.
2990
# Reject install programs that cannot install multiple files.
2991
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2992
$as_echo_n "checking for a BSD-compatible install... " >&6; }
2993
if test -z "$INSTALL"; then
2994
if test "${ac_cv_path_install+set}" = set; then :
2995
$as_echo_n "(cached) " >&6
2997
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3001
test -z "$as_dir" && as_dir=.
3002
# Account for people who put trailing slashes in PATH elements.
3003
case $as_dir/ in #((
3004
./ | .// | /[cC]/* | \
3005
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3006
?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3009
# OSF1 and SCO ODT 3.0 have their own names for install.
3010
# Don't use installbsd from OSF since it installs stuff as root
3012
for ac_prog in ginstall scoinst install; do
3013
for ac_exec_ext in '' $ac_executable_extensions; do
3014
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3015
if test $ac_prog = install &&
3016
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3017
# AIX install. It has an incompatible calling convention.
3019
elif test $ac_prog = install &&
3020
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3021
# program-specific install script used by HP pwplus--don't use.
3024
rm -rf conftest.one conftest.two conftest.dir
3025
echo one > conftest.one
3026
echo two > conftest.two
3028
if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3029
test -s conftest.one && test -s conftest.two &&
3030
test -s conftest.dir/conftest.one &&
3031
test -s conftest.dir/conftest.two
3033
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3046
rm -rf conftest.one conftest.two conftest.dir
3049
if test "${ac_cv_path_install+set}" = set; then
3050
INSTALL=$ac_cv_path_install
3052
# As a last resort, use the slow shell script. Don't cache a
3053
# value for INSTALL within a source directory, because that will
3054
# break other packages using the cache if that directory is
3055
# removed, or if the value is a relative name.
3056
INSTALL=$ac_install_sh
3059
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3060
$as_echo "$INSTALL" >&6; }
3062
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3063
# It thinks the first close brace ends the variable substitution.
3064
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3066
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3068
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3070
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3071
$as_echo_n "checking whether build environment is sane... " >&6; }
3074
echo timestamp > conftest.file
3075
# Reject unsafe characters in $srcdir or the absolute working directory
3076
# name. Accept space and tab only in the latter.
3080
*[\\\"\#\$\&\'\`$am_lf]*)
3081
as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3084
*[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3085
as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3088
# Do `set' in a subshell so we don't clobber the current shell's
3089
# arguments. Must try -L first in case configure is actually a
3090
# symlink; some systems play weird games with the mod time of symlinks
3091
# (eg FreeBSD returns the mod time of the symlink's containing
3094
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3095
if test "$*" = "X"; then
3097
set X `ls -t "$srcdir/configure" conftest.file`
3100
if test "$*" != "X $srcdir/configure conftest.file" \
3101
&& test "$*" != "X conftest.file $srcdir/configure"; then
3103
# If neither matched, then we have a broken ls. This can happen
3104
# if, for instance, CONFIG_SHELL is bash and it inherits a
3105
# broken ls alias from the environment. This has actually
3106
# happened. Such a system could not be considered "sane".
3107
as_fn_error "ls -t appears to fail. Make sure there is not a broken
3108
alias in your environment" "$LINENO" 5
3111
test "$2" = conftest.file
3117
as_fn_error "newly created file is older than distributed files!
3118
Check your system clock" "$LINENO" 5
3120
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3121
$as_echo "yes" >&6; }
3122
test "$program_prefix" != NONE &&
3123
program_transform_name="s&^&$program_prefix&;$program_transform_name"
3124
# Use a double $ so make ignores it.
3125
test "$program_suffix" != NONE &&
3126
program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3127
# Double any \ or $.
3128
# By default was `s,x,x', remove it if useless.
3129
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3130
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3132
# expand $ac_aux_dir to an absolute path
3133
am_aux_dir=`cd $ac_aux_dir && pwd`
3135
if test x"${MISSING+set}" != xset; then
3138
MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3140
MISSING="\${SHELL} $am_aux_dir/missing" ;;
3143
# Use eval to expand $SHELL
3144
if eval "$MISSING --run true"; then
3145
am_missing_run="$MISSING --run "
3148
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3149
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3152
if test x"${install_sh}" != xset; then
3155
install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3157
install_sh="\${SHELL} $am_aux_dir/install-sh"
3161
# Installed binaries are usually stripped using `strip' when the user
3162
# run `make install-strip'. However `strip' might not be the right
3163
# tool to use in cross-compilation environments, therefore Automake
3164
# will honor the `STRIP' environment variable to overrule this program.
3165
if test "$cross_compiling" != no; then
3166
if test -n "$ac_tool_prefix"; then
3167
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3168
set dummy ${ac_tool_prefix}strip; ac_word=$2
3169
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3170
$as_echo_n "checking for $ac_word... " >&6; }
3171
if test "${ac_cv_prog_STRIP+set}" = set; then :
3172
$as_echo_n "(cached) " >&6
3174
if test -n "$STRIP"; then
3175
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3177
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3181
test -z "$as_dir" && as_dir=.
3182
for ac_exec_ext in '' $ac_executable_extensions; do
3183
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3184
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3185
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3194
STRIP=$ac_cv_prog_STRIP
3195
if test -n "$STRIP"; then
3196
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3197
$as_echo "$STRIP" >&6; }
3199
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3200
$as_echo "no" >&6; }
3205
if test -z "$ac_cv_prog_STRIP"; then
3207
# Extract the first word of "strip", so it can be a program name with args.
3208
set dummy strip; ac_word=$2
3209
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3210
$as_echo_n "checking for $ac_word... " >&6; }
3211
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3212
$as_echo_n "(cached) " >&6
3214
if test -n "$ac_ct_STRIP"; then
3215
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3217
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3221
test -z "$as_dir" && as_dir=.
3222
for ac_exec_ext in '' $ac_executable_extensions; do
3223
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3224
ac_cv_prog_ac_ct_STRIP="strip"
3225
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3234
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3235
if test -n "$ac_ct_STRIP"; then
3236
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3237
$as_echo "$ac_ct_STRIP" >&6; }
3239
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3240
$as_echo "no" >&6; }
3243
if test "x$ac_ct_STRIP" = x; then
3246
case $cross_compiling:$ac_tool_warned in
3248
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3249
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3250
ac_tool_warned=yes ;;
3255
STRIP="$ac_cv_prog_STRIP"
3259
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3261
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3262
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3263
if test -z "$MKDIR_P"; then
3264
if test "${ac_cv_path_mkdir+set}" = set; then :
3265
$as_echo_n "(cached) " >&6
3267
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3268
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3271
test -z "$as_dir" && as_dir=.
3272
for ac_prog in mkdir gmkdir; do
3273
for ac_exec_ext in '' $ac_executable_extensions; do
3274
{ test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3275
case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3276
'mkdir (GNU coreutils) '* | \
3277
'mkdir (coreutils) '* | \
3278
'mkdir (fileutils) '4.1*)
3279
ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3289
test -d ./--version && rmdir ./--version
3290
if test "${ac_cv_path_mkdir+set}" = set; then
3291
MKDIR_P="$ac_cv_path_mkdir -p"
3293
# As a last resort, use the slow shell script. Don't cache a
3294
# value for MKDIR_P within a source directory, because that will
3295
# break other packages using the cache if that directory is
3296
# removed, or if the value is a relative name.
3297
MKDIR_P="$ac_install_sh -d"
3300
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3301
$as_echo "$MKDIR_P" >&6; }
3305
[\\/$]* | ?:[\\/]*) ;;
3306
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3309
for ac_prog in gawk mawk nawk awk
3311
# Extract the first word of "$ac_prog", so it can be a program name with args.
3312
set dummy $ac_prog; ac_word=$2
3313
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3314
$as_echo_n "checking for $ac_word... " >&6; }
3315
if test "${ac_cv_prog_AWK+set}" = set; then :
3316
$as_echo_n "(cached) " >&6
3318
if test -n "$AWK"; then
3319
ac_cv_prog_AWK="$AWK" # Let the user override the test.
3321
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3325
test -z "$as_dir" && as_dir=.
3326
for ac_exec_ext in '' $ac_executable_extensions; do
3327
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3328
ac_cv_prog_AWK="$ac_prog"
3329
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3339
if test -n "$AWK"; then
3340
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3341
$as_echo "$AWK" >&6; }
3343
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3344
$as_echo "no" >&6; }
3348
test -n "$AWK" && break
3351
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3352
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3354
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3355
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3356
$as_echo_n "(cached) " >&6
3358
cat >conftest.make <<\_ACEOF
3361
@echo '@@@%%%=$(MAKE)=@@@%%%'
3363
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3364
case `${MAKE-make} -f conftest.make 2>/dev/null` in
3366
eval ac_cv_prog_make_${ac_make}_set=yes;;
3368
eval ac_cv_prog_make_${ac_make}_set=no;;
3372
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3373
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3374
$as_echo "yes" >&6; }
3377
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3378
$as_echo "no" >&6; }
3379
SET_MAKE="MAKE=${MAKE-make}"
3382
rm -rf .tst 2>/dev/null
3383
mkdir .tst 2>/dev/null
3384
if test -d .tst; then
3389
rmdir .tst 2>/dev/null
3391
if test "`cd $srcdir && pwd`" != "`pwd`"; then
3392
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3393
# is not polluted with repeated "-I."
3394
am__isrc=' -I$(srcdir)'
3395
# test to see if srcdir already configured
3396
if test -f $srcdir/config.status; then
3397
as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3401
# test whether we have cygpath
3402
if test -z "$CYGPATH_W"; then
3403
if (cygpath --version) >/dev/null 2>/dev/null; then
3404
CYGPATH_W='cygpath -w'
3411
# Define the identity of the package.
3416
cat >>confdefs.h <<_ACEOF
3417
#define PACKAGE "$PACKAGE"
3421
cat >>confdefs.h <<_ACEOF
3422
#define VERSION "$VERSION"
3425
# Some tools Automake needs.
3427
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3430
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3433
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3436
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3439
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3441
# We need awk for the "check" target. The system "awk" is bad on
3443
# Always define AMTAR for backward compatibility.
3445
AMTAR=${AMTAR-"${am_missing_run}tar"}
3447
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3456
# Check whether --with-cppunit-prefix was given.
3457
if test "${with_cppunit_prefix+set}" = set; then :
3458
withval=$with_cppunit_prefix; cppunit_config_prefix="$withval"
3460
cppunit_config_prefix=""
3464
# Check whether --with-cppunit-exec-prefix was given.
3465
if test "${with_cppunit_exec_prefix+set}" = set; then :
3466
withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval"
3468
cppunit_config_exec_prefix=""
3472
if test x$cppunit_config_exec_prefix != x ; then
3473
cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
3474
if test x${CPPUNIT_CONFIG+set} != xset ; then
3475
CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
3478
if test x$cppunit_config_prefix != x ; then
3479
cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
3480
if test x${CPPUNIT_CONFIG+set} != xset ; then
3481
CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
3485
# Extract the first word of "cppunit-config", so it can be a program name with args.
3486
set dummy cppunit-config; ac_word=$2
3487
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3488
$as_echo_n "checking for $ac_word... " >&6; }
3489
if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then :
3490
$as_echo_n "(cached) " >&6
3492
case $CPPUNIT_CONFIG in
3494
ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
3497
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3501
test -z "$as_dir" && as_dir=.
3502
for ac_exec_ext in '' $ac_executable_extensions; do
3503
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3504
ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3505
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3512
test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
3516
CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
3517
if test -n "$CPPUNIT_CONFIG"; then
3518
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPUNIT_CONFIG" >&5
3519
$as_echo "$CPPUNIT_CONFIG" >&6; }
3521
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3522
$as_echo "no" >&6; }
3526
cppunit_version_min=1.10.2
3528
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cppunit - version >= $cppunit_version_min" >&5
3529
$as_echo_n "checking for Cppunit - version >= $cppunit_version_min... " >&6; }
3531
if test "$CPPUNIT_CONFIG" = "no" ; then
3532
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3533
$as_echo "no" >&6; }
3536
CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
3537
CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
3538
cppunit_version=`$CPPUNIT_CONFIG --version`
3540
cppunit_major_version=`echo $cppunit_version | \
3541
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
3542
cppunit_minor_version=`echo $cppunit_version | \
3543
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
3544
cppunit_micro_version=`echo $cppunit_version | \
3545
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
3547
cppunit_major_min=`echo $cppunit_version_min | \
3548
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
3549
if test "x${cppunit_major_min}" = "x" ; then
3553
cppunit_minor_min=`echo $cppunit_version_min | \
3554
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
3555
if test "x${cppunit_minor_min}" = "x" ; then
3559
cppunit_micro_min=`echo $cppunit_version_min | \
3560
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
3561
if test "x${cppunit_micro_min}" = "x" ; then
3565
cppunit_version_proper=`expr \
3566
$cppunit_major_version \> $cppunit_major_min \| \
3567
$cppunit_major_version \= $cppunit_major_min \& \
3568
$cppunit_minor_version \> $cppunit_minor_min \| \
3569
$cppunit_major_version \= $cppunit_major_min \& \
3570
$cppunit_minor_version \= $cppunit_minor_min \& \
3571
$cppunit_micro_version \>= $cppunit_micro_min `
3573
if test "$cppunit_version_proper" = "1" ; then
3574
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
3575
$as_echo "$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; }
3577
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3578
$as_echo "no" >&6; }
3583
if test "x$no_cppunit" = x ; then
3595
ac_config_headers="$ac_config_headers config.h"
3600
WINSOCK_LIBS="-lws2_32"
3602
LIBS="-lws2_32 -lcrypto -lwsock32 -lgdi32 -lwinmm $LIBS"
3607
cat >>confdefs.h <<_ACEOF
3608
#define TARGET "$target"
3612
# Checks for arguments.
3614
# Check whether --with-gnutls was given.
3615
if test "${with_gnutls+set}" = set; then :
3616
withval=$with_gnutls; with_gnutls_requested=$withval with_gnutls=$withval
3623
# Check whether --with-openssl was given.
3624
if test "${with_openssl+set}" = set; then :
3625
withval=$with_openssl; with_openssl_requested=$withval with_openssl=$withval
3632
# Check whether --with-sqlite3 was given.
3633
if test "${with_sqlite3+set}" = set; then :
3634
withval=$with_sqlite3; with_sqlite3_requested=$withval with_sqlite3=$withval
3641
# Check whether --with-libxml2 was given.
3642
if test "${with_libxml2+set}" = set; then :
3643
withval=$with_libxml2; with_libxml2_requested=$withval with_libxml2=$withval
3650
# Check whether --with-libexpat was given.
3651
if test "${with_libexpat+set}" = set; then :
3652
withval=$with_libexpat; with_libexpat_requested=$withval with_libexpat=$withval
3659
# Check whether --with-libcares was given.
3660
if test "${with_libcares+set}" = set; then :
3661
withval=$with_libcares; with_libcares_requested=$withval with_libcares=$withval
3668
# Check whether --with-libz was given.
3669
if test "${with_libz+set}" = set; then :
3670
withval=$with_libz; with_libz_requested=$withval with_libz=$withval
3677
# Check whether --enable-bittorrent was given.
3678
if test "${enable_bittorrent+set}" = set; then :
3679
enableval=$enable_bittorrent; enable_bittorrent_requested=$enableval enable_bittorrent=$enableval
3681
enable_bittorrent=yes
3685
# Check whether --enable-metalink was given.
3686
if test "${enable_metalink+set}" = set; then :
3687
enableval=$enable_metalink; enable_metalink_requested=$enableval enable_metalink=$enableval
3693
# Check whether --enable-epoll was given.
3694
if test "${enable_epoll+set}" = set; then :
3695
enableval=$enable_epoll; enable_epoll_requested=$enableval enable_epoll=$enableval
3703
# Check whether --with-ca-bundle was given.
3704
if test "${with_ca_bundle+set}" = set; then :
3705
withval=$with_ca_bundle; ca_bundle=$withval
3711
# Checks for programs.
3713
ac_cpp='$CXXCPP $CPPFLAGS'
3714
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3715
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3716
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3717
if test -z "$CXX"; then
3718
if test -n "$CCC"; then
3721
if test -n "$ac_tool_prefix"; then
3722
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3724
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3725
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3726
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3727
$as_echo_n "checking for $ac_word... " >&6; }
3728
if test "${ac_cv_prog_CXX+set}" = set; then :
3729
$as_echo_n "(cached) " >&6
3731
if test -n "$CXX"; then
3732
ac_cv_prog_CXX="$CXX" # Let the user override the test.
3734
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3738
test -z "$as_dir" && as_dir=.
3739
for ac_exec_ext in '' $ac_executable_extensions; do
3740
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3741
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3742
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3752
if test -n "$CXX"; then
3753
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3754
$as_echo "$CXX" >&6; }
3756
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3757
$as_echo "no" >&6; }
3761
test -n "$CXX" && break
3764
if test -z "$CXX"; then
3766
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3768
# Extract the first word of "$ac_prog", so it can be a program name with args.
3769
set dummy $ac_prog; ac_word=$2
3770
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3771
$as_echo_n "checking for $ac_word... " >&6; }
3772
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3773
$as_echo_n "(cached) " >&6
3775
if test -n "$ac_ct_CXX"; then
3776
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3778
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3782
test -z "$as_dir" && as_dir=.
3783
for ac_exec_ext in '' $ac_executable_extensions; do
3784
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3785
ac_cv_prog_ac_ct_CXX="$ac_prog"
3786
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3795
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3796
if test -n "$ac_ct_CXX"; then
3797
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3798
$as_echo "$ac_ct_CXX" >&6; }
3800
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3801
$as_echo "no" >&6; }
3805
test -n "$ac_ct_CXX" && break
3808
if test "x$ac_ct_CXX" = x; then
3811
case $cross_compiling:$ac_tool_warned in
3813
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3814
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3815
ac_tool_warned=yes ;;
3823
# Provide some information about the compiler.
3824
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3827
for ac_option in --version -v -V -qversion; do
3828
{ { ac_try="$ac_compiler $ac_option >&5"
3830
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3831
*) ac_try_echo=$ac_try;;
3833
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3834
$as_echo "$ac_try_echo"; } >&5
3835
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
3837
if test -s conftest.err; then
3839
... rest of stderr output deleted ...
3840
10q' conftest.err >conftest.er1
3841
cat conftest.er1 >&5
3843
rm -f conftest.er1 conftest.err
3844
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3845
test $ac_status = 0; }
3848
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3849
/* end confdefs.h. */
3859
ac_clean_files_save=$ac_clean_files
3860
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3861
# Try to create an executable without -o first, disregard a.out.
3862
# It will help us diagnose broken compilers, and finding out an intuition
3864
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3865
$as_echo_n "checking whether the C++ compiler works... " >&6; }
3866
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3868
# The possible output files:
3869
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3872
for ac_file in $ac_files
3875
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3876
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
3881
if { { ac_try="$ac_link_default"
3883
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3884
*) ac_try_echo=$ac_try;;
3886
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3887
$as_echo "$ac_try_echo"; } >&5
3888
(eval "$ac_link_default") 2>&5
3890
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3891
test $ac_status = 0; }; then :
3892
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3893
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3894
# in a Makefile. We should not override ac_cv_exeext if it was cached,
3895
# so that the user can short-circuit this test for compilers unknown to
3897
for ac_file in $ac_files ''
3899
test -f "$ac_file" || continue
3901
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3904
# We found the default executable, but exeext='' is most
3908
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3910
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3912
# We set ac_cv_exeext here because the later test for it is not
3913
# safe: cross compilers may not add the suffix if given an `-o'
3914
# argument, so we may need to know it at that point already.
3915
# Even if this section looks crufty: it has the advantage of
3922
test "$ac_cv_exeext" = no && ac_cv_exeext=
3927
if test -z "$ac_file"; then :
3928
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3929
$as_echo "no" >&6; }
3930
$as_echo "$as_me: failed program was:" >&5
3931
sed 's/^/| /' conftest.$ac_ext >&5
3933
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3934
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3935
{ as_fn_set_status 77
3936
as_fn_error "C++ compiler cannot create executables
3937
See \`config.log' for more details." "$LINENO" 5; }; }
3939
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3940
$as_echo "yes" >&6; }
3942
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3943
$as_echo_n "checking for C++ compiler default output file name... " >&6; }
3944
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3945
$as_echo "$ac_file" >&6; }
3946
ac_exeext=$ac_cv_exeext
3948
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3949
ac_clean_files=$ac_clean_files_save
3950
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3951
$as_echo_n "checking for suffix of executables... " >&6; }
3952
if { { ac_try="$ac_link"
3954
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3955
*) ac_try_echo=$ac_try;;
3957
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3958
$as_echo "$ac_try_echo"; } >&5
3959
(eval "$ac_link") 2>&5
3961
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3962
test $ac_status = 0; }; then :
3963
# If both `conftest.exe' and `conftest' are `present' (well, observable)
3964
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3965
# work properly (i.e., refer to `conftest.exe'), while it won't with
3967
for ac_file in conftest.exe conftest conftest.*; do
3968
test -f "$ac_file" || continue
3970
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3971
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3977
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3978
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3979
as_fn_error "cannot compute suffix of executables: cannot compile and link
3980
See \`config.log' for more details." "$LINENO" 5; }
3982
rm -f conftest conftest$ac_cv_exeext
3983
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3984
$as_echo "$ac_cv_exeext" >&6; }
3986
rm -f conftest.$ac_ext
3987
EXEEXT=$ac_cv_exeext
3989
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3990
/* end confdefs.h. */
3995
FILE *f = fopen ("conftest.out", "w");
3996
return ferror (f) || fclose (f) != 0;
4002
ac_clean_files="$ac_clean_files conftest.out"
4003
# Check that the compiler produces executables we can run. If not, either
4004
# the compiler is broken, or we cross compile.
4005
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4006
$as_echo_n "checking whether we are cross compiling... " >&6; }
4007
if test "$cross_compiling" != yes; then
4008
{ { ac_try="$ac_link"
4010
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4011
*) ac_try_echo=$ac_try;;
4013
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4014
$as_echo "$ac_try_echo"; } >&5
4015
(eval "$ac_link") 2>&5
4017
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4018
test $ac_status = 0; }
4019
if { ac_try='./conftest$ac_cv_exeext'
4020
{ { case "(($ac_try" in
4021
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4022
*) ac_try_echo=$ac_try;;
4024
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4025
$as_echo "$ac_try_echo"; } >&5
4026
(eval "$ac_try") 2>&5
4028
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4029
test $ac_status = 0; }; }; then
4032
if test "$cross_compiling" = maybe; then
4035
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4036
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4037
as_fn_error "cannot run C++ compiled programs.
4038
If you meant to cross compile, use \`--host'.
4039
See \`config.log' for more details." "$LINENO" 5; }
4043
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4044
$as_echo "$cross_compiling" >&6; }
4046
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4047
ac_clean_files=$ac_clean_files_save
4048
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4049
$as_echo_n "checking for suffix of object files... " >&6; }
4050
if test "${ac_cv_objext+set}" = set; then :
4051
$as_echo_n "(cached) " >&6
4053
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4054
/* end confdefs.h. */
4064
rm -f conftest.o conftest.obj
4065
if { { ac_try="$ac_compile"
4067
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4068
*) ac_try_echo=$ac_try;;
4070
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4071
$as_echo "$ac_try_echo"; } >&5
4072
(eval "$ac_compile") 2>&5
4074
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4075
test $ac_status = 0; }; then :
4076
for ac_file in conftest.o conftest.obj conftest.*; do
4077
test -f "$ac_file" || continue;
4079
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4080
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4085
$as_echo "$as_me: failed program was:" >&5
4086
sed 's/^/| /' conftest.$ac_ext >&5
4088
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4089
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4090
as_fn_error "cannot compute suffix of object files: cannot compile
4091
See \`config.log' for more details." "$LINENO" 5; }
4093
rm -f conftest.$ac_cv_objext conftest.$ac_ext
4095
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4096
$as_echo "$ac_cv_objext" >&6; }
4097
OBJEXT=$ac_cv_objext
4099
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4100
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4101
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4102
$as_echo_n "(cached) " >&6
4104
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4105
/* end confdefs.h. */
4118
if ac_fn_cxx_try_compile "$LINENO"; then :
4123
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4124
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4127
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4128
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4129
if test $ac_compiler_gnu = yes; then
4134
ac_test_CXXFLAGS=${CXXFLAGS+set}
4135
ac_save_CXXFLAGS=$CXXFLAGS
4136
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4137
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4138
if test "${ac_cv_prog_cxx_g+set}" = set; then :
4139
$as_echo_n "(cached) " >&6
4141
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4142
ac_cxx_werror_flag=yes
4145
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4146
/* end confdefs.h. */
4156
if ac_fn_cxx_try_compile "$LINENO"; then :
4157
ac_cv_prog_cxx_g=yes
4160
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4161
/* end confdefs.h. */
4171
if ac_fn_cxx_try_compile "$LINENO"; then :
4174
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4176
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4177
/* end confdefs.h. */
4187
if ac_fn_cxx_try_compile "$LINENO"; then :
4188
ac_cv_prog_cxx_g=yes
4190
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4192
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4194
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4195
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4197
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4198
$as_echo "$ac_cv_prog_cxx_g" >&6; }
4199
if test "$ac_test_CXXFLAGS" = set; then
4200
CXXFLAGS=$ac_save_CXXFLAGS
4201
elif test $ac_cv_prog_cxx_g = yes; then
4202
if test "$GXX" = yes; then
4208
if test "$GXX" = yes; then
4215
ac_cpp='$CPP $CPPFLAGS'
4216
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4217
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4218
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4219
DEPDIR="${am__leading_dot}deps"
4221
ac_config_commands="$ac_config_commands depfiles"
4224
am_make=${MAKE-make}
4225
cat > confinc << 'END'
4227
@echo this is the am__doit target
4230
# If we don't find an include directive, just comment out the code.
4231
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4232
$as_echo_n "checking for style of include used by $am_make... " >&6; }
4236
# First try GNU make style include.
4237
echo "include confinc" > confmf
4238
# Ignore all kinds of additional output from `make'.
4239
case `$am_make -s -f confmf 2> /dev/null` in #(
4240
*the\ am__doit\ target*)
4246
# Now try BSD make style include.
4247
if test "$am__include" = "#"; then
4248
echo '.include "confinc"' > confmf
4249
case `$am_make -s -f confmf 2> /dev/null` in #(
4250
*the\ am__doit\ target*)
4251
am__include=.include
4259
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4260
$as_echo "$_am_result" >&6; }
4261
rm -f confinc confmf
4263
# Check whether --enable-dependency-tracking was given.
4264
if test "${enable_dependency_tracking+set}" = set; then :
4265
enableval=$enable_dependency_tracking;
4268
if test "x$enable_dependency_tracking" != xno; then
4269
am_depcomp="$ac_aux_dir/depcomp"
4272
if test "x$enable_dependency_tracking" != xno; then
4282
depcc="$CXX" am_compiler_list=
4284
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4285
$as_echo_n "checking dependency style of $depcc... " >&6; }
4286
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4287
$as_echo_n "(cached) " >&6
4289
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4290
# We make a subdir and do the tests there. Otherwise we can end up
4291
# making bogus files that we don't know about and never remove. For
4292
# instance it was reported that on HP-UX the gcc test will end up
4293
# making a dummy file named `D' -- because `-MD' means `put the output
4296
# Copy depcomp to subdir because otherwise we won't find it if we're
4297
# using a relative directory.
4298
cp "$am_depcomp" conftest.dir
4300
# We will build objects and dependencies in a subdirectory because
4301
# it helps to detect inapplicable dependency modes. For instance
4302
# both Tru64's cc and ICC support -MD to output dependencies as a
4303
# side effect of compilation, but ICC will put the dependencies in
4304
# the current directory while Tru64 will put them in the object
4308
am_cv_CXX_dependencies_compiler_type=none
4309
if test "$am_compiler_list" = ""; then
4310
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4313
case " $depcc " in #(
4314
*\ -arch\ *\ -arch\ *) am__universal=true ;;
4317
for depmode in $am_compiler_list; do
4318
# Setup a source with many dependencies, because some compilers
4319
# like to wrap large dependency lists on column 80 (with \), and
4320
# we should not choose a depcomp mode which is confused by this.
4322
# We need to recreate these files for each test, as the compiler may
4323
# overwrite some of them when testing with obscure command lines.
4324
# This happens at least with the AIX C compiler.
4326
for i in 1 2 3 4 5 6; do
4327
echo '#include "conftst'$i'.h"' >> sub/conftest.c
4328
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4329
# Solaris 8's {/usr,}/bin/sh.
4330
touch sub/conftst$i.h
4332
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4334
# We check with `-c' and `-o' for the sake of the "dashmstdout"
4335
# mode. It turns out that the SunPro C++ compiler does not properly
4336
# handle `-M -o', and we need to detect this. Also, some Intel
4337
# versions had trouble with output in subdirs
4338
am__obj=sub/conftest.${OBJEXT-o}
4339
am__minus_obj="-o $am__obj"
4342
# This depmode causes a compiler race in universal mode.
4343
test "$am__universal" = false || continue
4346
# after this tag, mechanisms are not by side-effect, so they'll
4347
# only be used when explicitly requested
4348
if test "x$enable_dependency_tracking" = xyes; then
4354
msvisualcpp | msvcmsys)
4355
# This compiler won't grok `-c -o', but also, the minuso test has
4356
# not run yet. These depmodes are late enough in the game, and
4357
# so weak that their functioning should not be impacted.
4358
am__obj=conftest.${OBJEXT-o}
4363
if depmode=$depmode \
4364
source=sub/conftest.c object=$am__obj \
4365
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4366
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4367
>/dev/null 2>conftest.err &&
4368
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4369
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4370
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4371
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4372
# icc doesn't choke on unknown options, it will just issue warnings
4373
# or remarks (even with -Werror). So we grep stderr for any message
4374
# that says an option was ignored or not supported.
4375
# When given -MP, icc 7.0 and 7.1 complain thusly:
4376
# icc: Command line warning: ignoring option '-M'; no argument required
4377
# The diagnosis changed in icc 8.0:
4378
# icc: Command line remark: option '-MP' not supported
4379
if (grep 'ignoring option' conftest.err ||
4380
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4381
am_cv_CXX_dependencies_compiler_type=$depmode
4390
am_cv_CXX_dependencies_compiler_type=none
4394
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4395
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4396
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4399
test "x$enable_dependency_tracking" != xno \
4400
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4401
am__fastdepCXX_TRUE=
4402
am__fastdepCXX_FALSE='#'
4404
am__fastdepCXX_TRUE='#'
4405
am__fastdepCXX_FALSE=
4410
ac_cpp='$CPP $CPPFLAGS'
4411
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4412
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4413
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4414
if test -n "$ac_tool_prefix"; then
4415
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4416
set dummy ${ac_tool_prefix}gcc; ac_word=$2
4417
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4418
$as_echo_n "checking for $ac_word... " >&6; }
4419
if test "${ac_cv_prog_CC+set}" = set; then :
4420
$as_echo_n "(cached) " >&6
4422
if test -n "$CC"; then
4423
ac_cv_prog_CC="$CC" # Let the user override the test.
4425
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4429
test -z "$as_dir" && as_dir=.
4430
for ac_exec_ext in '' $ac_executable_extensions; do
4431
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4432
ac_cv_prog_CC="${ac_tool_prefix}gcc"
4433
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4443
if test -n "$CC"; then
4444
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4445
$as_echo "$CC" >&6; }
4447
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4448
$as_echo "no" >&6; }
4453
if test -z "$ac_cv_prog_CC"; then
4455
# Extract the first word of "gcc", so it can be a program name with args.
4456
set dummy gcc; ac_word=$2
4457
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4458
$as_echo_n "checking for $ac_word... " >&6; }
4459
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4460
$as_echo_n "(cached) " >&6
4462
if test -n "$ac_ct_CC"; then
4463
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4465
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4469
test -z "$as_dir" && as_dir=.
4470
for ac_exec_ext in '' $ac_executable_extensions; do
4471
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4472
ac_cv_prog_ac_ct_CC="gcc"
4473
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4482
ac_ct_CC=$ac_cv_prog_ac_ct_CC
4483
if test -n "$ac_ct_CC"; then
4484
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4485
$as_echo "$ac_ct_CC" >&6; }
4487
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4488
$as_echo "no" >&6; }
4491
if test "x$ac_ct_CC" = x; then
4494
case $cross_compiling:$ac_tool_warned in
4496
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4497
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4498
ac_tool_warned=yes ;;
4506
if test -z "$CC"; then
4507
if test -n "$ac_tool_prefix"; then
4508
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4509
set dummy ${ac_tool_prefix}cc; ac_word=$2
4510
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4511
$as_echo_n "checking for $ac_word... " >&6; }
4512
if test "${ac_cv_prog_CC+set}" = set; then :
4513
$as_echo_n "(cached) " >&6
4515
if test -n "$CC"; then
4516
ac_cv_prog_CC="$CC" # Let the user override the test.
4518
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4522
test -z "$as_dir" && as_dir=.
4523
for ac_exec_ext in '' $ac_executable_extensions; do
4524
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4525
ac_cv_prog_CC="${ac_tool_prefix}cc"
4526
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4536
if test -n "$CC"; then
4537
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4538
$as_echo "$CC" >&6; }
4540
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4541
$as_echo "no" >&6; }
4547
if test -z "$CC"; then
4548
# Extract the first word of "cc", so it can be a program name with args.
4549
set dummy cc; ac_word=$2
4550
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4551
$as_echo_n "checking for $ac_word... " >&6; }
4552
if test "${ac_cv_prog_CC+set}" = set; then :
4553
$as_echo_n "(cached) " >&6
4555
if test -n "$CC"; then
4556
ac_cv_prog_CC="$CC" # Let the user override the test.
4559
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4563
test -z "$as_dir" && as_dir=.
4564
for ac_exec_ext in '' $ac_executable_extensions; do
4565
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4566
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4567
ac_prog_rejected=yes
4571
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4578
if test $ac_prog_rejected = yes; then
4579
# We found a bogon in the path, so make sure we never use it.
4580
set dummy $ac_cv_prog_CC
4582
if test $# != 0; then
4583
# We chose a different compiler from the bogus one.
4584
# However, it has the same basename, so the bogon will be chosen
4585
# first if we set CC to just the basename; use the full file name.
4587
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4593
if test -n "$CC"; then
4594
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4595
$as_echo "$CC" >&6; }
4597
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4598
$as_echo "no" >&6; }
4603
if test -z "$CC"; then
4604
if test -n "$ac_tool_prefix"; then
4605
for ac_prog in cl.exe
4607
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4608
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4609
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4610
$as_echo_n "checking for $ac_word... " >&6; }
4611
if test "${ac_cv_prog_CC+set}" = set; then :
4612
$as_echo_n "(cached) " >&6
4614
if test -n "$CC"; then
4615
ac_cv_prog_CC="$CC" # Let the user override the test.
4617
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4621
test -z "$as_dir" && as_dir=.
4622
for ac_exec_ext in '' $ac_executable_extensions; do
4623
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4624
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4625
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4635
if test -n "$CC"; then
4636
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4637
$as_echo "$CC" >&6; }
4639
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4640
$as_echo "no" >&6; }
4644
test -n "$CC" && break
4647
if test -z "$CC"; then
4649
for ac_prog in cl.exe
4651
# Extract the first word of "$ac_prog", so it can be a program name with args.
4652
set dummy $ac_prog; ac_word=$2
4653
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4654
$as_echo_n "checking for $ac_word... " >&6; }
4655
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4656
$as_echo_n "(cached) " >&6
4658
if test -n "$ac_ct_CC"; then
4659
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4661
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4665
test -z "$as_dir" && as_dir=.
4666
for ac_exec_ext in '' $ac_executable_extensions; do
4667
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4668
ac_cv_prog_ac_ct_CC="$ac_prog"
4669
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4678
ac_ct_CC=$ac_cv_prog_ac_ct_CC
4679
if test -n "$ac_ct_CC"; then
4680
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4681
$as_echo "$ac_ct_CC" >&6; }
4683
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4684
$as_echo "no" >&6; }
4688
test -n "$ac_ct_CC" && break
4691
if test "x$ac_ct_CC" = x; then
4694
case $cross_compiling:$ac_tool_warned in
4696
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4697
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4698
ac_tool_warned=yes ;;
4707
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4708
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4709
as_fn_error "no acceptable C compiler found in \$PATH
4710
See \`config.log' for more details." "$LINENO" 5; }
4712
# Provide some information about the compiler.
4713
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4716
for ac_option in --version -v -V -qversion; do
4717
{ { ac_try="$ac_compiler $ac_option >&5"
4719
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4720
*) ac_try_echo=$ac_try;;
4722
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4723
$as_echo "$ac_try_echo"; } >&5
4724
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
4726
if test -s conftest.err; then
4728
... rest of stderr output deleted ...
4729
10q' conftest.err >conftest.er1
4730
cat conftest.er1 >&5
4732
rm -f conftest.er1 conftest.err
4733
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4734
test $ac_status = 0; }
4737
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4738
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4739
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4740
$as_echo_n "(cached) " >&6
4742
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4743
/* end confdefs.h. */
4756
if ac_fn_c_try_compile "$LINENO"; then :
4761
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4762
ac_cv_c_compiler_gnu=$ac_compiler_gnu
4765
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4766
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4767
if test $ac_compiler_gnu = yes; then
4772
ac_test_CFLAGS=${CFLAGS+set}
4773
ac_save_CFLAGS=$CFLAGS
4774
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4775
$as_echo_n "checking whether $CC accepts -g... " >&6; }
4776
if test "${ac_cv_prog_cc_g+set}" = set; then :
4777
$as_echo_n "(cached) " >&6
4779
ac_save_c_werror_flag=$ac_c_werror_flag
4780
ac_c_werror_flag=yes
4783
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4784
/* end confdefs.h. */
4794
if ac_fn_c_try_compile "$LINENO"; then :
4798
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4799
/* end confdefs.h. */
4809
if ac_fn_c_try_compile "$LINENO"; then :
4812
ac_c_werror_flag=$ac_save_c_werror_flag
4814
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4815
/* end confdefs.h. */
4825
if ac_fn_c_try_compile "$LINENO"; then :
4828
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4830
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4832
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4833
ac_c_werror_flag=$ac_save_c_werror_flag
4835
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4836
$as_echo "$ac_cv_prog_cc_g" >&6; }
4837
if test "$ac_test_CFLAGS" = set; then
4838
CFLAGS=$ac_save_CFLAGS
4839
elif test $ac_cv_prog_cc_g = yes; then
4840
if test "$GCC" = yes; then
4846
if test "$GCC" = yes; then
4852
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4853
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4854
if test "${ac_cv_prog_cc_c89+set}" = set; then :
4855
$as_echo_n "(cached) " >&6
4857
ac_cv_prog_cc_c89=no
4859
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4860
/* end confdefs.h. */
4863
#include <sys/types.h>
4864
#include <sys/stat.h>
4865
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4866
struct buf { int x; };
4867
FILE * (*rcsopen) (struct buf *, struct stat *, int);
4868
static char *e (p, i)
4874
static char *f (char * (*g) (char **, int), char **p, ...)
4879
s = g (p, va_arg (v,int));
4884
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4885
function prototypes and stuff, but not '\xHH' hex character constants.
4886
These don't provoke an error unfortunately, instead are silently treated
4887
as 'x'. The following induces an error, until -std is added to get
4888
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4889
array size at least. It's necessary to write '\x00'==0 to get something
4890
that's true only with -std. */
4891
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4893
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4894
inside strings and character constants. */
4896
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4898
int test (int i, double x);
4899
struct s1 {int (*f) (int a);};
4900
struct s2 {int (*f) (double a);};
4901
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4907
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4912
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4913
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4915
CC="$ac_save_CC $ac_arg"
4916
if ac_fn_c_try_compile "$LINENO"; then :
4917
ac_cv_prog_cc_c89=$ac_arg
4919
rm -f core conftest.err conftest.$ac_objext
4920
test "x$ac_cv_prog_cc_c89" != "xno" && break
4922
rm -f conftest.$ac_ext
4927
case "x$ac_cv_prog_cc_c89" in
4929
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4930
$as_echo "none needed" >&6; } ;;
4932
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4933
$as_echo "unsupported" >&6; } ;;
4935
CC="$CC $ac_cv_prog_cc_c89"
4936
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4937
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4939
if test "x$ac_cv_prog_cc_c89" != xno; then :
4944
ac_cpp='$CPP $CPPFLAGS'
4945
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4946
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4947
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4949
depcc="$CC" am_compiler_list=
4951
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4952
$as_echo_n "checking dependency style of $depcc... " >&6; }
4953
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4954
$as_echo_n "(cached) " >&6
4956
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4957
# We make a subdir and do the tests there. Otherwise we can end up
4958
# making bogus files that we don't know about and never remove. For
4959
# instance it was reported that on HP-UX the gcc test will end up
4960
# making a dummy file named `D' -- because `-MD' means `put the output
4963
# Copy depcomp to subdir because otherwise we won't find it if we're
4964
# using a relative directory.
4965
cp "$am_depcomp" conftest.dir
4967
# We will build objects and dependencies in a subdirectory because
4968
# it helps to detect inapplicable dependency modes. For instance
4969
# both Tru64's cc and ICC support -MD to output dependencies as a
4970
# side effect of compilation, but ICC will put the dependencies in
4971
# the current directory while Tru64 will put them in the object
4975
am_cv_CC_dependencies_compiler_type=none
4976
if test "$am_compiler_list" = ""; then
4977
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4980
case " $depcc " in #(
4981
*\ -arch\ *\ -arch\ *) am__universal=true ;;
4984
for depmode in $am_compiler_list; do
4985
# Setup a source with many dependencies, because some compilers
4986
# like to wrap large dependency lists on column 80 (with \), and
4987
# we should not choose a depcomp mode which is confused by this.
4989
# We need to recreate these files for each test, as the compiler may
4990
# overwrite some of them when testing with obscure command lines.
4991
# This happens at least with the AIX C compiler.
4993
for i in 1 2 3 4 5 6; do
4994
echo '#include "conftst'$i'.h"' >> sub/conftest.c
4995
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4996
# Solaris 8's {/usr,}/bin/sh.
4997
touch sub/conftst$i.h
4999
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5001
# We check with `-c' and `-o' for the sake of the "dashmstdout"
5002
# mode. It turns out that the SunPro C++ compiler does not properly
5003
# handle `-M -o', and we need to detect this. Also, some Intel
5004
# versions had trouble with output in subdirs
5005
am__obj=sub/conftest.${OBJEXT-o}
5006
am__minus_obj="-o $am__obj"
5009
# This depmode causes a compiler race in universal mode.
5010
test "$am__universal" = false || continue
5013
# after this tag, mechanisms are not by side-effect, so they'll
5014
# only be used when explicitly requested
5015
if test "x$enable_dependency_tracking" = xyes; then
5021
msvisualcpp | msvcmsys)
5022
# This compiler won't grok `-c -o', but also, the minuso test has
5023
# not run yet. These depmodes are late enough in the game, and
5024
# so weak that their functioning should not be impacted.
5025
am__obj=conftest.${OBJEXT-o}
5030
if depmode=$depmode \
5031
source=sub/conftest.c object=$am__obj \
5032
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5033
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5034
>/dev/null 2>conftest.err &&
5035
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5036
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5037
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5038
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5039
# icc doesn't choke on unknown options, it will just issue warnings
5040
# or remarks (even with -Werror). So we grep stderr for any message
5041
# that says an option was ignored or not supported.
5042
# When given -MP, icc 7.0 and 7.1 complain thusly:
5043
# icc: Command line warning: ignoring option '-M'; no argument required
5044
# The diagnosis changed in icc 8.0:
5045
# icc: Command line remark: option '-MP' not supported
5046
if (grep 'ignoring option' conftest.err ||
5047
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5048
am_cv_CC_dependencies_compiler_type=$depmode
5057
am_cv_CC_dependencies_compiler_type=none
5061
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5062
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5063
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5066
test "x$enable_dependency_tracking" != xno \
5067
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5069
am__fastdepCC_FALSE='#'
5071
am__fastdepCC_TRUE='#'
5072
am__fastdepCC_FALSE=
5078
if test -n "$ac_tool_prefix"; then
5079
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5080
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5081
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5082
$as_echo_n "checking for $ac_word... " >&6; }
5083
if test "${ac_cv_prog_RANLIB+set}" = set; then :
5084
$as_echo_n "(cached) " >&6
5086
if test -n "$RANLIB"; then
5087
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5089
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5093
test -z "$as_dir" && as_dir=.
5094
for ac_exec_ext in '' $ac_executable_extensions; do
5095
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5096
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5097
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5106
RANLIB=$ac_cv_prog_RANLIB
5107
if test -n "$RANLIB"; then
5108
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5109
$as_echo "$RANLIB" >&6; }
5111
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5112
$as_echo "no" >&6; }
5117
if test -z "$ac_cv_prog_RANLIB"; then
5118
ac_ct_RANLIB=$RANLIB
5119
# Extract the first word of "ranlib", so it can be a program name with args.
5120
set dummy ranlib; ac_word=$2
5121
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5122
$as_echo_n "checking for $ac_word... " >&6; }
5123
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5124
$as_echo_n "(cached) " >&6
5126
if test -n "$ac_ct_RANLIB"; then
5127
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5129
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5133
test -z "$as_dir" && as_dir=.
5134
for ac_exec_ext in '' $ac_executable_extensions; do
5135
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5136
ac_cv_prog_ac_ct_RANLIB="ranlib"
5137
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5146
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5147
if test -n "$ac_ct_RANLIB"; then
5148
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5149
$as_echo "$ac_ct_RANLIB" >&6; }
5151
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5152
$as_echo "no" >&6; }
5155
if test "x$ac_ct_RANLIB" = x; then
5158
case $cross_compiling:$ac_tool_warned in
5160
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5161
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5162
ac_tool_warned=yes ;;
5164
RANLIB=$ac_ct_RANLIB
5167
RANLIB="$ac_cv_prog_RANLIB"
5170
for ac_prog in 'bison -y' byacc
5172
# Extract the first word of "$ac_prog", so it can be a program name with args.
5173
set dummy $ac_prog; ac_word=$2
5174
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5175
$as_echo_n "checking for $ac_word... " >&6; }
5176
if test "${ac_cv_prog_YACC+set}" = set; then :
5177
$as_echo_n "(cached) " >&6
5179
if test -n "$YACC"; then
5180
ac_cv_prog_YACC="$YACC" # Let the user override the test.
5182
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5186
test -z "$as_dir" && as_dir=.
5187
for ac_exec_ext in '' $ac_executable_extensions; do
5188
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5189
ac_cv_prog_YACC="$ac_prog"
5190
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5199
YACC=$ac_cv_prog_YACC
5200
if test -n "$YACC"; then
5201
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
5202
$as_echo "$YACC" >&6; }
5204
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5205
$as_echo "no" >&6; }
5209
test -n "$YACC" && break
5211
test -n "$YACC" || YACC="yacc"
5214
# Setting language choice
5216
ac_cpp='$CXXCPP $CPPFLAGS'
5217
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5218
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5219
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5222
# Enable system extensions
5225
ac_cpp='$CXXCPP $CPPFLAGS'
5226
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5227
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5228
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5229
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5230
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5231
if test -z "$CXXCPP"; then
5232
if test "${ac_cv_prog_CXXCPP+set}" = set; then :
5233
$as_echo_n "(cached) " >&6
5235
# Double quotes because CXXCPP needs to be expanded
5236
for CXXCPP in "$CXX -E" "/lib/cpp"
5239
for ac_cxx_preproc_warn_flag in '' yes
5241
# Use a header file that comes with gcc, so configuring glibc
5242
# with a fresh cross-compiler works.
5243
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5244
# <limits.h> exists even on freestanding compilers.
5245
# On the NeXT, cc -E runs the code through the compiler's parser,
5246
# not just through cpp. "Syntax error" is here to catch this case.
5247
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5248
/* end confdefs.h. */
5250
# include <limits.h>
5252
# include <assert.h>
5256
if ac_fn_cxx_try_cpp "$LINENO"; then :
5259
# Broken: fails on valid input.
5262
rm -f conftest.err conftest.$ac_ext
5264
# OK, works on sane cases. Now check whether nonexistent headers
5265
# can be detected and how.
5266
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5267
/* end confdefs.h. */
5268
#include <ac_nonexistent.h>
5270
if ac_fn_cxx_try_cpp "$LINENO"; then :
5271
# Broken: success on invalid input.
5274
# Passes both tests.
5278
rm -f conftest.err conftest.$ac_ext
5281
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5282
rm -f conftest.err conftest.$ac_ext
5283
if $ac_preproc_ok; then :
5288
ac_cv_prog_CXXCPP=$CXXCPP
5291
CXXCPP=$ac_cv_prog_CXXCPP
5293
ac_cv_prog_CXXCPP=$CXXCPP
5295
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5296
$as_echo "$CXXCPP" >&6; }
5298
for ac_cxx_preproc_warn_flag in '' yes
5300
# Use a header file that comes with gcc, so configuring glibc
5301
# with a fresh cross-compiler works.
5302
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5303
# <limits.h> exists even on freestanding compilers.
5304
# On the NeXT, cc -E runs the code through the compiler's parser,
5305
# not just through cpp. "Syntax error" is here to catch this case.
5306
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5307
/* end confdefs.h. */
5309
# include <limits.h>
5311
# include <assert.h>
5315
if ac_fn_cxx_try_cpp "$LINENO"; then :
5318
# Broken: fails on valid input.
5321
rm -f conftest.err conftest.$ac_ext
5323
# OK, works on sane cases. Now check whether nonexistent headers
5324
# can be detected and how.
5325
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5326
/* end confdefs.h. */
5327
#include <ac_nonexistent.h>
5329
if ac_fn_cxx_try_cpp "$LINENO"; then :
5330
# Broken: success on invalid input.
5333
# Passes both tests.
5337
rm -f conftest.err conftest.$ac_ext
5340
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5341
rm -f conftest.err conftest.$ac_ext
5342
if $ac_preproc_ok; then :
5345
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5346
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5347
as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
5348
See \`config.log' for more details." "$LINENO" 5; }
5352
ac_cpp='$CXXCPP $CPPFLAGS'
5353
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5354
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5355
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5358
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5359
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5360
if test "${ac_cv_path_GREP+set}" = set; then :
5361
$as_echo_n "(cached) " >&6
5363
if test -z "$GREP"; then
5364
ac_path_GREP_found=false
5365
# Loop through the user's path and test for each of PROGNAME-LIST
5366
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5367
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5370
test -z "$as_dir" && as_dir=.
5371
for ac_prog in grep ggrep; do
5372
for ac_exec_ext in '' $ac_executable_extensions; do
5373
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5374
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5375
# Check for GNU ac_path_GREP and select it if it is found.
5376
# Check for GNU $ac_path_GREP
5377
case `"$ac_path_GREP" --version 2>&1` in
5379
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5382
$as_echo_n 0123456789 >"conftest.in"
5385
cat "conftest.in" "conftest.in" >"conftest.tmp"
5386
mv "conftest.tmp" "conftest.in"
5387
cp "conftest.in" "conftest.nl"
5388
$as_echo 'GREP' >> "conftest.nl"
5389
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5390
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5391
as_fn_arith $ac_count + 1 && ac_count=$as_val
5392
if test $ac_count -gt ${ac_path_GREP_max-0}; then
5393
# Best one so far, save it but keep looking for a better one
5394
ac_cv_path_GREP="$ac_path_GREP"
5395
ac_path_GREP_max=$ac_count
5397
# 10*(2^10) chars as input seems more than enough
5398
test $ac_count -gt 10 && break
5400
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5403
$ac_path_GREP_found && break 3
5408
if test -z "$ac_cv_path_GREP"; then
5409
as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5412
ac_cv_path_GREP=$GREP
5416
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5417
$as_echo "$ac_cv_path_GREP" >&6; }
5418
GREP="$ac_cv_path_GREP"
5421
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5422
$as_echo_n "checking for egrep... " >&6; }
5423
if test "${ac_cv_path_EGREP+set}" = set; then :
5424
$as_echo_n "(cached) " >&6
5426
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5427
then ac_cv_path_EGREP="$GREP -E"
5429
if test -z "$EGREP"; then
5430
ac_path_EGREP_found=false
5431
# Loop through the user's path and test for each of PROGNAME-LIST
5432
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5433
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5436
test -z "$as_dir" && as_dir=.
5437
for ac_prog in egrep; do
5438
for ac_exec_ext in '' $ac_executable_extensions; do
5439
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5440
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5441
# Check for GNU ac_path_EGREP and select it if it is found.
5442
# Check for GNU $ac_path_EGREP
5443
case `"$ac_path_EGREP" --version 2>&1` in
5445
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5448
$as_echo_n 0123456789 >"conftest.in"
5451
cat "conftest.in" "conftest.in" >"conftest.tmp"
5452
mv "conftest.tmp" "conftest.in"
5453
cp "conftest.in" "conftest.nl"
5454
$as_echo 'EGREP' >> "conftest.nl"
5455
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5456
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5457
as_fn_arith $ac_count + 1 && ac_count=$as_val
5458
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5459
# Best one so far, save it but keep looking for a better one
5460
ac_cv_path_EGREP="$ac_path_EGREP"
5461
ac_path_EGREP_max=$ac_count
5463
# 10*(2^10) chars as input seems more than enough
5464
test $ac_count -gt 10 && break
5466
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5469
$ac_path_EGREP_found && break 3
5474
if test -z "$ac_cv_path_EGREP"; then
5475
as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5478
ac_cv_path_EGREP=$EGREP
5483
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5484
$as_echo "$ac_cv_path_EGREP" >&6; }
5485
EGREP="$ac_cv_path_EGREP"
5488
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5489
$as_echo_n "checking for ANSI C header files... " >&6; }
5490
if test "${ac_cv_header_stdc+set}" = set; then :
5491
$as_echo_n "(cached) " >&6
5493
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5494
/* end confdefs.h. */
5508
if ac_fn_cxx_try_compile "$LINENO"; then :
5509
ac_cv_header_stdc=yes
5511
ac_cv_header_stdc=no
5513
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5515
if test $ac_cv_header_stdc = yes; then
5516
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5517
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5518
/* end confdefs.h. */
5522
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5523
$EGREP "memchr" >/dev/null 2>&1; then :
5526
ac_cv_header_stdc=no
5532
if test $ac_cv_header_stdc = yes; then
5533
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5534
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5535
/* end confdefs.h. */
5539
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5540
$EGREP "free" >/dev/null 2>&1; then :
5543
ac_cv_header_stdc=no
5549
if test $ac_cv_header_stdc = yes; then
5550
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5551
if test "$cross_compiling" = yes; then :
5554
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5555
/* end confdefs.h. */
5558
#if ((' ' & 0x0FF) == 0x020)
5559
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5560
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5562
# define ISLOWER(c) \
5563
(('a' <= (c) && (c) <= 'i') \
5564
|| ('j' <= (c) && (c) <= 'r') \
5565
|| ('s' <= (c) && (c) <= 'z'))
5566
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5569
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5574
for (i = 0; i < 256; i++)
5575
if (XOR (islower (i), ISLOWER (i))
5576
|| toupper (i) != TOUPPER (i))
5581
if ac_fn_cxx_try_run "$LINENO"; then :
5584
ac_cv_header_stdc=no
5586
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5587
conftest.$ac_objext conftest.beam conftest.$ac_ext
5592
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5593
$as_echo "$ac_cv_header_stdc" >&6; }
5594
if test $ac_cv_header_stdc = yes; then
5596
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5600
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5601
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5602
inttypes.h stdint.h unistd.h
5604
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5605
ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5607
eval as_val=\$$as_ac_Header
5608
if test "x$as_val" = x""yes; then :
5609
cat >>confdefs.h <<_ACEOF
5610
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5619
ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5620
if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5627
if test "$MINIX" = yes; then
5629
$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5632
$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5635
$as_echo "#define _MINIX 1" >>confdefs.h
5640
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5641
$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5642
if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5643
$as_echo_n "(cached) " >&6
5645
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5646
/* end confdefs.h. */
5648
# define __EXTENSIONS__ 1
5649
$ac_includes_default
5658
if ac_fn_cxx_try_compile "$LINENO"; then :
5659
ac_cv_safe_to_define___extensions__=yes
5661
ac_cv_safe_to_define___extensions__=no
5663
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5665
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5666
$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5667
test $ac_cv_safe_to_define___extensions__ = yes &&
5668
$as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5670
$as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5672
$as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5674
$as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5676
$as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5680
# Check pkg-config is available
5687
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5688
if test -n "$ac_tool_prefix"; then
5689
# Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5690
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5691
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5692
$as_echo_n "checking for $ac_word... " >&6; }
5693
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
5694
$as_echo_n "(cached) " >&6
5698
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5701
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5705
test -z "$as_dir" && as_dir=.
5706
for ac_exec_ext in '' $ac_executable_extensions; do
5707
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5708
ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5709
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5719
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5720
if test -n "$PKG_CONFIG"; then
5721
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5722
$as_echo "$PKG_CONFIG" >&6; }
5724
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5725
$as_echo "no" >&6; }
5730
if test -z "$ac_cv_path_PKG_CONFIG"; then
5731
ac_pt_PKG_CONFIG=$PKG_CONFIG
5732
# Extract the first word of "pkg-config", so it can be a program name with args.
5733
set dummy pkg-config; ac_word=$2
5734
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5735
$as_echo_n "checking for $ac_word... " >&6; }
5736
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
5737
$as_echo_n "(cached) " >&6
5739
case $ac_pt_PKG_CONFIG in
5741
ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5744
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5748
test -z "$as_dir" && as_dir=.
5749
for ac_exec_ext in '' $ac_executable_extensions; do
5750
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5751
ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5752
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5762
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5763
if test -n "$ac_pt_PKG_CONFIG"; then
5764
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5765
$as_echo "$ac_pt_PKG_CONFIG" >&6; }
5767
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5768
$as_echo "no" >&6; }
5771
if test "x$ac_pt_PKG_CONFIG" = x; then
5774
case $cross_compiling:$ac_tool_warned in
5776
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5777
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5778
ac_tool_warned=yes ;;
5780
PKG_CONFIG=$ac_pt_PKG_CONFIG
5783
PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5787
if test -n "$PKG_CONFIG"; then
5788
_pkg_min_version=0.20
5789
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5790
$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5791
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5792
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5793
$as_echo "yes" >&6; }
5795
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5796
$as_echo "no" >&6; }
5801
# Checks for libraries.
5802
if test "x$with_libxml2" = "xyes"; then
5805
# Check whether --with-xml-prefix was given.
5806
if test "${with_xml_prefix+set}" = set; then :
5807
withval=$with_xml_prefix; xml_config_prefix="$withval"
5809
xml_config_prefix=""
5813
# Check whether --with-xml-exec-prefix was given.
5814
if test "${with_xml_exec_prefix+set}" = set; then :
5815
withval=$with_xml_exec_prefix; xml_config_exec_prefix="$withval"
5817
xml_config_exec_prefix=""
5820
# Check whether --enable-xmltest was given.
5821
if test "${enable_xmltest+set}" = set; then :
5822
enableval=$enable_xmltest;
5828
if test x$xml_config_exec_prefix != x ; then
5829
xml_config_args="$xml_config_args"
5830
if test x${XML2_CONFIG+set} != xset ; then
5831
XML2_CONFIG=$xml_config_exec_prefix/bin/xml2-config
5834
if test x$xml_config_prefix != x ; then
5835
xml_config_args="$xml_config_args --prefix=$xml_config_prefix"
5836
if test x${XML2_CONFIG+set} != xset ; then
5837
XML2_CONFIG=$xml_config_prefix/bin/xml2-config
5841
# Extract the first word of "xml2-config", so it can be a program name with args.
5842
set dummy xml2-config; ac_word=$2
5843
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5844
$as_echo_n "checking for $ac_word... " >&6; }
5845
if test "${ac_cv_path_XML2_CONFIG+set}" = set; then :
5846
$as_echo_n "(cached) " >&6
5848
case $XML2_CONFIG in
5850
ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
5853
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5857
test -z "$as_dir" && as_dir=.
5858
for ac_exec_ext in '' $ac_executable_extensions; do
5859
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5860
ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5861
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5868
test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG="no"
5872
XML2_CONFIG=$ac_cv_path_XML2_CONFIG
5873
if test -n "$XML2_CONFIG"; then
5874
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML2_CONFIG" >&5
5875
$as_echo "$XML2_CONFIG" >&6; }
5877
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5878
$as_echo "no" >&6; }
5882
min_xml_version=2.6.24
5883
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml - version >= $min_xml_version" >&5
5884
$as_echo_n "checking for libxml - version >= $min_xml_version... " >&6; }
5886
if test "$XML2_CONFIG" = "no" ; then
5889
XML_CPPFLAGS=`$XML2_CONFIG $xml_config_args --cflags`
5890
XML_LIBS=`$XML2_CONFIG $xml_config_args --libs`
5891
xml_config_major_version=`$XML2_CONFIG $xml_config_args --version | \
5892
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
5893
xml_config_minor_version=`$XML2_CONFIG $xml_config_args --version | \
5894
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
5895
xml_config_micro_version=`$XML2_CONFIG $xml_config_args --version | \
5896
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
5897
if test "x$enable_xmltest" = "xyes" ; then
5898
ac_save_CPPFLAGS="$CPPFLAGS"
5899
ac_save_LIBS="$LIBS"
5900
CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
5901
LIBS="$XML_LIBS $LIBS"
5903
if test "$cross_compiling" = yes; then :
5904
echo $ac_n "cross compiling; assumed OK... $ac_c"
5906
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5907
/* end confdefs.h. */
5912
#include <libxml/xmlversion.h>
5917
int xml_major_version, xml_minor_version, xml_micro_version;
5918
int major, minor, micro;
5921
system("touch conf.xmltest");
5923
/* Capture xml2-config output via autoconf/configure variables */
5924
/* HP/UX 9 (%@#!) writes to sscanf strings */
5925
tmp_version = (char *)strdup("$min_xml_version");
5926
if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
5927
printf("%s, bad version string from xml2-config\n", "$min_xml_version");
5932
/* Capture the version information from the header files */
5933
tmp_version = (char *)strdup(LIBXML_DOTTED_VERSION);
5934
if (sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
5935
printf("%s, bad version string from libxml includes\n", "LIBXML_DOTTED_VERSION");
5940
/* Compare xml2-config output to the libxml headers */
5941
if ((xml_major_version != $xml_config_major_version) ||
5942
(xml_minor_version != $xml_config_minor_version) ||
5943
(xml_micro_version != $xml_config_micro_version))
5945
printf("*** libxml header files (version %d.%d.%d) do not match\n",
5946
xml_major_version, xml_minor_version, xml_micro_version);
5947
printf("*** xml2-config (version %d.%d.%d)\n",
5948
$xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version);
5951
/* Compare the headers to the library to make sure we match */
5952
/* Less than ideal -- doesn't provide us with return value feedback,
5953
* only exits if there's a serious mismatch between header and library.
5955
LIBXML_TEST_VERSION;
5957
/* Test that the library is greater than our minimum version */
5958
if ((xml_major_version > major) ||
5959
((xml_major_version == major) && (xml_minor_version > minor)) ||
5960
((xml_major_version == major) && (xml_minor_version == minor) &&
5961
(xml_micro_version >= micro)))
5967
printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
5968
xml_major_version, xml_minor_version, xml_micro_version);
5969
printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
5970
major, minor, micro);
5971
printf("*** libxml is always available from ftp://ftp.xmlsoft.org.\n");
5973
printf("*** If you have already installed a sufficiently new version, this error\n");
5974
printf("*** probably means that the wrong copy of the xml2-config shell script is\n");
5975
printf("*** being found. The easiest way to fix this is to remove the old version\n");
5976
printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n");
5977
printf("*** correct copy of xml2-config. (In this case, you will have to\n");
5978
printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
5979
printf("*** so that the correct libraries are found at run-time))\n");
5985
if ac_fn_cxx_try_run "$LINENO"; then :
5990
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5991
conftest.$ac_objext conftest.beam conftest.$ac_ext
5994
CPPFLAGS="$ac_save_CPPFLAGS"
5995
LIBS="$ac_save_LIBS"
5999
if test "x$no_xml" = x ; then
6000
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&5
6001
$as_echo "yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&6; }
6004
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6005
$as_echo "no" >&6; }
6006
if test "$XML2_CONFIG" = "no" ; then
6007
echo "*** The xml2-config script installed by LIBXML could not be found"
6008
echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in"
6009
echo "*** your path, or set the XML2_CONFIG environment variable to the"
6010
echo "*** full path to xml2-config."
6012
if test -f conf.xmltest ; then
6015
echo "*** Could not run libxml test program, checking why..."
6016
CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
6017
LIBS="$LIBS $XML_LIBS"
6018
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6019
/* end confdefs.h. */
6021
#include <libxml/xmlversion.h>
6027
LIBXML_TEST_VERSION; return 0;
6032
if ac_fn_cxx_try_link "$LINENO"; then :
6033
echo "*** The test program compiled, but did not run. This usually means"
6034
echo "*** that the run-time linker is not finding LIBXML or finding the wrong"
6035
echo "*** version of LIBXML. If it is not finding LIBXML, you'll need to set your"
6036
echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
6037
echo "*** to the installed location Also, make sure you have run ldconfig if that"
6038
echo "*** is required on your system"
6040
echo "*** If you have an old version installed, it is best to remove it, although"
6041
echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
6043
echo "*** The test program failed to compile or link. See the file config.log for the"
6044
echo "*** exact error that occured. This usually means LIBXML was incorrectly installed"
6045
echo "*** or that you have moved LIBXML since it was installed. In the latter case, you"
6046
echo "*** may want to edit the xml2-config script: $XML2_CONFIG"
6048
rm -f core conftest.err conftest.$ac_objext \
6049
conftest$ac_exeext conftest.$ac_ext
6050
CPPFLAGS="$ac_save_CPPFLAGS"
6051
LIBS="$ac_save_LIBS"
6063
if test "x$have_libxml2" = "xyes"; then
6065
$as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
6067
elif test "x$with_libxml2_requested" = "xyes"; then
6068
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6069
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6070
as_fn_error "libxml2 is requested but not found in the system.
6071
See \`config.log' for more details." "$LINENO" 5; }
6075
if test "x$with_libexpat" = "xyes" && test "x$have_libxml2" != "xyes"; then
6078
# Check whether --with-libexpat-prefix was given.
6079
if test "${with_libexpat_prefix+set}" = set; then :
6080
withval=$with_libexpat_prefix; libexpat_prefix=$withval
6086
if test "x$libexpat_prefix" = "x"; then
6087
libexpat_prefix="/usr"
6090
libexpat_prefix_lib=$libexpat_prefix/lib
6091
libexpat_prefix_include=$libexpat_prefix/include
6094
CPPFLAGS_save=$CPPFLAGS
6096
LIBS="-L$libexpat_prefix_lib $LIBS"
6097
CPPFLAGS="-I$libexpat_prefix_include $CPPFLAGS"
6099
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML_ParserCreate in -lexpat" >&5
6100
$as_echo_n "checking for XML_ParserCreate in -lexpat... " >&6; }
6101
if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then :
6102
$as_echo_n "(cached) " >&6
6104
ac_check_lib_save_LIBS=$LIBS
6105
LIBS="-lexpat $LIBS"
6106
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6107
/* end confdefs.h. */
6109
/* Override any GCC internal prototype to avoid an error.
6110
Use char because int might match the return type of a GCC
6111
builtin and then its argument prototype would still apply. */
6115
char XML_ParserCreate ();
6119
return XML_ParserCreate ();
6124
if ac_fn_cxx_try_link "$LINENO"; then :
6125
ac_cv_lib_expat_XML_ParserCreate=yes
6127
ac_cv_lib_expat_XML_ParserCreate=no
6129
rm -f core conftest.err conftest.$ac_objext \
6130
conftest$ac_exeext conftest.$ac_ext
6131
LIBS=$ac_check_lib_save_LIBS
6133
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
6134
$as_echo "$ac_cv_lib_expat_XML_ParserCreate" >&6; }
6135
if test "x$ac_cv_lib_expat_XML_ParserCreate" = x""yes; then :
6139
if test "x$have_libexpat" = "xyes"; then
6141
$as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
6143
LIBEXPAT_LIBS="-L$libexpat_prefix_lib -lexpat"
6144
LIBEXPAT_CPPFLAGS="-I$libexpat_prefix_include"
6150
CPPFLAGS=$CPPFLAGS_save
6153
if test "x$have_libexpat" != "xyes" &&
6154
test "x$with_libexpat_requested" = "xyes"; then
6155
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6156
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6157
as_fn_error "libexpat is requested but not found in the system.
6158
See \`config.log' for more details." "$LINENO" 5; }
6162
if test "x$with_sqlite3" = "xyes"; then
6165
# Check whether --with-sqlite3-prefix was given.
6166
if test "${with_sqlite3_prefix+set}" = set; then :
6167
withval=$with_sqlite3_prefix; sqlite3_prefix=$withval
6172
if test "x$sqlite3_prefix" = "x"; then
6173
sqlite3_prefix="/usr"
6177
CPPFLAGS_save=$CPPFLAGS
6181
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLITE3" >&5
6182
$as_echo_n "checking for SQLITE3... " >&6; }
6184
if test -n "$SQLITE3_CFLAGS"; then
6185
pkg_cv_SQLITE3_CFLAGS="$SQLITE3_CFLAGS"
6186
elif test -n "$PKG_CONFIG"; then
6187
if test -n "$PKG_CONFIG" && \
6188
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
6189
($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
6191
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6192
test $ac_status = 0; }; then
6193
pkg_cv_SQLITE3_CFLAGS=`$PKG_CONFIG --cflags "sqlite3" 2>/dev/null`
6200
if test -n "$SQLITE3_LIBS"; then
6201
pkg_cv_SQLITE3_LIBS="$SQLITE3_LIBS"
6202
elif test -n "$PKG_CONFIG"; then
6203
if test -n "$PKG_CONFIG" && \
6204
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
6205
($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
6207
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6208
test $ac_status = 0; }; then
6209
pkg_cv_SQLITE3_LIBS=`$PKG_CONFIG --libs "sqlite3" 2>/dev/null`
6219
if test $pkg_failed = yes; then
6220
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6221
$as_echo "no" >&6; }
6223
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6224
_pkg_short_errors_supported=yes
6226
_pkg_short_errors_supported=no
6228
if test $_pkg_short_errors_supported = yes; then
6229
SQLITE3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "sqlite3" 2>&1`
6231
SQLITE3_PKG_ERRORS=`$PKG_CONFIG --print-errors "sqlite3" 2>&1`
6233
# Put the nasty error message in config.log where it belongs
6234
echo "$SQLITE3_PKG_ERRORS" >&5
6237
elif test $pkg_failed = untried; then
6238
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6239
$as_echo "no" >&6; }
6242
SQLITE3_CFLAGS=$pkg_cv_SQLITE3_CFLAGS
6243
SQLITE3_LIBS=$pkg_cv_SQLITE3_LIBS
6244
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6245
$as_echo "yes" >&6; }
6249
if test "x$have_sqlite3" != "xyes"; then
6250
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $SQLITE3_PKG_ERRORS" >&5
6251
$as_echo "$as_me: WARNING: $SQLITE3_PKG_ERRORS" >&2;}
6253
sqlite3_prefix_lib=$sqlite3_prefix/lib
6254
sqlite3_prefix_include=$sqlite3_prefix/include
6256
LIBS="-L$sqlite3_prefix_lib $LIBS"
6257
CPPFLAGS="-I$sqlite3_prefix_include $CPPFLAGS"
6259
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_open in -lsqlite3" >&5
6260
$as_echo_n "checking for sqlite3_open in -lsqlite3... " >&6; }
6261
if test "${ac_cv_lib_sqlite3_sqlite3_open+set}" = set; then :
6262
$as_echo_n "(cached) " >&6
6264
ac_check_lib_save_LIBS=$LIBS
6265
LIBS="-lsqlite3 $LIBS"
6266
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6267
/* end confdefs.h. */
6269
/* Override any GCC internal prototype to avoid an error.
6270
Use char because int might match the return type of a GCC
6271
builtin and then its argument prototype would still apply. */
6275
char sqlite3_open ();
6279
return sqlite3_open ();
6284
if ac_fn_cxx_try_link "$LINENO"; then :
6285
ac_cv_lib_sqlite3_sqlite3_open=yes
6287
ac_cv_lib_sqlite3_sqlite3_open=no
6289
rm -f core conftest.err conftest.$ac_objext \
6290
conftest$ac_exeext conftest.$ac_ext
6291
LIBS=$ac_check_lib_save_LIBS
6293
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_open" >&5
6294
$as_echo "$ac_cv_lib_sqlite3_sqlite3_open" >&6; }
6295
if test "x$ac_cv_lib_sqlite3_sqlite3_open" = x""yes; then :
6299
if test "x$have_sqlite3" = "xyes"; then
6300
SQLITE3_LIBS="-L$sqlite3_prefix_lib -lsqlite3"
6301
SQLITE3_CFLAGS="-I$sqlite3_prefix_include"
6304
if test "x$have_sqlite3" = "xyes"; then
6305
LIBS="$SQLITE3_LIBS $LIBS"
6306
CPPFLAGS="$SQLITE3_CFLAGS $CPPFLAGS"
6307
for ac_func in sqlite3_open_v2
6309
ac_fn_cxx_check_func "$LINENO" "sqlite3_open_v2" "ac_cv_func_sqlite3_open_v2"
6310
if test "x$ac_cv_func_sqlite3_open_v2" = x""yes; then :
6311
cat >>confdefs.h <<_ACEOF
6312
#define HAVE_SQLITE3_OPEN_V2 1
6319
$as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
6326
CPPFLAGS=$CPPFLAGS_save
6329
if test "x$have_sqlite3" != "xyes" &&
6330
test "x$with_sqlite3_requested" = "xyes"; then
6331
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6332
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6333
as_fn_error "sqlite3 is requested but not found in the system.
6334
See \`config.log' for more details." "$LINENO" 5; }
6338
if test "x$with_gnutls" = "xyes"; then
6339
# gnutls >= 2.8 doesn't have libgnutls-config anymore.
6340
# First check the presence of libgnutls using pkg-config.
6343
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGNUTLS" >&5
6344
$as_echo_n "checking for LIBGNUTLS... " >&6; }
6346
if test -n "$LIBGNUTLS_CFLAGS"; then
6347
pkg_cv_LIBGNUTLS_CFLAGS="$LIBGNUTLS_CFLAGS"
6348
elif test -n "$PKG_CONFIG"; then
6349
if test -n "$PKG_CONFIG" && \
6350
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= 1.2.9\""; } >&5
6351
($PKG_CONFIG --exists --print-errors "gnutls >= 1.2.9") 2>&5
6353
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6354
test $ac_status = 0; }; then
6355
pkg_cv_LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 1.2.9" 2>/dev/null`
6362
if test -n "$LIBGNUTLS_LIBS"; then
6363
pkg_cv_LIBGNUTLS_LIBS="$LIBGNUTLS_LIBS"
6364
elif test -n "$PKG_CONFIG"; then
6365
if test -n "$PKG_CONFIG" && \
6366
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= 1.2.9\""; } >&5
6367
($PKG_CONFIG --exists --print-errors "gnutls >= 1.2.9") 2>&5
6369
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6370
test $ac_status = 0; }; then
6371
pkg_cv_LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 1.2.9" 2>/dev/null`
6381
if test $pkg_failed = yes; then
6382
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6383
$as_echo "no" >&6; }
6385
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6386
_pkg_short_errors_supported=yes
6388
_pkg_short_errors_supported=no
6390
if test $_pkg_short_errors_supported = yes; then
6391
LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gnutls >= 1.2.9" 2>&1`
6393
LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --print-errors "gnutls >= 1.2.9" 2>&1`
6395
# Put the nasty error message in config.log where it belongs
6396
echo "$LIBGNUTLS_PKG_ERRORS" >&5
6399
elif test $pkg_failed = untried; then
6400
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6401
$as_echo "no" >&6; }
6404
LIBGNUTLS_CFLAGS=$pkg_cv_LIBGNUTLS_CFLAGS
6405
LIBGNUTLS_LIBS=$pkg_cv_LIBGNUTLS_LIBS
6406
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6407
$as_echo "yes" >&6; }
6410
# If no libgnutls found by pkg-config, fall back to old macro
6411
if test "x$have_libgnutls" = "xno"; then
6412
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $LIBGNUTLS_PKG_ERRORS" >&5
6413
$as_echo "$as_me: WARNING: $LIBGNUTLS_PKG_ERRORS" >&2;}
6415
# Check whether --with-libgnutls-prefix was given.
6416
if test "${with_libgnutls_prefix+set}" = set; then :
6417
withval=$with_libgnutls_prefix; libgnutls_config_prefix="$withval"
6419
libgnutls_config_prefix=""
6423
if test x$libgnutls_config_prefix != x ; then
6424
if test x${LIBGNUTLS_CONFIG+set} != xset ; then
6425
LIBGNUTLS_CONFIG=$libgnutls_config_prefix/bin/libgnutls-config
6429
# Extract the first word of "libgnutls-config", so it can be a program name with args.
6430
set dummy libgnutls-config; ac_word=$2
6431
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6432
$as_echo_n "checking for $ac_word... " >&6; }
6433
if test "${ac_cv_path_LIBGNUTLS_CONFIG+set}" = set; then :
6434
$as_echo_n "(cached) " >&6
6436
case $LIBGNUTLS_CONFIG in
6438
ac_cv_path_LIBGNUTLS_CONFIG="$LIBGNUTLS_CONFIG" # Let the user override the test with a path.
6441
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6445
test -z "$as_dir" && as_dir=.
6446
for ac_exec_ext in '' $ac_executable_extensions; do
6447
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6448
ac_cv_path_LIBGNUTLS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6449
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6456
test -z "$ac_cv_path_LIBGNUTLS_CONFIG" && ac_cv_path_LIBGNUTLS_CONFIG="no"
6460
LIBGNUTLS_CONFIG=$ac_cv_path_LIBGNUTLS_CONFIG
6461
if test -n "$LIBGNUTLS_CONFIG"; then
6462
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CONFIG" >&5
6463
$as_echo "$LIBGNUTLS_CONFIG" >&6; }
6465
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6466
$as_echo "no" >&6; }
6470
min_libgnutls_version=1.2.9
6471
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgnutls - version >= $min_libgnutls_version" >&5
6472
$as_echo_n "checking for libgnutls - version >= $min_libgnutls_version... " >&6; }
6474
if test "$LIBGNUTLS_CONFIG" = "no" ; then
6477
LIBGNUTLS_CFLAGS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --cflags`
6478
LIBGNUTLS_LIBS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --libs`
6479
libgnutls_config_version=`$LIBGNUTLS_CONFIG $libgnutls_config_args --version`
6482
ac_save_CFLAGS="$CFLAGS"
6483
ac_save_LIBS="$LIBS"
6484
CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
6485
LIBS="$LIBS $LIBGNUTLS_LIBS"
6486
rm -f conf.libgnutlstest
6487
if test "$cross_compiling" = yes; then :
6488
echo $ac_n "cross compiling; assumed OK... $ac_c"
6490
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6491
/* end confdefs.h. */
6496
#include <gnutls/gnutls.h>
6501
system ("touch conf.libgnutlstest");
6503
if( strcmp( gnutls_check_version(NULL), "$libgnutls_config_version" ) )
6505
printf("\n*** 'libgnutls-config --version' returned %s, but LIBGNUTLS (%s)\n",
6506
"$libgnutls_config_version", gnutls_check_version(NULL) );
6507
printf("*** was found! If libgnutls-config was correct, then it is best\n");
6508
printf("*** to remove the old version of LIBGNUTLS. You may also be able to fix the error\n");
6509
printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
6510
printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
6511
printf("*** required on your system.\n");
6512
printf("*** If libgnutls-config was wrong, set the environment variable LIBGNUTLS_CONFIG\n");
6513
printf("*** to point to the correct copy of libgnutls-config, and remove the file config.cache\n");
6514
printf("*** before re-running configure\n");
6516
else if ( strcmp(gnutls_check_version(NULL), LIBGNUTLS_VERSION ) )
6518
printf("\n*** LIBGNUTLS header file (version %s) does not match\n", LIBGNUTLS_VERSION);
6519
printf("*** library (version %s)\n", gnutls_check_version(NULL) );
6523
if ( gnutls_check_version( "$min_libgnutls_version" ) )
6529
printf("no\n*** An old version of LIBGNUTLS (%s) was found.\n",
6530
gnutls_check_version(NULL) );
6531
printf("*** You need a version of LIBGNUTLS newer than %s. The latest version of\n",
6532
"$min_libgnutls_version" );
6533
printf("*** LIBGNUTLS is always available from ftp://gnutls.hellug.gr/pub/gnutls.\n");
6535
printf("*** If you have already installed a sufficiently new version, this error\n");
6536
printf("*** probably means that the wrong copy of the libgnutls-config shell script is\n");
6537
printf("*** being found. The easiest way to fix this is to remove the old version\n");
6538
printf("*** of LIBGNUTLS, but you can also set the LIBGNUTLS_CONFIG environment to point to the\n");
6539
printf("*** correct copy of libgnutls-config. (In this case, you will have to\n");
6540
printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
6541
printf("*** so that the correct libraries are found at run-time))\n");
6548
if ac_fn_cxx_try_run "$LINENO"; then :
6553
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6554
conftest.$ac_objext conftest.beam conftest.$ac_ext
6557
CFLAGS="$ac_save_CFLAGS"
6558
LIBS="$ac_save_LIBS"
6561
if test "x$no_libgnutls" = x ; then
6562
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6563
$as_echo "yes" >&6; }
6566
if test -f conf.libgnutlstest ; then
6569
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6570
$as_echo "no" >&6; }
6572
if test "$LIBGNUTLS_CONFIG" = "no" ; then
6573
echo "*** The libgnutls-config script installed by LIBGNUTLS could not be found"
6574
echo "*** If LIBGNUTLS was installed in PREFIX, make sure PREFIX/bin is in"
6575
echo "*** your path, or set the LIBGNUTLS_CONFIG environment variable to the"
6576
echo "*** full path to libgnutls-config."
6578
if test -f conf.libgnutlstest ; then
6581
echo "*** Could not run libgnutls test program, checking why..."
6582
CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
6583
LIBS="$LIBS $LIBGNUTLS_LIBS"
6584
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6585
/* end confdefs.h. */
6590
#include <gnutls/gnutls.h>
6595
return !!gnutls_check_version(NULL);
6600
if ac_fn_cxx_try_link "$LINENO"; then :
6601
echo "*** The test program compiled, but did not run. This usually means"
6602
echo "*** that the run-time linker is not finding LIBGNUTLS or finding the wrong"
6603
echo "*** version of LIBGNUTLS. If it is not finding LIBGNUTLS, you'll need to set your"
6604
echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
6605
echo "*** to the installed location Also, make sure you have run ldconfig if that"
6606
echo "*** is required on your system"
6608
echo "*** If you have an old version installed, it is best to remove it, although"
6609
echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
6612
echo "*** The test program failed to compile or link. See the file config.log for the"
6613
echo "*** exact error that occured. This usually means LIBGNUTLS was incorrectly installed"
6614
echo "*** or that you have moved LIBGNUTLS since it was installed. In the latter case, you"
6615
echo "*** may want to edit the libgnutls-config script: $LIBGNUTLS_CONFIG"
6617
rm -f core conftest.err conftest.$ac_objext \
6618
conftest$ac_exeext conftest.$ac_ext
6619
CFLAGS="$ac_save_CFLAGS"
6620
LIBS="$ac_save_LIBS"
6627
rm -f conf.libgnutlstest
6632
if test "x$have_libgnutls" = "xyes"; then
6634
$as_echo "#define HAVE_LIBGNUTLS 1" >>confdefs.h
6636
elif test "x$with_gnutls_requested" = "xyes"; then
6637
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6638
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6639
as_fn_error "gnutls is requested but not found in the system.
6640
See \`config.log' for more details." "$LINENO" 5; }
6646
if test "x$have_libgnutls" = "xyes"; then
6648
# Check whether --with-libgcrypt-prefix was given.
6649
if test "${with_libgcrypt_prefix+set}" = set; then :
6650
withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval"
6652
libgcrypt_config_prefix=""
6655
if test x$libgcrypt_config_prefix != x ; then
6656
if test x${LIBGCRYPT_CONFIG+set} != xset ; then
6657
LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config
6661
# Extract the first word of "libgcrypt-config", so it can be a program name with args.
6662
set dummy libgcrypt-config; ac_word=$2
6663
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6664
$as_echo_n "checking for $ac_word... " >&6; }
6665
if test "${ac_cv_path_LIBGCRYPT_CONFIG+set}" = set; then :
6666
$as_echo_n "(cached) " >&6
6668
case $LIBGCRYPT_CONFIG in
6670
ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
6673
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6677
test -z "$as_dir" && as_dir=.
6678
for ac_exec_ext in '' $ac_executable_extensions; do
6679
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6680
ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6681
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6688
test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
6692
LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
6693
if test -n "$LIBGCRYPT_CONFIG"; then
6694
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPT_CONFIG" >&5
6695
$as_echo "$LIBGCRYPT_CONFIG" >&6; }
6697
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6698
$as_echo "no" >&6; }
6703
if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
6704
req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
6705
min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
6708
min_libgcrypt_version="$tmp"
6711
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
6712
$as_echo_n "checking for LIBGCRYPT - version >= $min_libgcrypt_version... " >&6; }
6714
if test "$LIBGCRYPT_CONFIG" != "no" ; then
6715
req_major=`echo $min_libgcrypt_version | \
6716
sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
6717
req_minor=`echo $min_libgcrypt_version | \
6718
sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
6719
req_micro=`echo $min_libgcrypt_version | \
6720
sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
6721
libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
6722
major=`echo $libgcrypt_config_version | \
6723
sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
6724
minor=`echo $libgcrypt_config_version | \
6725
sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
6726
micro=`echo $libgcrypt_config_version | \
6727
sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
6728
if test "$major" -gt "$req_major"; then
6731
if test "$major" -eq "$req_major"; then
6732
if test "$minor" -gt "$req_minor"; then
6735
if test "$minor" -eq "$req_minor"; then
6736
if test "$micro" -ge "$req_micro"; then
6744
if test $ok = yes; then
6745
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($libgcrypt_config_version)" >&5
6746
$as_echo "yes ($libgcrypt_config_version)" >&6; }
6748
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6749
$as_echo "no" >&6; }
6751
if test $ok = yes; then
6752
# If we have a recent libgcrypt, we should also check that the
6754
if test "$req_libgcrypt_api" -gt 0 ; then
6755
tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
6756
if test "$tmp" -gt 0 ; then
6757
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGCRYPT API version" >&5
6758
$as_echo_n "checking LIBGCRYPT API version... " >&6; }
6759
if test "$req_libgcrypt_api" -eq "$tmp" ; then
6760
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
6761
$as_echo "okay" >&6; }
6764
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_libgcrypt_api got=$tmp" >&5
6765
$as_echo "does not match. want=$req_libgcrypt_api got=$tmp" >&6; }
6770
if test $ok = yes; then
6771
LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
6772
LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
6782
if test "x$have_libgcrypt" = "xyes"; then
6784
$as_echo "#define HAVE_LIBGCRYPT 1" >>confdefs.h
6789
if test "x$with_openssl" = "xyes" && test "x$have_libgnutls" != "xyes"; then
6792
# Check whether --with-openssl-prefix was given.
6793
if test "${with_openssl_prefix+set}" = set; then :
6794
withval=$with_openssl_prefix; openssl_prefix=$withval
6800
if test "x$openssl_prefix" = "x"; then
6801
openssl_prefix="/usr/local"
6805
CPPFLAGS_save=$CPPFLAGS
6807
PKG_CONFIG="$openssl_prefix/bin/pkg-config"
6808
if test -x $PKG_CONFIG; then
6809
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking checking availability of openssl using pkg-config" >&5
6810
$as_echo_n "checking checking availability of openssl using pkg-config... " >&6; }
6811
$PKG_CONFIG --exists openssl
6812
if test "$?" = "0"; then
6813
# Use pkg-config to detect LIBS and CFLAGS
6814
OPENSSL_LIBS=`$PKG_CONFIG --libs openssl`
6815
OPENSSL_CFLAGS=`$PKG_CONFIG --cflags openssl`
6817
LIBS="$OPENSSL_LIBS $LIBS"
6818
CPPFLAGS="$OPENSSL_CFLAGS $CPPFLAGS"
6820
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6821
$as_echo "yes" >&6; }
6823
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6824
$as_echo "no" >&6; }
6827
if test "x$have_openssl" != "xyes"; then
6828
openssl_prefix_lib=$openssl_prefix/lib
6829
openssl_prefix_include=$openssl_prefix/include
6831
LIBS="-L$openssl_prefix_lib $LIBS"
6832
CPPFLAGS="-I$openssl_prefix_include $CPPFLAGS"
6834
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_library_init in -lssl" >&5
6835
$as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
6836
if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then :
6837
$as_echo_n "(cached) " >&6
6839
ac_check_lib_save_LIBS=$LIBS
6841
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6842
/* end confdefs.h. */
6844
/* Override any GCC internal prototype to avoid an error.
6845
Use char because int might match the return type of a GCC
6846
builtin and then its argument prototype would still apply. */
6850
char SSL_library_init ();
6854
return SSL_library_init ();
6859
if ac_fn_cxx_try_link "$LINENO"; then :
6860
ac_cv_lib_ssl_SSL_library_init=yes
6862
ac_cv_lib_ssl_SSL_library_init=no
6864
rm -f core conftest.err conftest.$ac_objext \
6865
conftest$ac_exeext conftest.$ac_ext
6866
LIBS=$ac_check_lib_save_LIBS
6868
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_library_init" >&5
6869
$as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
6870
if test "x$ac_cv_lib_ssl_SSL_library_init" = x""yes; then :
6871
have_openssl=yes LIBS="-lssl $LIBS"
6874
if test "x$have_openssl" = "xyes"; then
6876
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lcrypto" >&5
6877
$as_echo_n "checking for main in -lcrypto... " >&6; }
6878
if test "${ac_cv_lib_crypto_main+set}" = set; then :
6879
$as_echo_n "(cached) " >&6
6881
ac_check_lib_save_LIBS=$LIBS
6882
LIBS="-lcrypto $LIBS"
6883
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6884
/* end confdefs.h. */
6895
if ac_fn_cxx_try_link "$LINENO"; then :
6896
ac_cv_lib_crypto_main=yes
6898
ac_cv_lib_crypto_main=no
6900
rm -f core conftest.err conftest.$ac_objext \
6901
conftest$ac_exeext conftest.$ac_ext
6902
LIBS=$ac_check_lib_save_LIBS
6904
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_main" >&5
6905
$as_echo "$ac_cv_lib_crypto_main" >&6; }
6906
if test "x$ac_cv_lib_crypto_main" = x""yes; then :
6907
have_openssl=yes; LIBS="-lcrypto $LIBS"
6910
if test "x$have_openssl" = "xyes"; then
6911
OPENSSL_LIBS="-L$openssl_prefix_lib -lssl -lcrypto"
6912
OPENSSL_CFLAGS="-I$openssl_prefix_include"
6917
if test "x$have_openssl" = "xyes"; then
6919
$as_echo "#define HAVE_LIBSSL 1" >>confdefs.h
6921
# check whether EVP_DigestInit_ex exists. Old openssl doesn't have it.
6922
for ac_func in EVP_DigestInit_ex
6924
ac_fn_cxx_check_func "$LINENO" "EVP_DigestInit_ex" "ac_cv_func_EVP_DigestInit_ex"
6925
if test "x$ac_cv_func_EVP_DigestInit_ex" = x""yes; then :
6926
cat >>confdefs.h <<_ACEOF
6927
#define HAVE_EVP_DIGESTINIT_EX 1
6929
have_digestinit_ex=yes
6933
if test "x$have_digestinit_ex" = "x"; then
6935
$as_echo "#define HAVE_OLD_LIBSSL 1" >>confdefs.h
6940
# search for sha256 support
6941
for ac_func in EVP_sha256
6943
ac_fn_cxx_check_func "$LINENO" "EVP_sha256" "ac_cv_func_EVP_sha256"
6944
if test "x$ac_cv_func_EVP_sha256" = x""yes; then :
6945
cat >>confdefs.h <<_ACEOF
6946
#define HAVE_EVP_SHA256 1
6955
CPPFLAGS=$CPPFLAGS_save
6957
if test "x$have_openssl" != "xyes" &&
6958
test "x$with_openssl_requested" = "xyes"; then
6959
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6960
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6961
as_fn_error "openssl is requested but not found in the system.
6962
See \`config.log' for more details." "$LINENO" 5; }
6966
if test "x$with_libcares" = "xyes"; then
6969
# Check whether --with-libcares-prefix was given.
6970
if test "${with_libcares_prefix+set}" = set; then :
6971
withval=$with_libcares_prefix; libcares_prefix=$withval
6977
if test "x$libcares_prefix" = "x"; then
6978
libcares_prefix="/usr"
6981
libcares_prefix_lib=$libcares_prefix/lib
6982
libcares_prefix_include=$libcares_prefix/include
6985
CPPFLAGS_save=$CPPFLAGS
6987
LIBS="-L$libcares_prefix_lib $LIBS"
6988
CPPFLAGS="-I$libcares_prefix_include -Wall $CPPFLAGS"
6990
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ares_init in -lcares" >&5
6991
$as_echo_n "checking for ares_init in -lcares... " >&6; }
6992
if test "${ac_cv_lib_cares_ares_init+set}" = set; then :
6993
$as_echo_n "(cached) " >&6
6995
ac_check_lib_save_LIBS=$LIBS
6996
LIBS="-lcares $LIBS"
6997
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6998
/* end confdefs.h. */
7000
/* Override any GCC internal prototype to avoid an error.
7001
Use char because int might match the return type of a GCC
7002
builtin and then its argument prototype would still apply. */
7010
return ares_init ();
7015
if ac_fn_cxx_try_link "$LINENO"; then :
7016
ac_cv_lib_cares_ares_init=yes
7018
ac_cv_lib_cares_ares_init=no
7020
rm -f core conftest.err conftest.$ac_objext \
7021
conftest$ac_exeext conftest.$ac_ext
7022
LIBS=$ac_check_lib_save_LIBS
7024
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cares_ares_init" >&5
7025
$as_echo "$ac_cv_lib_cares_ares_init" >&6; }
7026
if test "x$ac_cv_lib_cares_ares_init" = x""yes; then :
7031
if test "x$have_libcares" != "xyes"; then
7032
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ares_init in -lcares" >&5
7033
$as_echo_n "checking for ares_init in -lcares... " >&6; }
7034
if test "${ac_cv_lib_cares_ares_init+set}" = set; then :
7035
$as_echo_n "(cached) " >&6
7037
ac_check_lib_save_LIBS=$LIBS
7038
LIBS="-lcares -lrt $LIBS"
7039
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7040
/* end confdefs.h. */
7042
/* Override any GCC internal prototype to avoid an error.
7043
Use char because int might match the return type of a GCC
7044
builtin and then its argument prototype would still apply. */
7052
return ares_init ();
7057
if ac_fn_cxx_try_link "$LINENO"; then :
7058
ac_cv_lib_cares_ares_init=yes
7060
ac_cv_lib_cares_ares_init=no
7062
rm -f core conftest.err conftest.$ac_objext \
7063
conftest$ac_exeext conftest.$ac_ext
7064
LIBS=$ac_check_lib_save_LIBS
7066
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cares_ares_init" >&5
7067
$as_echo "$ac_cv_lib_cares_ares_init" >&6; }
7068
if test "x$ac_cv_lib_cares_ares_init" = x""yes; then :
7069
have_libcares=yes need_librt=yes
7074
if test "x$have_libcares" = "xyes"; then
7076
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ares_host_callback accepts timeouts(c-ares >= 1.5)" >&5
7077
$as_echo_n "checking whether ares_host_callback accepts timeouts(c-ares >= 1.5)... " >&6; }
7078
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7079
/* end confdefs.h. */
7083
void callback(void* arg, int status, int timeouts, struct hostent* host);
7089
ares_channel channel;
7090
ares_gethostbyname(channel, "foo", 0, callback, 0);
7096
if ac_fn_cxx_try_compile "$LINENO"; then :
7097
have_libcares1_5=yes
7101
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7102
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_libcares1_5" >&5
7103
$as_echo "$have_libcares1_5" >&6; }
7105
if test "x$have_libcares1_5" = "xyes"; then
7107
$as_echo "#define HAVE_LIBCARES1_5 1" >>confdefs.h
7112
$as_echo "#define HAVE_LIBCARES 1" >>confdefs.h
7114
LIBCARES_LIBS="-L$libcares_prefix_lib -lcares"
7115
if test "x$need_librt" = "xyes"; then
7116
LIBCARES_LIBS="$LIBCARES_LIBS -lrt"
7118
LIBCARES_CPPFLAGS="-I$libcares_prefix_include"
7124
CPPFLAGS=$CPPFLAGS_save
7127
if test "x$have_libcares" != "xyes" &&
7128
test "x$with_libcares_requested" = "xyes"; then
7129
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7130
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7131
as_fn_error "libcares is requested but not found in the system.
7132
See \`config.log' for more details." "$LINENO" 5; }
7136
# Check availability of libz
7137
if test "x$with_libz" = "xyes"; then
7140
# Check whether --with-libz-prefix was given.
7141
if test "${with_libz_prefix+set}" = set; then :
7142
withval=$with_libz_prefix; libz_prefix=$withval
7148
if test "x$libz_prefix" = "x"; then
7152
libz_prefix_lib=$libz_prefix/lib
7153
libz_prefix_include=$libz_prefix/include
7156
CPPFLAGS_save=$CPPFLAGS
7158
LIBS="-L$libz_prefix_lib $LIBS"
7159
CPPFLAGS="-I$libz_prefix_include $CPPFLAGS"
7161
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5
7162
$as_echo_n "checking for zlibVersion in -lz... " >&6; }
7163
if test "${ac_cv_lib_z_zlibVersion+set}" = set; then :
7164
$as_echo_n "(cached) " >&6
7166
ac_check_lib_save_LIBS=$LIBS
7168
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7169
/* end confdefs.h. */
7171
/* Override any GCC internal prototype to avoid an error.
7172
Use char because int might match the return type of a GCC
7173
builtin and then its argument prototype would still apply. */
7177
char zlibVersion ();
7181
return zlibVersion ();
7186
if ac_fn_cxx_try_link "$LINENO"; then :
7187
ac_cv_lib_z_zlibVersion=yes
7189
ac_cv_lib_z_zlibVersion=no
7191
rm -f core conftest.err conftest.$ac_objext \
7192
conftest$ac_exeext conftest.$ac_ext
7193
LIBS=$ac_check_lib_save_LIBS
7195
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5
7196
$as_echo "$ac_cv_lib_z_zlibVersion" >&6; }
7197
if test "x$ac_cv_lib_z_zlibVersion" = x""yes; then :
7201
if test "x$have_libz" = "xyes"; then
7203
$as_echo "#define HAVE_LIBZ 1" >>confdefs.h
7205
LIBZ_LIBS="-L$libz_prefix_lib -lz"
7206
LIBZ_CPPFLAGS="-I$libz_prefix_include"
7212
CPPFLAGS=$CPPFLAGS_save
7215
if test "x$have_libz" != "xyes" && test "x$with_libz_requested" = "xyes"; then
7216
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7217
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7218
as_fn_error "libz is requested but not found in the system.
7219
See \`config.log' for more details." "$LINENO" 5; }
7223
# Define variables based on the result of the checks for libraries.
7224
if test "x$have_libgnutls" = "xyes" || test "x$have_openssl" = "xyes"; then
7226
$as_echo "#define ENABLE_SSL 1" >>confdefs.h
7230
ENABLE_SSL_FALSE='#'
7240
ENABLE_SSL_FALSE='#'
7248
if test "x$have_libgnutls" = "xyes" ; then
7249
HAVE_LIBGNUTLS_TRUE=
7250
HAVE_LIBGNUTLS_FALSE='#'
7252
HAVE_LIBGNUTLS_TRUE='#'
7253
HAVE_LIBGNUTLS_FALSE=
7256
if test "x$have_openssl" = "xyes" ; then
7258
HAVE_LIBSSL_FALSE='#'
7260
HAVE_LIBSSL_TRUE='#'
7265
if test "x$have_libgcrypt" = "xyes" || test "x$have_openssl" = "xyes"; then
7267
$as_echo "#define ENABLE_MESSAGE_DIGEST 1" >>confdefs.h
7270
ENABLE_MESSAGE_DIGEST_TRUE=
7271
ENABLE_MESSAGE_DIGEST_FALSE='#'
7273
ENABLE_MESSAGE_DIGEST_TRUE='#'
7274
ENABLE_MESSAGE_DIGEST_FALSE=
7277
enable_message_digest=yes
7280
ENABLE_MESSAGE_DIGEST_TRUE=
7281
ENABLE_MESSAGE_DIGEST_FALSE='#'
7283
ENABLE_MESSAGE_DIGEST_TRUE='#'
7284
ENABLE_MESSAGE_DIGEST_FALSE=
7289
if test "x$enable_bittorrent" = "xyes" &&
7290
test "x$enable_message_digest" = "xyes"; then
7292
$as_echo "#define ENABLE_BITTORRENT 1" >>confdefs.h
7295
ENABLE_BITTORRENT_TRUE=
7296
ENABLE_BITTORRENT_FALSE='#'
7298
ENABLE_BITTORRENT_TRUE='#'
7299
ENABLE_BITTORRENT_FALSE=
7303
if test "x$enable_bittorrent_requested" = "xyes"; then
7304
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7305
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7306
as_fn_error "bittorrent is requested but cannot be enabled with current\
7308
Make sure that dependent libraries are installed and configure script options\
7310
See \`config.log' for more details." "$LINENO" 5; }
7312
enable_bittorrent=no
7314
ENABLE_BITTORRENT_TRUE=
7315
ENABLE_BITTORRENT_FALSE='#'
7317
ENABLE_BITTORRENT_TRUE='#'
7318
ENABLE_BITTORRENT_FALSE=
7323
if (test "x$have_libxml2" = "xyes" || test "x$have_libexpat" = "xyes") &&
7324
test "x$enable_metalink" = "xyes"; then
7326
$as_echo "#define ENABLE_METALINK 1" >>confdefs.h
7329
ENABLE_METALINK_TRUE=
7330
ENABLE_METALINK_FALSE='#'
7332
ENABLE_METALINK_TRUE='#'
7333
ENABLE_METALINK_FALSE=
7337
if test "x$enable_metalink_requested" = "xyes"; then
7338
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7339
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7340
as_fn_error "metalink is requested but cannot be enabled with current\
7342
Make sure that dependent libraries are installed and configure script options\
7344
See \`config.log' for more details." "$LINENO" 5; }
7348
ENABLE_METALINK_TRUE=
7349
ENABLE_METALINK_FALSE='#'
7351
ENABLE_METALINK_TRUE='#'
7352
ENABLE_METALINK_FALSE=
7357
if test "x$enable_metalink" = "xyes" && test "x$have_libxml2" = "xyes"; then
7358
ENABLE_METALINK_LIBXML2_TRUE=
7359
ENABLE_METALINK_LIBXML2_FALSE='#'
7361
ENABLE_METALINK_LIBXML2_TRUE='#'
7362
ENABLE_METALINK_LIBXML2_FALSE=
7365
if test "x$enable_metalink" = "xyes" && test "x$have_libexpat" = "xyes"; then
7366
ENABLE_METALINK_LIBEXPAT_TRUE=
7367
ENABLE_METALINK_LIBEXPAT_FALSE='#'
7369
ENABLE_METALINK_LIBEXPAT_TRUE='#'
7370
ENABLE_METALINK_LIBEXPAT_FALSE=
7374
if test "x$have_libxml2" = "xyes" || test "x$have_libexpat" = "xyes"; then
7378
if test "x$enable_xml_rpc" = "xyes"; then
7380
$as_echo "#define ENABLE_XML_RPC 1" >>confdefs.h
7383
if test "x$enable_xml_rpc" = "xyes"; then
7384
ENABLE_XML_RPC_TRUE=
7385
ENABLE_XML_RPC_FALSE='#'
7387
ENABLE_XML_RPC_TRUE='#'
7388
ENABLE_XML_RPC_FALSE=
7392
if test "x$have_libxml2" = "xyes"; then
7394
HAVE_LIBXML2_FALSE='#'
7396
HAVE_LIBXML2_TRUE='#'
7400
if test "x$have_libexpat" = "xyes"; then
7402
HAVE_LIBEXPAT_FALSE='#'
7404
HAVE_LIBEXPAT_TRUE='#'
7405
HAVE_LIBEXPAT_FALSE=
7409
if test "x$have_libcares" = "xyes"; then
7411
$as_echo "#define ENABLE_ASYNC_DNS 1" >>confdefs.h
7414
ENABLE_ASYNC_DNS_TRUE=
7415
ENABLE_ASYNC_DNS_FALSE='#'
7417
ENABLE_ASYNC_DNS_TRUE='#'
7418
ENABLE_ASYNC_DNS_FALSE=
7423
ENABLE_ASYNC_DNS_TRUE=
7424
ENABLE_ASYNC_DNS_FALSE='#'
7426
ENABLE_ASYNC_DNS_TRUE='#'
7427
ENABLE_ASYNC_DNS_FALSE=
7432
# Set conditional for libz
7433
if test "x$have_libz" = "xyes"; then
7442
# Set conditional for sqlite3
7443
if test "x$have_sqlite3" = "xyes"; then
7445
HAVE_SQLITE3_FALSE='#'
7447
HAVE_SQLITE3_TRUE='#'
7452
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
7453
$as_echo_n "checking for library containing clock_gettime... " >&6; }
7454
if test "${ac_cv_search_clock_gettime+set}" = set; then :
7455
$as_echo_n "(cached) " >&6
7457
ac_func_search_save_LIBS=$LIBS
7458
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7459
/* end confdefs.h. */
7461
/* Override any GCC internal prototype to avoid an error.
7462
Use char because int might match the return type of a GCC
7463
builtin and then its argument prototype would still apply. */
7467
char clock_gettime ();
7471
return clock_gettime ();
7476
for ac_lib in '' rt; do
7477
if test -z "$ac_lib"; then
7478
ac_res="none required"
7481
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7483
if ac_fn_cxx_try_link "$LINENO"; then :
7484
ac_cv_search_clock_gettime=$ac_res
7486
rm -f core conftest.err conftest.$ac_objext \
7488
if test "${ac_cv_search_clock_gettime+set}" = set; then :
7492
if test "${ac_cv_search_clock_gettime+set}" = set; then :
7495
ac_cv_search_clock_gettime=no
7498
LIBS=$ac_func_search_save_LIBS
7500
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
7501
$as_echo "$ac_cv_search_clock_gettime" >&6; }
7502
ac_res=$ac_cv_search_clock_gettime
7503
if test "$ac_res" != no; then :
7504
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7511
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
7512
$as_echo_n "checking for library containing getaddrinfo... " >&6; }
7513
if test "${ac_cv_search_getaddrinfo+set}" = set; then :
7514
$as_echo_n "(cached) " >&6
7516
ac_func_search_save_LIBS=$LIBS
7517
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7518
/* end confdefs.h. */
7520
/* Override any GCC internal prototype to avoid an error.
7521
Use char because int might match the return type of a GCC
7522
builtin and then its argument prototype would still apply. */
7526
char getaddrinfo ();
7530
return getaddrinfo ();
7535
for ac_lib in '' nsl socket; do
7536
if test -z "$ac_lib"; then
7537
ac_res="none required"
7540
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7542
if ac_fn_cxx_try_link "$LINENO"; then :
7543
ac_cv_search_getaddrinfo=$ac_res
7545
rm -f core conftest.err conftest.$ac_objext \
7547
if test "${ac_cv_search_getaddrinfo+set}" = set; then :
7551
if test "${ac_cv_search_getaddrinfo+set}" = set; then :
7554
ac_cv_search_getaddrinfo=no
7557
LIBS=$ac_func_search_save_LIBS
7559
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
7560
$as_echo "$ac_cv_search_getaddrinfo" >&6; }
7561
ac_res=$ac_cv_search_getaddrinfo
7562
if test "$ac_res" != no; then :
7563
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7567
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
7568
$as_echo_n "checking for library containing inet_aton... " >&6; }
7569
if test "${ac_cv_search_inet_aton+set}" = set; then :
7570
$as_echo_n "(cached) " >&6
7572
ac_func_search_save_LIBS=$LIBS
7573
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7574
/* end confdefs.h. */
7576
/* Override any GCC internal prototype to avoid an error.
7577
Use char because int might match the return type of a GCC
7578
builtin and then its argument prototype would still apply. */
7586
return inet_aton ();
7591
for ac_lib in '' nsl socket; do
7592
if test -z "$ac_lib"; then
7593
ac_res="none required"
7596
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7598
if ac_fn_cxx_try_link "$LINENO"; then :
7599
ac_cv_search_inet_aton=$ac_res
7601
rm -f core conftest.err conftest.$ac_objext \
7603
if test "${ac_cv_search_inet_aton+set}" = set; then :
7607
if test "${ac_cv_search_inet_aton+set}" = set; then :
7610
ac_cv_search_inet_aton=no
7613
LIBS=$ac_func_search_save_LIBS
7615
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
7616
$as_echo "$ac_cv_search_inet_aton" >&6; }
7617
ac_res=$ac_cv_search_inet_aton
7618
if test "$ac_res" != no; then :
7619
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7626
# Checks for header files.
7627
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7628
# for constant arguments. Useless!
7629
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
7630
$as_echo_n "checking for working alloca.h... " >&6; }
7631
if test "${ac_cv_working_alloca_h+set}" = set; then :
7632
$as_echo_n "(cached) " >&6
7634
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7635
/* end confdefs.h. */
7640
char *p = (char *) alloca (2 * sizeof (int));
7646
if ac_fn_cxx_try_link "$LINENO"; then :
7647
ac_cv_working_alloca_h=yes
7649
ac_cv_working_alloca_h=no
7651
rm -f core conftest.err conftest.$ac_objext \
7652
conftest$ac_exeext conftest.$ac_ext
7654
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
7655
$as_echo "$ac_cv_working_alloca_h" >&6; }
7656
if test $ac_cv_working_alloca_h = yes; then
7658
$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
7662
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
7663
$as_echo_n "checking for alloca... " >&6; }
7664
if test "${ac_cv_func_alloca_works+set}" = set; then :
7665
$as_echo_n "(cached) " >&6
7667
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7668
/* end confdefs.h. */
7670
# define alloca __builtin_alloca
7673
# include <malloc.h>
7674
# define alloca _alloca
7676
# ifdef HAVE_ALLOCA_H
7677
# include <alloca.h>
7682
# ifndef alloca /* predefined by HP cc +Olibcalls */
7693
char *p = (char *) alloca (1);
7699
if ac_fn_cxx_try_link "$LINENO"; then :
7700
ac_cv_func_alloca_works=yes
7702
ac_cv_func_alloca_works=no
7704
rm -f core conftest.err conftest.$ac_objext \
7705
conftest$ac_exeext conftest.$ac_ext
7707
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
7708
$as_echo "$ac_cv_func_alloca_works" >&6; }
7710
if test $ac_cv_func_alloca_works = yes; then
7712
$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
7715
# The SVR3 libPW and SVR4 libucb both contain incompatible functions
7716
# that cause trouble. Some versions do not even contain alloca or
7717
# contain a buggy version. If you still want to use their alloca,
7718
# use ar to extract alloca.o from them instead of compiling alloca.c.
7720
ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
7722
$as_echo "#define C_ALLOCA 1" >>confdefs.h
7725
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
7726
$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
7727
if test "${ac_cv_os_cray+set}" = set; then :
7728
$as_echo_n "(cached) " >&6
7730
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7731
/* end confdefs.h. */
7732
#if defined CRAY && ! defined CRAY2
7739
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7740
$EGREP "webecray" >/dev/null 2>&1; then :
7748
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
7749
$as_echo "$ac_cv_os_cray" >&6; }
7750
if test $ac_cv_os_cray = yes; then
7751
for ac_func in _getb67 GETB67 getb67; do
7752
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7753
ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
7754
eval as_val=\$$as_ac_var
7755
if test "x$as_val" = x""yes; then :
7757
cat >>confdefs.h <<_ACEOF
7758
#define CRAY_STACKSEG_END $ac_func
7767
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
7768
$as_echo_n "checking stack direction for C alloca... " >&6; }
7769
if test "${ac_cv_c_stack_direction+set}" = set; then :
7770
$as_echo_n "(cached) " >&6
7772
if test "$cross_compiling" = yes; then :
7773
ac_cv_c_stack_direction=0
7775
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7776
/* end confdefs.h. */
7777
$ac_includes_default
7779
find_stack_direction ()
7781
static char *addr = 0;
7786
return find_stack_direction ();
7789
return (&dummy > addr) ? 1 : -1;
7795
return find_stack_direction () < 0;
7798
if ac_fn_cxx_try_run "$LINENO"; then :
7799
ac_cv_c_stack_direction=1
7801
ac_cv_c_stack_direction=-1
7803
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7804
conftest.$ac_objext conftest.beam conftest.$ac_ext
7808
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7809
$as_echo "$ac_cv_c_stack_direction" >&6; }
7810
cat >>confdefs.h <<_ACEOF
7811
#define STACK_DIRECTION $ac_cv_c_stack_direction
7817
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7818
$as_echo_n "checking for ANSI C header files... " >&6; }
7819
if test "${ac_cv_header_stdc+set}" = set; then :
7820
$as_echo_n "(cached) " >&6
7822
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7823
/* end confdefs.h. */
7837
if ac_fn_cxx_try_compile "$LINENO"; then :
7838
ac_cv_header_stdc=yes
7840
ac_cv_header_stdc=no
7842
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7844
if test $ac_cv_header_stdc = yes; then
7845
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7846
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7847
/* end confdefs.h. */
7851
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7852
$EGREP "memchr" >/dev/null 2>&1; then :
7855
ac_cv_header_stdc=no
7861
if test $ac_cv_header_stdc = yes; then
7862
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7863
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7864
/* end confdefs.h. */
7868
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7869
$EGREP "free" >/dev/null 2>&1; then :
7872
ac_cv_header_stdc=no
7878
if test $ac_cv_header_stdc = yes; then
7879
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7880
if test "$cross_compiling" = yes; then :
7883
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7884
/* end confdefs.h. */
7887
#if ((' ' & 0x0FF) == 0x020)
7888
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7889
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7891
# define ISLOWER(c) \
7892
(('a' <= (c) && (c) <= 'i') \
7893
|| ('j' <= (c) && (c) <= 'r') \
7894
|| ('s' <= (c) && (c) <= 'z'))
7895
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7898
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7903
for (i = 0; i < 256; i++)
7904
if (XOR (islower (i), ISLOWER (i))
7905
|| toupper (i) != TOUPPER (i))
7910
if ac_fn_cxx_try_run "$LINENO"; then :
7913
ac_cv_header_stdc=no
7915
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7916
conftest.$ac_objext conftest.beam conftest.$ac_ext
7921
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7922
$as_echo "$ac_cv_header_stdc" >&6; }
7923
if test $ac_cv_header_stdc = yes; then
7925
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7932
for ac_header in windows.h \
7937
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7938
ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_WINDOWS_H
7939
# include <windows.h>
7943
eval as_val=\$$as_ac_Header
7944
if test "x$as_val" = x""yes; then :
7945
cat >>confdefs.h <<_ACEOF
7946
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7956
for ac_header in argz.h \
7987
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7988
ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7989
eval as_val=\$$as_ac_Header
7990
if test "x$as_val" = x""yes; then :
7991
cat >>confdefs.h <<_ACEOF
7992
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8000
# Checks for typedefs, structures, and compiler characteristics.
8001
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
8002
$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
8003
if test "${ac_cv_header_stdbool_h+set}" = set; then :
8004
$as_echo_n "(cached) " >&6
8006
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8007
/* end confdefs.h. */
8009
#include <stdbool.h>
8011
"error: bool is not defined"
8014
"error: false is not defined"
8017
"error: false is not 0"
8020
"error: true is not defined"
8023
"error: true is not 1"
8025
#ifndef __bool_true_false_are_defined
8026
"error: __bool_true_false_are_defined is not defined"
8029
struct s { _Bool s: 1; _Bool t; } s;
8031
char a[true == 1 ? 1 : -1];
8032
char b[false == 0 ? 1 : -1];
8033
char c[__bool_true_false_are_defined == 1 ? 1 : -1];
8034
char d[(bool) 0.5 == true ? 1 : -1];
8036
char f[(_Bool) 0.0 == false ? 1 : -1];
8038
char h[sizeof (_Bool)];
8040
enum { j = false, k = true, l = false * true, m = true * 256 };
8041
/* The following fails for
8042
HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
8044
char o[sizeof n == m * sizeof n[0] ? 1 : -1];
8045
char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
8046
# if defined __xlc__ || defined __GNUC__
8047
/* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
8048
reported by James Lemley on 2005-10-05; see
8049
http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
8050
This test is not quite right, since xlc is allowed to
8051
reject this program, as the initializer for xlcbug is
8052
not one of the forms that C requires support for.
8053
However, doing the test right would require a runtime
8054
test, and that would make cross-compilation harder.
8055
Let us hope that IBM fixes the xlc bug, and also adds
8056
support for this kind of constant expression. In the
8057
meantime, this test will reject xlc, which is OK, since
8058
our stdbool.h substitute should suffice. We also test
8059
this with GCC, where it should work, to detect more
8060
quickly whether someone messes up the test in the
8062
char digs[] = "0123456789";
8063
int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
8065
/* Catch a bug in an HP-UX C compiler. See
8066
http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
8067
http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
8078
/* Refer to every declared value, to avoid compiler optimizations. */
8079
return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
8080
+ !m + !n + !o + !p + !q + !pq);
8086
if ac_fn_cxx_try_compile "$LINENO"; then :
8087
ac_cv_header_stdbool_h=yes
8089
ac_cv_header_stdbool_h=no
8091
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8093
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
8094
$as_echo "$ac_cv_header_stdbool_h" >&6; }
8095
ac_fn_cxx_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
8096
if test "x$ac_cv_type__Bool" = x""yes; then :
8098
cat >>confdefs.h <<_ACEOF
8099
#define HAVE__BOOL 1
8105
if test $ac_cv_header_stdbool_h = yes; then
8107
$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
8111
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
8112
$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
8113
if test "${ac_cv_c_const+set}" = set; then :
8114
$as_echo_n "(cached) " >&6
8116
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8117
/* end confdefs.h. */
8122
/* FIXME: Include the comments suggested by Paul. */
8124
/* Ultrix mips cc rejects this. */
8125
typedef int charset[2];
8127
/* SunOS 4.1.1 cc rejects this. */
8128
char const *const *pcpcc;
8130
/* NEC SVR4.0.2 mips cc rejects this. */
8131
struct point {int x, y;};
8132
static struct point const zero = {0,0};
8133
/* AIX XL C 1.02.0.0 rejects this.
8134
It does not let you subtract one const X* pointer from another in
8135
an arm of an if-expression whose if-part is not a constant
8137
const char *g = "string";
8138
pcpcc = &g + (g ? g-g : 0);
8139
/* HPUX 7.0 cc rejects these. */
8141
ppc = (char**) pcpcc;
8142
pcpcc = (char const *const *) ppc;
8143
{ /* SCO 3.2v4 cc rejects this. */
8145
char const *s = 0 ? (char *) 0 : (char const *) 0;
8150
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8152
const int *foo = &x[0];
8155
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8156
typedef const int *iptr;
8160
{ /* AIX XL C 1.02.0.0 rejects this saying
8161
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8162
struct s { int j; const int *ap[3]; };
8163
struct s *b; b->j = 5;
8165
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8169
return !cs[0] && !zero.x;
8176
if ac_fn_cxx_try_compile "$LINENO"; then :
8181
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8183
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
8184
$as_echo "$ac_cv_c_const" >&6; }
8185
if test $ac_cv_c_const = no; then
8187
$as_echo "#define const /**/" >>confdefs.h
8191
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
8192
$as_echo_n "checking for inline... " >&6; }
8193
if test "${ac_cv_c_inline+set}" = set; then :
8194
$as_echo_n "(cached) " >&6
8197
for ac_kw in inline __inline__ __inline; do
8198
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8199
/* end confdefs.h. */
8202
static $ac_kw foo_t static_foo () {return 0; }
8203
$ac_kw foo_t foo () {return 0; }
8207
if ac_fn_cxx_try_compile "$LINENO"; then :
8208
ac_cv_c_inline=$ac_kw
8210
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8211
test "$ac_cv_c_inline" != no && break
8215
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
8216
$as_echo "$ac_cv_c_inline" >&6; }
8218
case $ac_cv_c_inline in
8221
case $ac_cv_c_inline in
8223
*) ac_val=$ac_cv_c_inline;;
8225
cat >>confdefs.h <<_ACEOF
8227
#define inline $ac_val
8233
ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
8234
case $ac_cv_c_int16_t in #(
8238
cat >>confdefs.h <<_ACEOF
8239
#define int16_t $ac_cv_c_int16_t
8244
ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
8245
case $ac_cv_c_int32_t in #(
8249
cat >>confdefs.h <<_ACEOF
8250
#define int32_t $ac_cv_c_int32_t
8255
ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
8256
case $ac_cv_c_int64_t in #(
8260
cat >>confdefs.h <<_ACEOF
8261
#define int64_t $ac_cv_c_int64_t
8266
ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
8267
case $ac_cv_c_int8_t in #(
8271
cat >>confdefs.h <<_ACEOF
8272
#define int8_t $ac_cv_c_int8_t
8277
ac_fn_cxx_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
8278
if test "x$ac_cv_type_mode_t" = x""yes; then :
8282
cat >>confdefs.h <<_ACEOF
8288
ac_fn_cxx_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
8289
if test "x$ac_cv_type_off_t" = x""yes; then :
8293
cat >>confdefs.h <<_ACEOF
8294
#define off_t long int
8299
ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
8300
if test "x$ac_cv_type_size_t" = x""yes; then :
8304
cat >>confdefs.h <<_ACEOF
8305
#define size_t unsigned int
8310
ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
8311
if test "x$ac_cv_type_ssize_t" = x""yes; then :
8315
cat >>confdefs.h <<_ACEOF
8321
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8322
$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8323
if test "${ac_cv_header_time+set}" = set; then :
8324
$as_echo_n "(cached) " >&6
8326
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8327
/* end confdefs.h. */
8328
#include <sys/types.h>
8329
#include <sys/time.h>
8335
if ((struct tm *) 0)
8341
if ac_fn_cxx_try_compile "$LINENO"; then :
8342
ac_cv_header_time=yes
8344
ac_cv_header_time=no
8346
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8348
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8349
$as_echo "$ac_cv_header_time" >&6; }
8350
if test $ac_cv_header_time = yes; then
8352
$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8356
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
8357
$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
8358
if test "${ac_cv_struct_tm+set}" = set; then :
8359
$as_echo_n "(cached) " >&6
8361
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8362
/* end confdefs.h. */
8363
#include <sys/types.h>
8370
int *p = &tm.tm_sec;
8376
if ac_fn_cxx_try_compile "$LINENO"; then :
8377
ac_cv_struct_tm=time.h
8379
ac_cv_struct_tm=sys/time.h
8381
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8383
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
8384
$as_echo "$ac_cv_struct_tm" >&6; }
8385
if test $ac_cv_struct_tm = sys/time.h; then
8387
$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
8391
ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
8392
case $ac_cv_c_uint16_t in #(
8397
cat >>confdefs.h <<_ACEOF
8398
#define uint16_t $ac_cv_c_uint16_t
8403
ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
8404
case $ac_cv_c_uint32_t in #(
8408
$as_echo "#define _UINT32_T 1" >>confdefs.h
8411
cat >>confdefs.h <<_ACEOF
8412
#define uint32_t $ac_cv_c_uint32_t
8417
ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
8418
case $ac_cv_c_uint64_t in #(
8422
$as_echo "#define _UINT64_T 1" >>confdefs.h
8425
cat >>confdefs.h <<_ACEOF
8426
#define uint64_t $ac_cv_c_uint64_t
8431
ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
8432
case $ac_cv_c_uint8_t in #(
8436
$as_echo "#define _UINT8_T 1" >>confdefs.h
8439
cat >>confdefs.h <<_ACEOF
8440
#define uint8_t $ac_cv_c_uint8_t
8445
ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8446
if test "x$ac_cv_type_pid_t" = x""yes; then :
8450
cat >>confdefs.h <<_ACEOF
8456
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
8457
$as_echo_n "checking for working volatile... " >&6; }
8458
if test "${ac_cv_c_volatile+set}" = set; then :
8459
$as_echo_n "(cached) " >&6
8461
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8462
/* end confdefs.h. */
8469
int * volatile y = (int *) 0;
8475
if ac_fn_cxx_try_compile "$LINENO"; then :
8476
ac_cv_c_volatile=yes
8480
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8482
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
8483
$as_echo "$ac_cv_c_volatile" >&6; }
8484
if test $ac_cv_c_volatile = no; then
8486
$as_echo "#define volatile /**/" >>confdefs.h
8490
ac_fn_cxx_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
8491
if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
8493
cat >>confdefs.h <<_ACEOF
8494
#define HAVE_PTRDIFF_T 1
8499
ac_fn_cxx_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "$ac_includes_default"
8500
if test "x$ac_cv_type_struct_timespec" = x""yes; then :
8502
cat >>confdefs.h <<_ACEOF
8503
#define HAVE_STRUCT_TIMESPEC 1
8509
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8510
$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8511
if test "${ac_cv_c_bigendian+set}" = set; then :
8512
$as_echo_n "(cached) " >&6
8514
ac_cv_c_bigendian=unknown
8515
# See if we're dealing with a universal compiler.
8516
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8517
/* end confdefs.h. */
8518
#ifndef __APPLE_CC__
8519
not a universal capable compiler
8524
if ac_fn_cxx_try_compile "$LINENO"; then :
8526
# Check for potential -arch flags. It is not universal unless
8527
# there are at least two -arch flags with different values.
8530
for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8531
if test -n "$ac_prev"; then
8533
i?86 | x86_64 | ppc | ppc64)
8534
if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8537
ac_cv_c_bigendian=universal
8543
elif test "x$ac_word" = "x-arch"; then
8548
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8549
if test $ac_cv_c_bigendian = unknown; then
8550
# See if sys/param.h defines the BYTE_ORDER macro.
8551
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8552
/* end confdefs.h. */
8553
#include <sys/types.h>
8554
#include <sys/param.h>
8559
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8560
&& defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8569
if ac_fn_cxx_try_compile "$LINENO"; then :
8570
# It does; now see whether it defined to BIG_ENDIAN or not.
8571
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8572
/* end confdefs.h. */
8573
#include <sys/types.h>
8574
#include <sys/param.h>
8579
#if BYTE_ORDER != BIG_ENDIAN
8587
if ac_fn_cxx_try_compile "$LINENO"; then :
8588
ac_cv_c_bigendian=yes
8590
ac_cv_c_bigendian=no
8592
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8594
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8596
if test $ac_cv_c_bigendian = unknown; then
8597
# See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8598
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8599
/* end confdefs.h. */
8605
#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8613
if ac_fn_cxx_try_compile "$LINENO"; then :
8614
# It does; now see whether it defined to _BIG_ENDIAN or not.
8615
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8616
/* end confdefs.h. */
8630
if ac_fn_cxx_try_compile "$LINENO"; then :
8631
ac_cv_c_bigendian=yes
8633
ac_cv_c_bigendian=no
8635
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8637
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8639
if test $ac_cv_c_bigendian = unknown; then
8640
# Compile a test program.
8641
if test "$cross_compiling" = yes; then :
8642
# Try to guess by grepping values from an object file.
8643
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8644
/* end confdefs.h. */
8645
short int ascii_mm[] =
8646
{ 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8647
short int ascii_ii[] =
8648
{ 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8649
int use_ascii (int i) {
8650
return ascii_mm[i] + ascii_ii[i];
8652
short int ebcdic_ii[] =
8653
{ 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8654
short int ebcdic_mm[] =
8655
{ 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8656
int use_ebcdic (int i) {
8657
return ebcdic_mm[i] + ebcdic_ii[i];
8664
return use_ascii (foo) == use_ebcdic (foo);
8669
if ac_fn_cxx_try_compile "$LINENO"; then :
8670
if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8671
ac_cv_c_bigendian=yes
8673
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8674
if test "$ac_cv_c_bigendian" = unknown; then
8675
ac_cv_c_bigendian=no
8677
# finding both strings is unlikely to happen, but who knows?
8678
ac_cv_c_bigendian=unknown
8682
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8684
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8685
/* end confdefs.h. */
8686
$ac_includes_default
8691
/* Are we little or big endian? From Harbison&Steele. */
8695
char c[sizeof (long int)];
8698
return u.c[sizeof (long int) - 1] == 1;
8704
if ac_fn_cxx_try_run "$LINENO"; then :
8705
ac_cv_c_bigendian=no
8707
ac_cv_c_bigendian=yes
8709
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8710
conftest.$ac_objext conftest.beam conftest.$ac_ext
8715
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8716
$as_echo "$ac_cv_c_bigendian" >&6; }
8717
case $ac_cv_c_bigendian in #(
8719
$as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8725
$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8729
as_fn_error "unknown endianness
8730
presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8733
# Check whether --enable-largefile was given.
8734
if test "${enable_largefile+set}" = set; then :
8735
enableval=$enable_largefile;
8738
if test "$enable_largefile" != no; then
8740
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
8741
$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
8742
if test "${ac_cv_sys_largefile_CC+set}" = set; then :
8743
$as_echo_n "(cached) " >&6
8745
ac_cv_sys_largefile_CC=no
8746
if test "$GCC" != yes; then
8749
# IRIX 6.2 and later do not support large files by default,
8750
# so use the C compiler's -n32 option if that helps.
8751
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8752
/* end confdefs.h. */
8753
#include <sys/types.h>
8754
/* Check that off_t can represent 2**63 - 1 correctly.
8755
We can't simply define LARGE_OFF_T to be 9223372036854775807,
8756
since some C++ compilers masquerading as C compilers
8757
incorrectly reject 9223372036854775807. */
8758
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8759
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8760
&& LARGE_OFF_T % 2147483647 == 1)
8770
if ac_fn_cxx_try_compile "$LINENO"; then :
8773
rm -f core conftest.err conftest.$ac_objext
8775
if ac_fn_cxx_try_compile "$LINENO"; then :
8776
ac_cv_sys_largefile_CC=' -n32'; break
8778
rm -f core conftest.err conftest.$ac_objext
8782
rm -f conftest.$ac_ext
8785
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
8786
$as_echo "$ac_cv_sys_largefile_CC" >&6; }
8787
if test "$ac_cv_sys_largefile_CC" != no; then
8788
CC=$CC$ac_cv_sys_largefile_CC
8791
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
8792
$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
8793
if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
8794
$as_echo_n "(cached) " >&6
8797
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8798
/* end confdefs.h. */
8799
#include <sys/types.h>
8800
/* Check that off_t can represent 2**63 - 1 correctly.
8801
We can't simply define LARGE_OFF_T to be 9223372036854775807,
8802
since some C++ compilers masquerading as C compilers
8803
incorrectly reject 9223372036854775807. */
8804
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8805
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8806
&& LARGE_OFF_T % 2147483647 == 1)
8816
if ac_fn_cxx_try_compile "$LINENO"; then :
8817
ac_cv_sys_file_offset_bits=no; break
8819
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8820
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8821
/* end confdefs.h. */
8822
#define _FILE_OFFSET_BITS 64
8823
#include <sys/types.h>
8824
/* Check that off_t can represent 2**63 - 1 correctly.
8825
We can't simply define LARGE_OFF_T to be 9223372036854775807,
8826
since some C++ compilers masquerading as C compilers
8827
incorrectly reject 9223372036854775807. */
8828
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8829
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8830
&& LARGE_OFF_T % 2147483647 == 1)
8840
if ac_fn_cxx_try_compile "$LINENO"; then :
8841
ac_cv_sys_file_offset_bits=64; break
8843
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8844
ac_cv_sys_file_offset_bits=unknown
8848
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
8849
$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
8850
case $ac_cv_sys_file_offset_bits in #(
8853
cat >>confdefs.h <<_ACEOF
8854
#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8859
if test $ac_cv_sys_file_offset_bits = unknown; then
8860
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
8861
$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
8862
if test "${ac_cv_sys_large_files+set}" = set; then :
8863
$as_echo_n "(cached) " >&6
8866
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8867
/* end confdefs.h. */
8868
#include <sys/types.h>
8869
/* Check that off_t can represent 2**63 - 1 correctly.
8870
We can't simply define LARGE_OFF_T to be 9223372036854775807,
8871
since some C++ compilers masquerading as C compilers
8872
incorrectly reject 9223372036854775807. */
8873
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8874
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8875
&& LARGE_OFF_T % 2147483647 == 1)
8885
if ac_fn_cxx_try_compile "$LINENO"; then :
8886
ac_cv_sys_large_files=no; break
8888
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8889
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8890
/* end confdefs.h. */
8891
#define _LARGE_FILES 1
8892
#include <sys/types.h>
8893
/* Check that off_t can represent 2**63 - 1 correctly.
8894
We can't simply define LARGE_OFF_T to be 9223372036854775807,
8895
since some C++ compilers masquerading as C compilers
8896
incorrectly reject 9223372036854775807. */
8897
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8898
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8899
&& LARGE_OFF_T % 2147483647 == 1)
8909
if ac_fn_cxx_try_compile "$LINENO"; then :
8910
ac_cv_sys_large_files=1; break
8912
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8913
ac_cv_sys_large_files=unknown
8917
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
8918
$as_echo "$ac_cv_sys_large_files" >&6; }
8919
case $ac_cv_sys_large_files in #(
8922
cat >>confdefs.h <<_ACEOF
8923
#define _LARGE_FILES $ac_cv_sys_large_files
8932
# Checks for library functions.
8934
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
8935
$as_echo_n "checking whether NLS is requested... " >&6; }
8936
# Check whether --enable-nls was given.
8937
if test "${enable_nls+set}" = set; then :
8938
enableval=$enable_nls; USE_NLS=$enableval
8943
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
8944
$as_echo "$USE_NLS" >&6; }
8949
GETTEXT_MACRO_VERSION=0.17
8954
# Prepare PATH_SEPARATOR.
8955
# The user is always right.
8956
if test "${PATH_SEPARATOR+set}" != set; then
8957
echo "#! /bin/sh" >conf$$.sh
8958
echo "exit 0" >>conf$$.sh
8960
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8968
# Find out how to test for executable files. Don't use a zero-byte file,
8969
# as systems may use methods other than mode bits to determine executability.
8970
cat >conf$$.file <<_ASEOF
8974
chmod +x conf$$.file
8975
if test -x conf$$.file >/dev/null 2>&1; then
8976
ac_executable_p="test -x"
8978
ac_executable_p="test -f"
8982
# Extract the first word of "msgfmt", so it can be a program name with args.
8983
set dummy msgfmt; ac_word=$2
8984
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8985
$as_echo_n "checking for $ac_word... " >&6; }
8986
if test "${ac_cv_path_MSGFMT+set}" = set; then :
8987
$as_echo_n "(cached) " >&6
8991
ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8994
ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
8995
for ac_dir in $PATH; do
8997
test -z "$ac_dir" && ac_dir=.
8998
for ac_exec_ext in '' $ac_executable_extensions; do
8999
if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
9000
echo "$as_me: trying $ac_dir/$ac_word..." >&5
9001
if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
9002
(if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
9003
ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
9010
test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
9014
MSGFMT="$ac_cv_path_MSGFMT"
9015
if test "$MSGFMT" != ":"; then
9016
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
9017
$as_echo "$MSGFMT" >&6; }
9019
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9020
$as_echo "no" >&6; }
9023
# Extract the first word of "gmsgfmt", so it can be a program name with args.
9024
set dummy gmsgfmt; ac_word=$2
9025
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9026
$as_echo_n "checking for $ac_word... " >&6; }
9027
if test "${ac_cv_path_GMSGFMT+set}" = set; then :
9028
$as_echo_n "(cached) " >&6
9032
ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
9035
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9039
test -z "$as_dir" && as_dir=.
9040
for ac_exec_ext in '' $ac_executable_extensions; do
9041
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9042
ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
9043
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9050
test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
9054
GMSGFMT=$ac_cv_path_GMSGFMT
9055
if test -n "$GMSGFMT"; then
9056
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
9057
$as_echo "$GMSGFMT" >&6; }
9059
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9060
$as_echo "no" >&6; }
9065
case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
9066
'' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
9067
*) MSGFMT_015=$MSGFMT ;;
9070
case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
9071
'' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
9072
*) GMSGFMT_015=$GMSGFMT ;;
9077
# Prepare PATH_SEPARATOR.
9078
# The user is always right.
9079
if test "${PATH_SEPARATOR+set}" != set; then
9080
echo "#! /bin/sh" >conf$$.sh
9081
echo "exit 0" >>conf$$.sh
9083
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9091
# Find out how to test for executable files. Don't use a zero-byte file,
9092
# as systems may use methods other than mode bits to determine executability.
9093
cat >conf$$.file <<_ASEOF
9097
chmod +x conf$$.file
9098
if test -x conf$$.file >/dev/null 2>&1; then
9099
ac_executable_p="test -x"
9101
ac_executable_p="test -f"
9105
# Extract the first word of "xgettext", so it can be a program name with args.
9106
set dummy xgettext; ac_word=$2
9107
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9108
$as_echo_n "checking for $ac_word... " >&6; }
9109
if test "${ac_cv_path_XGETTEXT+set}" = set; then :
9110
$as_echo_n "(cached) " >&6
9114
ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
9117
ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
9118
for ac_dir in $PATH; do
9120
test -z "$ac_dir" && ac_dir=.
9121
for ac_exec_ext in '' $ac_executable_extensions; do
9122
if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
9123
echo "$as_me: trying $ac_dir/$ac_word..." >&5
9124
if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
9125
(if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
9126
ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
9133
test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
9137
XGETTEXT="$ac_cv_path_XGETTEXT"
9138
if test "$XGETTEXT" != ":"; then
9139
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
9140
$as_echo "$XGETTEXT" >&6; }
9142
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9143
$as_echo "no" >&6; }
9148
case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
9149
'' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
9150
*) XGETTEXT_015=$XGETTEXT ;;
9155
# Prepare PATH_SEPARATOR.
9156
# The user is always right.
9157
if test "${PATH_SEPARATOR+set}" != set; then
9158
echo "#! /bin/sh" >conf$$.sh
9159
echo "exit 0" >>conf$$.sh
9161
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9169
# Find out how to test for executable files. Don't use a zero-byte file,
9170
# as systems may use methods other than mode bits to determine executability.
9171
cat >conf$$.file <<_ASEOF
9175
chmod +x conf$$.file
9176
if test -x conf$$.file >/dev/null 2>&1; then
9177
ac_executable_p="test -x"
9179
ac_executable_p="test -f"
9183
# Extract the first word of "msgmerge", so it can be a program name with args.
9184
set dummy msgmerge; ac_word=$2
9185
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9186
$as_echo_n "checking for $ac_word... " >&6; }
9187
if test "${ac_cv_path_MSGMERGE+set}" = set; then :
9188
$as_echo_n "(cached) " >&6
9192
ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
9195
ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
9196
for ac_dir in $PATH; do
9198
test -z "$ac_dir" && ac_dir=.
9199
for ac_exec_ext in '' $ac_executable_extensions; do
9200
if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
9201
echo "$as_me: trying $ac_dir/$ac_word..." >&5
9202
if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
9203
ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
9210
test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
9214
MSGMERGE="$ac_cv_path_MSGMERGE"
9215
if test "$MSGMERGE" != ":"; then
9216
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
9217
$as_echo "$MSGMERGE" >&6; }
9219
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9220
$as_echo "no" >&6; }
9224
test -n "$localedir" || localedir='${datadir}/locale'
9227
test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
9230
ac_config_commands="$ac_config_commands po-directories"
9234
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
9235
$as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
9236
if test "${ac_cv_gnu_library_2+set}" = set; then :
9237
$as_echo_n "(cached) " >&6
9239
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9240
/* end confdefs.h. */
9242
#include <features.h>
9243
#ifdef __GNU_LIBRARY__
9244
#if (__GLIBC__ >= 2)
9250
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9251
$EGREP "Lucky GNU user" >/dev/null 2>&1; then :
9252
ac_cv_gnu_library_2=yes
9254
ac_cv_gnu_library_2=no
9261
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
9262
$as_echo "$ac_cv_gnu_library_2" >&6; }
9264
GLIBC2="$ac_cv_gnu_library_2"
9271
if test -n "$GCC"; then
9272
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
9273
$as_echo_n "checking for simple visibility declarations... " >&6; }
9274
if test "${gl_cv_cc_visibility+set}" = set; then :
9275
$as_echo_n "(cached) " >&6
9278
gl_save_CFLAGS="$CFLAGS"
9279
CFLAGS="$CFLAGS -fvisibility=hidden"
9280
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9281
/* end confdefs.h. */
9282
extern __attribute__((__visibility__("hidden"))) int hiddenvar;
9283
extern __attribute__((__visibility__("default"))) int exportedvar;
9284
extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
9285
extern __attribute__((__visibility__("default"))) int exportedfunc (void);
9294
if ac_fn_cxx_try_compile "$LINENO"; then :
9295
gl_cv_cc_visibility=yes
9297
gl_cv_cc_visibility=no
9299
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9300
CFLAGS="$gl_save_CFLAGS"
9303
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
9304
$as_echo "$gl_cv_cc_visibility" >&6; }
9305
if test $gl_cv_cc_visibility = yes; then
9306
CFLAG_VISIBILITY="-fvisibility=hidden"
9313
cat >>confdefs.h <<_ACEOF
9314
#define HAVE_VISIBILITY $HAVE_VISIBILITY
9319
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
9320
$as_echo_n "checking for stdint.h... " >&6; }
9321
if test "${gl_cv_header_stdint_h+set}" = set; then :
9322
$as_echo_n "(cached) " >&6
9324
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9325
/* end confdefs.h. */
9326
#include <sys/types.h>
9331
uintmax_t i = (uintmax_t) -1; return !i;
9336
if ac_fn_cxx_try_compile "$LINENO"; then :
9337
gl_cv_header_stdint_h=yes
9339
gl_cv_header_stdint_h=no
9341
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9343
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
9344
$as_echo "$gl_cv_header_stdint_h" >&6; }
9345
if test $gl_cv_header_stdint_h = yes; then
9347
cat >>confdefs.h <<_ACEOF
9348
#define HAVE_STDINT_H_WITH_UINTMAX 1
9356
for ac_header in $ac_header_list
9358
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9359
ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9361
eval as_val=\$$as_ac_Header
9362
if test "x$as_val" = x""yes; then :
9363
cat >>confdefs.h <<_ACEOF
9364
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9378
for ac_func in getpagesize
9380
ac_fn_cxx_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
9381
if test "x$ac_cv_func_getpagesize" = x""yes; then :
9382
cat >>confdefs.h <<_ACEOF
9383
#define HAVE_GETPAGESIZE 1
9389
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
9390
$as_echo_n "checking for working mmap... " >&6; }
9391
if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
9392
$as_echo_n "(cached) " >&6
9394
if test "$cross_compiling" = yes; then :
9395
ac_cv_func_mmap_fixed_mapped=no
9397
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9398
/* end confdefs.h. */
9399
$ac_includes_default
9400
/* malloc might have been renamed as rpl_malloc. */
9403
/* Thanks to Mike Haertel and Jim Avera for this test.
9404
Here is a matrix of mmap possibilities:
9405
mmap private not fixed
9406
mmap private fixed at somewhere currently unmapped
9407
mmap private fixed at somewhere already mapped
9408
mmap shared not fixed
9409
mmap shared fixed at somewhere currently unmapped
9410
mmap shared fixed at somewhere already mapped
9411
For private mappings, we should verify that changes cannot be read()
9412
back from the file, nor mmap's back from the file at a different
9413
address. (There have been systems where private was not correctly
9414
implemented like the infamous i386 svr4.0, and systems where the
9415
VM page cache was not coherent with the file system buffer cache
9416
like early versions of FreeBSD and possibly contemporary NetBSD.)
9417
For shared mappings, we should conversely verify that changes get
9418
propagated back to all the places they're supposed to be.
9420
Grep wants private fixed already mapped.
9421
The main things grep needs to know about mmap are:
9422
* does it exist and is it safe to write into the mmap'd area
9423
* how to use it (BSD variants) */
9426
#include <sys/mman.h>
9428
#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9432
/* This mess was copied from the GNU getpagesize.h. */
9433
#ifndef HAVE_GETPAGESIZE
9434
# ifdef _SC_PAGESIZE
9435
# define getpagesize() sysconf(_SC_PAGESIZE)
9436
# else /* no _SC_PAGESIZE */
9437
# ifdef HAVE_SYS_PARAM_H
9438
# include <sys/param.h>
9439
# ifdef EXEC_PAGESIZE
9440
# define getpagesize() EXEC_PAGESIZE
9441
# else /* no EXEC_PAGESIZE */
9443
# define getpagesize() NBPG * CLSIZE
9446
# endif /* no CLSIZE */
9447
# else /* no NBPG */
9449
# define getpagesize() NBPC
9450
# else /* no NBPC */
9452
# define getpagesize() PAGESIZE
9453
# endif /* PAGESIZE */
9454
# endif /* no NBPC */
9455
# endif /* no NBPG */
9456
# endif /* no EXEC_PAGESIZE */
9457
# else /* no HAVE_SYS_PARAM_H */
9458
# define getpagesize() 8192 /* punt totally */
9459
# endif /* no HAVE_SYS_PARAM_H */
9460
# endif /* no _SC_PAGESIZE */
9462
#endif /* no HAVE_GETPAGESIZE */
9467
char *data, *data2, *data3;
9472
pagesize = getpagesize ();
9474
/* First, make a file with some known garbage in it. */
9475
data = (char *) malloc (pagesize);
9478
for (i = 0; i < pagesize; ++i)
9479
*(data + i) = rand ();
9481
fd = creat ("conftest.mmap", 0600);
9484
if (write (fd, data, pagesize) != pagesize)
9488
/* Next, check that the tail of a page is zero-filled. File must have
9489
non-zero length, otherwise we risk SIGBUS for entire page. */
9490
fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
9494
if (write (fd2, cdata2, 1) != 1)
9496
data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
9497
if (data2 == MAP_FAILED)
9499
for (i = 0; i < pagesize; ++i)
9503
if (munmap (data2, pagesize))
9506
/* Next, try to mmap the file at a fixed address which already has
9507
something else allocated at it. If we can, also make sure that
9508
we see the same garbage. */
9509
fd = open ("conftest.mmap", O_RDWR);
9512
if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9513
MAP_PRIVATE | MAP_FIXED, fd, 0L))
9515
for (i = 0; i < pagesize; ++i)
9516
if (*(data + i) != *(data2 + i))
9519
/* Finally, make sure that changes to the mapped area do not
9520
percolate back to the file as seen by read(). (This is a bug on
9521
some variants of i386 svr4.0.) */
9522
for (i = 0; i < pagesize; ++i)
9523
*(data2 + i) = *(data2 + i) + 1;
9524
data3 = (char *) malloc (pagesize);
9527
if (read (fd, data3, pagesize) != pagesize)
9529
for (i = 0; i < pagesize; ++i)
9530
if (*(data + i) != *(data3 + i))
9536
if ac_fn_cxx_try_run "$LINENO"; then :
9537
ac_cv_func_mmap_fixed_mapped=yes
9539
ac_cv_func_mmap_fixed_mapped=no
9541
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9542
conftest.$ac_objext conftest.beam conftest.$ac_ext
9546
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
9547
$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
9548
if test $ac_cv_func_mmap_fixed_mapped = yes; then
9550
$as_echo "#define HAVE_MMAP 1" >>confdefs.h
9553
rm -f conftest.mmap conftest.txt
9557
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
9558
$as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
9559
if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then :
9560
$as_echo_n "(cached) " >&6
9563
gt_cv_int_divbyzero_sigfpe=
9565
macos* | darwin[6-9]* | darwin[1-9][0-9]*)
9566
# On MacOS X 10.2 or newer, just assume the same as when cross-
9567
# compiling. If we were to perform the real test, 1 Crash Report
9568
# dialog window would pop up.
9570
i[34567]86 | x86_64)
9571
gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
9575
if test -z "$gt_cv_int_divbyzero_sigfpe"; then
9576
if test "$cross_compiling" = yes; then :
9578
# Guess based on the CPU.
9580
alpha* | i[34567]86 | x86_64 | m68k | s390*)
9581
gt_cv_int_divbyzero_sigfpe="guessing yes";;
9583
gt_cv_int_divbyzero_sigfpe="guessing no";;
9587
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9588
/* end confdefs.h. */
9594
sigfpe_handler (int sig)
9596
/* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
9597
exit (sig != SIGFPE);
9607
signal (SIGFPE, sigfpe_handler);
9608
/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
9609
#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
9610
signal (SIGTRAP, sigfpe_handler);
9612
/* Linux/SPARC yields signal SIGILL. */
9613
#if defined (__sparc__) && defined (__linux__)
9614
signal (SIGILL, sigfpe_handler);
9623
if ac_fn_cxx_try_run "$LINENO"; then :
9624
gt_cv_int_divbyzero_sigfpe=yes
9626
gt_cv_int_divbyzero_sigfpe=no
9628
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9629
conftest.$ac_objext conftest.beam conftest.$ac_ext
9635
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
9636
$as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
9637
case "$gt_cv_int_divbyzero_sigfpe" in
9642
cat >>confdefs.h <<_ACEOF
9643
#define INTDIV0_RAISES_SIGFPE $value
9648
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9649
$as_echo_n "checking for inttypes.h... " >&6; }
9650
if test "${gl_cv_header_inttypes_h+set}" = set; then :
9651
$as_echo_n "(cached) " >&6
9653
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9654
/* end confdefs.h. */
9655
#include <sys/types.h>
9656
#include <inttypes.h>
9660
uintmax_t i = (uintmax_t) -1; return !i;
9665
if ac_fn_cxx_try_compile "$LINENO"; then :
9666
gl_cv_header_inttypes_h=yes
9668
gl_cv_header_inttypes_h=no
9670
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9672
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
9673
$as_echo "$gl_cv_header_inttypes_h" >&6; }
9674
if test $gl_cv_header_inttypes_h = yes; then
9676
cat >>confdefs.h <<_ACEOF
9677
#define HAVE_INTTYPES_H_WITH_UINTMAX 1
9683
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
9684
$as_echo_n "checking for unsigned long long int... " >&6; }
9685
if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
9686
$as_echo_n "(cached) " >&6
9688
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9689
/* end confdefs.h. */
9691
/* Test preprocessor. */
9692
#if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
9693
error in preprocessor;
9695
#if ! (18446744073709551615ULL <= -1ull)
9696
error in preprocessor;
9698
/* Test literals. */
9699
long long int ll = 9223372036854775807ll;
9700
long long int nll = -9223372036854775807LL;
9701
unsigned long long int ull = 18446744073709551615ULL;
9702
/* Test constant expressions. */
9703
typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
9705
typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
9711
/* Test availability of runtime routines for shift and division. */
9712
long long int llmax = 9223372036854775807ll;
9713
unsigned long long int ullmax = 18446744073709551615ull;
9714
return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
9715
| (llmax / ll) | (llmax % ll)
9716
| (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
9717
| (ullmax / ull) | (ullmax % ull));
9723
if ac_fn_cxx_try_link "$LINENO"; then :
9724
ac_cv_type_unsigned_long_long_int=yes
9726
ac_cv_type_unsigned_long_long_int=no
9728
rm -f core conftest.err conftest.$ac_objext \
9729
conftest$ac_exeext conftest.$ac_ext
9731
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
9732
$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
9733
if test $ac_cv_type_unsigned_long_long_int = yes; then
9735
$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
9742
if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
9744
test $ac_cv_type_unsigned_long_long_int = yes \
9745
&& ac_type='unsigned long long' \
9746
|| ac_type='unsigned long'
9748
cat >>confdefs.h <<_ACEOF
9749
#define uintmax_t $ac_type
9754
$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
9759
for ac_header in inttypes.h
9761
ac_fn_cxx_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
9762
if test "x$ac_cv_header_inttypes_h" = x""yes; then :
9763
cat >>confdefs.h <<_ACEOF
9764
#define HAVE_INTTYPES_H 1
9771
if test $ac_cv_header_inttypes_h = yes; then
9772
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
9773
$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
9774
if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
9775
$as_echo_n "(cached) " >&6
9778
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9779
/* end confdefs.h. */
9780
#include <inttypes.h>
9793
if ac_fn_cxx_try_compile "$LINENO"; then :
9794
gt_cv_inttypes_pri_broken=no
9796
gt_cv_inttypes_pri_broken=yes
9798
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9801
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
9802
$as_echo "$gt_cv_inttypes_pri_broken" >&6; }
9804
if test "$gt_cv_inttypes_pri_broken" = yes; then
9806
cat >>confdefs.h <<_ACEOF
9807
#define PRI_MACROS_BROKEN 1
9820
# Check whether --enable-threads was given.
9821
if test "${enable_threads+set}" = set; then :
9822
enableval=$enable_threads; gl_use_threads=$enableval
9825
osf*) gl_use_threads=no ;;
9826
*) gl_use_threads=yes ;;
9831
if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
9832
# For using <pthread.h>:
9835
# On OSF/1, the compiler needs the flag -D_REENTRANT so that it
9836
# groks <pthread.h>. cc also understands the flag -pthread, but
9837
# we don't use it because 1. gcc-2.95 doesn't understand -pthread,
9838
# 2. putting a flag into CPPFLAGS that has an effect on the linker
9839
# causes the AC_TRY_LINK test below to succeed unexpectedly,
9840
# leading to wrong values of LIBTHREAD and LTLIBTHREAD.
9841
CPPFLAGS="$CPPFLAGS -D_REENTRANT"
9844
# Some systems optimize for single-threaded programs by default, and
9845
# need special flags to disable these optimizations. For example, the
9846
# definition of 'errno' in <errno.h>.
9848
aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
9849
solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
9857
if test "X$prefix" = "XNONE"; then
9858
acl_final_prefix="$ac_default_prefix"
9860
acl_final_prefix="$prefix"
9862
if test "X$exec_prefix" = "XNONE"; then
9863
acl_final_exec_prefix='${prefix}'
9865
acl_final_exec_prefix="$exec_prefix"
9867
acl_save_prefix="$prefix"
9868
prefix="$acl_final_prefix"
9869
eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9870
prefix="$acl_save_prefix"
9873
# Check whether --with-gnu-ld was given.
9874
if test "${with_gnu_ld+set}" = set; then :
9875
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9880
# Prepare PATH_SEPARATOR.
9881
# The user is always right.
9882
if test "${PATH_SEPARATOR+set}" != set; then
9883
echo "#! /bin/sh" >conf$$.sh
9884
echo "exit 0" >>conf$$.sh
9886
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9894
if test "$GCC" = yes; then
9895
# Check if gcc -print-prog-name=ld gives a path.
9896
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9897
$as_echo_n "checking for ld used by GCC... " >&6; }
9900
# gcc leaves a trailing carriage return which upsets mingw
9901
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9903
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9906
# Accept absolute paths.
9907
[\\/]* | [A-Za-z]:[\\/]*)
9908
re_direlt='/[^/][^/]*/\.\./'
9909
# Canonicalize the path of ld
9910
ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9911
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9912
ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9914
test -z "$LD" && LD="$ac_prog"
9917
# If it fails, then pretend we aren't using GCC.
9921
# If it is relative, then search for the first ld in PATH.
9925
elif test "$with_gnu_ld" = yes; then
9926
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9927
$as_echo_n "checking for GNU ld... " >&6; }
9929
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9930
$as_echo_n "checking for non-GNU ld... " >&6; }
9932
if test "${acl_cv_path_LD+set}" = set; then :
9933
$as_echo_n "(cached) " >&6
9935
if test -z "$LD"; then
9936
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9937
for ac_dir in $PATH; do
9938
test -z "$ac_dir" && ac_dir=.
9939
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9940
acl_cv_path_LD="$ac_dir/$ac_prog"
9941
# Check to see if the program is GNU ld. I'd rather use --version,
9942
# but apparently some GNU ld's only accept -v.
9943
# Break only if it was the GNU/non-GNU ld that we prefer.
9944
case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
9945
*GNU* | *'with BFD'*)
9946
test "$with_gnu_ld" != no && break ;;
9948
test "$with_gnu_ld" != yes && break ;;
9954
acl_cv_path_LD="$LD" # Let the user override the test with a path.
9958
LD="$acl_cv_path_LD"
9959
if test -n "$LD"; then
9960
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9961
$as_echo "$LD" >&6; }
9963
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9964
$as_echo "no" >&6; }
9966
test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9967
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9968
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9969
if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9970
$as_echo_n "(cached) " >&6
9972
# I'd rather use --version here, but apparently some GNU ld's only accept -v.
9973
case `$LD -v 2>&1 </dev/null` in
9974
*GNU* | *'with BFD'*)
9975
acl_cv_prog_gnu_ld=yes ;;
9977
acl_cv_prog_gnu_ld=no ;;
9980
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9981
$as_echo "$acl_cv_prog_gnu_ld" >&6; }
9982
with_gnu_ld=$acl_cv_prog_gnu_ld
9987
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9988
$as_echo_n "checking for shared library run path origin... " >&6; }
9989
if test "${acl_cv_rpath+set}" = set; then :
9990
$as_echo_n "(cached) " >&6
9993
CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9994
${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10000
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10001
$as_echo "$acl_cv_rpath" >&6; }
10003
acl_libext="$acl_cv_libext"
10004
acl_shlibext="$acl_cv_shlibext"
10005
acl_libname_spec="$acl_cv_libname_spec"
10006
acl_library_names_spec="$acl_cv_library_names_spec"
10007
acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10008
acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10009
acl_hardcode_direct="$acl_cv_hardcode_direct"
10010
acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
10011
# Check whether --enable-rpath was given.
10012
if test "${enable_rpath+set}" = set; then :
10013
enableval=$enable_rpath; :
10021
searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
10022
if test -n "$searchpath"; then
10023
acl_save_IFS="${IFS= }"; IFS=":"
10024
for searchdir in $searchpath; do
10025
if test -d "$searchdir"; then
10026
case "$searchdir" in
10027
*/lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
10028
*) searchdir=`cd "$searchdir" && pwd`
10029
case "$searchdir" in
10030
*/lib64 ) acl_libdirstem=lib64 ;;
10035
IFS="$acl_save_IFS"
10040
gl_threads_api=none
10045
if test "$gl_use_threads" != no; then
10046
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
10047
$as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
10049
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10050
/* end confdefs.h. */
10051
extern void xyzzy ();
10061
if ac_fn_cxx_try_link "$LINENO"; then :
10064
rm -f core conftest.err conftest.$ac_objext \
10065
conftest$ac_exeext conftest.$ac_ext
10066
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_weak" >&5
10067
$as_echo "$gl_have_weak" >&6; }
10068
if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
10069
# On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
10070
# it groks <pthread.h>. It's added above, in gl_LOCK_EARLY_BODY.
10071
ac_fn_cxx_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
10072
if test "x$ac_cv_header_pthread_h" = x""yes; then :
10073
gl_have_pthread_h=yes
10075
gl_have_pthread_h=no
10079
if test "$gl_have_pthread_h" = yes; then
10080
# Other possible tests:
10081
# -lpthreads (FSU threads, PCthreads)
10084
# Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
10085
# in libc. IRIX 6.5 has the first one in both libc and libpthread, but
10086
# the second one only in libpthread, and lock.c needs it.
10087
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10088
/* end confdefs.h. */
10089
#include <pthread.h>
10093
pthread_mutex_lock((pthread_mutex_t*)0);
10094
pthread_mutexattr_init((pthread_mutexattr_t*)0);
10099
if ac_fn_cxx_try_link "$LINENO"; then :
10100
gl_have_pthread=yes
10102
rm -f core conftest.err conftest.$ac_objext \
10103
conftest$ac_exeext conftest.$ac_ext
10104
# Test for libpthread by looking for pthread_kill. (Not pthread_self,
10105
# since it is defined as a macro on OSF/1.)
10106
if test -n "$gl_have_pthread"; then
10107
# The program links fine without libpthread. But it may actually
10108
# need to link with libpthread in order to create multiple threads.
10109
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
10110
$as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
10111
if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then :
10112
$as_echo_n "(cached) " >&6
10114
ac_check_lib_save_LIBS=$LIBS
10115
LIBS="-lpthread $LIBS"
10116
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10117
/* end confdefs.h. */
10119
/* Override any GCC internal prototype to avoid an error.
10120
Use char because int might match the return type of a GCC
10121
builtin and then its argument prototype would still apply. */
10125
char pthread_kill ();
10129
return pthread_kill ();
10134
if ac_fn_cxx_try_link "$LINENO"; then :
10135
ac_cv_lib_pthread_pthread_kill=yes
10137
ac_cv_lib_pthread_pthread_kill=no
10139
rm -f core conftest.err conftest.$ac_objext \
10140
conftest$ac_exeext conftest.$ac_ext
10141
LIBS=$ac_check_lib_save_LIBS
10143
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
10144
$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
10145
if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then :
10146
LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
10147
# On Solaris and HP-UX, most pthread functions exist also in libc.
10148
# Therefore pthread_in_use() needs to actually try to create a
10149
# thread: pthread_create from libc will fail, whereas
10150
# pthread_create will actually create a thread.
10154
$as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
10161
# Some library is needed. Try libpthread and libc_r.
10162
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
10163
$as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
10164
if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then :
10165
$as_echo_n "(cached) " >&6
10167
ac_check_lib_save_LIBS=$LIBS
10168
LIBS="-lpthread $LIBS"
10169
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10170
/* end confdefs.h. */
10172
/* Override any GCC internal prototype to avoid an error.
10173
Use char because int might match the return type of a GCC
10174
builtin and then its argument prototype would still apply. */
10178
char pthread_kill ();
10182
return pthread_kill ();
10187
if ac_fn_cxx_try_link "$LINENO"; then :
10188
ac_cv_lib_pthread_pthread_kill=yes
10190
ac_cv_lib_pthread_pthread_kill=no
10192
rm -f core conftest.err conftest.$ac_objext \
10193
conftest$ac_exeext conftest.$ac_ext
10194
LIBS=$ac_check_lib_save_LIBS
10196
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
10197
$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
10198
if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then :
10199
gl_have_pthread=yes
10200
LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
10201
LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
10204
if test -z "$gl_have_pthread"; then
10206
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
10207
$as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
10208
if test "${ac_cv_lib_c_r_pthread_kill+set}" = set; then :
10209
$as_echo_n "(cached) " >&6
10211
ac_check_lib_save_LIBS=$LIBS
10213
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10214
/* end confdefs.h. */
10216
/* Override any GCC internal prototype to avoid an error.
10217
Use char because int might match the return type of a GCC
10218
builtin and then its argument prototype would still apply. */
10222
char pthread_kill ();
10226
return pthread_kill ();
10231
if ac_fn_cxx_try_link "$LINENO"; then :
10232
ac_cv_lib_c_r_pthread_kill=yes
10234
ac_cv_lib_c_r_pthread_kill=no
10236
rm -f core conftest.err conftest.$ac_objext \
10237
conftest$ac_exeext conftest.$ac_ext
10238
LIBS=$ac_check_lib_save_LIBS
10240
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
10241
$as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
10242
if test "x$ac_cv_lib_c_r_pthread_kill" = x""yes; then :
10243
gl_have_pthread=yes
10244
LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
10245
LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
10250
if test -n "$gl_have_pthread"; then
10251
gl_threads_api=posix
10253
$as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
10255
if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
10256
if test $gl_have_weak = yes; then
10258
$as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
10264
# OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
10265
# pthread_rwlock_* functions.
10266
ac_fn_cxx_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
10268
if test "x$ac_cv_type_pthread_rwlock_t" = x""yes; then :
10270
$as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
10274
# glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
10275
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10276
/* end confdefs.h. */
10277
#include <pthread.h>
10281
#if __FreeBSD__ == 4
10282
error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
10284
int x = (int)PTHREAD_MUTEX_RECURSIVE;
10291
if ac_fn_cxx_try_compile "$LINENO"; then :
10293
$as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
10296
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10300
if test -z "$gl_have_pthread"; then
10301
if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
10302
gl_have_solaristhread=
10303
gl_save_LIBS="$LIBS"
10304
LIBS="$LIBS -lthread"
10305
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10306
/* end confdefs.h. */
10307
#include <thread.h>
10317
if ac_fn_cxx_try_link "$LINENO"; then :
10318
gl_have_solaristhread=yes
10320
rm -f core conftest.err conftest.$ac_objext \
10321
conftest$ac_exeext conftest.$ac_ext
10322
LIBS="$gl_save_LIBS"
10323
if test -n "$gl_have_solaristhread"; then
10324
gl_threads_api=solaris
10326
LTLIBTHREAD=-lthread
10327
LIBMULTITHREAD="$LIBTHREAD"
10328
LTLIBMULTITHREAD="$LTLIBTHREAD"
10330
$as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
10332
if test $gl_have_weak = yes; then
10334
$as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
10342
if test "$gl_use_threads" = pth; then
10343
gl_save_CPPFLAGS="$CPPFLAGS"
10349
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
10350
$as_echo_n "checking how to link with libpth... " >&6; }
10351
if test "${ac_cv_libpth_libs+set}" = set; then :
10352
$as_echo_n "(cached) " >&6
10361
acl_save_prefix="$prefix"
10362
prefix="$acl_final_prefix"
10363
acl_save_exec_prefix="$exec_prefix"
10364
exec_prefix="$acl_final_exec_prefix"
10366
eval additional_includedir=\"$includedir\"
10367
eval additional_libdir=\"$libdir\"
10369
exec_prefix="$acl_save_exec_prefix"
10370
prefix="$acl_save_prefix"
10373
# Check whether --with-libpth-prefix was given.
10374
if test "${with_libpth_prefix+set}" = set; then :
10375
withval=$with_libpth_prefix;
10376
if test "X$withval" = "Xno"; then
10379
if test "X$withval" = "X"; then
10381
acl_save_prefix="$prefix"
10382
prefix="$acl_final_prefix"
10383
acl_save_exec_prefix="$exec_prefix"
10384
exec_prefix="$acl_final_exec_prefix"
10386
eval additional_includedir=\"$includedir\"
10387
eval additional_libdir=\"$libdir\"
10389
exec_prefix="$acl_save_exec_prefix"
10390
prefix="$acl_save_prefix"
10393
additional_includedir="$withval/include"
10394
additional_libdir="$withval/$acl_libdirstem"
10406
names_already_handled=
10407
names_next_round='pth '
10408
while test -n "$names_next_round"; do
10409
names_this_round="$names_next_round"
10411
for name in $names_this_round; do
10413
for n in $names_already_handled; do
10414
if test "$n" = "$name"; then
10415
already_handled=yes
10419
if test -z "$already_handled"; then
10420
names_already_handled="$names_already_handled $name"
10421
uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10422
eval value=\"\$HAVE_LIB$uppername\"
10423
if test -n "$value"; then
10424
if test "$value" = yes; then
10425
eval value=\"\$LIB$uppername\"
10426
test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
10427
eval value=\"\$LTLIB$uppername\"
10428
test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
10437
eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
10438
if test -n "$acl_shlibext"; then
10439
shrext=".$acl_shlibext" # typically: shrext=.so
10443
if test $use_additional = yes; then
10444
dir="$additional_libdir"
10445
if test -n "$acl_shlibext"; then
10446
if test -f "$dir/$libname$shrext"; then
10448
found_so="$dir/$libname$shrext"
10450
if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10451
ver=`(cd "$dir" && \
10452
for f in "$libname$shrext".*; do echo "$f"; done \
10453
| sed -e "s,^$libname$shrext\\\\.,," \
10454
| sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10455
| sed 1q ) 2>/dev/null`
10456
if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10458
found_so="$dir/$libname$shrext.$ver"
10461
eval library_names=\"$acl_library_names_spec\"
10462
for f in $library_names; do
10463
if test -f "$dir/$f"; then
10472
if test "X$found_dir" = "X"; then
10473
if test -f "$dir/$libname.$acl_libext"; then
10475
found_a="$dir/$libname.$acl_libext"
10478
if test "X$found_dir" != "X"; then
10479
if test -f "$dir/$libname.la"; then
10480
found_la="$dir/$libname.la"
10484
if test "X$found_dir" = "X"; then
10485
for x in $LDFLAGS $LTLIBPTH; do
10487
acl_save_prefix="$prefix"
10488
prefix="$acl_final_prefix"
10489
acl_save_exec_prefix="$exec_prefix"
10490
exec_prefix="$acl_final_exec_prefix"
10492
exec_prefix="$acl_save_exec_prefix"
10493
prefix="$acl_save_prefix"
10497
dir=`echo "X$x" | sed -e 's/^X-L//'`
10498
if test -n "$acl_shlibext"; then
10499
if test -f "$dir/$libname$shrext"; then
10501
found_so="$dir/$libname$shrext"
10503
if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10504
ver=`(cd "$dir" && \
10505
for f in "$libname$shrext".*; do echo "$f"; done \
10506
| sed -e "s,^$libname$shrext\\\\.,," \
10507
| sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10508
| sed 1q ) 2>/dev/null`
10509
if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10511
found_so="$dir/$libname$shrext.$ver"
10514
eval library_names=\"$acl_library_names_spec\"
10515
for f in $library_names; do
10516
if test -f "$dir/$f"; then
10525
if test "X$found_dir" = "X"; then
10526
if test -f "$dir/$libname.$acl_libext"; then
10528
found_a="$dir/$libname.$acl_libext"
10531
if test "X$found_dir" != "X"; then
10532
if test -f "$dir/$libname.la"; then
10533
found_la="$dir/$libname.la"
10538
if test "X$found_dir" != "X"; then
10543
if test "X$found_dir" != "X"; then
10544
LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
10545
if test "X$found_so" != "X"; then
10546
if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
10547
LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
10550
for x in $ltrpathdirs; do
10551
if test "X$x" = "X$found_dir"; then
10556
if test -z "$haveit"; then
10557
ltrpathdirs="$ltrpathdirs $found_dir"
10559
if test "$acl_hardcode_direct" = yes; then
10560
LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
10562
if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
10563
LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
10565
for x in $rpathdirs; do
10566
if test "X$x" = "X$found_dir"; then
10571
if test -z "$haveit"; then
10572
rpathdirs="$rpathdirs $found_dir"
10576
for x in $LDFLAGS $LIBPTH; do
10578
acl_save_prefix="$prefix"
10579
prefix="$acl_final_prefix"
10580
acl_save_exec_prefix="$exec_prefix"
10581
exec_prefix="$acl_final_exec_prefix"
10583
exec_prefix="$acl_save_exec_prefix"
10584
prefix="$acl_save_prefix"
10586
if test "X$x" = "X-L$found_dir"; then
10591
if test -z "$haveit"; then
10592
LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
10594
if test "$acl_hardcode_minus_L" != no; then
10595
LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
10597
LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
10603
if test "X$found_a" != "X"; then
10604
LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
10606
LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
10609
additional_includedir=
10610
case "$found_dir" in
10611
*/$acl_libdirstem | */$acl_libdirstem/)
10612
basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
10613
LIBPTH_PREFIX="$basedir"
10614
additional_includedir="$basedir/include"
10617
if test "X$additional_includedir" != "X"; then
10618
if test "X$additional_includedir" != "X/usr/include"; then
10620
if test "X$additional_includedir" = "X/usr/local/include"; then
10621
if test -n "$GCC"; then
10623
linux* | gnu* | k*bsd*-gnu) haveit=yes;;
10627
if test -z "$haveit"; then
10628
for x in $CPPFLAGS $INCPTH; do
10630
acl_save_prefix="$prefix"
10631
prefix="$acl_final_prefix"
10632
acl_save_exec_prefix="$exec_prefix"
10633
exec_prefix="$acl_final_exec_prefix"
10635
exec_prefix="$acl_save_exec_prefix"
10636
prefix="$acl_save_prefix"
10638
if test "X$x" = "X-I$additional_includedir"; then
10643
if test -z "$haveit"; then
10644
if test -d "$additional_includedir"; then
10645
INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
10651
if test -n "$found_la"; then
10652
save_libdir="$libdir"
10653
case "$found_la" in
10654
*/* | *\\*) . "$found_la" ;;
10655
*) . "./$found_la" ;;
10657
libdir="$save_libdir"
10658
for dep in $dependency_libs; do
10661
additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10662
if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
10664
if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
10665
if test -n "$GCC"; then
10667
linux* | gnu* | k*bsd*-gnu) haveit=yes;;
10671
if test -z "$haveit"; then
10673
for x in $LDFLAGS $LIBPTH; do
10675
acl_save_prefix="$prefix"
10676
prefix="$acl_final_prefix"
10677
acl_save_exec_prefix="$exec_prefix"
10678
exec_prefix="$acl_final_exec_prefix"
10680
exec_prefix="$acl_save_exec_prefix"
10681
prefix="$acl_save_prefix"
10683
if test "X$x" = "X-L$additional_libdir"; then
10688
if test -z "$haveit"; then
10689
if test -d "$additional_libdir"; then
10690
LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
10694
for x in $LDFLAGS $LTLIBPTH; do
10696
acl_save_prefix="$prefix"
10697
prefix="$acl_final_prefix"
10698
acl_save_exec_prefix="$exec_prefix"
10699
exec_prefix="$acl_final_exec_prefix"
10701
exec_prefix="$acl_save_exec_prefix"
10702
prefix="$acl_save_prefix"
10704
if test "X$x" = "X-L$additional_libdir"; then
10709
if test -z "$haveit"; then
10710
if test -d "$additional_libdir"; then
10711
LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
10718
dir=`echo "X$dep" | sed -e 's/^X-R//'`
10719
if test "$enable_rpath" != no; then
10721
for x in $rpathdirs; do
10722
if test "X$x" = "X$dir"; then
10727
if test -z "$haveit"; then
10728
rpathdirs="$rpathdirs $dir"
10731
for x in $ltrpathdirs; do
10732
if test "X$x" = "X$dir"; then
10737
if test -z "$haveit"; then
10738
ltrpathdirs="$ltrpathdirs $dir"
10743
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10746
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10749
LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
10750
LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
10756
LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
10757
LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
10763
if test "X$rpathdirs" != "X"; then
10764
if test -n "$acl_hardcode_libdir_separator"; then
10766
for found_dir in $rpathdirs; do
10767
alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
10769
acl_save_libdir="$libdir"
10771
eval flag=\"$acl_hardcode_libdir_flag_spec\"
10772
libdir="$acl_save_libdir"
10773
LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
10775
for found_dir in $rpathdirs; do
10776
acl_save_libdir="$libdir"
10777
libdir="$found_dir"
10778
eval flag=\"$acl_hardcode_libdir_flag_spec\"
10779
libdir="$acl_save_libdir"
10780
LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
10784
if test "X$ltrpathdirs" != "X"; then
10785
for found_dir in $ltrpathdirs; do
10786
LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
10790
ac_cv_libpth_libs="$LIBPTH"
10791
ac_cv_libpth_ltlibs="$LTLIBPTH"
10792
ac_cv_libpth_cppflags="$INCPTH"
10793
ac_cv_libpth_prefix="$LIBPTH_PREFIX"
10796
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
10797
$as_echo "$ac_cv_libpth_libs" >&6; }
10798
LIBPTH="$ac_cv_libpth_libs"
10799
LTLIBPTH="$ac_cv_libpth_ltlibs"
10800
INCPTH="$ac_cv_libpth_cppflags"
10801
LIBPTH_PREFIX="$ac_cv_libpth_prefix"
10803
for element in $INCPTH; do
10805
for x in $CPPFLAGS; do
10807
acl_save_prefix="$prefix"
10808
prefix="$acl_final_prefix"
10809
acl_save_exec_prefix="$exec_prefix"
10810
exec_prefix="$acl_final_exec_prefix"
10812
exec_prefix="$acl_save_exec_prefix"
10813
prefix="$acl_save_prefix"
10815
if test "X$x" = "X$element"; then
10820
if test -z "$haveit"; then
10821
CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10833
gl_save_LIBS="$LIBS"
10835
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10836
/* end confdefs.h. */
10846
if ac_fn_cxx_try_link "$LINENO"; then :
10849
rm -f core conftest.err conftest.$ac_objext \
10850
conftest$ac_exeext conftest.$ac_ext
10851
LIBS="$gl_save_LIBS"
10852
if test -n "$gl_have_pth"; then
10854
LIBTHREAD="$LIBPTH"
10855
LTLIBTHREAD="$LTLIBPTH"
10856
LIBMULTITHREAD="$LIBTHREAD"
10857
LTLIBMULTITHREAD="$LTLIBTHREAD"
10859
$as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
10861
if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
10862
if test $gl_have_weak = yes; then
10864
$as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
10871
CPPFLAGS="$gl_save_CPPFLAGS"
10874
if test -z "$gl_have_pthread"; then
10875
if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then
10876
if { case "$host_os" in
10881
gl_threads_api=win32
10883
$as_echo "#define USE_WIN32_THREADS 1" >>confdefs.h
10889
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
10890
$as_echo_n "checking for multithread API to use... " >&6; }
10891
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
10892
$as_echo "$gl_threads_api" >&6; }
10915
acl_save_prefix="$prefix"
10916
prefix="$acl_final_prefix"
10917
acl_save_exec_prefix="$exec_prefix"
10918
exec_prefix="$acl_final_exec_prefix"
10920
eval additional_includedir=\"$includedir\"
10921
eval additional_libdir=\"$libdir\"
10923
exec_prefix="$acl_save_exec_prefix"
10924
prefix="$acl_save_prefix"
10927
# Check whether --with-libiconv-prefix was given.
10928
if test "${with_libiconv_prefix+set}" = set; then :
10929
withval=$with_libiconv_prefix;
10930
if test "X$withval" = "Xno"; then
10933
if test "X$withval" = "X"; then
10935
acl_save_prefix="$prefix"
10936
prefix="$acl_final_prefix"
10937
acl_save_exec_prefix="$exec_prefix"
10938
exec_prefix="$acl_final_exec_prefix"
10940
eval additional_includedir=\"$includedir\"
10941
eval additional_libdir=\"$libdir\"
10943
exec_prefix="$acl_save_exec_prefix"
10944
prefix="$acl_save_prefix"
10947
additional_includedir="$withval/include"
10948
additional_libdir="$withval/$acl_libdirstem"
10960
names_already_handled=
10961
names_next_round='iconv '
10962
while test -n "$names_next_round"; do
10963
names_this_round="$names_next_round"
10965
for name in $names_this_round; do
10967
for n in $names_already_handled; do
10968
if test "$n" = "$name"; then
10969
already_handled=yes
10973
if test -z "$already_handled"; then
10974
names_already_handled="$names_already_handled $name"
10975
uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10976
eval value=\"\$HAVE_LIB$uppername\"
10977
if test -n "$value"; then
10978
if test "$value" = yes; then
10979
eval value=\"\$LIB$uppername\"
10980
test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10981
eval value=\"\$LTLIB$uppername\"
10982
test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10991
eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
10992
if test -n "$acl_shlibext"; then
10993
shrext=".$acl_shlibext" # typically: shrext=.so
10997
if test $use_additional = yes; then
10998
dir="$additional_libdir"
10999
if test -n "$acl_shlibext"; then
11000
if test -f "$dir/$libname$shrext"; then
11002
found_so="$dir/$libname$shrext"
11004
if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
11005
ver=`(cd "$dir" && \
11006
for f in "$libname$shrext".*; do echo "$f"; done \
11007
| sed -e "s,^$libname$shrext\\\\.,," \
11008
| sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
11009
| sed 1q ) 2>/dev/null`
11010
if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
11012
found_so="$dir/$libname$shrext.$ver"
11015
eval library_names=\"$acl_library_names_spec\"
11016
for f in $library_names; do
11017
if test -f "$dir/$f"; then
11026
if test "X$found_dir" = "X"; then
11027
if test -f "$dir/$libname.$acl_libext"; then
11029
found_a="$dir/$libname.$acl_libext"
11032
if test "X$found_dir" != "X"; then
11033
if test -f "$dir/$libname.la"; then
11034
found_la="$dir/$libname.la"
11038
if test "X$found_dir" = "X"; then
11039
for x in $LDFLAGS $LTLIBICONV; do
11041
acl_save_prefix="$prefix"
11042
prefix="$acl_final_prefix"
11043
acl_save_exec_prefix="$exec_prefix"
11044
exec_prefix="$acl_final_exec_prefix"
11046
exec_prefix="$acl_save_exec_prefix"
11047
prefix="$acl_save_prefix"
11051
dir=`echo "X$x" | sed -e 's/^X-L//'`
11052
if test -n "$acl_shlibext"; then
11053
if test -f "$dir/$libname$shrext"; then
11055
found_so="$dir/$libname$shrext"
11057
if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
11058
ver=`(cd "$dir" && \
11059
for f in "$libname$shrext".*; do echo "$f"; done \
11060
| sed -e "s,^$libname$shrext\\\\.,," \
11061
| sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
11062
| sed 1q ) 2>/dev/null`
11063
if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
11065
found_so="$dir/$libname$shrext.$ver"
11068
eval library_names=\"$acl_library_names_spec\"
11069
for f in $library_names; do
11070
if test -f "$dir/$f"; then
11079
if test "X$found_dir" = "X"; then
11080
if test -f "$dir/$libname.$acl_libext"; then
11082
found_a="$dir/$libname.$acl_libext"
11085
if test "X$found_dir" != "X"; then
11086
if test -f "$dir/$libname.la"; then
11087
found_la="$dir/$libname.la"
11092
if test "X$found_dir" != "X"; then
11097
if test "X$found_dir" != "X"; then
11098
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11099
if test "X$found_so" != "X"; then
11100
if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
11101
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11104
for x in $ltrpathdirs; do
11105
if test "X$x" = "X$found_dir"; then
11110
if test -z "$haveit"; then
11111
ltrpathdirs="$ltrpathdirs $found_dir"
11113
if test "$acl_hardcode_direct" = yes; then
11114
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11116
if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
11117
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11119
for x in $rpathdirs; do
11120
if test "X$x" = "X$found_dir"; then
11125
if test -z "$haveit"; then
11126
rpathdirs="$rpathdirs $found_dir"
11130
for x in $LDFLAGS $LIBICONV; do
11132
acl_save_prefix="$prefix"
11133
prefix="$acl_final_prefix"
11134
acl_save_exec_prefix="$exec_prefix"
11135
exec_prefix="$acl_final_exec_prefix"
11137
exec_prefix="$acl_save_exec_prefix"
11138
prefix="$acl_save_prefix"
11140
if test "X$x" = "X-L$found_dir"; then
11145
if test -z "$haveit"; then
11146
LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11148
if test "$acl_hardcode_minus_L" != no; then
11149
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11151
LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11157
if test "X$found_a" != "X"; then
11158
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
11160
LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11163
additional_includedir=
11164
case "$found_dir" in
11165
*/$acl_libdirstem | */$acl_libdirstem/)
11166
basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
11167
LIBICONV_PREFIX="$basedir"
11168
additional_includedir="$basedir/include"
11171
if test "X$additional_includedir" != "X"; then
11172
if test "X$additional_includedir" != "X/usr/include"; then
11174
if test "X$additional_includedir" = "X/usr/local/include"; then
11175
if test -n "$GCC"; then
11177
linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11181
if test -z "$haveit"; then
11182
for x in $CPPFLAGS $INCICONV; do
11184
acl_save_prefix="$prefix"
11185
prefix="$acl_final_prefix"
11186
acl_save_exec_prefix="$exec_prefix"
11187
exec_prefix="$acl_final_exec_prefix"
11189
exec_prefix="$acl_save_exec_prefix"
11190
prefix="$acl_save_prefix"
11192
if test "X$x" = "X-I$additional_includedir"; then
11197
if test -z "$haveit"; then
11198
if test -d "$additional_includedir"; then
11199
INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11205
if test -n "$found_la"; then
11206
save_libdir="$libdir"
11207
case "$found_la" in
11208
*/* | *\\*) . "$found_la" ;;
11209
*) . "./$found_la" ;;
11211
libdir="$save_libdir"
11212
for dep in $dependency_libs; do
11215
additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11216
if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
11218
if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
11219
if test -n "$GCC"; then
11221
linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11225
if test -z "$haveit"; then
11227
for x in $LDFLAGS $LIBICONV; do
11229
acl_save_prefix="$prefix"
11230
prefix="$acl_final_prefix"
11231
acl_save_exec_prefix="$exec_prefix"
11232
exec_prefix="$acl_final_exec_prefix"
11234
exec_prefix="$acl_save_exec_prefix"
11235
prefix="$acl_save_prefix"
11237
if test "X$x" = "X-L$additional_libdir"; then
11242
if test -z "$haveit"; then
11243
if test -d "$additional_libdir"; then
11244
LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11248
for x in $LDFLAGS $LTLIBICONV; do
11250
acl_save_prefix="$prefix"
11251
prefix="$acl_final_prefix"
11252
acl_save_exec_prefix="$exec_prefix"
11253
exec_prefix="$acl_final_exec_prefix"
11255
exec_prefix="$acl_save_exec_prefix"
11256
prefix="$acl_save_prefix"
11258
if test "X$x" = "X-L$additional_libdir"; then
11263
if test -z "$haveit"; then
11264
if test -d "$additional_libdir"; then
11265
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11272
dir=`echo "X$dep" | sed -e 's/^X-R//'`
11273
if test "$enable_rpath" != no; then
11275
for x in $rpathdirs; do
11276
if test "X$x" = "X$dir"; then
11281
if test -z "$haveit"; then
11282
rpathdirs="$rpathdirs $dir"
11285
for x in $ltrpathdirs; do
11286
if test "X$x" = "X$dir"; then
11291
if test -z "$haveit"; then
11292
ltrpathdirs="$ltrpathdirs $dir"
11297
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11300
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11303
LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11304
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11310
LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11311
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11317
if test "X$rpathdirs" != "X"; then
11318
if test -n "$acl_hardcode_libdir_separator"; then
11320
for found_dir in $rpathdirs; do
11321
alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
11323
acl_save_libdir="$libdir"
11325
eval flag=\"$acl_hardcode_libdir_flag_spec\"
11326
libdir="$acl_save_libdir"
11327
LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11329
for found_dir in $rpathdirs; do
11330
acl_save_libdir="$libdir"
11331
libdir="$found_dir"
11332
eval flag=\"$acl_hardcode_libdir_flag_spec\"
11333
libdir="$acl_save_libdir"
11334
LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11338
if test "X$ltrpathdirs" != "X"; then
11339
for found_dir in $ltrpathdirs; do
11340
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11348
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11349
/* end confdefs.h. */
11350
int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
11359
if ac_fn_cxx_try_link "$LINENO"; then :
11361
$as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
11364
rm -f core conftest.err conftest.$ac_objext \
11365
conftest$ac_exeext conftest.$ac_ext
11367
for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
11369
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11370
ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11371
eval as_val=\$$as_ac_Header
11372
if test "x$as_val" = x""yes; then :
11373
cat >>confdefs.h <<_ACEOF
11374
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11381
for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
11382
stpcpy strcasecmp strdup strtoul tsearch argz_count argz_stringify \
11383
argz_next __fsetlocking
11385
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11386
ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
11387
eval as_val=\$$as_ac_var
11388
if test "x$as_val" = x""yes; then :
11389
cat >>confdefs.h <<_ACEOF
11390
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11398
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
11399
$as_echo_n "checking whether feof_unlocked is declared... " >&6; }
11400
if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then :
11401
$as_echo_n "(cached) " >&6
11403
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11404
/* end confdefs.h. */
11410
#ifndef feof_unlocked
11411
char *p = (char *) feof_unlocked;
11418
if ac_fn_cxx_try_compile "$LINENO"; then :
11419
ac_cv_have_decl_feof_unlocked=yes
11421
ac_cv_have_decl_feof_unlocked=no
11423
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11425
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
11426
$as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
11427
if test $ac_cv_have_decl_feof_unlocked = yes; then
11433
cat >>confdefs.h <<_ACEOF
11434
#define HAVE_DECL_FEOF_UNLOCKED $gt_value
11439
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
11440
$as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
11441
if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then :
11442
$as_echo_n "(cached) " >&6
11444
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11445
/* end confdefs.h. */
11451
#ifndef fgets_unlocked
11452
char *p = (char *) fgets_unlocked;
11459
if ac_fn_cxx_try_compile "$LINENO"; then :
11460
ac_cv_have_decl_fgets_unlocked=yes
11462
ac_cv_have_decl_fgets_unlocked=no
11464
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11466
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
11467
$as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
11468
if test $ac_cv_have_decl_fgets_unlocked = yes; then
11474
cat >>confdefs.h <<_ACEOF
11475
#define HAVE_DECL_FGETS_UNLOCKED $gt_value
11485
am_save_CPPFLAGS="$CPPFLAGS"
11487
for element in $INCICONV; do
11489
for x in $CPPFLAGS; do
11491
acl_save_prefix="$prefix"
11492
prefix="$acl_final_prefix"
11493
acl_save_exec_prefix="$exec_prefix"
11494
exec_prefix="$acl_final_exec_prefix"
11496
exec_prefix="$acl_save_exec_prefix"
11497
prefix="$acl_save_prefix"
11499
if test "X$x" = "X$element"; then
11504
if test -z "$haveit"; then
11505
CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11510
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
11511
$as_echo_n "checking for iconv... " >&6; }
11512
if test "${am_cv_func_iconv+set}" = set; then :
11513
$as_echo_n "(cached) " >&6
11516
am_cv_func_iconv="no, consider installing GNU libiconv"
11518
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11519
/* end confdefs.h. */
11520
#include <stdlib.h>
11525
iconv_t cd = iconv_open("","");
11526
iconv(cd,NULL,NULL,NULL,NULL);
11532
if ac_fn_cxx_try_link "$LINENO"; then :
11533
am_cv_func_iconv=yes
11535
rm -f core conftest.err conftest.$ac_objext \
11536
conftest$ac_exeext conftest.$ac_ext
11537
if test "$am_cv_func_iconv" != yes; then
11538
am_save_LIBS="$LIBS"
11539
LIBS="$LIBS $LIBICONV"
11540
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11541
/* end confdefs.h. */
11542
#include <stdlib.h>
11547
iconv_t cd = iconv_open("","");
11548
iconv(cd,NULL,NULL,NULL,NULL);
11554
if ac_fn_cxx_try_link "$LINENO"; then :
11555
am_cv_lib_iconv=yes
11556
am_cv_func_iconv=yes
11558
rm -f core conftest.err conftest.$ac_objext \
11559
conftest$ac_exeext conftest.$ac_ext
11560
LIBS="$am_save_LIBS"
11564
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
11565
$as_echo "$am_cv_func_iconv" >&6; }
11566
if test "$am_cv_func_iconv" = yes; then
11567
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
11568
$as_echo_n "checking for working iconv... " >&6; }
11569
if test "${am_cv_func_iconv_works+set}" = set; then :
11570
$as_echo_n "(cached) " >&6
11573
am_save_LIBS="$LIBS"
11574
if test $am_cv_lib_iconv = yes; then
11575
LIBS="$LIBS $LIBICONV"
11577
if test "$cross_compiling" = yes; then :
11579
aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
11580
*) am_cv_func_iconv_works="guessing yes" ;;
11583
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11584
/* end confdefs.h. */
11587
#include <string.h>
11590
/* Test against AIX 5.1 bug: Failures are not distinguishable from successful
11593
iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
11594
if (cd_utf8_to_88591 != (iconv_t)(-1))
11596
static const char input[] = "\342\202\254"; /* EURO SIGN */
11598
const char *inptr = input;
11599
size_t inbytesleft = strlen (input);
11600
char *outptr = buf;
11601
size_t outbytesleft = sizeof (buf);
11602
size_t res = iconv (cd_utf8_to_88591,
11603
(char **) &inptr, &inbytesleft,
11604
&outptr, &outbytesleft);
11609
#if 0 /* This bug could be worked around by the caller. */
11610
/* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
11612
iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
11613
if (cd_88591_to_utf8 != (iconv_t)(-1))
11615
static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
11617
const char *inptr = input;
11618
size_t inbytesleft = strlen (input);
11619
char *outptr = buf;
11620
size_t outbytesleft = sizeof (buf);
11621
size_t res = iconv (cd_88591_to_utf8,
11622
(char **) &inptr, &inbytesleft,
11623
&outptr, &outbytesleft);
11629
/* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
11631
if (/* Try standardized names. */
11632
iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
11633
/* Try IRIX, OSF/1 names. */
11634
&& iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
11635
/* Try AIX names. */
11636
&& iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
11637
/* Try HP-UX names. */
11638
&& iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
11643
if ac_fn_cxx_try_run "$LINENO"; then :
11644
am_cv_func_iconv_works=yes
11646
am_cv_func_iconv_works=no
11648
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11649
conftest.$ac_objext conftest.beam conftest.$ac_ext
11652
LIBS="$am_save_LIBS"
11655
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
11656
$as_echo "$am_cv_func_iconv_works" >&6; }
11657
case "$am_cv_func_iconv_works" in
11658
*no) am_func_iconv=no am_cv_lib_iconv=no ;;
11659
*) am_func_iconv=yes ;;
11662
am_func_iconv=no am_cv_lib_iconv=no
11664
if test "$am_func_iconv" = yes; then
11666
$as_echo "#define HAVE_ICONV 1" >>confdefs.h
11669
if test "$am_cv_lib_iconv" = yes; then
11670
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
11671
$as_echo_n "checking how to link with libiconv... " >&6; }
11672
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
11673
$as_echo "$LIBICONV" >&6; }
11675
CPPFLAGS="$am_save_CPPFLAGS"
11682
if test "$am_cv_func_iconv" = yes; then
11683
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
11684
$as_echo_n "checking for iconv declaration... " >&6; }
11685
if test "${am_cv_proto_iconv+set}" = set; then :
11686
$as_echo_n "(cached) " >&6
11689
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11690
/* end confdefs.h. */
11692
#include <stdlib.h>
11698
#if defined(__STDC__) || defined(__cplusplus)
11699
size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11712
if ac_fn_cxx_try_compile "$LINENO"; then :
11713
am_cv_proto_iconv_arg1=""
11715
am_cv_proto_iconv_arg1="const"
11717
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11718
am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
11721
am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11722
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
11723
}$am_cv_proto_iconv" >&5
11725
}$am_cv_proto_iconv" >&6; }
11727
cat >>confdefs.h <<_ACEOF
11728
#define ICONV_CONST $am_cv_proto_iconv_arg1
11734
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for NL_LOCALE_NAME macro" >&5
11735
$as_echo_n "checking for NL_LOCALE_NAME macro... " >&6; }
11736
if test "${gt_cv_nl_locale_name+set}" = set; then :
11737
$as_echo_n "(cached) " >&6
11739
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11740
/* end confdefs.h. */
11741
#include <langinfo.h>
11742
#include <locale.h>
11746
char* cs = nl_langinfo(_NL_LOCALE_NAME(LC_MESSAGES));
11753
if ac_fn_cxx_try_link "$LINENO"; then :
11754
gt_cv_nl_locale_name=yes
11756
gt_cv_nl_locale_name=no
11758
rm -f core conftest.err conftest.$ac_objext \
11759
conftest$ac_exeext conftest.$ac_ext
11762
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_nl_locale_name" >&5
11763
$as_echo "$gt_cv_nl_locale_name" >&6; }
11764
if test $gt_cv_nl_locale_name = yes; then
11766
$as_echo "#define HAVE_NL_LOCALE_NAME 1" >>confdefs.h
11770
for ac_prog in bison
11772
# Extract the first word of "$ac_prog", so it can be a program name with args.
11773
set dummy $ac_prog; ac_word=$2
11774
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11775
$as_echo_n "checking for $ac_word... " >&6; }
11776
if test "${ac_cv_prog_INTLBISON+set}" = set; then :
11777
$as_echo_n "(cached) " >&6
11779
if test -n "$INTLBISON"; then
11780
ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
11782
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11783
for as_dir in $PATH
11786
test -z "$as_dir" && as_dir=.
11787
for ac_exec_ext in '' $ac_executable_extensions; do
11788
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11789
ac_cv_prog_INTLBISON="$ac_prog"
11790
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11799
INTLBISON=$ac_cv_prog_INTLBISON
11800
if test -n "$INTLBISON"; then
11801
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
11802
$as_echo "$INTLBISON" >&6; }
11804
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11805
$as_echo "no" >&6; }
11809
test -n "$INTLBISON" && break
11812
if test -z "$INTLBISON"; then
11815
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
11816
$as_echo_n "checking version of bison... " >&6; }
11817
ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
11818
case $ac_prog_version in
11819
'') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
11820
1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
11821
ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
11822
*) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
11824
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
11825
$as_echo "$ac_prog_version" >&6; }
11827
if test $ac_verc_fail = yes; then
11832
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
11833
$as_echo_n "checking for long long int... " >&6; }
11834
if test "${ac_cv_type_long_long_int+set}" = set; then :
11835
$as_echo_n "(cached) " >&6
11837
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11838
/* end confdefs.h. */
11840
/* Test preprocessor. */
11841
#if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
11842
error in preprocessor;
11844
#if ! (18446744073709551615ULL <= -1ull)
11845
error in preprocessor;
11847
/* Test literals. */
11848
long long int ll = 9223372036854775807ll;
11849
long long int nll = -9223372036854775807LL;
11850
unsigned long long int ull = 18446744073709551615ULL;
11851
/* Test constant expressions. */
11852
typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
11854
typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
11860
/* Test availability of runtime routines for shift and division. */
11861
long long int llmax = 9223372036854775807ll;
11862
unsigned long long int ullmax = 18446744073709551615ull;
11863
return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
11864
| (llmax / ll) | (llmax % ll)
11865
| (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
11866
| (ullmax / ull) | (ullmax % ull));
11872
if ac_fn_cxx_try_link "$LINENO"; then :
11873
if test "$cross_compiling" = yes; then :
11874
ac_cv_type_long_long_int=yes
11876
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11877
/* end confdefs.h. */
11878
#include <limits.h>
11881
(1LL << (sizeof (long long int) * CHAR_BIT - 2))
11882
# define LLONG_MAX (HALF - 1 + HALF)
11887
long long int n = 1;
11891
long long int m = n << i;
11894
if (LLONG_MAX / 2 < m)
11902
if ac_fn_cxx_try_run "$LINENO"; then :
11903
ac_cv_type_long_long_int=yes
11905
ac_cv_type_long_long_int=no
11907
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11908
conftest.$ac_objext conftest.beam conftest.$ac_ext
11912
ac_cv_type_long_long_int=no
11914
rm -f core conftest.err conftest.$ac_objext \
11915
conftest$ac_exeext conftest.$ac_ext
11917
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
11918
$as_echo "$ac_cv_type_long_long_int" >&6; }
11919
if test $ac_cv_type_long_long_int = yes; then
11921
$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
11926
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
11927
$as_echo_n "checking for wchar_t... " >&6; }
11928
if test "${gt_cv_c_wchar_t+set}" = set; then :
11929
$as_echo_n "(cached) " >&6
11931
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11932
/* end confdefs.h. */
11933
#include <stddef.h>
11934
wchar_t foo = (wchar_t)'\0';
11943
if ac_fn_cxx_try_compile "$LINENO"; then :
11944
gt_cv_c_wchar_t=yes
11948
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11950
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
11951
$as_echo "$gt_cv_c_wchar_t" >&6; }
11952
if test $gt_cv_c_wchar_t = yes; then
11954
$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
11959
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
11960
$as_echo_n "checking for wint_t... " >&6; }
11961
if test "${gt_cv_c_wint_t+set}" = set; then :
11962
$as_echo_n "(cached) " >&6
11964
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11965
/* end confdefs.h. */
11967
/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11969
BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
11970
before <wchar.h>. */
11971
#include <stddef.h>
11975
wint_t foo = (wchar_t)'\0';
11984
if ac_fn_cxx_try_compile "$LINENO"; then :
11989
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11991
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
11992
$as_echo "$gt_cv_c_wint_t" >&6; }
11993
if test $gt_cv_c_wint_t = yes; then
11995
$as_echo "#define HAVE_WINT_T 1" >>confdefs.h
12002
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
12003
$as_echo_n "checking for intmax_t... " >&6; }
12004
if test "${gt_cv_c_intmax_t+set}" = set; then :
12005
$as_echo_n "(cached) " >&6
12007
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12008
/* end confdefs.h. */
12010
#include <stddef.h>
12011
#include <stdlib.h>
12012
#if HAVE_STDINT_H_WITH_UINTMAX
12013
#include <stdint.h>
12015
#if HAVE_INTTYPES_H_WITH_UINTMAX
12016
#include <inttypes.h>
12028
if ac_fn_cxx_try_compile "$LINENO"; then :
12029
gt_cv_c_intmax_t=yes
12031
gt_cv_c_intmax_t=no
12033
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12035
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
12036
$as_echo "$gt_cv_c_intmax_t" >&6; }
12037
if test $gt_cv_c_intmax_t = yes; then
12039
$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
12045
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
12046
$as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
12047
if test "${gt_cv_func_printf_posix+set}" = set; then :
12048
$as_echo_n "(cached) " >&6
12051
if test "$cross_compiling" = yes; then :
12053
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12054
/* end confdefs.h. */
12056
#if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
12061
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12062
$EGREP "notposix" >/dev/null 2>&1; then :
12063
gt_cv_func_printf_posix="guessing no"
12065
gt_cv_func_printf_posix="guessing yes"
12071
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12072
/* end confdefs.h. */
12075
#include <string.h>
12076
/* The string "%2$d %1$d", with dollar characters protected from the shell's
12077
dollar expansion (possibly an autoconf bug). */
12078
static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
12079
static char buf[100];
12082
sprintf (buf, format, 33, 55);
12083
return (strcmp (buf, "55 33") != 0);
12086
if ac_fn_cxx_try_run "$LINENO"; then :
12087
gt_cv_func_printf_posix=yes
12089
gt_cv_func_printf_posix=no
12091
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12092
conftest.$ac_objext conftest.beam conftest.$ac_ext
12097
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
12098
$as_echo "$gt_cv_func_printf_posix" >&6; }
12099
case $gt_cv_func_printf_posix in
12102
$as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
12108
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
12109
$as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
12110
if test "${ac_cv_gnu_library_2_1+set}" = set; then :
12111
$as_echo_n "(cached) " >&6
12113
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12114
/* end confdefs.h. */
12116
#include <features.h>
12117
#ifdef __GNU_LIBRARY__
12118
#if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
12124
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12125
$EGREP "Lucky GNU user" >/dev/null 2>&1; then :
12126
ac_cv_gnu_library_2_1=yes
12128
ac_cv_gnu_library_2_1=no
12135
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
12136
$as_echo "$ac_cv_gnu_library_2_1" >&6; }
12138
GLIBC21="$ac_cv_gnu_library_2_1"
12142
for ac_header in stdint.h
12144
ac_fn_cxx_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
12145
if test "x$ac_cv_header_stdint_h" = x""yes; then :
12146
cat >>confdefs.h <<_ACEOF
12147
#define HAVE_STDINT_H 1
12154
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
12155
$as_echo_n "checking for SIZE_MAX... " >&6; }
12156
if test "${gl_cv_size_max+set}" = set; then :
12157
$as_echo_n "(cached) " >&6
12161
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12162
/* end confdefs.h. */
12164
#include <limits.h>
12166
#include <stdint.h>
12173
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12174
$EGREP "Found it" >/dev/null 2>&1; then :
12179
if test -z "$gl_cv_size_max"; then
12180
if ac_fn_cxx_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
12181
#include <limits.h>"; then :
12184
size_t_bits_minus_1=
12187
if ac_fn_cxx_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
12193
if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
12194
if test $fits_in_uint = 1; then
12195
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12196
/* end confdefs.h. */
12197
#include <stddef.h>
12199
extern unsigned long foo;
12209
if ac_fn_cxx_try_compile "$LINENO"; then :
12212
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12214
if test $fits_in_uint = 1; then
12215
gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
12217
gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
12220
gl_cv_size_max='((size_t)~(size_t)0)'
12226
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
12227
$as_echo "$gl_cv_size_max" >&6; }
12228
if test "$gl_cv_size_max" != yes; then
12230
cat >>confdefs.h <<_ACEOF
12231
#define SIZE_MAX $gl_cv_size_max
12239
for ac_header in stdint.h
12241
ac_fn_cxx_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
12242
if test "x$ac_cv_header_stdint_h" = x""yes; then :
12243
cat >>confdefs.h <<_ACEOF
12244
#define HAVE_STDINT_H 1
12253
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
12254
$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
12255
if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
12256
$as_echo_n "(cached) " >&6
12258
gt_save_LIBS="$LIBS"
12259
LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
12260
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12261
/* end confdefs.h. */
12262
#include <CoreFoundation/CFPreferences.h>
12266
CFPreferencesCopyAppValue(NULL, NULL)
12271
if ac_fn_cxx_try_link "$LINENO"; then :
12272
gt_cv_func_CFPreferencesCopyAppValue=yes
12274
gt_cv_func_CFPreferencesCopyAppValue=no
12276
rm -f core conftest.err conftest.$ac_objext \
12277
conftest$ac_exeext conftest.$ac_ext
12278
LIBS="$gt_save_LIBS"
12280
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
12281
$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
12282
if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
12284
$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
12287
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
12288
$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
12289
if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
12290
$as_echo_n "(cached) " >&6
12292
gt_save_LIBS="$LIBS"
12293
LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
12294
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12295
/* end confdefs.h. */
12296
#include <CoreFoundation/CFLocale.h>
12300
CFLocaleCopyCurrent();
12305
if ac_fn_cxx_try_link "$LINENO"; then :
12306
gt_cv_func_CFLocaleCopyCurrent=yes
12308
gt_cv_func_CFLocaleCopyCurrent=no
12310
rm -f core conftest.err conftest.$ac_objext \
12311
conftest$ac_exeext conftest.$ac_ext
12312
LIBS="$gt_save_LIBS"
12314
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
12315
$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
12316
if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12318
$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
12322
if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12323
INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
12332
ac_fn_cxx_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
12333
if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
12337
$as_echo "#define ptrdiff_t long" >>confdefs.h
12342
for ac_header in stddef.h stdlib.h string.h
12344
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12345
ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12346
eval as_val=\$$as_ac_Header
12347
if test "x$as_val" = x""yes; then :
12348
cat >>confdefs.h <<_ACEOF
12349
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12356
for ac_func in asprintf fwprintf putenv setenv setlocale snprintf wcslen
12358
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12359
ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
12360
eval as_val=\$$as_ac_var
12361
if test "x$as_val" = x""yes; then :
12362
cat >>confdefs.h <<_ACEOF
12363
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12371
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
12372
$as_echo_n "checking whether _snprintf is declared... " >&6; }
12373
if test "${ac_cv_have_decl__snprintf+set}" = set; then :
12374
$as_echo_n "(cached) " >&6
12376
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12377
/* end confdefs.h. */
12384
char *p = (char *) _snprintf;
12391
if ac_fn_cxx_try_compile "$LINENO"; then :
12392
ac_cv_have_decl__snprintf=yes
12394
ac_cv_have_decl__snprintf=no
12396
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12398
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
12399
$as_echo "$ac_cv_have_decl__snprintf" >&6; }
12400
if test $ac_cv_have_decl__snprintf = yes; then
12406
cat >>confdefs.h <<_ACEOF
12407
#define HAVE_DECL__SNPRINTF $gt_value
12412
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
12413
$as_echo_n "checking whether _snwprintf is declared... " >&6; }
12414
if test "${ac_cv_have_decl__snwprintf+set}" = set; then :
12415
$as_echo_n "(cached) " >&6
12417
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12418
/* end confdefs.h. */
12425
char *p = (char *) _snwprintf;
12432
if ac_fn_cxx_try_compile "$LINENO"; then :
12433
ac_cv_have_decl__snwprintf=yes
12435
ac_cv_have_decl__snwprintf=no
12437
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12439
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
12440
$as_echo "$ac_cv_have_decl__snwprintf" >&6; }
12441
if test $ac_cv_have_decl__snwprintf = yes; then
12447
cat >>confdefs.h <<_ACEOF
12448
#define HAVE_DECL__SNWPRINTF $gt_value
12454
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
12455
$as_echo_n "checking whether getc_unlocked is declared... " >&6; }
12456
if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then :
12457
$as_echo_n "(cached) " >&6
12459
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12460
/* end confdefs.h. */
12466
#ifndef getc_unlocked
12467
char *p = (char *) getc_unlocked;
12474
if ac_fn_cxx_try_compile "$LINENO"; then :
12475
ac_cv_have_decl_getc_unlocked=yes
12477
ac_cv_have_decl_getc_unlocked=no
12479
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12481
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
12482
$as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
12483
if test $ac_cv_have_decl_getc_unlocked = yes; then
12489
cat >>confdefs.h <<_ACEOF
12490
#define HAVE_DECL_GETC_UNLOCKED $gt_value
12495
case $gt_cv_func_printf_posix in
12496
*yes) HAVE_POSIX_PRINTF=1 ;;
12497
*) HAVE_POSIX_PRINTF=0 ;;
12500
if test "$ac_cv_func_asprintf" = yes; then
12506
if test "$ac_cv_func_snprintf" = yes; then
12512
if test "$ac_cv_func_wprintf" = yes; then
12520
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
12521
$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
12522
if test "${am_cv_langinfo_codeset+set}" = set; then :
12523
$as_echo_n "(cached) " >&6
12525
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12526
/* end confdefs.h. */
12527
#include <langinfo.h>
12531
char* cs = nl_langinfo(CODESET); return !cs;
12536
if ac_fn_cxx_try_link "$LINENO"; then :
12537
am_cv_langinfo_codeset=yes
12539
am_cv_langinfo_codeset=no
12541
rm -f core conftest.err conftest.$ac_objext \
12542
conftest$ac_exeext conftest.$ac_ext
12545
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
12546
$as_echo "$am_cv_langinfo_codeset" >&6; }
12547
if test $am_cv_langinfo_codeset = yes; then
12549
$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
12554
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
12555
$as_echo_n "checking for LC_MESSAGES... " >&6; }
12556
if test "${gt_cv_val_LC_MESSAGES+set}" = set; then :
12557
$as_echo_n "(cached) " >&6
12559
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12560
/* end confdefs.h. */
12561
#include <locale.h>
12570
if ac_fn_cxx_try_link "$LINENO"; then :
12571
gt_cv_val_LC_MESSAGES=yes
12573
gt_cv_val_LC_MESSAGES=no
12575
rm -f core conftest.err conftest.$ac_objext \
12576
conftest$ac_exeext conftest.$ac_ext
12578
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
12579
$as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
12580
if test $gt_cv_val_LC_MESSAGES = yes; then
12582
$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
12587
if test "$enable_shared" = yes; then
12589
mingw* | cygwin*) is_woe32dll=yes ;;
12590
*) is_woe32dll=no ;;
12595
WOE32DLL=$is_woe32dll
12599
mingw* | cygwin*) is_woe32=yes ;;
12604
if test $WOE32 = yes; then
12605
if test -n "$ac_tool_prefix"; then
12606
# Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
12607
set dummy ${ac_tool_prefix}windres; ac_word=$2
12608
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12609
$as_echo_n "checking for $ac_word... " >&6; }
12610
if test "${ac_cv_prog_WINDRES+set}" = set; then :
12611
$as_echo_n "(cached) " >&6
12613
if test -n "$WINDRES"; then
12614
ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12616
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12617
for as_dir in $PATH
12620
test -z "$as_dir" && as_dir=.
12621
for ac_exec_ext in '' $ac_executable_extensions; do
12622
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12623
ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
12624
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12633
WINDRES=$ac_cv_prog_WINDRES
12634
if test -n "$WINDRES"; then
12635
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12636
$as_echo "$WINDRES" >&6; }
12638
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12639
$as_echo "no" >&6; }
12644
if test -z "$ac_cv_prog_WINDRES"; then
12645
ac_ct_WINDRES=$WINDRES
12646
# Extract the first word of "windres", so it can be a program name with args.
12647
set dummy windres; ac_word=$2
12648
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12649
$as_echo_n "checking for $ac_word... " >&6; }
12650
if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
12651
$as_echo_n "(cached) " >&6
12653
if test -n "$ac_ct_WINDRES"; then
12654
ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
12656
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12657
for as_dir in $PATH
12660
test -z "$as_dir" && as_dir=.
12661
for ac_exec_ext in '' $ac_executable_extensions; do
12662
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12663
ac_cv_prog_ac_ct_WINDRES="windres"
12664
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12673
ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
12674
if test -n "$ac_ct_WINDRES"; then
12675
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
12676
$as_echo "$ac_ct_WINDRES" >&6; }
12678
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12679
$as_echo "no" >&6; }
12682
if test "x$ac_ct_WINDRES" = x; then
12685
case $cross_compiling:$ac_tool_warned in
12687
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12688
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12689
ac_tool_warned=yes ;;
12691
WINDRES=$ac_ct_WINDRES
12694
WINDRES="$ac_cv_prog_WINDRES"
12700
hpux*) LTLIBC="" ;;
12729
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
12730
$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
12731
if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
12732
$as_echo_n "(cached) " >&6
12734
gt_save_LIBS="$LIBS"
12735
LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
12736
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12737
/* end confdefs.h. */
12738
#include <CoreFoundation/CFPreferences.h>
12742
CFPreferencesCopyAppValue(NULL, NULL)
12747
if ac_fn_cxx_try_link "$LINENO"; then :
12748
gt_cv_func_CFPreferencesCopyAppValue=yes
12750
gt_cv_func_CFPreferencesCopyAppValue=no
12752
rm -f core conftest.err conftest.$ac_objext \
12753
conftest$ac_exeext conftest.$ac_ext
12754
LIBS="$gt_save_LIBS"
12756
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
12757
$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
12758
if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
12760
$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
12763
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
12764
$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
12765
if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
12766
$as_echo_n "(cached) " >&6
12768
gt_save_LIBS="$LIBS"
12769
LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
12770
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12771
/* end confdefs.h. */
12772
#include <CoreFoundation/CFLocale.h>
12776
CFLocaleCopyCurrent();
12781
if ac_fn_cxx_try_link "$LINENO"; then :
12782
gt_cv_func_CFLocaleCopyCurrent=yes
12784
gt_cv_func_CFLocaleCopyCurrent=no
12786
rm -f core conftest.err conftest.$ac_objext \
12787
conftest$ac_exeext conftest.$ac_ext
12788
LIBS="$gt_save_LIBS"
12790
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
12791
$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
12792
if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12794
$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
12798
if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12799
INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
12807
BUILD_INCLUDED_LIBINTL=no
12808
USE_INCLUDED_LIBINTL=no
12814
case " $gt_needs " in
12815
*" need-formatstring-macros "*) gt_api_version=3 ;;
12816
*" need-ngettext "*) gt_api_version=2 ;;
12817
*) gt_api_version=1 ;;
12819
gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
12820
gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
12822
if test "$USE_NLS" = "yes"; then
12823
gt_use_preinstalled_gnugettext=no
12825
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
12826
$as_echo_n "checking whether included gettext is requested... " >&6; }
12828
# Check whether --with-included-gettext was given.
12829
if test "${with_included_gettext+set}" = set; then :
12830
withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
12832
nls_cv_force_use_gnu_gettext=no
12835
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
12836
$as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
12838
nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
12839
if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
12842
if test $gt_api_version -ge 3; then
12843
gt_revision_test_code='
12844
#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
12845
#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
12847
typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
12850
gt_revision_test_code=
12852
if test $gt_api_version -ge 2; then
12853
gt_expression_test_code=' + * ngettext ("", "", 0)'
12855
gt_expression_test_code=
12858
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
12859
$as_echo_n "checking for GNU gettext in libc... " >&6; }
12860
if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then :
12861
$as_echo_n "(cached) " >&6
12863
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12864
/* end confdefs.h. */
12865
#include <libintl.h>
12866
$gt_revision_test_code
12867
extern int _nl_msg_cat_cntr;
12868
extern int *_nl_domain_bindings;
12872
bindtextdomain ("", "");
12873
return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
12878
if ac_fn_cxx_try_link "$LINENO"; then :
12879
eval "$gt_func_gnugettext_libc=yes"
12881
eval "$gt_func_gnugettext_libc=no"
12883
rm -f core conftest.err conftest.$ac_objext \
12884
conftest$ac_exeext conftest.$ac_ext
12886
eval ac_res=\$$gt_func_gnugettext_libc
12887
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12888
$as_echo "$ac_res" >&6; }
12890
if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
12898
acl_save_prefix="$prefix"
12899
prefix="$acl_final_prefix"
12900
acl_save_exec_prefix="$exec_prefix"
12901
exec_prefix="$acl_final_exec_prefix"
12903
eval additional_includedir=\"$includedir\"
12904
eval additional_libdir=\"$libdir\"
12906
exec_prefix="$acl_save_exec_prefix"
12907
prefix="$acl_save_prefix"
12910
# Check whether --with-libintl-prefix was given.
12911
if test "${with_libintl_prefix+set}" = set; then :
12912
withval=$with_libintl_prefix;
12913
if test "X$withval" = "Xno"; then
12916
if test "X$withval" = "X"; then
12918
acl_save_prefix="$prefix"
12919
prefix="$acl_final_prefix"
12920
acl_save_exec_prefix="$exec_prefix"
12921
exec_prefix="$acl_final_exec_prefix"
12923
eval additional_includedir=\"$includedir\"
12924
eval additional_libdir=\"$libdir\"
12926
exec_prefix="$acl_save_exec_prefix"
12927
prefix="$acl_save_prefix"
12930
additional_includedir="$withval/include"
12931
additional_libdir="$withval/$acl_libdirstem"
12943
names_already_handled=
12944
names_next_round='intl '
12945
while test -n "$names_next_round"; do
12946
names_this_round="$names_next_round"
12948
for name in $names_this_round; do
12950
for n in $names_already_handled; do
12951
if test "$n" = "$name"; then
12952
already_handled=yes
12956
if test -z "$already_handled"; then
12957
names_already_handled="$names_already_handled $name"
12958
uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12959
eval value=\"\$HAVE_LIB$uppername\"
12960
if test -n "$value"; then
12961
if test "$value" = yes; then
12962
eval value=\"\$LIB$uppername\"
12963
test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
12964
eval value=\"\$LTLIB$uppername\"
12965
test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
12974
eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
12975
if test -n "$acl_shlibext"; then
12976
shrext=".$acl_shlibext" # typically: shrext=.so
12980
if test $use_additional = yes; then
12981
dir="$additional_libdir"
12982
if test -n "$acl_shlibext"; then
12983
if test -f "$dir/$libname$shrext"; then
12985
found_so="$dir/$libname$shrext"
12987
if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
12988
ver=`(cd "$dir" && \
12989
for f in "$libname$shrext".*; do echo "$f"; done \
12990
| sed -e "s,^$libname$shrext\\\\.,," \
12991
| sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
12992
| sed 1q ) 2>/dev/null`
12993
if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
12995
found_so="$dir/$libname$shrext.$ver"
12998
eval library_names=\"$acl_library_names_spec\"
12999
for f in $library_names; do
13000
if test -f "$dir/$f"; then
13009
if test "X$found_dir" = "X"; then
13010
if test -f "$dir/$libname.$acl_libext"; then
13012
found_a="$dir/$libname.$acl_libext"
13015
if test "X$found_dir" != "X"; then
13016
if test -f "$dir/$libname.la"; then
13017
found_la="$dir/$libname.la"
13021
if test "X$found_dir" = "X"; then
13022
for x in $LDFLAGS $LTLIBINTL; do
13024
acl_save_prefix="$prefix"
13025
prefix="$acl_final_prefix"
13026
acl_save_exec_prefix="$exec_prefix"
13027
exec_prefix="$acl_final_exec_prefix"
13029
exec_prefix="$acl_save_exec_prefix"
13030
prefix="$acl_save_prefix"
13034
dir=`echo "X$x" | sed -e 's/^X-L//'`
13035
if test -n "$acl_shlibext"; then
13036
if test -f "$dir/$libname$shrext"; then
13038
found_so="$dir/$libname$shrext"
13040
if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13041
ver=`(cd "$dir" && \
13042
for f in "$libname$shrext".*; do echo "$f"; done \
13043
| sed -e "s,^$libname$shrext\\\\.,," \
13044
| sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13045
| sed 1q ) 2>/dev/null`
13046
if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13048
found_so="$dir/$libname$shrext.$ver"
13051
eval library_names=\"$acl_library_names_spec\"
13052
for f in $library_names; do
13053
if test -f "$dir/$f"; then
13062
if test "X$found_dir" = "X"; then
13063
if test -f "$dir/$libname.$acl_libext"; then
13065
found_a="$dir/$libname.$acl_libext"
13068
if test "X$found_dir" != "X"; then
13069
if test -f "$dir/$libname.la"; then
13070
found_la="$dir/$libname.la"
13075
if test "X$found_dir" != "X"; then
13080
if test "X$found_dir" != "X"; then
13081
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
13082
if test "X$found_so" != "X"; then
13083
if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
13084
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13087
for x in $ltrpathdirs; do
13088
if test "X$x" = "X$found_dir"; then
13093
if test -z "$haveit"; then
13094
ltrpathdirs="$ltrpathdirs $found_dir"
13096
if test "$acl_hardcode_direct" = yes; then
13097
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13099
if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
13100
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13102
for x in $rpathdirs; do
13103
if test "X$x" = "X$found_dir"; then
13108
if test -z "$haveit"; then
13109
rpathdirs="$rpathdirs $found_dir"
13113
for x in $LDFLAGS $LIBINTL; do
13115
acl_save_prefix="$prefix"
13116
prefix="$acl_final_prefix"
13117
acl_save_exec_prefix="$exec_prefix"
13118
exec_prefix="$acl_final_exec_prefix"
13120
exec_prefix="$acl_save_exec_prefix"
13121
prefix="$acl_save_prefix"
13123
if test "X$x" = "X-L$found_dir"; then
13128
if test -z "$haveit"; then
13129
LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
13131
if test "$acl_hardcode_minus_L" != no; then
13132
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13134
LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13140
if test "X$found_a" != "X"; then
13141
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
13143
LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
13146
additional_includedir=
13147
case "$found_dir" in
13148
*/$acl_libdirstem | */$acl_libdirstem/)
13149
basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
13150
LIBINTL_PREFIX="$basedir"
13151
additional_includedir="$basedir/include"
13154
if test "X$additional_includedir" != "X"; then
13155
if test "X$additional_includedir" != "X/usr/include"; then
13157
if test "X$additional_includedir" = "X/usr/local/include"; then
13158
if test -n "$GCC"; then
13160
linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13164
if test -z "$haveit"; then
13165
for x in $CPPFLAGS $INCINTL; do
13167
acl_save_prefix="$prefix"
13168
prefix="$acl_final_prefix"
13169
acl_save_exec_prefix="$exec_prefix"
13170
exec_prefix="$acl_final_exec_prefix"
13172
exec_prefix="$acl_save_exec_prefix"
13173
prefix="$acl_save_prefix"
13175
if test "X$x" = "X-I$additional_includedir"; then
13180
if test -z "$haveit"; then
13181
if test -d "$additional_includedir"; then
13182
INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
13188
if test -n "$found_la"; then
13189
save_libdir="$libdir"
13190
case "$found_la" in
13191
*/* | *\\*) . "$found_la" ;;
13192
*) . "./$found_la" ;;
13194
libdir="$save_libdir"
13195
for dep in $dependency_libs; do
13198
additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13199
if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
13201
if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
13202
if test -n "$GCC"; then
13204
linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13208
if test -z "$haveit"; then
13210
for x in $LDFLAGS $LIBINTL; do
13212
acl_save_prefix="$prefix"
13213
prefix="$acl_final_prefix"
13214
acl_save_exec_prefix="$exec_prefix"
13215
exec_prefix="$acl_final_exec_prefix"
13217
exec_prefix="$acl_save_exec_prefix"
13218
prefix="$acl_save_prefix"
13220
if test "X$x" = "X-L$additional_libdir"; then
13225
if test -z "$haveit"; then
13226
if test -d "$additional_libdir"; then
13227
LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
13231
for x in $LDFLAGS $LTLIBINTL; do
13233
acl_save_prefix="$prefix"
13234
prefix="$acl_final_prefix"
13235
acl_save_exec_prefix="$exec_prefix"
13236
exec_prefix="$acl_final_exec_prefix"
13238
exec_prefix="$acl_save_exec_prefix"
13239
prefix="$acl_save_prefix"
13241
if test "X$x" = "X-L$additional_libdir"; then
13246
if test -z "$haveit"; then
13247
if test -d "$additional_libdir"; then
13248
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
13255
dir=`echo "X$dep" | sed -e 's/^X-R//'`
13256
if test "$enable_rpath" != no; then
13258
for x in $rpathdirs; do
13259
if test "X$x" = "X$dir"; then
13264
if test -z "$haveit"; then
13265
rpathdirs="$rpathdirs $dir"
13268
for x in $ltrpathdirs; do
13269
if test "X$x" = "X$dir"; then
13274
if test -z "$haveit"; then
13275
ltrpathdirs="$ltrpathdirs $dir"
13280
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13283
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13286
LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
13287
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
13293
LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13294
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
13300
if test "X$rpathdirs" != "X"; then
13301
if test -n "$acl_hardcode_libdir_separator"; then
13303
for found_dir in $rpathdirs; do
13304
alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
13306
acl_save_libdir="$libdir"
13308
eval flag=\"$acl_hardcode_libdir_flag_spec\"
13309
libdir="$acl_save_libdir"
13310
LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13312
for found_dir in $rpathdirs; do
13313
acl_save_libdir="$libdir"
13314
libdir="$found_dir"
13315
eval flag=\"$acl_hardcode_libdir_flag_spec\"
13316
libdir="$acl_save_libdir"
13317
LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13321
if test "X$ltrpathdirs" != "X"; then
13322
for found_dir in $ltrpathdirs; do
13323
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
13327
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
13328
$as_echo_n "checking for GNU gettext in libintl... " >&6; }
13329
if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then :
13330
$as_echo_n "(cached) " >&6
13332
gt_save_CPPFLAGS="$CPPFLAGS"
13333
CPPFLAGS="$CPPFLAGS $INCINTL"
13334
gt_save_LIBS="$LIBS"
13335
LIBS="$LIBS $LIBINTL"
13336
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13337
/* end confdefs.h. */
13338
#include <libintl.h>
13339
$gt_revision_test_code
13340
extern int _nl_msg_cat_cntr;
13345
const char *_nl_expand_alias (const char *);
13349
bindtextdomain ("", "");
13350
return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
13355
if ac_fn_cxx_try_link "$LINENO"; then :
13356
eval "$gt_func_gnugettext_libintl=yes"
13358
eval "$gt_func_gnugettext_libintl=no"
13360
rm -f core conftest.err conftest.$ac_objext \
13361
conftest$ac_exeext conftest.$ac_ext
13362
if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
13363
LIBS="$LIBS $LIBICONV"
13364
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13365
/* end confdefs.h. */
13366
#include <libintl.h>
13367
$gt_revision_test_code
13368
extern int _nl_msg_cat_cntr;
13373
const char *_nl_expand_alias (const char *);
13377
bindtextdomain ("", "");
13378
return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
13383
if ac_fn_cxx_try_link "$LINENO"; then :
13384
LIBINTL="$LIBINTL $LIBICONV"
13385
LTLIBINTL="$LTLIBINTL $LTLIBICONV"
13386
eval "$gt_func_gnugettext_libintl=yes"
13389
rm -f core conftest.err conftest.$ac_objext \
13390
conftest$ac_exeext conftest.$ac_ext
13392
CPPFLAGS="$gt_save_CPPFLAGS"
13393
LIBS="$gt_save_LIBS"
13395
eval ac_res=\$$gt_func_gnugettext_libintl
13396
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13397
$as_echo "$ac_res" >&6; }
13400
if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
13401
|| { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
13402
&& test "$PACKAGE" != gettext-runtime \
13403
&& test "$PACKAGE" != gettext-tools; }; then
13404
gt_use_preinstalled_gnugettext=yes
13412
if test "$gt_use_preinstalled_gnugettext" != "yes"; then
13413
nls_cv_use_gnu_gettext=yes
13417
if test "$nls_cv_use_gnu_gettext" = "yes"; then
13418
BUILD_INCLUDED_LIBINTL=yes
13419
USE_INCLUDED_LIBINTL=yes
13420
LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
13421
LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
13422
LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
13426
if test "$gt_use_preinstalled_gnugettext" = "yes" \
13427
|| test "$nls_cv_use_gnu_gettext" = "yes"; then
13432
if test -n "$INTL_MACOSX_LIBS"; then
13433
if test "$gt_use_preinstalled_gnugettext" = "yes" \
13434
|| test "$nls_cv_use_gnu_gettext" = "yes"; then
13435
LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
13436
LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
13440
if test "$gt_use_preinstalled_gnugettext" = "yes" \
13441
|| test "$nls_cv_use_gnu_gettext" = "yes"; then
13443
$as_echo "#define ENABLE_NLS 1" >>confdefs.h
13450
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
13451
$as_echo_n "checking whether to use NLS... " >&6; }
13452
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
13453
$as_echo "$USE_NLS" >&6; }
13454
if test "$USE_NLS" = "yes"; then
13455
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
13456
$as_echo_n "checking where the gettext function comes from... " >&6; }
13457
if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13458
if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
13459
gt_source="external libintl"
13464
gt_source="included intl directory"
13466
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
13467
$as_echo "$gt_source" >&6; }
13470
if test "$USE_NLS" = "yes"; then
13472
if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13473
if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
13474
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
13475
$as_echo_n "checking how to link with libintl... " >&6; }
13476
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
13477
$as_echo "$LIBINTL" >&6; }
13479
for element in $INCINTL; do
13481
for x in $CPPFLAGS; do
13483
acl_save_prefix="$prefix"
13484
prefix="$acl_final_prefix"
13485
acl_save_exec_prefix="$exec_prefix"
13486
exec_prefix="$acl_final_exec_prefix"
13488
exec_prefix="$acl_save_exec_prefix"
13489
prefix="$acl_save_prefix"
13491
if test "X$x" = "X$element"; then
13496
if test -z "$haveit"; then
13497
CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13504
$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
13507
$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
13515
if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
13516
BUILD_INCLUDED_LIBINTL=yes
13523
nls_cv_header_intl=
13524
nls_cv_header_libgt=
13536
if test "$USE_INCLUDED_LIBINTL" = yes; then
13537
INTLOBJS="\$(GETTOBJS)"
13541
INTL_LIBTOOL_SUFFIX_PREFIX=
13545
INTLLIBS="$LIBINTL"
13553
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
13554
$as_echo_n "checking for error_at_line... " >&6; }
13555
if test "${ac_cv_lib_error_at_line+set}" = set; then :
13556
$as_echo_n "(cached) " >&6
13558
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13559
/* end confdefs.h. */
13564
error_at_line (0, 0, "", 0, "an error occurred");
13569
if ac_fn_cxx_try_link "$LINENO"; then :
13570
ac_cv_lib_error_at_line=yes
13572
ac_cv_lib_error_at_line=no
13574
rm -f core conftest.err conftest.$ac_objext \
13575
conftest$ac_exeext conftest.$ac_ext
13577
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
13578
$as_echo "$ac_cv_lib_error_at_line" >&6; }
13579
if test $ac_cv_lib_error_at_line = no; then
13580
case " $LIBOBJS " in
13581
*" error.$ac_objext "* ) ;;
13582
*) LIBOBJS="$LIBOBJS error.$ac_objext"
13588
if test $ac_cv_c_compiler_gnu = yes; then
13589
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
13590
$as_echo_n "checking whether $CC needs -traditional... " >&6; }
13591
if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
13592
$as_echo_n "(cached) " >&6
13594
ac_pattern="Autoconf.*'x'"
13595
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13596
/* end confdefs.h. */
13600
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13601
$EGREP "$ac_pattern" >/dev/null 2>&1; then :
13602
ac_cv_prog_gcc_traditional=yes
13604
ac_cv_prog_gcc_traditional=no
13609
if test $ac_cv_prog_gcc_traditional = no; then
13610
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13611
/* end confdefs.h. */
13612
#include <termio.h>
13615
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13616
$EGREP "$ac_pattern" >/dev/null 2>&1; then :
13617
ac_cv_prog_gcc_traditional=yes
13623
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
13624
$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
13625
if test $ac_cv_prog_gcc_traditional = yes; then
13626
CC="$CC -traditional"
13631
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
13632
$as_echo_n "checking for working memcmp... " >&6; }
13633
if test "${ac_cv_func_memcmp_working+set}" = set; then :
13634
$as_echo_n "(cached) " >&6
13636
if test "$cross_compiling" = yes; then :
13637
ac_cv_func_memcmp_working=no
13639
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13640
/* end confdefs.h. */
13641
$ac_includes_default
13646
/* Some versions of memcmp are not 8-bit clean. */
13647
char c0 = '\100', c1 = '\200', c2 = '\201';
13648
if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
13651
/* The Next x86 OpenStep bug shows up only when comparing 16 bytes
13652
or more and with at least one buffer not starting on a 4-byte boundary.
13653
William Lewis provided this test program. */
13658
for (i = 0; i < 4; i++)
13662
strcpy (a, "--------01111111");
13663
strcpy (b, "--------10000000");
13664
if (memcmp (a, b, 16) >= 0)
13674
if ac_fn_cxx_try_run "$LINENO"; then :
13675
ac_cv_func_memcmp_working=yes
13677
ac_cv_func_memcmp_working=no
13679
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13680
conftest.$ac_objext conftest.beam conftest.$ac_ext
13684
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
13685
$as_echo "$ac_cv_func_memcmp_working" >&6; }
13686
test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
13687
*" memcmp.$ac_objext "* ) ;;
13688
*) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
13698
for ac_func in $ac_func_list
13700
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13701
ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
13702
eval as_val=\$$as_ac_var
13703
if test "x$as_val" = x""yes; then :
13704
cat >>confdefs.h <<_ACEOF
13705
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13715
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
13716
$as_echo_n "checking for working mktime... " >&6; }
13717
if test "${ac_cv_func_working_mktime+set}" = set; then :
13718
$as_echo_n "(cached) " >&6
13720
if test "$cross_compiling" = yes; then :
13721
ac_cv_func_working_mktime=no
13723
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13724
/* end confdefs.h. */
13725
/* Test program from Paul Eggert and Tony Leneis. */
13726
#ifdef TIME_WITH_SYS_TIME
13727
# include <sys/time.h>
13730
# ifdef HAVE_SYS_TIME_H
13731
# include <sys/time.h>
13737
#include <limits.h>
13738
#include <stdlib.h>
13740
#ifdef HAVE_UNISTD_H
13741
# include <unistd.h>
13745
# define alarm(X) /* empty */
13748
/* Work around redefinition to rpl_putenv by other config tests. */
13751
static time_t time_t_max;
13752
static time_t time_t_min;
13754
/* Values we'll use to set the TZ environment variable. */
13755
static char *tz_strings[] = {
13756
(char *) 0, "TZ=GMT0", "TZ=JST-9",
13757
"TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
13759
#define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
13761
/* Return 0 if mktime fails to convert a date in the spring-forward gap.
13762
Based on a problem report from Andreas Jaeger. */
13764
spring_forward_gap ()
13766
/* glibc (up to about 1998-10-07) failed this test. */
13769
/* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
13770
instead of "TZ=America/Vancouver" in order to detect the bug even
13771
on systems that don't support the Olson extension, or don't have the
13772
full zoneinfo tables installed. */
13773
putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
13782
return mktime (&tm) != (time_t) -1;
13790
return ! (lt = localtime (&now)) || mktime (lt) == now;
13797
return (mktime_test1 (now)
13798
&& mktime_test1 ((time_t) (time_t_max - now))
13799
&& mktime_test1 ((time_t) (time_t_min + now)));
13805
/* Based on code from Ariel Faigon. */
13815
return tm.tm_mon == 2 && tm.tm_mday == 31;
13824
tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
13825
now = mktime (&tm);
13826
if (now != (time_t) -1)
13828
struct tm *lt = localtime (&now);
13830
&& lt->tm_year == tm.tm_year
13831
&& lt->tm_mon == tm.tm_mon
13832
&& lt->tm_mday == tm.tm_mday
13833
&& lt->tm_hour == tm.tm_hour
13834
&& lt->tm_min == tm.tm_min
13835
&& lt->tm_sec == tm.tm_sec
13836
&& lt->tm_yday == tm.tm_yday
13837
&& lt->tm_wday == tm.tm_wday
13838
&& ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
13839
== (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
13848
/* The correct answer for 2050-02-01 00:00:00 in Pacific time,
13849
ignoring leap seconds. */
13850
unsigned long int answer = 2527315200UL;
13854
tm.tm_year = 2050 - 1900;
13857
tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
13860
/* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
13861
instead of "TZ=America/Vancouver" in order to detect the bug even
13862
on systems that don't support the Olson extension, or don't have the
13863
full zoneinfo tables installed. */
13864
putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
13868
/* Check that the result is either a failure, or close enough
13869
to the correct answer that we can assume the discrepancy is
13870
due to leap seconds. */
13871
return (t == (time_t) -1
13872
|| (0 < t && answer - 120 <= t && t <= answer + 120));
13881
/* This test makes some buggy mktime implementations loop.
13882
Give up after 60 seconds; a mktime slower than that
13883
isn't worth using anyway. */
13888
t = (time_t_max << 1) + 1;
13889
if (t <= time_t_max)
13893
time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
13895
delta = time_t_max / 997; /* a suitable prime number */
13896
for (i = 0; i < N_STRINGS; i++)
13899
putenv (tz_strings[i]);
13901
for (t = 0; t <= time_t_max - delta; t += delta)
13902
if (! mktime_test (t))
13904
if (! (mktime_test ((time_t) 1)
13905
&& mktime_test ((time_t) (60 * 60))
13906
&& mktime_test ((time_t) (60 * 60 * 24))))
13909
for (j = 1; ; j <<= 1)
13910
if (! bigtime_test (j))
13912
else if (INT_MAX / 2 < j)
13914
if (! bigtime_test (INT_MAX))
13917
return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
13920
if ac_fn_cxx_try_run "$LINENO"; then :
13921
ac_cv_func_working_mktime=yes
13923
ac_cv_func_working_mktime=no
13925
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13926
conftest.$ac_objext conftest.beam conftest.$ac_ext
13930
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
13931
$as_echo "$ac_cv_func_working_mktime" >&6; }
13932
if test $ac_cv_func_working_mktime = no; then
13933
case " $LIBOBJS " in
13934
*" mktime.$ac_objext "* ) ;;
13935
*) LIBOBJS="$LIBOBJS mktime.$ac_objext"
13942
for ac_func in getpagesize
13944
ac_fn_cxx_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
13945
if test "x$ac_cv_func_getpagesize" = x""yes; then :
13946
cat >>confdefs.h <<_ACEOF
13947
#define HAVE_GETPAGESIZE 1
13953
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
13954
$as_echo_n "checking for working mmap... " >&6; }
13955
if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
13956
$as_echo_n "(cached) " >&6
13958
if test "$cross_compiling" = yes; then :
13959
ac_cv_func_mmap_fixed_mapped=no
13961
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13962
/* end confdefs.h. */
13963
$ac_includes_default
13964
/* malloc might have been renamed as rpl_malloc. */
13967
/* Thanks to Mike Haertel and Jim Avera for this test.
13968
Here is a matrix of mmap possibilities:
13969
mmap private not fixed
13970
mmap private fixed at somewhere currently unmapped
13971
mmap private fixed at somewhere already mapped
13972
mmap shared not fixed
13973
mmap shared fixed at somewhere currently unmapped
13974
mmap shared fixed at somewhere already mapped
13975
For private mappings, we should verify that changes cannot be read()
13976
back from the file, nor mmap's back from the file at a different
13977
address. (There have been systems where private was not correctly
13978
implemented like the infamous i386 svr4.0, and systems where the
13979
VM page cache was not coherent with the file system buffer cache
13980
like early versions of FreeBSD and possibly contemporary NetBSD.)
13981
For shared mappings, we should conversely verify that changes get
13982
propagated back to all the places they're supposed to be.
13984
Grep wants private fixed already mapped.
13985
The main things grep needs to know about mmap are:
13986
* does it exist and is it safe to write into the mmap'd area
13987
* how to use it (BSD variants) */
13990
#include <sys/mman.h>
13992
#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
13996
/* This mess was copied from the GNU getpagesize.h. */
13997
#ifndef HAVE_GETPAGESIZE
13998
# ifdef _SC_PAGESIZE
13999
# define getpagesize() sysconf(_SC_PAGESIZE)
14000
# else /* no _SC_PAGESIZE */
14001
# ifdef HAVE_SYS_PARAM_H
14002
# include <sys/param.h>
14003
# ifdef EXEC_PAGESIZE
14004
# define getpagesize() EXEC_PAGESIZE
14005
# else /* no EXEC_PAGESIZE */
14007
# define getpagesize() NBPG * CLSIZE
14010
# endif /* no CLSIZE */
14011
# else /* no NBPG */
14013
# define getpagesize() NBPC
14014
# else /* no NBPC */
14016
# define getpagesize() PAGESIZE
14017
# endif /* PAGESIZE */
14018
# endif /* no NBPC */
14019
# endif /* no NBPG */
14020
# endif /* no EXEC_PAGESIZE */
14021
# else /* no HAVE_SYS_PARAM_H */
14022
# define getpagesize() 8192 /* punt totally */
14023
# endif /* no HAVE_SYS_PARAM_H */
14024
# endif /* no _SC_PAGESIZE */
14026
#endif /* no HAVE_GETPAGESIZE */
14031
char *data, *data2, *data3;
14032
const char *cdata2;
14036
pagesize = getpagesize ();
14038
/* First, make a file with some known garbage in it. */
14039
data = (char *) malloc (pagesize);
14042
for (i = 0; i < pagesize; ++i)
14043
*(data + i) = rand ();
14045
fd = creat ("conftest.mmap", 0600);
14048
if (write (fd, data, pagesize) != pagesize)
14052
/* Next, check that the tail of a page is zero-filled. File must have
14053
non-zero length, otherwise we risk SIGBUS for entire page. */
14054
fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
14058
if (write (fd2, cdata2, 1) != 1)
14060
data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
14061
if (data2 == MAP_FAILED)
14063
for (i = 0; i < pagesize; ++i)
14067
if (munmap (data2, pagesize))
14070
/* Next, try to mmap the file at a fixed address which already has
14071
something else allocated at it. If we can, also make sure that
14072
we see the same garbage. */
14073
fd = open ("conftest.mmap", O_RDWR);
14076
if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
14077
MAP_PRIVATE | MAP_FIXED, fd, 0L))
14079
for (i = 0; i < pagesize; ++i)
14080
if (*(data + i) != *(data2 + i))
14083
/* Finally, make sure that changes to the mapped area do not
14084
percolate back to the file as seen by read(). (This is a bug on
14085
some variants of i386 svr4.0.) */
14086
for (i = 0; i < pagesize; ++i)
14087
*(data2 + i) = *(data2 + i) + 1;
14088
data3 = (char *) malloc (pagesize);
14091
if (read (fd, data3, pagesize) != pagesize)
14093
for (i = 0; i < pagesize; ++i)
14094
if (*(data + i) != *(data3 + i))
14100
if ac_fn_cxx_try_run "$LINENO"; then :
14101
ac_cv_func_mmap_fixed_mapped=yes
14103
ac_cv_func_mmap_fixed_mapped=no
14105
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14106
conftest.$ac_objext conftest.beam conftest.$ac_ext
14110
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
14111
$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
14112
if test $ac_cv_func_mmap_fixed_mapped = yes; then
14114
$as_echo "#define HAVE_MMAP 1" >>confdefs.h
14117
rm -f conftest.mmap conftest.txt
14119
for ac_header in sys/select.h sys/socket.h
14121
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14122
ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14123
eval as_val=\$$as_ac_Header
14124
if test "x$as_val" = x""yes; then :
14125
cat >>confdefs.h <<_ACEOF
14126
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14133
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
14134
$as_echo_n "checking types of arguments for select... " >&6; }
14135
if test "${ac_cv_func_select_args+set}" = set; then :
14136
$as_echo_n "(cached) " >&6
14138
for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
14139
for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
14140
for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
14141
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14142
/* end confdefs.h. */
14143
$ac_includes_default
14144
#ifdef HAVE_SYS_SELECT_H
14145
# include <sys/select.h>
14147
#ifdef HAVE_SYS_SOCKET_H
14148
# include <sys/socket.h>
14154
extern int select ($ac_arg1,
14155
$ac_arg234, $ac_arg234, $ac_arg234,
14161
if ac_fn_cxx_try_compile "$LINENO"; then :
14162
ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
14164
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14168
# Provide a safe default value.
14169
: ${ac_cv_func_select_args='int,int *,struct timeval *'}
14172
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
14173
$as_echo "$ac_cv_func_select_args" >&6; }
14174
ac_save_IFS=$IFS; IFS=','
14175
set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
14179
cat >>confdefs.h <<_ACEOF
14180
#define SELECT_TYPE_ARG1 $1
14184
cat >>confdefs.h <<_ACEOF
14185
#define SELECT_TYPE_ARG234 ($2)
14189
cat >>confdefs.h <<_ACEOF
14190
#define SELECT_TYPE_ARG5 ($3)
14195
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
14196
$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
14197
if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
14198
$as_echo_n "(cached) " >&6
14200
rm -f conftest.sym conftest.file
14201
echo >conftest.file
14202
if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
14203
if test "$cross_compiling" = yes; then :
14204
ac_cv_func_lstat_dereferences_slashed_symlink=no
14206
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14207
/* end confdefs.h. */
14208
$ac_includes_default
14213
/* Linux will dereference the symlink and fail, as required by POSIX.
14214
That is better in the sense that it means we will not
14215
have to compile and use the lstat wrapper. */
14216
return lstat ("conftest.sym/", &sbuf) == 0;
14221
if ac_fn_cxx_try_run "$LINENO"; then :
14222
ac_cv_func_lstat_dereferences_slashed_symlink=yes
14224
ac_cv_func_lstat_dereferences_slashed_symlink=no
14226
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14227
conftest.$ac_objext conftest.beam conftest.$ac_ext
14231
# If the `ln -s' command failed, then we probably don't even
14232
# have an lstat function.
14233
ac_cv_func_lstat_dereferences_slashed_symlink=no
14235
rm -f conftest.sym conftest.file
14238
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
14239
$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
14241
test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
14243
cat >>confdefs.h <<_ACEOF
14244
#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
14248
if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
14249
case " $LIBOBJS " in
14250
*" lstat.$ac_objext "* ) ;;
14251
*) LIBOBJS="$LIBOBJS lstat.$ac_objext"
14257
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
14258
$as_echo_n "checking whether stat accepts an empty string... " >&6; }
14259
if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then :
14260
$as_echo_n "(cached) " >&6
14262
if test "$cross_compiling" = yes; then :
14263
ac_cv_func_stat_empty_string_bug=yes
14265
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14266
/* end confdefs.h. */
14267
$ac_includes_default
14272
return stat ("", &sbuf) == 0;
14277
if ac_fn_cxx_try_run "$LINENO"; then :
14278
ac_cv_func_stat_empty_string_bug=no
14280
ac_cv_func_stat_empty_string_bug=yes
14282
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14283
conftest.$ac_objext conftest.beam conftest.$ac_ext
14287
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
14288
$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
14289
if test $ac_cv_func_stat_empty_string_bug = yes; then
14290
case " $LIBOBJS " in
14291
*" stat.$ac_objext "* ) ;;
14292
*) LIBOBJS="$LIBOBJS stat.$ac_objext"
14297
cat >>confdefs.h <<_ACEOF
14298
#define HAVE_STAT_EMPTY_STRING_BUG 1
14303
for ac_func in strftime
14305
ac_fn_cxx_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
14306
if test "x$ac_cv_func_strftime" = x""yes; then :
14307
cat >>confdefs.h <<_ACEOF
14308
#define HAVE_STRFTIME 1
14312
# strftime is in -lintl on SCO UNIX.
14313
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
14314
$as_echo_n "checking for strftime in -lintl... " >&6; }
14315
if test "${ac_cv_lib_intl_strftime+set}" = set; then :
14316
$as_echo_n "(cached) " >&6
14318
ac_check_lib_save_LIBS=$LIBS
14319
LIBS="-lintl $LIBS"
14320
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14321
/* end confdefs.h. */
14323
/* Override any GCC internal prototype to avoid an error.
14324
Use char because int might match the return type of a GCC
14325
builtin and then its argument prototype would still apply. */
14333
return strftime ();
14338
if ac_fn_cxx_try_link "$LINENO"; then :
14339
ac_cv_lib_intl_strftime=yes
14341
ac_cv_lib_intl_strftime=no
14343
rm -f core conftest.err conftest.$ac_objext \
14344
conftest$ac_exeext conftest.$ac_ext
14345
LIBS=$ac_check_lib_save_LIBS
14347
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
14348
$as_echo "$ac_cv_lib_intl_strftime" >&6; }
14349
if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
14350
$as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
14352
LIBS="-lintl $LIBS"
14358
for ac_func in vprintf
14360
ac_fn_cxx_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
14361
if test "x$ac_cv_func_vprintf" = x""yes; then :
14362
cat >>confdefs.h <<_ACEOF
14363
#define HAVE_VPRINTF 1
14366
ac_fn_cxx_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
14367
if test "x$ac_cv_func__doprnt" = x""yes; then :
14369
$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
14377
for ac_header in vfork.h
14379
ac_fn_cxx_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
14380
if test "x$ac_cv_header_vfork_h" = x""yes; then :
14381
cat >>confdefs.h <<_ACEOF
14382
#define HAVE_VFORK_H 1
14389
for ac_func in fork vfork
14391
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14392
ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
14393
eval as_val=\$$as_ac_var
14394
if test "x$as_val" = x""yes; then :
14395
cat >>confdefs.h <<_ACEOF
14396
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14402
if test "x$ac_cv_func_fork" = xyes; then
14403
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14404
$as_echo_n "checking for working fork... " >&6; }
14405
if test "${ac_cv_func_fork_works+set}" = set; then :
14406
$as_echo_n "(cached) " >&6
14408
if test "$cross_compiling" = yes; then :
14409
ac_cv_func_fork_works=cross
14411
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14412
/* end confdefs.h. */
14413
$ac_includes_default
14418
/* By Ruediger Kuhlmann. */
14419
return fork () < 0;
14425
if ac_fn_cxx_try_run "$LINENO"; then :
14426
ac_cv_func_fork_works=yes
14428
ac_cv_func_fork_works=no
14430
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14431
conftest.$ac_objext conftest.beam conftest.$ac_ext
14435
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14436
$as_echo "$ac_cv_func_fork_works" >&6; }
14439
ac_cv_func_fork_works=$ac_cv_func_fork
14441
if test "x$ac_cv_func_fork_works" = xcross; then
14443
*-*-amigaos* | *-*-msdosdjgpp*)
14444
# Override, as these systems have only a dummy fork() stub
14445
ac_cv_func_fork_works=no
14448
ac_cv_func_fork_works=yes
14451
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14452
$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14454
ac_cv_func_vfork_works=$ac_cv_func_vfork
14455
if test "x$ac_cv_func_vfork" = xyes; then
14456
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14457
$as_echo_n "checking for working vfork... " >&6; }
14458
if test "${ac_cv_func_vfork_works+set}" = set; then :
14459
$as_echo_n "(cached) " >&6
14461
if test "$cross_compiling" = yes; then :
14462
ac_cv_func_vfork_works=cross
14464
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14465
/* end confdefs.h. */
14466
/* Thanks to Paul Eggert for this test. */
14467
$ac_includes_default
14468
#include <sys/wait.h>
14469
#ifdef HAVE_VFORK_H
14470
# include <vfork.h>
14472
/* On some sparc systems, changes by the child to local and incoming
14473
argument registers are propagated back to the parent. The compiler
14474
is told about this with #include <vfork.h>, but some compilers
14475
(e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
14476
static variable whose address is put into a register that is
14477
clobbered by the vfork. */
14480
sparc_address_test (int arg)
14482
sparc_address_test (arg) int arg;
14485
static pid_t child;
14503
pid_t parent = getpid ();
14506
sparc_address_test (0);
14511
/* Here is another test for sparc vfork register problems. This
14512
test uses lots of local variables, at least as many local
14513
variables as main has allocated so far including compiler
14514
temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
14515
4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
14516
reuse the register of parent for one of the local variables,
14517
since it will think that parent can't possibly be used any more
14518
in this routine. Assigning to the local variable will thus
14519
munge parent in the parent process. */
14521
p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14522
p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14523
/* Convince the compiler that p..p7 are live; otherwise, it might
14524
use the same hardware register for all 8 local variables. */
14525
if (p != p1 || p != p2 || p != p3 || p != p4
14526
|| p != p5 || p != p6 || p != p7)
14529
/* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14530
from child file descriptors. If the child closes a descriptor
14531
before it execs or exits, this munges the parent's descriptor
14532
as well. Test for this by closing stdout in the child. */
14533
_exit(close(fileno(stdout)) != 0);
14538
while (wait(&status) != child)
14541
/* Was there some problem with vforking? */
14544
/* Did the child fail? (This shouldn't happen.) */
14547
/* Did the vfork/compiler bug occur? */
14548
|| parent != getpid()
14550
/* Did the file descriptor bug occur? */
14551
|| fstat(fileno(stdout), &st) != 0
14556
if ac_fn_cxx_try_run "$LINENO"; then :
14557
ac_cv_func_vfork_works=yes
14559
ac_cv_func_vfork_works=no
14561
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14562
conftest.$ac_objext conftest.beam conftest.$ac_ext
14566
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14567
$as_echo "$ac_cv_func_vfork_works" >&6; }
14570
if test "x$ac_cv_func_fork_works" = xcross; then
14571
ac_cv_func_vfork_works=$ac_cv_func_vfork
14572
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14573
$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14576
if test "x$ac_cv_func_vfork_works" = xyes; then
14578
$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14582
$as_echo "#define vfork fork" >>confdefs.h
14585
if test "x$ac_cv_func_fork_works" = xyes; then
14587
$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
14591
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
14592
$as_echo_n "checking for working strtod... " >&6; }
14593
if test "${ac_cv_func_strtod+set}" = set; then :
14594
$as_echo_n "(cached) " >&6
14596
if test "$cross_compiling" = yes; then :
14597
ac_cv_func_strtod=no
14599
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14600
/* end confdefs.h. */
14602
$ac_includes_default
14610
/* Some versions of Linux strtod mis-parse strings with leading '+'. */
14611
char *string = " +69";
14614
value = strtod (string, &term);
14615
if (value != 69 || term != (string + 4))
14620
/* Under Solaris 2.4, strtod returns the wrong value for the
14621
terminating character under some conditions. */
14622
char *string = "NaN";
14624
strtod (string, &term);
14625
if (term != string && *(term - 1) == 0)
14632
if ac_fn_cxx_try_run "$LINENO"; then :
14633
ac_cv_func_strtod=yes
14635
ac_cv_func_strtod=no
14637
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14638
conftest.$ac_objext conftest.beam conftest.$ac_ext
14642
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
14643
$as_echo "$ac_cv_func_strtod" >&6; }
14644
if test $ac_cv_func_strtod = no; then
14645
case " $LIBOBJS " in
14646
*" strtod.$ac_objext "* ) ;;
14647
*) LIBOBJS="$LIBOBJS strtod.$ac_objext"
14651
ac_fn_cxx_check_func "$LINENO" "pow" "ac_cv_func_pow"
14652
if test "x$ac_cv_func_pow" = x""yes; then :
14656
if test $ac_cv_func_pow = no; then
14657
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
14658
$as_echo_n "checking for pow in -lm... " >&6; }
14659
if test "${ac_cv_lib_m_pow+set}" = set; then :
14660
$as_echo_n "(cached) " >&6
14662
ac_check_lib_save_LIBS=$LIBS
14664
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14665
/* end confdefs.h. */
14667
/* Override any GCC internal prototype to avoid an error.
14668
Use char because int might match the return type of a GCC
14669
builtin and then its argument prototype would still apply. */
14682
if ac_fn_cxx_try_link "$LINENO"; then :
14683
ac_cv_lib_m_pow=yes
14687
rm -f core conftest.err conftest.$ac_objext \
14688
conftest$ac_exeext conftest.$ac_ext
14689
LIBS=$ac_check_lib_save_LIBS
14691
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
14692
$as_echo "$ac_cv_lib_m_pow" >&6; }
14693
if test "x$ac_cv_lib_m_pow" = x""yes; then :
14696
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
14697
$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
14704
for ac_func in __argz_count \
14746
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14747
ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
14748
eval as_val=\$$as_ac_var
14749
if test "x$as_val" = x""yes; then :
14750
cat >>confdefs.h <<_ACEOF
14751
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14758
if test "x$enable_epoll" = "xyes"; then
14759
for ac_func in epoll_create
14761
ac_fn_cxx_check_func "$LINENO" "epoll_create" "ac_cv_func_epoll_create"
14762
if test "x$ac_cv_func_epoll_create" = x""yes; then :
14763
cat >>confdefs.h <<_ACEOF
14764
#define HAVE_EPOLL_CREATE 1
14770
if test "x$have_epoll" = "xyes"; then
14772
$as_echo "#define HAVE_EPOLL 1" >>confdefs.h
14776
if test "x$have_epoll" = "xyes"; then
14778
HAVE_EPOLL_FALSE='#'
14780
HAVE_EPOLL_TRUE='#'
14785
for ac_func in posix_fallocate
14787
ac_fn_cxx_check_func "$LINENO" "posix_fallocate" "ac_cv_func_posix_fallocate"
14788
if test "x$ac_cv_func_posix_fallocate" = x""yes; then :
14789
cat >>confdefs.h <<_ACEOF
14790
#define HAVE_POSIX_FALLOCATE 1
14792
have_posix_fallocate=yes
14796
if test "x$have_posix_fallocate" = "xyes"; then
14797
HAVE_SOME_FALLOCATE_TRUE=
14798
HAVE_SOME_FALLOCATE_FALSE='#'
14800
HAVE_SOME_FALLOCATE_TRUE='#'
14801
HAVE_SOME_FALLOCATE_FALSE=
14805
for ac_func in fallocate
14807
ac_fn_cxx_check_func "$LINENO" "fallocate" "ac_cv_func_fallocate"
14808
if test "x$ac_cv_func_fallocate" = x""yes; then :
14809
cat >>confdefs.h <<_ACEOF
14810
#define HAVE_FALLOCATE 1
14816
if test "x$have_fallocate" = "xyes"; then
14817
HAVE_SOME_FALLOCATE_TRUE=
14818
HAVE_SOME_FALLOCATE_FALSE='#'
14820
HAVE_SOME_FALLOCATE_TRUE='#'
14821
HAVE_SOME_FALLOCATE_FALSE=
14825
if test "x$have_posix_fallocate" = "xyes" ||
14826
test "x$have_fallocate" = "xyes"; then
14828
$as_echo "#define HAVE_SOME_FALLOCATE 1" >>confdefs.h
14832
for ac_func in asctime_r
14834
ac_fn_cxx_check_func "$LINENO" "asctime_r" "ac_cv_func_asctime_r"
14835
if test "x$ac_cv_func_asctime_r" = x""yes; then :
14836
cat >>confdefs.h <<_ACEOF
14837
#define HAVE_ASCTIME_R 1
14840
HAVE_ASCTIME_R_TRUE=
14841
HAVE_ASCTIME_R_FALSE='#'
14843
HAVE_ASCTIME_R_TRUE='#'
14844
HAVE_ASCTIME_R_FALSE=
14849
HAVE_ASCTIME_R_TRUE=
14850
HAVE_ASCTIME_R_FALSE='#'
14852
HAVE_ASCTIME_R_TRUE='#'
14853
HAVE_ASCTIME_R_FALSE=
14859
for ac_func in basename
14861
ac_fn_cxx_check_func "$LINENO" "basename" "ac_cv_func_basename"
14862
if test "x$ac_cv_func_basename" = x""yes; then :
14863
cat >>confdefs.h <<_ACEOF
14864
#define HAVE_BASENAME 1
14867
HAVE_BASENAME_TRUE=
14868
HAVE_BASENAME_FALSE='#'
14870
HAVE_BASENAME_TRUE='#'
14871
HAVE_BASENAME_FALSE=
14876
HAVE_BASENAME_TRUE=
14877
HAVE_BASENAME_FALSE='#'
14879
HAVE_BASENAME_TRUE='#'
14880
HAVE_BASENAME_FALSE=
14886
for ac_func in gai_strerror
14888
ac_fn_cxx_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
14889
if test "x$ac_cv_func_gai_strerror" = x""yes; then :
14890
cat >>confdefs.h <<_ACEOF
14891
#define HAVE_GAI_STRERROR 1
14894
HAVE_GAI_STRERROR_TRUE=
14895
HAVE_GAI_STRERROR_FALSE='#'
14897
HAVE_GAI_STRERROR_TRUE='#'
14898
HAVE_GAI_STRERROR_FALSE=
14903
HAVE_GAI_STRERROR_TRUE=
14904
HAVE_GAI_STRERROR_FALSE='#'
14906
HAVE_GAI_STRERROR_TRUE='#'
14907
HAVE_GAI_STRERROR_FALSE=
14913
for ac_func in getaddrinfo
14915
ac_fn_cxx_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
14916
if test "x$ac_cv_func_getaddrinfo" = x""yes; then :
14917
cat >>confdefs.h <<_ACEOF
14918
#define HAVE_GETADDRINFO 1
14921
HAVE_GETADDRINFO_TRUE=
14922
HAVE_GETADDRINFO_FALSE='#'
14924
HAVE_GETADDRINFO_TRUE='#'
14925
HAVE_GETADDRINFO_FALSE=
14930
HAVE_GETADDRINFO_TRUE=
14931
HAVE_GETADDRINFO_FALSE='#'
14933
HAVE_GETADDRINFO_TRUE='#'
14934
HAVE_GETADDRINFO_FALSE=
14940
for ac_func in gettimeofday
14942
ac_fn_cxx_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
14943
if test "x$ac_cv_func_gettimeofday" = x""yes; then :
14944
cat >>confdefs.h <<_ACEOF
14945
#define HAVE_GETTIMEOFDAY 1
14948
HAVE_GETTIMEOFDAY_TRUE=
14949
HAVE_GETTIMEOFDAY_FALSE='#'
14951
HAVE_GETTIMEOFDAY_TRUE='#'
14952
HAVE_GETTIMEOFDAY_FALSE=
14957
HAVE_GETTIMEOFDAY_TRUE=
14958
HAVE_GETTIMEOFDAY_FALSE='#'
14960
HAVE_GETTIMEOFDAY_TRUE='#'
14961
HAVE_GETTIMEOFDAY_FALSE=
14967
for ac_func in inet_aton
14969
ac_fn_cxx_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
14970
if test "x$ac_cv_func_inet_aton" = x""yes; then :
14971
cat >>confdefs.h <<_ACEOF
14972
#define HAVE_INET_ATON 1
14975
HAVE_INET_ATON_TRUE=
14976
HAVE_INET_ATON_FALSE='#'
14978
HAVE_INET_ATON_TRUE='#'
14979
HAVE_INET_ATON_FALSE=
14984
HAVE_INET_ATON_TRUE=
14985
HAVE_INET_ATON_FALSE='#'
14987
HAVE_INET_ATON_TRUE='#'
14988
HAVE_INET_ATON_FALSE=
14994
for ac_func in localtime_r
14996
ac_fn_cxx_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r"
14997
if test "x$ac_cv_func_localtime_r" = x""yes; then :
14998
cat >>confdefs.h <<_ACEOF
14999
#define HAVE_LOCALTIME_R 1
15002
HAVE_LOCALTIME_R_TRUE=
15003
HAVE_LOCALTIME_R_FALSE='#'
15005
HAVE_LOCALTIME_R_TRUE='#'
15006
HAVE_LOCALTIME_R_FALSE=
15011
HAVE_LOCALTIME_R_TRUE=
15012
HAVE_LOCALTIME_R_FALSE='#'
15014
HAVE_LOCALTIME_R_TRUE='#'
15015
HAVE_LOCALTIME_R_FALSE=
15021
for ac_func in strptime
15023
ac_fn_cxx_check_func "$LINENO" "strptime" "ac_cv_func_strptime"
15024
if test "x$ac_cv_func_strptime" = x""yes; then :
15025
cat >>confdefs.h <<_ACEOF
15026
#define HAVE_STRPTIME 1
15029
HAVE_STRPTIME_TRUE=
15030
HAVE_STRPTIME_FALSE='#'
15032
HAVE_STRPTIME_TRUE='#'
15033
HAVE_STRPTIME_FALSE=
15038
HAVE_STRPTIME_TRUE=
15039
HAVE_STRPTIME_FALSE='#'
15041
HAVE_STRPTIME_TRUE='#'
15042
HAVE_STRPTIME_FALSE=
15048
for ac_func in timegm
15050
ac_fn_cxx_check_func "$LINENO" "timegm" "ac_cv_func_timegm"
15051
if test "x$ac_cv_func_timegm" = x""yes; then :
15052
cat >>confdefs.h <<_ACEOF
15053
#define HAVE_TIMEGM 1
15057
HAVE_TIMEGM_FALSE='#'
15059
HAVE_TIMEGM_TRUE='#'
15066
HAVE_TIMEGM_FALSE='#'
15068
HAVE_TIMEGM_TRUE='#'
15075
for ac_func in daemon
15077
ac_fn_cxx_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
15078
if test "x$ac_cv_func_daemon" = x""yes; then :
15079
cat >>confdefs.h <<_ACEOF
15080
#define HAVE_DAEMON 1
15086
if test "x$have_daemon" = "xyes"; then
15088
HAVE_DAEMON_FALSE='#'
15090
HAVE_DAEMON_TRUE='#'
15095
for ac_func in clock_gettime
15097
ac_fn_cxx_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
15098
if test "x$ac_cv_func_clock_gettime" = x""yes; then :
15099
cat >>confdefs.h <<_ACEOF
15100
#define HAVE_CLOCK_GETTIME 1
15102
have_clock_gettime=yes
15107
if test "x$have_clock_gettime" != "xyes"; then
15108
for ac_func in mach_absolute_time
15110
ac_fn_cxx_check_func "$LINENO" "mach_absolute_time" "ac_cv_func_mach_absolute_time"
15111
if test "x$ac_cv_func_mach_absolute_time" = x""yes; then :
15112
cat >>confdefs.h <<_ACEOF
15113
#define HAVE_MACH_ABSOLUTE_TIME 1
15115
have_mach_absolute_time=yes
15120
if test "x$have_mach_absolute_time" = "xyes"; then
15121
HAVE_MACH_ABSOLUTE_TIME_TRUE=
15122
HAVE_MACH_ABSOLUTE_TIME_FALSE='#'
15124
HAVE_MACH_ABSOLUTE_TIME_TRUE='#'
15125
HAVE_MACH_ABSOLUTE_TIME_FALSE=
15129
for ac_func in poll
15131
ac_fn_cxx_check_func "$LINENO" "poll" "ac_cv_func_poll"
15132
if test "x$ac_cv_func_poll" = x""yes; then :
15133
cat >>confdefs.h <<_ACEOF
15134
#define HAVE_POLL 1
15140
if test "x$have_poll" = "xyes"; then
15142
HAVE_POLL_FALSE='#'
15152
HAVE_GETADDRINFO_TRUE=
15153
HAVE_GETADDRINFO_FALSE='#'
15155
HAVE_GETADDRINFO_TRUE='#'
15156
HAVE_GETADDRINFO_FALSE=
15160
HAVE_GAI_STRERROR_TRUE=
15161
HAVE_GAI_STRERROR_FALSE='#'
15163
HAVE_GAI_STRERROR_TRUE='#'
15164
HAVE_GAI_STRERROR_FALSE=
15167
if test "x$have_clock_gettime" != "xyes"; then
15169
HAVE_TIMEGETTIME_TRUE=
15170
HAVE_TIMEGETTIME_FALSE='#'
15172
HAVE_TIMEGETTIME_TRUE='#'
15173
HAVE_TIMEGETTIME_FALSE=
15180
HAVE_TIMEGETTIME_TRUE=
15181
HAVE_TIMEGETTIME_FALSE='#'
15183
HAVE_TIMEGETTIME_TRUE='#'
15184
HAVE_TIMEGETTIME_FALSE=
15190
for ac_func in port_associate
15192
ac_fn_cxx_check_func "$LINENO" "port_associate" "ac_cv_func_port_associate"
15193
if test "x$ac_cv_func_port_associate" = x""yes; then :
15194
cat >>confdefs.h <<_ACEOF
15195
#define HAVE_PORT_ASSOCIATE 1
15197
have_port_associate=yes
15201
if test "x$have_port_associate" = "xyes"; then
15202
HAVE_PORT_ASSOCIATE_TRUE=
15203
HAVE_PORT_ASSOCIATE_FALSE='#'
15205
HAVE_PORT_ASSOCIATE_TRUE='#'
15206
HAVE_PORT_ASSOCIATE_FALSE=
15210
for ac_func in kqueue
15212
ac_fn_cxx_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue"
15213
if test "x$ac_cv_func_kqueue" = x""yes; then :
15214
cat >>confdefs.h <<_ACEOF
15215
#define HAVE_KQUEUE 1
15221
if test "x$have_kqueue" = "xyes"; then
15223
HAVE_KQUEUE_FALSE='#'
15225
HAVE_KQUEUE_TRUE='#'
15229
if test "x$have_kqueue" = "xyes"; then
15230
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct kevent.udata is intptr_t" >&5
15231
$as_echo_n "checking whether struct kevent.udata is intptr_t... " >&6; }
15232
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15233
/* end confdefs.h. */
15235
#include <sys/types.h>
15236
#include <sys/event.h>
15237
#include <sys/time.h>
15243
struct kevent event;
15244
event.udata = reinterpret_cast<intptr_t>(&event);
15250
if ac_fn_cxx_try_compile "$LINENO"; then :
15251
kevent_udata_intptr_t=yes
15253
kevent_udata_intptr_t=no
15255
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15256
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $kevent_udata_intptr_t" >&5
15257
$as_echo "$kevent_udata_intptr_t" >&6; }
15258
if test "x$kevent_udata_intptr_t" = "xyes"; then
15260
$as_echo "#define KEVENT_UDATA_INTPTR_T 1" >>confdefs.h
15265
ac_fn_cxx_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#include <netinet/in.h>
15267
if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = x""yes; then :
15269
$as_echo "#define HAVE_SOCKADDR_IN_SIN_LEN 1" >>confdefs.h
15274
# Check struct option.name is assignable from const char*. struct
15275
# option.name in opensolaris is of type char*. In Linux, it is const
15277
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct option.name is assignable from const char*" >&5
15278
$as_echo_n "checking whether struct option.name is assignable from const char*... " >&6; }
15279
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15280
/* end confdefs.h. */
15282
#include <unistd.h>
15283
#include <getopt.h>
15289
const char* s = "const char";
15297
if ac_fn_cxx_try_compile "$LINENO"; then :
15298
have_option_const_name=yes
15300
have_option_const_name=no
15302
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15303
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_option_const_name" >&5
15304
$as_echo "$have_option_const_name" >&6; }
15305
if test "x$have_option_const_name" = "xyes"; then
15307
$as_echo "#define HAVE_OPTION_CONST_NAME 1" >>confdefs.h
15311
ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile po/Makefile.in intl/Makefile lib/Makefile doc/Makefile"
15313
cat >confcache <<\_ACEOF
15314
# This file is a shell script that caches the results of configure
15315
# tests run on this system so they can be shared between configure
15316
# scripts and configure runs, see configure's option --config-cache.
15317
# It is not useful on other systems. If it contains results you don't
15318
# want to keep, you may remove or edit it.
15320
# config.status only pays attention to the cache file if you give it
15321
# the --recheck option to rerun configure.
15323
# `ac_cv_env_foo' variables (set or unset) will be overridden when
15324
# loading this file, other *unset* `ac_cv_foo' will be assigned the
15325
# following values.
15329
# The following way of writing the cache mishandles newlines in values,
15330
# but we know of no workaround that is simple, portable, and efficient.
15331
# So, we kill variables containing newlines.
15332
# Ultrix sh set writes to stderr and can't be redirected directly,
15333
# and sets the high bit in the cache file unless we assign to the vars.
15335
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15336
eval ac_val=\$$ac_var
15340
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15341
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15344
_ | IFS | as_nl) ;; #(
15345
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15346
*) { eval $ac_var=; unset $ac_var;} ;;
15352
case $as_nl`(ac_space=' '; set) 2>&1` in #(
15353
*${as_nl}ac_space=\ *)
15354
# `set' does not quote correctly, so add quotes: double-quote
15355
# substitution turns \\\\ into \\, and sed turns \\ into \.
15358
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15361
# `set' quotes correctly as required by POSIX, so do not add quotes.
15362
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15371
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15373
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15375
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15376
if test -w "$cache_file"; then
15377
test "x$cache_file" != "x/dev/null" &&
15378
{ $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15379
$as_echo "$as_me: updating cache $cache_file" >&6;}
15380
cat confcache >$cache_file
15382
{ $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15383
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15388
test "x$prefix" = xNONE && prefix=$ac_default_prefix
15389
# Let make expand exec_prefix.
15390
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15392
DEFS=-DHAVE_CONFIG_H
15396
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15397
# 1. Remove the extension, and $U if already installed.
15398
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15399
ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15400
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15401
# will be set to the directory where LIBOBJS objects are built.
15402
as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15403
as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15405
LIBOBJS=$ac_libobjs
15407
LTLIBOBJS=$ac_ltlibobjs
15410
if test -n "$EXEEXT"; then
15412
am__EXEEXT_FALSE='#'
15414
am__EXEEXT_TRUE='#'
15418
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15419
as_fn_error "conditional \"AMDEP\" was never defined.
15420
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15422
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15423
as_fn_error "conditional \"am__fastdepCXX\" was never defined.
15424
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15426
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15427
as_fn_error "conditional \"am__fastdepCC\" was never defined.
15428
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15430
if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
15431
as_fn_error "conditional \"ENABLE_SSL\" was never defined.
15432
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15434
if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
15435
as_fn_error "conditional \"ENABLE_SSL\" was never defined.
15436
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15438
if test -z "${HAVE_LIBGNUTLS_TRUE}" && test -z "${HAVE_LIBGNUTLS_FALSE}"; then
15439
as_fn_error "conditional \"HAVE_LIBGNUTLS\" was never defined.
15440
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15442
if test -z "${HAVE_LIBSSL_TRUE}" && test -z "${HAVE_LIBSSL_FALSE}"; then
15443
as_fn_error "conditional \"HAVE_LIBSSL\" was never defined.
15444
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15446
if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
15447
as_fn_error "conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
15448
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15450
if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
15451
as_fn_error "conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
15452
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15454
if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
15455
as_fn_error "conditional \"ENABLE_BITTORRENT\" was never defined.
15456
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15458
if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
15459
as_fn_error "conditional \"ENABLE_BITTORRENT\" was never defined.
15460
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15462
if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
15463
as_fn_error "conditional \"ENABLE_METALINK\" was never defined.
15464
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15466
if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
15467
as_fn_error "conditional \"ENABLE_METALINK\" was never defined.
15468
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15470
if test -z "${ENABLE_METALINK_LIBXML2_TRUE}" && test -z "${ENABLE_METALINK_LIBXML2_FALSE}"; then
15471
as_fn_error "conditional \"ENABLE_METALINK_LIBXML2\" was never defined.
15472
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15474
if test -z "${ENABLE_METALINK_LIBEXPAT_TRUE}" && test -z "${ENABLE_METALINK_LIBEXPAT_FALSE}"; then
15475
as_fn_error "conditional \"ENABLE_METALINK_LIBEXPAT\" was never defined.
15476
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15478
if test -z "${ENABLE_XML_RPC_TRUE}" && test -z "${ENABLE_XML_RPC_FALSE}"; then
15479
as_fn_error "conditional \"ENABLE_XML_RPC\" was never defined.
15480
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15482
if test -z "${HAVE_LIBXML2_TRUE}" && test -z "${HAVE_LIBXML2_FALSE}"; then
15483
as_fn_error "conditional \"HAVE_LIBXML2\" was never defined.
15484
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15486
if test -z "${HAVE_LIBEXPAT_TRUE}" && test -z "${HAVE_LIBEXPAT_FALSE}"; then
15487
as_fn_error "conditional \"HAVE_LIBEXPAT\" was never defined.
15488
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15490
if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
15491
as_fn_error "conditional \"ENABLE_ASYNC_DNS\" was never defined.
15492
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15494
if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
15495
as_fn_error "conditional \"ENABLE_ASYNC_DNS\" was never defined.
15496
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15498
if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then
15499
as_fn_error "conditional \"HAVE_LIBZ\" was never defined.
15500
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15502
if test -z "${HAVE_SQLITE3_TRUE}" && test -z "${HAVE_SQLITE3_FALSE}"; then
15503
as_fn_error "conditional \"HAVE_SQLITE3\" was never defined.
15504
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15507
if test -z "${HAVE_EPOLL_TRUE}" && test -z "${HAVE_EPOLL_FALSE}"; then
15508
as_fn_error "conditional \"HAVE_EPOLL\" was never defined.
15509
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15511
if test -z "${HAVE_SOME_FALLOCATE_TRUE}" && test -z "${HAVE_SOME_FALLOCATE_FALSE}"; then
15512
as_fn_error "conditional \"HAVE_SOME_FALLOCATE\" was never defined.
15513
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15515
if test -z "${HAVE_SOME_FALLOCATE_TRUE}" && test -z "${HAVE_SOME_FALLOCATE_FALSE}"; then
15516
as_fn_error "conditional \"HAVE_SOME_FALLOCATE\" was never defined.
15517
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15519
if test -z "${HAVE_ASCTIME_R_TRUE}" && test -z "${HAVE_ASCTIME_R_FALSE}"; then
15520
as_fn_error "conditional \"HAVE_ASCTIME_R\" was never defined.
15521
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15523
if test -z "${HAVE_ASCTIME_R_TRUE}" && test -z "${HAVE_ASCTIME_R_FALSE}"; then
15524
as_fn_error "conditional \"HAVE_ASCTIME_R\" was never defined.
15525
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15527
if test -z "${HAVE_BASENAME_TRUE}" && test -z "${HAVE_BASENAME_FALSE}"; then
15528
as_fn_error "conditional \"HAVE_BASENAME\" was never defined.
15529
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15531
if test -z "${HAVE_BASENAME_TRUE}" && test -z "${HAVE_BASENAME_FALSE}"; then
15532
as_fn_error "conditional \"HAVE_BASENAME\" was never defined.
15533
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15535
if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
15536
as_fn_error "conditional \"HAVE_GAI_STRERROR\" was never defined.
15537
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15539
if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
15540
as_fn_error "conditional \"HAVE_GAI_STRERROR\" was never defined.
15541
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15543
if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
15544
as_fn_error "conditional \"HAVE_GETADDRINFO\" was never defined.
15545
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15547
if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
15548
as_fn_error "conditional \"HAVE_GETADDRINFO\" was never defined.
15549
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15551
if test -z "${HAVE_GETTIMEOFDAY_TRUE}" && test -z "${HAVE_GETTIMEOFDAY_FALSE}"; then
15552
as_fn_error "conditional \"HAVE_GETTIMEOFDAY\" was never defined.
15553
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15555
if test -z "${HAVE_GETTIMEOFDAY_TRUE}" && test -z "${HAVE_GETTIMEOFDAY_FALSE}"; then
15556
as_fn_error "conditional \"HAVE_GETTIMEOFDAY\" was never defined.
15557
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15559
if test -z "${HAVE_INET_ATON_TRUE}" && test -z "${HAVE_INET_ATON_FALSE}"; then
15560
as_fn_error "conditional \"HAVE_INET_ATON\" was never defined.
15561
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15563
if test -z "${HAVE_INET_ATON_TRUE}" && test -z "${HAVE_INET_ATON_FALSE}"; then
15564
as_fn_error "conditional \"HAVE_INET_ATON\" was never defined.
15565
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15567
if test -z "${HAVE_LOCALTIME_R_TRUE}" && test -z "${HAVE_LOCALTIME_R_FALSE}"; then
15568
as_fn_error "conditional \"HAVE_LOCALTIME_R\" was never defined.
15569
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15571
if test -z "${HAVE_LOCALTIME_R_TRUE}" && test -z "${HAVE_LOCALTIME_R_FALSE}"; then
15572
as_fn_error "conditional \"HAVE_LOCALTIME_R\" was never defined.
15573
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15575
if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
15576
as_fn_error "conditional \"HAVE_STRPTIME\" was never defined.
15577
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15579
if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
15580
as_fn_error "conditional \"HAVE_STRPTIME\" was never defined.
15581
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15583
if test -z "${HAVE_TIMEGM_TRUE}" && test -z "${HAVE_TIMEGM_FALSE}"; then
15584
as_fn_error "conditional \"HAVE_TIMEGM\" was never defined.
15585
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15587
if test -z "${HAVE_TIMEGM_TRUE}" && test -z "${HAVE_TIMEGM_FALSE}"; then
15588
as_fn_error "conditional \"HAVE_TIMEGM\" was never defined.
15589
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15591
if test -z "${HAVE_DAEMON_TRUE}" && test -z "${HAVE_DAEMON_FALSE}"; then
15592
as_fn_error "conditional \"HAVE_DAEMON\" was never defined.
15593
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15595
if test -z "${HAVE_MACH_ABSOLUTE_TIME_TRUE}" && test -z "${HAVE_MACH_ABSOLUTE_TIME_FALSE}"; then
15596
as_fn_error "conditional \"HAVE_MACH_ABSOLUTE_TIME\" was never defined.
15597
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15599
if test -z "${HAVE_POLL_TRUE}" && test -z "${HAVE_POLL_FALSE}"; then
15600
as_fn_error "conditional \"HAVE_POLL\" was never defined.
15601
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15603
if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
15604
as_fn_error "conditional \"HAVE_GETADDRINFO\" was never defined.
15605
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15607
if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
15608
as_fn_error "conditional \"HAVE_GAI_STRERROR\" was never defined.
15609
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15611
if test -z "${HAVE_TIMEGETTIME_TRUE}" && test -z "${HAVE_TIMEGETTIME_FALSE}"; then
15612
as_fn_error "conditional \"HAVE_TIMEGETTIME\" was never defined.
15613
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15615
if test -z "${HAVE_TIMEGETTIME_TRUE}" && test -z "${HAVE_TIMEGETTIME_FALSE}"; then
15616
as_fn_error "conditional \"HAVE_TIMEGETTIME\" was never defined.
15617
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15619
if test -z "${HAVE_PORT_ASSOCIATE_TRUE}" && test -z "${HAVE_PORT_ASSOCIATE_FALSE}"; then
15620
as_fn_error "conditional \"HAVE_PORT_ASSOCIATE\" was never defined.
15621
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15623
if test -z "${HAVE_KQUEUE_TRUE}" && test -z "${HAVE_KQUEUE_FALSE}"; then
15624
as_fn_error "conditional \"HAVE_KQUEUE\" was never defined.
15625
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15628
: ${CONFIG_STATUS=./config.status}
15630
ac_clean_files_save=$ac_clean_files
15631
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15632
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15633
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15635
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15637
# Generated by $as_me.
15638
# Run this file to recreate the current configuration.
15639
# Compiler output produced by configure, useful for debugging
15640
# configure, is in config.log if it exists.
15643
ac_cs_recheck=false
15646
SHELL=\${CONFIG_SHELL-$SHELL}
15649
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15650
## -------------------- ##
15651
## M4sh Initialization. ##
15652
## -------------------- ##
15654
# Be more Bourne compatible
15655
DUALCASE=1; export DUALCASE # for MKS sh
15656
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15659
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15660
# is contrary to our usage. Disable this feature.
15661
alias -g '${1+"$@"}'='"$@"'
15662
setopt NO_GLOB_SUBST
15664
case `(set -o) 2>/dev/null` in #(
15676
# Printing a long string crashes Solaris 7 /usr/bin/printf.
15677
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15678
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15679
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15680
# Prefer a ksh shell builtin over an external printf program on Solaris,
15681
# but without wasting forks for bash or zsh.
15682
if test -z "$BASH_VERSION$ZSH_VERSION" \
15683
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15684
as_echo='print -r --'
15685
as_echo_n='print -rn --'
15686
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15687
as_echo='printf %s\n'
15688
as_echo_n='printf %s'
15690
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15691
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15692
as_echo_n='/usr/ucb/echo -n'
15694
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15695
as_echo_n_body='eval
15699
expr "X$arg" : "X\\(.*\\)$as_nl";
15700
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15702
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15704
export as_echo_n_body
15705
as_echo_n='sh -c $as_echo_n_body as_echo'
15707
export as_echo_body
15708
as_echo='sh -c $as_echo_body as_echo'
15711
# The user is always right.
15712
if test "${PATH_SEPARATOR+set}" != set; then
15714
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15715
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15722
# We need space, tab and new line, in precisely that order. Quoting is
15723
# there to prevent editors from complaining about space-tab.
15724
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15725
# splitting by setting IFS to empty value.)
15728
# Find who we are. Look in the path if we contain no directory separator.
15730
*[\\/]* ) as_myself=$0 ;;
15731
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15732
for as_dir in $PATH
15735
test -z "$as_dir" && as_dir=.
15736
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15742
# We did not find ourselves, most probably we were run as `sh COMMAND'
15743
# in which case we are not to be found in the path.
15744
if test "x$as_myself" = x; then
15747
if test ! -f "$as_myself"; then
15748
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15752
# Unset variables that we do not need and which cause bugs (e.g. in
15753
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15754
# suppresses any "Segmentation fault" message there. '((' could
15755
# trigger a bug in pdksh 5.2.14.
15756
for as_var in BASH_ENV ENV MAIL MAILPATH
15757
do eval test x\${$as_var+set} = xset \
15758
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15771
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15774
# as_fn_error ERROR [LINENO LOG_FD]
15775
# ---------------------------------
15776
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15777
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15778
# script with status $?, using 1 if that was 0.
15781
as_status=$?; test $as_status -eq 0 && as_status=1
15783
as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15784
$as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15786
$as_echo "$as_me: error: $1" >&2
15787
as_fn_exit $as_status
15791
# as_fn_set_status STATUS
15792
# -----------------------
15793
# Set $? to STATUS, without forking.
15794
as_fn_set_status ()
15797
} # as_fn_set_status
15799
# as_fn_exit STATUS
15800
# -----------------
15801
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15805
as_fn_set_status $1
15811
# Portably unset VAR.
15814
{ eval $1=; unset $1;}
15816
as_unset=as_fn_unset
15817
# as_fn_append VAR VALUE
15818
# ----------------------
15819
# Append the text in VALUE to the end of the definition contained in VAR. Take
15820
# advantage of any shell optimizations that allow amortized linear growth over
15821
# repeated appends, instead of the typical quadratic growth present in naive
15823
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15824
eval 'as_fn_append ()
15835
# as_fn_arith ARG...
15836
# ------------------
15837
# Perform arithmetic evaluation on the ARGs, and store the result in the
15838
# global $as_val. Take advantage of shells that can avoid forks. The arguments
15839
# must be portable across $(()) and expr.
15840
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15841
eval 'as_fn_arith ()
15848
as_val=`expr "$@" || test $? -eq 1`
15853
if expr a : '\(a\)' >/dev/null 2>&1 &&
15854
test "X`expr 00001 : '.*\(...\)'`" = X001; then
15860
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15861
as_basename=basename
15866
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15872
as_me=`$as_basename -- "$0" ||
15873
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15874
X"$0" : 'X\(//\)$' \| \
15875
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15877
sed '/^.*\/\([^/][^/]*\)\/*$/{
15891
# Avoid depending upon Character Ranges.
15892
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15893
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15894
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15895
as_cr_digits='0123456789'
15896
as_cr_alnum=$as_cr_Letters$as_cr_digits
15898
ECHO_C= ECHO_N= ECHO_T=
15899
case `echo -n x` in #(((((
15901
case `echo 'xy\c'` in
15902
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
15904
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15911
rm -f conf$$ conf$$.exe conf$$.file
15912
if test -d conf$$.dir; then
15913
rm -f conf$$.dir/conf$$.file
15916
mkdir conf$$.dir 2>/dev/null
15918
if (echo >conf$$.file) 2>/dev/null; then
15919
if ln -s conf$$.file conf$$ 2>/dev/null; then
15921
# ... but there are two gotchas:
15922
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15923
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15924
# In both cases, we have to default to `cp -p'.
15925
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15927
elif ln conf$$.file conf$$ 2>/dev/null; then
15935
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15936
rmdir conf$$.dir 2>/dev/null
15941
# Create "$as_dir" as a directory, including parents if necessary.
15946
-*) as_dir=./$as_dir;;
15948
test -d "$as_dir" || eval $as_mkdir_p || {
15952
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15953
*) as_qdir=$as_dir;;
15955
as_dirs="'$as_qdir' $as_dirs"
15956
as_dir=`$as_dirname -- "$as_dir" ||
15957
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15958
X"$as_dir" : 'X\(//\)[^/]' \| \
15959
X"$as_dir" : 'X\(//\)$' \| \
15960
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15961
$as_echo X"$as_dir" |
15962
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15966
/^X\(\/\/\)[^/].*/{
15979
test -d "$as_dir" && break
15981
test -z "$as_dirs" || eval "mkdir $as_dirs"
15982
} || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15986
if mkdir -p . 2>/dev/null; then
15987
as_mkdir_p='mkdir -p "$as_dir"'
15989
test -d ./-p && rmdir ./-p
15993
if test -x / >/dev/null 2>&1; then
15994
as_test_x='test -x'
15996
if ls -dL / >/dev/null 2>&1; then
16003
if test -d "$1"; then
16009
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16010
???[sx]*):;;*)false;;esac;fi
16014
as_executable_p=$as_test_x
16016
# Sed expression to map a string onto a valid CPP name.
16017
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16019
# Sed expression to map a string onto a valid variable name.
16020
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16024
## ----------------------------------- ##
16025
## Main body of $CONFIG_STATUS script. ##
16026
## ----------------------------------- ##
16028
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16030
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16031
# Save the log message, to keep $0 and so on meaningful, and to
16032
# report actual input values of CONFIG_FILES etc. instead of their
16033
# values after options handling.
16035
This file was extended by aria2 $as_me 1.10.0, which was
16036
generated by GNU Autoconf 2.65. Invocation command line was
16038
CONFIG_FILES = $CONFIG_FILES
16039
CONFIG_HEADERS = $CONFIG_HEADERS
16040
CONFIG_LINKS = $CONFIG_LINKS
16041
CONFIG_COMMANDS = $CONFIG_COMMANDS
16044
on `(hostname || uname -n) 2>/dev/null | sed 1q`
16049
case $ac_config_files in *"
16050
"*) set x $ac_config_files; shift; ac_config_files=$*;;
16053
case $ac_config_headers in *"
16054
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16058
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16059
# Files that config.status was made for.
16060
config_files="$ac_config_files"
16061
config_headers="$ac_config_headers"
16062
config_commands="$ac_config_commands"
16066
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16068
\`$as_me' instantiates files and other configuration actions
16069
from templates according to the current configuration. Unless the files
16070
and actions are specified as TAGs, all are instantiated by default.
16072
Usage: $0 [OPTION]... [TAG]...
16074
-h, --help print this help, then exit
16075
-V, --version print version number and configuration settings, then exit
16076
--config print configuration, then exit
16077
-q, --quiet, --silent
16078
do not print progress messages
16079
-d, --debug don't remove temporary files
16080
--recheck update $as_me by reconfiguring in the same conditions
16081
--file=FILE[:TEMPLATE]
16082
instantiate the configuration file FILE
16083
--header=FILE[:TEMPLATE]
16084
instantiate the configuration header FILE
16086
Configuration files:
16089
Configuration headers:
16092
Configuration commands:
16095
Report bugs to <t-tujikawa@users.sourceforge.net>.
16096
aria2 home page: <http://aria2.sourceforge.net/>."
16099
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16100
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16102
aria2 config.status 1.10.0
16103
configured by $0, generated by GNU Autoconf 2.65,
16104
with options \\"\$ac_cs_config\\"
16106
Copyright (C) 2009 Free Software Foundation, Inc.
16107
This config.status script is free software; the Free Software Foundation
16108
gives unlimited permission to copy, distribute and modify it."
16115
test -n "\$AWK" || AWK=awk
16118
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16119
# The default lists apply if the user does not specify any file.
16125
ac_option=`expr "X$1" : 'X\([^=]*\)='`
16126
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16137
# Handling of the options.
16138
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16140
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16141
$as_echo "$ac_cs_version"; exit ;;
16142
--config | --confi | --conf | --con | --co | --c )
16143
$as_echo "$ac_cs_config"; exit ;;
16144
--debug | --debu | --deb | --de | --d | -d )
16146
--file | --fil | --fi | --f )
16149
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16151
as_fn_append CONFIG_FILES " '$ac_optarg'"
16152
ac_need_defaults=false;;
16153
--header | --heade | --head | --hea )
16156
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16158
as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16159
ac_need_defaults=false;;
16161
# Conflict between --help and --header
16162
as_fn_error "ambiguous option: \`$1'
16163
Try \`$0 --help' for more information.";;
16164
--help | --hel | -h )
16165
$as_echo "$ac_cs_usage"; exit ;;
16166
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
16167
| -silent | --silent | --silen | --sile | --sil | --si | --s)
16170
# This is an error.
16171
-*) as_fn_error "unrecognized option: \`$1'
16172
Try \`$0 --help' for more information." ;;
16174
*) as_fn_append ac_config_targets " $1"
16175
ac_need_defaults=false ;;
16181
ac_configure_extra_args=
16183
if $ac_cs_silent; then
16185
ac_configure_extra_args="$ac_configure_extra_args --silent"
16189
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16190
if \$ac_cs_recheck; then
16191
set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16193
\$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16194
CONFIG_SHELL='$SHELL'
16195
export CONFIG_SHELL
16200
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16204
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16205
## Running $as_me. ##
16211
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16215
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16216
# Capture the value of obsolete ALL_LINGUAS because we need it to compute
16217
# POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
16218
# from automake < 1.5.
16219
eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
16220
# Capture the value of LINGUAS because we need it to compute CATALOGS.
16221
LINGUAS="${LINGUAS-%UNSET%}"
16226
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16228
# Handling of arguments.
16229
for ac_config_target in $ac_config_targets
16231
case $ac_config_target in
16232
"config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16233
"depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16234
"po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
16235
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16236
"src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16237
"test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
16238
"po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
16239
"intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
16240
"lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
16241
"doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16243
*) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16248
# If the user did not use the arguments to specify the items to instantiate,
16249
# then the envvar interface is used. Set only those that are not.
16250
# We use the long form for the default assignment because of an extremely
16251
# bizarre bug on SunOS 4.1.3.
16252
if $ac_need_defaults; then
16253
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16254
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16255
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16258
# Have a temporary directory for convenience. Make it in the build tree
16259
# simply because there is no reason against having it here, and in addition,
16260
# creating and moving files from /tmp can sometimes cause problems.
16261
# Hook for its removal unless debugging.
16262
# Note that there is a small window in which the directory will not be cleaned:
16263
# after its creation but before its name has been assigned to `$tmp'.
16267
trap 'exit_status=$?
16268
{ test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16270
trap 'as_fn_exit 1' 1 2 13 15
16272
# Create a (secure) tmp directory for tmp files.
16275
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16276
test -n "$tmp" && test -d "$tmp"
16279
tmp=./conf$$-$RANDOM
16280
(umask 077 && mkdir "$tmp")
16281
} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16283
# Set up the scripts for CONFIG_FILES section.
16284
# No need to generate them if there are no CONFIG_FILES.
16285
# This happens for instance with `./config.status config.h'.
16286
if test -n "$CONFIG_FILES"; then
16289
ac_cr=`echo X | tr X '\015'`
16290
# On cygwin, bash can eat \r inside `` if the user requested igncr.
16291
# But we know of no other shell where ac_cr would be empty at this
16292
# point, so we can use a bashism as a fallback.
16293
if test "x$ac_cr" = x; then
16294
eval ac_cr=\$\'\\r\'
16296
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16297
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16300
ac_cs_awk_cr=$ac_cr
16303
echo 'BEGIN {' >"$tmp/subs1.awk" &&
16308
echo "cat >conf$$subs.awk <<_ACEOF" &&
16309
echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16311
} >conf$$subs.sh ||
16312
as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16313
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16315
for ac_last_try in false false false false false :; do
16316
. ./conf$$subs.sh ||
16317
as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16319
ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16320
if test $ac_delim_n = $ac_delim_num; then
16322
elif $ac_last_try; then
16323
as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16325
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16328
rm -f conf$$subs.sh
16330
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16331
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16335
s/^/S["/; s/!.*/"]=/
16345
s/\(.\{148\}\)..*/\1/
16347
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16352
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16359
s/\(.\{148\}\)..*/\1/
16361
s/["\\]/\\&/g; s/^/"/; s/$/"/
16365
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16370
' <conf$$subs.awk | sed '
16375
' >>$CONFIG_STATUS || ac_write_fail=1
16376
rm -f conf$$subs.awk
16377
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16379
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16380
for (key in S) S_is_set[key] = 1
16386
nfields = split(line, field, "@")
16388
len = length(field[1])
16389
for (i = 2; i < nfields; i++) {
16391
keylen = length(key)
16392
if (S_is_set[key]) {
16394
line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16395
len += length(value) + length(field[++i])
16406
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16407
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16408
sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16411
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16412
|| as_fn_error "could not setup config files machinery" "$LINENO" 5
16415
# VPATH may cause trouble with some makes, so we remove $(srcdir),
16416
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16417
# trailing colons and then remove the whole line if VPATH becomes empty
16418
# (actually we leave an empty line to preserve line numbers).
16419
if test "x$srcdir" = x.; then
16420
ac_vpsub='/^[ ]*VPATH[ ]*=/{
16421
s/:*\$(srcdir):*/:/
16422
s/:*\${srcdir}:*/:/
16424
s/^\([^=]*=[ ]*\):*/\1/
16430
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16431
fi # test -n "$CONFIG_FILES"
16433
# Set up the scripts for CONFIG_HEADERS section.
16434
# No need to generate them if there are no CONFIG_HEADERS.
16435
# This happens for instance with `./config.status Makefile'.
16436
if test -n "$CONFIG_HEADERS"; then
16437
cat >"$tmp/defines.awk" <<\_ACAWK ||
16441
# Transform confdefs.h into an awk script `defines.awk', embedded as
16442
# here-document in config.status, that substitutes the proper values into
16443
# config.h.in to produce config.h.
16445
# Create a delimiter string that does not exist in confdefs.h, to ease
16446
# handling of long lines.
16448
for ac_last_try in false false :; do
16449
ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16450
if test -z "$ac_t"; then
16452
elif $ac_last_try; then
16453
as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16455
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16459
# For the awk script, D is an array of macro values keyed by name,
16460
# likewise P contains macro parameters if any. Preserve backslash
16461
# newline sequences.
16463
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16465
s/.\{148\}/&'"$ac_delim"'/g
16468
s/^[ ]*#[ ]*define[ ][ ]*/ /
16475
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16477
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16481
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16482
D["\1"]=" \3\\\\\\n"\\/p
16484
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16489
s/.\{148\}/&'"$ac_delim"'/g
16494
s/["\\]/\\&/g; s/^/"/; s/$/"/p
16497
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16499
' <confdefs.h | sed '
16500
s/'"$ac_delim"'/"\\\
16501
"/g' >>$CONFIG_STATUS || ac_write_fail=1
16503
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16504
for (key in D) D_is_set[key] = 1
16507
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16509
split(line, arg, " ")
16510
if (arg[1] == "#") {
16514
defundef = substr(arg[1], 2)
16517
split(mac1, mac2, "(") #)
16519
prefix = substr(line, 1, index(line, defundef) - 1)
16520
if (D_is_set[macro]) {
16521
# Preserve the white space surrounding the "#".
16522
print prefix "define", macro P[macro] D[macro]
16525
# Replace #undef with comments. This is necessary, for example,
16526
# in the case of _POSIX_SOURCE, which is predefined and required
16527
# on some systems where configure will not decide to define it.
16528
if (defundef == "undef") {
16529
print "/*", prefix defundef, macro, "*/"
16537
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16538
as_fn_error "could not setup config headers machinery" "$LINENO" 5
16539
fi # test -n "$CONFIG_HEADERS"
16542
eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16547
:[FHLC]) ac_mode=$ac_tag; continue;;
16549
case $ac_mode$ac_tag in
16551
:L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16552
:[FH]-) ac_tag=-:-;;
16553
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16570
-) ac_f="$tmp/stdin";;
16571
*) # Look for the file first in the build tree, then in the source tree
16572
# (if the path is not absolute). The absolute path cannot be DOS-style,
16573
# because $ac_f cannot contain `:'.
16577
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16579
as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16581
case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16582
as_fn_append ac_file_inputs " '$ac_f'"
16585
# Let's still pretend it is `configure' which instantiates (i.e., don't
16586
# use $as_me), people would be surprised to read:
16587
# /* config.h. Generated by config.status. */
16588
configure_input='Generated from '`
16589
$as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16591
if test x"$ac_file" != x-; then
16592
configure_input="$ac_file. $configure_input"
16593
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16594
$as_echo "$as_me: creating $ac_file" >&6;}
16596
# Neutralize special characters interpreted by sed in replacement strings.
16597
case $configure_input in #(
16598
*\&* | *\|* | *\\* )
16599
ac_sed_conf_input=`$as_echo "$configure_input" |
16600
sed 's/[\\\\&|]/\\\\&/g'`;; #(
16601
*) ac_sed_conf_input=$configure_input;;
16605
*:-:* | *:-) cat >"$tmp/stdin" \
16606
|| as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16611
ac_dir=`$as_dirname -- "$ac_file" ||
16612
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16613
X"$ac_file" : 'X\(//\)[^/]' \| \
16614
X"$ac_file" : 'X\(//\)$' \| \
16615
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16616
$as_echo X"$ac_file" |
16617
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16621
/^X\(\/\/\)[^/].*/{
16634
as_dir="$ac_dir"; as_fn_mkdir_p
16638
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16640
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16641
# A ".." for each directory in $ac_dir_suffix.
16642
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16643
case $ac_top_builddir_sub in
16644
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16645
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16648
ac_abs_top_builddir=$ac_pwd
16649
ac_abs_builddir=$ac_pwd$ac_dir_suffix
16650
# for backward compatibility:
16651
ac_top_builddir=$ac_top_build_prefix
16654
.) # We are building in place.
16656
ac_top_srcdir=$ac_top_builddir_sub
16657
ac_abs_top_srcdir=$ac_pwd ;;
16658
[\\/]* | ?:[\\/]* ) # Absolute name.
16659
ac_srcdir=$srcdir$ac_dir_suffix;
16660
ac_top_srcdir=$srcdir
16661
ac_abs_top_srcdir=$srcdir ;;
16662
*) # Relative name.
16663
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16664
ac_top_srcdir=$ac_top_build_prefix$srcdir
16665
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16667
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16677
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16678
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16680
ac_MKDIR_P=$MKDIR_P
16682
[\\/$]* | ?:[\\/]* ) ;;
16683
*/*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16687
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16688
# If the template does not know about datarootdir, expand it.
16689
# FIXME: This hack should be removed a few years after 2.60.
16690
ac_datarootdir_hack=; ac_datarootdir_seen=
16701
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16702
*datarootdir*) ac_datarootdir_seen=yes;;
16703
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16704
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16705
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16707
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16708
ac_datarootdir_hack='
16709
s&@datadir@&$datadir&g
16710
s&@docdir@&$docdir&g
16711
s&@infodir@&$infodir&g
16712
s&@localedir@&$localedir&g
16713
s&@mandir@&$mandir&g
16714
s&\\\${datarootdir}&$datarootdir&g' ;;
16718
# Neutralize VPATH when `$srcdir' = `.'.
16719
# Shell code in configure.ac might set extrasub.
16720
# FIXME: do we really want to maintain this feature?
16721
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16722
ac_sed_extra="$ac_vpsub
16725
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16727
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16728
s|@configure_input@|$ac_sed_conf_input|;t t
16729
s&@top_builddir@&$ac_top_builddir_sub&;t t
16730
s&@top_build_prefix@&$ac_top_build_prefix&;t t
16731
s&@srcdir@&$ac_srcdir&;t t
16732
s&@abs_srcdir@&$ac_abs_srcdir&;t t
16733
s&@top_srcdir@&$ac_top_srcdir&;t t
16734
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16735
s&@builddir@&$ac_builddir&;t t
16736
s&@abs_builddir@&$ac_abs_builddir&;t t
16737
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16738
s&@INSTALL@&$ac_INSTALL&;t t
16739
s&@MKDIR_P@&$ac_MKDIR_P&;t t
16740
$ac_datarootdir_hack
16742
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16743
|| as_fn_error "could not create $ac_file" "$LINENO" 5
16745
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16746
{ ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16747
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16748
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16749
which seems to be undefined. Please make sure it is defined." >&5
16750
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16751
which seems to be undefined. Please make sure it is defined." >&2;}
16755
-) cat "$tmp/out" && rm -f "$tmp/out";;
16756
*) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16758
|| as_fn_error "could not create $ac_file" "$LINENO" 5
16764
if test x"$ac_file" != x-; then
16766
$as_echo "/* $configure_input */" \
16767
&& eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16768
} >"$tmp/config.h" \
16769
|| as_fn_error "could not create $ac_file" "$LINENO" 5
16770
if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16771
{ $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16772
$as_echo "$as_me: $ac_file is unchanged" >&6;}
16775
mv "$tmp/config.h" "$ac_file" \
16776
|| as_fn_error "could not create $ac_file" "$LINENO" 5
16779
$as_echo "/* $configure_input */" \
16780
&& eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16781
|| as_fn_error "could not create -" "$LINENO" 5
16783
# Compute "$ac_file"'s index in $config_headers.
16786
for _am_header in $config_headers :; do
16787
case $_am_header in
16788
$_am_arg | $_am_arg:* )
16791
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
16794
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16795
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16796
X"$_am_arg" : 'X\(//\)[^/]' \| \
16797
X"$_am_arg" : 'X\(//\)$' \| \
16798
X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16799
$as_echo X"$_am_arg" |
16800
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16804
/^X\(\/\/\)[^/].*/{
16816
s/.*/./; q'`/stamp-h$_am_stamp_count
16819
:C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16820
$as_echo "$as_me: executing $ac_file commands" >&6;}
16825
case $ac_file$ac_mode in
16826
"depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16827
# Autoconf 2.62 quotes --file arguments for eval, but not when files
16828
# are listed without --file. Let's play safe and only enable the eval
16829
# if we detect the quoting.
16830
case $CONFIG_FILES in
16831
*\'*) eval set x "$CONFIG_FILES" ;;
16832
*) set x $CONFIG_FILES ;;
16837
# Strip MF so we end up with the name of the file.
16838
mf=`echo "$mf" | sed -e 's/:.*$//'`
16839
# Check whether this is an Automake generated Makefile or not.
16840
# We used to match only the files named `Makefile.in', but
16841
# some people rename them; so instead we look at the file content.
16842
# Grep'ing the first line is not enough: some people post-process
16843
# each Makefile.in and add a new line on top of each file to say so.
16844
# Grep'ing the whole file is not good either: AIX grep has a line
16845
# limit of 2048, but all sed's we know have understand at least 4000.
16846
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16847
dirpart=`$as_dirname -- "$mf" ||
16848
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16849
X"$mf" : 'X\(//\)[^/]' \| \
16850
X"$mf" : 'X\(//\)$' \| \
16851
X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16853
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16857
/^X\(\/\/\)[^/].*/{
16873
# Extract the definition of DEPDIR, am__include, and am__quote
16874
# from the Makefile without running `make'.
16875
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16876
test -z "$DEPDIR" && continue
16877
am__include=`sed -n 's/^am__include = //p' < "$mf"`
16878
test -z "am__include" && continue
16879
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16880
# When using ansi2knr, U may be empty or an underscore; expand it
16881
U=`sed -n 's/^U = //p' < "$mf"`
16882
# Find all dependency output files, they are included files with
16883
# $(DEPDIR) in their names. We invoke sed twice because it is the
16884
# simplest approach to changing $(DEPDIR) to its actual value in the
16886
for file in `sed -n "
16887
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16888
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16889
# Make sure the directory exists.
16890
test -f "$dirpart/$file" && continue
16891
fdir=`$as_dirname -- "$file" ||
16892
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16893
X"$file" : 'X\(//\)[^/]' \| \
16894
X"$file" : 'X\(//\)$' \| \
16895
X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16896
$as_echo X"$file" |
16897
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16901
/^X\(\/\/\)[^/].*/{
16914
as_dir=$dirpart/$fdir; as_fn_mkdir_p
16915
# echo "creating $dirpart/$file"
16916
echo '# dummy' > "$dirpart/$file"
16921
"po-directories":C)
16922
for ac_file in $CONFIG_FILES; do
16923
# Support "outfile[:infile[:infile...]]"
16925
*:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16927
# PO directories have a Makefile.in generated from Makefile.in.in.
16928
case "$ac_file" in */Makefile.in)
16929
# Adjust a relative srcdir.
16930
ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16931
ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16932
ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16933
# In autoconf-2.13 it is called $ac_given_srcdir.
16934
# In autoconf-2.50 it is called $srcdir.
16935
test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16936
case "$ac_given_srcdir" in
16937
.) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16938
/*) top_srcdir="$ac_given_srcdir" ;;
16939
*) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16941
# Treat a directory as a PO directory if and only if it has a
16942
# POTFILES.in file. This allows packages to have multiple PO
16943
# directories under different names or in different locations.
16944
if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16945
rm -f "$ac_dir/POTFILES"
16946
test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16947
cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
16948
POMAKEFILEDEPS="POTFILES.in"
16949
# ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
16950
# on $ac_dir but don't depend on user-specified configuration
16952
if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16953
# The LINGUAS file contains the set of available languages.
16954
if test -n "$OBSOLETE_ALL_LINGUAS"; then
16955
test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16957
ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16958
# Hide the ALL_LINGUAS assigment from automake < 1.5.
16959
eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16960
POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16962
# The set of available languages was given in configure.in.
16963
# Hide the ALL_LINGUAS assigment from automake < 1.5.
16964
eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
16967
# as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
16968
# Compute UPDATEPOFILES
16969
# as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
16970
# Compute DUMMYPOFILES
16971
# as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
16973
# as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
16974
case "$ac_given_srcdir" in
16976
*) srcdirpre='$(srcdir)/' ;;
16982
for lang in $ALL_LINGUAS; do
16983
POFILES="$POFILES $srcdirpre$lang.po"
16984
UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16985
DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
16986
GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
16988
# CATALOGS depends on both $ac_dir and the user's LINGUAS
16989
# environment variable.
16991
if test -n "$ALL_LINGUAS"; then
16992
for presentlang in $ALL_LINGUAS; do
16994
if test "%UNSET%" != "$LINGUAS"; then
16995
desiredlanguages="$LINGUAS"
16997
desiredlanguages="$ALL_LINGUAS"
16999
for desiredlang in $desiredlanguages; do
17000
# Use the presentlang catalog if desiredlang is
17001
# a. equal to presentlang, or
17002
# b. a variant of presentlang (because in this case,
17003
# presentlang can be used as a fallback for messages
17004
# which are not translated in the desiredlang catalog).
17005
case "$desiredlang" in
17006
"$presentlang"*) useit=yes;;
17009
if test $useit = yes; then
17010
INST_LINGUAS="$INST_LINGUAS $presentlang"
17015
if test -n "$INST_LINGUAS"; then
17016
for lang in $INST_LINGUAS; do
17017
CATALOGS="$CATALOGS $lang.gmo"
17020
test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
17021
sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
17022
for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
17023
if test -f "$f"; then
17025
*.orig | *.bak | *~) ;;
17026
*) cat "$f" >> "$ac_dir/Makefile" ;;
17041
ac_clean_files=$ac_clean_files_save
17043
test $ac_write_fail = 0 ||
17044
as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17047
# configure is writing to config.log, and then calls config.status.
17048
# config.status does its own redirection, appending to config.log.
17049
# Unfortunately, on DOS this fails, as config.log is still kept open
17050
# by configure, so config.status won't be able to write to it; its
17051
# output is simply discarded. So we exec the FD to /dev/null,
17052
# effectively closing config.log, so it can be properly (re)opened and
17053
# appended to by config.status. When coming back to configure, we
17054
# need to make the FD available again.
17055
if test "$no_create" != yes; then
17057
ac_config_status_args=
17058
test "$silent" = yes &&
17059
ac_config_status_args="$ac_config_status_args --quiet"
17061
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17063
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
17064
# would make configure fail if this is the last instruction.
17065
$ac_cs_success || as_fn_exit $?
17067
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17068
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17069
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17074
echo "Build: $build"
17075
echo "Target: $target"
17076
echo "Install prefix: $prefix"
17077
echo "CXXFLAGS: $CXXFLAGS"
17078
echo "CFLAGS: $CFLAGS"
17079
echo "CPPFLAGS: $CPPFLAGS"
17080
echo "LDFLAGS: $LDFLAGS"
17082
echo "SQLite3: $have_sqlite3"
17083
echo "GnuTLS: $have_libgnutls"
17084
echo "OpenSSL: $have_openssl"
17085
echo "CA Bundle: $ca_bundle"
17086
echo "LibXML2: $have_libxml2"
17087
echo "LibExpat: $have_libexpat"
17088
echo "LibCares: $have_libcares"
17089
echo "Libz: $have_libz"
17090
echo "Epoll: $have_epoll"
17091
echo "Bittorrent: $enable_bittorrent"
17092
echo "Metalink: $enable_metalink"
17093
echo "XML-RPC: $enable_xml_rpc"