2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 case \`(set -o) 2>/dev/null\` in #(
154 as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168 exitcode=1; echo positional parameters were not saved.
170 test x\$exitcode = x0 || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test \$(( 1 + 1 )) = 2 || exit 1"
176 if (eval "$as_required") 2>/dev/null; then :
181 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189 test -z "$as_dir" && as_dir=.
193 for as_base in sh bash ksh sh5; do
194 # Try only shells that exist, to save several forks.
195 as_shell=$as_dir/$as_base
196 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
197 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
198 CONFIG_SHELL=$as_shell as_have_required=yes
199 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
207 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
208 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
209 CONFIG_SHELL=$SHELL as_have_required=yes
214 if test "x$CONFIG_SHELL" != x; then :
215 # We cannot yet assume a decent shell, so we have to provide a
216 # neutralization value for shells without unset; and this also
217 # works around shells that cannot unset nonexistent variables.
218 # Preserve -v and -x to the replacement shell.
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224 *v*x* | *x*v* ) as_opts=-vx ;;
229 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232 if test x$as_have_required = xno; then :
233 $as_echo "$0: This script requires a shell more modern than all"
234 $as_echo "$0: the shells that I found on your system."
235 if test x${ZSH_VERSION+set} = xset ; then
236 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
239 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
240 $0: including any error possibly output before this
241 $0: message. Then install a modern shell, or manually run
242 $0: the script under such a shell if you do have one."
248 SHELL=${CONFIG_SHELL-/bin/sh}
250 # Unset more variables known to interfere with behavior of common tools.
251 CLICOLOR_FORCE= GREP_OPTIONS=
252 unset CLICOLOR_FORCE GREP_OPTIONS
254 ## --------------------- ##
255 ## M4sh Shell Functions. ##
256 ## --------------------- ##
259 # Portably unset VAR.
262 { eval $1=; unset $1;}
266 # as_fn_set_status STATUS
267 # -----------------------
268 # Set $? to STATUS, without forking.
276 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
286 # Create "$as_dir" as a directory, including parents if necessary.
291 -*) as_dir=./$as_dir;;
293 test -d "$as_dir" || eval $as_mkdir_p || {
297 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
300 as_dirs="'$as_qdir' $as_dirs"
301 as_dir=`$as_dirname -- "$as_dir" ||
302 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303 X"$as_dir" : 'X\(//\)[^/]' \| \
304 X"$as_dir" : 'X\(//\)$' \| \
305 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306 $as_echo X"$as_dir" |
307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
324 test -d "$as_dir" && break
326 test -z "$as_dirs" || eval "mkdir $as_dirs"
327 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
331 # as_fn_append VAR VALUE
332 # ----------------------
333 # Append the text in VALUE to the end of the definition contained in VAR. Take
334 # advantage of any shell optimizations that allow amortized linear growth over
335 # repeated appends, instead of the typical quadratic growth present in naive
337 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
338 eval 'as_fn_append ()
351 # Perform arithmetic evaluation on the ARGs, and store the result in the
352 # global $as_val. Take advantage of shells that can avoid forks. The arguments
353 # must be portable across $(()) and expr.
354 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
362 as_val=`expr "$@" || test $? -eq 1`
367 # as_fn_error STATUS ERROR [LINENO LOG_FD]
368 # ----------------------------------------
369 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
371 # script with STATUS, using 1 if that was 0.
374 as_status=$1; test $as_status -eq 0 && as_status=1
376 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
377 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
379 $as_echo "$as_me: error: $2" >&2
380 as_fn_exit $as_status
383 if expr a : '\(a\)' >/dev/null 2>&1 &&
384 test "X`expr 00001 : '.*\(...\)'`" = X001; then
390 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
396 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
402 as_me=`$as_basename -- "$0" ||
403 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404 X"$0" : 'X\(//\)$' \| \
405 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
407 sed '/^.*\/\([^/][^/]*\)\/*$/{
421 # Avoid depending upon Character Ranges.
422 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
423 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
425 as_cr_digits='0123456789'
426 as_cr_alnum=$as_cr_Letters$as_cr_digits
429 as_lineno_1=$LINENO as_lineno_1a=$LINENO
430 as_lineno_2=$LINENO as_lineno_2a=$LINENO
431 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
432 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
433 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449 chmod +x "$as_me.lineno" ||
450 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
452 # Don't try to exec as it changes $[0], causing all sort of problems
453 # (the dirname of $[0] is not the place where we might find the
454 # original and so on. Autoconf is especially sensitive to this).
456 # Exit status is that of the last command.
460 ECHO_C= ECHO_N= ECHO_T=
461 case `echo -n x` in #(((((
463 case `echo 'xy\c'` in
464 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
466 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
473 rm -f conf$$ conf$$.exe conf$$.file
474 if test -d conf$$.dir; then
475 rm -f conf$$.dir/conf$$.file
478 mkdir conf$$.dir 2>/dev/null
480 if (echo >conf$$.file) 2>/dev/null; then
481 if ln -s conf$$.file conf$$ 2>/dev/null; then
483 # ... but there are two gotchas:
484 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486 # In both cases, we have to default to `cp -p'.
487 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
489 elif ln conf$$.file conf$$ 2>/dev/null; then
497 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
498 rmdir conf$$.dir 2>/dev/null
500 if mkdir -p . 2>/dev/null; then
501 as_mkdir_p='mkdir -p "$as_dir"'
503 test -d ./-p && rmdir ./-p
507 if test -x / >/dev/null 2>&1; then
510 if ls -dL / >/dev/null 2>&1; then
517 if test -d "$1"; then
523 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524 ???[sx]*):;;*)false;;esac;fi
528 as_executable_p=$as_test_x
530 # Sed expression to map a string onto a valid CPP name.
531 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533 # Sed expression to map a string onto a valid variable name.
534 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
537 test -n "$DJDIR" || exec 7<&0 </dev/null
541 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
542 # so uname gets run too.
543 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
548 ac_default_prefix=/usr/local
550 ac_config_libobj_dir=.
557 # Identity of this package.
565 ac_unique_file="abook.c"
566 # Factoring default headers for most tests.
567 ac_includes_default="\
569 #ifdef HAVE_SYS_TYPES_H
570 # include <sys/types.h>
572 #ifdef HAVE_SYS_STAT_H
573 # include <sys/stat.h>
579 # ifdef HAVE_STDLIB_H
584 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
589 #ifdef HAVE_STRINGS_H
590 # include <strings.h>
592 #ifdef HAVE_INTTYPES_H
593 # include <inttypes.h>
604 gl_use_threads_default=
605 ac_subst_vars='am__EXEEXT_FALSE
609 ENABLE_VFORMAT_SUPPORT_FALSE
610 ENABLE_VFORMAT_SUPPORT_TRUE
613 USE_INCLUDED_INTL_H_FALSE
614 USE_INCLUDED_INTL_H_TRUE
619 INTL_LIBTOOL_SUFFIX_PREFIX
626 BUILD_INCLUDED_LIBINTL
636 INTL_DEFAULT_VERBOSITY
663 XGETTEXT_EXTRA_OPTIONS
671 GETTEXT_MACRO_VERSION
701 INSTALL_STRIP_PROGRAM
743 program_transform_name
756 enable_option_checking
757 enable_dependency_tracking
764 with_included_gettext
772 ac_precious_vars='build_alias
783 # Initialize some variables set by options.
785 ac_init_version=false
786 ac_unrecognized_opts=
788 # The variables have the same names as the options, with
789 # dashes changed to underlines.
797 program_transform_name=s,x,x,
805 # Installation directory options.
806 # These are left unexpanded so users can "make install exec_prefix=/foo"
807 # and all the variables that are supposed to be based on exec_prefix
808 # by default will actually change.
809 # Use braces instead of parens because sh, perl, etc. also accept them.
810 # (The list follows the same order as the GNU Coding Standards.)
811 bindir='${exec_prefix}/bin'
812 sbindir='${exec_prefix}/sbin'
813 libexecdir='${exec_prefix}/libexec'
814 datarootdir='${prefix}/share'
815 datadir='${datarootdir}'
816 sysconfdir='${prefix}/etc'
817 sharedstatedir='${prefix}/com'
818 localstatedir='${prefix}/var'
819 includedir='${prefix}/include'
820 oldincludedir='/usr/include'
821 docdir='${datarootdir}/doc/${PACKAGE}'
822 infodir='${datarootdir}/info'
827 libdir='${exec_prefix}/lib'
828 localedir='${datarootdir}/locale'
829 mandir='${datarootdir}/man'
835 # If the previous option needs an argument, assign it.
836 if test -n "$ac_prev"; then
837 eval $ac_prev=\$ac_option
843 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
848 # Accept the important Cygnus configure options, so we can diagnose typos.
850 case $ac_dashdash$ac_option in
854 -bindir | --bindir | --bindi | --bind | --bin | --bi)
856 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
859 -build | --build | --buil | --bui | --bu)
860 ac_prev=build_alias ;;
861 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
862 build_alias=$ac_optarg ;;
864 -cache-file | --cache-file | --cache-fil | --cache-fi \
865 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
866 ac_prev=cache_file ;;
867 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
868 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
869 cache_file=$ac_optarg ;;
872 cache_file=config.cache ;;
874 -datadir | --datadir | --datadi | --datad)
876 -datadir=* | --datadir=* | --datadi=* | --datad=*)
877 datadir=$ac_optarg ;;
879 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
880 | --dataroo | --dataro | --datar)
881 ac_prev=datarootdir ;;
882 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
883 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
884 datarootdir=$ac_optarg ;;
886 -disable-* | --disable-*)
887 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
888 # Reject names that are not valid shell variable names.
889 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
890 as_fn_error $? "invalid feature name: $ac_useropt"
891 ac_useropt_orig=$ac_useropt
892 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
893 case $ac_user_opts in
897 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
898 ac_unrecognized_sep=', ';;
900 eval enable_$ac_useropt=no ;;
902 -docdir | --docdir | --docdi | --doc | --do)
904 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
907 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
909 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
912 -enable-* | --enable-*)
913 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
914 # Reject names that are not valid shell variable names.
915 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
916 as_fn_error $? "invalid feature name: $ac_useropt"
917 ac_useropt_orig=$ac_useropt
918 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
919 case $ac_user_opts in
923 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
924 ac_unrecognized_sep=', ';;
926 eval enable_$ac_useropt=\$ac_optarg ;;
928 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
929 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
930 | --exec | --exe | --ex)
931 ac_prev=exec_prefix ;;
932 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
933 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
934 | --exec=* | --exe=* | --ex=*)
935 exec_prefix=$ac_optarg ;;
937 -gas | --gas | --ga | --g)
938 # Obsolete; use --with-gas.
941 -help | --help | --hel | --he | -h)
943 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
944 ac_init_help=recursive ;;
945 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
946 ac_init_help=short ;;
948 -host | --host | --hos | --ho)
949 ac_prev=host_alias ;;
950 -host=* | --host=* | --hos=* | --ho=*)
951 host_alias=$ac_optarg ;;
953 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
955 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
957 htmldir=$ac_optarg ;;
959 -includedir | --includedir | --includedi | --included | --include \
960 | --includ | --inclu | --incl | --inc)
961 ac_prev=includedir ;;
962 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
963 | --includ=* | --inclu=* | --incl=* | --inc=*)
964 includedir=$ac_optarg ;;
966 -infodir | --infodir | --infodi | --infod | --info | --inf)
968 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
969 infodir=$ac_optarg ;;
971 -libdir | --libdir | --libdi | --libd)
973 -libdir=* | --libdir=* | --libdi=* | --libd=*)
976 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
977 | --libexe | --libex | --libe)
978 ac_prev=libexecdir ;;
979 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
980 | --libexe=* | --libex=* | --libe=*)
981 libexecdir=$ac_optarg ;;
983 -localedir | --localedir | --localedi | --localed | --locale)
985 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
986 localedir=$ac_optarg ;;
988 -localstatedir | --localstatedir | --localstatedi | --localstated \
989 | --localstate | --localstat | --localsta | --localst | --locals)
990 ac_prev=localstatedir ;;
991 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
992 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
993 localstatedir=$ac_optarg ;;
995 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
997 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1000 -nfp | --nfp | --nf)
1001 # Obsolete; use --without-fp.
1004 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1005 | --no-cr | --no-c | -n)
1008 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1009 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1012 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1013 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1014 | --oldin | --oldi | --old | --ol | --o)
1015 ac_prev=oldincludedir ;;
1016 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1017 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1018 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1019 oldincludedir=$ac_optarg ;;
1021 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1023 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1024 prefix=$ac_optarg ;;
1026 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1027 | --program-pre | --program-pr | --program-p)
1028 ac_prev=program_prefix ;;
1029 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1030 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1031 program_prefix=$ac_optarg ;;
1033 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1034 | --program-suf | --program-su | --program-s)
1035 ac_prev=program_suffix ;;
1036 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1037 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1038 program_suffix=$ac_optarg ;;
1040 -program-transform-name | --program-transform-name \
1041 | --program-transform-nam | --program-transform-na \
1042 | --program-transform-n | --program-transform- \
1043 | --program-transform | --program-transfor \
1044 | --program-transfo | --program-transf \
1045 | --program-trans | --program-tran \
1046 | --progr-tra | --program-tr | --program-t)
1047 ac_prev=program_transform_name ;;
1048 -program-transform-name=* | --program-transform-name=* \
1049 | --program-transform-nam=* | --program-transform-na=* \
1050 | --program-transform-n=* | --program-transform-=* \
1051 | --program-transform=* | --program-transfor=* \
1052 | --program-transfo=* | --program-transf=* \
1053 | --program-trans=* | --program-tran=* \
1054 | --progr-tra=* | --program-tr=* | --program-t=*)
1055 program_transform_name=$ac_optarg ;;
1057 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1059 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1060 pdfdir=$ac_optarg ;;
1062 -psdir | --psdir | --psdi | --psd | --ps)
1064 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1067 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1068 | -silent | --silent | --silen | --sile | --sil)
1071 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1073 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1075 sbindir=$ac_optarg ;;
1077 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1078 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1079 | --sharedst | --shareds | --shared | --share | --shar \
1081 ac_prev=sharedstatedir ;;
1082 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1083 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1084 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1086 sharedstatedir=$ac_optarg ;;
1088 -site | --site | --sit)
1090 -site=* | --site=* | --sit=*)
1093 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1095 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1096 srcdir=$ac_optarg ;;
1098 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1099 | --syscon | --sysco | --sysc | --sys | --sy)
1100 ac_prev=sysconfdir ;;
1101 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1102 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1103 sysconfdir=$ac_optarg ;;
1105 -target | --target | --targe | --targ | --tar | --ta | --t)
1106 ac_prev=target_alias ;;
1107 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1108 target_alias=$ac_optarg ;;
1110 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1113 -version | --version | --versio | --versi | --vers | -V)
1114 ac_init_version=: ;;
1117 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1118 # Reject names that are not valid shell variable names.
1119 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1120 as_fn_error $? "invalid package name: $ac_useropt"
1121 ac_useropt_orig=$ac_useropt
1122 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1123 case $ac_user_opts in
1127 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1128 ac_unrecognized_sep=', ';;
1130 eval with_$ac_useropt=\$ac_optarg ;;
1132 -without-* | --without-*)
1133 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1134 # Reject names that are not valid shell variable names.
1135 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1136 as_fn_error $? "invalid package name: $ac_useropt"
1137 ac_useropt_orig=$ac_useropt
1138 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1139 case $ac_user_opts in
1143 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1144 ac_unrecognized_sep=', ';;
1146 eval with_$ac_useropt=no ;;
1149 # Obsolete; use --with-x.
1152 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1153 | --x-incl | --x-inc | --x-in | --x-i)
1154 ac_prev=x_includes ;;
1155 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1156 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1157 x_includes=$ac_optarg ;;
1159 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1160 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1161 ac_prev=x_libraries ;;
1162 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1163 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1164 x_libraries=$ac_optarg ;;
1166 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1167 Try \`$0 --help' for more information"
1171 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1172 # Reject names that are not valid shell variable names.
1173 case $ac_envvar in #(
1174 '' | [0-9]* | *[!_$as_cr_alnum]* )
1175 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1177 eval $ac_envvar=\$ac_optarg
1178 export $ac_envvar ;;
1181 # FIXME: should be removed in autoconf 3.0.
1182 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1183 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1184 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1185 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1191 if test -n "$ac_prev"; then
1192 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1193 as_fn_error $? "missing argument to $ac_option"
1196 if test -n "$ac_unrecognized_opts"; then
1197 case $enable_option_checking in
1199 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1200 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1204 # Check all directory arguments for consistency.
1205 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1206 datadir sysconfdir sharedstatedir localstatedir includedir \
1207 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1208 libdir localedir mandir
1210 eval ac_val=\$$ac_var
1211 # Remove trailing slashes.
1214 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1215 eval $ac_var=\$ac_val;;
1217 # Be sure to have absolute directory names.
1219 [\\/$]* | ?:[\\/]* ) continue;;
1220 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1222 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1225 # There might be people who depend on the old broken behavior: `$host'
1226 # used to hold the argument of --host etc.
1227 # FIXME: To remove some day.
1230 target=$target_alias
1232 # FIXME: To remove some day.
1233 if test "x$host_alias" != x; then
1234 if test "x$build_alias" = x; then
1235 cross_compiling=maybe
1236 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1237 If a cross compiler is detected then cross compile mode will be used" >&2
1238 elif test "x$build_alias" != "x$host_alias"; then
1244 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1246 test "$silent" = yes && exec 6>/dev/null
1249 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1250 ac_ls_di=`ls -di .` &&
1251 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1252 as_fn_error $? "working directory cannot be determined"
1253 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1254 as_fn_error $? "pwd does not report name of working directory"
1257 # Find the source files, if location was not specified.
1258 if test -z "$srcdir"; then
1259 ac_srcdir_defaulted=yes
1260 # Try the directory containing this script, then the parent directory.
1261 ac_confdir=`$as_dirname -- "$as_myself" ||
1262 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1263 X"$as_myself" : 'X\(//\)[^/]' \| \
1264 X"$as_myself" : 'X\(//\)$' \| \
1265 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1266 $as_echo X"$as_myself" |
1267 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1285 if test ! -r "$srcdir/$ac_unique_file"; then
1289 ac_srcdir_defaulted=no
1291 if test ! -r "$srcdir/$ac_unique_file"; then
1292 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1293 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1295 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1297 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1299 # When building in place, set srcdir=.
1300 if test "$ac_abs_confdir" = "$ac_pwd"; then
1303 # Remove unnecessary trailing slashes from srcdir.
1304 # Double slashes in file names in object file debugging info
1305 # mess up M-x gdb in Emacs.
1307 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1309 for ac_var in $ac_precious_vars; do
1310 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1311 eval ac_env_${ac_var}_value=\$${ac_var}
1312 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1313 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1317 # Report the --help message.
1319 if test "$ac_init_help" = "long"; then
1320 # Omit some internal or obsolete options to make the list less imposing.
1321 # This message is too long to be a string in the A/UX 3.1 sh.
1323 \`configure' configures this package to adapt to many kinds of systems.
1325 Usage: $0 [OPTION]... [VAR=VALUE]...
1327 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1328 VAR=VALUE. See below for descriptions of some of the useful variables.
1330 Defaults for the options are specified in brackets.
1333 -h, --help display this help and exit
1334 --help=short display options specific to this package
1335 --help=recursive display the short help of all the included packages
1336 -V, --version display version information and exit
1337 -q, --quiet, --silent do not print \`checking ...' messages
1338 --cache-file=FILE cache test results in FILE [disabled]
1339 -C, --config-cache alias for \`--cache-file=config.cache'
1340 -n, --no-create do not create output files
1341 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1343 Installation directories:
1344 --prefix=PREFIX install architecture-independent files in PREFIX
1345 [$ac_default_prefix]
1346 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1349 By default, \`make install' will install all the files in
1350 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1351 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1352 for instance \`--prefix=\$HOME'.
1354 For better control, use the options below.
1356 Fine tuning of the installation directories:
1357 --bindir=DIR user executables [EPREFIX/bin]
1358 --sbindir=DIR system admin executables [EPREFIX/sbin]
1359 --libexecdir=DIR program executables [EPREFIX/libexec]
1360 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1361 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1362 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1363 --libdir=DIR object code libraries [EPREFIX/lib]
1364 --includedir=DIR C header files [PREFIX/include]
1365 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1366 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1367 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1368 --infodir=DIR info documentation [DATAROOTDIR/info]
1369 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1370 --mandir=DIR man documentation [DATAROOTDIR/man]
1371 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1372 --htmldir=DIR html documentation [DOCDIR]
1373 --dvidir=DIR dvi documentation [DOCDIR]
1374 --pdfdir=DIR pdf documentation [DOCDIR]
1375 --psdir=DIR ps documentation [DOCDIR]
1381 --program-prefix=PREFIX prepend PREFIX to installed program names
1382 --program-suffix=SUFFIX append SUFFIX to installed program names
1383 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1386 --build=BUILD configure for building on BUILD [guessed]
1387 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1391 if test -n "$ac_init_help"; then
1396 --disable-option-checking ignore unrecognized --enable/--with options
1397 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1398 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1399 --disable-dependency-tracking speeds up one-time build
1400 --enable-dependency-tracking do not reject slow dependency extractors
1401 --disable-nls do not use Native Language Support
1402 --enable-threads={posix|solaris|pth|win32}
1403 specify multithreading API
1404 --disable-threads build without multithread safety
1405 --disable-rpath do not hardcode runtime library paths
1406 --enable-vformat Use libvformat is available
1407 --enable-debug Enable debugging support
1410 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1411 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1412 --with-gnu-ld assume the C compiler uses GNU ld default=no
1413 --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
1414 --without-libpth-prefix don't search for libpth in includedir and libdir
1415 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1416 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1417 --with-included-gettext use the GNU gettext library included here
1418 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1419 --without-libintl-prefix don't search for libintl in includedir and libdir
1420 --with-localedir=PATH Where the locale files are installed
1421 --with-curses=DIR Where ncurses is installed
1422 --with-readline=DIR Where readline is installed
1424 Some influential environment variables:
1425 CC C compiler command
1426 CFLAGS C compiler flags
1427 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1428 nonstandard directory <lib dir>
1429 LIBS libraries to pass to the linker, e.g. -l<library>
1430 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1431 you have headers in a nonstandard directory <include dir>
1434 Use these variables to override the choices made by `configure' or to help
1435 it to find libraries and programs with nonstandard names/locations.
1437 Report bugs to the package provider.
1442 if test "$ac_init_help" = "recursive"; then
1443 # If there are subdirs, report their specific --help.
1444 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1445 test -d "$ac_dir" ||
1446 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1451 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1453 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1454 # A ".." for each directory in $ac_dir_suffix.
1455 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1456 case $ac_top_builddir_sub in
1457 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1458 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1461 ac_abs_top_builddir=$ac_pwd
1462 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1463 # for backward compatibility:
1464 ac_top_builddir=$ac_top_build_prefix
1467 .) # We are building in place.
1469 ac_top_srcdir=$ac_top_builddir_sub
1470 ac_abs_top_srcdir=$ac_pwd ;;
1471 [\\/]* | ?:[\\/]* ) # Absolute name.
1472 ac_srcdir=$srcdir$ac_dir_suffix;
1473 ac_top_srcdir=$srcdir
1474 ac_abs_top_srcdir=$srcdir ;;
1476 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1477 ac_top_srcdir=$ac_top_build_prefix$srcdir
1478 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1480 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1482 cd "$ac_dir" || { ac_status=$?; continue; }
1483 # Check for guested configure.
1484 if test -f "$ac_srcdir/configure.gnu"; then
1486 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1487 elif test -f "$ac_srcdir/configure"; then
1489 $SHELL "$ac_srcdir/configure" --help=recursive
1491 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1493 cd "$ac_pwd" || { ac_status=$?; break; }
1497 test -n "$ac_init_help" && exit $ac_status
1498 if $ac_init_version; then
1501 generated by GNU Autoconf 2.68
1503 Copyright (C) 2010 Free Software Foundation, Inc.
1504 This configure script is free software; the Free Software Foundation
1505 gives unlimited permission to copy, distribute and modify it.
1510 ## ------------------------ ##
1511 ## Autoconf initialization. ##
1512 ## ------------------------ ##
1514 # ac_fn_c_try_compile LINENO
1515 # --------------------------
1516 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1517 ac_fn_c_try_compile ()
1519 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1520 rm -f conftest.$ac_objext
1521 if { { ac_try="$ac_compile"
1523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1524 *) ac_try_echo=$ac_try;;
1526 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1527 $as_echo "$ac_try_echo"; } >&5
1528 (eval "$ac_compile") 2>conftest.err
1530 if test -s conftest.err; then
1531 grep -v '^ *+' conftest.err >conftest.er1
1532 cat conftest.er1 >&5
1533 mv -f conftest.er1 conftest.err
1535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1536 test $ac_status = 0; } && {
1537 test -z "$ac_c_werror_flag" ||
1538 test ! -s conftest.err
1539 } && test -s conftest.$ac_objext; then :
1542 $as_echo "$as_me: failed program was:" >&5
1543 sed 's/^/| /' conftest.$ac_ext >&5
1547 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1548 as_fn_set_status $ac_retval
1550 } # ac_fn_c_try_compile
1552 # ac_fn_c_try_cpp LINENO
1553 # ----------------------
1554 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1557 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1558 if { { ac_try="$ac_cpp conftest.$ac_ext"
1560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1561 *) ac_try_echo=$ac_try;;
1563 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1564 $as_echo "$ac_try_echo"; } >&5
1565 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1567 if test -s conftest.err; then
1568 grep -v '^ *+' conftest.err >conftest.er1
1569 cat conftest.er1 >&5
1570 mv -f conftest.er1 conftest.err
1572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1573 test $ac_status = 0; } > conftest.i && {
1574 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1575 test ! -s conftest.err
1579 $as_echo "$as_me: failed program was:" >&5
1580 sed 's/^/| /' conftest.$ac_ext >&5
1584 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1585 as_fn_set_status $ac_retval
1589 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1590 # -------------------------------------------------------
1591 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1592 # the include files in INCLUDES and setting the cache variable VAR
1594 ac_fn_c_check_header_mongrel ()
1596 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1597 if eval \${$3+:} false; then :
1598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1599 $as_echo_n "checking for $2... " >&6; }
1600 if eval \${$3+:} false; then :
1601 $as_echo_n "(cached) " >&6
1604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1605 $as_echo "$ac_res" >&6; }
1607 # Is the header compilable?
1608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1609 $as_echo_n "checking $2 usability... " >&6; }
1610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1611 /* end confdefs.h. */
1615 if ac_fn_c_try_compile "$LINENO"; then :
1616 ac_header_compiler=yes
1618 ac_header_compiler=no
1620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1622 $as_echo "$ac_header_compiler" >&6; }
1624 # Is the header present?
1625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1626 $as_echo_n "checking $2 presence... " >&6; }
1627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1628 /* end confdefs.h. */
1631 if ac_fn_c_try_cpp "$LINENO"; then :
1632 ac_header_preproc=yes
1634 ac_header_preproc=no
1636 rm -f conftest.err conftest.i conftest.$ac_ext
1637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1638 $as_echo "$ac_header_preproc" >&6; }
1640 # So? What about this header?
1641 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1644 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1646 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1650 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1652 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1654 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1656 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1658 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1662 $as_echo_n "checking for $2... " >&6; }
1663 if eval \${$3+:} false; then :
1664 $as_echo_n "(cached) " >&6
1666 eval "$3=\$ac_header_compiler"
1669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1670 $as_echo "$ac_res" >&6; }
1672 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1674 } # ac_fn_c_check_header_mongrel
1676 # ac_fn_c_try_run LINENO
1677 # ----------------------
1678 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1679 # that executables *can* be run.
1682 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1683 if { { ac_try="$ac_link"
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_link") 2>&5
1692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1693 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1694 { { case "(($ac_try" in
1695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1696 *) ac_try_echo=$ac_try;;
1698 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1699 $as_echo "$ac_try_echo"; } >&5
1700 (eval "$ac_try") 2>&5
1702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1703 test $ac_status = 0; }; }; then :
1706 $as_echo "$as_me: program exited with status $ac_status" >&5
1707 $as_echo "$as_me: failed program was:" >&5
1708 sed 's/^/| /' conftest.$ac_ext >&5
1710 ac_retval=$ac_status
1712 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1713 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1714 as_fn_set_status $ac_retval
1718 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1719 # -------------------------------------------------------
1720 # Tests whether HEADER exists and can be compiled using the include files in
1721 # INCLUDES, setting the cache variable VAR accordingly.
1722 ac_fn_c_check_header_compile ()
1724 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1726 $as_echo_n "checking for $2... " >&6; }
1727 if eval \${$3+:} false; then :
1728 $as_echo_n "(cached) " >&6
1730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1731 /* end confdefs.h. */
1735 if ac_fn_c_try_compile "$LINENO"; then :
1740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1744 $as_echo "$ac_res" >&6; }
1745 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1747 } # ac_fn_c_check_header_compile
1749 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1750 # -------------------------------------------
1751 # Tests whether TYPE exists after having included INCLUDES, setting cache
1752 # variable VAR accordingly.
1753 ac_fn_c_check_type ()
1755 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1757 $as_echo_n "checking for $2... " >&6; }
1758 if eval \${$3+:} false; then :
1759 $as_echo_n "(cached) " >&6
1762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1763 /* end confdefs.h. */
1774 if ac_fn_c_try_compile "$LINENO"; then :
1775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1776 /* end confdefs.h. */
1787 if ac_fn_c_try_compile "$LINENO"; then :
1792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1798 $as_echo "$ac_res" >&6; }
1799 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1801 } # ac_fn_c_check_type
1803 # ac_fn_c_try_link LINENO
1804 # -----------------------
1805 # Try to link conftest.$ac_ext, and return whether this succeeded.
1808 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1809 rm -f conftest.$ac_objext conftest$ac_exeext
1810 if { { ac_try="$ac_link"
1812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1813 *) ac_try_echo=$ac_try;;
1815 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1816 $as_echo "$ac_try_echo"; } >&5
1817 (eval "$ac_link") 2>conftest.err
1819 if test -s conftest.err; then
1820 grep -v '^ *+' conftest.err >conftest.er1
1821 cat conftest.er1 >&5
1822 mv -f conftest.er1 conftest.err
1824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1825 test $ac_status = 0; } && {
1826 test -z "$ac_c_werror_flag" ||
1827 test ! -s conftest.err
1828 } && test -s conftest$ac_exeext && {
1829 test "$cross_compiling" = yes ||
1830 $as_test_x conftest$ac_exeext
1834 $as_echo "$as_me: failed program was:" >&5
1835 sed 's/^/| /' conftest.$ac_ext >&5
1839 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1840 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1841 # interfere with the next link command; also delete a directory that is
1842 # left behind by Apple's compiler. We do this before executing the actions.
1843 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1844 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1845 as_fn_set_status $ac_retval
1847 } # ac_fn_c_try_link
1849 # ac_fn_c_check_func LINENO FUNC VAR
1850 # ----------------------------------
1851 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1852 ac_fn_c_check_func ()
1854 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1856 $as_echo_n "checking for $2... " >&6; }
1857 if eval \${$3+:} false; then :
1858 $as_echo_n "(cached) " >&6
1860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1861 /* end confdefs.h. */
1862 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1863 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1864 #define $2 innocuous_$2
1866 /* System header to define __stub macros and hopefully few prototypes,
1867 which can conflict with char $2 (); below.
1868 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1869 <limits.h> exists even on freestanding compilers. */
1872 # include <limits.h>
1874 # include <assert.h>
1879 /* Override any GCC internal prototype to avoid an error.
1880 Use char because int might match the return type of a GCC
1881 builtin and then its argument prototype would still apply. */
1886 /* The GNU C library defines this for functions which it implements
1887 to always fail with ENOSYS. Some functions are actually named
1888 something starting with __ and the normal name is an alias. */
1889 #if defined __stub_$2 || defined __stub___$2
1901 if ac_fn_c_try_link "$LINENO"; then :
1906 rm -f core conftest.err conftest.$ac_objext \
1907 conftest$ac_exeext conftest.$ac_ext
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1911 $as_echo "$ac_res" >&6; }
1912 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1914 } # ac_fn_c_check_func
1916 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1917 # --------------------------------------------
1918 # Tries to find the compile-time value of EXPR in a program that includes
1919 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1921 ac_fn_c_compute_int ()
1923 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1924 if test "$cross_compiling" = yes; then
1925 # Depending upon the size, compute the lo and hi bounds.
1926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1927 /* end confdefs.h. */
1932 static int test_array [1 - 2 * !(($2) >= 0)];
1939 if ac_fn_c_try_compile "$LINENO"; then :
1942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1943 /* end confdefs.h. */
1948 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1955 if ac_fn_c_try_compile "$LINENO"; then :
1956 ac_hi=$ac_mid; break
1958 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1959 if test $ac_lo -le $ac_mid; then
1963 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1969 /* end confdefs.h. */
1974 static int test_array [1 - 2 * !(($2) < 0)];
1981 if ac_fn_c_try_compile "$LINENO"; then :
1984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1985 /* end confdefs.h. */
1990 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1997 if ac_fn_c_try_compile "$LINENO"; then :
1998 ac_lo=$ac_mid; break
2000 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2001 if test $ac_mid -le $ac_hi; then
2005 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2015 # Binary search between lo and hi bounds.
2016 while test "x$ac_lo" != "x$ac_hi"; do
2017 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2019 /* end confdefs.h. */
2024 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2031 if ac_fn_c_try_compile "$LINENO"; then :
2034 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2039 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2044 /* end confdefs.h. */
2046 static long int longval () { return $2; }
2047 static unsigned long int ulongval () { return $2; }
2054 FILE *f = fopen ("conftest.val", "w");
2059 long int i = longval ();
2062 fprintf (f, "%ld", i);
2066 unsigned long int i = ulongval ();
2069 fprintf (f, "%lu", i);
2071 /* Do not output a trailing newline, as this causes \r\n confusion
2072 on some platforms. */
2073 return ferror (f) || fclose (f) != 0;
2079 if ac_fn_c_try_run "$LINENO"; then :
2080 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2084 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2085 conftest.$ac_objext conftest.beam conftest.$ac_ext
2089 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2090 as_fn_set_status $ac_retval
2092 } # ac_fn_c_compute_int
2094 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2095 # ---------------------------------------------
2096 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2098 ac_fn_c_check_decl ()
2100 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2101 as_decl_name=`echo $2|sed 's/ *(.*//'`
2102 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2104 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2105 if eval \${$3+:} false; then :
2106 $as_echo_n "(cached) " >&6
2108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2109 /* end confdefs.h. */
2114 #ifndef $as_decl_name
2116 (void) $as_decl_use;
2118 (void) $as_decl_name;
2126 if ac_fn_c_try_compile "$LINENO"; then :
2131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2135 $as_echo "$ac_res" >&6; }
2136 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2138 } # ac_fn_c_check_decl
2139 cat >config.log <<_ACEOF
2140 This file contains any messages produced by compilers while
2141 running configure, to aid debugging if configure makes a mistake.
2143 It was created by $as_me, which was
2144 generated by GNU Autoconf 2.68. Invocation command line was
2156 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2157 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2158 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2159 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2160 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2162 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2163 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2165 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2166 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2167 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2168 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2169 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2170 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2171 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2179 test -z "$as_dir" && as_dir=.
2180 $as_echo "PATH: $as_dir"
2196 # Keep a trace of the command line.
2197 # Strip out --no-create and --no-recursion so they do not pile up.
2198 # Strip out --silent because we don't want to record it for future runs.
2199 # Also quote any args containing shell meta-characters.
2200 # Make two passes to allow for proper duplicate-argument suppression.
2204 ac_must_keep_next=false
2210 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2211 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2212 | -silent | --silent | --silen | --sile | --sil)
2215 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2218 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2220 as_fn_append ac_configure_args1 " '$ac_arg'"
2221 if test $ac_must_keep_next = true; then
2222 ac_must_keep_next=false # Got value, back to normal.
2225 *=* | --config-cache | -C | -disable-* | --disable-* \
2226 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2227 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2228 | -with-* | --with-* | -without-* | --without-* | --x)
2229 case "$ac_configure_args0 " in
2230 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2233 -* ) ac_must_keep_next=true ;;
2236 as_fn_append ac_configure_args " '$ac_arg'"
2241 { ac_configure_args0=; unset ac_configure_args0;}
2242 { ac_configure_args1=; unset ac_configure_args1;}
2244 # When interrupted or exit'd, cleanup temporary files, and complete
2245 # config.log. We remove comments because anyway the quotes in there
2246 # would cause problems or look ugly.
2247 # WARNING: Use '\'' to represent an apostrophe within the trap.
2248 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2249 trap 'exit_status=$?
2250 # Save into config.log some information that might help in debugging.
2254 $as_echo "## ---------------- ##
2255 ## Cache variables. ##
2256 ## ---------------- ##"
2258 # The following way of writing the cache mishandles newlines in values,
2260 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2261 eval ac_val=\$$ac_var
2265 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2266 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2269 _ | IFS | as_nl) ;; #(
2270 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2271 *) { eval $ac_var=; unset $ac_var;} ;;
2276 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2277 *${as_nl}ac_space=\ *)
2279 "s/'\''/'\''\\\\'\'''\''/g;
2280 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2283 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2290 $as_echo "## ----------------- ##
2291 ## Output variables. ##
2292 ## ----------------- ##"
2294 for ac_var in $ac_subst_vars
2296 eval ac_val=\$$ac_var
2298 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2300 $as_echo "$ac_var='\''$ac_val'\''"
2304 if test -n "$ac_subst_files"; then
2305 $as_echo "## ------------------- ##
2306 ## File substitutions. ##
2307 ## ------------------- ##"
2309 for ac_var in $ac_subst_files
2311 eval ac_val=\$$ac_var
2313 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2315 $as_echo "$ac_var='\''$ac_val'\''"
2320 if test -s confdefs.h; then
2321 $as_echo "## ----------- ##
2328 test "$ac_signal" != 0 &&
2329 $as_echo "$as_me: caught signal $ac_signal"
2330 $as_echo "$as_me: exit $exit_status"
2332 rm -f core *.core core.conftest.* &&
2333 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2336 for ac_signal in 1 2 13 15; do
2337 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2341 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2342 rm -f -r conftest* confdefs.h
2344 $as_echo "/* confdefs.h */" > confdefs.h
2346 # Predefined preprocessor variables.
2348 cat >>confdefs.h <<_ACEOF
2349 #define PACKAGE_NAME "$PACKAGE_NAME"
2352 cat >>confdefs.h <<_ACEOF
2353 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2356 cat >>confdefs.h <<_ACEOF
2357 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2360 cat >>confdefs.h <<_ACEOF
2361 #define PACKAGE_STRING "$PACKAGE_STRING"
2364 cat >>confdefs.h <<_ACEOF
2365 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2368 cat >>confdefs.h <<_ACEOF
2369 #define PACKAGE_URL "$PACKAGE_URL"
2373 # Let the site file select an alternate cache file if it wants to.
2374 # Prefer an explicitly selected file to automatically selected ones.
2377 if test -n "$CONFIG_SITE"; then
2378 # We do not want a PATH search for config.site.
2379 case $CONFIG_SITE in #((
2380 -*) ac_site_file1=./$CONFIG_SITE;;
2381 */*) ac_site_file1=$CONFIG_SITE;;
2382 *) ac_site_file1=./$CONFIG_SITE;;
2384 elif test "x$prefix" != xNONE; then
2385 ac_site_file1=$prefix/share/config.site
2386 ac_site_file2=$prefix/etc/config.site
2388 ac_site_file1=$ac_default_prefix/share/config.site
2389 ac_site_file2=$ac_default_prefix/etc/config.site
2391 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2393 test "x$ac_site_file" = xNONE && continue
2394 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2396 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2397 sed 's/^/| /' "$ac_site_file" >&5
2399 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2400 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2401 as_fn_error $? "failed to load site script $ac_site_file
2402 See \`config.log' for more details" "$LINENO" 5; }
2406 if test -r "$cache_file"; then
2407 # Some versions of bash will fail to source /dev/null (special files
2408 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2409 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2411 $as_echo "$as_me: loading cache $cache_file" >&6;}
2413 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2414 *) . "./$cache_file";;
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2419 $as_echo "$as_me: creating cache $cache_file" >&6;}
2423 gt_needs="$gt_needs "
2424 as_fn_append ac_header_list " stdlib.h"
2425 as_fn_append ac_header_list " unistd.h"
2426 as_fn_append ac_header_list " sys/param.h"
2427 # Check that the precious variables saved in the cache have kept the same
2429 ac_cache_corrupted=false
2430 for ac_var in $ac_precious_vars; do
2431 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2432 eval ac_new_set=\$ac_env_${ac_var}_set
2433 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2434 eval ac_new_val=\$ac_env_${ac_var}_value
2435 case $ac_old_set,$ac_new_set in
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2438 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2439 ac_cache_corrupted=: ;;
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2442 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2443 ac_cache_corrupted=: ;;
2446 if test "x$ac_old_val" != "x$ac_new_val"; then
2447 # differences in whitespace do not lead to failure.
2448 ac_old_val_w=`echo x $ac_old_val`
2449 ac_new_val_w=`echo x $ac_new_val`
2450 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2452 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2453 ac_cache_corrupted=:
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2456 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2457 eval $ac_var=\$ac_old_val
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2460 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2462 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2465 # Pass precious variables to config.status.
2466 if test "$ac_new_set" = set; then
2468 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2469 *) ac_arg=$ac_var=$ac_new_val ;;
2471 case " $ac_configure_args " in
2472 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2473 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2477 if $ac_cache_corrupted; then
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2479 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2481 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2482 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2484 ## -------------------- ##
2485 ## Main body of script. ##
2486 ## -------------------- ##
2489 ac_cpp='$CPP $CPPFLAGS'
2490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2495 am__api_version='1.11'
2498 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2499 if test -f "$ac_dir/install-sh"; then
2501 ac_install_sh="$ac_aux_dir/install-sh -c"
2503 elif test -f "$ac_dir/install.sh"; then
2505 ac_install_sh="$ac_aux_dir/install.sh -c"
2507 elif test -f "$ac_dir/shtool"; then
2509 ac_install_sh="$ac_aux_dir/shtool install -c"
2513 if test -z "$ac_aux_dir"; then
2514 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2517 # These three variables are undocumented and unsupported,
2518 # and are intended to be withdrawn in a future Autoconf release.
2519 # They can cause serious problems if a builder's source tree is in a directory
2520 # whose full name contains unusual characters.
2521 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2522 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2523 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2526 # Find a good install program. We prefer a C program (faster),
2527 # so one script is as good as another. But avoid the broken or
2528 # incompatible versions:
2529 # SysV /etc/install, /usr/sbin/install
2530 # SunOS /usr/etc/install
2531 # IRIX /sbin/install
2533 # AmigaOS /C/install, which installs bootblocks on floppy discs
2534 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2535 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2536 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2537 # OS/2's system install, which has a completely different semantic
2538 # ./install, which can be erroneously created by make from ./install.sh.
2539 # Reject install programs that cannot install multiple files.
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2541 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2542 if test -z "$INSTALL"; then
2543 if ${ac_cv_path_install+:} false; then :
2544 $as_echo_n "(cached) " >&6
2546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2550 test -z "$as_dir" && as_dir=.
2551 # Account for people who put trailing slashes in PATH elements.
2552 case $as_dir/ in #((
2553 ./ | .// | /[cC]/* | \
2554 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2555 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2558 # OSF1 and SCO ODT 3.0 have their own names for install.
2559 # Don't use installbsd from OSF since it installs stuff as root
2561 for ac_prog in ginstall scoinst install; do
2562 for ac_exec_ext in '' $ac_executable_extensions; do
2563 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2564 if test $ac_prog = install &&
2565 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2566 # AIX install. It has an incompatible calling convention.
2568 elif test $ac_prog = install &&
2569 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2570 # program-specific install script used by HP pwplus--don't use.
2573 rm -rf conftest.one conftest.two conftest.dir
2574 echo one > conftest.one
2575 echo two > conftest.two
2577 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2578 test -s conftest.one && test -s conftest.two &&
2579 test -s conftest.dir/conftest.one &&
2580 test -s conftest.dir/conftest.two
2582 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2595 rm -rf conftest.one conftest.two conftest.dir
2598 if test "${ac_cv_path_install+set}" = set; then
2599 INSTALL=$ac_cv_path_install
2601 # As a last resort, use the slow shell script. Don't cache a
2602 # value for INSTALL within a source directory, because that will
2603 # break other packages using the cache if that directory is
2604 # removed, or if the value is a relative name.
2605 INSTALL=$ac_install_sh
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2609 $as_echo "$INSTALL" >&6; }
2611 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2612 # It thinks the first close brace ends the variable substitution.
2613 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2615 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2617 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2620 $as_echo_n "checking whether build environment is sane... " >&6; }
2623 echo timestamp > conftest.file
2624 # Reject unsafe characters in $srcdir or the absolute working directory
2625 # name. Accept space and tab only in the latter.
2629 *[\\\"\#\$\&\'\`$am_lf]*)
2630 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2633 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2634 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2637 # Do `set' in a subshell so we don't clobber the current shell's
2638 # arguments. Must try -L first in case configure is actually a
2639 # symlink; some systems play weird games with the mod time of symlinks
2640 # (eg FreeBSD returns the mod time of the symlink's containing
2643 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2644 if test "$*" = "X"; then
2646 set X `ls -t "$srcdir/configure" conftest.file`
2649 if test "$*" != "X $srcdir/configure conftest.file" \
2650 && test "$*" != "X conftest.file $srcdir/configure"; then
2652 # If neither matched, then we have a broken ls. This can happen
2653 # if, for instance, CONFIG_SHELL is bash and it inherits a
2654 # broken ls alias from the environment. This has actually
2655 # happened. Such a system could not be considered "sane".
2656 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2657 alias in your environment" "$LINENO" 5
2660 test "$2" = conftest.file
2666 as_fn_error $? "newly created file is older than distributed files!
2667 Check your system clock" "$LINENO" 5
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2670 $as_echo "yes" >&6; }
2671 test "$program_prefix" != NONE &&
2672 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2673 # Use a double $ so make ignores it.
2674 test "$program_suffix" != NONE &&
2675 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2676 # Double any \ or $.
2677 # By default was `s,x,x', remove it if useless.
2678 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2679 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2681 # expand $ac_aux_dir to an absolute path
2682 am_aux_dir=`cd $ac_aux_dir && pwd`
2684 if test x"${MISSING+set}" != xset; then
2687 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2689 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2692 # Use eval to expand $SHELL
2693 if eval "$MISSING --run true"; then
2694 am_missing_run="$MISSING --run "
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2698 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2701 if test x"${install_sh}" != xset; then
2704 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2706 install_sh="\${SHELL} $am_aux_dir/install-sh"
2710 # Installed binaries are usually stripped using `strip' when the user
2711 # run `make install-strip'. However `strip' might not be the right
2712 # tool to use in cross-compilation environments, therefore Automake
2713 # will honor the `STRIP' environment variable to overrule this program.
2714 if test "$cross_compiling" != no; then
2715 if test -n "$ac_tool_prefix"; then
2716 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2717 set dummy ${ac_tool_prefix}strip; ac_word=$2
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2719 $as_echo_n "checking for $ac_word... " >&6; }
2720 if ${ac_cv_prog_STRIP+:} false; then :
2721 $as_echo_n "(cached) " >&6
2723 if test -n "$STRIP"; then
2724 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2730 test -z "$as_dir" && as_dir=.
2731 for ac_exec_ext in '' $ac_executable_extensions; do
2732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2733 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2743 STRIP=$ac_cv_prog_STRIP
2744 if test -n "$STRIP"; then
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2746 $as_echo "$STRIP" >&6; }
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2749 $as_echo "no" >&6; }
2754 if test -z "$ac_cv_prog_STRIP"; then
2756 # Extract the first word of "strip", so it can be a program name with args.
2757 set dummy strip; ac_word=$2
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2759 $as_echo_n "checking for $ac_word... " >&6; }
2760 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2761 $as_echo_n "(cached) " >&6
2763 if test -n "$ac_ct_STRIP"; then
2764 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2770 test -z "$as_dir" && as_dir=.
2771 for ac_exec_ext in '' $ac_executable_extensions; do
2772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2773 ac_cv_prog_ac_ct_STRIP="strip"
2774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2783 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2784 if test -n "$ac_ct_STRIP"; then
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2786 $as_echo "$ac_ct_STRIP" >&6; }
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2789 $as_echo "no" >&6; }
2792 if test "x$ac_ct_STRIP" = x; then
2795 case $cross_compiling:$ac_tool_warned in
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2798 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2799 ac_tool_warned=yes ;;
2804 STRIP="$ac_cv_prog_STRIP"
2808 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2811 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2812 if test -z "$MKDIR_P"; then
2813 if ${ac_cv_path_mkdir+:} false; then :
2814 $as_echo_n "(cached) " >&6
2816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2817 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2820 test -z "$as_dir" && as_dir=.
2821 for ac_prog in mkdir gmkdir; do
2822 for ac_exec_ext in '' $ac_executable_extensions; do
2823 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2824 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2825 'mkdir (GNU coreutils) '* | \
2826 'mkdir (coreutils) '* | \
2827 'mkdir (fileutils) '4.1*)
2828 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2838 test -d ./--version && rmdir ./--version
2839 if test "${ac_cv_path_mkdir+set}" = set; then
2840 MKDIR_P="$ac_cv_path_mkdir -p"
2842 # As a last resort, use the slow shell script. Don't cache a
2843 # value for MKDIR_P within a source directory, because that will
2844 # break other packages using the cache if that directory is
2845 # removed, or if the value is a relative name.
2846 MKDIR_P="$ac_install_sh -d"
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2850 $as_echo "$MKDIR_P" >&6; }
2854 [\\/$]* | ?:[\\/]*) ;;
2855 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2858 for ac_prog in gawk mawk nawk awk
2860 # Extract the first word of "$ac_prog", so it can be a program name with args.
2861 set dummy $ac_prog; ac_word=$2
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2863 $as_echo_n "checking for $ac_word... " >&6; }
2864 if ${ac_cv_prog_AWK+:} false; then :
2865 $as_echo_n "(cached) " >&6
2867 if test -n "$AWK"; then
2868 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2874 test -z "$as_dir" && as_dir=.
2875 for ac_exec_ext in '' $ac_executable_extensions; do
2876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2877 ac_cv_prog_AWK="$ac_prog"
2878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2888 if test -n "$AWK"; then
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2890 $as_echo "$AWK" >&6; }
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2893 $as_echo "no" >&6; }
2897 test -n "$AWK" && break
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2901 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2903 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2904 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2905 $as_echo_n "(cached) " >&6
2907 cat >conftest.make <<\_ACEOF
2910 @echo '@@@%%%=$(MAKE)=@@@%%%'
2912 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2913 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2915 eval ac_cv_prog_make_${ac_make}_set=yes;;
2917 eval ac_cv_prog_make_${ac_make}_set=no;;
2921 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2923 $as_echo "yes" >&6; }
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2927 $as_echo "no" >&6; }
2928 SET_MAKE="MAKE=${MAKE-make}"
2931 rm -rf .tst 2>/dev/null
2932 mkdir .tst 2>/dev/null
2933 if test -d .tst; then
2938 rmdir .tst 2>/dev/null
2940 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2941 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2942 # is not polluted with repeated "-I."
2943 am__isrc=' -I$(srcdir)'
2944 # test to see if srcdir already configured
2945 if test -f $srcdir/config.status; then
2946 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2950 # test whether we have cygpath
2951 if test -z "$CYGPATH_W"; then
2952 if (cygpath --version) >/dev/null 2>/dev/null; then
2953 CYGPATH_W='cygpath -w'
2960 # Define the identity of the package.
2965 cat >>confdefs.h <<_ACEOF
2966 #define PACKAGE "$PACKAGE"
2970 cat >>confdefs.h <<_ACEOF
2971 #define VERSION "$VERSION"
2974 # Some tools Automake needs.
2976 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2979 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2982 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2985 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2988 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2990 # We need awk for the "check" target. The system "awk" is bad on
2992 # Always define AMTAR for backward compatibility. Yes, it's still used
2993 # in the wild :-( We should find a proper way to deprecate it ...
2996 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3002 ac_config_headers="$ac_config_headers config.h"
3006 DEPDIR="${am__leading_dot}deps"
3008 ac_config_commands="$ac_config_commands depfiles"
3011 am_make=${MAKE-make}
3012 cat > confinc << 'END'
3014 @echo this is the am__doit target
3017 # If we don't find an include directive, just comment out the code.
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3019 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3023 # First try GNU make style include.
3024 echo "include confinc" > confmf
3025 # Ignore all kinds of additional output from `make'.
3026 case `$am_make -s -f confmf 2> /dev/null` in #(
3027 *the\ am__doit\ target*)
3033 # Now try BSD make style include.
3034 if test "$am__include" = "#"; then
3035 echo '.include "confinc"' > confmf
3036 case `$am_make -s -f confmf 2> /dev/null` in #(
3037 *the\ am__doit\ target*)
3038 am__include=.include
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3047 $as_echo "$_am_result" >&6; }
3048 rm -f confinc confmf
3050 # Check whether --enable-dependency-tracking was given.
3051 if test "${enable_dependency_tracking+set}" = set; then :
3052 enableval=$enable_dependency_tracking;
3055 if test "x$enable_dependency_tracking" != xno; then
3056 am_depcomp="$ac_aux_dir/depcomp"
3060 if test "x$enable_dependency_tracking" != xno; then
3070 ac_cpp='$CPP $CPPFLAGS'
3071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3074 if test -n "$ac_tool_prefix"; then
3075 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3076 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3078 $as_echo_n "checking for $ac_word... " >&6; }
3079 if ${ac_cv_prog_CC+:} false; then :
3080 $as_echo_n "(cached) " >&6
3082 if test -n "$CC"; then
3083 ac_cv_prog_CC="$CC" # Let the user override the test.
3085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3089 test -z "$as_dir" && as_dir=.
3090 for ac_exec_ext in '' $ac_executable_extensions; do
3091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3092 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3103 if test -n "$CC"; then
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3105 $as_echo "$CC" >&6; }
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3108 $as_echo "no" >&6; }
3113 if test -z "$ac_cv_prog_CC"; then
3115 # Extract the first word of "gcc", so it can be a program name with args.
3116 set dummy gcc; ac_word=$2
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3118 $as_echo_n "checking for $ac_word... " >&6; }
3119 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3120 $as_echo_n "(cached) " >&6
3122 if test -n "$ac_ct_CC"; then
3123 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3129 test -z "$as_dir" && as_dir=.
3130 for ac_exec_ext in '' $ac_executable_extensions; do
3131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3132 ac_cv_prog_ac_ct_CC="gcc"
3133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3142 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3143 if test -n "$ac_ct_CC"; then
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3145 $as_echo "$ac_ct_CC" >&6; }
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3148 $as_echo "no" >&6; }
3151 if test "x$ac_ct_CC" = x; then
3154 case $cross_compiling:$ac_tool_warned in
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3157 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3158 ac_tool_warned=yes ;;
3166 if test -z "$CC"; then
3167 if test -n "$ac_tool_prefix"; then
3168 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3169 set dummy ${ac_tool_prefix}cc; ac_word=$2
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3171 $as_echo_n "checking for $ac_word... " >&6; }
3172 if ${ac_cv_prog_CC+:} false; then :
3173 $as_echo_n "(cached) " >&6
3175 if test -n "$CC"; then
3176 ac_cv_prog_CC="$CC" # Let the user override the test.
3178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3182 test -z "$as_dir" && as_dir=.
3183 for ac_exec_ext in '' $ac_executable_extensions; do
3184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3185 ac_cv_prog_CC="${ac_tool_prefix}cc"
3186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3196 if test -n "$CC"; then
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3198 $as_echo "$CC" >&6; }
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3201 $as_echo "no" >&6; }
3207 if test -z "$CC"; then
3208 # Extract the first word of "cc", so it can be a program name with args.
3209 set dummy cc; ac_word=$2
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3211 $as_echo_n "checking for $ac_word... " >&6; }
3212 if ${ac_cv_prog_CC+:} false; then :
3213 $as_echo_n "(cached) " >&6
3215 if test -n "$CC"; then
3216 ac_cv_prog_CC="$CC" # Let the user override the test.
3219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3223 test -z "$as_dir" && as_dir=.
3224 for ac_exec_ext in '' $ac_executable_extensions; do
3225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3226 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3227 ac_prog_rejected=yes
3231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3238 if test $ac_prog_rejected = yes; then
3239 # We found a bogon in the path, so make sure we never use it.
3240 set dummy $ac_cv_prog_CC
3242 if test $# != 0; then
3243 # We chose a different compiler from the bogus one.
3244 # However, it has the same basename, so the bogon will be chosen
3245 # first if we set CC to just the basename; use the full file name.
3247 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3253 if test -n "$CC"; then
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3255 $as_echo "$CC" >&6; }
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3258 $as_echo "no" >&6; }
3263 if test -z "$CC"; then
3264 if test -n "$ac_tool_prefix"; then
3265 for ac_prog in cl.exe
3267 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3268 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3270 $as_echo_n "checking for $ac_word... " >&6; }
3271 if ${ac_cv_prog_CC+:} false; then :
3272 $as_echo_n "(cached) " >&6
3274 if test -n "$CC"; then
3275 ac_cv_prog_CC="$CC" # Let the user override the test.
3277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3281 test -z "$as_dir" && as_dir=.
3282 for ac_exec_ext in '' $ac_executable_extensions; do
3283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3284 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3295 if test -n "$CC"; then
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3297 $as_echo "$CC" >&6; }
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3300 $as_echo "no" >&6; }
3304 test -n "$CC" && break
3307 if test -z "$CC"; then
3309 for ac_prog in cl.exe
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 ${ac_cv_prog_ac_ct_CC+:} false; then :
3316 $as_echo_n "(cached) " >&6
3318 if test -n "$ac_ct_CC"; then
3319 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # 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_ac_ct_CC="$ac_prog"
3329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3338 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3339 if test -n "$ac_ct_CC"; then
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3341 $as_echo "$ac_ct_CC" >&6; }
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3344 $as_echo "no" >&6; }
3348 test -n "$ac_ct_CC" && break
3351 if test "x$ac_ct_CC" = x; then
3354 case $cross_compiling:$ac_tool_warned in
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3357 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3358 ac_tool_warned=yes ;;
3367 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3368 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3369 as_fn_error $? "no acceptable C compiler found in \$PATH
3370 See \`config.log' for more details" "$LINENO" 5; }
3372 # Provide some information about the compiler.
3373 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3376 for ac_option in --version -v -V -qversion; do
3377 { { ac_try="$ac_compiler $ac_option >&5"
3379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3380 *) ac_try_echo=$ac_try;;
3382 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3383 $as_echo "$ac_try_echo"; } >&5
3384 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3386 if test -s conftest.err; then
3388 ... rest of stderr output deleted ...
3389 10q' conftest.err >conftest.er1
3390 cat conftest.er1 >&5
3392 rm -f conftest.er1 conftest.err
3393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3394 test $ac_status = 0; }
3397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3398 /* end confdefs.h. */
3408 ac_clean_files_save=$ac_clean_files
3409 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3410 # Try to create an executable without -o first, disregard a.out.
3411 # It will help us diagnose broken compilers, and finding out an intuition
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3414 $as_echo_n "checking whether the C compiler works... " >&6; }
3415 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3417 # The possible output files:
3418 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3421 for ac_file in $ac_files
3424 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3425 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3430 if { { ac_try="$ac_link_default"
3432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3433 *) ac_try_echo=$ac_try;;
3435 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3436 $as_echo "$ac_try_echo"; } >&5
3437 (eval "$ac_link_default") 2>&5
3439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3440 test $ac_status = 0; }; then :
3441 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3442 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3443 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3444 # so that the user can short-circuit this test for compilers unknown to
3446 for ac_file in $ac_files ''
3448 test -f "$ac_file" || continue
3450 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3453 # We found the default executable, but exeext='' is most
3457 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3459 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3461 # We set ac_cv_exeext here because the later test for it is not
3462 # safe: cross compilers may not add the suffix if given an `-o'
3463 # argument, so we may need to know it at that point already.
3464 # Even if this section looks crufty: it has the advantage of
3471 test "$ac_cv_exeext" = no && ac_cv_exeext=
3476 if test -z "$ac_file"; then :
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3478 $as_echo "no" >&6; }
3479 $as_echo "$as_me: failed program was:" >&5
3480 sed 's/^/| /' conftest.$ac_ext >&5
3482 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3483 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3484 as_fn_error 77 "C compiler cannot create executables
3485 See \`config.log' for more details" "$LINENO" 5; }
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3488 $as_echo "yes" >&6; }
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3491 $as_echo_n "checking for C compiler default output file name... " >&6; }
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3493 $as_echo "$ac_file" >&6; }
3494 ac_exeext=$ac_cv_exeext
3496 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3497 ac_clean_files=$ac_clean_files_save
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3499 $as_echo_n "checking for suffix of executables... " >&6; }
3500 if { { ac_try="$ac_link"
3502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3503 *) ac_try_echo=$ac_try;;
3505 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3506 $as_echo "$ac_try_echo"; } >&5
3507 (eval "$ac_link") 2>&5
3509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3510 test $ac_status = 0; }; then :
3511 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3512 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3513 # work properly (i.e., refer to `conftest.exe'), while it won't with
3515 for ac_file in conftest.exe conftest conftest.*; do
3516 test -f "$ac_file" || continue
3518 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3519 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3525 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3526 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3527 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3528 See \`config.log' for more details" "$LINENO" 5; }
3530 rm -f conftest conftest$ac_cv_exeext
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3532 $as_echo "$ac_cv_exeext" >&6; }
3534 rm -f conftest.$ac_ext
3535 EXEEXT=$ac_cv_exeext
3537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3538 /* end confdefs.h. */
3543 FILE *f = fopen ("conftest.out", "w");
3544 return ferror (f) || fclose (f) != 0;
3550 ac_clean_files="$ac_clean_files conftest.out"
3551 # Check that the compiler produces executables we can run. If not, either
3552 # the compiler is broken, or we cross compile.
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3554 $as_echo_n "checking whether we are cross compiling... " >&6; }
3555 if test "$cross_compiling" != yes; then
3556 { { ac_try="$ac_link"
3558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3559 *) ac_try_echo=$ac_try;;
3561 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3562 $as_echo "$ac_try_echo"; } >&5
3563 (eval "$ac_link") 2>&5
3565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3566 test $ac_status = 0; }
3567 if { ac_try='./conftest$ac_cv_exeext'
3568 { { case "(($ac_try" in
3569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3570 *) ac_try_echo=$ac_try;;
3572 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3573 $as_echo "$ac_try_echo"; } >&5
3574 (eval "$ac_try") 2>&5
3576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3577 test $ac_status = 0; }; }; then
3580 if test "$cross_compiling" = maybe; then
3583 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3584 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3585 as_fn_error $? "cannot run C compiled programs.
3586 If you meant to cross compile, use \`--host'.
3587 See \`config.log' for more details" "$LINENO" 5; }
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3592 $as_echo "$cross_compiling" >&6; }
3594 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3595 ac_clean_files=$ac_clean_files_save
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3597 $as_echo_n "checking for suffix of object files... " >&6; }
3598 if ${ac_cv_objext+:} false; then :
3599 $as_echo_n "(cached) " >&6
3601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3602 /* end confdefs.h. */
3612 rm -f conftest.o conftest.obj
3613 if { { ac_try="$ac_compile"
3615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3616 *) ac_try_echo=$ac_try;;
3618 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3619 $as_echo "$ac_try_echo"; } >&5
3620 (eval "$ac_compile") 2>&5
3622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3623 test $ac_status = 0; }; then :
3624 for ac_file in conftest.o conftest.obj conftest.*; do
3625 test -f "$ac_file" || continue;
3627 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3628 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3633 $as_echo "$as_me: failed program was:" >&5
3634 sed 's/^/| /' conftest.$ac_ext >&5
3636 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3637 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3638 as_fn_error $? "cannot compute suffix of object files: cannot compile
3639 See \`config.log' for more details" "$LINENO" 5; }
3641 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3644 $as_echo "$ac_cv_objext" >&6; }
3645 OBJEXT=$ac_cv_objext
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3648 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3649 if ${ac_cv_c_compiler_gnu+:} false; then :
3650 $as_echo_n "(cached) " >&6
3652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3653 /* end confdefs.h. */
3666 if ac_fn_c_try_compile "$LINENO"; then :
3671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3672 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3676 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3677 if test $ac_compiler_gnu = yes; then
3682 ac_test_CFLAGS=${CFLAGS+set}
3683 ac_save_CFLAGS=$CFLAGS
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3685 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3686 if ${ac_cv_prog_cc_g+:} false; then :
3687 $as_echo_n "(cached) " >&6
3689 ac_save_c_werror_flag=$ac_c_werror_flag
3690 ac_c_werror_flag=yes
3693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3694 /* end confdefs.h. */
3704 if ac_fn_c_try_compile "$LINENO"; then :
3708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3709 /* end confdefs.h. */
3719 if ac_fn_c_try_compile "$LINENO"; then :
3722 ac_c_werror_flag=$ac_save_c_werror_flag
3724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3725 /* end confdefs.h. */
3735 if ac_fn_c_try_compile "$LINENO"; then :
3738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3743 ac_c_werror_flag=$ac_save_c_werror_flag
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3746 $as_echo "$ac_cv_prog_cc_g" >&6; }
3747 if test "$ac_test_CFLAGS" = set; then
3748 CFLAGS=$ac_save_CFLAGS
3749 elif test $ac_cv_prog_cc_g = yes; then
3750 if test "$GCC" = yes; then
3756 if test "$GCC" = yes; then
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3763 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3764 if ${ac_cv_prog_cc_c89+:} false; then :
3765 $as_echo_n "(cached) " >&6
3767 ac_cv_prog_cc_c89=no
3769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3770 /* end confdefs.h. */
3773 #include <sys/types.h>
3774 #include <sys/stat.h>
3775 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3776 struct buf { int x; };
3777 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3778 static char *e (p, i)
3784 static char *f (char * (*g) (char **, int), char **p, ...)
3789 s = g (p, va_arg (v,int));
3794 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3795 function prototypes and stuff, but not '\xHH' hex character constants.
3796 These don't provoke an error unfortunately, instead are silently treated
3797 as 'x'. The following induces an error, until -std is added to get
3798 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3799 array size at least. It's necessary to write '\x00'==0 to get something
3800 that's true only with -std. */
3801 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3803 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3804 inside strings and character constants. */
3806 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3808 int test (int i, double x);
3809 struct s1 {int (*f) (int a);};
3810 struct s2 {int (*f) (double a);};
3811 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3817 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3822 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3823 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3825 CC="$ac_save_CC $ac_arg"
3826 if ac_fn_c_try_compile "$LINENO"; then :
3827 ac_cv_prog_cc_c89=$ac_arg
3829 rm -f core conftest.err conftest.$ac_objext
3830 test "x$ac_cv_prog_cc_c89" != "xno" && break
3832 rm -f conftest.$ac_ext
3837 case "x$ac_cv_prog_cc_c89" in
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3840 $as_echo "none needed" >&6; } ;;
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3843 $as_echo "unsupported" >&6; } ;;
3845 CC="$CC $ac_cv_prog_cc_c89"
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3847 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3849 if test "x$ac_cv_prog_cc_c89" != xno; then :
3854 ac_cpp='$CPP $CPPFLAGS'
3855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3859 depcc="$CC" am_compiler_list=
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3862 $as_echo_n "checking dependency style of $depcc... " >&6; }
3863 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3864 $as_echo_n "(cached) " >&6
3866 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3867 # We make a subdir and do the tests there. Otherwise we can end up
3868 # making bogus files that we don't know about and never remove. For
3869 # instance it was reported that on HP-UX the gcc test will end up
3870 # making a dummy file named `D' -- because `-MD' means `put the output
3874 # Copy depcomp to subdir because otherwise we won't find it if we're
3875 # using a relative directory.
3876 cp "$am_depcomp" conftest.dir
3878 # We will build objects and dependencies in a subdirectory because
3879 # it helps to detect inapplicable dependency modes. For instance
3880 # both Tru64's cc and ICC support -MD to output dependencies as a
3881 # side effect of compilation, but ICC will put the dependencies in
3882 # the current directory while Tru64 will put them in the object
3886 am_cv_CC_dependencies_compiler_type=none
3887 if test "$am_compiler_list" = ""; then
3888 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3891 case " $depcc " in #(
3892 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3895 for depmode in $am_compiler_list; do
3896 # Setup a source with many dependencies, because some compilers
3897 # like to wrap large dependency lists on column 80 (with \), and
3898 # we should not choose a depcomp mode which is confused by this.
3900 # We need to recreate these files for each test, as the compiler may
3901 # overwrite some of them when testing with obscure command lines.
3902 # This happens at least with the AIX C compiler.
3904 for i in 1 2 3 4 5 6; do
3905 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3906 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3907 # Solaris 8's {/usr,}/bin/sh.
3908 touch sub/conftst$i.h
3910 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3912 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3913 # mode. It turns out that the SunPro C++ compiler does not properly
3914 # handle `-M -o', and we need to detect this. Also, some Intel
3915 # versions had trouble with output in subdirs
3916 am__obj=sub/conftest.${OBJEXT-o}
3917 am__minus_obj="-o $am__obj"
3920 # This depmode causes a compiler race in universal mode.
3921 test "$am__universal" = false || continue
3924 # after this tag, mechanisms are not by side-effect, so they'll
3925 # only be used when explicitly requested
3926 if test "x$enable_dependency_tracking" = xyes; then
3932 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3933 # This compiler won't grok `-c -o', but also, the minuso test has
3934 # not run yet. These depmodes are late enough in the game, and
3935 # so weak that their functioning should not be impacted.
3936 am__obj=conftest.${OBJEXT-o}
3941 if depmode=$depmode \
3942 source=sub/conftest.c object=$am__obj \
3943 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3944 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3945 >/dev/null 2>conftest.err &&
3946 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3947 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3948 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3949 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3950 # icc doesn't choke on unknown options, it will just issue warnings
3951 # or remarks (even with -Werror). So we grep stderr for any message
3952 # that says an option was ignored or not supported.
3953 # When given -MP, icc 7.0 and 7.1 complain thusly:
3954 # icc: Command line warning: ignoring option '-M'; no argument required
3955 # The diagnosis changed in icc 8.0:
3956 # icc: Command line remark: option '-MP' not supported
3957 if (grep 'ignoring option' conftest.err ||
3958 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3959 am_cv_CC_dependencies_compiler_type=$depmode
3968 am_cv_CC_dependencies_compiler_type=none
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3973 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3974 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3977 test "x$enable_dependency_tracking" != xno \
3978 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3980 am__fastdepCC_FALSE='#'
3982 am__fastdepCC_TRUE='#'
3983 am__fastdepCC_FALSE=
3989 ac_cpp='$CPP $CPPFLAGS'
3990 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3991 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3992 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3994 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3995 # On Suns, sometimes $CPP names a directory.
3996 if test -n "$CPP" && test -d "$CPP"; then
3999 if test -z "$CPP"; then
4000 if ${ac_cv_prog_CPP+:} false; then :
4001 $as_echo_n "(cached) " >&6
4003 # Double quotes because CPP needs to be expanded
4004 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4007 for ac_c_preproc_warn_flag in '' yes
4009 # Use a header file that comes with gcc, so configuring glibc
4010 # with a fresh cross-compiler works.
4011 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4012 # <limits.h> exists even on freestanding compilers.
4013 # On the NeXT, cc -E runs the code through the compiler's parser,
4014 # not just through cpp. "Syntax error" is here to catch this case.
4015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4016 /* end confdefs.h. */
4018 # include <limits.h>
4020 # include <assert.h>
4024 if ac_fn_c_try_cpp "$LINENO"; then :
4027 # Broken: fails on valid input.
4030 rm -f conftest.err conftest.i conftest.$ac_ext
4032 # OK, works on sane cases. Now check whether nonexistent headers
4033 # can be detected and how.
4034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4035 /* end confdefs.h. */
4036 #include <ac_nonexistent.h>
4038 if ac_fn_c_try_cpp "$LINENO"; then :
4039 # Broken: success on invalid input.
4042 # Passes both tests.
4046 rm -f conftest.err conftest.i conftest.$ac_ext
4049 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4050 rm -f conftest.i conftest.err conftest.$ac_ext
4051 if $ac_preproc_ok; then :
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4064 $as_echo "$CPP" >&6; }
4066 for ac_c_preproc_warn_flag in '' yes
4068 # Use a header file that comes with gcc, so configuring glibc
4069 # with a fresh cross-compiler works.
4070 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4071 # <limits.h> exists even on freestanding compilers.
4072 # On the NeXT, cc -E runs the code through the compiler's parser,
4073 # not just through cpp. "Syntax error" is here to catch this case.
4074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4075 /* end confdefs.h. */
4077 # include <limits.h>
4079 # include <assert.h>
4083 if ac_fn_c_try_cpp "$LINENO"; then :
4086 # Broken: fails on valid input.
4089 rm -f conftest.err conftest.i conftest.$ac_ext
4091 # OK, works on sane cases. Now check whether nonexistent headers
4092 # can be detected and how.
4093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4094 /* end confdefs.h. */
4095 #include <ac_nonexistent.h>
4097 if ac_fn_c_try_cpp "$LINENO"; then :
4098 # Broken: success on invalid input.
4101 # Passes both tests.
4105 rm -f conftest.err conftest.i conftest.$ac_ext
4108 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4109 rm -f conftest.i conftest.err conftest.$ac_ext
4110 if $ac_preproc_ok; then :
4113 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4114 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4115 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4116 See \`config.log' for more details" "$LINENO" 5; }
4120 ac_cpp='$CPP $CPPFLAGS'
4121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4127 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4128 if ${ac_cv_path_GREP+:} false; then :
4129 $as_echo_n "(cached) " >&6
4131 if test -z "$GREP"; then
4132 ac_path_GREP_found=false
4133 # Loop through the user's path and test for each of PROGNAME-LIST
4134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4135 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4138 test -z "$as_dir" && as_dir=.
4139 for ac_prog in grep ggrep; do
4140 for ac_exec_ext in '' $ac_executable_extensions; do
4141 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4142 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4143 # Check for GNU ac_path_GREP and select it if it is found.
4144 # Check for GNU $ac_path_GREP
4145 case `"$ac_path_GREP" --version 2>&1` in
4147 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4150 $as_echo_n 0123456789 >"conftest.in"
4153 cat "conftest.in" "conftest.in" >"conftest.tmp"
4154 mv "conftest.tmp" "conftest.in"
4155 cp "conftest.in" "conftest.nl"
4156 $as_echo 'GREP' >> "conftest.nl"
4157 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4158 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4159 as_fn_arith $ac_count + 1 && ac_count=$as_val
4160 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4161 # Best one so far, save it but keep looking for a better one
4162 ac_cv_path_GREP="$ac_path_GREP"
4163 ac_path_GREP_max=$ac_count
4165 # 10*(2^10) chars as input seems more than enough
4166 test $ac_count -gt 10 && break
4168 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4171 $ac_path_GREP_found && break 3
4176 if test -z "$ac_cv_path_GREP"; then
4177 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4180 ac_cv_path_GREP=$GREP
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4185 $as_echo "$ac_cv_path_GREP" >&6; }
4186 GREP="$ac_cv_path_GREP"
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4190 $as_echo_n "checking for egrep... " >&6; }
4191 if ${ac_cv_path_EGREP+:} false; then :
4192 $as_echo_n "(cached) " >&6
4194 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4195 then ac_cv_path_EGREP="$GREP -E"
4197 if test -z "$EGREP"; then
4198 ac_path_EGREP_found=false
4199 # Loop through the user's path and test for each of PROGNAME-LIST
4200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4201 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4204 test -z "$as_dir" && as_dir=.
4205 for ac_prog in egrep; do
4206 for ac_exec_ext in '' $ac_executable_extensions; do
4207 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4208 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4209 # Check for GNU ac_path_EGREP and select it if it is found.
4210 # Check for GNU $ac_path_EGREP
4211 case `"$ac_path_EGREP" --version 2>&1` in
4213 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4216 $as_echo_n 0123456789 >"conftest.in"
4219 cat "conftest.in" "conftest.in" >"conftest.tmp"
4220 mv "conftest.tmp" "conftest.in"
4221 cp "conftest.in" "conftest.nl"
4222 $as_echo 'EGREP' >> "conftest.nl"
4223 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4224 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4225 as_fn_arith $ac_count + 1 && ac_count=$as_val
4226 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4227 # Best one so far, save it but keep looking for a better one
4228 ac_cv_path_EGREP="$ac_path_EGREP"
4229 ac_path_EGREP_max=$ac_count
4231 # 10*(2^10) chars as input seems more than enough
4232 test $ac_count -gt 10 && break
4234 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4237 $ac_path_EGREP_found && break 3
4242 if test -z "$ac_cv_path_EGREP"; then
4243 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4246 ac_cv_path_EGREP=$EGREP
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4252 $as_echo "$ac_cv_path_EGREP" >&6; }
4253 EGREP="$ac_cv_path_EGREP"
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4257 $as_echo_n "checking for ANSI C header files... " >&6; }
4258 if ${ac_cv_header_stdc+:} false; then :
4259 $as_echo_n "(cached) " >&6
4261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4262 /* end confdefs.h. */
4276 if ac_fn_c_try_compile "$LINENO"; then :
4277 ac_cv_header_stdc=yes
4279 ac_cv_header_stdc=no
4281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4283 if test $ac_cv_header_stdc = yes; then
4284 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4286 /* end confdefs.h. */
4290 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4291 $EGREP "memchr" >/dev/null 2>&1; then :
4294 ac_cv_header_stdc=no
4300 if test $ac_cv_header_stdc = yes; then
4301 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4303 /* end confdefs.h. */
4307 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4308 $EGREP "free" >/dev/null 2>&1; then :
4311 ac_cv_header_stdc=no
4317 if test $ac_cv_header_stdc = yes; then
4318 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4319 if test "$cross_compiling" = yes; then :
4322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4323 /* end confdefs.h. */
4326 #if ((' ' & 0x0FF) == 0x020)
4327 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4328 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4330 # define ISLOWER(c) \
4331 (('a' <= (c) && (c) <= 'i') \
4332 || ('j' <= (c) && (c) <= 'r') \
4333 || ('s' <= (c) && (c) <= 'z'))
4334 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4337 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4342 for (i = 0; i < 256; i++)
4343 if (XOR (islower (i), ISLOWER (i))
4344 || toupper (i) != TOUPPER (i))
4349 if ac_fn_c_try_run "$LINENO"; then :
4352 ac_cv_header_stdc=no
4354 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4355 conftest.$ac_objext conftest.beam conftest.$ac_ext
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4361 $as_echo "$ac_cv_header_stdc" >&6; }
4362 if test $ac_cv_header_stdc = yes; then
4364 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4368 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4369 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4370 inttypes.h stdint.h unistd.h
4372 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4373 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4375 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4376 cat >>confdefs.h <<_ACEOF
4377 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4386 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4387 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4394 if test "$MINIX" = yes; then
4396 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4399 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4402 $as_echo "#define _MINIX 1" >>confdefs.h
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4408 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4409 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4410 $as_echo_n "(cached) " >&6
4412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4413 /* end confdefs.h. */
4415 # define __EXTENSIONS__ 1
4416 $ac_includes_default
4425 if ac_fn_c_try_compile "$LINENO"; then :
4426 ac_cv_safe_to_define___extensions__=yes
4428 ac_cv_safe_to_define___extensions__=no
4430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4433 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4434 test $ac_cv_safe_to_define___extensions__ = yes &&
4435 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4437 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4439 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4441 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4443 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
4448 $as_echo_n "checking whether NLS is requested... " >&6; }
4449 # Check whether --enable-nls was given.
4450 if test "${enable_nls+set}" = set; then :
4451 enableval=$enable_nls; USE_NLS=$enableval
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
4457 $as_echo "$USE_NLS" >&6; }
4462 GETTEXT_MACRO_VERSION=0.18
4467 # Prepare PATH_SEPARATOR.
4468 # The user is always right.
4469 if test "${PATH_SEPARATOR+set}" != set; then
4470 echo "#! /bin/sh" >conf$$.sh
4471 echo "exit 0" >>conf$$.sh
4473 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4481 # Find out how to test for executable files. Don't use a zero-byte file,
4482 # as systems may use methods other than mode bits to determine executability.
4483 cat >conf$$.file <<_ASEOF
4487 chmod +x conf$$.file
4488 if test -x conf$$.file >/dev/null 2>&1; then
4489 ac_executable_p="test -x"
4491 ac_executable_p="test -f"
4495 # Extract the first word of "msgfmt", so it can be a program name with args.
4496 set dummy msgfmt; ac_word=$2
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4498 $as_echo_n "checking for $ac_word... " >&6; }
4499 if ${ac_cv_path_MSGFMT+:} false; then :
4500 $as_echo_n "(cached) " >&6
4504 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4507 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4508 for ac_dir in $PATH; do
4510 test -z "$ac_dir" && ac_dir=.
4511 for ac_exec_ext in '' $ac_executable_extensions; do
4512 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4513 echo "$as_me: trying $ac_dir/$ac_word..." >&5
4514 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
4515 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4516 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4523 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4527 MSGFMT="$ac_cv_path_MSGFMT"
4528 if test "$MSGFMT" != ":"; then
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
4530 $as_echo "$MSGFMT" >&6; }
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4533 $as_echo "no" >&6; }
4536 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4537 set dummy gmsgfmt; ac_word=$2
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4539 $as_echo_n "checking for $ac_word... " >&6; }
4540 if ${ac_cv_path_GMSGFMT+:} false; then :
4541 $as_echo_n "(cached) " >&6
4545 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4552 test -z "$as_dir" && as_dir=.
4553 for ac_exec_ext in '' $ac_executable_extensions; do
4554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4555 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4563 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4567 GMSGFMT=$ac_cv_path_GMSGFMT
4568 if test -n "$GMSGFMT"; then
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
4570 $as_echo "$GMSGFMT" >&6; }
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4573 $as_echo "no" >&6; }
4578 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4579 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
4580 *) MSGFMT_015=$MSGFMT ;;
4583 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4584 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
4585 *) GMSGFMT_015=$GMSGFMT ;;
4590 # Prepare PATH_SEPARATOR.
4591 # The user is always right.
4592 if test "${PATH_SEPARATOR+set}" != set; then
4593 echo "#! /bin/sh" >conf$$.sh
4594 echo "exit 0" >>conf$$.sh
4596 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4604 # Find out how to test for executable files. Don't use a zero-byte file,
4605 # as systems may use methods other than mode bits to determine executability.
4606 cat >conf$$.file <<_ASEOF
4610 chmod +x conf$$.file
4611 if test -x conf$$.file >/dev/null 2>&1; then
4612 ac_executable_p="test -x"
4614 ac_executable_p="test -f"
4618 # Extract the first word of "xgettext", so it can be a program name with args.
4619 set dummy xgettext; ac_word=$2
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4621 $as_echo_n "checking for $ac_word... " >&6; }
4622 if ${ac_cv_path_XGETTEXT+:} false; then :
4623 $as_echo_n "(cached) " >&6
4627 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4630 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4631 for ac_dir in $PATH; do
4633 test -z "$ac_dir" && ac_dir=.
4634 for ac_exec_ext in '' $ac_executable_extensions; do
4635 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4636 echo "$as_me: trying $ac_dir/$ac_word..." >&5
4637 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
4638 (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
4639 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
4646 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4650 XGETTEXT="$ac_cv_path_XGETTEXT"
4651 if test "$XGETTEXT" != ":"; then
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
4653 $as_echo "$XGETTEXT" >&6; }
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4656 $as_echo "no" >&6; }
4661 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4662 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
4663 *) XGETTEXT_015=$XGETTEXT ;;
4668 # Prepare PATH_SEPARATOR.
4669 # The user is always right.
4670 if test "${PATH_SEPARATOR+set}" != set; then
4671 echo "#! /bin/sh" >conf$$.sh
4672 echo "exit 0" >>conf$$.sh
4674 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4682 # Find out how to test for executable files. Don't use a zero-byte file,
4683 # as systems may use methods other than mode bits to determine executability.
4684 cat >conf$$.file <<_ASEOF
4688 chmod +x conf$$.file
4689 if test -x conf$$.file >/dev/null 2>&1; then
4690 ac_executable_p="test -x"
4692 ac_executable_p="test -f"
4696 # Extract the first word of "msgmerge", so it can be a program name with args.
4697 set dummy msgmerge; ac_word=$2
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4699 $as_echo_n "checking for $ac_word... " >&6; }
4700 if ${ac_cv_path_MSGMERGE+:} false; then :
4701 $as_echo_n "(cached) " >&6
4705 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
4708 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4709 for ac_dir in $PATH; do
4711 test -z "$ac_dir" && ac_dir=.
4712 for ac_exec_ext in '' $ac_executable_extensions; do
4713 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4714 echo "$as_me: trying $ac_dir/$ac_word..." >&5
4715 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
4716 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
4723 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
4727 MSGMERGE="$ac_cv_path_MSGMERGE"
4728 if test "$MSGMERGE" != ":"; then
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
4730 $as_echo "$MSGMERGE" >&6; }
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4733 $as_echo "no" >&6; }
4737 test -n "$localedir" || localedir='${datadir}/locale'
4740 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
4743 ac_config_commands="$ac_config_commands po-directories"
4746 # Make sure we can run config.sub.
4747 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4748 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4751 $as_echo_n "checking build system type... " >&6; }
4752 if ${ac_cv_build+:} false; then :
4753 $as_echo_n "(cached) " >&6
4755 ac_build_alias=$build_alias
4756 test "x$ac_build_alias" = x &&
4757 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4758 test "x$ac_build_alias" = x &&
4759 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4760 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4761 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4765 $as_echo "$ac_cv_build" >&6; }
4766 case $ac_cv_build in
4768 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4771 ac_save_IFS=$IFS; IFS='-'
4777 # Remember, the first character of IFS is used to create $*,
4778 # except with old shells:
4781 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4785 $as_echo_n "checking host system type... " >&6; }
4786 if ${ac_cv_host+:} false; then :
4787 $as_echo_n "(cached) " >&6
4789 if test "x$host_alias" = x; then
4790 ac_cv_host=$ac_cv_build
4792 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4793 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4798 $as_echo "$ac_cv_host" >&6; }
4801 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4804 ac_save_IFS=$IFS; IFS='-'
4810 # Remember, the first character of IFS is used to create $*,
4811 # except with old shells:
4814 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
4819 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
4820 if ${ac_cv_gnu_library_2+:} false; then :
4821 $as_echo_n "(cached) " >&6
4823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4824 /* end confdefs.h. */
4826 #include <features.h>
4827 #ifdef __GNU_LIBRARY__
4828 #if (__GLIBC__ >= 2)
4834 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4835 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
4836 ac_cv_gnu_library_2=yes
4838 ac_cv_gnu_library_2=no
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
4846 $as_echo "$ac_cv_gnu_library_2" >&6; }
4848 GLIBC2="$ac_cv_gnu_library_2"
4851 if test -n "$ac_tool_prefix"; then
4852 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4853 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4855 $as_echo_n "checking for $ac_word... " >&6; }
4856 if ${ac_cv_prog_RANLIB+:} false; then :
4857 $as_echo_n "(cached) " >&6
4859 if test -n "$RANLIB"; then
4860 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4866 test -z "$as_dir" && as_dir=.
4867 for ac_exec_ext in '' $ac_executable_extensions; do
4868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4869 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4879 RANLIB=$ac_cv_prog_RANLIB
4880 if test -n "$RANLIB"; then
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4882 $as_echo "$RANLIB" >&6; }
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4885 $as_echo "no" >&6; }
4890 if test -z "$ac_cv_prog_RANLIB"; then
4891 ac_ct_RANLIB=$RANLIB
4892 # Extract the first word of "ranlib", so it can be a program name with args.
4893 set dummy ranlib; ac_word=$2
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4895 $as_echo_n "checking for $ac_word... " >&6; }
4896 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4897 $as_echo_n "(cached) " >&6
4899 if test -n "$ac_ct_RANLIB"; then
4900 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4906 test -z "$as_dir" && as_dir=.
4907 for ac_exec_ext in '' $ac_executable_extensions; do
4908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4909 ac_cv_prog_ac_ct_RANLIB="ranlib"
4910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4919 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4920 if test -n "$ac_ct_RANLIB"; then
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4922 $as_echo "$ac_ct_RANLIB" >&6; }
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4925 $as_echo "no" >&6; }
4928 if test "x$ac_ct_RANLIB" = x; then
4931 case $cross_compiling:$ac_tool_warned in
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4934 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4935 ac_tool_warned=yes ;;
4937 RANLIB=$ac_ct_RANLIB
4940 RANLIB="$ac_cv_prog_RANLIB"
4947 if test -n "$GCC"; then
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
4949 $as_echo_n "checking whether the -Werror option is usable... " >&6; }
4950 if ${gl_cv_cc_vis_werror+:} false; then :
4951 $as_echo_n "(cached) " >&6
4954 gl_save_CFLAGS="$CFLAGS"
4955 CFLAGS="$CFLAGS -Werror"
4956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4957 /* end confdefs.h. */
4967 if ac_fn_c_try_compile "$LINENO"; then :
4968 gl_cv_cc_vis_werror=yes
4970 gl_cv_cc_vis_werror=no
4972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4973 CFLAGS="$gl_save_CFLAGS"
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
4977 $as_echo "$gl_cv_cc_vis_werror" >&6; }
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
4979 $as_echo_n "checking for simple visibility declarations... " >&6; }
4980 if ${gl_cv_cc_visibility+:} false; then :
4981 $as_echo_n "(cached) " >&6
4984 gl_save_CFLAGS="$CFLAGS"
4985 CFLAGS="$CFLAGS -fvisibility=hidden"
4986 if test $gl_cv_cc_vis_werror = yes; then
4987 CFLAGS="$CFLAGS -Werror"
4989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4990 /* end confdefs.h. */
4991 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
4992 extern __attribute__((__visibility__("default"))) int exportedvar;
4993 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
4994 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
4995 void dummyfunc (void) {}
5004 if ac_fn_c_try_compile "$LINENO"; then :
5005 gl_cv_cc_visibility=yes
5007 gl_cv_cc_visibility=no
5009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5010 CFLAGS="$gl_save_CFLAGS"
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
5014 $as_echo "$gl_cv_cc_visibility" >&6; }
5015 if test $gl_cv_cc_visibility = yes; then
5016 CFLAG_VISIBILITY="-fvisibility=hidden"
5023 cat >>confdefs.h <<_ACEOF
5024 #define HAVE_VISIBILITY $HAVE_VISIBILITY
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5029 $as_echo_n "checking for inline... " >&6; }
5030 if ${ac_cv_c_inline+:} false; then :
5031 $as_echo_n "(cached) " >&6
5034 for ac_kw in inline __inline__ __inline; do
5035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5036 /* end confdefs.h. */
5039 static $ac_kw foo_t static_foo () {return 0; }
5040 $ac_kw foo_t foo () {return 0; }
5044 if ac_fn_c_try_compile "$LINENO"; then :
5045 ac_cv_c_inline=$ac_kw
5047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5048 test "$ac_cv_c_inline" != no && break
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5053 $as_echo "$ac_cv_c_inline" >&6; }
5055 case $ac_cv_c_inline in
5058 case $ac_cv_c_inline in
5060 *) ac_val=$ac_cv_c_inline;;
5062 cat >>confdefs.h <<_ACEOF
5064 #define inline $ac_val
5070 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5071 if test "x$ac_cv_type_size_t" = xyes; then :
5075 cat >>confdefs.h <<_ACEOF
5076 #define size_t unsigned int
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
5083 $as_echo_n "checking for stdint.h... " >&6; }
5084 if ${gl_cv_header_stdint_h+:} false; then :
5085 $as_echo_n "(cached) " >&6
5087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5088 /* end confdefs.h. */
5089 #include <sys/types.h>
5094 uintmax_t i = (uintmax_t) -1; return !i;
5099 if ac_fn_c_try_compile "$LINENO"; then :
5100 gl_cv_header_stdint_h=yes
5102 gl_cv_header_stdint_h=no
5104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
5107 $as_echo "$gl_cv_header_stdint_h" >&6; }
5108 if test $gl_cv_header_stdint_h = yes; then
5110 cat >>confdefs.h <<_ACEOF
5111 #define HAVE_STDINT_H_WITH_UINTMAX 1
5116 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5117 # for constant arguments. Useless!
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5119 $as_echo_n "checking for working alloca.h... " >&6; }
5120 if ${ac_cv_working_alloca_h+:} false; then :
5121 $as_echo_n "(cached) " >&6
5123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5124 /* end confdefs.h. */
5129 char *p = (char *) alloca (2 * sizeof (int));
5135 if ac_fn_c_try_link "$LINENO"; then :
5136 ac_cv_working_alloca_h=yes
5138 ac_cv_working_alloca_h=no
5140 rm -f core conftest.err conftest.$ac_objext \
5141 conftest$ac_exeext conftest.$ac_ext
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5144 $as_echo "$ac_cv_working_alloca_h" >&6; }
5145 if test $ac_cv_working_alloca_h = yes; then
5147 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5152 $as_echo_n "checking for alloca... " >&6; }
5153 if ${ac_cv_func_alloca_works+:} false; then :
5154 $as_echo_n "(cached) " >&6
5156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5157 /* end confdefs.h. */
5159 # define alloca __builtin_alloca
5162 # include <malloc.h>
5163 # define alloca _alloca
5165 # ifdef HAVE_ALLOCA_H
5166 # include <alloca.h>
5171 # ifndef alloca /* predefined by HP cc +Olibcalls */
5172 void *alloca (size_t);
5182 char *p = (char *) alloca (1);
5188 if ac_fn_c_try_link "$LINENO"; then :
5189 ac_cv_func_alloca_works=yes
5191 ac_cv_func_alloca_works=no
5193 rm -f core conftest.err conftest.$ac_objext \
5194 conftest$ac_exeext conftest.$ac_ext
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5197 $as_echo "$ac_cv_func_alloca_works" >&6; }
5199 if test $ac_cv_func_alloca_works = yes; then
5201 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
5204 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5205 # that cause trouble. Some versions do not even contain alloca or
5206 # contain a buggy version. If you still want to use their alloca,
5207 # use ar to extract alloca.o from them instead of compiling alloca.c.
5209 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5211 $as_echo "#define C_ALLOCA 1" >>confdefs.h
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
5215 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
5216 if ${ac_cv_os_cray+:} false; then :
5217 $as_echo_n "(cached) " >&6
5219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5220 /* end confdefs.h. */
5221 #if defined CRAY && ! defined CRAY2
5228 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5229 $EGREP "webecray" >/dev/null 2>&1; then :
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5238 $as_echo "$ac_cv_os_cray" >&6; }
5239 if test $ac_cv_os_cray = yes; then
5240 for ac_func in _getb67 GETB67 getb67; do
5241 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5242 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5243 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5245 cat >>confdefs.h <<_ACEOF
5246 #define CRAY_STACKSEG_END $ac_func
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5256 $as_echo_n "checking stack direction for C alloca... " >&6; }
5257 if ${ac_cv_c_stack_direction+:} false; then :
5258 $as_echo_n "(cached) " >&6
5260 if test "$cross_compiling" = yes; then :
5261 ac_cv_c_stack_direction=0
5263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5264 /* end confdefs.h. */
5265 $ac_includes_default
5267 find_stack_direction ()
5269 static char *addr = 0;
5274 return find_stack_direction ();
5277 return (&dummy > addr) ? 1 : -1;
5283 return find_stack_direction () < 0;
5286 if ac_fn_c_try_run "$LINENO"; then :
5287 ac_cv_c_stack_direction=1
5289 ac_cv_c_stack_direction=-1
5291 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5292 conftest.$ac_objext conftest.beam conftest.$ac_ext
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5297 $as_echo "$ac_cv_c_stack_direction" >&6; }
5298 cat >>confdefs.h <<_ACEOF
5299 #define STACK_DIRECTION $ac_cv_c_stack_direction
5308 for ac_header in $ac_header_list
5310 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5311 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5313 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5314 cat >>confdefs.h <<_ACEOF
5315 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5329 for ac_func in getpagesize
5331 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
5332 if test "x$ac_cv_func_getpagesize" = xyes; then :
5333 cat >>confdefs.h <<_ACEOF
5334 #define HAVE_GETPAGESIZE 1
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
5341 $as_echo_n "checking for working mmap... " >&6; }
5342 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
5343 $as_echo_n "(cached) " >&6
5345 if test "$cross_compiling" = yes; then :
5346 ac_cv_func_mmap_fixed_mapped=no
5348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5349 /* end confdefs.h. */
5350 $ac_includes_default
5351 /* malloc might have been renamed as rpl_malloc. */
5354 /* Thanks to Mike Haertel and Jim Avera for this test.
5355 Here is a matrix of mmap possibilities:
5356 mmap private not fixed
5357 mmap private fixed at somewhere currently unmapped
5358 mmap private fixed at somewhere already mapped
5359 mmap shared not fixed
5360 mmap shared fixed at somewhere currently unmapped
5361 mmap shared fixed at somewhere already mapped
5362 For private mappings, we should verify that changes cannot be read()
5363 back from the file, nor mmap's back from the file at a different
5364 address. (There have been systems where private was not correctly
5365 implemented like the infamous i386 svr4.0, and systems where the
5366 VM page cache was not coherent with the file system buffer cache
5367 like early versions of FreeBSD and possibly contemporary NetBSD.)
5368 For shared mappings, we should conversely verify that changes get
5369 propagated back to all the places they're supposed to be.
5371 Grep wants private fixed already mapped.
5372 The main things grep needs to know about mmap are:
5373 * does it exist and is it safe to write into the mmap'd area
5374 * how to use it (BSD variants) */
5377 #include <sys/mman.h>
5379 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
5383 /* This mess was copied from the GNU getpagesize.h. */
5384 #ifndef HAVE_GETPAGESIZE
5385 # ifdef _SC_PAGESIZE
5386 # define getpagesize() sysconf(_SC_PAGESIZE)
5387 # else /* no _SC_PAGESIZE */
5388 # ifdef HAVE_SYS_PARAM_H
5389 # include <sys/param.h>
5390 # ifdef EXEC_PAGESIZE
5391 # define getpagesize() EXEC_PAGESIZE
5392 # else /* no EXEC_PAGESIZE */
5394 # define getpagesize() NBPG * CLSIZE
5397 # endif /* no CLSIZE */
5398 # else /* no NBPG */
5400 # define getpagesize() NBPC
5401 # else /* no NBPC */
5403 # define getpagesize() PAGESIZE
5404 # endif /* PAGESIZE */
5405 # endif /* no NBPC */
5406 # endif /* no NBPG */
5407 # endif /* no EXEC_PAGESIZE */
5408 # else /* no HAVE_SYS_PARAM_H */
5409 # define getpagesize() 8192 /* punt totally */
5410 # endif /* no HAVE_SYS_PARAM_H */
5411 # endif /* no _SC_PAGESIZE */
5413 #endif /* no HAVE_GETPAGESIZE */
5418 char *data, *data2, *data3;
5423 pagesize = getpagesize ();
5425 /* First, make a file with some known garbage in it. */
5426 data = (char *) malloc (pagesize);
5429 for (i = 0; i < pagesize; ++i)
5430 *(data + i) = rand ();
5432 fd = creat ("conftest.mmap", 0600);
5435 if (write (fd, data, pagesize) != pagesize)
5439 /* Next, check that the tail of a page is zero-filled. File must have
5440 non-zero length, otherwise we risk SIGBUS for entire page. */
5441 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
5445 if (write (fd2, cdata2, 1) != 1)
5447 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
5448 if (data2 == MAP_FAILED)
5450 for (i = 0; i < pagesize; ++i)
5454 if (munmap (data2, pagesize))
5457 /* Next, try to mmap the file at a fixed address which already has
5458 something else allocated at it. If we can, also make sure that
5459 we see the same garbage. */
5460 fd = open ("conftest.mmap", O_RDWR);
5463 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
5464 MAP_PRIVATE | MAP_FIXED, fd, 0L))
5466 for (i = 0; i < pagesize; ++i)
5467 if (*(data + i) != *(data2 + i))
5470 /* Finally, make sure that changes to the mapped area do not
5471 percolate back to the file as seen by read(). (This is a bug on
5472 some variants of i386 svr4.0.) */
5473 for (i = 0; i < pagesize; ++i)
5474 *(data2 + i) = *(data2 + i) + 1;
5475 data3 = (char *) malloc (pagesize);
5478 if (read (fd, data3, pagesize) != pagesize)
5480 for (i = 0; i < pagesize; ++i)
5481 if (*(data + i) != *(data3 + i))
5487 if ac_fn_c_try_run "$LINENO"; then :
5488 ac_cv_func_mmap_fixed_mapped=yes
5490 ac_cv_func_mmap_fixed_mapped=no
5492 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5493 conftest.$ac_objext conftest.beam conftest.$ac_ext
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
5498 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
5499 if test $ac_cv_func_mmap_fixed_mapped = yes; then
5501 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
5504 rm -f conftest.mmap conftest.txt
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
5509 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
5510 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
5511 $as_echo_n "(cached) " >&6
5514 gt_cv_int_divbyzero_sigfpe=
5516 macos* | darwin[6-9]* | darwin[1-9][0-9]*)
5517 # On MacOS X 10.2 or newer, just assume the same as when cross-
5518 # compiling. If we were to perform the real test, 1 Crash Report
5519 # dialog window would pop up.
5521 i[34567]86 | x86_64)
5522 gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
5526 if test -z "$gt_cv_int_divbyzero_sigfpe"; then
5527 if test "$cross_compiling" = yes; then :
5529 # Guess based on the CPU.
5531 alpha* | i[34567]86 | x86_64 | m68k | s390*)
5532 gt_cv_int_divbyzero_sigfpe="guessing yes";;
5534 gt_cv_int_divbyzero_sigfpe="guessing no";;
5538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5539 /* end confdefs.h. */
5545 sigfpe_handler (int sig)
5547 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
5548 exit (sig != SIGFPE);
5558 signal (SIGFPE, sigfpe_handler);
5559 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
5560 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
5561 signal (SIGTRAP, sigfpe_handler);
5563 /* Linux/SPARC yields signal SIGILL. */
5564 #if defined (__sparc__) && defined (__linux__)
5565 signal (SIGILL, sigfpe_handler);
5574 if ac_fn_c_try_run "$LINENO"; then :
5575 gt_cv_int_divbyzero_sigfpe=yes
5577 gt_cv_int_divbyzero_sigfpe=no
5579 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5580 conftest.$ac_objext conftest.beam conftest.$ac_ext
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
5587 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
5588 case "$gt_cv_int_divbyzero_sigfpe" in
5593 cat >>confdefs.h <<_ACEOF
5594 #define INTDIV0_RAISES_SIGFPE $value
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
5600 $as_echo_n "checking for inttypes.h... " >&6; }
5601 if ${gl_cv_header_inttypes_h+:} false; then :
5602 $as_echo_n "(cached) " >&6
5604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5605 /* end confdefs.h. */
5606 #include <sys/types.h>
5607 #include <inttypes.h>
5611 uintmax_t i = (uintmax_t) -1; return !i;
5616 if ac_fn_c_try_compile "$LINENO"; then :
5617 gl_cv_header_inttypes_h=yes
5619 gl_cv_header_inttypes_h=no
5621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
5624 $as_echo "$gl_cv_header_inttypes_h" >&6; }
5625 if test $gl_cv_header_inttypes_h = yes; then
5627 cat >>confdefs.h <<_ACEOF
5628 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
5635 $as_echo_n "checking for unsigned long long int... " >&6; }
5636 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
5637 $as_echo_n "(cached) " >&6
5639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5640 /* end confdefs.h. */
5642 /* For now, do not test the preprocessor; as of 2007 there are too many
5643 implementations with broken preprocessors. Perhaps this can
5644 be revisited in 2012. In the meantime, code should not expect
5645 #if to work with literals wider than 32 bits. */
5646 /* Test literals. */
5647 long long int ll = 9223372036854775807ll;
5648 long long int nll = -9223372036854775807LL;
5649 unsigned long long int ull = 18446744073709551615ULL;
5650 /* Test constant expressions. */
5651 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5653 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5659 /* Test availability of runtime routines for shift and division. */
5660 long long int llmax = 9223372036854775807ll;
5661 unsigned long long int ullmax = 18446744073709551615ull;
5662 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5663 | (llmax / ll) | (llmax % ll)
5664 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5665 | (ullmax / ull) | (ullmax % ull));
5671 if ac_fn_c_try_link "$LINENO"; then :
5672 ac_cv_type_unsigned_long_long_int=yes
5674 ac_cv_type_unsigned_long_long_int=no
5676 rm -f core conftest.err conftest.$ac_objext \
5677 conftest$ac_exeext conftest.$ac_ext
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
5680 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
5681 if test $ac_cv_type_unsigned_long_long_int = yes; then
5683 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
5690 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
5692 test $ac_cv_type_unsigned_long_long_int = yes \
5693 && ac_type='unsigned long long' \
5694 || ac_type='unsigned long'
5696 cat >>confdefs.h <<_ACEOF
5697 #define uintmax_t $ac_type
5702 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
5707 for ac_header in inttypes.h
5709 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
5710 if test "x$ac_cv_header_inttypes_h" = xyes; then :
5711 cat >>confdefs.h <<_ACEOF
5712 #define HAVE_INTTYPES_H 1
5719 if test $ac_cv_header_inttypes_h = yes; then
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
5721 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
5722 if ${gt_cv_inttypes_pri_broken+:} false; then :
5723 $as_echo_n "(cached) " >&6
5726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5727 /* end confdefs.h. */
5728 #include <inttypes.h>
5741 if ac_fn_c_try_compile "$LINENO"; then :
5742 gt_cv_inttypes_pri_broken=no
5744 gt_cv_inttypes_pri_broken=yes
5746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
5750 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
5752 if test "$gt_cv_inttypes_pri_broken" = yes; then
5754 cat >>confdefs.h <<_ACEOF
5755 #define PRI_MACROS_BROKEN 1
5769 # Check whether --enable-threads was given.
5770 if test "${enable_threads+set}" = set; then :
5771 enableval=$enable_threads; gl_use_threads=$enableval
5773 if test -n "$gl_use_threads_default"; then
5774 gl_use_threads="$gl_use_threads_default"
5777 osf*) gl_use_threads=no ;;
5780 1.[0-5].*) gl_use_threads=no ;;
5781 *) gl_use_threads=yes ;;
5784 *) gl_use_threads=yes ;;
5790 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
5791 # For using <pthread.h>:
5794 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
5795 # groks <pthread.h>. cc also understands the flag -pthread, but
5796 # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
5797 # 2. putting a flag into CPPFLAGS that has an effect on the linker
5798 # causes the AC_TRY_LINK test below to succeed unexpectedly,
5799 # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
5800 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
5803 # Some systems optimize for single-threaded programs by default, and
5804 # need special flags to disable these optimizations. For example, the
5805 # definition of 'errno' in <errno.h>.
5807 aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
5808 solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
5816 if test "X$prefix" = "XNONE"; then
5817 acl_final_prefix="$ac_default_prefix"
5819 acl_final_prefix="$prefix"
5821 if test "X$exec_prefix" = "XNONE"; then
5822 acl_final_exec_prefix='${prefix}'
5824 acl_final_exec_prefix="$exec_prefix"
5826 acl_save_prefix="$prefix"
5827 prefix="$acl_final_prefix"
5828 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5829 prefix="$acl_save_prefix"
5832 # Check whether --with-gnu-ld was given.
5833 if test "${with_gnu_ld+set}" = set; then :
5834 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5839 # Prepare PATH_SEPARATOR.
5840 # The user is always right.
5841 if test "${PATH_SEPARATOR+set}" != set; then
5842 echo "#! /bin/sh" >conf$$.sh
5843 echo "exit 0" >>conf$$.sh
5845 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5853 if test "$GCC" = yes; then
5854 # Check if gcc -print-prog-name=ld gives a path.
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
5856 $as_echo_n "checking for ld used by GCC... " >&6; }
5859 # gcc leaves a trailing carriage return which upsets mingw
5860 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5862 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5865 # Accept absolute paths.
5866 [\\/]* | [A-Za-z]:[\\/]*)
5867 re_direlt='/[^/][^/]*/\.\./'
5868 # Canonicalize the path of ld
5869 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5870 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5871 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5873 test -z "$LD" && LD="$ac_prog"
5876 # If it fails, then pretend we aren't using GCC.
5880 # If it is relative, then search for the first ld in PATH.
5884 elif test "$with_gnu_ld" = yes; then
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5886 $as_echo_n "checking for GNU ld... " >&6; }
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5889 $as_echo_n "checking for non-GNU ld... " >&6; }
5891 if ${acl_cv_path_LD+:} false; then :
5892 $as_echo_n "(cached) " >&6
5894 if test -z "$LD"; then
5895 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5896 for ac_dir in $PATH; do
5897 test -z "$ac_dir" && ac_dir=.
5898 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5899 acl_cv_path_LD="$ac_dir/$ac_prog"
5900 # Check to see if the program is GNU ld. I'd rather use --version,
5901 # but apparently some GNU ld's only accept -v.
5902 # Break only if it was the GNU/non-GNU ld that we prefer.
5903 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
5904 *GNU* | *'with BFD'*)
5905 test "$with_gnu_ld" != no && break ;;
5907 test "$with_gnu_ld" != yes && break ;;
5913 acl_cv_path_LD="$LD" # Let the user override the test with a path.
5917 LD="$acl_cv_path_LD"
5918 if test -n "$LD"; then
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5920 $as_echo "$LD" >&6; }
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5923 $as_echo "no" >&6; }
5925 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5927 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5928 if ${acl_cv_prog_gnu_ld+:} false; then :
5929 $as_echo_n "(cached) " >&6
5931 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5932 case `$LD -v 2>&1 </dev/null` in
5933 *GNU* | *'with BFD'*)
5934 acl_cv_prog_gnu_ld=yes ;;
5936 acl_cv_prog_gnu_ld=no ;;
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
5940 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
5941 with_gnu_ld=$acl_cv_prog_gnu_ld
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
5947 $as_echo_n "checking for shared library run path origin... " >&6; }
5948 if ${acl_cv_rpath+:} false; then :
5949 $as_echo_n "(cached) " >&6
5952 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5953 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
5960 $as_echo "$acl_cv_rpath" >&6; }
5962 acl_libext="$acl_cv_libext"
5963 acl_shlibext="$acl_cv_shlibext"
5964 acl_libname_spec="$acl_cv_libname_spec"
5965 acl_library_names_spec="$acl_cv_library_names_spec"
5966 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5967 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5968 acl_hardcode_direct="$acl_cv_hardcode_direct"
5969 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
5970 # Check whether --enable-rpath was given.
5971 if test "${enable_rpath+set}" = set; then :
5972 enableval=$enable_rpath; :
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
5985 $as_echo_n "checking for 64-bit host... " >&6; }
5986 if ${gl_cv_solaris_64bit+:} false; then :
5987 $as_echo_n "(cached) " >&6
5989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5990 /* end confdefs.h. */
5997 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5998 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
5999 gl_cv_solaris_64bit=yes
6001 gl_cv_solaris_64bit=no
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
6008 $as_echo "$gl_cv_solaris_64bit" >&6; }
6009 if test $gl_cv_solaris_64bit = yes; then
6010 acl_libdirstem=lib/64
6012 sparc*) acl_libdirstem2=lib/sparcv9 ;;
6013 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
6018 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
6019 if test -n "$searchpath"; then
6020 acl_save_IFS="${IFS= }"; IFS=":"
6021 for searchdir in $searchpath; do
6022 if test -d "$searchdir"; then
6023 case "$searchdir" in
6024 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
6026 # Better ignore directories of this form. They are misleading.
6028 *) searchdir=`cd "$searchdir" && pwd`
6029 case "$searchdir" in
6030 */lib64 ) acl_libdirstem=lib64 ;;
6039 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
6048 if test "$gl_use_threads" != no; then
6049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
6050 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
6051 if ${gl_cv_have_weak+:} false; then :
6052 $as_echo_n "(cached) " >&6
6055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6056 /* end confdefs.h. */
6057 extern void xyzzy ();
6067 if ac_fn_c_try_link "$LINENO"; then :
6068 gl_cv_have_weak=maybe
6070 rm -f core conftest.err conftest.$ac_objext \
6071 conftest$ac_exeext conftest.$ac_ext
6072 if test $gl_cv_have_weak = maybe; then
6073 if test "$cross_compiling" = yes; then :
6074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6075 /* end confdefs.h. */
6077 Extensible Linking Format
6081 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6082 $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
6083 gl_cv_have_weak="guessing yes"
6085 gl_cv_have_weak="guessing no"
6091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6092 /* end confdefs.h. */
6098 return (fputs == NULL);
6101 if ac_fn_c_try_run "$LINENO"; then :
6106 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6107 conftest.$ac_objext conftest.beam conftest.$ac_ext
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
6114 $as_echo "$gl_cv_have_weak" >&6; }
6115 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
6116 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
6117 # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
6118 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
6119 if test "x$ac_cv_header_pthread_h" = xyes; then :
6120 gl_have_pthread_h=yes
6122 gl_have_pthread_h=no
6126 if test "$gl_have_pthread_h" = yes; then
6127 # Other possible tests:
6128 # -lpthreads (FSU threads, PCthreads)
6131 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
6132 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
6133 # the second one only in libpthread, and lock.c needs it.
6134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6135 /* end confdefs.h. */
6136 #include <pthread.h>
6140 pthread_mutex_lock((pthread_mutex_t*)0);
6141 pthread_mutexattr_init((pthread_mutexattr_t*)0);
6146 if ac_fn_c_try_link "$LINENO"; then :
6149 rm -f core conftest.err conftest.$ac_objext \
6150 conftest$ac_exeext conftest.$ac_ext
6151 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
6152 # since it is defined as a macro on OSF/1.)
6153 if test -n "$gl_have_pthread"; then
6154 # The program links fine without libpthread. But it may actually
6155 # need to link with libpthread in order to create multiple threads.
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
6157 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
6158 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
6159 $as_echo_n "(cached) " >&6
6161 ac_check_lib_save_LIBS=$LIBS
6162 LIBS="-lpthread $LIBS"
6163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6164 /* end confdefs.h. */
6166 /* Override any GCC internal prototype to avoid an error.
6167 Use char because int might match the return type of a GCC
6168 builtin and then its argument prototype would still apply. */
6172 char pthread_kill ();
6176 return pthread_kill ();
6181 if ac_fn_c_try_link "$LINENO"; then :
6182 ac_cv_lib_pthread_pthread_kill=yes
6184 ac_cv_lib_pthread_pthread_kill=no
6186 rm -f core conftest.err conftest.$ac_objext \
6187 conftest$ac_exeext conftest.$ac_ext
6188 LIBS=$ac_check_lib_save_LIBS
6190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
6191 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
6192 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
6193 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
6194 # On Solaris and HP-UX, most pthread functions exist also in libc.
6195 # Therefore pthread_in_use() needs to actually try to create a
6196 # thread: pthread_create from libc will fail, whereas
6197 # pthread_create will actually create a thread.
6201 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
6208 # Some library is needed. Try libpthread and libc_r.
6209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
6210 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
6211 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
6212 $as_echo_n "(cached) " >&6
6214 ac_check_lib_save_LIBS=$LIBS
6215 LIBS="-lpthread $LIBS"
6216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6217 /* end confdefs.h. */
6219 /* Override any GCC internal prototype to avoid an error.
6220 Use char because int might match the return type of a GCC
6221 builtin and then its argument prototype would still apply. */
6225 char pthread_kill ();
6229 return pthread_kill ();
6234 if ac_fn_c_try_link "$LINENO"; then :
6235 ac_cv_lib_pthread_pthread_kill=yes
6237 ac_cv_lib_pthread_pthread_kill=no
6239 rm -f core conftest.err conftest.$ac_objext \
6240 conftest$ac_exeext conftest.$ac_ext
6241 LIBS=$ac_check_lib_save_LIBS
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
6244 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
6245 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
6247 LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
6248 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
6251 if test -z "$gl_have_pthread"; then
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
6254 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
6255 if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
6256 $as_echo_n "(cached) " >&6
6258 ac_check_lib_save_LIBS=$LIBS
6260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6261 /* end confdefs.h. */
6263 /* Override any GCC internal prototype to avoid an error.
6264 Use char because int might match the return type of a GCC
6265 builtin and then its argument prototype would still apply. */
6269 char pthread_kill ();
6273 return pthread_kill ();
6278 if ac_fn_c_try_link "$LINENO"; then :
6279 ac_cv_lib_c_r_pthread_kill=yes
6281 ac_cv_lib_c_r_pthread_kill=no
6283 rm -f core conftest.err conftest.$ac_objext \
6284 conftest$ac_exeext conftest.$ac_ext
6285 LIBS=$ac_check_lib_save_LIBS
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
6288 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
6289 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
6291 LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
6292 LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
6297 if test -n "$gl_have_pthread"; then
6298 gl_threads_api=posix
6300 $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
6302 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
6303 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
6305 $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
6314 if test -z "$gl_have_pthread"; then
6315 if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
6316 gl_have_solaristhread=
6317 gl_save_LIBS="$LIBS"
6318 LIBS="$LIBS -lthread"
6319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6320 /* end confdefs.h. */
6331 if ac_fn_c_try_link "$LINENO"; then :
6332 gl_have_solaristhread=yes
6334 rm -f core conftest.err conftest.$ac_objext \
6335 conftest$ac_exeext conftest.$ac_ext
6336 LIBS="$gl_save_LIBS"
6337 if test -n "$gl_have_solaristhread"; then
6338 gl_threads_api=solaris
6340 LTLIBTHREAD=-lthread
6341 LIBMULTITHREAD="$LIBTHREAD"
6342 LTLIBMULTITHREAD="$LTLIBTHREAD"
6344 $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
6346 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
6348 $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
6356 if test "$gl_use_threads" = pth; then
6357 gl_save_CPPFLAGS="$CPPFLAGS"
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
6364 $as_echo_n "checking how to link with libpth... " >&6; }
6365 if ${ac_cv_libpth_libs+:} false; then :
6366 $as_echo_n "(cached) " >&6
6378 acl_save_prefix="$prefix"
6379 prefix="$acl_final_prefix"
6380 acl_save_exec_prefix="$exec_prefix"
6381 exec_prefix="$acl_final_exec_prefix"
6383 eval additional_includedir=\"$includedir\"
6384 eval additional_libdir=\"$libdir\"
6386 exec_prefix="$acl_save_exec_prefix"
6387 prefix="$acl_save_prefix"
6390 # Check whether --with-libpth-prefix was given.
6391 if test "${with_libpth_prefix+set}" = set; then :
6392 withval=$with_libpth_prefix;
6393 if test "X$withval" = "Xno"; then
6396 if test "X$withval" = "X"; then
6398 acl_save_prefix="$prefix"
6399 prefix="$acl_final_prefix"
6400 acl_save_exec_prefix="$exec_prefix"
6401 exec_prefix="$acl_final_exec_prefix"
6403 eval additional_includedir=\"$includedir\"
6404 eval additional_libdir=\"$libdir\"
6406 exec_prefix="$acl_save_exec_prefix"
6407 prefix="$acl_save_prefix"
6410 additional_includedir="$withval/include"
6411 additional_libdir="$withval/$acl_libdirstem"
6412 if test "$acl_libdirstem2" != "$acl_libdirstem" \
6413 && ! test -d "$withval/$acl_libdirstem"; then
6414 additional_libdir="$withval/$acl_libdirstem2"
6428 names_already_handled=
6429 names_next_round='pth '
6430 while test -n "$names_next_round"; do
6431 names_this_round="$names_next_round"
6433 for name in $names_this_round; do
6435 for n in $names_already_handled; do
6436 if test "$n" = "$name"; then
6441 if test -z "$already_handled"; then
6442 names_already_handled="$names_already_handled $name"
6443 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6444 eval value=\"\$HAVE_LIB$uppername\"
6445 if test -n "$value"; then
6446 if test "$value" = yes; then
6447 eval value=\"\$LIB$uppername\"
6448 test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
6449 eval value=\"\$LTLIB$uppername\"
6450 test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
6459 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
6460 if test -n "$acl_shlibext"; then
6461 shrext=".$acl_shlibext" # typically: shrext=.so
6465 if test $use_additional = yes; then
6466 dir="$additional_libdir"
6467 if test -n "$acl_shlibext"; then
6468 if test -f "$dir/$libname$shrext"; then
6470 found_so="$dir/$libname$shrext"
6472 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6473 ver=`(cd "$dir" && \
6474 for f in "$libname$shrext".*; do echo "$f"; done \
6475 | sed -e "s,^$libname$shrext\\\\.,," \
6476 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6477 | sed 1q ) 2>/dev/null`
6478 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6480 found_so="$dir/$libname$shrext.$ver"
6483 eval library_names=\"$acl_library_names_spec\"
6484 for f in $library_names; do
6485 if test -f "$dir/$f"; then
6494 if test "X$found_dir" = "X"; then
6495 if test -f "$dir/$libname.$acl_libext"; then
6497 found_a="$dir/$libname.$acl_libext"
6500 if test "X$found_dir" != "X"; then
6501 if test -f "$dir/$libname.la"; then
6502 found_la="$dir/$libname.la"
6506 if test "X$found_dir" = "X"; then
6507 for x in $LDFLAGS $LTLIBPTH; do
6509 acl_save_prefix="$prefix"
6510 prefix="$acl_final_prefix"
6511 acl_save_exec_prefix="$exec_prefix"
6512 exec_prefix="$acl_final_exec_prefix"
6514 exec_prefix="$acl_save_exec_prefix"
6515 prefix="$acl_save_prefix"
6519 dir=`echo "X$x" | sed -e 's/^X-L//'`
6520 if test -n "$acl_shlibext"; then
6521 if test -f "$dir/$libname$shrext"; then
6523 found_so="$dir/$libname$shrext"
6525 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6526 ver=`(cd "$dir" && \
6527 for f in "$libname$shrext".*; do echo "$f"; done \
6528 | sed -e "s,^$libname$shrext\\\\.,," \
6529 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6530 | sed 1q ) 2>/dev/null`
6531 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6533 found_so="$dir/$libname$shrext.$ver"
6536 eval library_names=\"$acl_library_names_spec\"
6537 for f in $library_names; do
6538 if test -f "$dir/$f"; then
6547 if test "X$found_dir" = "X"; then
6548 if test -f "$dir/$libname.$acl_libext"; then
6550 found_a="$dir/$libname.$acl_libext"
6553 if test "X$found_dir" != "X"; then
6554 if test -f "$dir/$libname.la"; then
6555 found_la="$dir/$libname.la"
6560 if test "X$found_dir" != "X"; then
6565 if test "X$found_dir" != "X"; then
6566 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
6567 if test "X$found_so" != "X"; then
6568 if test "$enable_rpath" = no \
6569 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
6570 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
6571 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
6574 for x in $ltrpathdirs; do
6575 if test "X$x" = "X$found_dir"; then
6580 if test -z "$haveit"; then
6581 ltrpathdirs="$ltrpathdirs $found_dir"
6583 if test "$acl_hardcode_direct" = yes; then
6584 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
6586 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
6587 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
6589 for x in $rpathdirs; do
6590 if test "X$x" = "X$found_dir"; then
6595 if test -z "$haveit"; then
6596 rpathdirs="$rpathdirs $found_dir"
6600 for x in $LDFLAGS $LIBPTH; do
6602 acl_save_prefix="$prefix"
6603 prefix="$acl_final_prefix"
6604 acl_save_exec_prefix="$exec_prefix"
6605 exec_prefix="$acl_final_exec_prefix"
6607 exec_prefix="$acl_save_exec_prefix"
6608 prefix="$acl_save_prefix"
6610 if test "X$x" = "X-L$found_dir"; then
6615 if test -z "$haveit"; then
6616 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
6618 if test "$acl_hardcode_minus_L" != no; then
6619 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
6621 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
6627 if test "X$found_a" != "X"; then
6628 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
6630 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
6633 additional_includedir=
6634 case "$found_dir" in
6635 */$acl_libdirstem | */$acl_libdirstem/)
6636 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
6637 if test "$name" = 'pth'; then
6638 LIBPTH_PREFIX="$basedir"
6640 additional_includedir="$basedir/include"
6642 */$acl_libdirstem2 | */$acl_libdirstem2/)
6643 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
6644 if test "$name" = 'pth'; then
6645 LIBPTH_PREFIX="$basedir"
6647 additional_includedir="$basedir/include"
6650 if test "X$additional_includedir" != "X"; then
6651 if test "X$additional_includedir" != "X/usr/include"; then
6653 if test "X$additional_includedir" = "X/usr/local/include"; then
6654 if test -n "$GCC"; then
6656 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6660 if test -z "$haveit"; then
6661 for x in $CPPFLAGS $INCPTH; do
6663 acl_save_prefix="$prefix"
6664 prefix="$acl_final_prefix"
6665 acl_save_exec_prefix="$exec_prefix"
6666 exec_prefix="$acl_final_exec_prefix"
6668 exec_prefix="$acl_save_exec_prefix"
6669 prefix="$acl_save_prefix"
6671 if test "X$x" = "X-I$additional_includedir"; then
6676 if test -z "$haveit"; then
6677 if test -d "$additional_includedir"; then
6678 INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
6684 if test -n "$found_la"; then
6685 save_libdir="$libdir"
6687 */* | *\\*) . "$found_la" ;;
6688 *) . "./$found_la" ;;
6690 libdir="$save_libdir"
6691 for dep in $dependency_libs; do
6694 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6695 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
6696 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
6698 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
6699 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
6700 if test -n "$GCC"; then
6702 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6706 if test -z "$haveit"; then
6708 for x in $LDFLAGS $LIBPTH; do
6710 acl_save_prefix="$prefix"
6711 prefix="$acl_final_prefix"
6712 acl_save_exec_prefix="$exec_prefix"
6713 exec_prefix="$acl_final_exec_prefix"
6715 exec_prefix="$acl_save_exec_prefix"
6716 prefix="$acl_save_prefix"
6718 if test "X$x" = "X-L$additional_libdir"; then
6723 if test -z "$haveit"; then
6724 if test -d "$additional_libdir"; then
6725 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
6729 for x in $LDFLAGS $LTLIBPTH; do
6731 acl_save_prefix="$prefix"
6732 prefix="$acl_final_prefix"
6733 acl_save_exec_prefix="$exec_prefix"
6734 exec_prefix="$acl_final_exec_prefix"
6736 exec_prefix="$acl_save_exec_prefix"
6737 prefix="$acl_save_prefix"
6739 if test "X$x" = "X-L$additional_libdir"; then
6744 if test -z "$haveit"; then
6745 if test -d "$additional_libdir"; then
6746 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
6753 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6754 if test "$enable_rpath" != no; then
6756 for x in $rpathdirs; do
6757 if test "X$x" = "X$dir"; then
6762 if test -z "$haveit"; then
6763 rpathdirs="$rpathdirs $dir"
6766 for x in $ltrpathdirs; do
6767 if test "X$x" = "X$dir"; then
6772 if test -z "$haveit"; then
6773 ltrpathdirs="$ltrpathdirs $dir"
6778 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6781 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6784 LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
6785 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
6791 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
6792 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
6798 if test "X$rpathdirs" != "X"; then
6799 if test -n "$acl_hardcode_libdir_separator"; then
6801 for found_dir in $rpathdirs; do
6802 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
6804 acl_save_libdir="$libdir"
6806 eval flag=\"$acl_hardcode_libdir_flag_spec\"
6807 libdir="$acl_save_libdir"
6808 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
6810 for found_dir in $rpathdirs; do
6811 acl_save_libdir="$libdir"
6813 eval flag=\"$acl_hardcode_libdir_flag_spec\"
6814 libdir="$acl_save_libdir"
6815 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
6819 if test "X$ltrpathdirs" != "X"; then
6820 for found_dir in $ltrpathdirs; do
6821 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
6830 ac_cv_libpth_libs="$LIBPTH"
6831 ac_cv_libpth_ltlibs="$LTLIBPTH"
6832 ac_cv_libpth_cppflags="$INCPTH"
6833 ac_cv_libpth_prefix="$LIBPTH_PREFIX"
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
6837 $as_echo "$ac_cv_libpth_libs" >&6; }
6838 LIBPTH="$ac_cv_libpth_libs"
6839 LTLIBPTH="$ac_cv_libpth_ltlibs"
6840 INCPTH="$ac_cv_libpth_cppflags"
6841 LIBPTH_PREFIX="$ac_cv_libpth_prefix"
6843 for element in $INCPTH; do
6845 for x in $CPPFLAGS; do
6847 acl_save_prefix="$prefix"
6848 prefix="$acl_final_prefix"
6849 acl_save_exec_prefix="$exec_prefix"
6850 exec_prefix="$acl_final_exec_prefix"
6852 exec_prefix="$acl_save_exec_prefix"
6853 prefix="$acl_save_prefix"
6855 if test "X$x" = "X$element"; then
6860 if test -z "$haveit"; then
6861 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6873 gl_save_LIBS="$LIBS"
6875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6876 /* end confdefs.h. */
6886 if ac_fn_c_try_link "$LINENO"; then :
6889 rm -f core conftest.err conftest.$ac_objext \
6890 conftest$ac_exeext conftest.$ac_ext
6891 LIBS="$gl_save_LIBS"
6892 if test -n "$gl_have_pth"; then
6895 LTLIBTHREAD="$LTLIBPTH"
6896 LIBMULTITHREAD="$LIBTHREAD"
6897 LTLIBMULTITHREAD="$LTLIBTHREAD"
6899 $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
6901 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
6902 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
6904 $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
6911 CPPFLAGS="$gl_save_CPPFLAGS"
6914 if test -z "$gl_have_pthread"; then
6915 if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then
6916 if { case "$host_os" in
6921 gl_threads_api=win32
6923 $as_echo "#define USE_WIN32_THREADS 1" >>confdefs.h
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
6930 $as_echo_n "checking for multithread API to use... " >&6; }
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
6932 $as_echo "$gl_threads_api" >&6; }
6944 if test "$gl_threads_api" = posix; then
6945 # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
6946 # pthread_rwlock_* functions.
6947 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
6949 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
6951 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
6955 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
6956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6957 /* end confdefs.h. */
6958 #include <pthread.h>
6962 #if __FreeBSD__ == 4
6963 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
6965 int x = (int)PTHREAD_MUTEX_RECURSIVE;
6972 if ac_fn_c_try_compile "$LINENO"; then :
6974 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
6977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6996 acl_save_prefix="$prefix"
6997 prefix="$acl_final_prefix"
6998 acl_save_exec_prefix="$exec_prefix"
6999 exec_prefix="$acl_final_exec_prefix"
7001 eval additional_includedir=\"$includedir\"
7002 eval additional_libdir=\"$libdir\"
7004 exec_prefix="$acl_save_exec_prefix"
7005 prefix="$acl_save_prefix"
7008 # Check whether --with-libiconv-prefix was given.
7009 if test "${with_libiconv_prefix+set}" = set; then :
7010 withval=$with_libiconv_prefix;
7011 if test "X$withval" = "Xno"; then
7014 if test "X$withval" = "X"; then
7016 acl_save_prefix="$prefix"
7017 prefix="$acl_final_prefix"
7018 acl_save_exec_prefix="$exec_prefix"
7019 exec_prefix="$acl_final_exec_prefix"
7021 eval additional_includedir=\"$includedir\"
7022 eval additional_libdir=\"$libdir\"
7024 exec_prefix="$acl_save_exec_prefix"
7025 prefix="$acl_save_prefix"
7028 additional_includedir="$withval/include"
7029 additional_libdir="$withval/$acl_libdirstem"
7030 if test "$acl_libdirstem2" != "$acl_libdirstem" \
7031 && ! test -d "$withval/$acl_libdirstem"; then
7032 additional_libdir="$withval/$acl_libdirstem2"
7046 names_already_handled=
7047 names_next_round='iconv '
7048 while test -n "$names_next_round"; do
7049 names_this_round="$names_next_round"
7051 for name in $names_this_round; do
7053 for n in $names_already_handled; do
7054 if test "$n" = "$name"; then
7059 if test -z "$already_handled"; then
7060 names_already_handled="$names_already_handled $name"
7061 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7062 eval value=\"\$HAVE_LIB$uppername\"
7063 if test -n "$value"; then
7064 if test "$value" = yes; then
7065 eval value=\"\$LIB$uppername\"
7066 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7067 eval value=\"\$LTLIB$uppername\"
7068 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7077 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
7078 if test -n "$acl_shlibext"; then
7079 shrext=".$acl_shlibext" # typically: shrext=.so
7083 if test $use_additional = yes; then
7084 dir="$additional_libdir"
7085 if test -n "$acl_shlibext"; then
7086 if test -f "$dir/$libname$shrext"; then
7088 found_so="$dir/$libname$shrext"
7090 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
7091 ver=`(cd "$dir" && \
7092 for f in "$libname$shrext".*; do echo "$f"; done \
7093 | sed -e "s,^$libname$shrext\\\\.,," \
7094 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7095 | sed 1q ) 2>/dev/null`
7096 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
7098 found_so="$dir/$libname$shrext.$ver"
7101 eval library_names=\"$acl_library_names_spec\"
7102 for f in $library_names; do
7103 if test -f "$dir/$f"; then
7112 if test "X$found_dir" = "X"; then
7113 if test -f "$dir/$libname.$acl_libext"; then
7115 found_a="$dir/$libname.$acl_libext"
7118 if test "X$found_dir" != "X"; then
7119 if test -f "$dir/$libname.la"; then
7120 found_la="$dir/$libname.la"
7124 if test "X$found_dir" = "X"; then
7125 for x in $LDFLAGS $LTLIBICONV; do
7127 acl_save_prefix="$prefix"
7128 prefix="$acl_final_prefix"
7129 acl_save_exec_prefix="$exec_prefix"
7130 exec_prefix="$acl_final_exec_prefix"
7132 exec_prefix="$acl_save_exec_prefix"
7133 prefix="$acl_save_prefix"
7137 dir=`echo "X$x" | sed -e 's/^X-L//'`
7138 if test -n "$acl_shlibext"; then
7139 if test -f "$dir/$libname$shrext"; then
7141 found_so="$dir/$libname$shrext"
7143 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
7144 ver=`(cd "$dir" && \
7145 for f in "$libname$shrext".*; do echo "$f"; done \
7146 | sed -e "s,^$libname$shrext\\\\.,," \
7147 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7148 | sed 1q ) 2>/dev/null`
7149 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
7151 found_so="$dir/$libname$shrext.$ver"
7154 eval library_names=\"$acl_library_names_spec\"
7155 for f in $library_names; do
7156 if test -f "$dir/$f"; then
7165 if test "X$found_dir" = "X"; then
7166 if test -f "$dir/$libname.$acl_libext"; then
7168 found_a="$dir/$libname.$acl_libext"
7171 if test "X$found_dir" != "X"; then
7172 if test -f "$dir/$libname.la"; then
7173 found_la="$dir/$libname.la"
7178 if test "X$found_dir" != "X"; then
7183 if test "X$found_dir" != "X"; then
7184 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7185 if test "X$found_so" != "X"; then
7186 if test "$enable_rpath" = no \
7187 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
7188 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
7189 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7192 for x in $ltrpathdirs; do
7193 if test "X$x" = "X$found_dir"; then
7198 if test -z "$haveit"; then
7199 ltrpathdirs="$ltrpathdirs $found_dir"
7201 if test "$acl_hardcode_direct" = yes; then
7202 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7204 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
7205 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7207 for x in $rpathdirs; do
7208 if test "X$x" = "X$found_dir"; then
7213 if test -z "$haveit"; then
7214 rpathdirs="$rpathdirs $found_dir"
7218 for x in $LDFLAGS $LIBICONV; do
7220 acl_save_prefix="$prefix"
7221 prefix="$acl_final_prefix"
7222 acl_save_exec_prefix="$exec_prefix"
7223 exec_prefix="$acl_final_exec_prefix"
7225 exec_prefix="$acl_save_exec_prefix"
7226 prefix="$acl_save_prefix"
7228 if test "X$x" = "X-L$found_dir"; then
7233 if test -z "$haveit"; then
7234 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7236 if test "$acl_hardcode_minus_L" != no; then
7237 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7239 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7245 if test "X$found_a" != "X"; then
7246 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7248 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7251 additional_includedir=
7252 case "$found_dir" in
7253 */$acl_libdirstem | */$acl_libdirstem/)
7254 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
7255 if test "$name" = 'iconv'; then
7256 LIBICONV_PREFIX="$basedir"
7258 additional_includedir="$basedir/include"
7260 */$acl_libdirstem2 | */$acl_libdirstem2/)
7261 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
7262 if test "$name" = 'iconv'; then
7263 LIBICONV_PREFIX="$basedir"
7265 additional_includedir="$basedir/include"
7268 if test "X$additional_includedir" != "X"; then
7269 if test "X$additional_includedir" != "X/usr/include"; then
7271 if test "X$additional_includedir" = "X/usr/local/include"; then
7272 if test -n "$GCC"; then
7274 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7278 if test -z "$haveit"; then
7279 for x in $CPPFLAGS $INCICONV; do
7281 acl_save_prefix="$prefix"
7282 prefix="$acl_final_prefix"
7283 acl_save_exec_prefix="$exec_prefix"
7284 exec_prefix="$acl_final_exec_prefix"
7286 exec_prefix="$acl_save_exec_prefix"
7287 prefix="$acl_save_prefix"
7289 if test "X$x" = "X-I$additional_includedir"; then
7294 if test -z "$haveit"; then
7295 if test -d "$additional_includedir"; then
7296 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7302 if test -n "$found_la"; then
7303 save_libdir="$libdir"
7305 */* | *\\*) . "$found_la" ;;
7306 *) . "./$found_la" ;;
7308 libdir="$save_libdir"
7309 for dep in $dependency_libs; do
7312 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7313 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
7314 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
7316 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
7317 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
7318 if test -n "$GCC"; then
7320 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7324 if test -z "$haveit"; then
7326 for x in $LDFLAGS $LIBICONV; do
7328 acl_save_prefix="$prefix"
7329 prefix="$acl_final_prefix"
7330 acl_save_exec_prefix="$exec_prefix"
7331 exec_prefix="$acl_final_exec_prefix"
7333 exec_prefix="$acl_save_exec_prefix"
7334 prefix="$acl_save_prefix"
7336 if test "X$x" = "X-L$additional_libdir"; then
7341 if test -z "$haveit"; then
7342 if test -d "$additional_libdir"; then
7343 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7347 for x in $LDFLAGS $LTLIBICONV; do
7349 acl_save_prefix="$prefix"
7350 prefix="$acl_final_prefix"
7351 acl_save_exec_prefix="$exec_prefix"
7352 exec_prefix="$acl_final_exec_prefix"
7354 exec_prefix="$acl_save_exec_prefix"
7355 prefix="$acl_save_prefix"
7357 if test "X$x" = "X-L$additional_libdir"; then
7362 if test -z "$haveit"; then
7363 if test -d "$additional_libdir"; then
7364 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7371 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7372 if test "$enable_rpath" != no; then
7374 for x in $rpathdirs; do
7375 if test "X$x" = "X$dir"; then
7380 if test -z "$haveit"; then
7381 rpathdirs="$rpathdirs $dir"
7384 for x in $ltrpathdirs; do
7385 if test "X$x" = "X$dir"; then
7390 if test -z "$haveit"; then
7391 ltrpathdirs="$ltrpathdirs $dir"
7396 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7399 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7402 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
7403 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
7409 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7410 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
7416 if test "X$rpathdirs" != "X"; then
7417 if test -n "$acl_hardcode_libdir_separator"; then
7419 for found_dir in $rpathdirs; do
7420 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
7422 acl_save_libdir="$libdir"
7424 eval flag=\"$acl_hardcode_libdir_flag_spec\"
7425 libdir="$acl_save_libdir"
7426 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7428 for found_dir in $rpathdirs; do
7429 acl_save_libdir="$libdir"
7431 eval flag=\"$acl_hardcode_libdir_flag_spec\"
7432 libdir="$acl_save_libdir"
7433 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7437 if test "X$ltrpathdirs" != "X"; then
7438 for found_dir in $ltrpathdirs; do
7439 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
7454 am_save_CPPFLAGS="$CPPFLAGS"
7456 for element in $INCICONV; do
7458 for x in $CPPFLAGS; do
7460 acl_save_prefix="$prefix"
7461 prefix="$acl_final_prefix"
7462 acl_save_exec_prefix="$exec_prefix"
7463 exec_prefix="$acl_final_exec_prefix"
7465 exec_prefix="$acl_save_exec_prefix"
7466 prefix="$acl_save_prefix"
7468 if test "X$x" = "X$element"; then
7473 if test -z "$haveit"; then
7474 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
7480 $as_echo_n "checking for iconv... " >&6; }
7481 if ${am_cv_func_iconv+:} false; then :
7482 $as_echo_n "(cached) " >&6
7485 am_cv_func_iconv="no, consider installing GNU libiconv"
7487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7488 /* end confdefs.h. */
7494 iconv_t cd = iconv_open("","");
7495 iconv(cd,NULL,NULL,NULL,NULL);
7501 if ac_fn_c_try_link "$LINENO"; then :
7502 am_cv_func_iconv=yes
7504 rm -f core conftest.err conftest.$ac_objext \
7505 conftest$ac_exeext conftest.$ac_ext
7506 if test "$am_cv_func_iconv" != yes; then
7507 am_save_LIBS="$LIBS"
7508 LIBS="$LIBS $LIBICONV"
7509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7510 /* end confdefs.h. */
7516 iconv_t cd = iconv_open("","");
7517 iconv(cd,NULL,NULL,NULL,NULL);
7523 if ac_fn_c_try_link "$LINENO"; then :
7525 am_cv_func_iconv=yes
7527 rm -f core conftest.err conftest.$ac_objext \
7528 conftest$ac_exeext conftest.$ac_ext
7529 LIBS="$am_save_LIBS"
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
7534 $as_echo "$am_cv_func_iconv" >&6; }
7535 if test "$am_cv_func_iconv" = yes; then
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
7537 $as_echo_n "checking for working iconv... " >&6; }
7538 if ${am_cv_func_iconv_works+:} false; then :
7539 $as_echo_n "(cached) " >&6
7542 am_save_LIBS="$LIBS"
7543 if test $am_cv_lib_iconv = yes; then
7544 LIBS="$LIBS $LIBICONV"
7546 if test "$cross_compiling" = yes; then :
7548 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
7549 *) am_cv_func_iconv_works="guessing yes" ;;
7552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7553 /* end confdefs.h. */
7559 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
7562 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
7563 if (cd_utf8_to_88591 != (iconv_t)(-1))
7565 static const char input[] = "\342\202\254"; /* EURO SIGN */
7567 const char *inptr = input;
7568 size_t inbytesleft = strlen (input);
7570 size_t outbytesleft = sizeof (buf);
7571 size_t res = iconv (cd_utf8_to_88591,
7572 (char **) &inptr, &inbytesleft,
7573 &outptr, &outbytesleft);
7578 /* Test against Solaris 10 bug: Failures are not distinguishable from
7579 successful returns. */
7581 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
7582 if (cd_ascii_to_88591 != (iconv_t)(-1))
7584 static const char input[] = "\263";
7586 const char *inptr = input;
7587 size_t inbytesleft = strlen (input);
7589 size_t outbytesleft = sizeof (buf);
7590 size_t res = iconv (cd_ascii_to_88591,
7591 (char **) &inptr, &inbytesleft,
7592 &outptr, &outbytesleft);
7597 #if 0 /* This bug could be worked around by the caller. */
7598 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
7600 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
7601 if (cd_88591_to_utf8 != (iconv_t)(-1))
7603 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
7605 const char *inptr = input;
7606 size_t inbytesleft = strlen (input);
7608 size_t outbytesleft = sizeof (buf);
7609 size_t res = iconv (cd_88591_to_utf8,
7610 (char **) &inptr, &inbytesleft,
7611 &outptr, &outbytesleft);
7617 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
7619 if (/* Try standardized names. */
7620 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
7621 /* Try IRIX, OSF/1 names. */
7622 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
7623 /* Try AIX names. */
7624 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
7625 /* Try HP-UX names. */
7626 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
7631 if ac_fn_c_try_run "$LINENO"; then :
7632 am_cv_func_iconv_works=yes
7634 am_cv_func_iconv_works=no
7636 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7637 conftest.$ac_objext conftest.beam conftest.$ac_ext
7640 LIBS="$am_save_LIBS"
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
7644 $as_echo "$am_cv_func_iconv_works" >&6; }
7645 case "$am_cv_func_iconv_works" in
7646 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
7647 *) am_func_iconv=yes ;;
7650 am_func_iconv=no am_cv_lib_iconv=no
7652 if test "$am_func_iconv" = yes; then
7654 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
7657 if test "$am_cv_lib_iconv" = yes; then
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
7659 $as_echo_n "checking how to link with libiconv... " >&6; }
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
7661 $as_echo "$LIBICONV" >&6; }
7663 CPPFLAGS="$am_save_CPPFLAGS"
7670 if test "$am_cv_func_iconv" = yes; then
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
7672 $as_echo_n "checking for iconv declaration... " >&6; }
7673 if ${am_cv_proto_iconv+:} false; then :
7674 $as_echo_n "(cached) " >&6
7677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7678 /* end confdefs.h. */
7686 #if defined(__STDC__) || defined(__cplusplus)
7687 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
7700 if ac_fn_c_try_compile "$LINENO"; then :
7701 am_cv_proto_iconv_arg1=""
7703 am_cv_proto_iconv_arg1="const"
7705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7706 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);"
7709 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
7711 $am_cv_proto_iconv" >&5
7713 $am_cv_proto_iconv" >&6; }
7715 cat >>confdefs.h <<_ACEOF
7716 #define ICONV_CONST $am_cv_proto_iconv_arg1
7724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7725 /* end confdefs.h. */
7726 int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
7735 if ac_fn_c_try_link "$LINENO"; then :
7737 $as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
7740 rm -f core conftest.err conftest.$ac_objext \
7741 conftest$ac_exeext conftest.$ac_ext
7743 for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
7745 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7746 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7747 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7748 cat >>confdefs.h <<_ACEOF
7749 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7756 for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
7757 stpcpy strcasecmp strdup strtoul tsearch uselocale argz_count \
7758 argz_stringify argz_next __fsetlocking
7760 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7761 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7762 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7763 cat >>confdefs.h <<_ACEOF
7764 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
7773 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
7774 if ${ac_cv_have_decl_feof_unlocked+:} false; then :
7775 $as_echo_n "(cached) " >&6
7777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7778 /* end confdefs.h. */
7784 #ifndef feof_unlocked
7785 char *p = (char *) feof_unlocked;
7792 if ac_fn_c_try_compile "$LINENO"; then :
7793 ac_cv_have_decl_feof_unlocked=yes
7795 ac_cv_have_decl_feof_unlocked=no
7797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
7800 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
7801 if test $ac_cv_have_decl_feof_unlocked = yes; then
7807 cat >>confdefs.h <<_ACEOF
7808 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
7814 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
7815 if ${ac_cv_have_decl_fgets_unlocked+:} false; then :
7816 $as_echo_n "(cached) " >&6
7818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7819 /* end confdefs.h. */
7825 #ifndef fgets_unlocked
7826 char *p = (char *) fgets_unlocked;
7833 if ac_fn_c_try_compile "$LINENO"; then :
7834 ac_cv_have_decl_fgets_unlocked=yes
7836 ac_cv_have_decl_fgets_unlocked=no
7838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
7841 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
7842 if test $ac_cv_have_decl_fgets_unlocked = yes; then
7848 cat >>confdefs.h <<_ACEOF
7849 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
7856 for ac_prog in bison
7858 # Extract the first word of "$ac_prog", so it can be a program name with args.
7859 set dummy $ac_prog; ac_word=$2
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7861 $as_echo_n "checking for $ac_word... " >&6; }
7862 if ${ac_cv_prog_INTLBISON+:} false; then :
7863 $as_echo_n "(cached) " >&6
7865 if test -n "$INTLBISON"; then
7866 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
7868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7872 test -z "$as_dir" && as_dir=.
7873 for ac_exec_ext in '' $ac_executable_extensions; do
7874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7875 ac_cv_prog_INTLBISON="$ac_prog"
7876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7885 INTLBISON=$ac_cv_prog_INTLBISON
7886 if test -n "$INTLBISON"; then
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
7888 $as_echo "$INTLBISON" >&6; }
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7891 $as_echo "no" >&6; }
7895 test -n "$INTLBISON" && break
7898 if test -z "$INTLBISON"; then
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
7902 $as_echo_n "checking version of bison... " >&6; }
7903 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
7904 case $ac_prog_version in
7905 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
7906 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
7907 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
7908 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
7911 $as_echo "$ac_prog_version" >&6; }
7913 if test $ac_verc_fail = yes; then
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
7919 $as_echo_n "checking for long long int... " >&6; }
7920 if ${ac_cv_type_long_long_int+:} false; then :
7921 $as_echo_n "(cached) " >&6
7923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7924 /* end confdefs.h. */
7926 /* For now, do not test the preprocessor; as of 2007 there are too many
7927 implementations with broken preprocessors. Perhaps this can
7928 be revisited in 2012. In the meantime, code should not expect
7929 #if to work with literals wider than 32 bits. */
7930 /* Test literals. */
7931 long long int ll = 9223372036854775807ll;
7932 long long int nll = -9223372036854775807LL;
7933 unsigned long long int ull = 18446744073709551615ULL;
7934 /* Test constant expressions. */
7935 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
7937 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
7943 /* Test availability of runtime routines for shift and division. */
7944 long long int llmax = 9223372036854775807ll;
7945 unsigned long long int ullmax = 18446744073709551615ull;
7946 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
7947 | (llmax / ll) | (llmax % ll)
7948 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
7949 | (ullmax / ull) | (ullmax % ull));
7955 if ac_fn_c_try_link "$LINENO"; then :
7956 if test "$cross_compiling" = yes; then :
7957 ac_cv_type_long_long_int=yes
7959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7960 /* end confdefs.h. */
7964 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
7965 # define LLONG_MAX (HALF - 1 + HALF)
7970 long long int n = 1;
7974 long long int m = n << i;
7977 if (LLONG_MAX / 2 < m)
7985 if ac_fn_c_try_run "$LINENO"; then :
7986 ac_cv_type_long_long_int=yes
7988 ac_cv_type_long_long_int=no
7990 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7991 conftest.$ac_objext conftest.beam conftest.$ac_ext
7995 ac_cv_type_long_long_int=no
7997 rm -f core conftest.err conftest.$ac_objext \
7998 conftest$ac_exeext conftest.$ac_ext
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
8001 $as_echo "$ac_cv_type_long_long_int" >&6; }
8002 if test $ac_cv_type_long_long_int = yes; then
8004 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
8010 $as_echo_n "checking for wchar_t... " >&6; }
8011 if ${gt_cv_c_wchar_t+:} false; then :
8012 $as_echo_n "(cached) " >&6
8014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8015 /* end confdefs.h. */
8017 wchar_t foo = (wchar_t)'\0';
8026 if ac_fn_c_try_compile "$LINENO"; then :
8031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
8034 $as_echo "$gt_cv_c_wchar_t" >&6; }
8035 if test $gt_cv_c_wchar_t = yes; then
8037 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
8043 $as_echo_n "checking for wint_t... " >&6; }
8044 if ${gt_cv_c_wint_t+:} false; then :
8045 $as_echo_n "(cached) " >&6
8047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8048 /* end confdefs.h. */
8050 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
8052 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
8053 before <wchar.h>. */
8058 wint_t foo = (wchar_t)'\0';
8067 if ac_fn_c_try_compile "$LINENO"; then :
8072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
8075 $as_echo "$gt_cv_c_wint_t" >&6; }
8076 if test $gt_cv_c_wint_t = yes; then
8078 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
8086 $as_echo_n "checking for intmax_t... " >&6; }
8087 if ${gt_cv_c_intmax_t+:} false; then :
8088 $as_echo_n "(cached) " >&6
8090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8091 /* end confdefs.h. */
8095 #if HAVE_STDINT_H_WITH_UINTMAX
8098 #if HAVE_INTTYPES_H_WITH_UINTMAX
8099 #include <inttypes.h>
8111 if ac_fn_c_try_compile "$LINENO"; then :
8112 gt_cv_c_intmax_t=yes
8116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
8119 $as_echo "$gt_cv_c_intmax_t" >&6; }
8120 if test $gt_cv_c_intmax_t = yes; then
8122 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
8129 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
8130 if ${gt_cv_func_printf_posix+:} false; then :
8131 $as_echo_n "(cached) " >&6
8134 if test "$cross_compiling" = yes; then :
8136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8137 /* end confdefs.h. */
8139 #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
8144 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8145 $EGREP "notposix" >/dev/null 2>&1; then :
8146 gt_cv_func_printf_posix="guessing no"
8148 gt_cv_func_printf_posix="guessing yes"
8154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8155 /* end confdefs.h. */
8159 /* The string "%2$d %1$d", with dollar characters protected from the shell's
8160 dollar expansion (possibly an autoconf bug). */
8161 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
8162 static char buf[100];
8165 sprintf (buf, format, 33, 55);
8166 return (strcmp (buf, "55 33") != 0);
8169 if ac_fn_c_try_run "$LINENO"; then :
8170 gt_cv_func_printf_posix=yes
8172 gt_cv_func_printf_posix=no
8174 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8175 conftest.$ac_objext conftest.beam conftest.$ac_ext
8180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
8181 $as_echo "$gt_cv_func_printf_posix" >&6; }
8182 case $gt_cv_func_printf_posix in
8185 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
8192 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
8193 if ${ac_cv_gnu_library_2_1+:} false; then :
8194 $as_echo_n "(cached) " >&6
8196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8197 /* end confdefs.h. */
8199 #include <features.h>
8200 #ifdef __GNU_LIBRARY__
8201 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
8207 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8208 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
8209 ac_cv_gnu_library_2_1=yes
8211 ac_cv_gnu_library_2_1=no
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
8219 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
8221 GLIBC21="$ac_cv_gnu_library_2_1"
8225 for ac_header in stdint.h
8227 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
8228 if test "x$ac_cv_header_stdint_h" = xyes; then :
8229 cat >>confdefs.h <<_ACEOF
8230 #define HAVE_STDINT_H 1
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
8238 $as_echo_n "checking for SIZE_MAX... " >&6; }
8239 if ${gl_cv_size_max+:} false; then :
8240 $as_echo_n "(cached) " >&6
8244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8245 /* end confdefs.h. */
8256 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8257 $EGREP "Found it" >/dev/null 2>&1; then :
8262 if test -z "$gl_cv_size_max"; then
8263 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
8264 #include <limits.h>"; then :
8267 size_t_bits_minus_1=
8270 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
8276 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
8277 if test $fits_in_uint = 1; then
8278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8279 /* end confdefs.h. */
8282 extern unsigned long foo;
8292 if ac_fn_c_try_compile "$LINENO"; then :
8295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8297 if test $fits_in_uint = 1; then
8298 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
8300 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
8303 gl_cv_size_max='((size_t)~(size_t)0)'
8308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
8309 $as_echo "$gl_cv_size_max" >&6; }
8310 if test "$gl_cv_size_max" != yes; then
8312 cat >>confdefs.h <<_ACEOF
8313 #define SIZE_MAX $gl_cv_size_max
8322 for ac_header in stdint.h
8324 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
8325 if test "x$ac_cv_header_stdint_h" = xyes; then :
8326 cat >>confdefs.h <<_ACEOF
8327 #define HAVE_STDINT_H 1
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
8338 $as_echo_n "checking for working fcntl.h... " >&6; }
8339 if ${gl_cv_header_working_fcntl_h+:} false; then :
8340 $as_echo_n "(cached) " >&6
8342 if test "$cross_compiling" = yes; then :
8343 gl_cv_header_working_fcntl_h=cross-compiling
8345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8346 /* end confdefs.h. */
8347 #include <sys/types.h>
8348 #include <sys/stat.h>
8355 #define O_NOFOLLOW 0
8357 static int const constants[] =
8359 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
8360 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
8367 int status = !constants;
8369 static char const sym[] = "conftest.sym";
8370 if (symlink (".", sym) != 0
8371 || close (open (sym, O_RDONLY | O_NOFOLLOW)) == 0)
8376 static char const file[] = "confdefs.h";
8377 int fd = open (file, O_RDONLY | O_NOATIME);
8379 struct stat st0, st1;
8381 || fstat (fd, &st0) != 0
8383 || read (fd, &c, 1) != 1
8385 || stat (file, &st1) != 0
8386 || st0.st_atime != st1.st_atime)
8394 if ac_fn_c_try_run "$LINENO"; then :
8395 gl_cv_header_working_fcntl_h=yes
8398 32) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
8399 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
8400 96) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
8401 *) gl_cv_header_working_fcntl_h='no';;
8404 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8405 conftest.$ac_objext conftest.beam conftest.$ac_ext
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
8410 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
8412 case $gl_cv_header_working_fcntl_h in #(
8413 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
8417 cat >>confdefs.h <<_ACEOF
8418 #define HAVE_WORKING_O_NOATIME $ac_val
8422 case $gl_cv_header_working_fcntl_h in #(
8423 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
8427 cat >>confdefs.h <<_ACEOF
8428 #define HAVE_WORKING_O_NOFOLLOW $ac_val
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
8434 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
8435 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
8436 $as_echo_n "(cached) " >&6
8438 gt_save_LIBS="$LIBS"
8439 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
8440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8441 /* end confdefs.h. */
8442 #include <CoreFoundation/CFPreferences.h>
8446 CFPreferencesCopyAppValue(NULL, NULL)
8451 if ac_fn_c_try_link "$LINENO"; then :
8452 gt_cv_func_CFPreferencesCopyAppValue=yes
8454 gt_cv_func_CFPreferencesCopyAppValue=no
8456 rm -f core conftest.err conftest.$ac_objext \
8457 conftest$ac_exeext conftest.$ac_ext
8458 LIBS="$gt_save_LIBS"
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
8461 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
8462 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
8464 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
8468 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
8469 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
8470 $as_echo_n "(cached) " >&6
8472 gt_save_LIBS="$LIBS"
8473 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
8474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8475 /* end confdefs.h. */
8476 #include <CoreFoundation/CFLocale.h>
8480 CFLocaleCopyCurrent();
8485 if ac_fn_c_try_link "$LINENO"; then :
8486 gt_cv_func_CFLocaleCopyCurrent=yes
8488 gt_cv_func_CFLocaleCopyCurrent=no
8490 rm -f core conftest.err conftest.$ac_objext \
8491 conftest$ac_exeext conftest.$ac_ext
8492 LIBS="$gt_save_LIBS"
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
8495 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
8496 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
8498 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
8502 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
8503 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
8512 case "$enable_silent_rules" in
8513 yes) INTL_DEFAULT_VERBOSITY=0;;
8514 no) INTL_DEFAULT_VERBOSITY=1;;
8515 *) INTL_DEFAULT_VERBOSITY=1;;
8519 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
8520 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
8524 $as_echo "#define ptrdiff_t long" >>confdefs.h
8529 for ac_header in stddef.h stdlib.h string.h
8531 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8532 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8533 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8534 cat >>confdefs.h <<_ACEOF
8535 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8542 for ac_func in asprintf fwprintf newlocale putenv setenv setlocale \
8543 snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
8545 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8546 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8547 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8548 cat >>confdefs.h <<_ACEOF
8549 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
8558 $as_echo_n "checking whether _snprintf is declared... " >&6; }
8559 if ${ac_cv_have_decl__snprintf+:} false; then :
8560 $as_echo_n "(cached) " >&6
8562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8563 /* end confdefs.h. */
8570 char *p = (char *) _snprintf;
8577 if ac_fn_c_try_compile "$LINENO"; then :
8578 ac_cv_have_decl__snprintf=yes
8580 ac_cv_have_decl__snprintf=no
8582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
8585 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
8586 if test $ac_cv_have_decl__snprintf = yes; then
8592 cat >>confdefs.h <<_ACEOF
8593 #define HAVE_DECL__SNPRINTF $gt_value
8598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
8599 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
8600 if ${ac_cv_have_decl__snwprintf+:} false; then :
8601 $as_echo_n "(cached) " >&6
8603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8604 /* end confdefs.h. */
8611 char *p = (char *) _snwprintf;
8618 if ac_fn_c_try_compile "$LINENO"; then :
8619 ac_cv_have_decl__snwprintf=yes
8621 ac_cv_have_decl__snwprintf=no
8623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
8626 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
8627 if test $ac_cv_have_decl__snwprintf = yes; then
8633 cat >>confdefs.h <<_ACEOF
8634 #define HAVE_DECL__SNWPRINTF $gt_value
8640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
8641 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
8642 if ${ac_cv_have_decl_getc_unlocked+:} false; then :
8643 $as_echo_n "(cached) " >&6
8645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8646 /* end confdefs.h. */
8652 #ifndef getc_unlocked
8653 char *p = (char *) getc_unlocked;
8660 if ac_fn_c_try_compile "$LINENO"; then :
8661 ac_cv_have_decl_getc_unlocked=yes
8663 ac_cv_have_decl_getc_unlocked=no
8665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
8668 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
8669 if test $ac_cv_have_decl_getc_unlocked = yes; then
8675 cat >>confdefs.h <<_ACEOF
8676 #define HAVE_DECL_GETC_UNLOCKED $gt_value
8681 case $gt_cv_func_printf_posix in
8682 *yes) HAVE_POSIX_PRINTF=1 ;;
8683 *) HAVE_POSIX_PRINTF=0 ;;
8686 if test "$ac_cv_func_asprintf" = yes; then
8692 if test "$ac_cv_func_snprintf" = yes; then
8698 if test "$ac_cv_func_newlocale" = yes; then
8704 if test "$ac_cv_func_wprintf" = yes; then
8712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
8713 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
8714 if ${am_cv_langinfo_codeset+:} false; then :
8715 $as_echo_n "(cached) " >&6
8717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8718 /* end confdefs.h. */
8719 #include <langinfo.h>
8723 char* cs = nl_langinfo(CODESET); return !cs;
8728 if ac_fn_c_try_link "$LINENO"; then :
8729 am_cv_langinfo_codeset=yes
8731 am_cv_langinfo_codeset=no
8733 rm -f core conftest.err conftest.$ac_objext \
8734 conftest$ac_exeext conftest.$ac_ext
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
8738 $as_echo "$am_cv_langinfo_codeset" >&6; }
8739 if test $am_cv_langinfo_codeset = yes; then
8741 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
8746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
8747 $as_echo_n "checking for LC_MESSAGES... " >&6; }
8748 if ${gt_cv_val_LC_MESSAGES+:} false; then :
8749 $as_echo_n "(cached) " >&6
8751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8752 /* end confdefs.h. */
8762 if ac_fn_c_try_link "$LINENO"; then :
8763 gt_cv_val_LC_MESSAGES=yes
8765 gt_cv_val_LC_MESSAGES=no
8767 rm -f core conftest.err conftest.$ac_objext \
8768 conftest$ac_exeext conftest.$ac_ext
8770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
8771 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
8772 if test $gt_cv_val_LC_MESSAGES = yes; then
8774 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
8779 if test "$enable_shared" = yes; then
8781 mingw* | cygwin*) is_woe32dll=yes ;;
8782 *) is_woe32dll=no ;;
8787 WOE32DLL=$is_woe32dll
8791 mingw* | cygwin*) is_woe32=yes ;;
8796 if test $WOE32 = yes; then
8797 if test -n "$ac_tool_prefix"; then
8798 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
8799 set dummy ${ac_tool_prefix}windres; ac_word=$2
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8801 $as_echo_n "checking for $ac_word... " >&6; }
8802 if ${ac_cv_prog_WINDRES+:} false; then :
8803 $as_echo_n "(cached) " >&6
8805 if test -n "$WINDRES"; then
8806 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8812 test -z "$as_dir" && as_dir=.
8813 for ac_exec_ext in '' $ac_executable_extensions; do
8814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8815 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
8816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8825 WINDRES=$ac_cv_prog_WINDRES
8826 if test -n "$WINDRES"; then
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8828 $as_echo "$WINDRES" >&6; }
8830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8831 $as_echo "no" >&6; }
8836 if test -z "$ac_cv_prog_WINDRES"; then
8837 ac_ct_WINDRES=$WINDRES
8838 # Extract the first word of "windres", so it can be a program name with args.
8839 set dummy windres; ac_word=$2
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8841 $as_echo_n "checking for $ac_word... " >&6; }
8842 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
8843 $as_echo_n "(cached) " >&6
8845 if test -n "$ac_ct_WINDRES"; then
8846 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
8848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8852 test -z "$as_dir" && as_dir=.
8853 for ac_exec_ext in '' $ac_executable_extensions; do
8854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8855 ac_cv_prog_ac_ct_WINDRES="windres"
8856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8865 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
8866 if test -n "$ac_ct_WINDRES"; then
8867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
8868 $as_echo "$ac_ct_WINDRES" >&6; }
8870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8871 $as_echo "no" >&6; }
8874 if test "x$ac_ct_WINDRES" = x; then
8877 case $cross_compiling:$ac_tool_warned in
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8880 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8881 ac_tool_warned=yes ;;
8883 WINDRES=$ac_ct_WINDRES
8886 WINDRES="$ac_cv_prog_WINDRES"
8922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
8923 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
8924 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
8925 $as_echo_n "(cached) " >&6
8927 gt_save_LIBS="$LIBS"
8928 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
8929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8930 /* end confdefs.h. */
8931 #include <CoreFoundation/CFPreferences.h>
8935 CFPreferencesCopyAppValue(NULL, NULL)
8940 if ac_fn_c_try_link "$LINENO"; then :
8941 gt_cv_func_CFPreferencesCopyAppValue=yes
8943 gt_cv_func_CFPreferencesCopyAppValue=no
8945 rm -f core conftest.err conftest.$ac_objext \
8946 conftest$ac_exeext conftest.$ac_ext
8947 LIBS="$gt_save_LIBS"
8949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
8950 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
8951 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
8953 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
8956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
8957 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
8958 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
8959 $as_echo_n "(cached) " >&6
8961 gt_save_LIBS="$LIBS"
8962 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
8963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8964 /* end confdefs.h. */
8965 #include <CoreFoundation/CFLocale.h>
8969 CFLocaleCopyCurrent();
8974 if ac_fn_c_try_link "$LINENO"; then :
8975 gt_cv_func_CFLocaleCopyCurrent=yes
8977 gt_cv_func_CFLocaleCopyCurrent=no
8979 rm -f core conftest.err conftest.$ac_objext \
8980 conftest$ac_exeext conftest.$ac_ext
8981 LIBS="$gt_save_LIBS"
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
8984 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
8985 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
8987 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
8991 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
8992 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
9000 BUILD_INCLUDED_LIBINTL=no
9001 USE_INCLUDED_LIBINTL=no
9007 case " $gt_needs " in
9008 *" need-formatstring-macros "*) gt_api_version=3 ;;
9009 *" need-ngettext "*) gt_api_version=2 ;;
9010 *) gt_api_version=1 ;;
9012 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
9013 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
9015 if test "$USE_NLS" = "yes"; then
9016 gt_use_preinstalled_gnugettext=no
9018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
9019 $as_echo_n "checking whether included gettext is requested... " >&6; }
9021 # Check whether --with-included-gettext was given.
9022 if test "${with_included_gettext+set}" = set; then :
9023 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
9025 nls_cv_force_use_gnu_gettext=no
9028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
9029 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
9031 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
9032 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
9035 if test $gt_api_version -ge 3; then
9036 gt_revision_test_code='
9037 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
9038 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
9040 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
9043 gt_revision_test_code=
9045 if test $gt_api_version -ge 2; then
9046 gt_expression_test_code=' + * ngettext ("", "", 0)'
9048 gt_expression_test_code=
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
9052 $as_echo_n "checking for GNU gettext in libc... " >&6; }
9053 if eval \${$gt_func_gnugettext_libc+:} false; then :
9054 $as_echo_n "(cached) " >&6
9056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9057 /* end confdefs.h. */
9058 #include <libintl.h>
9059 $gt_revision_test_code
9060 extern int _nl_msg_cat_cntr;
9061 extern int *_nl_domain_bindings;
9065 bindtextdomain ("", "");
9066 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
9071 if ac_fn_c_try_link "$LINENO"; then :
9072 eval "$gt_func_gnugettext_libc=yes"
9074 eval "$gt_func_gnugettext_libc=no"
9076 rm -f core conftest.err conftest.$ac_objext \
9077 conftest$ac_exeext conftest.$ac_ext
9079 eval ac_res=\$$gt_func_gnugettext_libc
9080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9081 $as_echo "$ac_res" >&6; }
9083 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
9094 acl_save_prefix="$prefix"
9095 prefix="$acl_final_prefix"
9096 acl_save_exec_prefix="$exec_prefix"
9097 exec_prefix="$acl_final_exec_prefix"
9099 eval additional_includedir=\"$includedir\"
9100 eval additional_libdir=\"$libdir\"
9102 exec_prefix="$acl_save_exec_prefix"
9103 prefix="$acl_save_prefix"
9106 # Check whether --with-libintl-prefix was given.
9107 if test "${with_libintl_prefix+set}" = set; then :
9108 withval=$with_libintl_prefix;
9109 if test "X$withval" = "Xno"; then
9112 if test "X$withval" = "X"; then
9114 acl_save_prefix="$prefix"
9115 prefix="$acl_final_prefix"
9116 acl_save_exec_prefix="$exec_prefix"
9117 exec_prefix="$acl_final_exec_prefix"
9119 eval additional_includedir=\"$includedir\"
9120 eval additional_libdir=\"$libdir\"
9122 exec_prefix="$acl_save_exec_prefix"
9123 prefix="$acl_save_prefix"
9126 additional_includedir="$withval/include"
9127 additional_libdir="$withval/$acl_libdirstem"
9128 if test "$acl_libdirstem2" != "$acl_libdirstem" \
9129 && ! test -d "$withval/$acl_libdirstem"; then
9130 additional_libdir="$withval/$acl_libdirstem2"
9144 names_already_handled=
9145 names_next_round='intl '
9146 while test -n "$names_next_round"; do
9147 names_this_round="$names_next_round"
9149 for name in $names_this_round; do
9151 for n in $names_already_handled; do
9152 if test "$n" = "$name"; then
9157 if test -z "$already_handled"; then
9158 names_already_handled="$names_already_handled $name"
9159 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9160 eval value=\"\$HAVE_LIB$uppername\"
9161 if test -n "$value"; then
9162 if test "$value" = yes; then
9163 eval value=\"\$LIB$uppername\"
9164 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
9165 eval value=\"\$LTLIB$uppername\"
9166 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
9175 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
9176 if test -n "$acl_shlibext"; then
9177 shrext=".$acl_shlibext" # typically: shrext=.so
9181 if test $use_additional = yes; then
9182 dir="$additional_libdir"
9183 if test -n "$acl_shlibext"; then
9184 if test -f "$dir/$libname$shrext"; then
9186 found_so="$dir/$libname$shrext"
9188 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9189 ver=`(cd "$dir" && \
9190 for f in "$libname$shrext".*; do echo "$f"; done \
9191 | sed -e "s,^$libname$shrext\\\\.,," \
9192 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9193 | sed 1q ) 2>/dev/null`
9194 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
9196 found_so="$dir/$libname$shrext.$ver"
9199 eval library_names=\"$acl_library_names_spec\"
9200 for f in $library_names; do
9201 if test -f "$dir/$f"; then
9210 if test "X$found_dir" = "X"; then
9211 if test -f "$dir/$libname.$acl_libext"; then
9213 found_a="$dir/$libname.$acl_libext"
9216 if test "X$found_dir" != "X"; then
9217 if test -f "$dir/$libname.la"; then
9218 found_la="$dir/$libname.la"
9222 if test "X$found_dir" = "X"; then
9223 for x in $LDFLAGS $LTLIBINTL; do
9225 acl_save_prefix="$prefix"
9226 prefix="$acl_final_prefix"
9227 acl_save_exec_prefix="$exec_prefix"
9228 exec_prefix="$acl_final_exec_prefix"
9230 exec_prefix="$acl_save_exec_prefix"
9231 prefix="$acl_save_prefix"
9235 dir=`echo "X$x" | sed -e 's/^X-L//'`
9236 if test -n "$acl_shlibext"; then
9237 if test -f "$dir/$libname$shrext"; then
9239 found_so="$dir/$libname$shrext"
9241 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9242 ver=`(cd "$dir" && \
9243 for f in "$libname$shrext".*; do echo "$f"; done \
9244 | sed -e "s,^$libname$shrext\\\\.,," \
9245 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9246 | sed 1q ) 2>/dev/null`
9247 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
9249 found_so="$dir/$libname$shrext.$ver"
9252 eval library_names=\"$acl_library_names_spec\"
9253 for f in $library_names; do
9254 if test -f "$dir/$f"; then
9263 if test "X$found_dir" = "X"; then
9264 if test -f "$dir/$libname.$acl_libext"; then
9266 found_a="$dir/$libname.$acl_libext"
9269 if test "X$found_dir" != "X"; then
9270 if test -f "$dir/$libname.la"; then
9271 found_la="$dir/$libname.la"
9276 if test "X$found_dir" != "X"; then
9281 if test "X$found_dir" != "X"; then
9282 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
9283 if test "X$found_so" != "X"; then
9284 if test "$enable_rpath" = no \
9285 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
9286 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
9287 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9290 for x in $ltrpathdirs; do
9291 if test "X$x" = "X$found_dir"; then
9296 if test -z "$haveit"; then
9297 ltrpathdirs="$ltrpathdirs $found_dir"
9299 if test "$acl_hardcode_direct" = yes; then
9300 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9302 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
9303 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9305 for x in $rpathdirs; do
9306 if test "X$x" = "X$found_dir"; then
9311 if test -z "$haveit"; then
9312 rpathdirs="$rpathdirs $found_dir"
9316 for x in $LDFLAGS $LIBINTL; do
9318 acl_save_prefix="$prefix"
9319 prefix="$acl_final_prefix"
9320 acl_save_exec_prefix="$exec_prefix"
9321 exec_prefix="$acl_final_exec_prefix"
9323 exec_prefix="$acl_save_exec_prefix"
9324 prefix="$acl_save_prefix"
9326 if test "X$x" = "X-L$found_dir"; then
9331 if test -z "$haveit"; then
9332 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
9334 if test "$acl_hardcode_minus_L" != no; then
9335 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9337 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9343 if test "X$found_a" != "X"; then
9344 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
9346 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
9349 additional_includedir=
9350 case "$found_dir" in
9351 */$acl_libdirstem | */$acl_libdirstem/)
9352 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9353 if test "$name" = 'intl'; then
9354 LIBINTL_PREFIX="$basedir"
9356 additional_includedir="$basedir/include"
9358 */$acl_libdirstem2 | */$acl_libdirstem2/)
9359 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
9360 if test "$name" = 'intl'; then
9361 LIBINTL_PREFIX="$basedir"
9363 additional_includedir="$basedir/include"
9366 if test "X$additional_includedir" != "X"; then
9367 if test "X$additional_includedir" != "X/usr/include"; then
9369 if test "X$additional_includedir" = "X/usr/local/include"; then
9370 if test -n "$GCC"; then
9372 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9376 if test -z "$haveit"; then
9377 for x in $CPPFLAGS $INCINTL; do
9379 acl_save_prefix="$prefix"
9380 prefix="$acl_final_prefix"
9381 acl_save_exec_prefix="$exec_prefix"
9382 exec_prefix="$acl_final_exec_prefix"
9384 exec_prefix="$acl_save_exec_prefix"
9385 prefix="$acl_save_prefix"
9387 if test "X$x" = "X-I$additional_includedir"; then
9392 if test -z "$haveit"; then
9393 if test -d "$additional_includedir"; then
9394 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9400 if test -n "$found_la"; then
9401 save_libdir="$libdir"
9403 */* | *\\*) . "$found_la" ;;
9404 *) . "./$found_la" ;;
9406 libdir="$save_libdir"
9407 for dep in $dependency_libs; do
9410 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9411 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
9412 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
9414 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
9415 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
9416 if test -n "$GCC"; then
9418 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9422 if test -z "$haveit"; then
9424 for x in $LDFLAGS $LIBINTL; do
9426 acl_save_prefix="$prefix"
9427 prefix="$acl_final_prefix"
9428 acl_save_exec_prefix="$exec_prefix"
9429 exec_prefix="$acl_final_exec_prefix"
9431 exec_prefix="$acl_save_exec_prefix"
9432 prefix="$acl_save_prefix"
9434 if test "X$x" = "X-L$additional_libdir"; then
9439 if test -z "$haveit"; then
9440 if test -d "$additional_libdir"; then
9441 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
9445 for x in $LDFLAGS $LTLIBINTL; do
9447 acl_save_prefix="$prefix"
9448 prefix="$acl_final_prefix"
9449 acl_save_exec_prefix="$exec_prefix"
9450 exec_prefix="$acl_final_exec_prefix"
9452 exec_prefix="$acl_save_exec_prefix"
9453 prefix="$acl_save_prefix"
9455 if test "X$x" = "X-L$additional_libdir"; then
9460 if test -z "$haveit"; then
9461 if test -d "$additional_libdir"; then
9462 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
9469 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9470 if test "$enable_rpath" != no; then
9472 for x in $rpathdirs; do
9473 if test "X$x" = "X$dir"; then
9478 if test -z "$haveit"; then
9479 rpathdirs="$rpathdirs $dir"
9482 for x in $ltrpathdirs; do
9483 if test "X$x" = "X$dir"; then
9488 if test -z "$haveit"; then
9489 ltrpathdirs="$ltrpathdirs $dir"
9494 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9497 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9500 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
9501 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
9507 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9508 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
9514 if test "X$rpathdirs" != "X"; then
9515 if test -n "$acl_hardcode_libdir_separator"; then
9517 for found_dir in $rpathdirs; do
9518 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
9520 acl_save_libdir="$libdir"
9522 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9523 libdir="$acl_save_libdir"
9524 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9526 for found_dir in $rpathdirs; do
9527 acl_save_libdir="$libdir"
9529 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9530 libdir="$acl_save_libdir"
9531 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9535 if test "X$ltrpathdirs" != "X"; then
9536 for found_dir in $ltrpathdirs; do
9537 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
9546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
9547 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
9548 if eval \${$gt_func_gnugettext_libintl+:} false; then :
9549 $as_echo_n "(cached) " >&6
9551 gt_save_CPPFLAGS="$CPPFLAGS"
9552 CPPFLAGS="$CPPFLAGS $INCINTL"
9553 gt_save_LIBS="$LIBS"
9554 LIBS="$LIBS $LIBINTL"
9555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9556 /* end confdefs.h. */
9557 #include <libintl.h>
9558 $gt_revision_test_code
9559 extern int _nl_msg_cat_cntr;
9564 const char *_nl_expand_alias (const char *);
9568 bindtextdomain ("", "");
9569 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
9574 if ac_fn_c_try_link "$LINENO"; then :
9575 eval "$gt_func_gnugettext_libintl=yes"
9577 eval "$gt_func_gnugettext_libintl=no"
9579 rm -f core conftest.err conftest.$ac_objext \
9580 conftest$ac_exeext conftest.$ac_ext
9581 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
9582 LIBS="$LIBS $LIBICONV"
9583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9584 /* end confdefs.h. */
9585 #include <libintl.h>
9586 $gt_revision_test_code
9587 extern int _nl_msg_cat_cntr;
9592 const char *_nl_expand_alias (const char *);
9596 bindtextdomain ("", "");
9597 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
9602 if ac_fn_c_try_link "$LINENO"; then :
9603 LIBINTL="$LIBINTL $LIBICONV"
9604 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
9605 eval "$gt_func_gnugettext_libintl=yes"
9608 rm -f core conftest.err conftest.$ac_objext \
9609 conftest$ac_exeext conftest.$ac_ext
9611 CPPFLAGS="$gt_save_CPPFLAGS"
9612 LIBS="$gt_save_LIBS"
9614 eval ac_res=\$$gt_func_gnugettext_libintl
9615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9616 $as_echo "$ac_res" >&6; }
9619 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
9620 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
9621 && test "$PACKAGE" != gettext-runtime \
9622 && test "$PACKAGE" != gettext-tools; }; then
9623 gt_use_preinstalled_gnugettext=yes
9631 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
9632 nls_cv_use_gnu_gettext=yes
9636 if test "$nls_cv_use_gnu_gettext" = "yes"; then
9637 BUILD_INCLUDED_LIBINTL=yes
9638 USE_INCLUDED_LIBINTL=yes
9639 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
9640 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
9641 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
9645 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9646 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9651 if test -n "$INTL_MACOSX_LIBS"; then
9652 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9653 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9654 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
9655 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
9659 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9660 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9662 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
9669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
9670 $as_echo_n "checking whether to use NLS... " >&6; }
9671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
9672 $as_echo "$USE_NLS" >&6; }
9673 if test "$USE_NLS" = "yes"; then
9674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
9675 $as_echo_n "checking where the gettext function comes from... " >&6; }
9676 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9677 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
9678 gt_source="external libintl"
9683 gt_source="included intl directory"
9685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
9686 $as_echo "$gt_source" >&6; }
9689 if test "$USE_NLS" = "yes"; then
9691 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9692 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
9694 $as_echo_n "checking how to link with libintl... " >&6; }
9695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
9696 $as_echo "$LIBINTL" >&6; }
9698 for element in $INCINTL; do
9700 for x in $CPPFLAGS; do
9702 acl_save_prefix="$prefix"
9703 prefix="$acl_final_prefix"
9704 acl_save_exec_prefix="$exec_prefix"
9705 exec_prefix="$acl_final_exec_prefix"
9707 exec_prefix="$acl_save_exec_prefix"
9708 prefix="$acl_save_prefix"
9710 if test "X$x" = "X$element"; then
9715 if test -z "$haveit"; then
9716 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9723 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
9726 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
9734 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
9735 BUILD_INCLUDED_LIBINTL=yes
9743 nls_cv_header_libgt=
9755 if test "$USE_INCLUDED_LIBINTL" = yes; then
9756 INTLOBJS="\$(GETTOBJS)"
9760 INTL_LIBTOOL_SUFFIX_PREFIX=
9776 abook_localedir="$datadir/locale"
9777 abook_localedir=`( test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9778 eval tmp_abook_prefix=\""$abook_localedir"\"
9779 eval echo $tmp_abook_prefix
9782 localedir="\$(datadir)/locale"
9785 # Check whether --with-localedir was given.
9786 if test "${with_localedir+set}" = set; then :
9787 withval=$with_localedir;
9790 if test "x$with_localedir" != "x"; then
9791 abook_localedir="$with_localedir"
9792 localedir="$with_localedir"
9796 cat >>confdefs.h <<_ACEOF
9797 #define LOCALEDIR "$abook_localedir"
9802 if test x$USE_INCLUDED_LIBINTL = xyes; then
9803 USE_INCLUDED_INTL_H_TRUE=
9804 USE_INCLUDED_INTL_H_FALSE='#'
9806 USE_INCLUDED_INTL_H_TRUE='#'
9807 USE_INCLUDED_INTL_H_FALSE=
9813 ac_cpp='$CPP $CPPFLAGS'
9814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9817 if test -n "$ac_tool_prefix"; then
9818 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
9819 set dummy ${ac_tool_prefix}gcc; ac_word=$2
9820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9821 $as_echo_n "checking for $ac_word... " >&6; }
9822 if ${ac_cv_prog_CC+:} false; then :
9823 $as_echo_n "(cached) " >&6
9825 if test -n "$CC"; then
9826 ac_cv_prog_CC="$CC" # Let the user override the test.
9828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9832 test -z "$as_dir" && as_dir=.
9833 for ac_exec_ext in '' $ac_executable_extensions; do
9834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9835 ac_cv_prog_CC="${ac_tool_prefix}gcc"
9836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9846 if test -n "$CC"; then
9847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
9848 $as_echo "$CC" >&6; }
9850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9851 $as_echo "no" >&6; }
9856 if test -z "$ac_cv_prog_CC"; then
9858 # Extract the first word of "gcc", so it can be a program name with args.
9859 set dummy gcc; ac_word=$2
9860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9861 $as_echo_n "checking for $ac_word... " >&6; }
9862 if ${ac_cv_prog_ac_ct_CC+:} false; then :
9863 $as_echo_n "(cached) " >&6
9865 if test -n "$ac_ct_CC"; then
9866 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
9868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9872 test -z "$as_dir" && as_dir=.
9873 for ac_exec_ext in '' $ac_executable_extensions; do
9874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9875 ac_cv_prog_ac_ct_CC="gcc"
9876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9885 ac_ct_CC=$ac_cv_prog_ac_ct_CC
9886 if test -n "$ac_ct_CC"; then
9887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
9888 $as_echo "$ac_ct_CC" >&6; }
9890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9891 $as_echo "no" >&6; }
9894 if test "x$ac_ct_CC" = x; then
9897 case $cross_compiling:$ac_tool_warned in
9899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9900 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9901 ac_tool_warned=yes ;;
9909 if test -z "$CC"; then
9910 if test -n "$ac_tool_prefix"; then
9911 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
9912 set dummy ${ac_tool_prefix}cc; ac_word=$2
9913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9914 $as_echo_n "checking for $ac_word... " >&6; }
9915 if ${ac_cv_prog_CC+:} false; then :
9916 $as_echo_n "(cached) " >&6
9918 if test -n "$CC"; then
9919 ac_cv_prog_CC="$CC" # Let the user override the test.
9921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9925 test -z "$as_dir" && as_dir=.
9926 for ac_exec_ext in '' $ac_executable_extensions; do
9927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9928 ac_cv_prog_CC="${ac_tool_prefix}cc"
9929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9939 if test -n "$CC"; then
9940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
9941 $as_echo "$CC" >&6; }
9943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9944 $as_echo "no" >&6; }
9950 if test -z "$CC"; then
9951 # Extract the first word of "cc", so it can be a program name with args.
9952 set dummy cc; ac_word=$2
9953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9954 $as_echo_n "checking for $ac_word... " >&6; }
9955 if ${ac_cv_prog_CC+:} false; then :
9956 $as_echo_n "(cached) " >&6
9958 if test -n "$CC"; then
9959 ac_cv_prog_CC="$CC" # Let the user override the test.
9962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9966 test -z "$as_dir" && as_dir=.
9967 for ac_exec_ext in '' $ac_executable_extensions; do
9968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9969 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
9970 ac_prog_rejected=yes
9974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9981 if test $ac_prog_rejected = yes; then
9982 # We found a bogon in the path, so make sure we never use it.
9983 set dummy $ac_cv_prog_CC
9985 if test $# != 0; then
9986 # We chose a different compiler from the bogus one.
9987 # However, it has the same basename, so the bogon will be chosen
9988 # first if we set CC to just the basename; use the full file name.
9990 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
9996 if test -n "$CC"; then
9997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
9998 $as_echo "$CC" >&6; }
10000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10001 $as_echo "no" >&6; }
10006 if test -z "$CC"; then
10007 if test -n "$ac_tool_prefix"; then
10008 for ac_prog in cl.exe
10010 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10011 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10013 $as_echo_n "checking for $ac_word... " >&6; }
10014 if ${ac_cv_prog_CC+:} false; then :
10015 $as_echo_n "(cached) " >&6
10017 if test -n "$CC"; then
10018 ac_cv_prog_CC="$CC" # Let the user override the test.
10020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10021 for as_dir in $PATH
10024 test -z "$as_dir" && as_dir=.
10025 for ac_exec_ext in '' $ac_executable_extensions; do
10026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10027 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10038 if test -n "$CC"; then
10039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10040 $as_echo "$CC" >&6; }
10042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10043 $as_echo "no" >&6; }
10047 test -n "$CC" && break
10050 if test -z "$CC"; then
10052 for ac_prog in cl.exe
10054 # Extract the first word of "$ac_prog", so it can be a program name with args.
10055 set dummy $ac_prog; ac_word=$2
10056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10057 $as_echo_n "checking for $ac_word... " >&6; }
10058 if ${ac_cv_prog_ac_ct_CC+:} false; then :
10059 $as_echo_n "(cached) " >&6
10061 if test -n "$ac_ct_CC"; then
10062 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10065 for as_dir in $PATH
10068 test -z "$as_dir" && as_dir=.
10069 for ac_exec_ext in '' $ac_executable_extensions; do
10070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10071 ac_cv_prog_ac_ct_CC="$ac_prog"
10072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10081 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10082 if test -n "$ac_ct_CC"; then
10083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
10084 $as_echo "$ac_ct_CC" >&6; }
10086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10087 $as_echo "no" >&6; }
10091 test -n "$ac_ct_CC" && break
10094 if test "x$ac_ct_CC" = x; then
10097 case $cross_compiling:$ac_tool_warned in
10099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10100 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10101 ac_tool_warned=yes ;;
10110 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10111 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10112 as_fn_error $? "no acceptable C compiler found in \$PATH
10113 See \`config.log' for more details" "$LINENO" 5; }
10115 # Provide some information about the compiler.
10116 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
10119 for ac_option in --version -v -V -qversion; do
10120 { { ac_try="$ac_compiler $ac_option >&5"
10121 case "(($ac_try" in
10122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10123 *) ac_try_echo=$ac_try;;
10125 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10126 $as_echo "$ac_try_echo"; } >&5
10127 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
10129 if test -s conftest.err; then
10131 ... rest of stderr output deleted ...
10132 10q' conftest.err >conftest.er1
10133 cat conftest.er1 >&5
10135 rm -f conftest.er1 conftest.err
10136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10137 test $ac_status = 0; }
10140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
10141 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
10142 if ${ac_cv_c_compiler_gnu+:} false; then :
10143 $as_echo_n "(cached) " >&6
10145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10146 /* end confdefs.h. */
10159 if ac_fn_c_try_compile "$LINENO"; then :
10160 ac_compiler_gnu=yes
10164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10165 ac_cv_c_compiler_gnu=$ac_compiler_gnu
10168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
10169 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
10170 if test $ac_compiler_gnu = yes; then
10175 ac_test_CFLAGS=${CFLAGS+set}
10176 ac_save_CFLAGS=$CFLAGS
10177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
10178 $as_echo_n "checking whether $CC accepts -g... " >&6; }
10179 if ${ac_cv_prog_cc_g+:} false; then :
10180 $as_echo_n "(cached) " >&6
10182 ac_save_c_werror_flag=$ac_c_werror_flag
10183 ac_c_werror_flag=yes
10186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10187 /* end confdefs.h. */
10197 if ac_fn_c_try_compile "$LINENO"; then :
10198 ac_cv_prog_cc_g=yes
10201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10202 /* end confdefs.h. */
10212 if ac_fn_c_try_compile "$LINENO"; then :
10215 ac_c_werror_flag=$ac_save_c_werror_flag
10217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10218 /* end confdefs.h. */
10228 if ac_fn_c_try_compile "$LINENO"; then :
10229 ac_cv_prog_cc_g=yes
10231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10236 ac_c_werror_flag=$ac_save_c_werror_flag
10238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
10239 $as_echo "$ac_cv_prog_cc_g" >&6; }
10240 if test "$ac_test_CFLAGS" = set; then
10241 CFLAGS=$ac_save_CFLAGS
10242 elif test $ac_cv_prog_cc_g = yes; then
10243 if test "$GCC" = yes; then
10249 if test "$GCC" = yes; then
10255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
10256 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
10257 if ${ac_cv_prog_cc_c89+:} false; then :
10258 $as_echo_n "(cached) " >&6
10260 ac_cv_prog_cc_c89=no
10262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10263 /* end confdefs.h. */
10264 #include <stdarg.h>
10266 #include <sys/types.h>
10267 #include <sys/stat.h>
10268 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
10269 struct buf { int x; };
10270 FILE * (*rcsopen) (struct buf *, struct stat *, int);
10271 static char *e (p, i)
10277 static char *f (char * (*g) (char **, int), char **p, ...)
10282 s = g (p, va_arg (v,int));
10287 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
10288 function prototypes and stuff, but not '\xHH' hex character constants.
10289 These don't provoke an error unfortunately, instead are silently treated
10290 as 'x'. The following induces an error, until -std is added to get
10291 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
10292 array size at least. It's necessary to write '\x00'==0 to get something
10293 that's true only with -std. */
10294 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
10296 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
10297 inside strings and character constants. */
10299 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
10301 int test (int i, double x);
10302 struct s1 {int (*f) (int a);};
10303 struct s2 {int (*f) (double a);};
10304 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
10310 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
10315 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
10316 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
10318 CC="$ac_save_CC $ac_arg"
10319 if ac_fn_c_try_compile "$LINENO"; then :
10320 ac_cv_prog_cc_c89=$ac_arg
10322 rm -f core conftest.err conftest.$ac_objext
10323 test "x$ac_cv_prog_cc_c89" != "xno" && break
10325 rm -f conftest.$ac_ext
10330 case "x$ac_cv_prog_cc_c89" in
10332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
10333 $as_echo "none needed" >&6; } ;;
10335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
10336 $as_echo "unsupported" >&6; } ;;
10338 CC="$CC $ac_cv_prog_cc_c89"
10339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
10340 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
10342 if test "x$ac_cv_prog_cc_c89" != xno; then :
10347 ac_cpp='$CPP $CPPFLAGS'
10348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10352 depcc="$CC" am_compiler_list=
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
10355 $as_echo_n "checking dependency style of $depcc... " >&6; }
10356 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
10357 $as_echo_n "(cached) " >&6
10359 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
10360 # We make a subdir and do the tests there. Otherwise we can end up
10361 # making bogus files that we don't know about and never remove. For
10362 # instance it was reported that on HP-UX the gcc test will end up
10363 # making a dummy file named `D' -- because `-MD' means `put the output
10365 rm -rf conftest.dir
10367 # Copy depcomp to subdir because otherwise we won't find it if we're
10368 # using a relative directory.
10369 cp "$am_depcomp" conftest.dir
10371 # We will build objects and dependencies in a subdirectory because
10372 # it helps to detect inapplicable dependency modes. For instance
10373 # both Tru64's cc and ICC support -MD to output dependencies as a
10374 # side effect of compilation, but ICC will put the dependencies in
10375 # the current directory while Tru64 will put them in the object
10379 am_cv_CC_dependencies_compiler_type=none
10380 if test "$am_compiler_list" = ""; then
10381 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10383 am__universal=false
10384 case " $depcc " in #(
10385 *\ -arch\ *\ -arch\ *) am__universal=true ;;
10388 for depmode in $am_compiler_list; do
10389 # Setup a source with many dependencies, because some compilers
10390 # like to wrap large dependency lists on column 80 (with \), and
10391 # we should not choose a depcomp mode which is confused by this.
10393 # We need to recreate these files for each test, as the compiler may
10394 # overwrite some of them when testing with obscure command lines.
10395 # This happens at least with the AIX C compiler.
10397 for i in 1 2 3 4 5 6; do
10398 echo '#include "conftst'$i'.h"' >> sub/conftest.c
10399 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10400 # Solaris 8's {/usr,}/bin/sh.
10401 touch sub/conftst$i.h
10403 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
10405 # We check with `-c' and `-o' for the sake of the "dashmstdout"
10406 # mode. It turns out that the SunPro C++ compiler does not properly
10407 # handle `-M -o', and we need to detect this. Also, some Intel
10408 # versions had trouble with output in subdirs
10409 am__obj=sub/conftest.${OBJEXT-o}
10410 am__minus_obj="-o $am__obj"
10413 # This depmode causes a compiler race in universal mode.
10414 test "$am__universal" = false || continue
10417 # after this tag, mechanisms are not by side-effect, so they'll
10418 # only be used when explicitly requested
10419 if test "x$enable_dependency_tracking" = xyes; then
10425 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
10426 # This compiler won't grok `-c -o', but also, the minuso test has
10427 # not run yet. These depmodes are late enough in the game, and
10428 # so weak that their functioning should not be impacted.
10429 am__obj=conftest.${OBJEXT-o}
10434 if depmode=$depmode \
10435 source=sub/conftest.c object=$am__obj \
10436 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10437 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
10438 >/dev/null 2>conftest.err &&
10439 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
10440 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
10441 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
10442 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
10443 # icc doesn't choke on unknown options, it will just issue warnings
10444 # or remarks (even with -Werror). So we grep stderr for any message
10445 # that says an option was ignored or not supported.
10446 # When given -MP, icc 7.0 and 7.1 complain thusly:
10447 # icc: Command line warning: ignoring option '-M'; no argument required
10448 # The diagnosis changed in icc 8.0:
10449 # icc: Command line remark: option '-MP' not supported
10450 if (grep 'ignoring option' conftest.err ||
10451 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
10452 am_cv_CC_dependencies_compiler_type=$depmode
10459 rm -rf conftest.dir
10461 am_cv_CC_dependencies_compiler_type=none
10465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
10466 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
10467 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
10470 test "x$enable_dependency_tracking" != xno \
10471 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
10472 am__fastdepCC_TRUE=
10473 am__fastdepCC_FALSE='#'
10475 am__fastdepCC_TRUE='#'
10476 am__fastdepCC_FALSE=
10480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
10481 $as_echo_n "checking for library containing strerror... " >&6; }
10482 if ${ac_cv_search_strerror+:} false; then :
10483 $as_echo_n "(cached) " >&6
10485 ac_func_search_save_LIBS=$LIBS
10486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10487 /* end confdefs.h. */
10489 /* Override any GCC internal prototype to avoid an error.
10490 Use char because int might match the return type of a GCC
10491 builtin and then its argument prototype would still apply. */
10499 return strerror ();
10504 for ac_lib in '' cposix; do
10505 if test -z "$ac_lib"; then
10506 ac_res="none required"
10509 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10511 if ac_fn_c_try_link "$LINENO"; then :
10512 ac_cv_search_strerror=$ac_res
10514 rm -f core conftest.err conftest.$ac_objext \
10516 if ${ac_cv_search_strerror+:} false; then :
10520 if ${ac_cv_search_strerror+:} false; then :
10523 ac_cv_search_strerror=no
10525 rm conftest.$ac_ext
10526 LIBS=$ac_func_search_save_LIBS
10528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
10529 $as_echo "$ac_cv_search_strerror" >&6; }
10530 ac_res=$ac_cv_search_strerror
10531 if test "$ac_res" != no; then :
10532 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
10537 $as_echo_n "checking for function prototypes... " >&6; }
10538 if test "$ac_cv_prog_cc_c89" != no; then
10539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10540 $as_echo "yes" >&6; }
10542 $as_echo "#define PROTOTYPES 1" >>confdefs.h
10545 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
10548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10549 $as_echo "no" >&6; }
10554 if test "$ac_cv_prog_cc_stdc" != no; then
10557 U=_ ANSI2KNR=./ansi2knr
10559 # Ensure some checks needed by ansi2knr itself.
10561 for ac_header in string.h
10563 ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
10564 if test "x$ac_cv_header_string_h" = xyes; then :
10565 cat >>confdefs.h <<_ACEOF
10566 #define HAVE_STRING_H 1
10574 if test "x$U" != "x"; then
10575 as_fn_error $? "Compiler not ANSI compliant" "$LINENO" 5
10577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
10578 $as_echo_n "checking for inline... " >&6; }
10579 if ${ac_cv_c_inline+:} false; then :
10580 $as_echo_n "(cached) " >&6
10583 for ac_kw in inline __inline__ __inline; do
10584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10585 /* end confdefs.h. */
10586 #ifndef __cplusplus
10588 static $ac_kw foo_t static_foo () {return 0; }
10589 $ac_kw foo_t foo () {return 0; }
10593 if ac_fn_c_try_compile "$LINENO"; then :
10594 ac_cv_c_inline=$ac_kw
10596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10597 test "$ac_cv_c_inline" != no && break
10601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
10602 $as_echo "$ac_cv_c_inline" >&6; }
10604 case $ac_cv_c_inline in
10607 case $ac_cv_c_inline in
10609 *) ac_val=$ac_cv_c_inline;;
10611 cat >>confdefs.h <<_ACEOF
10612 #ifndef __cplusplus
10613 #define inline $ac_val
10620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10621 $as_echo_n "checking for ANSI C header files... " >&6; }
10622 if ${ac_cv_header_stdc+:} false; then :
10623 $as_echo_n "(cached) " >&6
10625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10626 /* end confdefs.h. */
10627 #include <stdlib.h>
10628 #include <stdarg.h>
10629 #include <string.h>
10640 if ac_fn_c_try_compile "$LINENO"; then :
10641 ac_cv_header_stdc=yes
10643 ac_cv_header_stdc=no
10645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10647 if test $ac_cv_header_stdc = yes; then
10648 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10650 /* end confdefs.h. */
10651 #include <string.h>
10654 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10655 $EGREP "memchr" >/dev/null 2>&1; then :
10658 ac_cv_header_stdc=no
10664 if test $ac_cv_header_stdc = yes; then
10665 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10667 /* end confdefs.h. */
10668 #include <stdlib.h>
10671 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10672 $EGREP "free" >/dev/null 2>&1; then :
10675 ac_cv_header_stdc=no
10681 if test $ac_cv_header_stdc = yes; then
10682 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10683 if test "$cross_compiling" = yes; then :
10686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10687 /* end confdefs.h. */
10689 #include <stdlib.h>
10690 #if ((' ' & 0x0FF) == 0x020)
10691 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10692 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10694 # define ISLOWER(c) \
10695 (('a' <= (c) && (c) <= 'i') \
10696 || ('j' <= (c) && (c) <= 'r') \
10697 || ('s' <= (c) && (c) <= 'z'))
10698 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10701 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10706 for (i = 0; i < 256; i++)
10707 if (XOR (islower (i), ISLOWER (i))
10708 || toupper (i) != TOUPPER (i))
10713 if ac_fn_c_try_run "$LINENO"; then :
10716 ac_cv_header_stdc=no
10718 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10719 conftest.$ac_objext conftest.beam conftest.$ac_ext
10724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
10725 $as_echo "$ac_cv_header_stdc" >&6; }
10726 if test $ac_cv_header_stdc = yes; then
10728 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
10732 for ac_header in unistd.h locale.h sys/ioctl.h iconv.h
10734 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10735 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10736 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10737 cat >>confdefs.h <<_ACEOF
10738 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10745 ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
10746 if test "x$ac_cv_header_stdarg_h" = xyes; then :
10748 $as_echo "#define HAVE_STDARG_H 1" >>confdefs.h
10751 as_fn_error $? "*** stdarg.h is missing on your system ***" "$LINENO" 5
10755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
10756 $as_echo_n "checking for working strcoll... " >&6; }
10757 if ${ac_cv_func_strcoll_works+:} false; then :
10758 $as_echo_n "(cached) " >&6
10760 if test "$cross_compiling" = yes; then :
10761 ac_cv_func_strcoll_works=no
10763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10764 /* end confdefs.h. */
10765 $ac_includes_default
10769 return (strcoll ("abc", "def") >= 0 ||
10770 strcoll ("ABC", "DEF") >= 0 ||
10771 strcoll ("123", "456") >= 0)
10776 if ac_fn_c_try_run "$LINENO"; then :
10777 ac_cv_func_strcoll_works=yes
10779 ac_cv_func_strcoll_works=no
10781 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10782 conftest.$ac_objext conftest.beam conftest.$ac_ext
10786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
10787 $as_echo "$ac_cv_func_strcoll_works" >&6; }
10788 if test $ac_cv_func_strcoll_works = yes; then
10790 $as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
10794 for ac_func in setlocale
10796 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
10797 if test "x$ac_cv_func_setlocale" = xyes; then :
10798 cat >>confdefs.h <<_ACEOF
10799 #define HAVE_SETLOCALE 1
10807 ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
10808 if test "x$ac_cv_header_wchar_h" = xyes; then :
10810 ac_have_wchar_h=yes
10812 $as_echo "#define HAVE_WCHAR_H 1" >>confdefs.h
10819 for ac_func in mbtowc wcwidth mbrtowc mbsinit
10821 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10822 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10823 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10824 cat >>confdefs.h <<_ACEOF
10825 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10833 ac_fn_c_check_decl "$LINENO" "wcwidth" "ac_cv_have_decl_wcwidth" "$ac_includes_default"
10834 if test "x$ac_cv_have_decl_wcwidth" = xyes; then :
10840 cat >>confdefs.h <<_ACEOF
10841 #define HAVE_DECL_WCWIDTH $ac_have_decl
10844 ac_fn_c_check_type "$LINENO" "wchar_t" "ac_cv_type_wchar_t" "$ac_includes_default"
10845 if test "x$ac_cv_type_wchar_t" = xyes; then :
10852 if test x$ac_widec_funcs = xyes -a x$ac_have_wchar_h = xyes; then
10853 ac_widec_possible=yes
10855 ac_widec_possible=no
10859 abook_cv_curses=/usr
10861 # Check whether --with-curses was given.
10862 if test "${with_curses+set}" = set; then :
10863 withval=$with_curses; if test $withval != yes; then
10864 abook_cv_curses=$withval
10866 if test x$abook_cv_curses != x/usr; then
10867 LDFLAGS="-L${abook_cv_curses}/lib $LDFLAGS"
10868 CPPFLAGS="$CPPFLAGS -I${abook_cv_curses}/include"
10873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncursesw" >&5
10874 $as_echo_n "checking for initscr in -lncursesw... " >&6; }
10875 if ${ac_cv_lib_ncursesw_initscr+:} false; then :
10876 $as_echo_n "(cached) " >&6
10878 ac_check_lib_save_LIBS=$LIBS
10879 LIBS="-lncursesw $LIBS"
10880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10881 /* end confdefs.h. */
10883 /* Override any GCC internal prototype to avoid an error.
10884 Use char because int might match the return type of a GCC
10885 builtin and then its argument prototype would still apply. */
10898 if ac_fn_c_try_link "$LINENO"; then :
10899 ac_cv_lib_ncursesw_initscr=yes
10901 ac_cv_lib_ncursesw_initscr=no
10903 rm -f core conftest.err conftest.$ac_objext \
10904 conftest$ac_exeext conftest.$ac_ext
10905 LIBS=$ac_check_lib_save_LIBS
10907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncursesw_initscr" >&5
10908 $as_echo "$ac_cv_lib_ncursesw_initscr" >&6; }
10909 if test "x$ac_cv_lib_ncursesw_initscr" = xyes; then :
10910 LIBS="$LIBS -lncursesw"
10911 if test x$abook_cv_curses = x/usr -a -d /usr/include/ncursesw; then
10912 CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw"
10914 for ac_header in ncurses.h
10916 ac_fn_c_check_header_mongrel "$LINENO" "ncurses.h" "ac_cv_header_ncurses_h" "$ac_includes_default"
10917 if test "x$ac_cv_header_ncurses_h" = xyes; then :
10918 cat >>confdefs.h <<_ACEOF
10919 #define HAVE_NCURSES_H 1
10928 ac_widec_possible=no
10929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncurses" >&5
10930 $as_echo_n "checking for initscr in -lncurses... " >&6; }
10931 if ${ac_cv_lib_ncurses_initscr+:} false; then :
10932 $as_echo_n "(cached) " >&6
10934 ac_check_lib_save_LIBS=$LIBS
10935 LIBS="-lncurses $LIBS"
10936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10937 /* end confdefs.h. */
10939 /* Override any GCC internal prototype to avoid an error.
10940 Use char because int might match the return type of a GCC
10941 builtin and then its argument prototype would still apply. */
10954 if ac_fn_c_try_link "$LINENO"; then :
10955 ac_cv_lib_ncurses_initscr=yes
10957 ac_cv_lib_ncurses_initscr=no
10959 rm -f core conftest.err conftest.$ac_objext \
10960 conftest$ac_exeext conftest.$ac_ext
10961 LIBS=$ac_check_lib_save_LIBS
10963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_initscr" >&5
10964 $as_echo "$ac_cv_lib_ncurses_initscr" >&6; }
10965 if test "x$ac_cv_lib_ncurses_initscr" = xyes; then :
10966 LIBS="$LIBS -lncurses"
10967 if test x$abook_cv_curses = x/usr -a -d /usr/include/ncurses; then
10968 CPPFLAGS="$CPPFLAGS -I/usr/include/ncurses"
10970 for ac_header in ncurses.h
10972 ac_fn_c_check_header_mongrel "$LINENO" "ncurses.h" "ac_cv_header_ncurses_h" "$ac_includes_default"
10973 if test "x$ac_cv_header_ncurses_h" = xyes; then :
10974 cat >>confdefs.h <<_ACEOF
10975 #define HAVE_NCURSES_H 1
10984 ac_fn_c_check_func "$LINENO" "initscr" "ac_cv_func_initscr"
10985 if test "x$ac_cv_func_initscr" = xyes; then :
10989 case $host_os in #(vi
10991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgoto in -lmytinfo" >&5
10992 $as_echo_n "checking for tgoto in -lmytinfo... " >&6; }
10993 if ${ac_cv_lib_mytinfo_tgoto+:} false; then :
10994 $as_echo_n "(cached) " >&6
10996 ac_check_lib_save_LIBS=$LIBS
10997 LIBS="-lmytinfo $LIBS"
10998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10999 /* end confdefs.h. */
11001 /* Override any GCC internal prototype to avoid an error.
11002 Use char because int might match the return type of a GCC
11003 builtin and then its argument prototype would still apply. */
11016 if ac_fn_c_try_link "$LINENO"; then :
11017 ac_cv_lib_mytinfo_tgoto=yes
11019 ac_cv_lib_mytinfo_tgoto=no
11021 rm -f core conftest.err conftest.$ac_objext \
11022 conftest$ac_exeext conftest.$ac_ext
11023 LIBS=$ac_check_lib_save_LIBS
11025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mytinfo_tgoto" >&5
11026 $as_echo "$ac_cv_lib_mytinfo_tgoto" >&6; }
11027 if test "x$ac_cv_lib_mytinfo_tgoto" = xyes; then :
11028 LIBS="-lmytinfo $LIBS"
11033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lcur_colr" >&5
11034 $as_echo_n "checking for initscr in -lcur_colr... " >&6; }
11035 if ${ac_cv_lib_cur_colr_initscr+:} false; then :
11036 $as_echo_n "(cached) " >&6
11038 ac_check_lib_save_LIBS=$LIBS
11039 LIBS="-lcur_colr $LIBS"
11040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11041 /* end confdefs.h. */
11043 /* Override any GCC internal prototype to avoid an error.
11044 Use char because int might match the return type of a GCC
11045 builtin and then its argument prototype would still apply. */
11058 if ac_fn_c_try_link "$LINENO"; then :
11059 ac_cv_lib_cur_colr_initscr=yes
11061 ac_cv_lib_cur_colr_initscr=no
11063 rm -f core conftest.err conftest.$ac_objext \
11064 conftest$ac_exeext conftest.$ac_ext
11065 LIBS=$ac_check_lib_save_LIBS
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cur_colr_initscr" >&5
11068 $as_echo "$ac_cv_lib_cur_colr_initscr" >&6; }
11069 if test "x$ac_cv_lib_cur_colr_initscr" = xyes; then :
11071 LIBS="-lcur_colr $LIBS"
11072 CFLAGS="-I/usr/include/curses_colr $CFLAGS"
11073 ac_cv_func_initscr=yes
11077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lHcurses" >&5
11078 $as_echo_n "checking for initscr in -lHcurses... " >&6; }
11079 if ${ac_cv_lib_Hcurses_initscr+:} false; then :
11080 $as_echo_n "(cached) " >&6
11082 ac_check_lib_save_LIBS=$LIBS
11083 LIBS="-lHcurses $LIBS"
11084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11085 /* end confdefs.h. */
11087 /* Override any GCC internal prototype to avoid an error.
11088 Use char because int might match the return type of a GCC
11089 builtin and then its argument prototype would still apply. */
11102 if ac_fn_c_try_link "$LINENO"; then :
11103 ac_cv_lib_Hcurses_initscr=yes
11105 ac_cv_lib_Hcurses_initscr=no
11107 rm -f core conftest.err conftest.$ac_objext \
11108 conftest$ac_exeext conftest.$ac_ext
11109 LIBS=$ac_check_lib_save_LIBS
11111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Hcurses_initscr" >&5
11112 $as_echo "$ac_cv_lib_Hcurses_initscr" >&6; }
11113 if test "x$ac_cv_lib_Hcurses_initscr" = xyes; then :
11115 # HP's header uses __HP_CURSES, but user claims _HP_CURSES.
11116 LIBS="-lHcurses $LIBS"
11117 CFLAGS="-D__HP_CURSES -D_HP_CURSES $CFLAGS"
11118 ac_cv_func_initscr=yes
11125 linux*) # Suse Linux does not follow /usr/lib convention
11126 LIBS="$LIBS -L/lib"
11130 if test ".$With5lib" != ".no" ; then
11131 if test -d /usr/5lib ; then
11133 CPPFLAGS="$CPPFLAGS -I/usr/5include"
11134 LIBS="$LIBS -L/usr/5lib"
11138 if test ".$ac_cv_func_initscr" != .yes ; then
11139 cf_save_LIBS="$LIBS"
11143 # Check for library containing tgoto. Do this before curses library
11144 # because it may be needed to link the test-case for initscr.
11145 ac_fn_c_check_func "$LINENO" "tgoto" "ac_cv_func_tgoto"
11146 if test "x$ac_cv_func_tgoto" = xyes; then :
11147 cf_term_lib=predefined
11150 for cf_term_lib in termcap termlib unknown
11152 as_ac_Lib=`$as_echo "ac_cv_lib_$cf_term_lib''_tgoto" | $as_tr_sh`
11153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgoto in -l$cf_term_lib" >&5
11154 $as_echo_n "checking for tgoto in -l$cf_term_lib... " >&6; }
11155 if eval \${$as_ac_Lib+:} false; then :
11156 $as_echo_n "(cached) " >&6
11158 ac_check_lib_save_LIBS=$LIBS
11159 LIBS="-l$cf_term_lib $LIBS"
11160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11161 /* end confdefs.h. */
11163 /* Override any GCC internal prototype to avoid an error.
11164 Use char because int might match the return type of a GCC
11165 builtin and then its argument prototype would still apply. */
11178 if ac_fn_c_try_link "$LINENO"; then :
11179 eval "$as_ac_Lib=yes"
11181 eval "$as_ac_Lib=no"
11183 rm -f core conftest.err conftest.$ac_objext \
11184 conftest$ac_exeext conftest.$ac_ext
11185 LIBS=$ac_check_lib_save_LIBS
11187 eval ac_res=\$$as_ac_Lib
11188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11189 $as_echo "$ac_res" >&6; }
11190 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
11199 # Check for library containing initscr
11200 test "$cf_term_lib" != predefined && test "$cf_term_lib" != unknown && LIBS="-l$cf_term_lib $cf_save_LIBS"
11201 for cf_curs_lib in cursesX curses ncurses xcurses jcurses unknown
11203 as_ac_Lib=`$as_echo "ac_cv_lib_$cf_curs_lib''_initscr" | $as_tr_sh`
11204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -l$cf_curs_lib" >&5
11205 $as_echo_n "checking for initscr in -l$cf_curs_lib... " >&6; }
11206 if eval \${$as_ac_Lib+:} false; then :
11207 $as_echo_n "(cached) " >&6
11209 ac_check_lib_save_LIBS=$LIBS
11210 LIBS="-l$cf_curs_lib $LIBS"
11211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11212 /* end confdefs.h. */
11214 /* Override any GCC internal prototype to avoid an error.
11215 Use char because int might match the return type of a GCC
11216 builtin and then its argument prototype would still apply. */
11229 if ac_fn_c_try_link "$LINENO"; then :
11230 eval "$as_ac_Lib=yes"
11232 eval "$as_ac_Lib=no"
11234 rm -f core conftest.err conftest.$ac_objext \
11235 conftest$ac_exeext conftest.$ac_ext
11236 LIBS=$ac_check_lib_save_LIBS
11238 eval ac_res=\$$as_ac_Lib
11239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11240 $as_echo "$ac_res" >&6; }
11241 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
11246 test $cf_curs_lib = unknown && as_fn_error $? "no curses library found" "$LINENO" 5
11248 LIBS="-l$cf_curs_lib $cf_save_LIBS"
11249 if test "$cf_term_lib" = unknown ; then
11250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can link with $cf_curs_lib library" >&5
11251 $as_echo_n "checking if we can link with $cf_curs_lib library... " >&6; }
11252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11253 /* end confdefs.h. */
11254 #include <${cf_cv_ncurses_header-curses.h}>
11263 if ac_fn_c_try_link "$LINENO"; then :
11268 rm -f core conftest.err conftest.$ac_objext \
11269 conftest$ac_exeext conftest.$ac_ext
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_result" >&5
11271 $as_echo "$cf_result" >&6; }
11272 test $cf_result = no && as_fn_error $? "Cannot link curses library" "$LINENO" 5
11273 elif test "$cf_term_lib" != predefined ; then
11274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need both $cf_curs_lib and $cf_term_lib libraries" >&5
11275 $as_echo_n "checking if we need both $cf_curs_lib and $cf_term_lib libraries... " >&6; }
11276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11277 /* end confdefs.h. */
11278 #include <${cf_cv_ncurses_header-curses.h}>
11282 initscr(); tgoto((char *)0, 0, 0);
11287 if ac_fn_c_try_link "$LINENO"; then :
11291 LIBS="-l$cf_curs_lib -l$cf_term_lib $cf_save_LIBS"
11292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11293 /* end confdefs.h. */
11294 #include <${cf_cv_ncurses_header-curses.h}>
11303 if ac_fn_c_try_link "$LINENO"; then :
11308 rm -f core conftest.err conftest.$ac_objext \
11309 conftest$ac_exeext conftest.$ac_ext
11312 rm -f core conftest.err conftest.$ac_objext \
11313 conftest$ac_exeext conftest.$ac_ext
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_result" >&5
11315 $as_echo "$cf_result" >&6; }
11330 abook_cv_readline=/usr
11332 # Check whether --with-readline was given.
11333 if test "${with_readline+set}" = set; then :
11334 withval=$with_readline; if test $withval != yes; then
11335 abook_cv_readline=$withval
11337 if test x$abook_cv_readline != x/usr; then
11338 LDFLAGS="-L${abook_cv_readline}/lib $LDFLAGS"
11339 CPPFLAGS="$CPPFLAGS -I${abook_cv_readline}/include"
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
11346 $as_echo_n "checking for a readline compatible library... " >&6; }
11347 if ${ac_cv_lib_readline+:} false; then :
11348 $as_echo_n "(cached) " >&6
11352 for readline_lib in readline edit editline; do
11353 for termcap_lib in "" termcap curses ncurses; do
11354 if test -z "$termcap_lib"; then
11355 TRY_LIB="-l$readline_lib"
11357 TRY_LIB="-l$readline_lib -l$termcap_lib"
11359 LIBS="$ORIG_LIBS $TRY_LIB"
11360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11361 /* end confdefs.h. */
11363 /* Override any GCC internal prototype to avoid an error.
11364 Use char because int might match the return type of a GCC
11365 builtin and then its argument prototype would still apply. */
11373 return readline ();
11378 if ac_fn_c_try_link "$LINENO"; then :
11379 ac_cv_lib_readline="$TRY_LIB"
11381 rm -f core conftest.err conftest.$ac_objext \
11382 conftest$ac_exeext conftest.$ac_ext
11383 if test -n "$ac_cv_lib_readline"; then
11387 if test -n "$ac_cv_lib_readline"; then
11391 if test -z "$ac_cv_lib_readline"; then
11392 ac_cv_lib_readline="no"
11397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline" >&5
11398 $as_echo "$ac_cv_lib_readline" >&6; }
11400 if test "$ac_cv_lib_readline" != "no"; then
11401 LIBS="$LIBS $ac_cv_lib_readline"
11403 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
11405 for ac_header in readline.h readline/readline.h
11407 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11408 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11409 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11410 cat >>confdefs.h <<_ACEOF
11411 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
11419 $as_echo_n "checking whether readline supports history... " >&6; }
11420 if ${ac_cv_lib_readline_history+:} false; then :
11421 $as_echo_n "(cached) " >&6
11424 ac_cv_lib_readline_history="no"
11425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11426 /* end confdefs.h. */
11428 /* Override any GCC internal prototype to avoid an error.
11429 Use char because int might match the return type of a GCC
11430 builtin and then its argument prototype would still apply. */
11434 char add_history ();
11438 return add_history ();
11443 if ac_fn_c_try_link "$LINENO"; then :
11444 ac_cv_lib_readline_history="yes"
11446 rm -f core conftest.err conftest.$ac_objext \
11447 conftest$ac_exeext conftest.$ac_ext
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_history" >&5
11451 $as_echo "$ac_cv_lib_readline_history" >&6; }
11452 if test "$ac_cv_lib_readline_history" = "yes"; then
11454 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
11456 for ac_header in history.h readline/history.h
11458 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11459 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11460 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11461 cat >>confdefs.h <<_ACEOF
11462 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11474 if test x$ac_cv_lib_readline = xno -o x$ac_cv_lib_readline_history = xno; then
11475 as_fn_error $? "*** readline library not found or it doesn't support history ***" "$LINENO" 5
11480 # Check whether --enable-vformat was given.
11481 if test "${enable_vformat+set}" = set; then :
11482 enableval=$enable_vformat; case "${enableval}" in
11483 yes) vformat=true ;;
11484 no) vformat=false ;;
11485 *) as_fn_error $? "bad value ${enableval} for --enable-vformat" "$LINENO" 5 ;;
11491 if test x$vformat = xtrue; then
11492 ac_fn_c_check_header_mongrel "$LINENO" "vf_iface.h" "ac_cv_header_vf_iface_h" "$ac_includes_default"
11493 if test "x$ac_cv_header_vf_iface_h" = xyes; then :
11495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vf_read_file in -lvformat" >&5
11496 $as_echo_n "checking for vf_read_file in -lvformat... " >&6; }
11497 if ${ac_cv_lib_vformat_vf_read_file+:} false; then :
11498 $as_echo_n "(cached) " >&6
11500 ac_check_lib_save_LIBS=$LIBS
11501 LIBS="-lvformat $LIBS"
11502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11503 /* end confdefs.h. */
11505 /* Override any GCC internal prototype to avoid an error.
11506 Use char because int might match the return type of a GCC
11507 builtin and then its argument prototype would still apply. */
11511 char vf_read_file ();
11515 return vf_read_file ();
11520 if ac_fn_c_try_link "$LINENO"; then :
11521 ac_cv_lib_vformat_vf_read_file=yes
11523 ac_cv_lib_vformat_vf_read_file=no
11525 rm -f core conftest.err conftest.$ac_objext \
11526 conftest$ac_exeext conftest.$ac_ext
11527 LIBS=$ac_check_lib_save_LIBS
11529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_vformat_vf_read_file" >&5
11530 $as_echo "$ac_cv_lib_vformat_vf_read_file" >&6; }
11531 if test "x$ac_cv_lib_vformat_vf_read_file" = xyes; then :
11533 MODULES="$MODULES m_vcf"
11535 $as_echo "#define HAVE_VFORMAT 1" >>confdefs.h
11546 if test x"$have_vformat" = "xyes"; then
11547 ENABLE_VFORMAT_SUPPORT_TRUE=
11548 ENABLE_VFORMAT_SUPPORT_FALSE='#'
11550 ENABLE_VFORMAT_SUPPORT_TRUE='#'
11551 ENABLE_VFORMAT_SUPPORT_FALSE=
11557 if test x$ac_widec_possible = xyes; then
11559 $as_echo "#define HANDLE_MULTIBYTE 1" >>confdefs.h
11563 for ac_func in resizeterm
11565 ac_fn_c_check_func "$LINENO" "resizeterm" "ac_cv_func_resizeterm"
11566 if test "x$ac_cv_func_resizeterm" = xyes; then :
11567 cat >>confdefs.h <<_ACEOF
11568 #define HAVE_RESIZETERM 1
11575 for ac_func in snprintf vsnprintf
11577 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11578 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11579 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11580 cat >>confdefs.h <<_ACEOF
11581 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11588 for ac_func in strcasestr
11590 ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
11591 if test "x$ac_cv_func_strcasestr" = xyes; then :
11592 cat >>confdefs.h <<_ACEOF
11593 #define HAVE_STRCASESTR 1
11595 $as_echo "#define HAVE_STRCASESTR 1" >>confdefs.h
11601 # Check whether --enable-debug was given.
11602 if test "${enable_debug+set}" = set; then :
11603 enableval=$enable_debug; case "${enableval}" in
11606 *) as_fn_error $? "bad value ${enableval} for --enable-debug" "$LINENO" 5 ;;
11613 if test x$debug = xtrue; then
11614 CPPFLAGS="-DDEBUG=1 $CPPFLAGS"
11615 CFLAGS="-g $CFLAGS"
11618 if test x$GCC = xyes; then
11619 CFLAGS="-Wall $CFLAGS"
11622 ac_config_files="$ac_config_files Makefile abook.spec intl/Makefile po/Makefile.in"
11624 cat >confcache <<\_ACEOF
11625 # This file is a shell script that caches the results of configure
11626 # tests run on this system so they can be shared between configure
11627 # scripts and configure runs, see configure's option --config-cache.
11628 # It is not useful on other systems. If it contains results you don't
11629 # want to keep, you may remove or edit it.
11631 # config.status only pays attention to the cache file if you give it
11632 # the --recheck option to rerun configure.
11634 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11635 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11636 # following values.
11640 # The following way of writing the cache mishandles newlines in values,
11641 # but we know of no workaround that is simple, portable, and efficient.
11642 # So, we kill variables containing newlines.
11643 # Ultrix sh set writes to stderr and can't be redirected directly,
11644 # and sets the high bit in the cache file unless we assign to the vars.
11646 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11647 eval ac_val=\$$ac_var
11651 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11652 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11655 _ | IFS | as_nl) ;; #(
11656 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11657 *) { eval $ac_var=; unset $ac_var;} ;;
11663 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11664 *${as_nl}ac_space=\ *)
11665 # `set' does not quote correctly, so add quotes: double-quote
11666 # substitution turns \\\\ into \\, and sed turns \\ into \.
11669 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11672 # `set' quotes correctly as required by POSIX, so do not add quotes.
11673 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11682 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11684 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11686 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11687 if test -w "$cache_file"; then
11688 if test "x$cache_file" != "x/dev/null"; then
11689 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11690 $as_echo "$as_me: updating cache $cache_file" >&6;}
11691 if test ! -f "$cache_file" || test -h "$cache_file"; then
11692 cat confcache >"$cache_file"
11694 case $cache_file in #(
11696 mv -f confcache "$cache_file"$$ &&
11697 mv -f "$cache_file"$$ "$cache_file" ;; #(
11699 mv -f confcache "$cache_file" ;;
11704 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11705 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11710 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11711 # Let make expand exec_prefix.
11712 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11714 DEFS=-DHAVE_CONFIG_H
11718 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11719 # 1. Remove the extension, and $U if already installed.
11720 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11721 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11722 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11723 # will be set to the directory where LIBOBJS objects are built.
11724 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11725 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11727 LIBOBJS=$ac_libobjs
11729 LTLIBOBJS=$ac_ltlibobjs
11732 if test -n "$EXEEXT"; then
11734 am__EXEEXT_FALSE='#'
11736 am__EXEEXT_TRUE='#'
11740 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11741 as_fn_error $? "conditional \"AMDEP\" was never defined.
11742 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11744 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11745 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11746 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11748 if test -z "${USE_INCLUDED_INTL_H_TRUE}" && test -z "${USE_INCLUDED_INTL_H_FALSE}"; then
11749 as_fn_error $? "conditional \"USE_INCLUDED_INTL_H\" was never defined.
11750 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11752 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11753 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11754 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11756 if test -z "${ENABLE_VFORMAT_SUPPORT_TRUE}" && test -z "${ENABLE_VFORMAT_SUPPORT_FALSE}"; then
11757 as_fn_error $? "conditional \"ENABLE_VFORMAT_SUPPORT\" was never defined.
11758 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11761 : "${CONFIG_STATUS=./config.status}"
11763 ac_clean_files_save=$ac_clean_files
11764 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11766 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11768 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11770 # Generated by $as_me.
11771 # Run this file to recreate the current configuration.
11772 # Compiler output produced by configure, useful for debugging
11773 # configure, is in config.log if it exists.
11776 ac_cs_recheck=false
11779 SHELL=\${CONFIG_SHELL-$SHELL}
11782 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11783 ## -------------------- ##
11784 ## M4sh Initialization. ##
11785 ## -------------------- ##
11787 # Be more Bourne compatible
11788 DUALCASE=1; export DUALCASE # for MKS sh
11789 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11792 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11793 # is contrary to our usage. Disable this feature.
11794 alias -g '${1+"$@"}'='"$@"'
11795 setopt NO_GLOB_SUBST
11797 case `(set -o) 2>/dev/null` in #(
11809 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11810 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11811 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11812 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11813 # Prefer a ksh shell builtin over an external printf program on Solaris,
11814 # but without wasting forks for bash or zsh.
11815 if test -z "$BASH_VERSION$ZSH_VERSION" \
11816 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11817 as_echo='print -r --'
11818 as_echo_n='print -rn --'
11819 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11820 as_echo='printf %s\n'
11821 as_echo_n='printf %s'
11823 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11824 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11825 as_echo_n='/usr/ucb/echo -n'
11827 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11828 as_echo_n_body='eval
11832 expr "X$arg" : "X\\(.*\\)$as_nl";
11833 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11835 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11837 export as_echo_n_body
11838 as_echo_n='sh -c $as_echo_n_body as_echo'
11840 export as_echo_body
11841 as_echo='sh -c $as_echo_body as_echo'
11844 # The user is always right.
11845 if test "${PATH_SEPARATOR+set}" != set; then
11847 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11848 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11855 # We need space, tab and new line, in precisely that order. Quoting is
11856 # there to prevent editors from complaining about space-tab.
11857 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11858 # splitting by setting IFS to empty value.)
11861 # Find who we are. Look in the path if we contain no directory separator.
11864 *[\\/]* ) as_myself=$0 ;;
11865 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11866 for as_dir in $PATH
11869 test -z "$as_dir" && as_dir=.
11870 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11876 # We did not find ourselves, most probably we were run as `sh COMMAND'
11877 # in which case we are not to be found in the path.
11878 if test "x$as_myself" = x; then
11881 if test ! -f "$as_myself"; then
11882 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11886 # Unset variables that we do not need and which cause bugs (e.g. in
11887 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11888 # suppresses any "Segmentation fault" message there. '((' could
11889 # trigger a bug in pdksh 5.2.14.
11890 for as_var in BASH_ENV ENV MAIL MAILPATH
11891 do eval test x\${$as_var+set} = xset \
11892 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11905 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11908 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11909 # ----------------------------------------
11910 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11911 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11912 # script with STATUS, using 1 if that was 0.
11915 as_status=$1; test $as_status -eq 0 && as_status=1
11917 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11918 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11920 $as_echo "$as_me: error: $2" >&2
11921 as_fn_exit $as_status
11925 # as_fn_set_status STATUS
11926 # -----------------------
11927 # Set $? to STATUS, without forking.
11928 as_fn_set_status ()
11931 } # as_fn_set_status
11933 # as_fn_exit STATUS
11934 # -----------------
11935 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11939 as_fn_set_status $1
11945 # Portably unset VAR.
11948 { eval $1=; unset $1;}
11950 as_unset=as_fn_unset
11951 # as_fn_append VAR VALUE
11952 # ----------------------
11953 # Append the text in VALUE to the end of the definition contained in VAR. Take
11954 # advantage of any shell optimizations that allow amortized linear growth over
11955 # repeated appends, instead of the typical quadratic growth present in naive
11957 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11958 eval 'as_fn_append ()
11969 # as_fn_arith ARG...
11970 # ------------------
11971 # Perform arithmetic evaluation on the ARGs, and store the result in the
11972 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11973 # must be portable across $(()) and expr.
11974 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11975 eval 'as_fn_arith ()
11982 as_val=`expr "$@" || test $? -eq 1`
11987 if expr a : '\(a\)' >/dev/null 2>&1 &&
11988 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11994 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11995 as_basename=basename
12000 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12006 as_me=`$as_basename -- "$0" ||
12007 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12008 X"$0" : 'X\(//\)$' \| \
12009 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12011 sed '/^.*\/\([^/][^/]*\)\/*$/{
12025 # Avoid depending upon Character Ranges.
12026 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12027 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12028 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12029 as_cr_digits='0123456789'
12030 as_cr_alnum=$as_cr_Letters$as_cr_digits
12032 ECHO_C= ECHO_N= ECHO_T=
12033 case `echo -n x` in #(((((
12035 case `echo 'xy\c'` in
12036 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12038 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12045 rm -f conf$$ conf$$.exe conf$$.file
12046 if test -d conf$$.dir; then
12047 rm -f conf$$.dir/conf$$.file
12050 mkdir conf$$.dir 2>/dev/null
12052 if (echo >conf$$.file) 2>/dev/null; then
12053 if ln -s conf$$.file conf$$ 2>/dev/null; then
12055 # ... but there are two gotchas:
12056 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12057 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12058 # In both cases, we have to default to `cp -p'.
12059 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12061 elif ln conf$$.file conf$$ 2>/dev/null; then
12069 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12070 rmdir conf$$.dir 2>/dev/null
12075 # Create "$as_dir" as a directory, including parents if necessary.
12080 -*) as_dir=./$as_dir;;
12082 test -d "$as_dir" || eval $as_mkdir_p || {
12086 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12087 *) as_qdir=$as_dir;;
12089 as_dirs="'$as_qdir' $as_dirs"
12090 as_dir=`$as_dirname -- "$as_dir" ||
12091 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12092 X"$as_dir" : 'X\(//\)[^/]' \| \
12093 X"$as_dir" : 'X\(//\)$' \| \
12094 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12095 $as_echo X"$as_dir" |
12096 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12100 /^X\(\/\/\)[^/].*/{
12113 test -d "$as_dir" && break
12115 test -z "$as_dirs" || eval "mkdir $as_dirs"
12116 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12120 if mkdir -p . 2>/dev/null; then
12121 as_mkdir_p='mkdir -p "$as_dir"'
12123 test -d ./-p && rmdir ./-p
12127 if test -x / >/dev/null 2>&1; then
12128 as_test_x='test -x'
12130 if ls -dL / >/dev/null 2>&1; then
12137 if test -d "$1"; then
12143 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12144 ???[sx]*):;;*)false;;esac;fi
12148 as_executable_p=$as_test_x
12150 # Sed expression to map a string onto a valid CPP name.
12151 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12153 # Sed expression to map a string onto a valid variable name.
12154 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12158 ## ----------------------------------- ##
12159 ## Main body of $CONFIG_STATUS script. ##
12160 ## ----------------------------------- ##
12162 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12164 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12165 # Save the log message, to keep $0 and so on meaningful, and to
12166 # report actual input values of CONFIG_FILES etc. instead of their
12167 # values after options handling.
12169 This file was extended by $as_me, which was
12170 generated by GNU Autoconf 2.68. Invocation command line was
12172 CONFIG_FILES = $CONFIG_FILES
12173 CONFIG_HEADERS = $CONFIG_HEADERS
12174 CONFIG_LINKS = $CONFIG_LINKS
12175 CONFIG_COMMANDS = $CONFIG_COMMANDS
12178 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12183 case $ac_config_files in *"
12184 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12187 case $ac_config_headers in *"
12188 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12192 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12193 # Files that config.status was made for.
12194 config_files="$ac_config_files"
12195 config_headers="$ac_config_headers"
12196 config_commands="$ac_config_commands"
12200 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12202 \`$as_me' instantiates files and other configuration actions
12203 from templates according to the current configuration. Unless the files
12204 and actions are specified as TAGs, all are instantiated by default.
12206 Usage: $0 [OPTION]... [TAG]...
12208 -h, --help print this help, then exit
12209 -V, --version print version number and configuration settings, then exit
12210 --config print configuration, then exit
12211 -q, --quiet, --silent
12212 do not print progress messages
12213 -d, --debug don't remove temporary files
12214 --recheck update $as_me by reconfiguring in the same conditions
12215 --file=FILE[:TEMPLATE]
12216 instantiate the configuration file FILE
12217 --header=FILE[:TEMPLATE]
12218 instantiate the configuration header FILE
12220 Configuration files:
12223 Configuration headers:
12226 Configuration commands:
12229 Report bugs to the package provider."
12232 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12233 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12236 configured by $0, generated by GNU Autoconf 2.68,
12237 with options \\"\$ac_cs_config\\"
12239 Copyright (C) 2010 Free Software Foundation, Inc.
12240 This config.status script is free software; the Free Software Foundation
12241 gives unlimited permission to copy, distribute and modify it."
12248 test -n "\$AWK" || AWK=awk
12251 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12252 # The default lists apply if the user does not specify any file.
12258 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12259 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12263 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12275 # Handling of the options.
12276 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12278 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12279 $as_echo "$ac_cs_version"; exit ;;
12280 --config | --confi | --conf | --con | --co | --c )
12281 $as_echo "$ac_cs_config"; exit ;;
12282 --debug | --debu | --deb | --de | --d | -d )
12284 --file | --fil | --fi | --f )
12287 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12288 '') as_fn_error $? "missing file argument" ;;
12290 as_fn_append CONFIG_FILES " '$ac_optarg'"
12291 ac_need_defaults=false;;
12292 --header | --heade | --head | --hea )
12295 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12297 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12298 ac_need_defaults=false;;
12300 # Conflict between --help and --header
12301 as_fn_error $? "ambiguous option: \`$1'
12302 Try \`$0 --help' for more information.";;
12303 --help | --hel | -h )
12304 $as_echo "$ac_cs_usage"; exit ;;
12305 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12306 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12309 # This is an error.
12310 -*) as_fn_error $? "unrecognized option: \`$1'
12311 Try \`$0 --help' for more information." ;;
12313 *) as_fn_append ac_config_targets " $1"
12314 ac_need_defaults=false ;;
12320 ac_configure_extra_args=
12322 if $ac_cs_silent; then
12324 ac_configure_extra_args="$ac_configure_extra_args --silent"
12328 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12329 if \$ac_cs_recheck; then
12330 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12332 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12333 CONFIG_SHELL='$SHELL'
12334 export CONFIG_SHELL
12339 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12343 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12344 ## Running $as_me. ##
12350 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12354 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12355 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
12356 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
12357 # from automake < 1.5.
12358 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
12359 # Capture the value of LINGUAS because we need it to compute CATALOGS.
12360 LINGUAS="${LINGUAS-%UNSET%}"
12365 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12367 # Handling of arguments.
12368 for ac_config_target in $ac_config_targets
12370 case $ac_config_target in
12371 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12372 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12373 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
12374 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12375 "abook.spec") CONFIG_FILES="$CONFIG_FILES abook.spec" ;;
12376 "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
12377 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
12379 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12384 # If the user did not use the arguments to specify the items to instantiate,
12385 # then the envvar interface is used. Set only those that are not.
12386 # We use the long form for the default assignment because of an extremely
12387 # bizarre bug on SunOS 4.1.3.
12388 if $ac_need_defaults; then
12389 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12390 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12391 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12394 # Have a temporary directory for convenience. Make it in the build tree
12395 # simply because there is no reason against having it here, and in addition,
12396 # creating and moving files from /tmp can sometimes cause problems.
12397 # Hook for its removal unless debugging.
12398 # Note that there is a small window in which the directory will not be cleaned:
12399 # after its creation but before its name has been assigned to `$tmp'.
12403 trap 'exit_status=$?
12404 : "${ac_tmp:=$tmp}"
12405 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12407 trap 'as_fn_exit 1' 1 2 13 15
12409 # Create a (secure) tmp directory for tmp files.
12412 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12416 tmp=./conf$$-$RANDOM
12417 (umask 077 && mkdir "$tmp")
12418 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12421 # Set up the scripts for CONFIG_FILES section.
12422 # No need to generate them if there are no CONFIG_FILES.
12423 # This happens for instance with `./config.status config.h'.
12424 if test -n "$CONFIG_FILES"; then
12427 ac_cr=`echo X | tr X '\015'`
12428 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12429 # But we know of no other shell where ac_cr would be empty at this
12430 # point, so we can use a bashism as a fallback.
12431 if test "x$ac_cr" = x; then
12432 eval ac_cr=\$\'\\r\'
12434 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12435 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12438 ac_cs_awk_cr=$ac_cr
12441 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12446 echo "cat >conf$$subs.awk <<_ACEOF" &&
12447 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12449 } >conf$$subs.sh ||
12450 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12451 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12453 for ac_last_try in false false false false false :; do
12454 . ./conf$$subs.sh ||
12455 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12457 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12458 if test $ac_delim_n = $ac_delim_num; then
12460 elif $ac_last_try; then
12461 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12463 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12466 rm -f conf$$subs.sh
12468 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12469 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12473 s/^/S["/; s/!.*/"]=/
12483 s/\(.\{148\}\)..*/\1/
12485 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12490 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12497 s/\(.\{148\}\)..*/\1/
12499 s/["\\]/\\&/g; s/^/"/; s/$/"/
12503 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12508 ' <conf$$subs.awk | sed '
12513 ' >>$CONFIG_STATUS || ac_write_fail=1
12514 rm -f conf$$subs.awk
12515 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12517 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12518 for (key in S) S_is_set[key] = 1
12524 nfields = split(line, field, "@")
12526 len = length(field[1])
12527 for (i = 2; i < nfields; i++) {
12529 keylen = length(key)
12530 if (S_is_set[key]) {
12532 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12533 len += length(value) + length(field[++i])
12544 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12545 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12546 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12549 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12550 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12553 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12554 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12555 # trailing colons and then remove the whole line if VPATH becomes empty
12556 # (actually we leave an empty line to preserve line numbers).
12557 if test "x$srcdir" = x.; then
12558 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12576 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12577 fi # test -n "$CONFIG_FILES"
12579 # Set up the scripts for CONFIG_HEADERS section.
12580 # No need to generate them if there are no CONFIG_HEADERS.
12581 # This happens for instance with `./config.status Makefile'.
12582 if test -n "$CONFIG_HEADERS"; then
12583 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12587 # Transform confdefs.h into an awk script `defines.awk', embedded as
12588 # here-document in config.status, that substitutes the proper values into
12589 # config.h.in to produce config.h.
12591 # Create a delimiter string that does not exist in confdefs.h, to ease
12592 # handling of long lines.
12594 for ac_last_try in false false :; do
12595 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12596 if test -z "$ac_tt"; then
12598 elif $ac_last_try; then
12599 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12601 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12605 # For the awk script, D is an array of macro values keyed by name,
12606 # likewise P contains macro parameters if any. Preserve backslash
12607 # newline sequences.
12609 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12611 s/.\{148\}/&'"$ac_delim"'/g
12614 s/^[ ]*#[ ]*define[ ][ ]*/ /
12621 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12623 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12627 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12628 D["\1"]=" \3\\\\\\n"\\/p
12630 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12635 s/.\{148\}/&'"$ac_delim"'/g
12640 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12643 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12645 ' <confdefs.h | sed '
12646 s/'"$ac_delim"'/"\\\
12647 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12649 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12650 for (key in D) D_is_set[key] = 1
12653 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12655 split(line, arg, " ")
12656 if (arg[1] == "#") {
12660 defundef = substr(arg[1], 2)
12663 split(mac1, mac2, "(") #)
12665 prefix = substr(line, 1, index(line, defundef) - 1)
12666 if (D_is_set[macro]) {
12667 # Preserve the white space surrounding the "#".
12668 print prefix "define", macro P[macro] D[macro]
12671 # Replace #undef with comments. This is necessary, for example,
12672 # in the case of _POSIX_SOURCE, which is predefined and required
12673 # on some systems where configure will not decide to define it.
12674 if (defundef == "undef") {
12675 print "/*", prefix defundef, macro, "*/"
12683 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12684 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12685 fi # test -n "$CONFIG_HEADERS"
12688 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12693 :[FHLC]) ac_mode=$ac_tag; continue;;
12695 case $ac_mode$ac_tag in
12697 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12698 :[FH]-) ac_tag=-:-;;
12699 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12716 -) ac_f="$ac_tmp/stdin";;
12717 *) # Look for the file first in the build tree, then in the source tree
12718 # (if the path is not absolute). The absolute path cannot be DOS-style,
12719 # because $ac_f cannot contain `:'.
12723 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12725 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12727 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12728 as_fn_append ac_file_inputs " '$ac_f'"
12731 # Let's still pretend it is `configure' which instantiates (i.e., don't
12732 # use $as_me), people would be surprised to read:
12733 # /* config.h. Generated by config.status. */
12734 configure_input='Generated from '`
12735 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12737 if test x"$ac_file" != x-; then
12738 configure_input="$ac_file. $configure_input"
12739 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12740 $as_echo "$as_me: creating $ac_file" >&6;}
12742 # Neutralize special characters interpreted by sed in replacement strings.
12743 case $configure_input in #(
12744 *\&* | *\|* | *\\* )
12745 ac_sed_conf_input=`$as_echo "$configure_input" |
12746 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12747 *) ac_sed_conf_input=$configure_input;;
12751 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12752 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12757 ac_dir=`$as_dirname -- "$ac_file" ||
12758 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12759 X"$ac_file" : 'X\(//\)[^/]' \| \
12760 X"$ac_file" : 'X\(//\)$' \| \
12761 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12762 $as_echo X"$ac_file" |
12763 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12767 /^X\(\/\/\)[^/].*/{
12780 as_dir="$ac_dir"; as_fn_mkdir_p
12784 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12786 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12787 # A ".." for each directory in $ac_dir_suffix.
12788 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12789 case $ac_top_builddir_sub in
12790 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12791 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12794 ac_abs_top_builddir=$ac_pwd
12795 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12796 # for backward compatibility:
12797 ac_top_builddir=$ac_top_build_prefix
12800 .) # We are building in place.
12802 ac_top_srcdir=$ac_top_builddir_sub
12803 ac_abs_top_srcdir=$ac_pwd ;;
12804 [\\/]* | ?:[\\/]* ) # Absolute name.
12805 ac_srcdir=$srcdir$ac_dir_suffix;
12806 ac_top_srcdir=$srcdir
12807 ac_abs_top_srcdir=$srcdir ;;
12808 *) # Relative name.
12809 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12810 ac_top_srcdir=$ac_top_build_prefix$srcdir
12811 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12813 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12823 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12824 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12826 ac_MKDIR_P=$MKDIR_P
12828 [\\/$]* | ?:[\\/]* ) ;;
12829 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12833 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12834 # If the template does not know about datarootdir, expand it.
12835 # FIXME: This hack should be removed a few years after 2.60.
12836 ac_datarootdir_hack=; ac_datarootdir_seen=
12847 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12848 *datarootdir*) ac_datarootdir_seen=yes;;
12849 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12851 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12853 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12854 ac_datarootdir_hack='
12855 s&@datadir@&$datadir&g
12856 s&@docdir@&$docdir&g
12857 s&@infodir@&$infodir&g
12858 s&@localedir@&$localedir&g
12859 s&@mandir@&$mandir&g
12860 s&\\\${datarootdir}&$datarootdir&g' ;;
12864 # Neutralize VPATH when `$srcdir' = `.'.
12865 # Shell code in configure.ac might set extrasub.
12866 # FIXME: do we really want to maintain this feature?
12867 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12868 ac_sed_extra="$ac_vpsub
12871 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12873 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12874 s|@configure_input@|$ac_sed_conf_input|;t t
12875 s&@top_builddir@&$ac_top_builddir_sub&;t t
12876 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12877 s&@srcdir@&$ac_srcdir&;t t
12878 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12879 s&@top_srcdir@&$ac_top_srcdir&;t t
12880 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12881 s&@builddir@&$ac_builddir&;t t
12882 s&@abs_builddir@&$ac_abs_builddir&;t t
12883 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12884 s&@INSTALL@&$ac_INSTALL&;t t
12885 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12886 $ac_datarootdir_hack
12888 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12889 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12891 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12892 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12893 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12894 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12896 which seems to be undefined. Please make sure it is defined" >&5
12897 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12898 which seems to be undefined. Please make sure it is defined" >&2;}
12900 rm -f "$ac_tmp/stdin"
12902 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12903 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12905 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12911 if test x"$ac_file" != x-; then
12913 $as_echo "/* $configure_input */" \
12914 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12915 } >"$ac_tmp/config.h" \
12916 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12917 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12918 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12919 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12922 mv "$ac_tmp/config.h" "$ac_file" \
12923 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12926 $as_echo "/* $configure_input */" \
12927 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12928 || as_fn_error $? "could not create -" "$LINENO" 5
12930 # Compute "$ac_file"'s index in $config_headers.
12933 for _am_header in $config_headers :; do
12934 case $_am_header in
12935 $_am_arg | $_am_arg:* )
12938 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12941 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12942 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12943 X"$_am_arg" : 'X\(//\)[^/]' \| \
12944 X"$_am_arg" : 'X\(//\)$' \| \
12945 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12946 $as_echo X"$_am_arg" |
12947 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12951 /^X\(\/\/\)[^/].*/{
12963 s/.*/./; q'`/stamp-h$_am_stamp_count
12966 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12967 $as_echo "$as_me: executing $ac_file commands" >&6;}
12972 case $ac_file$ac_mode in
12973 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12974 # Autoconf 2.62 quotes --file arguments for eval, but not when files
12975 # are listed without --file. Let's play safe and only enable the eval
12976 # if we detect the quoting.
12977 case $CONFIG_FILES in
12978 *\'*) eval set x "$CONFIG_FILES" ;;
12979 *) set x $CONFIG_FILES ;;
12984 # Strip MF so we end up with the name of the file.
12985 mf=`echo "$mf" | sed -e 's/:.*$//'`
12986 # Check whether this is an Automake generated Makefile or not.
12987 # We used to match only the files named `Makefile.in', but
12988 # some people rename them; so instead we look at the file content.
12989 # Grep'ing the first line is not enough: some people post-process
12990 # each Makefile.in and add a new line on top of each file to say so.
12991 # Grep'ing the whole file is not good either: AIX grep has a line
12992 # limit of 2048, but all sed's we know have understand at least 4000.
12993 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12994 dirpart=`$as_dirname -- "$mf" ||
12995 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12996 X"$mf" : 'X\(//\)[^/]' \| \
12997 X"$mf" : 'X\(//\)$' \| \
12998 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13000 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13004 /^X\(\/\/\)[^/].*/{
13020 # Extract the definition of DEPDIR, am__include, and am__quote
13021 # from the Makefile without running `make'.
13022 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13023 test -z "$DEPDIR" && continue
13024 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13025 test -z "am__include" && continue
13026 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13027 # When using ansi2knr, U may be empty or an underscore; expand it
13028 U=`sed -n 's/^U = //p' < "$mf"`
13029 # Find all dependency output files, they are included files with
13030 # $(DEPDIR) in their names. We invoke sed twice because it is the
13031 # simplest approach to changing $(DEPDIR) to its actual value in the
13033 for file in `sed -n "
13034 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13035 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13036 # Make sure the directory exists.
13037 test -f "$dirpart/$file" && continue
13038 fdir=`$as_dirname -- "$file" ||
13039 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13040 X"$file" : 'X\(//\)[^/]' \| \
13041 X"$file" : 'X\(//\)$' \| \
13042 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13043 $as_echo X"$file" |
13044 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13048 /^X\(\/\/\)[^/].*/{
13061 as_dir=$dirpart/$fdir; as_fn_mkdir_p
13062 # echo "creating $dirpart/$file"
13063 echo '# dummy' > "$dirpart/$file"
13068 "po-directories":C)
13069 for ac_file in $CONFIG_FILES; do
13070 # Support "outfile[:infile[:infile...]]"
13072 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13074 # PO directories have a Makefile.in generated from Makefile.in.in.
13075 case "$ac_file" in */Makefile.in)
13076 # Adjust a relative srcdir.
13077 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
13078 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
13079 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
13080 # In autoconf-2.13 it is called $ac_given_srcdir.
13081 # In autoconf-2.50 it is called $srcdir.
13082 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
13083 case "$ac_given_srcdir" in
13084 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
13085 /*) top_srcdir="$ac_given_srcdir" ;;
13086 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
13088 # Treat a directory as a PO directory if and only if it has a
13089 # POTFILES.in file. This allows packages to have multiple PO
13090 # directories under different names or in different locations.
13091 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
13092 rm -f "$ac_dir/POTFILES"
13093 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
13094 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
13095 POMAKEFILEDEPS="POTFILES.in"
13096 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
13097 # on $ac_dir but don't depend on user-specified configuration
13099 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
13100 # The LINGUAS file contains the set of available languages.
13101 if test -n "$OBSOLETE_ALL_LINGUAS"; then
13102 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
13104 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
13105 # Hide the ALL_LINGUAS assigment from automake < 1.5.
13106 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
13107 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
13109 # The set of available languages was given in configure.in.
13110 # Hide the ALL_LINGUAS assigment from automake < 1.5.
13111 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
13114 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
13115 # Compute UPDATEPOFILES
13116 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
13117 # Compute DUMMYPOFILES
13118 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
13120 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
13121 case "$ac_given_srcdir" in
13123 *) srcdirpre='$(srcdir)/' ;;
13129 for lang in $ALL_LINGUAS; do
13130 POFILES="$POFILES $srcdirpre$lang.po"
13131 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
13132 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
13133 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
13135 # CATALOGS depends on both $ac_dir and the user's LINGUAS
13136 # environment variable.
13138 if test -n "$ALL_LINGUAS"; then
13139 for presentlang in $ALL_LINGUAS; do
13141 if test "%UNSET%" != "$LINGUAS"; then
13142 desiredlanguages="$LINGUAS"
13144 desiredlanguages="$ALL_LINGUAS"
13146 for desiredlang in $desiredlanguages; do
13147 # Use the presentlang catalog if desiredlang is
13148 # a. equal to presentlang, or
13149 # b. a variant of presentlang (because in this case,
13150 # presentlang can be used as a fallback for messages
13151 # which are not translated in the desiredlang catalog).
13152 case "$desiredlang" in
13153 "$presentlang"*) useit=yes;;
13156 if test $useit = yes; then
13157 INST_LINGUAS="$INST_LINGUAS $presentlang"
13162 if test -n "$INST_LINGUAS"; then
13163 for lang in $INST_LINGUAS; do
13164 CATALOGS="$CATALOGS $lang.gmo"
13167 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
13168 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"
13169 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
13170 if test -f "$f"; then
13172 *.orig | *.bak | *~) ;;
13173 *) cat "$f" >> "$ac_dir/Makefile" ;;
13188 ac_clean_files=$ac_clean_files_save
13190 test $ac_write_fail = 0 ||
13191 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13194 # configure is writing to config.log, and then calls config.status.
13195 # config.status does its own redirection, appending to config.log.
13196 # Unfortunately, on DOS this fails, as config.log is still kept open
13197 # by configure, so config.status won't be able to write to it; its
13198 # output is simply discarded. So we exec the FD to /dev/null,
13199 # effectively closing config.log, so it can be properly (re)opened and
13200 # appended to by config.status. When coming back to configure, we
13201 # need to make the FD available again.
13202 if test "$no_create" != yes; then
13204 ac_config_status_args=
13205 test "$silent" = yes &&
13206 ac_config_status_args="$ac_config_status_args --quiet"
13208 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13210 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13211 # would make configure fail if this is the last instruction.
13212 $ac_cs_success || as_fn_exit 1
13214 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13216 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}