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
611 USE_INCLUDED_INTL_H_FALSE
612 USE_INCLUDED_INTL_H_TRUE
617 INTL_LIBTOOL_SUFFIX_PREFIX
624 BUILD_INCLUDED_LIBINTL
634 INTL_DEFAULT_VERBOSITY
661 XGETTEXT_EXTRA_OPTIONS
669 GETTEXT_MACRO_VERSION
699 INSTALL_STRIP_PROGRAM
741 program_transform_name
754 enable_option_checking
755 enable_dependency_tracking
762 with_included_gettext
769 ac_precious_vars='build_alias
780 # Initialize some variables set by options.
782 ac_init_version=false
783 ac_unrecognized_opts=
785 # The variables have the same names as the options, with
786 # dashes changed to underlines.
794 program_transform_name=s,x,x,
802 # Installation directory options.
803 # These are left unexpanded so users can "make install exec_prefix=/foo"
804 # and all the variables that are supposed to be based on exec_prefix
805 # by default will actually change.
806 # Use braces instead of parens because sh, perl, etc. also accept them.
807 # (The list follows the same order as the GNU Coding Standards.)
808 bindir='${exec_prefix}/bin'
809 sbindir='${exec_prefix}/sbin'
810 libexecdir='${exec_prefix}/libexec'
811 datarootdir='${prefix}/share'
812 datadir='${datarootdir}'
813 sysconfdir='${prefix}/etc'
814 sharedstatedir='${prefix}/com'
815 localstatedir='${prefix}/var'
816 includedir='${prefix}/include'
817 oldincludedir='/usr/include'
818 docdir='${datarootdir}/doc/${PACKAGE}'
819 infodir='${datarootdir}/info'
824 libdir='${exec_prefix}/lib'
825 localedir='${datarootdir}/locale'
826 mandir='${datarootdir}/man'
832 # If the previous option needs an argument, assign it.
833 if test -n "$ac_prev"; then
834 eval $ac_prev=\$ac_option
840 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
845 # Accept the important Cygnus configure options, so we can diagnose typos.
847 case $ac_dashdash$ac_option in
851 -bindir | --bindir | --bindi | --bind | --bin | --bi)
853 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
856 -build | --build | --buil | --bui | --bu)
857 ac_prev=build_alias ;;
858 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
859 build_alias=$ac_optarg ;;
861 -cache-file | --cache-file | --cache-fil | --cache-fi \
862 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
863 ac_prev=cache_file ;;
864 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
865 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
866 cache_file=$ac_optarg ;;
869 cache_file=config.cache ;;
871 -datadir | --datadir | --datadi | --datad)
873 -datadir=* | --datadir=* | --datadi=* | --datad=*)
874 datadir=$ac_optarg ;;
876 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
877 | --dataroo | --dataro | --datar)
878 ac_prev=datarootdir ;;
879 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
880 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
881 datarootdir=$ac_optarg ;;
883 -disable-* | --disable-*)
884 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
885 # Reject names that are not valid shell variable names.
886 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
887 as_fn_error $? "invalid feature name: $ac_useropt"
888 ac_useropt_orig=$ac_useropt
889 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
890 case $ac_user_opts in
894 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
895 ac_unrecognized_sep=', ';;
897 eval enable_$ac_useropt=no ;;
899 -docdir | --docdir | --docdi | --doc | --do)
901 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
904 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
906 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
909 -enable-* | --enable-*)
910 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
911 # Reject names that are not valid shell variable names.
912 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
913 as_fn_error $? "invalid feature name: $ac_useropt"
914 ac_useropt_orig=$ac_useropt
915 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
916 case $ac_user_opts in
920 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
921 ac_unrecognized_sep=', ';;
923 eval enable_$ac_useropt=\$ac_optarg ;;
925 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
926 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
927 | --exec | --exe | --ex)
928 ac_prev=exec_prefix ;;
929 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
930 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
931 | --exec=* | --exe=* | --ex=*)
932 exec_prefix=$ac_optarg ;;
934 -gas | --gas | --ga | --g)
935 # Obsolete; use --with-gas.
938 -help | --help | --hel | --he | -h)
940 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
941 ac_init_help=recursive ;;
942 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
943 ac_init_help=short ;;
945 -host | --host | --hos | --ho)
946 ac_prev=host_alias ;;
947 -host=* | --host=* | --hos=* | --ho=*)
948 host_alias=$ac_optarg ;;
950 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
952 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
954 htmldir=$ac_optarg ;;
956 -includedir | --includedir | --includedi | --included | --include \
957 | --includ | --inclu | --incl | --inc)
958 ac_prev=includedir ;;
959 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
960 | --includ=* | --inclu=* | --incl=* | --inc=*)
961 includedir=$ac_optarg ;;
963 -infodir | --infodir | --infodi | --infod | --info | --inf)
965 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
966 infodir=$ac_optarg ;;
968 -libdir | --libdir | --libdi | --libd)
970 -libdir=* | --libdir=* | --libdi=* | --libd=*)
973 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
974 | --libexe | --libex | --libe)
975 ac_prev=libexecdir ;;
976 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
977 | --libexe=* | --libex=* | --libe=*)
978 libexecdir=$ac_optarg ;;
980 -localedir | --localedir | --localedi | --localed | --locale)
982 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
983 localedir=$ac_optarg ;;
985 -localstatedir | --localstatedir | --localstatedi | --localstated \
986 | --localstate | --localstat | --localsta | --localst | --locals)
987 ac_prev=localstatedir ;;
988 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
989 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
990 localstatedir=$ac_optarg ;;
992 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
994 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
998 # Obsolete; use --without-fp.
1001 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1002 | --no-cr | --no-c | -n)
1005 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1006 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1009 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1010 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1011 | --oldin | --oldi | --old | --ol | --o)
1012 ac_prev=oldincludedir ;;
1013 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1014 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1015 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1016 oldincludedir=$ac_optarg ;;
1018 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1020 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1021 prefix=$ac_optarg ;;
1023 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1024 | --program-pre | --program-pr | --program-p)
1025 ac_prev=program_prefix ;;
1026 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1027 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1028 program_prefix=$ac_optarg ;;
1030 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1031 | --program-suf | --program-su | --program-s)
1032 ac_prev=program_suffix ;;
1033 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1034 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1035 program_suffix=$ac_optarg ;;
1037 -program-transform-name | --program-transform-name \
1038 | --program-transform-nam | --program-transform-na \
1039 | --program-transform-n | --program-transform- \
1040 | --program-transform | --program-transfor \
1041 | --program-transfo | --program-transf \
1042 | --program-trans | --program-tran \
1043 | --progr-tra | --program-tr | --program-t)
1044 ac_prev=program_transform_name ;;
1045 -program-transform-name=* | --program-transform-name=* \
1046 | --program-transform-nam=* | --program-transform-na=* \
1047 | --program-transform-n=* | --program-transform-=* \
1048 | --program-transform=* | --program-transfor=* \
1049 | --program-transfo=* | --program-transf=* \
1050 | --program-trans=* | --program-tran=* \
1051 | --progr-tra=* | --program-tr=* | --program-t=*)
1052 program_transform_name=$ac_optarg ;;
1054 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1056 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1057 pdfdir=$ac_optarg ;;
1059 -psdir | --psdir | --psdi | --psd | --ps)
1061 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1064 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1065 | -silent | --silent | --silen | --sile | --sil)
1068 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1070 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1072 sbindir=$ac_optarg ;;
1074 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1075 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1076 | --sharedst | --shareds | --shared | --share | --shar \
1078 ac_prev=sharedstatedir ;;
1079 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1080 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1081 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1083 sharedstatedir=$ac_optarg ;;
1085 -site | --site | --sit)
1087 -site=* | --site=* | --sit=*)
1090 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1092 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1093 srcdir=$ac_optarg ;;
1095 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1096 | --syscon | --sysco | --sysc | --sys | --sy)
1097 ac_prev=sysconfdir ;;
1098 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1099 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1100 sysconfdir=$ac_optarg ;;
1102 -target | --target | --targe | --targ | --tar | --ta | --t)
1103 ac_prev=target_alias ;;
1104 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1105 target_alias=$ac_optarg ;;
1107 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1110 -version | --version | --versio | --versi | --vers | -V)
1111 ac_init_version=: ;;
1114 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1115 # Reject names that are not valid shell variable names.
1116 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1117 as_fn_error $? "invalid package name: $ac_useropt"
1118 ac_useropt_orig=$ac_useropt
1119 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1120 case $ac_user_opts in
1124 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1125 ac_unrecognized_sep=', ';;
1127 eval with_$ac_useropt=\$ac_optarg ;;
1129 -without-* | --without-*)
1130 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1131 # Reject names that are not valid shell variable names.
1132 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1133 as_fn_error $? "invalid package name: $ac_useropt"
1134 ac_useropt_orig=$ac_useropt
1135 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1136 case $ac_user_opts in
1140 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1141 ac_unrecognized_sep=', ';;
1143 eval with_$ac_useropt=no ;;
1146 # Obsolete; use --with-x.
1149 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1150 | --x-incl | --x-inc | --x-in | --x-i)
1151 ac_prev=x_includes ;;
1152 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1153 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1154 x_includes=$ac_optarg ;;
1156 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1157 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1158 ac_prev=x_libraries ;;
1159 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1160 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1161 x_libraries=$ac_optarg ;;
1163 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1164 Try \`$0 --help' for more information"
1168 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1169 # Reject names that are not valid shell variable names.
1170 case $ac_envvar in #(
1171 '' | [0-9]* | *[!_$as_cr_alnum]* )
1172 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1174 eval $ac_envvar=\$ac_optarg
1175 export $ac_envvar ;;
1178 # FIXME: should be removed in autoconf 3.0.
1179 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1180 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1181 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1182 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1188 if test -n "$ac_prev"; then
1189 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1190 as_fn_error $? "missing argument to $ac_option"
1193 if test -n "$ac_unrecognized_opts"; then
1194 case $enable_option_checking in
1196 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1197 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1201 # Check all directory arguments for consistency.
1202 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1203 datadir sysconfdir sharedstatedir localstatedir includedir \
1204 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1205 libdir localedir mandir
1207 eval ac_val=\$$ac_var
1208 # Remove trailing slashes.
1211 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1212 eval $ac_var=\$ac_val;;
1214 # Be sure to have absolute directory names.
1216 [\\/$]* | ?:[\\/]* ) continue;;
1217 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1219 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1222 # There might be people who depend on the old broken behavior: `$host'
1223 # used to hold the argument of --host etc.
1224 # FIXME: To remove some day.
1227 target=$target_alias
1229 # FIXME: To remove some day.
1230 if test "x$host_alias" != x; then
1231 if test "x$build_alias" = x; then
1232 cross_compiling=maybe
1233 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1234 If a cross compiler is detected then cross compile mode will be used" >&2
1235 elif test "x$build_alias" != "x$host_alias"; then
1241 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1243 test "$silent" = yes && exec 6>/dev/null
1246 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1247 ac_ls_di=`ls -di .` &&
1248 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1249 as_fn_error $? "working directory cannot be determined"
1250 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1251 as_fn_error $? "pwd does not report name of working directory"
1254 # Find the source files, if location was not specified.
1255 if test -z "$srcdir"; then
1256 ac_srcdir_defaulted=yes
1257 # Try the directory containing this script, then the parent directory.
1258 ac_confdir=`$as_dirname -- "$as_myself" ||
1259 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1260 X"$as_myself" : 'X\(//\)[^/]' \| \
1261 X"$as_myself" : 'X\(//\)$' \| \
1262 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1263 $as_echo X"$as_myself" |
1264 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1282 if test ! -r "$srcdir/$ac_unique_file"; then
1286 ac_srcdir_defaulted=no
1288 if test ! -r "$srcdir/$ac_unique_file"; then
1289 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1290 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1292 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1294 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1296 # When building in place, set srcdir=.
1297 if test "$ac_abs_confdir" = "$ac_pwd"; then
1300 # Remove unnecessary trailing slashes from srcdir.
1301 # Double slashes in file names in object file debugging info
1302 # mess up M-x gdb in Emacs.
1304 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1306 for ac_var in $ac_precious_vars; do
1307 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1308 eval ac_env_${ac_var}_value=\$${ac_var}
1309 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1310 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1314 # Report the --help message.
1316 if test "$ac_init_help" = "long"; then
1317 # Omit some internal or obsolete options to make the list less imposing.
1318 # This message is too long to be a string in the A/UX 3.1 sh.
1320 \`configure' configures this package to adapt to many kinds of systems.
1322 Usage: $0 [OPTION]... [VAR=VALUE]...
1324 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1325 VAR=VALUE. See below for descriptions of some of the useful variables.
1327 Defaults for the options are specified in brackets.
1330 -h, --help display this help and exit
1331 --help=short display options specific to this package
1332 --help=recursive display the short help of all the included packages
1333 -V, --version display version information and exit
1334 -q, --quiet, --silent do not print \`checking ...' messages
1335 --cache-file=FILE cache test results in FILE [disabled]
1336 -C, --config-cache alias for \`--cache-file=config.cache'
1337 -n, --no-create do not create output files
1338 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1340 Installation directories:
1341 --prefix=PREFIX install architecture-independent files in PREFIX
1342 [$ac_default_prefix]
1343 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1346 By default, \`make install' will install all the files in
1347 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1348 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1349 for instance \`--prefix=\$HOME'.
1351 For better control, use the options below.
1353 Fine tuning of the installation directories:
1354 --bindir=DIR user executables [EPREFIX/bin]
1355 --sbindir=DIR system admin executables [EPREFIX/sbin]
1356 --libexecdir=DIR program executables [EPREFIX/libexec]
1357 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1358 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1359 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1360 --libdir=DIR object code libraries [EPREFIX/lib]
1361 --includedir=DIR C header files [PREFIX/include]
1362 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1363 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1364 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1365 --infodir=DIR info documentation [DATAROOTDIR/info]
1366 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1367 --mandir=DIR man documentation [DATAROOTDIR/man]
1368 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1369 --htmldir=DIR html documentation [DOCDIR]
1370 --dvidir=DIR dvi documentation [DOCDIR]
1371 --pdfdir=DIR pdf documentation [DOCDIR]
1372 --psdir=DIR ps documentation [DOCDIR]
1378 --program-prefix=PREFIX prepend PREFIX to installed program names
1379 --program-suffix=SUFFIX append SUFFIX to installed program names
1380 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1383 --build=BUILD configure for building on BUILD [guessed]
1384 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1388 if test -n "$ac_init_help"; then
1393 --disable-option-checking ignore unrecognized --enable/--with options
1394 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1395 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1396 --disable-dependency-tracking speeds up one-time build
1397 --enable-dependency-tracking do not reject slow dependency extractors
1398 --disable-nls do not use Native Language Support
1399 --enable-threads={posix|solaris|pth|win32}
1400 specify multithreading API
1401 --disable-threads build without multithread safety
1402 --disable-rpath do not hardcode runtime library paths
1403 --enable-debug Enable debugging support
1406 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1407 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1408 --with-gnu-ld assume the C compiler uses GNU ld default=no
1409 --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
1410 --without-libpth-prefix don't search for libpth in includedir and libdir
1411 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1412 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1413 --with-included-gettext use the GNU gettext library included here
1414 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1415 --without-libintl-prefix don't search for libintl in includedir and libdir
1416 --with-localedir=PATH Where the locale files are installed
1417 --with-curses=DIR Where ncurses is installed
1418 --with-readline=DIR Where readline is installed
1420 Some influential environment variables:
1421 CC C compiler command
1422 CFLAGS C compiler flags
1423 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1424 nonstandard directory <lib dir>
1425 LIBS libraries to pass to the linker, e.g. -l<library>
1426 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1427 you have headers in a nonstandard directory <include dir>
1430 Use these variables to override the choices made by `configure' or to help
1431 it to find libraries and programs with nonstandard names/locations.
1433 Report bugs to the package provider.
1438 if test "$ac_init_help" = "recursive"; then
1439 # If there are subdirs, report their specific --help.
1440 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1441 test -d "$ac_dir" ||
1442 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1447 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1449 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1450 # A ".." for each directory in $ac_dir_suffix.
1451 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1452 case $ac_top_builddir_sub in
1453 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1454 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1457 ac_abs_top_builddir=$ac_pwd
1458 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1459 # for backward compatibility:
1460 ac_top_builddir=$ac_top_build_prefix
1463 .) # We are building in place.
1465 ac_top_srcdir=$ac_top_builddir_sub
1466 ac_abs_top_srcdir=$ac_pwd ;;
1467 [\\/]* | ?:[\\/]* ) # Absolute name.
1468 ac_srcdir=$srcdir$ac_dir_suffix;
1469 ac_top_srcdir=$srcdir
1470 ac_abs_top_srcdir=$srcdir ;;
1472 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1473 ac_top_srcdir=$ac_top_build_prefix$srcdir
1474 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1476 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1478 cd "$ac_dir" || { ac_status=$?; continue; }
1479 # Check for guested configure.
1480 if test -f "$ac_srcdir/configure.gnu"; then
1482 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1483 elif test -f "$ac_srcdir/configure"; then
1485 $SHELL "$ac_srcdir/configure" --help=recursive
1487 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1489 cd "$ac_pwd" || { ac_status=$?; break; }
1493 test -n "$ac_init_help" && exit $ac_status
1494 if $ac_init_version; then
1497 generated by GNU Autoconf 2.68
1499 Copyright (C) 2010 Free Software Foundation, Inc.
1500 This configure script is free software; the Free Software Foundation
1501 gives unlimited permission to copy, distribute and modify it.
1506 ## ------------------------ ##
1507 ## Autoconf initialization. ##
1508 ## ------------------------ ##
1510 # ac_fn_c_try_compile LINENO
1511 # --------------------------
1512 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1513 ac_fn_c_try_compile ()
1515 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1516 rm -f conftest.$ac_objext
1517 if { { ac_try="$ac_compile"
1519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1520 *) ac_try_echo=$ac_try;;
1522 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1523 $as_echo "$ac_try_echo"; } >&5
1524 (eval "$ac_compile") 2>conftest.err
1526 if test -s conftest.err; then
1527 grep -v '^ *+' conftest.err >conftest.er1
1528 cat conftest.er1 >&5
1529 mv -f conftest.er1 conftest.err
1531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1532 test $ac_status = 0; } && {
1533 test -z "$ac_c_werror_flag" ||
1534 test ! -s conftest.err
1535 } && test -s conftest.$ac_objext; then :
1538 $as_echo "$as_me: failed program was:" >&5
1539 sed 's/^/| /' conftest.$ac_ext >&5
1543 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1544 as_fn_set_status $ac_retval
1546 } # ac_fn_c_try_compile
1548 # ac_fn_c_try_cpp LINENO
1549 # ----------------------
1550 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1553 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1554 if { { ac_try="$ac_cpp conftest.$ac_ext"
1556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1557 *) ac_try_echo=$ac_try;;
1559 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1560 $as_echo "$ac_try_echo"; } >&5
1561 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1563 if test -s conftest.err; then
1564 grep -v '^ *+' conftest.err >conftest.er1
1565 cat conftest.er1 >&5
1566 mv -f conftest.er1 conftest.err
1568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1569 test $ac_status = 0; } > conftest.i && {
1570 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1571 test ! -s conftest.err
1575 $as_echo "$as_me: failed program was:" >&5
1576 sed 's/^/| /' conftest.$ac_ext >&5
1580 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1581 as_fn_set_status $ac_retval
1585 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1586 # -------------------------------------------------------
1587 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1588 # the include files in INCLUDES and setting the cache variable VAR
1590 ac_fn_c_check_header_mongrel ()
1592 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1593 if eval \${$3+:} false; then :
1594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1595 $as_echo_n "checking for $2... " >&6; }
1596 if eval \${$3+:} false; then :
1597 $as_echo_n "(cached) " >&6
1600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1601 $as_echo "$ac_res" >&6; }
1603 # Is the header compilable?
1604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1605 $as_echo_n "checking $2 usability... " >&6; }
1606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1607 /* end confdefs.h. */
1611 if ac_fn_c_try_compile "$LINENO"; then :
1612 ac_header_compiler=yes
1614 ac_header_compiler=no
1616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1618 $as_echo "$ac_header_compiler" >&6; }
1620 # Is the header present?
1621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1622 $as_echo_n "checking $2 presence... " >&6; }
1623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1624 /* end confdefs.h. */
1627 if ac_fn_c_try_cpp "$LINENO"; then :
1628 ac_header_preproc=yes
1630 ac_header_preproc=no
1632 rm -f conftest.err conftest.i conftest.$ac_ext
1633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1634 $as_echo "$ac_header_preproc" >&6; }
1636 # So? What about this header?
1637 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1640 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1642 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1646 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1648 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1650 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1652 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1654 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1658 $as_echo_n "checking for $2... " >&6; }
1659 if eval \${$3+:} false; then :
1660 $as_echo_n "(cached) " >&6
1662 eval "$3=\$ac_header_compiler"
1665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1666 $as_echo "$ac_res" >&6; }
1668 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1670 } # ac_fn_c_check_header_mongrel
1672 # ac_fn_c_try_run LINENO
1673 # ----------------------
1674 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1675 # that executables *can* be run.
1678 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1679 if { { ac_try="$ac_link"
1681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1682 *) ac_try_echo=$ac_try;;
1684 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1685 $as_echo "$ac_try_echo"; } >&5
1686 (eval "$ac_link") 2>&5
1688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1689 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1690 { { case "(($ac_try" in
1691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1692 *) ac_try_echo=$ac_try;;
1694 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1695 $as_echo "$ac_try_echo"; } >&5
1696 (eval "$ac_try") 2>&5
1698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1699 test $ac_status = 0; }; }; then :
1702 $as_echo "$as_me: program exited with status $ac_status" >&5
1703 $as_echo "$as_me: failed program was:" >&5
1704 sed 's/^/| /' conftest.$ac_ext >&5
1706 ac_retval=$ac_status
1708 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1709 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1710 as_fn_set_status $ac_retval
1714 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1715 # -------------------------------------------------------
1716 # Tests whether HEADER exists and can be compiled using the include files in
1717 # INCLUDES, setting the cache variable VAR accordingly.
1718 ac_fn_c_check_header_compile ()
1720 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1722 $as_echo_n "checking for $2... " >&6; }
1723 if eval \${$3+:} false; then :
1724 $as_echo_n "(cached) " >&6
1726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1727 /* end confdefs.h. */
1731 if ac_fn_c_try_compile "$LINENO"; then :
1736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1740 $as_echo "$ac_res" >&6; }
1741 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1743 } # ac_fn_c_check_header_compile
1745 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1746 # -------------------------------------------
1747 # Tests whether TYPE exists after having included INCLUDES, setting cache
1748 # variable VAR accordingly.
1749 ac_fn_c_check_type ()
1751 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1753 $as_echo_n "checking for $2... " >&6; }
1754 if eval \${$3+:} false; then :
1755 $as_echo_n "(cached) " >&6
1758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1759 /* end confdefs.h. */
1770 if ac_fn_c_try_compile "$LINENO"; then :
1771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1772 /* end confdefs.h. */
1783 if ac_fn_c_try_compile "$LINENO"; then :
1788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1794 $as_echo "$ac_res" >&6; }
1795 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1797 } # ac_fn_c_check_type
1799 # ac_fn_c_try_link LINENO
1800 # -----------------------
1801 # Try to link conftest.$ac_ext, and return whether this succeeded.
1804 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1805 rm -f conftest.$ac_objext conftest$ac_exeext
1806 if { { ac_try="$ac_link"
1808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1809 *) ac_try_echo=$ac_try;;
1811 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1812 $as_echo "$ac_try_echo"; } >&5
1813 (eval "$ac_link") 2>conftest.err
1815 if test -s conftest.err; then
1816 grep -v '^ *+' conftest.err >conftest.er1
1817 cat conftest.er1 >&5
1818 mv -f conftest.er1 conftest.err
1820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1821 test $ac_status = 0; } && {
1822 test -z "$ac_c_werror_flag" ||
1823 test ! -s conftest.err
1824 } && test -s conftest$ac_exeext && {
1825 test "$cross_compiling" = yes ||
1826 $as_test_x conftest$ac_exeext
1830 $as_echo "$as_me: failed program was:" >&5
1831 sed 's/^/| /' conftest.$ac_ext >&5
1835 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1836 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1837 # interfere with the next link command; also delete a directory that is
1838 # left behind by Apple's compiler. We do this before executing the actions.
1839 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1840 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1841 as_fn_set_status $ac_retval
1843 } # ac_fn_c_try_link
1845 # ac_fn_c_check_func LINENO FUNC VAR
1846 # ----------------------------------
1847 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1848 ac_fn_c_check_func ()
1850 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1852 $as_echo_n "checking for $2... " >&6; }
1853 if eval \${$3+:} false; then :
1854 $as_echo_n "(cached) " >&6
1856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1857 /* end confdefs.h. */
1858 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1859 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1860 #define $2 innocuous_$2
1862 /* System header to define __stub macros and hopefully few prototypes,
1863 which can conflict with char $2 (); below.
1864 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1865 <limits.h> exists even on freestanding compilers. */
1868 # include <limits.h>
1870 # include <assert.h>
1875 /* Override any GCC internal prototype to avoid an error.
1876 Use char because int might match the return type of a GCC
1877 builtin and then its argument prototype would still apply. */
1882 /* The GNU C library defines this for functions which it implements
1883 to always fail with ENOSYS. Some functions are actually named
1884 something starting with __ and the normal name is an alias. */
1885 #if defined __stub_$2 || defined __stub___$2
1897 if ac_fn_c_try_link "$LINENO"; then :
1902 rm -f core conftest.err conftest.$ac_objext \
1903 conftest$ac_exeext conftest.$ac_ext
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1907 $as_echo "$ac_res" >&6; }
1908 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1910 } # ac_fn_c_check_func
1912 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1913 # --------------------------------------------
1914 # Tries to find the compile-time value of EXPR in a program that includes
1915 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1917 ac_fn_c_compute_int ()
1919 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1920 if test "$cross_compiling" = yes; then
1921 # Depending upon the size, compute the lo and hi bounds.
1922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1923 /* end confdefs.h. */
1928 static int test_array [1 - 2 * !(($2) >= 0)];
1935 if ac_fn_c_try_compile "$LINENO"; then :
1938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1939 /* end confdefs.h. */
1944 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1951 if ac_fn_c_try_compile "$LINENO"; then :
1952 ac_hi=$ac_mid; break
1954 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1955 if test $ac_lo -le $ac_mid; then
1959 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1965 /* end confdefs.h. */
1970 static int test_array [1 - 2 * !(($2) < 0)];
1977 if ac_fn_c_try_compile "$LINENO"; then :
1980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1981 /* end confdefs.h. */
1986 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1993 if ac_fn_c_try_compile "$LINENO"; then :
1994 ac_lo=$ac_mid; break
1996 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1997 if test $ac_mid -le $ac_hi; then
2001 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2011 # Binary search between lo and hi bounds.
2012 while test "x$ac_lo" != "x$ac_hi"; do
2013 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015 /* end confdefs.h. */
2020 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2027 if ac_fn_c_try_compile "$LINENO"; then :
2030 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2035 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2040 /* end confdefs.h. */
2042 static long int longval () { return $2; }
2043 static unsigned long int ulongval () { return $2; }
2050 FILE *f = fopen ("conftest.val", "w");
2055 long int i = longval ();
2058 fprintf (f, "%ld", i);
2062 unsigned long int i = ulongval ();
2065 fprintf (f, "%lu", i);
2067 /* Do not output a trailing newline, as this causes \r\n confusion
2068 on some platforms. */
2069 return ferror (f) || fclose (f) != 0;
2075 if ac_fn_c_try_run "$LINENO"; then :
2076 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2080 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2081 conftest.$ac_objext conftest.beam conftest.$ac_ext
2085 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2086 as_fn_set_status $ac_retval
2088 } # ac_fn_c_compute_int
2090 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2091 # ---------------------------------------------
2092 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2094 ac_fn_c_check_decl ()
2096 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2097 as_decl_name=`echo $2|sed 's/ *(.*//'`
2098 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2100 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2101 if eval \${$3+:} false; then :
2102 $as_echo_n "(cached) " >&6
2104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2105 /* end confdefs.h. */
2110 #ifndef $as_decl_name
2112 (void) $as_decl_use;
2114 (void) $as_decl_name;
2122 if ac_fn_c_try_compile "$LINENO"; then :
2127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2131 $as_echo "$ac_res" >&6; }
2132 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2134 } # ac_fn_c_check_decl
2135 cat >config.log <<_ACEOF
2136 This file contains any messages produced by compilers while
2137 running configure, to aid debugging if configure makes a mistake.
2139 It was created by $as_me, which was
2140 generated by GNU Autoconf 2.68. Invocation command line was
2152 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2153 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2154 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2155 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2156 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2158 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2159 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2161 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2162 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2163 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2164 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2165 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2166 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2167 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2175 test -z "$as_dir" && as_dir=.
2176 $as_echo "PATH: $as_dir"
2192 # Keep a trace of the command line.
2193 # Strip out --no-create and --no-recursion so they do not pile up.
2194 # Strip out --silent because we don't want to record it for future runs.
2195 # Also quote any args containing shell meta-characters.
2196 # Make two passes to allow for proper duplicate-argument suppression.
2200 ac_must_keep_next=false
2206 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2207 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2208 | -silent | --silent | --silen | --sile | --sil)
2211 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2214 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2216 as_fn_append ac_configure_args1 " '$ac_arg'"
2217 if test $ac_must_keep_next = true; then
2218 ac_must_keep_next=false # Got value, back to normal.
2221 *=* | --config-cache | -C | -disable-* | --disable-* \
2222 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2223 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2224 | -with-* | --with-* | -without-* | --without-* | --x)
2225 case "$ac_configure_args0 " in
2226 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2229 -* ) ac_must_keep_next=true ;;
2232 as_fn_append ac_configure_args " '$ac_arg'"
2237 { ac_configure_args0=; unset ac_configure_args0;}
2238 { ac_configure_args1=; unset ac_configure_args1;}
2240 # When interrupted or exit'd, cleanup temporary files, and complete
2241 # config.log. We remove comments because anyway the quotes in there
2242 # would cause problems or look ugly.
2243 # WARNING: Use '\'' to represent an apostrophe within the trap.
2244 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2245 trap 'exit_status=$?
2246 # Save into config.log some information that might help in debugging.
2250 $as_echo "## ---------------- ##
2251 ## Cache variables. ##
2252 ## ---------------- ##"
2254 # The following way of writing the cache mishandles newlines in values,
2256 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2257 eval ac_val=\$$ac_var
2261 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2262 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2265 _ | IFS | as_nl) ;; #(
2266 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2267 *) { eval $ac_var=; unset $ac_var;} ;;
2272 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2273 *${as_nl}ac_space=\ *)
2275 "s/'\''/'\''\\\\'\'''\''/g;
2276 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2279 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2286 $as_echo "## ----------------- ##
2287 ## Output variables. ##
2288 ## ----------------- ##"
2290 for ac_var in $ac_subst_vars
2292 eval ac_val=\$$ac_var
2294 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2296 $as_echo "$ac_var='\''$ac_val'\''"
2300 if test -n "$ac_subst_files"; then
2301 $as_echo "## ------------------- ##
2302 ## File substitutions. ##
2303 ## ------------------- ##"
2305 for ac_var in $ac_subst_files
2307 eval ac_val=\$$ac_var
2309 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2311 $as_echo "$ac_var='\''$ac_val'\''"
2316 if test -s confdefs.h; then
2317 $as_echo "## ----------- ##
2324 test "$ac_signal" != 0 &&
2325 $as_echo "$as_me: caught signal $ac_signal"
2326 $as_echo "$as_me: exit $exit_status"
2328 rm -f core *.core core.conftest.* &&
2329 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2332 for ac_signal in 1 2 13 15; do
2333 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2337 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2338 rm -f -r conftest* confdefs.h
2340 $as_echo "/* confdefs.h */" > confdefs.h
2342 # Predefined preprocessor variables.
2344 cat >>confdefs.h <<_ACEOF
2345 #define PACKAGE_NAME "$PACKAGE_NAME"
2348 cat >>confdefs.h <<_ACEOF
2349 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2352 cat >>confdefs.h <<_ACEOF
2353 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2356 cat >>confdefs.h <<_ACEOF
2357 #define PACKAGE_STRING "$PACKAGE_STRING"
2360 cat >>confdefs.h <<_ACEOF
2361 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2364 cat >>confdefs.h <<_ACEOF
2365 #define PACKAGE_URL "$PACKAGE_URL"
2369 # Let the site file select an alternate cache file if it wants to.
2370 # Prefer an explicitly selected file to automatically selected ones.
2373 if test -n "$CONFIG_SITE"; then
2374 # We do not want a PATH search for config.site.
2375 case $CONFIG_SITE in #((
2376 -*) ac_site_file1=./$CONFIG_SITE;;
2377 */*) ac_site_file1=$CONFIG_SITE;;
2378 *) ac_site_file1=./$CONFIG_SITE;;
2380 elif test "x$prefix" != xNONE; then
2381 ac_site_file1=$prefix/share/config.site
2382 ac_site_file2=$prefix/etc/config.site
2384 ac_site_file1=$ac_default_prefix/share/config.site
2385 ac_site_file2=$ac_default_prefix/etc/config.site
2387 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2389 test "x$ac_site_file" = xNONE && continue
2390 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2392 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2393 sed 's/^/| /' "$ac_site_file" >&5
2395 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2396 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2397 as_fn_error $? "failed to load site script $ac_site_file
2398 See \`config.log' for more details" "$LINENO" 5; }
2402 if test -r "$cache_file"; then
2403 # Some versions of bash will fail to source /dev/null (special files
2404 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2405 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2407 $as_echo "$as_me: loading cache $cache_file" >&6;}
2409 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2410 *) . "./$cache_file";;
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2415 $as_echo "$as_me: creating cache $cache_file" >&6;}
2419 gt_needs="$gt_needs "
2420 as_fn_append ac_header_list " stdlib.h"
2421 as_fn_append ac_header_list " unistd.h"
2422 as_fn_append ac_header_list " sys/param.h"
2423 # Check that the precious variables saved in the cache have kept the same
2425 ac_cache_corrupted=false
2426 for ac_var in $ac_precious_vars; do
2427 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2428 eval ac_new_set=\$ac_env_${ac_var}_set
2429 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2430 eval ac_new_val=\$ac_env_${ac_var}_value
2431 case $ac_old_set,$ac_new_set in
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2434 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2435 ac_cache_corrupted=: ;;
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2438 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2439 ac_cache_corrupted=: ;;
2442 if test "x$ac_old_val" != "x$ac_new_val"; then
2443 # differences in whitespace do not lead to failure.
2444 ac_old_val_w=`echo x $ac_old_val`
2445 ac_new_val_w=`echo x $ac_new_val`
2446 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2448 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2449 ac_cache_corrupted=:
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2452 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2453 eval $ac_var=\$ac_old_val
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2456 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2458 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2461 # Pass precious variables to config.status.
2462 if test "$ac_new_set" = set; then
2464 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2465 *) ac_arg=$ac_var=$ac_new_val ;;
2467 case " $ac_configure_args " in
2468 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2469 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2473 if $ac_cache_corrupted; then
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2475 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2477 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2478 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2480 ## -------------------- ##
2481 ## Main body of script. ##
2482 ## -------------------- ##
2485 ac_cpp='$CPP $CPPFLAGS'
2486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2491 am__api_version='1.11'
2494 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2495 if test -f "$ac_dir/install-sh"; then
2497 ac_install_sh="$ac_aux_dir/install-sh -c"
2499 elif test -f "$ac_dir/install.sh"; then
2501 ac_install_sh="$ac_aux_dir/install.sh -c"
2503 elif test -f "$ac_dir/shtool"; then
2505 ac_install_sh="$ac_aux_dir/shtool install -c"
2509 if test -z "$ac_aux_dir"; then
2510 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2513 # These three variables are undocumented and unsupported,
2514 # and are intended to be withdrawn in a future Autoconf release.
2515 # They can cause serious problems if a builder's source tree is in a directory
2516 # whose full name contains unusual characters.
2517 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2518 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2519 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2522 # Find a good install program. We prefer a C program (faster),
2523 # so one script is as good as another. But avoid the broken or
2524 # incompatible versions:
2525 # SysV /etc/install, /usr/sbin/install
2526 # SunOS /usr/etc/install
2527 # IRIX /sbin/install
2529 # AmigaOS /C/install, which installs bootblocks on floppy discs
2530 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2531 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2532 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2533 # OS/2's system install, which has a completely different semantic
2534 # ./install, which can be erroneously created by make from ./install.sh.
2535 # Reject install programs that cannot install multiple files.
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2537 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2538 if test -z "$INSTALL"; then
2539 if ${ac_cv_path_install+:} false; then :
2540 $as_echo_n "(cached) " >&6
2542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2546 test -z "$as_dir" && as_dir=.
2547 # Account for people who put trailing slashes in PATH elements.
2548 case $as_dir/ in #((
2549 ./ | .// | /[cC]/* | \
2550 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2551 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2554 # OSF1 and SCO ODT 3.0 have their own names for install.
2555 # Don't use installbsd from OSF since it installs stuff as root
2557 for ac_prog in ginstall scoinst install; do
2558 for ac_exec_ext in '' $ac_executable_extensions; do
2559 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2560 if test $ac_prog = install &&
2561 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2562 # AIX install. It has an incompatible calling convention.
2564 elif test $ac_prog = install &&
2565 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2566 # program-specific install script used by HP pwplus--don't use.
2569 rm -rf conftest.one conftest.two conftest.dir
2570 echo one > conftest.one
2571 echo two > conftest.two
2573 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2574 test -s conftest.one && test -s conftest.two &&
2575 test -s conftest.dir/conftest.one &&
2576 test -s conftest.dir/conftest.two
2578 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2591 rm -rf conftest.one conftest.two conftest.dir
2594 if test "${ac_cv_path_install+set}" = set; then
2595 INSTALL=$ac_cv_path_install
2597 # As a last resort, use the slow shell script. Don't cache a
2598 # value for INSTALL within a source directory, because that will
2599 # break other packages using the cache if that directory is
2600 # removed, or if the value is a relative name.
2601 INSTALL=$ac_install_sh
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2605 $as_echo "$INSTALL" >&6; }
2607 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2608 # It thinks the first close brace ends the variable substitution.
2609 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2611 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2613 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2616 $as_echo_n "checking whether build environment is sane... " >&6; }
2619 echo timestamp > conftest.file
2620 # Reject unsafe characters in $srcdir or the absolute working directory
2621 # name. Accept space and tab only in the latter.
2625 *[\\\"\#\$\&\'\`$am_lf]*)
2626 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2629 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2630 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2633 # Do `set' in a subshell so we don't clobber the current shell's
2634 # arguments. Must try -L first in case configure is actually a
2635 # symlink; some systems play weird games with the mod time of symlinks
2636 # (eg FreeBSD returns the mod time of the symlink's containing
2639 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2640 if test "$*" = "X"; then
2642 set X `ls -t "$srcdir/configure" conftest.file`
2645 if test "$*" != "X $srcdir/configure conftest.file" \
2646 && test "$*" != "X conftest.file $srcdir/configure"; then
2648 # If neither matched, then we have a broken ls. This can happen
2649 # if, for instance, CONFIG_SHELL is bash and it inherits a
2650 # broken ls alias from the environment. This has actually
2651 # happened. Such a system could not be considered "sane".
2652 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2653 alias in your environment" "$LINENO" 5
2656 test "$2" = conftest.file
2662 as_fn_error $? "newly created file is older than distributed files!
2663 Check your system clock" "$LINENO" 5
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2666 $as_echo "yes" >&6; }
2667 test "$program_prefix" != NONE &&
2668 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2669 # Use a double $ so make ignores it.
2670 test "$program_suffix" != NONE &&
2671 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2672 # Double any \ or $.
2673 # By default was `s,x,x', remove it if useless.
2674 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2675 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2677 # expand $ac_aux_dir to an absolute path
2678 am_aux_dir=`cd $ac_aux_dir && pwd`
2680 if test x"${MISSING+set}" != xset; then
2683 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2685 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2688 # Use eval to expand $SHELL
2689 if eval "$MISSING --run true"; then
2690 am_missing_run="$MISSING --run "
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2694 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2697 if test x"${install_sh}" != xset; then
2700 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2702 install_sh="\${SHELL} $am_aux_dir/install-sh"
2706 # Installed binaries are usually stripped using `strip' when the user
2707 # run `make install-strip'. However `strip' might not be the right
2708 # tool to use in cross-compilation environments, therefore Automake
2709 # will honor the `STRIP' environment variable to overrule this program.
2710 if test "$cross_compiling" != no; then
2711 if test -n "$ac_tool_prefix"; then
2712 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2713 set dummy ${ac_tool_prefix}strip; ac_word=$2
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2715 $as_echo_n "checking for $ac_word... " >&6; }
2716 if ${ac_cv_prog_STRIP+:} false; then :
2717 $as_echo_n "(cached) " >&6
2719 if test -n "$STRIP"; then
2720 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2726 test -z "$as_dir" && as_dir=.
2727 for ac_exec_ext in '' $ac_executable_extensions; do
2728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2729 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2739 STRIP=$ac_cv_prog_STRIP
2740 if test -n "$STRIP"; then
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2742 $as_echo "$STRIP" >&6; }
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2745 $as_echo "no" >&6; }
2750 if test -z "$ac_cv_prog_STRIP"; then
2752 # Extract the first word of "strip", so it can be a program name with args.
2753 set dummy strip; ac_word=$2
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2755 $as_echo_n "checking for $ac_word... " >&6; }
2756 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2757 $as_echo_n "(cached) " >&6
2759 if test -n "$ac_ct_STRIP"; then
2760 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2766 test -z "$as_dir" && as_dir=.
2767 for ac_exec_ext in '' $ac_executable_extensions; do
2768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2769 ac_cv_prog_ac_ct_STRIP="strip"
2770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2779 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2780 if test -n "$ac_ct_STRIP"; then
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2782 $as_echo "$ac_ct_STRIP" >&6; }
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2785 $as_echo "no" >&6; }
2788 if test "x$ac_ct_STRIP" = x; then
2791 case $cross_compiling:$ac_tool_warned in
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2794 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2795 ac_tool_warned=yes ;;
2800 STRIP="$ac_cv_prog_STRIP"
2804 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2807 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2808 if test -z "$MKDIR_P"; then
2809 if ${ac_cv_path_mkdir+:} false; then :
2810 $as_echo_n "(cached) " >&6
2812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2813 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2816 test -z "$as_dir" && as_dir=.
2817 for ac_prog in mkdir gmkdir; do
2818 for ac_exec_ext in '' $ac_executable_extensions; do
2819 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2820 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2821 'mkdir (GNU coreutils) '* | \
2822 'mkdir (coreutils) '* | \
2823 'mkdir (fileutils) '4.1*)
2824 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2834 test -d ./--version && rmdir ./--version
2835 if test "${ac_cv_path_mkdir+set}" = set; then
2836 MKDIR_P="$ac_cv_path_mkdir -p"
2838 # As a last resort, use the slow shell script. Don't cache a
2839 # value for MKDIR_P within a source directory, because that will
2840 # break other packages using the cache if that directory is
2841 # removed, or if the value is a relative name.
2842 MKDIR_P="$ac_install_sh -d"
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2846 $as_echo "$MKDIR_P" >&6; }
2850 [\\/$]* | ?:[\\/]*) ;;
2851 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2854 for ac_prog in gawk mawk nawk awk
2856 # Extract the first word of "$ac_prog", so it can be a program name with args.
2857 set dummy $ac_prog; ac_word=$2
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2859 $as_echo_n "checking for $ac_word... " >&6; }
2860 if ${ac_cv_prog_AWK+:} false; then :
2861 $as_echo_n "(cached) " >&6
2863 if test -n "$AWK"; then
2864 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2870 test -z "$as_dir" && as_dir=.
2871 for ac_exec_ext in '' $ac_executable_extensions; do
2872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2873 ac_cv_prog_AWK="$ac_prog"
2874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2884 if test -n "$AWK"; then
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2886 $as_echo "$AWK" >&6; }
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2889 $as_echo "no" >&6; }
2893 test -n "$AWK" && break
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2897 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2899 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2900 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2901 $as_echo_n "(cached) " >&6
2903 cat >conftest.make <<\_ACEOF
2906 @echo '@@@%%%=$(MAKE)=@@@%%%'
2908 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2909 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2911 eval ac_cv_prog_make_${ac_make}_set=yes;;
2913 eval ac_cv_prog_make_${ac_make}_set=no;;
2917 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2919 $as_echo "yes" >&6; }
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2923 $as_echo "no" >&6; }
2924 SET_MAKE="MAKE=${MAKE-make}"
2927 rm -rf .tst 2>/dev/null
2928 mkdir .tst 2>/dev/null
2929 if test -d .tst; then
2934 rmdir .tst 2>/dev/null
2936 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2937 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2938 # is not polluted with repeated "-I."
2939 am__isrc=' -I$(srcdir)'
2940 # test to see if srcdir already configured
2941 if test -f $srcdir/config.status; then
2942 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2946 # test whether we have cygpath
2947 if test -z "$CYGPATH_W"; then
2948 if (cygpath --version) >/dev/null 2>/dev/null; then
2949 CYGPATH_W='cygpath -w'
2956 # Define the identity of the package.
2961 cat >>confdefs.h <<_ACEOF
2962 #define PACKAGE "$PACKAGE"
2966 cat >>confdefs.h <<_ACEOF
2967 #define VERSION "$VERSION"
2970 # Some tools Automake needs.
2972 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2975 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2978 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2981 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2984 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2986 # We need awk for the "check" target. The system "awk" is bad on
2988 # Always define AMTAR for backward compatibility. Yes, it's still used
2989 # in the wild :-( We should find a proper way to deprecate it ...
2992 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2998 ac_config_headers="$ac_config_headers config.h"
3002 DEPDIR="${am__leading_dot}deps"
3004 ac_config_commands="$ac_config_commands depfiles"
3007 am_make=${MAKE-make}
3008 cat > confinc << 'END'
3010 @echo this is the am__doit target
3013 # If we don't find an include directive, just comment out the code.
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3015 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3019 # First try GNU make style include.
3020 echo "include confinc" > confmf
3021 # Ignore all kinds of additional output from `make'.
3022 case `$am_make -s -f confmf 2> /dev/null` in #(
3023 *the\ am__doit\ target*)
3029 # Now try BSD make style include.
3030 if test "$am__include" = "#"; then
3031 echo '.include "confinc"' > confmf
3032 case `$am_make -s -f confmf 2> /dev/null` in #(
3033 *the\ am__doit\ target*)
3034 am__include=.include
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3043 $as_echo "$_am_result" >&6; }
3044 rm -f confinc confmf
3046 # Check whether --enable-dependency-tracking was given.
3047 if test "${enable_dependency_tracking+set}" = set; then :
3048 enableval=$enable_dependency_tracking;
3051 if test "x$enable_dependency_tracking" != xno; then
3052 am_depcomp="$ac_aux_dir/depcomp"
3056 if test "x$enable_dependency_tracking" != xno; then
3066 ac_cpp='$CPP $CPPFLAGS'
3067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3070 if test -n "$ac_tool_prefix"; then
3071 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3072 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3074 $as_echo_n "checking for $ac_word... " >&6; }
3075 if ${ac_cv_prog_CC+:} false; then :
3076 $as_echo_n "(cached) " >&6
3078 if test -n "$CC"; then
3079 ac_cv_prog_CC="$CC" # Let the user override the test.
3081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3085 test -z "$as_dir" && as_dir=.
3086 for ac_exec_ext in '' $ac_executable_extensions; do
3087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3088 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3099 if test -n "$CC"; then
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3101 $as_echo "$CC" >&6; }
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3104 $as_echo "no" >&6; }
3109 if test -z "$ac_cv_prog_CC"; then
3111 # Extract the first word of "gcc", so it can be a program name with args.
3112 set dummy gcc; ac_word=$2
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3114 $as_echo_n "checking for $ac_word... " >&6; }
3115 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3116 $as_echo_n "(cached) " >&6
3118 if test -n "$ac_ct_CC"; then
3119 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3125 test -z "$as_dir" && as_dir=.
3126 for ac_exec_ext in '' $ac_executable_extensions; do
3127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3128 ac_cv_prog_ac_ct_CC="gcc"
3129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3138 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3139 if test -n "$ac_ct_CC"; then
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3141 $as_echo "$ac_ct_CC" >&6; }
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3144 $as_echo "no" >&6; }
3147 if test "x$ac_ct_CC" = x; then
3150 case $cross_compiling:$ac_tool_warned in
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3153 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3154 ac_tool_warned=yes ;;
3162 if test -z "$CC"; then
3163 if test -n "$ac_tool_prefix"; then
3164 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3165 set dummy ${ac_tool_prefix}cc; ac_word=$2
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3167 $as_echo_n "checking for $ac_word... " >&6; }
3168 if ${ac_cv_prog_CC+:} false; then :
3169 $as_echo_n "(cached) " >&6
3171 if test -n "$CC"; then
3172 ac_cv_prog_CC="$CC" # Let the user override the test.
3174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3178 test -z "$as_dir" && as_dir=.
3179 for ac_exec_ext in '' $ac_executable_extensions; do
3180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3181 ac_cv_prog_CC="${ac_tool_prefix}cc"
3182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3192 if test -n "$CC"; then
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3194 $as_echo "$CC" >&6; }
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3197 $as_echo "no" >&6; }
3203 if test -z "$CC"; then
3204 # Extract the first word of "cc", so it can be a program name with args.
3205 set dummy cc; ac_word=$2
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3207 $as_echo_n "checking for $ac_word... " >&6; }
3208 if ${ac_cv_prog_CC+:} false; then :
3209 $as_echo_n "(cached) " >&6
3211 if test -n "$CC"; then
3212 ac_cv_prog_CC="$CC" # Let the user override the test.
3215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3219 test -z "$as_dir" && as_dir=.
3220 for ac_exec_ext in '' $ac_executable_extensions; do
3221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3222 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3223 ac_prog_rejected=yes
3227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3234 if test $ac_prog_rejected = yes; then
3235 # We found a bogon in the path, so make sure we never use it.
3236 set dummy $ac_cv_prog_CC
3238 if test $# != 0; then
3239 # We chose a different compiler from the bogus one.
3240 # However, it has the same basename, so the bogon will be chosen
3241 # first if we set CC to just the basename; use the full file name.
3243 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3249 if test -n "$CC"; then
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3251 $as_echo "$CC" >&6; }
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3254 $as_echo "no" >&6; }
3259 if test -z "$CC"; then
3260 if test -n "$ac_tool_prefix"; then
3261 for ac_prog in cl.exe
3263 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3264 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3266 $as_echo_n "checking for $ac_word... " >&6; }
3267 if ${ac_cv_prog_CC+:} false; then :
3268 $as_echo_n "(cached) " >&6
3270 if test -n "$CC"; then
3271 ac_cv_prog_CC="$CC" # Let the user override the test.
3273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3277 test -z "$as_dir" && as_dir=.
3278 for ac_exec_ext in '' $ac_executable_extensions; do
3279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3280 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3291 if test -n "$CC"; then
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3293 $as_echo "$CC" >&6; }
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3296 $as_echo "no" >&6; }
3300 test -n "$CC" && break
3303 if test -z "$CC"; then
3305 for ac_prog in cl.exe
3307 # Extract the first word of "$ac_prog", so it can be a program name with args.
3308 set dummy $ac_prog; ac_word=$2
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3310 $as_echo_n "checking for $ac_word... " >&6; }
3311 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3312 $as_echo_n "(cached) " >&6
3314 if test -n "$ac_ct_CC"; then
3315 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3321 test -z "$as_dir" && as_dir=.
3322 for ac_exec_ext in '' $ac_executable_extensions; do
3323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3324 ac_cv_prog_ac_ct_CC="$ac_prog"
3325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3334 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3335 if test -n "$ac_ct_CC"; then
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3337 $as_echo "$ac_ct_CC" >&6; }
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3340 $as_echo "no" >&6; }
3344 test -n "$ac_ct_CC" && break
3347 if test "x$ac_ct_CC" = x; then
3350 case $cross_compiling:$ac_tool_warned in
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3353 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3354 ac_tool_warned=yes ;;
3363 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3364 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3365 as_fn_error $? "no acceptable C compiler found in \$PATH
3366 See \`config.log' for more details" "$LINENO" 5; }
3368 # Provide some information about the compiler.
3369 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3372 for ac_option in --version -v -V -qversion; do
3373 { { ac_try="$ac_compiler $ac_option >&5"
3375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3376 *) ac_try_echo=$ac_try;;
3378 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3379 $as_echo "$ac_try_echo"; } >&5
3380 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3382 if test -s conftest.err; then
3384 ... rest of stderr output deleted ...
3385 10q' conftest.err >conftest.er1
3386 cat conftest.er1 >&5
3388 rm -f conftest.er1 conftest.err
3389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3390 test $ac_status = 0; }
3393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3394 /* end confdefs.h. */
3404 ac_clean_files_save=$ac_clean_files
3405 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3406 # Try to create an executable without -o first, disregard a.out.
3407 # It will help us diagnose broken compilers, and finding out an intuition
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3410 $as_echo_n "checking whether the C compiler works... " >&6; }
3411 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3413 # The possible output files:
3414 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3417 for ac_file in $ac_files
3420 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3421 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3426 if { { ac_try="$ac_link_default"
3428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3429 *) ac_try_echo=$ac_try;;
3431 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3432 $as_echo "$ac_try_echo"; } >&5
3433 (eval "$ac_link_default") 2>&5
3435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3436 test $ac_status = 0; }; then :
3437 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3438 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3439 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3440 # so that the user can short-circuit this test for compilers unknown to
3442 for ac_file in $ac_files ''
3444 test -f "$ac_file" || continue
3446 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3449 # We found the default executable, but exeext='' is most
3453 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3455 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3457 # We set ac_cv_exeext here because the later test for it is not
3458 # safe: cross compilers may not add the suffix if given an `-o'
3459 # argument, so we may need to know it at that point already.
3460 # Even if this section looks crufty: it has the advantage of
3467 test "$ac_cv_exeext" = no && ac_cv_exeext=
3472 if test -z "$ac_file"; then :
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3474 $as_echo "no" >&6; }
3475 $as_echo "$as_me: failed program was:" >&5
3476 sed 's/^/| /' conftest.$ac_ext >&5
3478 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3479 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3480 as_fn_error 77 "C compiler cannot create executables
3481 See \`config.log' for more details" "$LINENO" 5; }
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3484 $as_echo "yes" >&6; }
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3487 $as_echo_n "checking for C compiler default output file name... " >&6; }
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3489 $as_echo "$ac_file" >&6; }
3490 ac_exeext=$ac_cv_exeext
3492 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3493 ac_clean_files=$ac_clean_files_save
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3495 $as_echo_n "checking for suffix of executables... " >&6; }
3496 if { { ac_try="$ac_link"
3498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3499 *) ac_try_echo=$ac_try;;
3501 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3502 $as_echo "$ac_try_echo"; } >&5
3503 (eval "$ac_link") 2>&5
3505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3506 test $ac_status = 0; }; then :
3507 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3508 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3509 # work properly (i.e., refer to `conftest.exe'), while it won't with
3511 for ac_file in conftest.exe conftest conftest.*; do
3512 test -f "$ac_file" || continue
3514 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3515 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3521 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3522 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3523 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3524 See \`config.log' for more details" "$LINENO" 5; }
3526 rm -f conftest conftest$ac_cv_exeext
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3528 $as_echo "$ac_cv_exeext" >&6; }
3530 rm -f conftest.$ac_ext
3531 EXEEXT=$ac_cv_exeext
3533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3534 /* end confdefs.h. */
3539 FILE *f = fopen ("conftest.out", "w");
3540 return ferror (f) || fclose (f) != 0;
3546 ac_clean_files="$ac_clean_files conftest.out"
3547 # Check that the compiler produces executables we can run. If not, either
3548 # the compiler is broken, or we cross compile.
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3550 $as_echo_n "checking whether we are cross compiling... " >&6; }
3551 if test "$cross_compiling" != yes; then
3552 { { ac_try="$ac_link"
3554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3555 *) ac_try_echo=$ac_try;;
3557 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3558 $as_echo "$ac_try_echo"; } >&5
3559 (eval "$ac_link") 2>&5
3561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3562 test $ac_status = 0; }
3563 if { ac_try='./conftest$ac_cv_exeext'
3564 { { case "(($ac_try" in
3565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3566 *) ac_try_echo=$ac_try;;
3568 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3569 $as_echo "$ac_try_echo"; } >&5
3570 (eval "$ac_try") 2>&5
3572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3573 test $ac_status = 0; }; }; then
3576 if test "$cross_compiling" = maybe; then
3579 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3580 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3581 as_fn_error $? "cannot run C compiled programs.
3582 If you meant to cross compile, use \`--host'.
3583 See \`config.log' for more details" "$LINENO" 5; }
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3588 $as_echo "$cross_compiling" >&6; }
3590 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3591 ac_clean_files=$ac_clean_files_save
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3593 $as_echo_n "checking for suffix of object files... " >&6; }
3594 if ${ac_cv_objext+:} false; then :
3595 $as_echo_n "(cached) " >&6
3597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3598 /* end confdefs.h. */
3608 rm -f conftest.o conftest.obj
3609 if { { ac_try="$ac_compile"
3611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3612 *) ac_try_echo=$ac_try;;
3614 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3615 $as_echo "$ac_try_echo"; } >&5
3616 (eval "$ac_compile") 2>&5
3618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3619 test $ac_status = 0; }; then :
3620 for ac_file in conftest.o conftest.obj conftest.*; do
3621 test -f "$ac_file" || continue;
3623 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3624 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3629 $as_echo "$as_me: failed program was:" >&5
3630 sed 's/^/| /' conftest.$ac_ext >&5
3632 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3633 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3634 as_fn_error $? "cannot compute suffix of object files: cannot compile
3635 See \`config.log' for more details" "$LINENO" 5; }
3637 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3640 $as_echo "$ac_cv_objext" >&6; }
3641 OBJEXT=$ac_cv_objext
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3644 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3645 if ${ac_cv_c_compiler_gnu+:} false; then :
3646 $as_echo_n "(cached) " >&6
3648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3649 /* end confdefs.h. */
3662 if ac_fn_c_try_compile "$LINENO"; then :
3667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3668 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3672 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3673 if test $ac_compiler_gnu = yes; then
3678 ac_test_CFLAGS=${CFLAGS+set}
3679 ac_save_CFLAGS=$CFLAGS
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3681 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3682 if ${ac_cv_prog_cc_g+:} false; then :
3683 $as_echo_n "(cached) " >&6
3685 ac_save_c_werror_flag=$ac_c_werror_flag
3686 ac_c_werror_flag=yes
3689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3690 /* end confdefs.h. */
3700 if ac_fn_c_try_compile "$LINENO"; then :
3704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3705 /* end confdefs.h. */
3715 if ac_fn_c_try_compile "$LINENO"; then :
3718 ac_c_werror_flag=$ac_save_c_werror_flag
3720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3721 /* end confdefs.h. */
3731 if ac_fn_c_try_compile "$LINENO"; then :
3734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3739 ac_c_werror_flag=$ac_save_c_werror_flag
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3742 $as_echo "$ac_cv_prog_cc_g" >&6; }
3743 if test "$ac_test_CFLAGS" = set; then
3744 CFLAGS=$ac_save_CFLAGS
3745 elif test $ac_cv_prog_cc_g = yes; then
3746 if test "$GCC" = yes; then
3752 if test "$GCC" = yes; then
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3759 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3760 if ${ac_cv_prog_cc_c89+:} false; then :
3761 $as_echo_n "(cached) " >&6
3763 ac_cv_prog_cc_c89=no
3765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3766 /* end confdefs.h. */
3769 #include <sys/types.h>
3770 #include <sys/stat.h>
3771 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3772 struct buf { int x; };
3773 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3774 static char *e (p, i)
3780 static char *f (char * (*g) (char **, int), char **p, ...)
3785 s = g (p, va_arg (v,int));
3790 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3791 function prototypes and stuff, but not '\xHH' hex character constants.
3792 These don't provoke an error unfortunately, instead are silently treated
3793 as 'x'. The following induces an error, until -std is added to get
3794 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3795 array size at least. It's necessary to write '\x00'==0 to get something
3796 that's true only with -std. */
3797 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3799 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3800 inside strings and character constants. */
3802 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3804 int test (int i, double x);
3805 struct s1 {int (*f) (int a);};
3806 struct s2 {int (*f) (double a);};
3807 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3813 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3818 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3819 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3821 CC="$ac_save_CC $ac_arg"
3822 if ac_fn_c_try_compile "$LINENO"; then :
3823 ac_cv_prog_cc_c89=$ac_arg
3825 rm -f core conftest.err conftest.$ac_objext
3826 test "x$ac_cv_prog_cc_c89" != "xno" && break
3828 rm -f conftest.$ac_ext
3833 case "x$ac_cv_prog_cc_c89" in
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3836 $as_echo "none needed" >&6; } ;;
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3839 $as_echo "unsupported" >&6; } ;;
3841 CC="$CC $ac_cv_prog_cc_c89"
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3843 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3845 if test "x$ac_cv_prog_cc_c89" != xno; then :
3850 ac_cpp='$CPP $CPPFLAGS'
3851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3855 depcc="$CC" am_compiler_list=
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3858 $as_echo_n "checking dependency style of $depcc... " >&6; }
3859 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3860 $as_echo_n "(cached) " >&6
3862 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3863 # We make a subdir and do the tests there. Otherwise we can end up
3864 # making bogus files that we don't know about and never remove. For
3865 # instance it was reported that on HP-UX the gcc test will end up
3866 # making a dummy file named `D' -- because `-MD' means `put the output
3870 # Copy depcomp to subdir because otherwise we won't find it if we're
3871 # using a relative directory.
3872 cp "$am_depcomp" conftest.dir
3874 # We will build objects and dependencies in a subdirectory because
3875 # it helps to detect inapplicable dependency modes. For instance
3876 # both Tru64's cc and ICC support -MD to output dependencies as a
3877 # side effect of compilation, but ICC will put the dependencies in
3878 # the current directory while Tru64 will put them in the object
3882 am_cv_CC_dependencies_compiler_type=none
3883 if test "$am_compiler_list" = ""; then
3884 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3887 case " $depcc " in #(
3888 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3891 for depmode in $am_compiler_list; do
3892 # Setup a source with many dependencies, because some compilers
3893 # like to wrap large dependency lists on column 80 (with \), and
3894 # we should not choose a depcomp mode which is confused by this.
3896 # We need to recreate these files for each test, as the compiler may
3897 # overwrite some of them when testing with obscure command lines.
3898 # This happens at least with the AIX C compiler.
3900 for i in 1 2 3 4 5 6; do
3901 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3902 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3903 # Solaris 8's {/usr,}/bin/sh.
3904 touch sub/conftst$i.h
3906 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3908 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3909 # mode. It turns out that the SunPro C++ compiler does not properly
3910 # handle `-M -o', and we need to detect this. Also, some Intel
3911 # versions had trouble with output in subdirs
3912 am__obj=sub/conftest.${OBJEXT-o}
3913 am__minus_obj="-o $am__obj"
3916 # This depmode causes a compiler race in universal mode.
3917 test "$am__universal" = false || continue
3920 # after this tag, mechanisms are not by side-effect, so they'll
3921 # only be used when explicitly requested
3922 if test "x$enable_dependency_tracking" = xyes; then
3928 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3929 # This compiler won't grok `-c -o', but also, the minuso test has
3930 # not run yet. These depmodes are late enough in the game, and
3931 # so weak that their functioning should not be impacted.
3932 am__obj=conftest.${OBJEXT-o}
3937 if depmode=$depmode \
3938 source=sub/conftest.c object=$am__obj \
3939 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3940 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3941 >/dev/null 2>conftest.err &&
3942 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3943 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3944 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3945 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3946 # icc doesn't choke on unknown options, it will just issue warnings
3947 # or remarks (even with -Werror). So we grep stderr for any message
3948 # that says an option was ignored or not supported.
3949 # When given -MP, icc 7.0 and 7.1 complain thusly:
3950 # icc: Command line warning: ignoring option '-M'; no argument required
3951 # The diagnosis changed in icc 8.0:
3952 # icc: Command line remark: option '-MP' not supported
3953 if (grep 'ignoring option' conftest.err ||
3954 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3955 am_cv_CC_dependencies_compiler_type=$depmode
3964 am_cv_CC_dependencies_compiler_type=none
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3969 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3970 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3973 test "x$enable_dependency_tracking" != xno \
3974 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3976 am__fastdepCC_FALSE='#'
3978 am__fastdepCC_TRUE='#'
3979 am__fastdepCC_FALSE=
3985 ac_cpp='$CPP $CPPFLAGS'
3986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3990 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3991 # On Suns, sometimes $CPP names a directory.
3992 if test -n "$CPP" && test -d "$CPP"; then
3995 if test -z "$CPP"; then
3996 if ${ac_cv_prog_CPP+:} false; then :
3997 $as_echo_n "(cached) " >&6
3999 # Double quotes because CPP needs to be expanded
4000 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4003 for ac_c_preproc_warn_flag in '' yes
4005 # Use a header file that comes with gcc, so configuring glibc
4006 # with a fresh cross-compiler works.
4007 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4008 # <limits.h> exists even on freestanding compilers.
4009 # On the NeXT, cc -E runs the code through the compiler's parser,
4010 # not just through cpp. "Syntax error" is here to catch this case.
4011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4012 /* end confdefs.h. */
4014 # include <limits.h>
4016 # include <assert.h>
4020 if ac_fn_c_try_cpp "$LINENO"; then :
4023 # Broken: fails on valid input.
4026 rm -f conftest.err conftest.i conftest.$ac_ext
4028 # OK, works on sane cases. Now check whether nonexistent headers
4029 # can be detected and how.
4030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4031 /* end confdefs.h. */
4032 #include <ac_nonexistent.h>
4034 if ac_fn_c_try_cpp "$LINENO"; then :
4035 # Broken: success on invalid input.
4038 # Passes both tests.
4042 rm -f conftest.err conftest.i conftest.$ac_ext
4045 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4046 rm -f conftest.i conftest.err conftest.$ac_ext
4047 if $ac_preproc_ok; then :
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4060 $as_echo "$CPP" >&6; }
4062 for ac_c_preproc_warn_flag in '' yes
4064 # Use a header file that comes with gcc, so configuring glibc
4065 # with a fresh cross-compiler works.
4066 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4067 # <limits.h> exists even on freestanding compilers.
4068 # On the NeXT, cc -E runs the code through the compiler's parser,
4069 # not just through cpp. "Syntax error" is here to catch this case.
4070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4071 /* end confdefs.h. */
4073 # include <limits.h>
4075 # include <assert.h>
4079 if ac_fn_c_try_cpp "$LINENO"; then :
4082 # Broken: fails on valid input.
4085 rm -f conftest.err conftest.i conftest.$ac_ext
4087 # OK, works on sane cases. Now check whether nonexistent headers
4088 # can be detected and how.
4089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4090 /* end confdefs.h. */
4091 #include <ac_nonexistent.h>
4093 if ac_fn_c_try_cpp "$LINENO"; then :
4094 # Broken: success on invalid input.
4097 # Passes both tests.
4101 rm -f conftest.err conftest.i conftest.$ac_ext
4104 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4105 rm -f conftest.i conftest.err conftest.$ac_ext
4106 if $ac_preproc_ok; then :
4109 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4110 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4111 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4112 See \`config.log' for more details" "$LINENO" 5; }
4116 ac_cpp='$CPP $CPPFLAGS'
4117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4123 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4124 if ${ac_cv_path_GREP+:} false; then :
4125 $as_echo_n "(cached) " >&6
4127 if test -z "$GREP"; then
4128 ac_path_GREP_found=false
4129 # Loop through the user's path and test for each of PROGNAME-LIST
4130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4131 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4134 test -z "$as_dir" && as_dir=.
4135 for ac_prog in grep ggrep; do
4136 for ac_exec_ext in '' $ac_executable_extensions; do
4137 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4138 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4139 # Check for GNU ac_path_GREP and select it if it is found.
4140 # Check for GNU $ac_path_GREP
4141 case `"$ac_path_GREP" --version 2>&1` in
4143 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4146 $as_echo_n 0123456789 >"conftest.in"
4149 cat "conftest.in" "conftest.in" >"conftest.tmp"
4150 mv "conftest.tmp" "conftest.in"
4151 cp "conftest.in" "conftest.nl"
4152 $as_echo 'GREP' >> "conftest.nl"
4153 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4154 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4155 as_fn_arith $ac_count + 1 && ac_count=$as_val
4156 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4157 # Best one so far, save it but keep looking for a better one
4158 ac_cv_path_GREP="$ac_path_GREP"
4159 ac_path_GREP_max=$ac_count
4161 # 10*(2^10) chars as input seems more than enough
4162 test $ac_count -gt 10 && break
4164 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4167 $ac_path_GREP_found && break 3
4172 if test -z "$ac_cv_path_GREP"; then
4173 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4176 ac_cv_path_GREP=$GREP
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4181 $as_echo "$ac_cv_path_GREP" >&6; }
4182 GREP="$ac_cv_path_GREP"
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4186 $as_echo_n "checking for egrep... " >&6; }
4187 if ${ac_cv_path_EGREP+:} false; then :
4188 $as_echo_n "(cached) " >&6
4190 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4191 then ac_cv_path_EGREP="$GREP -E"
4193 if test -z "$EGREP"; then
4194 ac_path_EGREP_found=false
4195 # Loop through the user's path and test for each of PROGNAME-LIST
4196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4197 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4200 test -z "$as_dir" && as_dir=.
4201 for ac_prog in egrep; do
4202 for ac_exec_ext in '' $ac_executable_extensions; do
4203 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4204 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4205 # Check for GNU ac_path_EGREP and select it if it is found.
4206 # Check for GNU $ac_path_EGREP
4207 case `"$ac_path_EGREP" --version 2>&1` in
4209 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4212 $as_echo_n 0123456789 >"conftest.in"
4215 cat "conftest.in" "conftest.in" >"conftest.tmp"
4216 mv "conftest.tmp" "conftest.in"
4217 cp "conftest.in" "conftest.nl"
4218 $as_echo 'EGREP' >> "conftest.nl"
4219 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4220 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4221 as_fn_arith $ac_count + 1 && ac_count=$as_val
4222 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4223 # Best one so far, save it but keep looking for a better one
4224 ac_cv_path_EGREP="$ac_path_EGREP"
4225 ac_path_EGREP_max=$ac_count
4227 # 10*(2^10) chars as input seems more than enough
4228 test $ac_count -gt 10 && break
4230 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4233 $ac_path_EGREP_found && break 3
4238 if test -z "$ac_cv_path_EGREP"; then
4239 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4242 ac_cv_path_EGREP=$EGREP
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4248 $as_echo "$ac_cv_path_EGREP" >&6; }
4249 EGREP="$ac_cv_path_EGREP"
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4253 $as_echo_n "checking for ANSI C header files... " >&6; }
4254 if ${ac_cv_header_stdc+:} false; then :
4255 $as_echo_n "(cached) " >&6
4257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4258 /* end confdefs.h. */
4272 if ac_fn_c_try_compile "$LINENO"; then :
4273 ac_cv_header_stdc=yes
4275 ac_cv_header_stdc=no
4277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4279 if test $ac_cv_header_stdc = yes; then
4280 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4282 /* end confdefs.h. */
4286 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4287 $EGREP "memchr" >/dev/null 2>&1; then :
4290 ac_cv_header_stdc=no
4296 if test $ac_cv_header_stdc = yes; then
4297 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4299 /* end confdefs.h. */
4303 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4304 $EGREP "free" >/dev/null 2>&1; then :
4307 ac_cv_header_stdc=no
4313 if test $ac_cv_header_stdc = yes; then
4314 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4315 if test "$cross_compiling" = yes; then :
4318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4319 /* end confdefs.h. */
4322 #if ((' ' & 0x0FF) == 0x020)
4323 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4324 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4326 # define ISLOWER(c) \
4327 (('a' <= (c) && (c) <= 'i') \
4328 || ('j' <= (c) && (c) <= 'r') \
4329 || ('s' <= (c) && (c) <= 'z'))
4330 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4333 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4338 for (i = 0; i < 256; i++)
4339 if (XOR (islower (i), ISLOWER (i))
4340 || toupper (i) != TOUPPER (i))
4345 if ac_fn_c_try_run "$LINENO"; then :
4348 ac_cv_header_stdc=no
4350 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4351 conftest.$ac_objext conftest.beam conftest.$ac_ext
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4357 $as_echo "$ac_cv_header_stdc" >&6; }
4358 if test $ac_cv_header_stdc = yes; then
4360 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4364 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4365 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4366 inttypes.h stdint.h unistd.h
4368 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4369 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4371 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4372 cat >>confdefs.h <<_ACEOF
4373 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4382 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4383 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4390 if test "$MINIX" = yes; then
4392 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4395 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4398 $as_echo "#define _MINIX 1" >>confdefs.h
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4404 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4405 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4406 $as_echo_n "(cached) " >&6
4408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4409 /* end confdefs.h. */
4411 # define __EXTENSIONS__ 1
4412 $ac_includes_default
4421 if ac_fn_c_try_compile "$LINENO"; then :
4422 ac_cv_safe_to_define___extensions__=yes
4424 ac_cv_safe_to_define___extensions__=no
4426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4429 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4430 test $ac_cv_safe_to_define___extensions__ = yes &&
4431 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4433 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4435 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4437 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4439 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
4444 $as_echo_n "checking whether NLS is requested... " >&6; }
4445 # Check whether --enable-nls was given.
4446 if test "${enable_nls+set}" = set; then :
4447 enableval=$enable_nls; USE_NLS=$enableval
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
4453 $as_echo "$USE_NLS" >&6; }
4458 GETTEXT_MACRO_VERSION=0.18
4463 # Prepare PATH_SEPARATOR.
4464 # The user is always right.
4465 if test "${PATH_SEPARATOR+set}" != set; then
4466 echo "#! /bin/sh" >conf$$.sh
4467 echo "exit 0" >>conf$$.sh
4469 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4477 # Find out how to test for executable files. Don't use a zero-byte file,
4478 # as systems may use methods other than mode bits to determine executability.
4479 cat >conf$$.file <<_ASEOF
4483 chmod +x conf$$.file
4484 if test -x conf$$.file >/dev/null 2>&1; then
4485 ac_executable_p="test -x"
4487 ac_executable_p="test -f"
4491 # Extract the first word of "msgfmt", so it can be a program name with args.
4492 set dummy msgfmt; ac_word=$2
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4494 $as_echo_n "checking for $ac_word... " >&6; }
4495 if ${ac_cv_path_MSGFMT+:} false; then :
4496 $as_echo_n "(cached) " >&6
4500 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4503 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4504 for ac_dir in $PATH; do
4506 test -z "$ac_dir" && ac_dir=.
4507 for ac_exec_ext in '' $ac_executable_extensions; do
4508 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4509 echo "$as_me: trying $ac_dir/$ac_word..." >&5
4510 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
4511 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4512 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4519 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4523 MSGFMT="$ac_cv_path_MSGFMT"
4524 if test "$MSGFMT" != ":"; then
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
4526 $as_echo "$MSGFMT" >&6; }
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4529 $as_echo "no" >&6; }
4532 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4533 set dummy gmsgfmt; ac_word=$2
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4535 $as_echo_n "checking for $ac_word... " >&6; }
4536 if ${ac_cv_path_GMSGFMT+:} false; then :
4537 $as_echo_n "(cached) " >&6
4541 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4548 test -z "$as_dir" && as_dir=.
4549 for ac_exec_ext in '' $ac_executable_extensions; do
4550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4551 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4559 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4563 GMSGFMT=$ac_cv_path_GMSGFMT
4564 if test -n "$GMSGFMT"; then
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
4566 $as_echo "$GMSGFMT" >&6; }
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4569 $as_echo "no" >&6; }
4574 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4575 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
4576 *) MSGFMT_015=$MSGFMT ;;
4579 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4580 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
4581 *) GMSGFMT_015=$GMSGFMT ;;
4586 # Prepare PATH_SEPARATOR.
4587 # The user is always right.
4588 if test "${PATH_SEPARATOR+set}" != set; then
4589 echo "#! /bin/sh" >conf$$.sh
4590 echo "exit 0" >>conf$$.sh
4592 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4600 # Find out how to test for executable files. Don't use a zero-byte file,
4601 # as systems may use methods other than mode bits to determine executability.
4602 cat >conf$$.file <<_ASEOF
4606 chmod +x conf$$.file
4607 if test -x conf$$.file >/dev/null 2>&1; then
4608 ac_executable_p="test -x"
4610 ac_executable_p="test -f"
4614 # Extract the first word of "xgettext", so it can be a program name with args.
4615 set dummy xgettext; ac_word=$2
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4617 $as_echo_n "checking for $ac_word... " >&6; }
4618 if ${ac_cv_path_XGETTEXT+:} false; then :
4619 $as_echo_n "(cached) " >&6
4623 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4626 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4627 for ac_dir in $PATH; do
4629 test -z "$ac_dir" && ac_dir=.
4630 for ac_exec_ext in '' $ac_executable_extensions; do
4631 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4632 echo "$as_me: trying $ac_dir/$ac_word..." >&5
4633 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
4634 (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
4635 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
4642 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4646 XGETTEXT="$ac_cv_path_XGETTEXT"
4647 if test "$XGETTEXT" != ":"; then
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
4649 $as_echo "$XGETTEXT" >&6; }
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4652 $as_echo "no" >&6; }
4657 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4658 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
4659 *) XGETTEXT_015=$XGETTEXT ;;
4664 # Prepare PATH_SEPARATOR.
4665 # The user is always right.
4666 if test "${PATH_SEPARATOR+set}" != set; then
4667 echo "#! /bin/sh" >conf$$.sh
4668 echo "exit 0" >>conf$$.sh
4670 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4678 # Find out how to test for executable files. Don't use a zero-byte file,
4679 # as systems may use methods other than mode bits to determine executability.
4680 cat >conf$$.file <<_ASEOF
4684 chmod +x conf$$.file
4685 if test -x conf$$.file >/dev/null 2>&1; then
4686 ac_executable_p="test -x"
4688 ac_executable_p="test -f"
4692 # Extract the first word of "msgmerge", so it can be a program name with args.
4693 set dummy msgmerge; ac_word=$2
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4695 $as_echo_n "checking for $ac_word... " >&6; }
4696 if ${ac_cv_path_MSGMERGE+:} false; then :
4697 $as_echo_n "(cached) " >&6
4701 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
4704 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4705 for ac_dir in $PATH; do
4707 test -z "$ac_dir" && ac_dir=.
4708 for ac_exec_ext in '' $ac_executable_extensions; do
4709 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4710 echo "$as_me: trying $ac_dir/$ac_word..." >&5
4711 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
4712 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
4719 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
4723 MSGMERGE="$ac_cv_path_MSGMERGE"
4724 if test "$MSGMERGE" != ":"; then
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
4726 $as_echo "$MSGMERGE" >&6; }
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4729 $as_echo "no" >&6; }
4733 test -n "$localedir" || localedir='${datadir}/locale'
4736 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
4739 ac_config_commands="$ac_config_commands po-directories"
4742 # Make sure we can run config.sub.
4743 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4744 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4747 $as_echo_n "checking build system type... " >&6; }
4748 if ${ac_cv_build+:} false; then :
4749 $as_echo_n "(cached) " >&6
4751 ac_build_alias=$build_alias
4752 test "x$ac_build_alias" = x &&
4753 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4754 test "x$ac_build_alias" = x &&
4755 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4756 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4757 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4761 $as_echo "$ac_cv_build" >&6; }
4762 case $ac_cv_build in
4764 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4767 ac_save_IFS=$IFS; IFS='-'
4773 # Remember, the first character of IFS is used to create $*,
4774 # except with old shells:
4777 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4781 $as_echo_n "checking host system type... " >&6; }
4782 if ${ac_cv_host+:} false; then :
4783 $as_echo_n "(cached) " >&6
4785 if test "x$host_alias" = x; then
4786 ac_cv_host=$ac_cv_build
4788 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4789 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4794 $as_echo "$ac_cv_host" >&6; }
4797 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4800 ac_save_IFS=$IFS; IFS='-'
4806 # Remember, the first character of IFS is used to create $*,
4807 # except with old shells:
4810 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
4815 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
4816 if ${ac_cv_gnu_library_2+:} false; then :
4817 $as_echo_n "(cached) " >&6
4819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4820 /* end confdefs.h. */
4822 #include <features.h>
4823 #ifdef __GNU_LIBRARY__
4824 #if (__GLIBC__ >= 2)
4830 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4831 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
4832 ac_cv_gnu_library_2=yes
4834 ac_cv_gnu_library_2=no
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
4842 $as_echo "$ac_cv_gnu_library_2" >&6; }
4844 GLIBC2="$ac_cv_gnu_library_2"
4847 if test -n "$ac_tool_prefix"; then
4848 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4849 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4851 $as_echo_n "checking for $ac_word... " >&6; }
4852 if ${ac_cv_prog_RANLIB+:} false; then :
4853 $as_echo_n "(cached) " >&6
4855 if test -n "$RANLIB"; then
4856 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4862 test -z "$as_dir" && as_dir=.
4863 for ac_exec_ext in '' $ac_executable_extensions; do
4864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4865 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4875 RANLIB=$ac_cv_prog_RANLIB
4876 if test -n "$RANLIB"; then
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4878 $as_echo "$RANLIB" >&6; }
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4881 $as_echo "no" >&6; }
4886 if test -z "$ac_cv_prog_RANLIB"; then
4887 ac_ct_RANLIB=$RANLIB
4888 # Extract the first word of "ranlib", so it can be a program name with args.
4889 set dummy ranlib; ac_word=$2
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4891 $as_echo_n "checking for $ac_word... " >&6; }
4892 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4893 $as_echo_n "(cached) " >&6
4895 if test -n "$ac_ct_RANLIB"; then
4896 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4902 test -z "$as_dir" && as_dir=.
4903 for ac_exec_ext in '' $ac_executable_extensions; do
4904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4905 ac_cv_prog_ac_ct_RANLIB="ranlib"
4906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4915 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4916 if test -n "$ac_ct_RANLIB"; then
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4918 $as_echo "$ac_ct_RANLIB" >&6; }
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4921 $as_echo "no" >&6; }
4924 if test "x$ac_ct_RANLIB" = x; then
4927 case $cross_compiling:$ac_tool_warned in
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4930 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4931 ac_tool_warned=yes ;;
4933 RANLIB=$ac_ct_RANLIB
4936 RANLIB="$ac_cv_prog_RANLIB"
4943 if test -n "$GCC"; then
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
4945 $as_echo_n "checking whether the -Werror option is usable... " >&6; }
4946 if ${gl_cv_cc_vis_werror+:} false; then :
4947 $as_echo_n "(cached) " >&6
4950 gl_save_CFLAGS="$CFLAGS"
4951 CFLAGS="$CFLAGS -Werror"
4952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4953 /* end confdefs.h. */
4963 if ac_fn_c_try_compile "$LINENO"; then :
4964 gl_cv_cc_vis_werror=yes
4966 gl_cv_cc_vis_werror=no
4968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4969 CFLAGS="$gl_save_CFLAGS"
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
4973 $as_echo "$gl_cv_cc_vis_werror" >&6; }
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
4975 $as_echo_n "checking for simple visibility declarations... " >&6; }
4976 if ${gl_cv_cc_visibility+:} false; then :
4977 $as_echo_n "(cached) " >&6
4980 gl_save_CFLAGS="$CFLAGS"
4981 CFLAGS="$CFLAGS -fvisibility=hidden"
4982 if test $gl_cv_cc_vis_werror = yes; then
4983 CFLAGS="$CFLAGS -Werror"
4985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4986 /* end confdefs.h. */
4987 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
4988 extern __attribute__((__visibility__("default"))) int exportedvar;
4989 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
4990 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
4991 void dummyfunc (void) {}
5000 if ac_fn_c_try_compile "$LINENO"; then :
5001 gl_cv_cc_visibility=yes
5003 gl_cv_cc_visibility=no
5005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5006 CFLAGS="$gl_save_CFLAGS"
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
5010 $as_echo "$gl_cv_cc_visibility" >&6; }
5011 if test $gl_cv_cc_visibility = yes; then
5012 CFLAG_VISIBILITY="-fvisibility=hidden"
5019 cat >>confdefs.h <<_ACEOF
5020 #define HAVE_VISIBILITY $HAVE_VISIBILITY
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5025 $as_echo_n "checking for inline... " >&6; }
5026 if ${ac_cv_c_inline+:} false; then :
5027 $as_echo_n "(cached) " >&6
5030 for ac_kw in inline __inline__ __inline; do
5031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5032 /* end confdefs.h. */
5035 static $ac_kw foo_t static_foo () {return 0; }
5036 $ac_kw foo_t foo () {return 0; }
5040 if ac_fn_c_try_compile "$LINENO"; then :
5041 ac_cv_c_inline=$ac_kw
5043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5044 test "$ac_cv_c_inline" != no && break
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5049 $as_echo "$ac_cv_c_inline" >&6; }
5051 case $ac_cv_c_inline in
5054 case $ac_cv_c_inline in
5056 *) ac_val=$ac_cv_c_inline;;
5058 cat >>confdefs.h <<_ACEOF
5060 #define inline $ac_val
5066 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5067 if test "x$ac_cv_type_size_t" = xyes; then :
5071 cat >>confdefs.h <<_ACEOF
5072 #define size_t unsigned int
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
5079 $as_echo_n "checking for stdint.h... " >&6; }
5080 if ${gl_cv_header_stdint_h+:} false; then :
5081 $as_echo_n "(cached) " >&6
5083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5084 /* end confdefs.h. */
5085 #include <sys/types.h>
5090 uintmax_t i = (uintmax_t) -1; return !i;
5095 if ac_fn_c_try_compile "$LINENO"; then :
5096 gl_cv_header_stdint_h=yes
5098 gl_cv_header_stdint_h=no
5100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
5103 $as_echo "$gl_cv_header_stdint_h" >&6; }
5104 if test $gl_cv_header_stdint_h = yes; then
5106 cat >>confdefs.h <<_ACEOF
5107 #define HAVE_STDINT_H_WITH_UINTMAX 1
5112 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5113 # for constant arguments. Useless!
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5115 $as_echo_n "checking for working alloca.h... " >&6; }
5116 if ${ac_cv_working_alloca_h+:} false; then :
5117 $as_echo_n "(cached) " >&6
5119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5120 /* end confdefs.h. */
5125 char *p = (char *) alloca (2 * sizeof (int));
5131 if ac_fn_c_try_link "$LINENO"; then :
5132 ac_cv_working_alloca_h=yes
5134 ac_cv_working_alloca_h=no
5136 rm -f core conftest.err conftest.$ac_objext \
5137 conftest$ac_exeext conftest.$ac_ext
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5140 $as_echo "$ac_cv_working_alloca_h" >&6; }
5141 if test $ac_cv_working_alloca_h = yes; then
5143 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5148 $as_echo_n "checking for alloca... " >&6; }
5149 if ${ac_cv_func_alloca_works+:} false; then :
5150 $as_echo_n "(cached) " >&6
5152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5153 /* end confdefs.h. */
5155 # define alloca __builtin_alloca
5158 # include <malloc.h>
5159 # define alloca _alloca
5161 # ifdef HAVE_ALLOCA_H
5162 # include <alloca.h>
5167 # ifndef alloca /* predefined by HP cc +Olibcalls */
5168 void *alloca (size_t);
5178 char *p = (char *) alloca (1);
5184 if ac_fn_c_try_link "$LINENO"; then :
5185 ac_cv_func_alloca_works=yes
5187 ac_cv_func_alloca_works=no
5189 rm -f core conftest.err conftest.$ac_objext \
5190 conftest$ac_exeext conftest.$ac_ext
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5193 $as_echo "$ac_cv_func_alloca_works" >&6; }
5195 if test $ac_cv_func_alloca_works = yes; then
5197 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
5200 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5201 # that cause trouble. Some versions do not even contain alloca or
5202 # contain a buggy version. If you still want to use their alloca,
5203 # use ar to extract alloca.o from them instead of compiling alloca.c.
5205 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5207 $as_echo "#define C_ALLOCA 1" >>confdefs.h
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
5211 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
5212 if ${ac_cv_os_cray+:} false; then :
5213 $as_echo_n "(cached) " >&6
5215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5216 /* end confdefs.h. */
5217 #if defined CRAY && ! defined CRAY2
5224 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5225 $EGREP "webecray" >/dev/null 2>&1; then :
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5234 $as_echo "$ac_cv_os_cray" >&6; }
5235 if test $ac_cv_os_cray = yes; then
5236 for ac_func in _getb67 GETB67 getb67; do
5237 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5238 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5239 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5241 cat >>confdefs.h <<_ACEOF
5242 #define CRAY_STACKSEG_END $ac_func
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5252 $as_echo_n "checking stack direction for C alloca... " >&6; }
5253 if ${ac_cv_c_stack_direction+:} false; then :
5254 $as_echo_n "(cached) " >&6
5256 if test "$cross_compiling" = yes; then :
5257 ac_cv_c_stack_direction=0
5259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5260 /* end confdefs.h. */
5261 $ac_includes_default
5263 find_stack_direction ()
5265 static char *addr = 0;
5270 return find_stack_direction ();
5273 return (&dummy > addr) ? 1 : -1;
5279 return find_stack_direction () < 0;
5282 if ac_fn_c_try_run "$LINENO"; then :
5283 ac_cv_c_stack_direction=1
5285 ac_cv_c_stack_direction=-1
5287 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5288 conftest.$ac_objext conftest.beam conftest.$ac_ext
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5293 $as_echo "$ac_cv_c_stack_direction" >&6; }
5294 cat >>confdefs.h <<_ACEOF
5295 #define STACK_DIRECTION $ac_cv_c_stack_direction
5304 for ac_header in $ac_header_list
5306 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5307 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5309 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5310 cat >>confdefs.h <<_ACEOF
5311 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5325 for ac_func in getpagesize
5327 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
5328 if test "x$ac_cv_func_getpagesize" = xyes; then :
5329 cat >>confdefs.h <<_ACEOF
5330 #define HAVE_GETPAGESIZE 1
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
5337 $as_echo_n "checking for working mmap... " >&6; }
5338 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
5339 $as_echo_n "(cached) " >&6
5341 if test "$cross_compiling" = yes; then :
5342 ac_cv_func_mmap_fixed_mapped=no
5344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5345 /* end confdefs.h. */
5346 $ac_includes_default
5347 /* malloc might have been renamed as rpl_malloc. */
5350 /* Thanks to Mike Haertel and Jim Avera for this test.
5351 Here is a matrix of mmap possibilities:
5352 mmap private not fixed
5353 mmap private fixed at somewhere currently unmapped
5354 mmap private fixed at somewhere already mapped
5355 mmap shared not fixed
5356 mmap shared fixed at somewhere currently unmapped
5357 mmap shared fixed at somewhere already mapped
5358 For private mappings, we should verify that changes cannot be read()
5359 back from the file, nor mmap's back from the file at a different
5360 address. (There have been systems where private was not correctly
5361 implemented like the infamous i386 svr4.0, and systems where the
5362 VM page cache was not coherent with the file system buffer cache
5363 like early versions of FreeBSD and possibly contemporary NetBSD.)
5364 For shared mappings, we should conversely verify that changes get
5365 propagated back to all the places they're supposed to be.
5367 Grep wants private fixed already mapped.
5368 The main things grep needs to know about mmap are:
5369 * does it exist and is it safe to write into the mmap'd area
5370 * how to use it (BSD variants) */
5373 #include <sys/mman.h>
5375 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
5379 /* This mess was copied from the GNU getpagesize.h. */
5380 #ifndef HAVE_GETPAGESIZE
5381 # ifdef _SC_PAGESIZE
5382 # define getpagesize() sysconf(_SC_PAGESIZE)
5383 # else /* no _SC_PAGESIZE */
5384 # ifdef HAVE_SYS_PARAM_H
5385 # include <sys/param.h>
5386 # ifdef EXEC_PAGESIZE
5387 # define getpagesize() EXEC_PAGESIZE
5388 # else /* no EXEC_PAGESIZE */
5390 # define getpagesize() NBPG * CLSIZE
5393 # endif /* no CLSIZE */
5394 # else /* no NBPG */
5396 # define getpagesize() NBPC
5397 # else /* no NBPC */
5399 # define getpagesize() PAGESIZE
5400 # endif /* PAGESIZE */
5401 # endif /* no NBPC */
5402 # endif /* no NBPG */
5403 # endif /* no EXEC_PAGESIZE */
5404 # else /* no HAVE_SYS_PARAM_H */
5405 # define getpagesize() 8192 /* punt totally */
5406 # endif /* no HAVE_SYS_PARAM_H */
5407 # endif /* no _SC_PAGESIZE */
5409 #endif /* no HAVE_GETPAGESIZE */
5414 char *data, *data2, *data3;
5419 pagesize = getpagesize ();
5421 /* First, make a file with some known garbage in it. */
5422 data = (char *) malloc (pagesize);
5425 for (i = 0; i < pagesize; ++i)
5426 *(data + i) = rand ();
5428 fd = creat ("conftest.mmap", 0600);
5431 if (write (fd, data, pagesize) != pagesize)
5435 /* Next, check that the tail of a page is zero-filled. File must have
5436 non-zero length, otherwise we risk SIGBUS for entire page. */
5437 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
5441 if (write (fd2, cdata2, 1) != 1)
5443 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
5444 if (data2 == MAP_FAILED)
5446 for (i = 0; i < pagesize; ++i)
5450 if (munmap (data2, pagesize))
5453 /* Next, try to mmap the file at a fixed address which already has
5454 something else allocated at it. If we can, also make sure that
5455 we see the same garbage. */
5456 fd = open ("conftest.mmap", O_RDWR);
5459 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
5460 MAP_PRIVATE | MAP_FIXED, fd, 0L))
5462 for (i = 0; i < pagesize; ++i)
5463 if (*(data + i) != *(data2 + i))
5466 /* Finally, make sure that changes to the mapped area do not
5467 percolate back to the file as seen by read(). (This is a bug on
5468 some variants of i386 svr4.0.) */
5469 for (i = 0; i < pagesize; ++i)
5470 *(data2 + i) = *(data2 + i) + 1;
5471 data3 = (char *) malloc (pagesize);
5474 if (read (fd, data3, pagesize) != pagesize)
5476 for (i = 0; i < pagesize; ++i)
5477 if (*(data + i) != *(data3 + i))
5483 if ac_fn_c_try_run "$LINENO"; then :
5484 ac_cv_func_mmap_fixed_mapped=yes
5486 ac_cv_func_mmap_fixed_mapped=no
5488 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5489 conftest.$ac_objext conftest.beam conftest.$ac_ext
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
5494 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
5495 if test $ac_cv_func_mmap_fixed_mapped = yes; then
5497 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
5500 rm -f conftest.mmap conftest.txt
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
5505 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
5506 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
5507 $as_echo_n "(cached) " >&6
5510 gt_cv_int_divbyzero_sigfpe=
5512 macos* | darwin[6-9]* | darwin[1-9][0-9]*)
5513 # On MacOS X 10.2 or newer, just assume the same as when cross-
5514 # compiling. If we were to perform the real test, 1 Crash Report
5515 # dialog window would pop up.
5517 i[34567]86 | x86_64)
5518 gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
5522 if test -z "$gt_cv_int_divbyzero_sigfpe"; then
5523 if test "$cross_compiling" = yes; then :
5525 # Guess based on the CPU.
5527 alpha* | i[34567]86 | x86_64 | m68k | s390*)
5528 gt_cv_int_divbyzero_sigfpe="guessing yes";;
5530 gt_cv_int_divbyzero_sigfpe="guessing no";;
5534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5535 /* end confdefs.h. */
5541 sigfpe_handler (int sig)
5543 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
5544 exit (sig != SIGFPE);
5554 signal (SIGFPE, sigfpe_handler);
5555 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
5556 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
5557 signal (SIGTRAP, sigfpe_handler);
5559 /* Linux/SPARC yields signal SIGILL. */
5560 #if defined (__sparc__) && defined (__linux__)
5561 signal (SIGILL, sigfpe_handler);
5570 if ac_fn_c_try_run "$LINENO"; then :
5571 gt_cv_int_divbyzero_sigfpe=yes
5573 gt_cv_int_divbyzero_sigfpe=no
5575 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5576 conftest.$ac_objext conftest.beam conftest.$ac_ext
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
5583 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
5584 case "$gt_cv_int_divbyzero_sigfpe" in
5589 cat >>confdefs.h <<_ACEOF
5590 #define INTDIV0_RAISES_SIGFPE $value
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
5596 $as_echo_n "checking for inttypes.h... " >&6; }
5597 if ${gl_cv_header_inttypes_h+:} false; then :
5598 $as_echo_n "(cached) " >&6
5600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5601 /* end confdefs.h. */
5602 #include <sys/types.h>
5603 #include <inttypes.h>
5607 uintmax_t i = (uintmax_t) -1; return !i;
5612 if ac_fn_c_try_compile "$LINENO"; then :
5613 gl_cv_header_inttypes_h=yes
5615 gl_cv_header_inttypes_h=no
5617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
5620 $as_echo "$gl_cv_header_inttypes_h" >&6; }
5621 if test $gl_cv_header_inttypes_h = yes; then
5623 cat >>confdefs.h <<_ACEOF
5624 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
5631 $as_echo_n "checking for unsigned long long int... " >&6; }
5632 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
5633 $as_echo_n "(cached) " >&6
5635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5636 /* end confdefs.h. */
5638 /* For now, do not test the preprocessor; as of 2007 there are too many
5639 implementations with broken preprocessors. Perhaps this can
5640 be revisited in 2012. In the meantime, code should not expect
5641 #if to work with literals wider than 32 bits. */
5642 /* Test literals. */
5643 long long int ll = 9223372036854775807ll;
5644 long long int nll = -9223372036854775807LL;
5645 unsigned long long int ull = 18446744073709551615ULL;
5646 /* Test constant expressions. */
5647 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5649 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5655 /* Test availability of runtime routines for shift and division. */
5656 long long int llmax = 9223372036854775807ll;
5657 unsigned long long int ullmax = 18446744073709551615ull;
5658 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5659 | (llmax / ll) | (llmax % ll)
5660 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5661 | (ullmax / ull) | (ullmax % ull));
5667 if ac_fn_c_try_link "$LINENO"; then :
5668 ac_cv_type_unsigned_long_long_int=yes
5670 ac_cv_type_unsigned_long_long_int=no
5672 rm -f core conftest.err conftest.$ac_objext \
5673 conftest$ac_exeext conftest.$ac_ext
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
5676 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
5677 if test $ac_cv_type_unsigned_long_long_int = yes; then
5679 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
5686 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
5688 test $ac_cv_type_unsigned_long_long_int = yes \
5689 && ac_type='unsigned long long' \
5690 || ac_type='unsigned long'
5692 cat >>confdefs.h <<_ACEOF
5693 #define uintmax_t $ac_type
5698 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
5703 for ac_header in inttypes.h
5705 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
5706 if test "x$ac_cv_header_inttypes_h" = xyes; then :
5707 cat >>confdefs.h <<_ACEOF
5708 #define HAVE_INTTYPES_H 1
5715 if test $ac_cv_header_inttypes_h = yes; then
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
5717 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
5718 if ${gt_cv_inttypes_pri_broken+:} false; then :
5719 $as_echo_n "(cached) " >&6
5722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5723 /* end confdefs.h. */
5724 #include <inttypes.h>
5737 if ac_fn_c_try_compile "$LINENO"; then :
5738 gt_cv_inttypes_pri_broken=no
5740 gt_cv_inttypes_pri_broken=yes
5742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
5746 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
5748 if test "$gt_cv_inttypes_pri_broken" = yes; then
5750 cat >>confdefs.h <<_ACEOF
5751 #define PRI_MACROS_BROKEN 1
5765 # Check whether --enable-threads was given.
5766 if test "${enable_threads+set}" = set; then :
5767 enableval=$enable_threads; gl_use_threads=$enableval
5769 if test -n "$gl_use_threads_default"; then
5770 gl_use_threads="$gl_use_threads_default"
5773 osf*) gl_use_threads=no ;;
5776 1.[0-5].*) gl_use_threads=no ;;
5777 *) gl_use_threads=yes ;;
5780 *) gl_use_threads=yes ;;
5786 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
5787 # For using <pthread.h>:
5790 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
5791 # groks <pthread.h>. cc also understands the flag -pthread, but
5792 # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
5793 # 2. putting a flag into CPPFLAGS that has an effect on the linker
5794 # causes the AC_TRY_LINK test below to succeed unexpectedly,
5795 # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
5796 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
5799 # Some systems optimize for single-threaded programs by default, and
5800 # need special flags to disable these optimizations. For example, the
5801 # definition of 'errno' in <errno.h>.
5803 aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
5804 solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
5812 if test "X$prefix" = "XNONE"; then
5813 acl_final_prefix="$ac_default_prefix"
5815 acl_final_prefix="$prefix"
5817 if test "X$exec_prefix" = "XNONE"; then
5818 acl_final_exec_prefix='${prefix}'
5820 acl_final_exec_prefix="$exec_prefix"
5822 acl_save_prefix="$prefix"
5823 prefix="$acl_final_prefix"
5824 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5825 prefix="$acl_save_prefix"
5828 # Check whether --with-gnu-ld was given.
5829 if test "${with_gnu_ld+set}" = set; then :
5830 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5835 # Prepare PATH_SEPARATOR.
5836 # The user is always right.
5837 if test "${PATH_SEPARATOR+set}" != set; then
5838 echo "#! /bin/sh" >conf$$.sh
5839 echo "exit 0" >>conf$$.sh
5841 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5849 if test "$GCC" = yes; then
5850 # Check if gcc -print-prog-name=ld gives a path.
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
5852 $as_echo_n "checking for ld used by GCC... " >&6; }
5855 # gcc leaves a trailing carriage return which upsets mingw
5856 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5858 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5861 # Accept absolute paths.
5862 [\\/]* | [A-Za-z]:[\\/]*)
5863 re_direlt='/[^/][^/]*/\.\./'
5864 # Canonicalize the path of ld
5865 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5866 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5867 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5869 test -z "$LD" && LD="$ac_prog"
5872 # If it fails, then pretend we aren't using GCC.
5876 # If it is relative, then search for the first ld in PATH.
5880 elif test "$with_gnu_ld" = yes; then
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5882 $as_echo_n "checking for GNU ld... " >&6; }
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5885 $as_echo_n "checking for non-GNU ld... " >&6; }
5887 if ${acl_cv_path_LD+:} false; then :
5888 $as_echo_n "(cached) " >&6
5890 if test -z "$LD"; then
5891 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5892 for ac_dir in $PATH; do
5893 test -z "$ac_dir" && ac_dir=.
5894 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5895 acl_cv_path_LD="$ac_dir/$ac_prog"
5896 # Check to see if the program is GNU ld. I'd rather use --version,
5897 # but apparently some GNU ld's only accept -v.
5898 # Break only if it was the GNU/non-GNU ld that we prefer.
5899 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
5900 *GNU* | *'with BFD'*)
5901 test "$with_gnu_ld" != no && break ;;
5903 test "$with_gnu_ld" != yes && break ;;
5909 acl_cv_path_LD="$LD" # Let the user override the test with a path.
5913 LD="$acl_cv_path_LD"
5914 if test -n "$LD"; then
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5916 $as_echo "$LD" >&6; }
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5919 $as_echo "no" >&6; }
5921 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5923 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5924 if ${acl_cv_prog_gnu_ld+:} false; then :
5925 $as_echo_n "(cached) " >&6
5927 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5928 case `$LD -v 2>&1 </dev/null` in
5929 *GNU* | *'with BFD'*)
5930 acl_cv_prog_gnu_ld=yes ;;
5932 acl_cv_prog_gnu_ld=no ;;
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
5936 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
5937 with_gnu_ld=$acl_cv_prog_gnu_ld
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
5943 $as_echo_n "checking for shared library run path origin... " >&6; }
5944 if ${acl_cv_rpath+:} false; then :
5945 $as_echo_n "(cached) " >&6
5948 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5949 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
5956 $as_echo "$acl_cv_rpath" >&6; }
5958 acl_libext="$acl_cv_libext"
5959 acl_shlibext="$acl_cv_shlibext"
5960 acl_libname_spec="$acl_cv_libname_spec"
5961 acl_library_names_spec="$acl_cv_library_names_spec"
5962 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5963 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5964 acl_hardcode_direct="$acl_cv_hardcode_direct"
5965 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
5966 # Check whether --enable-rpath was given.
5967 if test "${enable_rpath+set}" = set; then :
5968 enableval=$enable_rpath; :
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
5981 $as_echo_n "checking for 64-bit host... " >&6; }
5982 if ${gl_cv_solaris_64bit+:} false; then :
5983 $as_echo_n "(cached) " >&6
5985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5986 /* end confdefs.h. */
5993 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5994 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
5995 gl_cv_solaris_64bit=yes
5997 gl_cv_solaris_64bit=no
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
6004 $as_echo "$gl_cv_solaris_64bit" >&6; }
6005 if test $gl_cv_solaris_64bit = yes; then
6006 acl_libdirstem=lib/64
6008 sparc*) acl_libdirstem2=lib/sparcv9 ;;
6009 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
6014 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
6015 if test -n "$searchpath"; then
6016 acl_save_IFS="${IFS= }"; IFS=":"
6017 for searchdir in $searchpath; do
6018 if test -d "$searchdir"; then
6019 case "$searchdir" in
6020 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
6022 # Better ignore directories of this form. They are misleading.
6024 *) searchdir=`cd "$searchdir" && pwd`
6025 case "$searchdir" in
6026 */lib64 ) acl_libdirstem=lib64 ;;
6035 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
6044 if test "$gl_use_threads" != no; then
6045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
6046 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
6047 if ${gl_cv_have_weak+:} false; then :
6048 $as_echo_n "(cached) " >&6
6051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6052 /* end confdefs.h. */
6053 extern void xyzzy ();
6063 if ac_fn_c_try_link "$LINENO"; then :
6064 gl_cv_have_weak=maybe
6066 rm -f core conftest.err conftest.$ac_objext \
6067 conftest$ac_exeext conftest.$ac_ext
6068 if test $gl_cv_have_weak = maybe; then
6069 if test "$cross_compiling" = yes; then :
6070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6071 /* end confdefs.h. */
6073 Extensible Linking Format
6077 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6078 $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
6079 gl_cv_have_weak="guessing yes"
6081 gl_cv_have_weak="guessing no"
6087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6088 /* end confdefs.h. */
6094 return (fputs == NULL);
6097 if ac_fn_c_try_run "$LINENO"; then :
6102 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6103 conftest.$ac_objext conftest.beam conftest.$ac_ext
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
6110 $as_echo "$gl_cv_have_weak" >&6; }
6111 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
6112 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
6113 # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
6114 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
6115 if test "x$ac_cv_header_pthread_h" = xyes; then :
6116 gl_have_pthread_h=yes
6118 gl_have_pthread_h=no
6122 if test "$gl_have_pthread_h" = yes; then
6123 # Other possible tests:
6124 # -lpthreads (FSU threads, PCthreads)
6127 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
6128 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
6129 # the second one only in libpthread, and lock.c needs it.
6130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6131 /* end confdefs.h. */
6132 #include <pthread.h>
6136 pthread_mutex_lock((pthread_mutex_t*)0);
6137 pthread_mutexattr_init((pthread_mutexattr_t*)0);
6142 if ac_fn_c_try_link "$LINENO"; then :
6145 rm -f core conftest.err conftest.$ac_objext \
6146 conftest$ac_exeext conftest.$ac_ext
6147 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
6148 # since it is defined as a macro on OSF/1.)
6149 if test -n "$gl_have_pthread"; then
6150 # The program links fine without libpthread. But it may actually
6151 # need to link with libpthread in order to create multiple threads.
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
6153 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
6154 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
6155 $as_echo_n "(cached) " >&6
6157 ac_check_lib_save_LIBS=$LIBS
6158 LIBS="-lpthread $LIBS"
6159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6160 /* end confdefs.h. */
6162 /* Override any GCC internal prototype to avoid an error.
6163 Use char because int might match the return type of a GCC
6164 builtin and then its argument prototype would still apply. */
6168 char pthread_kill ();
6172 return pthread_kill ();
6177 if ac_fn_c_try_link "$LINENO"; then :
6178 ac_cv_lib_pthread_pthread_kill=yes
6180 ac_cv_lib_pthread_pthread_kill=no
6182 rm -f core conftest.err conftest.$ac_objext \
6183 conftest$ac_exeext conftest.$ac_ext
6184 LIBS=$ac_check_lib_save_LIBS
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
6187 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
6188 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
6189 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
6190 # On Solaris and HP-UX, most pthread functions exist also in libc.
6191 # Therefore pthread_in_use() needs to actually try to create a
6192 # thread: pthread_create from libc will fail, whereas
6193 # pthread_create will actually create a thread.
6197 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
6204 # Some library is needed. Try libpthread and libc_r.
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
6206 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
6207 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
6208 $as_echo_n "(cached) " >&6
6210 ac_check_lib_save_LIBS=$LIBS
6211 LIBS="-lpthread $LIBS"
6212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6213 /* end confdefs.h. */
6215 /* Override any GCC internal prototype to avoid an error.
6216 Use char because int might match the return type of a GCC
6217 builtin and then its argument prototype would still apply. */
6221 char pthread_kill ();
6225 return pthread_kill ();
6230 if ac_fn_c_try_link "$LINENO"; then :
6231 ac_cv_lib_pthread_pthread_kill=yes
6233 ac_cv_lib_pthread_pthread_kill=no
6235 rm -f core conftest.err conftest.$ac_objext \
6236 conftest$ac_exeext conftest.$ac_ext
6237 LIBS=$ac_check_lib_save_LIBS
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
6240 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
6241 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
6243 LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
6244 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
6247 if test -z "$gl_have_pthread"; then
6249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
6250 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
6251 if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
6252 $as_echo_n "(cached) " >&6
6254 ac_check_lib_save_LIBS=$LIBS
6256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6257 /* end confdefs.h. */
6259 /* Override any GCC internal prototype to avoid an error.
6260 Use char because int might match the return type of a GCC
6261 builtin and then its argument prototype would still apply. */
6265 char pthread_kill ();
6269 return pthread_kill ();
6274 if ac_fn_c_try_link "$LINENO"; then :
6275 ac_cv_lib_c_r_pthread_kill=yes
6277 ac_cv_lib_c_r_pthread_kill=no
6279 rm -f core conftest.err conftest.$ac_objext \
6280 conftest$ac_exeext conftest.$ac_ext
6281 LIBS=$ac_check_lib_save_LIBS
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
6284 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
6285 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
6287 LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
6288 LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
6293 if test -n "$gl_have_pthread"; then
6294 gl_threads_api=posix
6296 $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
6298 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
6299 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
6301 $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
6310 if test -z "$gl_have_pthread"; then
6311 if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
6312 gl_have_solaristhread=
6313 gl_save_LIBS="$LIBS"
6314 LIBS="$LIBS -lthread"
6315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6316 /* end confdefs.h. */
6327 if ac_fn_c_try_link "$LINENO"; then :
6328 gl_have_solaristhread=yes
6330 rm -f core conftest.err conftest.$ac_objext \
6331 conftest$ac_exeext conftest.$ac_ext
6332 LIBS="$gl_save_LIBS"
6333 if test -n "$gl_have_solaristhread"; then
6334 gl_threads_api=solaris
6336 LTLIBTHREAD=-lthread
6337 LIBMULTITHREAD="$LIBTHREAD"
6338 LTLIBMULTITHREAD="$LTLIBTHREAD"
6340 $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
6342 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
6344 $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
6352 if test "$gl_use_threads" = pth; then
6353 gl_save_CPPFLAGS="$CPPFLAGS"
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
6360 $as_echo_n "checking how to link with libpth... " >&6; }
6361 if ${ac_cv_libpth_libs+:} false; then :
6362 $as_echo_n "(cached) " >&6
6374 acl_save_prefix="$prefix"
6375 prefix="$acl_final_prefix"
6376 acl_save_exec_prefix="$exec_prefix"
6377 exec_prefix="$acl_final_exec_prefix"
6379 eval additional_includedir=\"$includedir\"
6380 eval additional_libdir=\"$libdir\"
6382 exec_prefix="$acl_save_exec_prefix"
6383 prefix="$acl_save_prefix"
6386 # Check whether --with-libpth-prefix was given.
6387 if test "${with_libpth_prefix+set}" = set; then :
6388 withval=$with_libpth_prefix;
6389 if test "X$withval" = "Xno"; then
6392 if test "X$withval" = "X"; then
6394 acl_save_prefix="$prefix"
6395 prefix="$acl_final_prefix"
6396 acl_save_exec_prefix="$exec_prefix"
6397 exec_prefix="$acl_final_exec_prefix"
6399 eval additional_includedir=\"$includedir\"
6400 eval additional_libdir=\"$libdir\"
6402 exec_prefix="$acl_save_exec_prefix"
6403 prefix="$acl_save_prefix"
6406 additional_includedir="$withval/include"
6407 additional_libdir="$withval/$acl_libdirstem"
6408 if test "$acl_libdirstem2" != "$acl_libdirstem" \
6409 && ! test -d "$withval/$acl_libdirstem"; then
6410 additional_libdir="$withval/$acl_libdirstem2"
6424 names_already_handled=
6425 names_next_round='pth '
6426 while test -n "$names_next_round"; do
6427 names_this_round="$names_next_round"
6429 for name in $names_this_round; do
6431 for n in $names_already_handled; do
6432 if test "$n" = "$name"; then
6437 if test -z "$already_handled"; then
6438 names_already_handled="$names_already_handled $name"
6439 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6440 eval value=\"\$HAVE_LIB$uppername\"
6441 if test -n "$value"; then
6442 if test "$value" = yes; then
6443 eval value=\"\$LIB$uppername\"
6444 test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
6445 eval value=\"\$LTLIB$uppername\"
6446 test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
6455 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
6456 if test -n "$acl_shlibext"; then
6457 shrext=".$acl_shlibext" # typically: shrext=.so
6461 if test $use_additional = yes; then
6462 dir="$additional_libdir"
6463 if test -n "$acl_shlibext"; then
6464 if test -f "$dir/$libname$shrext"; then
6466 found_so="$dir/$libname$shrext"
6468 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6469 ver=`(cd "$dir" && \
6470 for f in "$libname$shrext".*; do echo "$f"; done \
6471 | sed -e "s,^$libname$shrext\\\\.,," \
6472 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6473 | sed 1q ) 2>/dev/null`
6474 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6476 found_so="$dir/$libname$shrext.$ver"
6479 eval library_names=\"$acl_library_names_spec\"
6480 for f in $library_names; do
6481 if test -f "$dir/$f"; then
6490 if test "X$found_dir" = "X"; then
6491 if test -f "$dir/$libname.$acl_libext"; then
6493 found_a="$dir/$libname.$acl_libext"
6496 if test "X$found_dir" != "X"; then
6497 if test -f "$dir/$libname.la"; then
6498 found_la="$dir/$libname.la"
6502 if test "X$found_dir" = "X"; then
6503 for x in $LDFLAGS $LTLIBPTH; do
6505 acl_save_prefix="$prefix"
6506 prefix="$acl_final_prefix"
6507 acl_save_exec_prefix="$exec_prefix"
6508 exec_prefix="$acl_final_exec_prefix"
6510 exec_prefix="$acl_save_exec_prefix"
6511 prefix="$acl_save_prefix"
6515 dir=`echo "X$x" | sed -e 's/^X-L//'`
6516 if test -n "$acl_shlibext"; then
6517 if test -f "$dir/$libname$shrext"; then
6519 found_so="$dir/$libname$shrext"
6521 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6522 ver=`(cd "$dir" && \
6523 for f in "$libname$shrext".*; do echo "$f"; done \
6524 | sed -e "s,^$libname$shrext\\\\.,," \
6525 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6526 | sed 1q ) 2>/dev/null`
6527 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6529 found_so="$dir/$libname$shrext.$ver"
6532 eval library_names=\"$acl_library_names_spec\"
6533 for f in $library_names; do
6534 if test -f "$dir/$f"; then
6543 if test "X$found_dir" = "X"; then
6544 if test -f "$dir/$libname.$acl_libext"; then
6546 found_a="$dir/$libname.$acl_libext"
6549 if test "X$found_dir" != "X"; then
6550 if test -f "$dir/$libname.la"; then
6551 found_la="$dir/$libname.la"
6556 if test "X$found_dir" != "X"; then
6561 if test "X$found_dir" != "X"; then
6562 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
6563 if test "X$found_so" != "X"; then
6564 if test "$enable_rpath" = no \
6565 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
6566 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
6567 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
6570 for x in $ltrpathdirs; do
6571 if test "X$x" = "X$found_dir"; then
6576 if test -z "$haveit"; then
6577 ltrpathdirs="$ltrpathdirs $found_dir"
6579 if test "$acl_hardcode_direct" = yes; then
6580 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
6582 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
6583 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
6585 for x in $rpathdirs; do
6586 if test "X$x" = "X$found_dir"; then
6591 if test -z "$haveit"; then
6592 rpathdirs="$rpathdirs $found_dir"
6596 for x in $LDFLAGS $LIBPTH; do
6598 acl_save_prefix="$prefix"
6599 prefix="$acl_final_prefix"
6600 acl_save_exec_prefix="$exec_prefix"
6601 exec_prefix="$acl_final_exec_prefix"
6603 exec_prefix="$acl_save_exec_prefix"
6604 prefix="$acl_save_prefix"
6606 if test "X$x" = "X-L$found_dir"; then
6611 if test -z "$haveit"; then
6612 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
6614 if test "$acl_hardcode_minus_L" != no; then
6615 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
6617 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
6623 if test "X$found_a" != "X"; then
6624 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
6626 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
6629 additional_includedir=
6630 case "$found_dir" in
6631 */$acl_libdirstem | */$acl_libdirstem/)
6632 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
6633 if test "$name" = 'pth'; then
6634 LIBPTH_PREFIX="$basedir"
6636 additional_includedir="$basedir/include"
6638 */$acl_libdirstem2 | */$acl_libdirstem2/)
6639 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
6640 if test "$name" = 'pth'; then
6641 LIBPTH_PREFIX="$basedir"
6643 additional_includedir="$basedir/include"
6646 if test "X$additional_includedir" != "X"; then
6647 if test "X$additional_includedir" != "X/usr/include"; then
6649 if test "X$additional_includedir" = "X/usr/local/include"; then
6650 if test -n "$GCC"; then
6652 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6656 if test -z "$haveit"; then
6657 for x in $CPPFLAGS $INCPTH; do
6659 acl_save_prefix="$prefix"
6660 prefix="$acl_final_prefix"
6661 acl_save_exec_prefix="$exec_prefix"
6662 exec_prefix="$acl_final_exec_prefix"
6664 exec_prefix="$acl_save_exec_prefix"
6665 prefix="$acl_save_prefix"
6667 if test "X$x" = "X-I$additional_includedir"; then
6672 if test -z "$haveit"; then
6673 if test -d "$additional_includedir"; then
6674 INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
6680 if test -n "$found_la"; then
6681 save_libdir="$libdir"
6683 */* | *\\*) . "$found_la" ;;
6684 *) . "./$found_la" ;;
6686 libdir="$save_libdir"
6687 for dep in $dependency_libs; do
6690 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6691 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
6692 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
6694 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
6695 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
6696 if test -n "$GCC"; then
6698 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6702 if test -z "$haveit"; then
6704 for x in $LDFLAGS $LIBPTH; do
6706 acl_save_prefix="$prefix"
6707 prefix="$acl_final_prefix"
6708 acl_save_exec_prefix="$exec_prefix"
6709 exec_prefix="$acl_final_exec_prefix"
6711 exec_prefix="$acl_save_exec_prefix"
6712 prefix="$acl_save_prefix"
6714 if test "X$x" = "X-L$additional_libdir"; then
6719 if test -z "$haveit"; then
6720 if test -d "$additional_libdir"; then
6721 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
6725 for x in $LDFLAGS $LTLIBPTH; do
6727 acl_save_prefix="$prefix"
6728 prefix="$acl_final_prefix"
6729 acl_save_exec_prefix="$exec_prefix"
6730 exec_prefix="$acl_final_exec_prefix"
6732 exec_prefix="$acl_save_exec_prefix"
6733 prefix="$acl_save_prefix"
6735 if test "X$x" = "X-L$additional_libdir"; then
6740 if test -z "$haveit"; then
6741 if test -d "$additional_libdir"; then
6742 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
6749 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6750 if test "$enable_rpath" != no; then
6752 for x in $rpathdirs; do
6753 if test "X$x" = "X$dir"; then
6758 if test -z "$haveit"; then
6759 rpathdirs="$rpathdirs $dir"
6762 for x in $ltrpathdirs; do
6763 if test "X$x" = "X$dir"; then
6768 if test -z "$haveit"; then
6769 ltrpathdirs="$ltrpathdirs $dir"
6774 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6777 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6780 LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
6781 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
6787 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
6788 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
6794 if test "X$rpathdirs" != "X"; then
6795 if test -n "$acl_hardcode_libdir_separator"; then
6797 for found_dir in $rpathdirs; do
6798 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
6800 acl_save_libdir="$libdir"
6802 eval flag=\"$acl_hardcode_libdir_flag_spec\"
6803 libdir="$acl_save_libdir"
6804 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
6806 for found_dir in $rpathdirs; do
6807 acl_save_libdir="$libdir"
6809 eval flag=\"$acl_hardcode_libdir_flag_spec\"
6810 libdir="$acl_save_libdir"
6811 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
6815 if test "X$ltrpathdirs" != "X"; then
6816 for found_dir in $ltrpathdirs; do
6817 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
6826 ac_cv_libpth_libs="$LIBPTH"
6827 ac_cv_libpth_ltlibs="$LTLIBPTH"
6828 ac_cv_libpth_cppflags="$INCPTH"
6829 ac_cv_libpth_prefix="$LIBPTH_PREFIX"
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
6833 $as_echo "$ac_cv_libpth_libs" >&6; }
6834 LIBPTH="$ac_cv_libpth_libs"
6835 LTLIBPTH="$ac_cv_libpth_ltlibs"
6836 INCPTH="$ac_cv_libpth_cppflags"
6837 LIBPTH_PREFIX="$ac_cv_libpth_prefix"
6839 for element in $INCPTH; do
6841 for x in $CPPFLAGS; do
6843 acl_save_prefix="$prefix"
6844 prefix="$acl_final_prefix"
6845 acl_save_exec_prefix="$exec_prefix"
6846 exec_prefix="$acl_final_exec_prefix"
6848 exec_prefix="$acl_save_exec_prefix"
6849 prefix="$acl_save_prefix"
6851 if test "X$x" = "X$element"; then
6856 if test -z "$haveit"; then
6857 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6869 gl_save_LIBS="$LIBS"
6871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6872 /* end confdefs.h. */
6882 if ac_fn_c_try_link "$LINENO"; then :
6885 rm -f core conftest.err conftest.$ac_objext \
6886 conftest$ac_exeext conftest.$ac_ext
6887 LIBS="$gl_save_LIBS"
6888 if test -n "$gl_have_pth"; then
6891 LTLIBTHREAD="$LTLIBPTH"
6892 LIBMULTITHREAD="$LIBTHREAD"
6893 LTLIBMULTITHREAD="$LTLIBTHREAD"
6895 $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
6897 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
6898 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
6900 $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
6907 CPPFLAGS="$gl_save_CPPFLAGS"
6910 if test -z "$gl_have_pthread"; then
6911 if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then
6912 if { case "$host_os" in
6917 gl_threads_api=win32
6919 $as_echo "#define USE_WIN32_THREADS 1" >>confdefs.h
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
6926 $as_echo_n "checking for multithread API to use... " >&6; }
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
6928 $as_echo "$gl_threads_api" >&6; }
6940 if test "$gl_threads_api" = posix; then
6941 # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
6942 # pthread_rwlock_* functions.
6943 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
6945 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
6947 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
6951 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
6952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6953 /* end confdefs.h. */
6954 #include <pthread.h>
6958 #if __FreeBSD__ == 4
6959 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
6961 int x = (int)PTHREAD_MUTEX_RECURSIVE;
6968 if ac_fn_c_try_compile "$LINENO"; then :
6970 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
6973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6992 acl_save_prefix="$prefix"
6993 prefix="$acl_final_prefix"
6994 acl_save_exec_prefix="$exec_prefix"
6995 exec_prefix="$acl_final_exec_prefix"
6997 eval additional_includedir=\"$includedir\"
6998 eval additional_libdir=\"$libdir\"
7000 exec_prefix="$acl_save_exec_prefix"
7001 prefix="$acl_save_prefix"
7004 # Check whether --with-libiconv-prefix was given.
7005 if test "${with_libiconv_prefix+set}" = set; then :
7006 withval=$with_libiconv_prefix;
7007 if test "X$withval" = "Xno"; then
7010 if test "X$withval" = "X"; then
7012 acl_save_prefix="$prefix"
7013 prefix="$acl_final_prefix"
7014 acl_save_exec_prefix="$exec_prefix"
7015 exec_prefix="$acl_final_exec_prefix"
7017 eval additional_includedir=\"$includedir\"
7018 eval additional_libdir=\"$libdir\"
7020 exec_prefix="$acl_save_exec_prefix"
7021 prefix="$acl_save_prefix"
7024 additional_includedir="$withval/include"
7025 additional_libdir="$withval/$acl_libdirstem"
7026 if test "$acl_libdirstem2" != "$acl_libdirstem" \
7027 && ! test -d "$withval/$acl_libdirstem"; then
7028 additional_libdir="$withval/$acl_libdirstem2"
7042 names_already_handled=
7043 names_next_round='iconv '
7044 while test -n "$names_next_round"; do
7045 names_this_round="$names_next_round"
7047 for name in $names_this_round; do
7049 for n in $names_already_handled; do
7050 if test "$n" = "$name"; then
7055 if test -z "$already_handled"; then
7056 names_already_handled="$names_already_handled $name"
7057 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7058 eval value=\"\$HAVE_LIB$uppername\"
7059 if test -n "$value"; then
7060 if test "$value" = yes; then
7061 eval value=\"\$LIB$uppername\"
7062 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7063 eval value=\"\$LTLIB$uppername\"
7064 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7073 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
7074 if test -n "$acl_shlibext"; then
7075 shrext=".$acl_shlibext" # typically: shrext=.so
7079 if test $use_additional = yes; then
7080 dir="$additional_libdir"
7081 if test -n "$acl_shlibext"; then
7082 if test -f "$dir/$libname$shrext"; then
7084 found_so="$dir/$libname$shrext"
7086 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
7087 ver=`(cd "$dir" && \
7088 for f in "$libname$shrext".*; do echo "$f"; done \
7089 | sed -e "s,^$libname$shrext\\\\.,," \
7090 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7091 | sed 1q ) 2>/dev/null`
7092 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
7094 found_so="$dir/$libname$shrext.$ver"
7097 eval library_names=\"$acl_library_names_spec\"
7098 for f in $library_names; do
7099 if test -f "$dir/$f"; then
7108 if test "X$found_dir" = "X"; then
7109 if test -f "$dir/$libname.$acl_libext"; then
7111 found_a="$dir/$libname.$acl_libext"
7114 if test "X$found_dir" != "X"; then
7115 if test -f "$dir/$libname.la"; then
7116 found_la="$dir/$libname.la"
7120 if test "X$found_dir" = "X"; then
7121 for x in $LDFLAGS $LTLIBICONV; do
7123 acl_save_prefix="$prefix"
7124 prefix="$acl_final_prefix"
7125 acl_save_exec_prefix="$exec_prefix"
7126 exec_prefix="$acl_final_exec_prefix"
7128 exec_prefix="$acl_save_exec_prefix"
7129 prefix="$acl_save_prefix"
7133 dir=`echo "X$x" | sed -e 's/^X-L//'`
7134 if test -n "$acl_shlibext"; then
7135 if test -f "$dir/$libname$shrext"; then
7137 found_so="$dir/$libname$shrext"
7139 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
7140 ver=`(cd "$dir" && \
7141 for f in "$libname$shrext".*; do echo "$f"; done \
7142 | sed -e "s,^$libname$shrext\\\\.,," \
7143 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7144 | sed 1q ) 2>/dev/null`
7145 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
7147 found_so="$dir/$libname$shrext.$ver"
7150 eval library_names=\"$acl_library_names_spec\"
7151 for f in $library_names; do
7152 if test -f "$dir/$f"; then
7161 if test "X$found_dir" = "X"; then
7162 if test -f "$dir/$libname.$acl_libext"; then
7164 found_a="$dir/$libname.$acl_libext"
7167 if test "X$found_dir" != "X"; then
7168 if test -f "$dir/$libname.la"; then
7169 found_la="$dir/$libname.la"
7174 if test "X$found_dir" != "X"; then
7179 if test "X$found_dir" != "X"; then
7180 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7181 if test "X$found_so" != "X"; then
7182 if test "$enable_rpath" = no \
7183 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
7184 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
7185 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7188 for x in $ltrpathdirs; do
7189 if test "X$x" = "X$found_dir"; then
7194 if test -z "$haveit"; then
7195 ltrpathdirs="$ltrpathdirs $found_dir"
7197 if test "$acl_hardcode_direct" = yes; then
7198 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7200 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
7201 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7203 for x in $rpathdirs; do
7204 if test "X$x" = "X$found_dir"; then
7209 if test -z "$haveit"; then
7210 rpathdirs="$rpathdirs $found_dir"
7214 for x in $LDFLAGS $LIBICONV; do
7216 acl_save_prefix="$prefix"
7217 prefix="$acl_final_prefix"
7218 acl_save_exec_prefix="$exec_prefix"
7219 exec_prefix="$acl_final_exec_prefix"
7221 exec_prefix="$acl_save_exec_prefix"
7222 prefix="$acl_save_prefix"
7224 if test "X$x" = "X-L$found_dir"; then
7229 if test -z "$haveit"; then
7230 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7232 if test "$acl_hardcode_minus_L" != no; then
7233 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7235 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7241 if test "X$found_a" != "X"; then
7242 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7244 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7247 additional_includedir=
7248 case "$found_dir" in
7249 */$acl_libdirstem | */$acl_libdirstem/)
7250 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
7251 if test "$name" = 'iconv'; then
7252 LIBICONV_PREFIX="$basedir"
7254 additional_includedir="$basedir/include"
7256 */$acl_libdirstem2 | */$acl_libdirstem2/)
7257 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
7258 if test "$name" = 'iconv'; then
7259 LIBICONV_PREFIX="$basedir"
7261 additional_includedir="$basedir/include"
7264 if test "X$additional_includedir" != "X"; then
7265 if test "X$additional_includedir" != "X/usr/include"; then
7267 if test "X$additional_includedir" = "X/usr/local/include"; then
7268 if test -n "$GCC"; then
7270 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7274 if test -z "$haveit"; then
7275 for x in $CPPFLAGS $INCICONV; do
7277 acl_save_prefix="$prefix"
7278 prefix="$acl_final_prefix"
7279 acl_save_exec_prefix="$exec_prefix"
7280 exec_prefix="$acl_final_exec_prefix"
7282 exec_prefix="$acl_save_exec_prefix"
7283 prefix="$acl_save_prefix"
7285 if test "X$x" = "X-I$additional_includedir"; then
7290 if test -z "$haveit"; then
7291 if test -d "$additional_includedir"; then
7292 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7298 if test -n "$found_la"; then
7299 save_libdir="$libdir"
7301 */* | *\\*) . "$found_la" ;;
7302 *) . "./$found_la" ;;
7304 libdir="$save_libdir"
7305 for dep in $dependency_libs; do
7308 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7309 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
7310 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
7312 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
7313 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
7314 if test -n "$GCC"; then
7316 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7320 if test -z "$haveit"; then
7322 for x in $LDFLAGS $LIBICONV; do
7324 acl_save_prefix="$prefix"
7325 prefix="$acl_final_prefix"
7326 acl_save_exec_prefix="$exec_prefix"
7327 exec_prefix="$acl_final_exec_prefix"
7329 exec_prefix="$acl_save_exec_prefix"
7330 prefix="$acl_save_prefix"
7332 if test "X$x" = "X-L$additional_libdir"; then
7337 if test -z "$haveit"; then
7338 if test -d "$additional_libdir"; then
7339 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7343 for x in $LDFLAGS $LTLIBICONV; do
7345 acl_save_prefix="$prefix"
7346 prefix="$acl_final_prefix"
7347 acl_save_exec_prefix="$exec_prefix"
7348 exec_prefix="$acl_final_exec_prefix"
7350 exec_prefix="$acl_save_exec_prefix"
7351 prefix="$acl_save_prefix"
7353 if test "X$x" = "X-L$additional_libdir"; then
7358 if test -z "$haveit"; then
7359 if test -d "$additional_libdir"; then
7360 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7367 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7368 if test "$enable_rpath" != no; then
7370 for x in $rpathdirs; do
7371 if test "X$x" = "X$dir"; then
7376 if test -z "$haveit"; then
7377 rpathdirs="$rpathdirs $dir"
7380 for x in $ltrpathdirs; do
7381 if test "X$x" = "X$dir"; then
7386 if test -z "$haveit"; then
7387 ltrpathdirs="$ltrpathdirs $dir"
7392 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7395 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7398 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
7399 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
7405 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7406 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
7412 if test "X$rpathdirs" != "X"; then
7413 if test -n "$acl_hardcode_libdir_separator"; then
7415 for found_dir in $rpathdirs; do
7416 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
7418 acl_save_libdir="$libdir"
7420 eval flag=\"$acl_hardcode_libdir_flag_spec\"
7421 libdir="$acl_save_libdir"
7422 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7424 for found_dir in $rpathdirs; do
7425 acl_save_libdir="$libdir"
7427 eval flag=\"$acl_hardcode_libdir_flag_spec\"
7428 libdir="$acl_save_libdir"
7429 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7433 if test "X$ltrpathdirs" != "X"; then
7434 for found_dir in $ltrpathdirs; do
7435 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
7450 am_save_CPPFLAGS="$CPPFLAGS"
7452 for element in $INCICONV; do
7454 for x in $CPPFLAGS; do
7456 acl_save_prefix="$prefix"
7457 prefix="$acl_final_prefix"
7458 acl_save_exec_prefix="$exec_prefix"
7459 exec_prefix="$acl_final_exec_prefix"
7461 exec_prefix="$acl_save_exec_prefix"
7462 prefix="$acl_save_prefix"
7464 if test "X$x" = "X$element"; then
7469 if test -z "$haveit"; then
7470 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
7476 $as_echo_n "checking for iconv... " >&6; }
7477 if ${am_cv_func_iconv+:} false; then :
7478 $as_echo_n "(cached) " >&6
7481 am_cv_func_iconv="no, consider installing GNU libiconv"
7483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7484 /* end confdefs.h. */
7490 iconv_t cd = iconv_open("","");
7491 iconv(cd,NULL,NULL,NULL,NULL);
7497 if ac_fn_c_try_link "$LINENO"; then :
7498 am_cv_func_iconv=yes
7500 rm -f core conftest.err conftest.$ac_objext \
7501 conftest$ac_exeext conftest.$ac_ext
7502 if test "$am_cv_func_iconv" != yes; then
7503 am_save_LIBS="$LIBS"
7504 LIBS="$LIBS $LIBICONV"
7505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7506 /* end confdefs.h. */
7512 iconv_t cd = iconv_open("","");
7513 iconv(cd,NULL,NULL,NULL,NULL);
7519 if ac_fn_c_try_link "$LINENO"; then :
7521 am_cv_func_iconv=yes
7523 rm -f core conftest.err conftest.$ac_objext \
7524 conftest$ac_exeext conftest.$ac_ext
7525 LIBS="$am_save_LIBS"
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
7530 $as_echo "$am_cv_func_iconv" >&6; }
7531 if test "$am_cv_func_iconv" = yes; then
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
7533 $as_echo_n "checking for working iconv... " >&6; }
7534 if ${am_cv_func_iconv_works+:} false; then :
7535 $as_echo_n "(cached) " >&6
7538 am_save_LIBS="$LIBS"
7539 if test $am_cv_lib_iconv = yes; then
7540 LIBS="$LIBS $LIBICONV"
7542 if test "$cross_compiling" = yes; then :
7544 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
7545 *) am_cv_func_iconv_works="guessing yes" ;;
7548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7549 /* end confdefs.h. */
7555 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
7558 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
7559 if (cd_utf8_to_88591 != (iconv_t)(-1))
7561 static const char input[] = "\342\202\254"; /* EURO SIGN */
7563 const char *inptr = input;
7564 size_t inbytesleft = strlen (input);
7566 size_t outbytesleft = sizeof (buf);
7567 size_t res = iconv (cd_utf8_to_88591,
7568 (char **) &inptr, &inbytesleft,
7569 &outptr, &outbytesleft);
7574 /* Test against Solaris 10 bug: Failures are not distinguishable from
7575 successful returns. */
7577 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
7578 if (cd_ascii_to_88591 != (iconv_t)(-1))
7580 static const char input[] = "\263";
7582 const char *inptr = input;
7583 size_t inbytesleft = strlen (input);
7585 size_t outbytesleft = sizeof (buf);
7586 size_t res = iconv (cd_ascii_to_88591,
7587 (char **) &inptr, &inbytesleft,
7588 &outptr, &outbytesleft);
7593 #if 0 /* This bug could be worked around by the caller. */
7594 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
7596 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
7597 if (cd_88591_to_utf8 != (iconv_t)(-1))
7599 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
7601 const char *inptr = input;
7602 size_t inbytesleft = strlen (input);
7604 size_t outbytesleft = sizeof (buf);
7605 size_t res = iconv (cd_88591_to_utf8,
7606 (char **) &inptr, &inbytesleft,
7607 &outptr, &outbytesleft);
7613 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
7615 if (/* Try standardized names. */
7616 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
7617 /* Try IRIX, OSF/1 names. */
7618 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
7619 /* Try AIX names. */
7620 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
7621 /* Try HP-UX names. */
7622 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
7627 if ac_fn_c_try_run "$LINENO"; then :
7628 am_cv_func_iconv_works=yes
7630 am_cv_func_iconv_works=no
7632 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7633 conftest.$ac_objext conftest.beam conftest.$ac_ext
7636 LIBS="$am_save_LIBS"
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
7640 $as_echo "$am_cv_func_iconv_works" >&6; }
7641 case "$am_cv_func_iconv_works" in
7642 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
7643 *) am_func_iconv=yes ;;
7646 am_func_iconv=no am_cv_lib_iconv=no
7648 if test "$am_func_iconv" = yes; then
7650 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
7653 if test "$am_cv_lib_iconv" = yes; then
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
7655 $as_echo_n "checking how to link with libiconv... " >&6; }
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
7657 $as_echo "$LIBICONV" >&6; }
7659 CPPFLAGS="$am_save_CPPFLAGS"
7666 if test "$am_cv_func_iconv" = yes; then
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
7668 $as_echo_n "checking for iconv declaration... " >&6; }
7669 if ${am_cv_proto_iconv+:} false; then :
7670 $as_echo_n "(cached) " >&6
7673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7674 /* end confdefs.h. */
7682 #if defined(__STDC__) || defined(__cplusplus)
7683 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
7696 if ac_fn_c_try_compile "$LINENO"; then :
7697 am_cv_proto_iconv_arg1=""
7699 am_cv_proto_iconv_arg1="const"
7701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7702 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);"
7705 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
7707 $am_cv_proto_iconv" >&5
7709 $am_cv_proto_iconv" >&6; }
7711 cat >>confdefs.h <<_ACEOF
7712 #define ICONV_CONST $am_cv_proto_iconv_arg1
7720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7721 /* end confdefs.h. */
7722 int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
7731 if ac_fn_c_try_link "$LINENO"; then :
7733 $as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
7736 rm -f core conftest.err conftest.$ac_objext \
7737 conftest$ac_exeext conftest.$ac_ext
7739 for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
7741 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7742 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7743 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7744 cat >>confdefs.h <<_ACEOF
7745 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7752 for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
7753 stpcpy strcasecmp strdup strtoul tsearch uselocale argz_count \
7754 argz_stringify argz_next __fsetlocking
7756 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7757 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7758 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7759 cat >>confdefs.h <<_ACEOF
7760 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
7769 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
7770 if ${ac_cv_have_decl_feof_unlocked+:} false; then :
7771 $as_echo_n "(cached) " >&6
7773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7774 /* end confdefs.h. */
7780 #ifndef feof_unlocked
7781 char *p = (char *) feof_unlocked;
7788 if ac_fn_c_try_compile "$LINENO"; then :
7789 ac_cv_have_decl_feof_unlocked=yes
7791 ac_cv_have_decl_feof_unlocked=no
7793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
7796 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
7797 if test $ac_cv_have_decl_feof_unlocked = yes; then
7803 cat >>confdefs.h <<_ACEOF
7804 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
7810 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
7811 if ${ac_cv_have_decl_fgets_unlocked+:} false; then :
7812 $as_echo_n "(cached) " >&6
7814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7815 /* end confdefs.h. */
7821 #ifndef fgets_unlocked
7822 char *p = (char *) fgets_unlocked;
7829 if ac_fn_c_try_compile "$LINENO"; then :
7830 ac_cv_have_decl_fgets_unlocked=yes
7832 ac_cv_have_decl_fgets_unlocked=no
7834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
7837 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
7838 if test $ac_cv_have_decl_fgets_unlocked = yes; then
7844 cat >>confdefs.h <<_ACEOF
7845 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
7852 for ac_prog in bison
7854 # Extract the first word of "$ac_prog", so it can be a program name with args.
7855 set dummy $ac_prog; ac_word=$2
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7857 $as_echo_n "checking for $ac_word... " >&6; }
7858 if ${ac_cv_prog_INTLBISON+:} false; then :
7859 $as_echo_n "(cached) " >&6
7861 if test -n "$INTLBISON"; then
7862 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
7864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7868 test -z "$as_dir" && as_dir=.
7869 for ac_exec_ext in '' $ac_executable_extensions; do
7870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7871 ac_cv_prog_INTLBISON="$ac_prog"
7872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7881 INTLBISON=$ac_cv_prog_INTLBISON
7882 if test -n "$INTLBISON"; then
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
7884 $as_echo "$INTLBISON" >&6; }
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7887 $as_echo "no" >&6; }
7891 test -n "$INTLBISON" && break
7894 if test -z "$INTLBISON"; then
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
7898 $as_echo_n "checking version of bison... " >&6; }
7899 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
7900 case $ac_prog_version in
7901 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
7902 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
7903 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
7904 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
7907 $as_echo "$ac_prog_version" >&6; }
7909 if test $ac_verc_fail = yes; then
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
7915 $as_echo_n "checking for long long int... " >&6; }
7916 if ${ac_cv_type_long_long_int+:} false; then :
7917 $as_echo_n "(cached) " >&6
7919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7920 /* end confdefs.h. */
7922 /* For now, do not test the preprocessor; as of 2007 there are too many
7923 implementations with broken preprocessors. Perhaps this can
7924 be revisited in 2012. In the meantime, code should not expect
7925 #if to work with literals wider than 32 bits. */
7926 /* Test literals. */
7927 long long int ll = 9223372036854775807ll;
7928 long long int nll = -9223372036854775807LL;
7929 unsigned long long int ull = 18446744073709551615ULL;
7930 /* Test constant expressions. */
7931 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
7933 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
7939 /* Test availability of runtime routines for shift and division. */
7940 long long int llmax = 9223372036854775807ll;
7941 unsigned long long int ullmax = 18446744073709551615ull;
7942 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
7943 | (llmax / ll) | (llmax % ll)
7944 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
7945 | (ullmax / ull) | (ullmax % ull));
7951 if ac_fn_c_try_link "$LINENO"; then :
7952 if test "$cross_compiling" = yes; then :
7953 ac_cv_type_long_long_int=yes
7955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7956 /* end confdefs.h. */
7960 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
7961 # define LLONG_MAX (HALF - 1 + HALF)
7966 long long int n = 1;
7970 long long int m = n << i;
7973 if (LLONG_MAX / 2 < m)
7981 if ac_fn_c_try_run "$LINENO"; then :
7982 ac_cv_type_long_long_int=yes
7984 ac_cv_type_long_long_int=no
7986 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7987 conftest.$ac_objext conftest.beam conftest.$ac_ext
7991 ac_cv_type_long_long_int=no
7993 rm -f core conftest.err conftest.$ac_objext \
7994 conftest$ac_exeext conftest.$ac_ext
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
7997 $as_echo "$ac_cv_type_long_long_int" >&6; }
7998 if test $ac_cv_type_long_long_int = yes; then
8000 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
8006 $as_echo_n "checking for wchar_t... " >&6; }
8007 if ${gt_cv_c_wchar_t+:} false; then :
8008 $as_echo_n "(cached) " >&6
8010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8011 /* end confdefs.h. */
8013 wchar_t foo = (wchar_t)'\0';
8022 if ac_fn_c_try_compile "$LINENO"; then :
8027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
8030 $as_echo "$gt_cv_c_wchar_t" >&6; }
8031 if test $gt_cv_c_wchar_t = yes; then
8033 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
8039 $as_echo_n "checking for wint_t... " >&6; }
8040 if ${gt_cv_c_wint_t+:} false; then :
8041 $as_echo_n "(cached) " >&6
8043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8044 /* end confdefs.h. */
8046 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
8048 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
8049 before <wchar.h>. */
8054 wint_t foo = (wchar_t)'\0';
8063 if ac_fn_c_try_compile "$LINENO"; then :
8068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
8071 $as_echo "$gt_cv_c_wint_t" >&6; }
8072 if test $gt_cv_c_wint_t = yes; then
8074 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
8082 $as_echo_n "checking for intmax_t... " >&6; }
8083 if ${gt_cv_c_intmax_t+:} false; then :
8084 $as_echo_n "(cached) " >&6
8086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8087 /* end confdefs.h. */
8091 #if HAVE_STDINT_H_WITH_UINTMAX
8094 #if HAVE_INTTYPES_H_WITH_UINTMAX
8095 #include <inttypes.h>
8107 if ac_fn_c_try_compile "$LINENO"; then :
8108 gt_cv_c_intmax_t=yes
8112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
8115 $as_echo "$gt_cv_c_intmax_t" >&6; }
8116 if test $gt_cv_c_intmax_t = yes; then
8118 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
8125 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
8126 if ${gt_cv_func_printf_posix+:} false; then :
8127 $as_echo_n "(cached) " >&6
8130 if test "$cross_compiling" = yes; then :
8132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8133 /* end confdefs.h. */
8135 #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
8140 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8141 $EGREP "notposix" >/dev/null 2>&1; then :
8142 gt_cv_func_printf_posix="guessing no"
8144 gt_cv_func_printf_posix="guessing yes"
8150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8151 /* end confdefs.h. */
8155 /* The string "%2$d %1$d", with dollar characters protected from the shell's
8156 dollar expansion (possibly an autoconf bug). */
8157 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
8158 static char buf[100];
8161 sprintf (buf, format, 33, 55);
8162 return (strcmp (buf, "55 33") != 0);
8165 if ac_fn_c_try_run "$LINENO"; then :
8166 gt_cv_func_printf_posix=yes
8168 gt_cv_func_printf_posix=no
8170 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8171 conftest.$ac_objext conftest.beam conftest.$ac_ext
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
8177 $as_echo "$gt_cv_func_printf_posix" >&6; }
8178 case $gt_cv_func_printf_posix in
8181 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
8188 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
8189 if ${ac_cv_gnu_library_2_1+:} false; then :
8190 $as_echo_n "(cached) " >&6
8192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8193 /* end confdefs.h. */
8195 #include <features.h>
8196 #ifdef __GNU_LIBRARY__
8197 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
8203 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8204 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
8205 ac_cv_gnu_library_2_1=yes
8207 ac_cv_gnu_library_2_1=no
8214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
8215 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
8217 GLIBC21="$ac_cv_gnu_library_2_1"
8221 for ac_header in stdint.h
8223 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
8224 if test "x$ac_cv_header_stdint_h" = xyes; then :
8225 cat >>confdefs.h <<_ACEOF
8226 #define HAVE_STDINT_H 1
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
8234 $as_echo_n "checking for SIZE_MAX... " >&6; }
8235 if ${gl_cv_size_max+:} false; then :
8236 $as_echo_n "(cached) " >&6
8240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8241 /* end confdefs.h. */
8252 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8253 $EGREP "Found it" >/dev/null 2>&1; then :
8258 if test -z "$gl_cv_size_max"; then
8259 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
8260 #include <limits.h>"; then :
8263 size_t_bits_minus_1=
8266 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
8272 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
8273 if test $fits_in_uint = 1; then
8274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8275 /* end confdefs.h. */
8278 extern unsigned long foo;
8288 if ac_fn_c_try_compile "$LINENO"; then :
8291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8293 if test $fits_in_uint = 1; then
8294 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
8296 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
8299 gl_cv_size_max='((size_t)~(size_t)0)'
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
8305 $as_echo "$gl_cv_size_max" >&6; }
8306 if test "$gl_cv_size_max" != yes; then
8308 cat >>confdefs.h <<_ACEOF
8309 #define SIZE_MAX $gl_cv_size_max
8318 for ac_header in stdint.h
8320 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
8321 if test "x$ac_cv_header_stdint_h" = xyes; then :
8322 cat >>confdefs.h <<_ACEOF
8323 #define HAVE_STDINT_H 1
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
8334 $as_echo_n "checking for working fcntl.h... " >&6; }
8335 if ${gl_cv_header_working_fcntl_h+:} false; then :
8336 $as_echo_n "(cached) " >&6
8338 if test "$cross_compiling" = yes; then :
8339 gl_cv_header_working_fcntl_h=cross-compiling
8341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8342 /* end confdefs.h. */
8343 #include <sys/types.h>
8344 #include <sys/stat.h>
8351 #define O_NOFOLLOW 0
8353 static int const constants[] =
8355 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
8356 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
8363 int status = !constants;
8365 static char const sym[] = "conftest.sym";
8366 if (symlink (".", sym) != 0
8367 || close (open (sym, O_RDONLY | O_NOFOLLOW)) == 0)
8372 static char const file[] = "confdefs.h";
8373 int fd = open (file, O_RDONLY | O_NOATIME);
8375 struct stat st0, st1;
8377 || fstat (fd, &st0) != 0
8379 || read (fd, &c, 1) != 1
8381 || stat (file, &st1) != 0
8382 || st0.st_atime != st1.st_atime)
8390 if ac_fn_c_try_run "$LINENO"; then :
8391 gl_cv_header_working_fcntl_h=yes
8394 32) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
8395 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
8396 96) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
8397 *) gl_cv_header_working_fcntl_h='no';;
8400 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8401 conftest.$ac_objext conftest.beam conftest.$ac_ext
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
8406 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
8408 case $gl_cv_header_working_fcntl_h in #(
8409 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
8413 cat >>confdefs.h <<_ACEOF
8414 #define HAVE_WORKING_O_NOATIME $ac_val
8418 case $gl_cv_header_working_fcntl_h in #(
8419 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
8423 cat >>confdefs.h <<_ACEOF
8424 #define HAVE_WORKING_O_NOFOLLOW $ac_val
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
8430 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
8431 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
8432 $as_echo_n "(cached) " >&6
8434 gt_save_LIBS="$LIBS"
8435 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
8436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8437 /* end confdefs.h. */
8438 #include <CoreFoundation/CFPreferences.h>
8442 CFPreferencesCopyAppValue(NULL, NULL)
8447 if ac_fn_c_try_link "$LINENO"; then :
8448 gt_cv_func_CFPreferencesCopyAppValue=yes
8450 gt_cv_func_CFPreferencesCopyAppValue=no
8452 rm -f core conftest.err conftest.$ac_objext \
8453 conftest$ac_exeext conftest.$ac_ext
8454 LIBS="$gt_save_LIBS"
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
8457 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
8458 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
8460 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
8464 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
8465 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
8466 $as_echo_n "(cached) " >&6
8468 gt_save_LIBS="$LIBS"
8469 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
8470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8471 /* end confdefs.h. */
8472 #include <CoreFoundation/CFLocale.h>
8476 CFLocaleCopyCurrent();
8481 if ac_fn_c_try_link "$LINENO"; then :
8482 gt_cv_func_CFLocaleCopyCurrent=yes
8484 gt_cv_func_CFLocaleCopyCurrent=no
8486 rm -f core conftest.err conftest.$ac_objext \
8487 conftest$ac_exeext conftest.$ac_ext
8488 LIBS="$gt_save_LIBS"
8490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
8491 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
8492 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
8494 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
8498 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
8499 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
8508 case "$enable_silent_rules" in
8509 yes) INTL_DEFAULT_VERBOSITY=0;;
8510 no) INTL_DEFAULT_VERBOSITY=1;;
8511 *) INTL_DEFAULT_VERBOSITY=1;;
8515 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
8516 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
8520 $as_echo "#define ptrdiff_t long" >>confdefs.h
8525 for ac_header in stddef.h stdlib.h string.h
8527 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8528 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8529 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8530 cat >>confdefs.h <<_ACEOF
8531 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8538 for ac_func in asprintf fwprintf newlocale putenv setenv setlocale \
8539 snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
8541 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8542 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8543 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8544 cat >>confdefs.h <<_ACEOF
8545 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
8554 $as_echo_n "checking whether _snprintf is declared... " >&6; }
8555 if ${ac_cv_have_decl__snprintf+:} false; then :
8556 $as_echo_n "(cached) " >&6
8558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8559 /* end confdefs.h. */
8566 char *p = (char *) _snprintf;
8573 if ac_fn_c_try_compile "$LINENO"; then :
8574 ac_cv_have_decl__snprintf=yes
8576 ac_cv_have_decl__snprintf=no
8578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
8581 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
8582 if test $ac_cv_have_decl__snprintf = yes; then
8588 cat >>confdefs.h <<_ACEOF
8589 #define HAVE_DECL__SNPRINTF $gt_value
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
8595 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
8596 if ${ac_cv_have_decl__snwprintf+:} false; then :
8597 $as_echo_n "(cached) " >&6
8599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8600 /* end confdefs.h. */
8607 char *p = (char *) _snwprintf;
8614 if ac_fn_c_try_compile "$LINENO"; then :
8615 ac_cv_have_decl__snwprintf=yes
8617 ac_cv_have_decl__snwprintf=no
8619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
8622 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
8623 if test $ac_cv_have_decl__snwprintf = yes; then
8629 cat >>confdefs.h <<_ACEOF
8630 #define HAVE_DECL__SNWPRINTF $gt_value
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
8637 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
8638 if ${ac_cv_have_decl_getc_unlocked+:} false; then :
8639 $as_echo_n "(cached) " >&6
8641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8642 /* end confdefs.h. */
8648 #ifndef getc_unlocked
8649 char *p = (char *) getc_unlocked;
8656 if ac_fn_c_try_compile "$LINENO"; then :
8657 ac_cv_have_decl_getc_unlocked=yes
8659 ac_cv_have_decl_getc_unlocked=no
8661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
8664 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
8665 if test $ac_cv_have_decl_getc_unlocked = yes; then
8671 cat >>confdefs.h <<_ACEOF
8672 #define HAVE_DECL_GETC_UNLOCKED $gt_value
8677 case $gt_cv_func_printf_posix in
8678 *yes) HAVE_POSIX_PRINTF=1 ;;
8679 *) HAVE_POSIX_PRINTF=0 ;;
8682 if test "$ac_cv_func_asprintf" = yes; then
8688 if test "$ac_cv_func_snprintf" = yes; then
8694 if test "$ac_cv_func_newlocale" = yes; then
8700 if test "$ac_cv_func_wprintf" = yes; then
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
8709 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
8710 if ${am_cv_langinfo_codeset+:} false; then :
8711 $as_echo_n "(cached) " >&6
8713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8714 /* end confdefs.h. */
8715 #include <langinfo.h>
8719 char* cs = nl_langinfo(CODESET); return !cs;
8724 if ac_fn_c_try_link "$LINENO"; then :
8725 am_cv_langinfo_codeset=yes
8727 am_cv_langinfo_codeset=no
8729 rm -f core conftest.err conftest.$ac_objext \
8730 conftest$ac_exeext conftest.$ac_ext
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
8734 $as_echo "$am_cv_langinfo_codeset" >&6; }
8735 if test $am_cv_langinfo_codeset = yes; then
8737 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
8743 $as_echo_n "checking for LC_MESSAGES... " >&6; }
8744 if ${gt_cv_val_LC_MESSAGES+:} false; then :
8745 $as_echo_n "(cached) " >&6
8747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8748 /* end confdefs.h. */
8758 if ac_fn_c_try_link "$LINENO"; then :
8759 gt_cv_val_LC_MESSAGES=yes
8761 gt_cv_val_LC_MESSAGES=no
8763 rm -f core conftest.err conftest.$ac_objext \
8764 conftest$ac_exeext conftest.$ac_ext
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
8767 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
8768 if test $gt_cv_val_LC_MESSAGES = yes; then
8770 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
8775 if test "$enable_shared" = yes; then
8777 mingw* | cygwin*) is_woe32dll=yes ;;
8778 *) is_woe32dll=no ;;
8783 WOE32DLL=$is_woe32dll
8787 mingw* | cygwin*) is_woe32=yes ;;
8792 if test $WOE32 = yes; then
8793 if test -n "$ac_tool_prefix"; then
8794 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
8795 set dummy ${ac_tool_prefix}windres; ac_word=$2
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8797 $as_echo_n "checking for $ac_word... " >&6; }
8798 if ${ac_cv_prog_WINDRES+:} false; then :
8799 $as_echo_n "(cached) " >&6
8801 if test -n "$WINDRES"; then
8802 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8808 test -z "$as_dir" && as_dir=.
8809 for ac_exec_ext in '' $ac_executable_extensions; do
8810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8811 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
8812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8821 WINDRES=$ac_cv_prog_WINDRES
8822 if test -n "$WINDRES"; then
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8824 $as_echo "$WINDRES" >&6; }
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8827 $as_echo "no" >&6; }
8832 if test -z "$ac_cv_prog_WINDRES"; then
8833 ac_ct_WINDRES=$WINDRES
8834 # Extract the first word of "windres", so it can be a program name with args.
8835 set dummy windres; ac_word=$2
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8837 $as_echo_n "checking for $ac_word... " >&6; }
8838 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
8839 $as_echo_n "(cached) " >&6
8841 if test -n "$ac_ct_WINDRES"; then
8842 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
8844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8848 test -z "$as_dir" && as_dir=.
8849 for ac_exec_ext in '' $ac_executable_extensions; do
8850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8851 ac_cv_prog_ac_ct_WINDRES="windres"
8852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8861 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
8862 if test -n "$ac_ct_WINDRES"; then
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
8864 $as_echo "$ac_ct_WINDRES" >&6; }
8866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8867 $as_echo "no" >&6; }
8870 if test "x$ac_ct_WINDRES" = x; then
8873 case $cross_compiling:$ac_tool_warned in
8875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8876 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8877 ac_tool_warned=yes ;;
8879 WINDRES=$ac_ct_WINDRES
8882 WINDRES="$ac_cv_prog_WINDRES"
8918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
8919 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
8920 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
8921 $as_echo_n "(cached) " >&6
8923 gt_save_LIBS="$LIBS"
8924 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
8925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8926 /* end confdefs.h. */
8927 #include <CoreFoundation/CFPreferences.h>
8931 CFPreferencesCopyAppValue(NULL, NULL)
8936 if ac_fn_c_try_link "$LINENO"; then :
8937 gt_cv_func_CFPreferencesCopyAppValue=yes
8939 gt_cv_func_CFPreferencesCopyAppValue=no
8941 rm -f core conftest.err conftest.$ac_objext \
8942 conftest$ac_exeext conftest.$ac_ext
8943 LIBS="$gt_save_LIBS"
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
8946 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
8947 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
8949 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
8952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
8953 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
8954 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
8955 $as_echo_n "(cached) " >&6
8957 gt_save_LIBS="$LIBS"
8958 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
8959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8960 /* end confdefs.h. */
8961 #include <CoreFoundation/CFLocale.h>
8965 CFLocaleCopyCurrent();
8970 if ac_fn_c_try_link "$LINENO"; then :
8971 gt_cv_func_CFLocaleCopyCurrent=yes
8973 gt_cv_func_CFLocaleCopyCurrent=no
8975 rm -f core conftest.err conftest.$ac_objext \
8976 conftest$ac_exeext conftest.$ac_ext
8977 LIBS="$gt_save_LIBS"
8979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
8980 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
8981 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
8983 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
8987 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
8988 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
8996 BUILD_INCLUDED_LIBINTL=no
8997 USE_INCLUDED_LIBINTL=no
9003 case " $gt_needs " in
9004 *" need-formatstring-macros "*) gt_api_version=3 ;;
9005 *" need-ngettext "*) gt_api_version=2 ;;
9006 *) gt_api_version=1 ;;
9008 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
9009 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
9011 if test "$USE_NLS" = "yes"; then
9012 gt_use_preinstalled_gnugettext=no
9014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
9015 $as_echo_n "checking whether included gettext is requested... " >&6; }
9017 # Check whether --with-included-gettext was given.
9018 if test "${with_included_gettext+set}" = set; then :
9019 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
9021 nls_cv_force_use_gnu_gettext=no
9024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
9025 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
9027 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
9028 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
9031 if test $gt_api_version -ge 3; then
9032 gt_revision_test_code='
9033 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
9034 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
9036 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
9039 gt_revision_test_code=
9041 if test $gt_api_version -ge 2; then
9042 gt_expression_test_code=' + * ngettext ("", "", 0)'
9044 gt_expression_test_code=
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
9048 $as_echo_n "checking for GNU gettext in libc... " >&6; }
9049 if eval \${$gt_func_gnugettext_libc+:} false; then :
9050 $as_echo_n "(cached) " >&6
9052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9053 /* end confdefs.h. */
9054 #include <libintl.h>
9055 $gt_revision_test_code
9056 extern int _nl_msg_cat_cntr;
9057 extern int *_nl_domain_bindings;
9061 bindtextdomain ("", "");
9062 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
9067 if ac_fn_c_try_link "$LINENO"; then :
9068 eval "$gt_func_gnugettext_libc=yes"
9070 eval "$gt_func_gnugettext_libc=no"
9072 rm -f core conftest.err conftest.$ac_objext \
9073 conftest$ac_exeext conftest.$ac_ext
9075 eval ac_res=\$$gt_func_gnugettext_libc
9076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9077 $as_echo "$ac_res" >&6; }
9079 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
9090 acl_save_prefix="$prefix"
9091 prefix="$acl_final_prefix"
9092 acl_save_exec_prefix="$exec_prefix"
9093 exec_prefix="$acl_final_exec_prefix"
9095 eval additional_includedir=\"$includedir\"
9096 eval additional_libdir=\"$libdir\"
9098 exec_prefix="$acl_save_exec_prefix"
9099 prefix="$acl_save_prefix"
9102 # Check whether --with-libintl-prefix was given.
9103 if test "${with_libintl_prefix+set}" = set; then :
9104 withval=$with_libintl_prefix;
9105 if test "X$withval" = "Xno"; then
9108 if test "X$withval" = "X"; then
9110 acl_save_prefix="$prefix"
9111 prefix="$acl_final_prefix"
9112 acl_save_exec_prefix="$exec_prefix"
9113 exec_prefix="$acl_final_exec_prefix"
9115 eval additional_includedir=\"$includedir\"
9116 eval additional_libdir=\"$libdir\"
9118 exec_prefix="$acl_save_exec_prefix"
9119 prefix="$acl_save_prefix"
9122 additional_includedir="$withval/include"
9123 additional_libdir="$withval/$acl_libdirstem"
9124 if test "$acl_libdirstem2" != "$acl_libdirstem" \
9125 && ! test -d "$withval/$acl_libdirstem"; then
9126 additional_libdir="$withval/$acl_libdirstem2"
9140 names_already_handled=
9141 names_next_round='intl '
9142 while test -n "$names_next_round"; do
9143 names_this_round="$names_next_round"
9145 for name in $names_this_round; do
9147 for n in $names_already_handled; do
9148 if test "$n" = "$name"; then
9153 if test -z "$already_handled"; then
9154 names_already_handled="$names_already_handled $name"
9155 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9156 eval value=\"\$HAVE_LIB$uppername\"
9157 if test -n "$value"; then
9158 if test "$value" = yes; then
9159 eval value=\"\$LIB$uppername\"
9160 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
9161 eval value=\"\$LTLIB$uppername\"
9162 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
9171 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
9172 if test -n "$acl_shlibext"; then
9173 shrext=".$acl_shlibext" # typically: shrext=.so
9177 if test $use_additional = yes; then
9178 dir="$additional_libdir"
9179 if test -n "$acl_shlibext"; then
9180 if test -f "$dir/$libname$shrext"; then
9182 found_so="$dir/$libname$shrext"
9184 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9185 ver=`(cd "$dir" && \
9186 for f in "$libname$shrext".*; do echo "$f"; done \
9187 | sed -e "s,^$libname$shrext\\\\.,," \
9188 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9189 | sed 1q ) 2>/dev/null`
9190 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
9192 found_so="$dir/$libname$shrext.$ver"
9195 eval library_names=\"$acl_library_names_spec\"
9196 for f in $library_names; do
9197 if test -f "$dir/$f"; then
9206 if test "X$found_dir" = "X"; then
9207 if test -f "$dir/$libname.$acl_libext"; then
9209 found_a="$dir/$libname.$acl_libext"
9212 if test "X$found_dir" != "X"; then
9213 if test -f "$dir/$libname.la"; then
9214 found_la="$dir/$libname.la"
9218 if test "X$found_dir" = "X"; then
9219 for x in $LDFLAGS $LTLIBINTL; do
9221 acl_save_prefix="$prefix"
9222 prefix="$acl_final_prefix"
9223 acl_save_exec_prefix="$exec_prefix"
9224 exec_prefix="$acl_final_exec_prefix"
9226 exec_prefix="$acl_save_exec_prefix"
9227 prefix="$acl_save_prefix"
9231 dir=`echo "X$x" | sed -e 's/^X-L//'`
9232 if test -n "$acl_shlibext"; then
9233 if test -f "$dir/$libname$shrext"; then
9235 found_so="$dir/$libname$shrext"
9237 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9238 ver=`(cd "$dir" && \
9239 for f in "$libname$shrext".*; do echo "$f"; done \
9240 | sed -e "s,^$libname$shrext\\\\.,," \
9241 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9242 | sed 1q ) 2>/dev/null`
9243 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
9245 found_so="$dir/$libname$shrext.$ver"
9248 eval library_names=\"$acl_library_names_spec\"
9249 for f in $library_names; do
9250 if test -f "$dir/$f"; then
9259 if test "X$found_dir" = "X"; then
9260 if test -f "$dir/$libname.$acl_libext"; then
9262 found_a="$dir/$libname.$acl_libext"
9265 if test "X$found_dir" != "X"; then
9266 if test -f "$dir/$libname.la"; then
9267 found_la="$dir/$libname.la"
9272 if test "X$found_dir" != "X"; then
9277 if test "X$found_dir" != "X"; then
9278 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
9279 if test "X$found_so" != "X"; then
9280 if test "$enable_rpath" = no \
9281 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
9282 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
9283 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9286 for x in $ltrpathdirs; do
9287 if test "X$x" = "X$found_dir"; then
9292 if test -z "$haveit"; then
9293 ltrpathdirs="$ltrpathdirs $found_dir"
9295 if test "$acl_hardcode_direct" = yes; then
9296 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9298 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
9299 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9301 for x in $rpathdirs; do
9302 if test "X$x" = "X$found_dir"; then
9307 if test -z "$haveit"; then
9308 rpathdirs="$rpathdirs $found_dir"
9312 for x in $LDFLAGS $LIBINTL; do
9314 acl_save_prefix="$prefix"
9315 prefix="$acl_final_prefix"
9316 acl_save_exec_prefix="$exec_prefix"
9317 exec_prefix="$acl_final_exec_prefix"
9319 exec_prefix="$acl_save_exec_prefix"
9320 prefix="$acl_save_prefix"
9322 if test "X$x" = "X-L$found_dir"; then
9327 if test -z "$haveit"; then
9328 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
9330 if test "$acl_hardcode_minus_L" != no; then
9331 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9333 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9339 if test "X$found_a" != "X"; then
9340 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
9342 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
9345 additional_includedir=
9346 case "$found_dir" in
9347 */$acl_libdirstem | */$acl_libdirstem/)
9348 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9349 if test "$name" = 'intl'; then
9350 LIBINTL_PREFIX="$basedir"
9352 additional_includedir="$basedir/include"
9354 */$acl_libdirstem2 | */$acl_libdirstem2/)
9355 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
9356 if test "$name" = 'intl'; then
9357 LIBINTL_PREFIX="$basedir"
9359 additional_includedir="$basedir/include"
9362 if test "X$additional_includedir" != "X"; then
9363 if test "X$additional_includedir" != "X/usr/include"; then
9365 if test "X$additional_includedir" = "X/usr/local/include"; then
9366 if test -n "$GCC"; then
9368 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9372 if test -z "$haveit"; then
9373 for x in $CPPFLAGS $INCINTL; do
9375 acl_save_prefix="$prefix"
9376 prefix="$acl_final_prefix"
9377 acl_save_exec_prefix="$exec_prefix"
9378 exec_prefix="$acl_final_exec_prefix"
9380 exec_prefix="$acl_save_exec_prefix"
9381 prefix="$acl_save_prefix"
9383 if test "X$x" = "X-I$additional_includedir"; then
9388 if test -z "$haveit"; then
9389 if test -d "$additional_includedir"; then
9390 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9396 if test -n "$found_la"; then
9397 save_libdir="$libdir"
9399 */* | *\\*) . "$found_la" ;;
9400 *) . "./$found_la" ;;
9402 libdir="$save_libdir"
9403 for dep in $dependency_libs; do
9406 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9407 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
9408 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
9410 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
9411 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
9412 if test -n "$GCC"; then
9414 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9418 if test -z "$haveit"; then
9420 for x in $LDFLAGS $LIBINTL; do
9422 acl_save_prefix="$prefix"
9423 prefix="$acl_final_prefix"
9424 acl_save_exec_prefix="$exec_prefix"
9425 exec_prefix="$acl_final_exec_prefix"
9427 exec_prefix="$acl_save_exec_prefix"
9428 prefix="$acl_save_prefix"
9430 if test "X$x" = "X-L$additional_libdir"; then
9435 if test -z "$haveit"; then
9436 if test -d "$additional_libdir"; then
9437 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
9441 for x in $LDFLAGS $LTLIBINTL; do
9443 acl_save_prefix="$prefix"
9444 prefix="$acl_final_prefix"
9445 acl_save_exec_prefix="$exec_prefix"
9446 exec_prefix="$acl_final_exec_prefix"
9448 exec_prefix="$acl_save_exec_prefix"
9449 prefix="$acl_save_prefix"
9451 if test "X$x" = "X-L$additional_libdir"; then
9456 if test -z "$haveit"; then
9457 if test -d "$additional_libdir"; then
9458 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
9465 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9466 if test "$enable_rpath" != no; then
9468 for x in $rpathdirs; do
9469 if test "X$x" = "X$dir"; then
9474 if test -z "$haveit"; then
9475 rpathdirs="$rpathdirs $dir"
9478 for x in $ltrpathdirs; do
9479 if test "X$x" = "X$dir"; then
9484 if test -z "$haveit"; then
9485 ltrpathdirs="$ltrpathdirs $dir"
9490 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9493 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9496 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
9497 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
9503 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9504 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
9510 if test "X$rpathdirs" != "X"; then
9511 if test -n "$acl_hardcode_libdir_separator"; then
9513 for found_dir in $rpathdirs; do
9514 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
9516 acl_save_libdir="$libdir"
9518 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9519 libdir="$acl_save_libdir"
9520 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9522 for found_dir in $rpathdirs; do
9523 acl_save_libdir="$libdir"
9525 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9526 libdir="$acl_save_libdir"
9527 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9531 if test "X$ltrpathdirs" != "X"; then
9532 for found_dir in $ltrpathdirs; do
9533 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
9542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
9543 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
9544 if eval \${$gt_func_gnugettext_libintl+:} false; then :
9545 $as_echo_n "(cached) " >&6
9547 gt_save_CPPFLAGS="$CPPFLAGS"
9548 CPPFLAGS="$CPPFLAGS $INCINTL"
9549 gt_save_LIBS="$LIBS"
9550 LIBS="$LIBS $LIBINTL"
9551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9552 /* end confdefs.h. */
9553 #include <libintl.h>
9554 $gt_revision_test_code
9555 extern int _nl_msg_cat_cntr;
9560 const char *_nl_expand_alias (const char *);
9564 bindtextdomain ("", "");
9565 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
9570 if ac_fn_c_try_link "$LINENO"; then :
9571 eval "$gt_func_gnugettext_libintl=yes"
9573 eval "$gt_func_gnugettext_libintl=no"
9575 rm -f core conftest.err conftest.$ac_objext \
9576 conftest$ac_exeext conftest.$ac_ext
9577 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
9578 LIBS="$LIBS $LIBICONV"
9579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9580 /* end confdefs.h. */
9581 #include <libintl.h>
9582 $gt_revision_test_code
9583 extern int _nl_msg_cat_cntr;
9588 const char *_nl_expand_alias (const char *);
9592 bindtextdomain ("", "");
9593 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
9598 if ac_fn_c_try_link "$LINENO"; then :
9599 LIBINTL="$LIBINTL $LIBICONV"
9600 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
9601 eval "$gt_func_gnugettext_libintl=yes"
9604 rm -f core conftest.err conftest.$ac_objext \
9605 conftest$ac_exeext conftest.$ac_ext
9607 CPPFLAGS="$gt_save_CPPFLAGS"
9608 LIBS="$gt_save_LIBS"
9610 eval ac_res=\$$gt_func_gnugettext_libintl
9611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9612 $as_echo "$ac_res" >&6; }
9615 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
9616 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
9617 && test "$PACKAGE" != gettext-runtime \
9618 && test "$PACKAGE" != gettext-tools; }; then
9619 gt_use_preinstalled_gnugettext=yes
9627 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
9628 nls_cv_use_gnu_gettext=yes
9632 if test "$nls_cv_use_gnu_gettext" = "yes"; then
9633 BUILD_INCLUDED_LIBINTL=yes
9634 USE_INCLUDED_LIBINTL=yes
9635 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
9636 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
9637 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
9641 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9642 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9647 if test -n "$INTL_MACOSX_LIBS"; then
9648 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9649 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9650 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
9651 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
9655 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9656 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9658 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
9665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
9666 $as_echo_n "checking whether to use NLS... " >&6; }
9667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
9668 $as_echo "$USE_NLS" >&6; }
9669 if test "$USE_NLS" = "yes"; then
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
9671 $as_echo_n "checking where the gettext function comes from... " >&6; }
9672 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9673 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
9674 gt_source="external libintl"
9679 gt_source="included intl directory"
9681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
9682 $as_echo "$gt_source" >&6; }
9685 if test "$USE_NLS" = "yes"; then
9687 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9688 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
9689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
9690 $as_echo_n "checking how to link with libintl... " >&6; }
9691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
9692 $as_echo "$LIBINTL" >&6; }
9694 for element in $INCINTL; do
9696 for x in $CPPFLAGS; do
9698 acl_save_prefix="$prefix"
9699 prefix="$acl_final_prefix"
9700 acl_save_exec_prefix="$exec_prefix"
9701 exec_prefix="$acl_final_exec_prefix"
9703 exec_prefix="$acl_save_exec_prefix"
9704 prefix="$acl_save_prefix"
9706 if test "X$x" = "X$element"; then
9711 if test -z "$haveit"; then
9712 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9719 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
9722 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
9730 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
9731 BUILD_INCLUDED_LIBINTL=yes
9739 nls_cv_header_libgt=
9751 if test "$USE_INCLUDED_LIBINTL" = yes; then
9752 INTLOBJS="\$(GETTOBJS)"
9756 INTL_LIBTOOL_SUFFIX_PREFIX=
9772 abook_localedir="$datadir/locale"
9773 abook_localedir=`( test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9774 eval tmp_abook_prefix=\""$abook_localedir"\"
9775 eval echo $tmp_abook_prefix
9778 localedir="\$(datadir)/locale"
9781 # Check whether --with-localedir was given.
9782 if test "${with_localedir+set}" = set; then :
9783 withval=$with_localedir;
9786 if test "x$with_localedir" != "x"; then
9787 abook_localedir="$with_localedir"
9788 localedir="$with_localedir"
9792 cat >>confdefs.h <<_ACEOF
9793 #define LOCALEDIR "$abook_localedir"
9798 if test x$USE_INCLUDED_LIBINTL = xyes; then
9799 USE_INCLUDED_INTL_H_TRUE=
9800 USE_INCLUDED_INTL_H_FALSE='#'
9802 USE_INCLUDED_INTL_H_TRUE='#'
9803 USE_INCLUDED_INTL_H_FALSE=
9809 ac_cpp='$CPP $CPPFLAGS'
9810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9813 if test -n "$ac_tool_prefix"; then
9814 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
9815 set dummy ${ac_tool_prefix}gcc; ac_word=$2
9816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9817 $as_echo_n "checking for $ac_word... " >&6; }
9818 if ${ac_cv_prog_CC+:} false; then :
9819 $as_echo_n "(cached) " >&6
9821 if test -n "$CC"; then
9822 ac_cv_prog_CC="$CC" # Let the user override the test.
9824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9828 test -z "$as_dir" && as_dir=.
9829 for ac_exec_ext in '' $ac_executable_extensions; do
9830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9831 ac_cv_prog_CC="${ac_tool_prefix}gcc"
9832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9842 if test -n "$CC"; then
9843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
9844 $as_echo "$CC" >&6; }
9846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9847 $as_echo "no" >&6; }
9852 if test -z "$ac_cv_prog_CC"; then
9854 # Extract the first word of "gcc", so it can be a program name with args.
9855 set dummy gcc; ac_word=$2
9856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9857 $as_echo_n "checking for $ac_word... " >&6; }
9858 if ${ac_cv_prog_ac_ct_CC+:} false; then :
9859 $as_echo_n "(cached) " >&6
9861 if test -n "$ac_ct_CC"; then
9862 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
9864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9868 test -z "$as_dir" && as_dir=.
9869 for ac_exec_ext in '' $ac_executable_extensions; do
9870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9871 ac_cv_prog_ac_ct_CC="gcc"
9872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9881 ac_ct_CC=$ac_cv_prog_ac_ct_CC
9882 if test -n "$ac_ct_CC"; then
9883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
9884 $as_echo "$ac_ct_CC" >&6; }
9886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9887 $as_echo "no" >&6; }
9890 if test "x$ac_ct_CC" = x; then
9893 case $cross_compiling:$ac_tool_warned in
9895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9896 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9897 ac_tool_warned=yes ;;
9905 if test -z "$CC"; then
9906 if test -n "$ac_tool_prefix"; then
9907 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
9908 set dummy ${ac_tool_prefix}cc; ac_word=$2
9909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9910 $as_echo_n "checking for $ac_word... " >&6; }
9911 if ${ac_cv_prog_CC+:} false; then :
9912 $as_echo_n "(cached) " >&6
9914 if test -n "$CC"; then
9915 ac_cv_prog_CC="$CC" # Let the user override the test.
9917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9921 test -z "$as_dir" && as_dir=.
9922 for ac_exec_ext in '' $ac_executable_extensions; do
9923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9924 ac_cv_prog_CC="${ac_tool_prefix}cc"
9925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9935 if test -n "$CC"; then
9936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
9937 $as_echo "$CC" >&6; }
9939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9940 $as_echo "no" >&6; }
9946 if test -z "$CC"; then
9947 # Extract the first word of "cc", so it can be a program name with args.
9948 set dummy cc; ac_word=$2
9949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9950 $as_echo_n "checking for $ac_word... " >&6; }
9951 if ${ac_cv_prog_CC+:} false; then :
9952 $as_echo_n "(cached) " >&6
9954 if test -n "$CC"; then
9955 ac_cv_prog_CC="$CC" # Let the user override the test.
9958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9962 test -z "$as_dir" && as_dir=.
9963 for ac_exec_ext in '' $ac_executable_extensions; do
9964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9965 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
9966 ac_prog_rejected=yes
9970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9977 if test $ac_prog_rejected = yes; then
9978 # We found a bogon in the path, so make sure we never use it.
9979 set dummy $ac_cv_prog_CC
9981 if test $# != 0; then
9982 # We chose a different compiler from the bogus one.
9983 # However, it has the same basename, so the bogon will be chosen
9984 # first if we set CC to just the basename; use the full file name.
9986 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
9992 if test -n "$CC"; then
9993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
9994 $as_echo "$CC" >&6; }
9996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9997 $as_echo "no" >&6; }
10002 if test -z "$CC"; then
10003 if test -n "$ac_tool_prefix"; then
10004 for ac_prog in cl.exe
10006 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10007 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10009 $as_echo_n "checking for $ac_word... " >&6; }
10010 if ${ac_cv_prog_CC+:} false; then :
10011 $as_echo_n "(cached) " >&6
10013 if test -n "$CC"; then
10014 ac_cv_prog_CC="$CC" # Let the user override the test.
10016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10017 for as_dir in $PATH
10020 test -z "$as_dir" && as_dir=.
10021 for ac_exec_ext in '' $ac_executable_extensions; do
10022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10023 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10034 if test -n "$CC"; then
10035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10036 $as_echo "$CC" >&6; }
10038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10039 $as_echo "no" >&6; }
10043 test -n "$CC" && break
10046 if test -z "$CC"; then
10048 for ac_prog in cl.exe
10050 # Extract the first word of "$ac_prog", so it can be a program name with args.
10051 set dummy $ac_prog; ac_word=$2
10052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10053 $as_echo_n "checking for $ac_word... " >&6; }
10054 if ${ac_cv_prog_ac_ct_CC+:} false; then :
10055 $as_echo_n "(cached) " >&6
10057 if test -n "$ac_ct_CC"; then
10058 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10061 for as_dir in $PATH
10064 test -z "$as_dir" && as_dir=.
10065 for ac_exec_ext in '' $ac_executable_extensions; do
10066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10067 ac_cv_prog_ac_ct_CC="$ac_prog"
10068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10077 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10078 if test -n "$ac_ct_CC"; then
10079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
10080 $as_echo "$ac_ct_CC" >&6; }
10082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10083 $as_echo "no" >&6; }
10087 test -n "$ac_ct_CC" && break
10090 if test "x$ac_ct_CC" = x; then
10093 case $cross_compiling:$ac_tool_warned in
10095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10096 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10097 ac_tool_warned=yes ;;
10106 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10107 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10108 as_fn_error $? "no acceptable C compiler found in \$PATH
10109 See \`config.log' for more details" "$LINENO" 5; }
10111 # Provide some information about the compiler.
10112 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
10115 for ac_option in --version -v -V -qversion; do
10116 { { ac_try="$ac_compiler $ac_option >&5"
10117 case "(($ac_try" in
10118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10119 *) ac_try_echo=$ac_try;;
10121 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10122 $as_echo "$ac_try_echo"; } >&5
10123 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
10125 if test -s conftest.err; then
10127 ... rest of stderr output deleted ...
10128 10q' conftest.err >conftest.er1
10129 cat conftest.er1 >&5
10131 rm -f conftest.er1 conftest.err
10132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10133 test $ac_status = 0; }
10136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
10137 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
10138 if ${ac_cv_c_compiler_gnu+:} false; then :
10139 $as_echo_n "(cached) " >&6
10141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10142 /* end confdefs.h. */
10155 if ac_fn_c_try_compile "$LINENO"; then :
10156 ac_compiler_gnu=yes
10160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10161 ac_cv_c_compiler_gnu=$ac_compiler_gnu
10164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
10165 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
10166 if test $ac_compiler_gnu = yes; then
10171 ac_test_CFLAGS=${CFLAGS+set}
10172 ac_save_CFLAGS=$CFLAGS
10173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
10174 $as_echo_n "checking whether $CC accepts -g... " >&6; }
10175 if ${ac_cv_prog_cc_g+:} false; then :
10176 $as_echo_n "(cached) " >&6
10178 ac_save_c_werror_flag=$ac_c_werror_flag
10179 ac_c_werror_flag=yes
10182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10183 /* end confdefs.h. */
10193 if ac_fn_c_try_compile "$LINENO"; then :
10194 ac_cv_prog_cc_g=yes
10197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10198 /* end confdefs.h. */
10208 if ac_fn_c_try_compile "$LINENO"; then :
10211 ac_c_werror_flag=$ac_save_c_werror_flag
10213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10214 /* end confdefs.h. */
10224 if ac_fn_c_try_compile "$LINENO"; then :
10225 ac_cv_prog_cc_g=yes
10227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10232 ac_c_werror_flag=$ac_save_c_werror_flag
10234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
10235 $as_echo "$ac_cv_prog_cc_g" >&6; }
10236 if test "$ac_test_CFLAGS" = set; then
10237 CFLAGS=$ac_save_CFLAGS
10238 elif test $ac_cv_prog_cc_g = yes; then
10239 if test "$GCC" = yes; then
10245 if test "$GCC" = yes; then
10251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
10252 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
10253 if ${ac_cv_prog_cc_c89+:} false; then :
10254 $as_echo_n "(cached) " >&6
10256 ac_cv_prog_cc_c89=no
10258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10259 /* end confdefs.h. */
10260 #include <stdarg.h>
10262 #include <sys/types.h>
10263 #include <sys/stat.h>
10264 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
10265 struct buf { int x; };
10266 FILE * (*rcsopen) (struct buf *, struct stat *, int);
10267 static char *e (p, i)
10273 static char *f (char * (*g) (char **, int), char **p, ...)
10278 s = g (p, va_arg (v,int));
10283 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
10284 function prototypes and stuff, but not '\xHH' hex character constants.
10285 These don't provoke an error unfortunately, instead are silently treated
10286 as 'x'. The following induces an error, until -std is added to get
10287 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
10288 array size at least. It's necessary to write '\x00'==0 to get something
10289 that's true only with -std. */
10290 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
10292 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
10293 inside strings and character constants. */
10295 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
10297 int test (int i, double x);
10298 struct s1 {int (*f) (int a);};
10299 struct s2 {int (*f) (double a);};
10300 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
10306 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
10311 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
10312 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
10314 CC="$ac_save_CC $ac_arg"
10315 if ac_fn_c_try_compile "$LINENO"; then :
10316 ac_cv_prog_cc_c89=$ac_arg
10318 rm -f core conftest.err conftest.$ac_objext
10319 test "x$ac_cv_prog_cc_c89" != "xno" && break
10321 rm -f conftest.$ac_ext
10326 case "x$ac_cv_prog_cc_c89" in
10328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
10329 $as_echo "none needed" >&6; } ;;
10331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
10332 $as_echo "unsupported" >&6; } ;;
10334 CC="$CC $ac_cv_prog_cc_c89"
10335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
10336 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
10338 if test "x$ac_cv_prog_cc_c89" != xno; then :
10343 ac_cpp='$CPP $CPPFLAGS'
10344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10348 depcc="$CC" am_compiler_list=
10350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
10351 $as_echo_n "checking dependency style of $depcc... " >&6; }
10352 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
10353 $as_echo_n "(cached) " >&6
10355 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
10356 # We make a subdir and do the tests there. Otherwise we can end up
10357 # making bogus files that we don't know about and never remove. For
10358 # instance it was reported that on HP-UX the gcc test will end up
10359 # making a dummy file named `D' -- because `-MD' means `put the output
10361 rm -rf conftest.dir
10363 # Copy depcomp to subdir because otherwise we won't find it if we're
10364 # using a relative directory.
10365 cp "$am_depcomp" conftest.dir
10367 # We will build objects and dependencies in a subdirectory because
10368 # it helps to detect inapplicable dependency modes. For instance
10369 # both Tru64's cc and ICC support -MD to output dependencies as a
10370 # side effect of compilation, but ICC will put the dependencies in
10371 # the current directory while Tru64 will put them in the object
10375 am_cv_CC_dependencies_compiler_type=none
10376 if test "$am_compiler_list" = ""; then
10377 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10379 am__universal=false
10380 case " $depcc " in #(
10381 *\ -arch\ *\ -arch\ *) am__universal=true ;;
10384 for depmode in $am_compiler_list; do
10385 # Setup a source with many dependencies, because some compilers
10386 # like to wrap large dependency lists on column 80 (with \), and
10387 # we should not choose a depcomp mode which is confused by this.
10389 # We need to recreate these files for each test, as the compiler may
10390 # overwrite some of them when testing with obscure command lines.
10391 # This happens at least with the AIX C compiler.
10393 for i in 1 2 3 4 5 6; do
10394 echo '#include "conftst'$i'.h"' >> sub/conftest.c
10395 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10396 # Solaris 8's {/usr,}/bin/sh.
10397 touch sub/conftst$i.h
10399 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
10401 # We check with `-c' and `-o' for the sake of the "dashmstdout"
10402 # mode. It turns out that the SunPro C++ compiler does not properly
10403 # handle `-M -o', and we need to detect this. Also, some Intel
10404 # versions had trouble with output in subdirs
10405 am__obj=sub/conftest.${OBJEXT-o}
10406 am__minus_obj="-o $am__obj"
10409 # This depmode causes a compiler race in universal mode.
10410 test "$am__universal" = false || continue
10413 # after this tag, mechanisms are not by side-effect, so they'll
10414 # only be used when explicitly requested
10415 if test "x$enable_dependency_tracking" = xyes; then
10421 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
10422 # This compiler won't grok `-c -o', but also, the minuso test has
10423 # not run yet. These depmodes are late enough in the game, and
10424 # so weak that their functioning should not be impacted.
10425 am__obj=conftest.${OBJEXT-o}
10430 if depmode=$depmode \
10431 source=sub/conftest.c object=$am__obj \
10432 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10433 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
10434 >/dev/null 2>conftest.err &&
10435 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
10436 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
10437 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
10438 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
10439 # icc doesn't choke on unknown options, it will just issue warnings
10440 # or remarks (even with -Werror). So we grep stderr for any message
10441 # that says an option was ignored or not supported.
10442 # When given -MP, icc 7.0 and 7.1 complain thusly:
10443 # icc: Command line warning: ignoring option '-M'; no argument required
10444 # The diagnosis changed in icc 8.0:
10445 # icc: Command line remark: option '-MP' not supported
10446 if (grep 'ignoring option' conftest.err ||
10447 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
10448 am_cv_CC_dependencies_compiler_type=$depmode
10455 rm -rf conftest.dir
10457 am_cv_CC_dependencies_compiler_type=none
10461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
10462 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
10463 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
10466 test "x$enable_dependency_tracking" != xno \
10467 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
10468 am__fastdepCC_TRUE=
10469 am__fastdepCC_FALSE='#'
10471 am__fastdepCC_TRUE='#'
10472 am__fastdepCC_FALSE=
10476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
10477 $as_echo_n "checking for library containing strerror... " >&6; }
10478 if ${ac_cv_search_strerror+:} false; then :
10479 $as_echo_n "(cached) " >&6
10481 ac_func_search_save_LIBS=$LIBS
10482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10483 /* end confdefs.h. */
10485 /* Override any GCC internal prototype to avoid an error.
10486 Use char because int might match the return type of a GCC
10487 builtin and then its argument prototype would still apply. */
10495 return strerror ();
10500 for ac_lib in '' cposix; do
10501 if test -z "$ac_lib"; then
10502 ac_res="none required"
10505 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10507 if ac_fn_c_try_link "$LINENO"; then :
10508 ac_cv_search_strerror=$ac_res
10510 rm -f core conftest.err conftest.$ac_objext \
10512 if ${ac_cv_search_strerror+:} false; then :
10516 if ${ac_cv_search_strerror+:} false; then :
10519 ac_cv_search_strerror=no
10521 rm conftest.$ac_ext
10522 LIBS=$ac_func_search_save_LIBS
10524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
10525 $as_echo "$ac_cv_search_strerror" >&6; }
10526 ac_res=$ac_cv_search_strerror
10527 if test "$ac_res" != no; then :
10528 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
10533 $as_echo_n "checking for function prototypes... " >&6; }
10534 if test "$ac_cv_prog_cc_c89" != no; then
10535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10536 $as_echo "yes" >&6; }
10538 $as_echo "#define PROTOTYPES 1" >>confdefs.h
10541 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10545 $as_echo "no" >&6; }
10550 if test "$ac_cv_prog_cc_stdc" != no; then
10553 U=_ ANSI2KNR=./ansi2knr
10555 # Ensure some checks needed by ansi2knr itself.
10557 for ac_header in string.h
10559 ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
10560 if test "x$ac_cv_header_string_h" = xyes; then :
10561 cat >>confdefs.h <<_ACEOF
10562 #define HAVE_STRING_H 1
10570 if test "x$U" != "x"; then
10571 as_fn_error $? "Compiler not ANSI compliant" "$LINENO" 5
10573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
10574 $as_echo_n "checking for inline... " >&6; }
10575 if ${ac_cv_c_inline+:} false; then :
10576 $as_echo_n "(cached) " >&6
10579 for ac_kw in inline __inline__ __inline; do
10580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10581 /* end confdefs.h. */
10582 #ifndef __cplusplus
10584 static $ac_kw foo_t static_foo () {return 0; }
10585 $ac_kw foo_t foo () {return 0; }
10589 if ac_fn_c_try_compile "$LINENO"; then :
10590 ac_cv_c_inline=$ac_kw
10592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10593 test "$ac_cv_c_inline" != no && break
10597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
10598 $as_echo "$ac_cv_c_inline" >&6; }
10600 case $ac_cv_c_inline in
10603 case $ac_cv_c_inline in
10605 *) ac_val=$ac_cv_c_inline;;
10607 cat >>confdefs.h <<_ACEOF
10608 #ifndef __cplusplus
10609 #define inline $ac_val
10616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10617 $as_echo_n "checking for ANSI C header files... " >&6; }
10618 if ${ac_cv_header_stdc+:} false; then :
10619 $as_echo_n "(cached) " >&6
10621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10622 /* end confdefs.h. */
10623 #include <stdlib.h>
10624 #include <stdarg.h>
10625 #include <string.h>
10636 if ac_fn_c_try_compile "$LINENO"; then :
10637 ac_cv_header_stdc=yes
10639 ac_cv_header_stdc=no
10641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10643 if test $ac_cv_header_stdc = yes; then
10644 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10646 /* end confdefs.h. */
10647 #include <string.h>
10650 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10651 $EGREP "memchr" >/dev/null 2>&1; then :
10654 ac_cv_header_stdc=no
10660 if test $ac_cv_header_stdc = yes; then
10661 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10663 /* end confdefs.h. */
10664 #include <stdlib.h>
10667 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10668 $EGREP "free" >/dev/null 2>&1; then :
10671 ac_cv_header_stdc=no
10677 if test $ac_cv_header_stdc = yes; then
10678 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10679 if test "$cross_compiling" = yes; then :
10682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10683 /* end confdefs.h. */
10685 #include <stdlib.h>
10686 #if ((' ' & 0x0FF) == 0x020)
10687 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10688 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10690 # define ISLOWER(c) \
10691 (('a' <= (c) && (c) <= 'i') \
10692 || ('j' <= (c) && (c) <= 'r') \
10693 || ('s' <= (c) && (c) <= 'z'))
10694 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10697 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10702 for (i = 0; i < 256; i++)
10703 if (XOR (islower (i), ISLOWER (i))
10704 || toupper (i) != TOUPPER (i))
10709 if ac_fn_c_try_run "$LINENO"; then :
10712 ac_cv_header_stdc=no
10714 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10715 conftest.$ac_objext conftest.beam conftest.$ac_ext
10720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
10721 $as_echo "$ac_cv_header_stdc" >&6; }
10722 if test $ac_cv_header_stdc = yes; then
10724 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
10728 for ac_header in unistd.h locale.h sys/ioctl.h iconv.h
10730 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10731 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10732 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10733 cat >>confdefs.h <<_ACEOF
10734 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10741 ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
10742 if test "x$ac_cv_header_stdarg_h" = xyes; then :
10744 $as_echo "#define HAVE_STDARG_H 1" >>confdefs.h
10747 as_fn_error $? "*** stdarg.h is missing on your system ***" "$LINENO" 5
10751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
10752 $as_echo_n "checking for working strcoll... " >&6; }
10753 if ${ac_cv_func_strcoll_works+:} false; then :
10754 $as_echo_n "(cached) " >&6
10756 if test "$cross_compiling" = yes; then :
10757 ac_cv_func_strcoll_works=no
10759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10760 /* end confdefs.h. */
10761 $ac_includes_default
10765 return (strcoll ("abc", "def") >= 0 ||
10766 strcoll ("ABC", "DEF") >= 0 ||
10767 strcoll ("123", "456") >= 0)
10772 if ac_fn_c_try_run "$LINENO"; then :
10773 ac_cv_func_strcoll_works=yes
10775 ac_cv_func_strcoll_works=no
10777 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10778 conftest.$ac_objext conftest.beam conftest.$ac_ext
10782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
10783 $as_echo "$ac_cv_func_strcoll_works" >&6; }
10784 if test $ac_cv_func_strcoll_works = yes; then
10786 $as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
10790 for ac_func in setlocale
10792 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
10793 if test "x$ac_cv_func_setlocale" = xyes; then :
10794 cat >>confdefs.h <<_ACEOF
10795 #define HAVE_SETLOCALE 1
10803 ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
10804 if test "x$ac_cv_header_wchar_h" = xyes; then :
10806 ac_have_wchar_h=yes
10808 $as_echo "#define HAVE_WCHAR_H 1" >>confdefs.h
10815 for ac_func in mbtowc wcwidth mbrtowc mbsinit
10817 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10818 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10819 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10820 cat >>confdefs.h <<_ACEOF
10821 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10829 ac_fn_c_check_decl "$LINENO" "wcwidth" "ac_cv_have_decl_wcwidth" "$ac_includes_default"
10830 if test "x$ac_cv_have_decl_wcwidth" = xyes; then :
10836 cat >>confdefs.h <<_ACEOF
10837 #define HAVE_DECL_WCWIDTH $ac_have_decl
10840 ac_fn_c_check_type "$LINENO" "wchar_t" "ac_cv_type_wchar_t" "$ac_includes_default"
10841 if test "x$ac_cv_type_wchar_t" = xyes; then :
10848 if test x$ac_widec_funcs = xyes -a x$ac_have_wchar_h = xyes; then
10849 ac_widec_possible=yes
10851 ac_widec_possible=no
10855 abook_cv_curses=/usr
10857 # Check whether --with-curses was given.
10858 if test "${with_curses+set}" = set; then :
10859 withval=$with_curses; if test $withval != yes; then
10860 abook_cv_curses=$withval
10862 if test x$abook_cv_curses != x/usr; then
10863 LDFLAGS="-L${abook_cv_curses}/lib $LDFLAGS"
10864 CPPFLAGS="$CPPFLAGS -I${abook_cv_curses}/include"
10869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncursesw" >&5
10870 $as_echo_n "checking for initscr in -lncursesw... " >&6; }
10871 if ${ac_cv_lib_ncursesw_initscr+:} false; then :
10872 $as_echo_n "(cached) " >&6
10874 ac_check_lib_save_LIBS=$LIBS
10875 LIBS="-lncursesw $LIBS"
10876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10877 /* end confdefs.h. */
10879 /* Override any GCC internal prototype to avoid an error.
10880 Use char because int might match the return type of a GCC
10881 builtin and then its argument prototype would still apply. */
10894 if ac_fn_c_try_link "$LINENO"; then :
10895 ac_cv_lib_ncursesw_initscr=yes
10897 ac_cv_lib_ncursesw_initscr=no
10899 rm -f core conftest.err conftest.$ac_objext \
10900 conftest$ac_exeext conftest.$ac_ext
10901 LIBS=$ac_check_lib_save_LIBS
10903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncursesw_initscr" >&5
10904 $as_echo "$ac_cv_lib_ncursesw_initscr" >&6; }
10905 if test "x$ac_cv_lib_ncursesw_initscr" = xyes; then :
10906 LIBS="$LIBS -lncursesw"
10907 if test x$abook_cv_curses = x/usr -a -d /usr/include/ncursesw; then
10908 CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw"
10910 for ac_header in ncurses.h
10912 ac_fn_c_check_header_mongrel "$LINENO" "ncurses.h" "ac_cv_header_ncurses_h" "$ac_includes_default"
10913 if test "x$ac_cv_header_ncurses_h" = xyes; then :
10914 cat >>confdefs.h <<_ACEOF
10915 #define HAVE_NCURSES_H 1
10924 ac_widec_possible=no
10925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncurses" >&5
10926 $as_echo_n "checking for initscr in -lncurses... " >&6; }
10927 if ${ac_cv_lib_ncurses_initscr+:} false; then :
10928 $as_echo_n "(cached) " >&6
10930 ac_check_lib_save_LIBS=$LIBS
10931 LIBS="-lncurses $LIBS"
10932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10933 /* end confdefs.h. */
10935 /* Override any GCC internal prototype to avoid an error.
10936 Use char because int might match the return type of a GCC
10937 builtin and then its argument prototype would still apply. */
10950 if ac_fn_c_try_link "$LINENO"; then :
10951 ac_cv_lib_ncurses_initscr=yes
10953 ac_cv_lib_ncurses_initscr=no
10955 rm -f core conftest.err conftest.$ac_objext \
10956 conftest$ac_exeext conftest.$ac_ext
10957 LIBS=$ac_check_lib_save_LIBS
10959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_initscr" >&5
10960 $as_echo "$ac_cv_lib_ncurses_initscr" >&6; }
10961 if test "x$ac_cv_lib_ncurses_initscr" = xyes; then :
10962 LIBS="$LIBS -lncurses"
10963 if test x$abook_cv_curses = x/usr -a -d /usr/include/ncurses; then
10964 CPPFLAGS="$CPPFLAGS -I/usr/include/ncurses"
10966 for ac_header in ncurses.h
10968 ac_fn_c_check_header_mongrel "$LINENO" "ncurses.h" "ac_cv_header_ncurses_h" "$ac_includes_default"
10969 if test "x$ac_cv_header_ncurses_h" = xyes; then :
10970 cat >>confdefs.h <<_ACEOF
10971 #define HAVE_NCURSES_H 1
10980 ac_fn_c_check_func "$LINENO" "initscr" "ac_cv_func_initscr"
10981 if test "x$ac_cv_func_initscr" = xyes; then :
10985 case $host_os in #(vi
10987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgoto in -lmytinfo" >&5
10988 $as_echo_n "checking for tgoto in -lmytinfo... " >&6; }
10989 if ${ac_cv_lib_mytinfo_tgoto+:} false; then :
10990 $as_echo_n "(cached) " >&6
10992 ac_check_lib_save_LIBS=$LIBS
10993 LIBS="-lmytinfo $LIBS"
10994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10995 /* end confdefs.h. */
10997 /* Override any GCC internal prototype to avoid an error.
10998 Use char because int might match the return type of a GCC
10999 builtin and then its argument prototype would still apply. */
11012 if ac_fn_c_try_link "$LINENO"; then :
11013 ac_cv_lib_mytinfo_tgoto=yes
11015 ac_cv_lib_mytinfo_tgoto=no
11017 rm -f core conftest.err conftest.$ac_objext \
11018 conftest$ac_exeext conftest.$ac_ext
11019 LIBS=$ac_check_lib_save_LIBS
11021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mytinfo_tgoto" >&5
11022 $as_echo "$ac_cv_lib_mytinfo_tgoto" >&6; }
11023 if test "x$ac_cv_lib_mytinfo_tgoto" = xyes; then :
11024 LIBS="-lmytinfo $LIBS"
11029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lcur_colr" >&5
11030 $as_echo_n "checking for initscr in -lcur_colr... " >&6; }
11031 if ${ac_cv_lib_cur_colr_initscr+:} false; then :
11032 $as_echo_n "(cached) " >&6
11034 ac_check_lib_save_LIBS=$LIBS
11035 LIBS="-lcur_colr $LIBS"
11036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11037 /* end confdefs.h. */
11039 /* Override any GCC internal prototype to avoid an error.
11040 Use char because int might match the return type of a GCC
11041 builtin and then its argument prototype would still apply. */
11054 if ac_fn_c_try_link "$LINENO"; then :
11055 ac_cv_lib_cur_colr_initscr=yes
11057 ac_cv_lib_cur_colr_initscr=no
11059 rm -f core conftest.err conftest.$ac_objext \
11060 conftest$ac_exeext conftest.$ac_ext
11061 LIBS=$ac_check_lib_save_LIBS
11063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cur_colr_initscr" >&5
11064 $as_echo "$ac_cv_lib_cur_colr_initscr" >&6; }
11065 if test "x$ac_cv_lib_cur_colr_initscr" = xyes; then :
11067 LIBS="-lcur_colr $LIBS"
11068 CFLAGS="-I/usr/include/curses_colr $CFLAGS"
11069 ac_cv_func_initscr=yes
11073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lHcurses" >&5
11074 $as_echo_n "checking for initscr in -lHcurses... " >&6; }
11075 if ${ac_cv_lib_Hcurses_initscr+:} false; then :
11076 $as_echo_n "(cached) " >&6
11078 ac_check_lib_save_LIBS=$LIBS
11079 LIBS="-lHcurses $LIBS"
11080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11081 /* end confdefs.h. */
11083 /* Override any GCC internal prototype to avoid an error.
11084 Use char because int might match the return type of a GCC
11085 builtin and then its argument prototype would still apply. */
11098 if ac_fn_c_try_link "$LINENO"; then :
11099 ac_cv_lib_Hcurses_initscr=yes
11101 ac_cv_lib_Hcurses_initscr=no
11103 rm -f core conftest.err conftest.$ac_objext \
11104 conftest$ac_exeext conftest.$ac_ext
11105 LIBS=$ac_check_lib_save_LIBS
11107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Hcurses_initscr" >&5
11108 $as_echo "$ac_cv_lib_Hcurses_initscr" >&6; }
11109 if test "x$ac_cv_lib_Hcurses_initscr" = xyes; then :
11111 # HP's header uses __HP_CURSES, but user claims _HP_CURSES.
11112 LIBS="-lHcurses $LIBS"
11113 CFLAGS="-D__HP_CURSES -D_HP_CURSES $CFLAGS"
11114 ac_cv_func_initscr=yes
11121 linux*) # Suse Linux does not follow /usr/lib convention
11122 LIBS="$LIBS -L/lib"
11126 if test ".$With5lib" != ".no" ; then
11127 if test -d /usr/5lib ; then
11129 CPPFLAGS="$CPPFLAGS -I/usr/5include"
11130 LIBS="$LIBS -L/usr/5lib"
11134 if test ".$ac_cv_func_initscr" != .yes ; then
11135 cf_save_LIBS="$LIBS"
11139 # Check for library containing tgoto. Do this before curses library
11140 # because it may be needed to link the test-case for initscr.
11141 ac_fn_c_check_func "$LINENO" "tgoto" "ac_cv_func_tgoto"
11142 if test "x$ac_cv_func_tgoto" = xyes; then :
11143 cf_term_lib=predefined
11146 for cf_term_lib in termcap termlib unknown
11148 as_ac_Lib=`$as_echo "ac_cv_lib_$cf_term_lib''_tgoto" | $as_tr_sh`
11149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgoto in -l$cf_term_lib" >&5
11150 $as_echo_n "checking for tgoto in -l$cf_term_lib... " >&6; }
11151 if eval \${$as_ac_Lib+:} false; then :
11152 $as_echo_n "(cached) " >&6
11154 ac_check_lib_save_LIBS=$LIBS
11155 LIBS="-l$cf_term_lib $LIBS"
11156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11157 /* end confdefs.h. */
11159 /* Override any GCC internal prototype to avoid an error.
11160 Use char because int might match the return type of a GCC
11161 builtin and then its argument prototype would still apply. */
11174 if ac_fn_c_try_link "$LINENO"; then :
11175 eval "$as_ac_Lib=yes"
11177 eval "$as_ac_Lib=no"
11179 rm -f core conftest.err conftest.$ac_objext \
11180 conftest$ac_exeext conftest.$ac_ext
11181 LIBS=$ac_check_lib_save_LIBS
11183 eval ac_res=\$$as_ac_Lib
11184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11185 $as_echo "$ac_res" >&6; }
11186 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
11195 # Check for library containing initscr
11196 test "$cf_term_lib" != predefined && test "$cf_term_lib" != unknown && LIBS="-l$cf_term_lib $cf_save_LIBS"
11197 for cf_curs_lib in cursesX curses ncurses xcurses jcurses unknown
11199 as_ac_Lib=`$as_echo "ac_cv_lib_$cf_curs_lib''_initscr" | $as_tr_sh`
11200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -l$cf_curs_lib" >&5
11201 $as_echo_n "checking for initscr in -l$cf_curs_lib... " >&6; }
11202 if eval \${$as_ac_Lib+:} false; then :
11203 $as_echo_n "(cached) " >&6
11205 ac_check_lib_save_LIBS=$LIBS
11206 LIBS="-l$cf_curs_lib $LIBS"
11207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11208 /* end confdefs.h. */
11210 /* Override any GCC internal prototype to avoid an error.
11211 Use char because int might match the return type of a GCC
11212 builtin and then its argument prototype would still apply. */
11225 if ac_fn_c_try_link "$LINENO"; then :
11226 eval "$as_ac_Lib=yes"
11228 eval "$as_ac_Lib=no"
11230 rm -f core conftest.err conftest.$ac_objext \
11231 conftest$ac_exeext conftest.$ac_ext
11232 LIBS=$ac_check_lib_save_LIBS
11234 eval ac_res=\$$as_ac_Lib
11235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11236 $as_echo "$ac_res" >&6; }
11237 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
11242 test $cf_curs_lib = unknown && as_fn_error $? "no curses library found" "$LINENO" 5
11244 LIBS="-l$cf_curs_lib $cf_save_LIBS"
11245 if test "$cf_term_lib" = unknown ; then
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can link with $cf_curs_lib library" >&5
11247 $as_echo_n "checking if we can link with $cf_curs_lib library... " >&6; }
11248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11249 /* end confdefs.h. */
11250 #include <${cf_cv_ncurses_header-curses.h}>
11259 if ac_fn_c_try_link "$LINENO"; then :
11264 rm -f core conftest.err conftest.$ac_objext \
11265 conftest$ac_exeext conftest.$ac_ext
11266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_result" >&5
11267 $as_echo "$cf_result" >&6; }
11268 test $cf_result = no && as_fn_error $? "Cannot link curses library" "$LINENO" 5
11269 elif test "$cf_term_lib" != predefined ; then
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need both $cf_curs_lib and $cf_term_lib libraries" >&5
11271 $as_echo_n "checking if we need both $cf_curs_lib and $cf_term_lib libraries... " >&6; }
11272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11273 /* end confdefs.h. */
11274 #include <${cf_cv_ncurses_header-curses.h}>
11278 initscr(); tgoto((char *)0, 0, 0);
11283 if ac_fn_c_try_link "$LINENO"; then :
11287 LIBS="-l$cf_curs_lib -l$cf_term_lib $cf_save_LIBS"
11288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11289 /* end confdefs.h. */
11290 #include <${cf_cv_ncurses_header-curses.h}>
11299 if ac_fn_c_try_link "$LINENO"; then :
11304 rm -f core conftest.err conftest.$ac_objext \
11305 conftest$ac_exeext conftest.$ac_ext
11308 rm -f core conftest.err conftest.$ac_objext \
11309 conftest$ac_exeext conftest.$ac_ext
11310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_result" >&5
11311 $as_echo "$cf_result" >&6; }
11326 abook_cv_readline=/usr
11328 # Check whether --with-readline was given.
11329 if test "${with_readline+set}" = set; then :
11330 withval=$with_readline; if test $withval != yes; then
11331 abook_cv_readline=$withval
11333 if test x$abook_cv_readline != x/usr; then
11334 LDFLAGS="-L${abook_cv_readline}/lib $LDFLAGS"
11335 CPPFLAGS="$CPPFLAGS -I${abook_cv_readline}/include"
11341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
11342 $as_echo_n "checking for a readline compatible library... " >&6; }
11343 if ${ac_cv_lib_readline+:} false; then :
11344 $as_echo_n "(cached) " >&6
11348 for readline_lib in readline edit editline; do
11349 for termcap_lib in "" termcap curses ncurses; do
11350 if test -z "$termcap_lib"; then
11351 TRY_LIB="-l$readline_lib"
11353 TRY_LIB="-l$readline_lib -l$termcap_lib"
11355 LIBS="$ORIG_LIBS $TRY_LIB"
11356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11357 /* end confdefs.h. */
11359 /* Override any GCC internal prototype to avoid an error.
11360 Use char because int might match the return type of a GCC
11361 builtin and then its argument prototype would still apply. */
11369 return readline ();
11374 if ac_fn_c_try_link "$LINENO"; then :
11375 ac_cv_lib_readline="$TRY_LIB"
11377 rm -f core conftest.err conftest.$ac_objext \
11378 conftest$ac_exeext conftest.$ac_ext
11379 if test -n "$ac_cv_lib_readline"; then
11383 if test -n "$ac_cv_lib_readline"; then
11387 if test -z "$ac_cv_lib_readline"; then
11388 ac_cv_lib_readline="no"
11393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline" >&5
11394 $as_echo "$ac_cv_lib_readline" >&6; }
11396 if test "$ac_cv_lib_readline" != "no"; then
11397 LIBS="$LIBS $ac_cv_lib_readline"
11399 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
11401 for ac_header in readline.h readline/readline.h
11403 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11404 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11405 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11406 cat >>confdefs.h <<_ACEOF
11407 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
11415 $as_echo_n "checking whether readline supports history... " >&6; }
11416 if ${ac_cv_lib_readline_history+:} false; then :
11417 $as_echo_n "(cached) " >&6
11420 ac_cv_lib_readline_history="no"
11421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11422 /* end confdefs.h. */
11424 /* Override any GCC internal prototype to avoid an error.
11425 Use char because int might match the return type of a GCC
11426 builtin and then its argument prototype would still apply. */
11430 char add_history ();
11434 return add_history ();
11439 if ac_fn_c_try_link "$LINENO"; then :
11440 ac_cv_lib_readline_history="yes"
11442 rm -f core conftest.err conftest.$ac_objext \
11443 conftest$ac_exeext conftest.$ac_ext
11446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_history" >&5
11447 $as_echo "$ac_cv_lib_readline_history" >&6; }
11448 if test "$ac_cv_lib_readline_history" = "yes"; then
11450 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
11452 for ac_header in history.h readline/history.h
11454 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11455 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11456 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11457 cat >>confdefs.h <<_ACEOF
11458 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11470 if test x$ac_cv_lib_readline = xno -o x$ac_cv_lib_readline_history = xno; then
11471 as_fn_error $? "*** readline library not found or it doesn't support history ***" "$LINENO" 5
11475 if test x$ac_widec_possible = xyes; then
11477 $as_echo "#define HANDLE_MULTIBYTE 1" >>confdefs.h
11481 for ac_func in resizeterm
11483 ac_fn_c_check_func "$LINENO" "resizeterm" "ac_cv_func_resizeterm"
11484 if test "x$ac_cv_func_resizeterm" = xyes; then :
11485 cat >>confdefs.h <<_ACEOF
11486 #define HAVE_RESIZETERM 1
11493 for ac_func in snprintf vsnprintf
11495 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11496 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11497 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11498 cat >>confdefs.h <<_ACEOF
11499 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11506 for ac_func in strcasestr
11508 ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
11509 if test "x$ac_cv_func_strcasestr" = xyes; then :
11510 cat >>confdefs.h <<_ACEOF
11511 #define HAVE_STRCASESTR 1
11513 $as_echo "#define HAVE_STRCASESTR 1" >>confdefs.h
11519 # Check whether --enable-debug was given.
11520 if test "${enable_debug+set}" = set; then :
11521 enableval=$enable_debug; case "${enableval}" in
11524 *) as_fn_error $? "bad value ${enableval} for --enable-debug" "$LINENO" 5 ;;
11531 if test x$debug = xtrue; then
11532 CPPFLAGS="-DDEBUG=1 $CPPFLAGS"
11533 CFLAGS="-g $CFLAGS"
11536 if test x$GCC = xyes; then
11537 CFLAGS="-Wall $CFLAGS"
11540 ac_config_files="$ac_config_files Makefile abook.spec intl/Makefile po/Makefile.in"
11542 cat >confcache <<\_ACEOF
11543 # This file is a shell script that caches the results of configure
11544 # tests run on this system so they can be shared between configure
11545 # scripts and configure runs, see configure's option --config-cache.
11546 # It is not useful on other systems. If it contains results you don't
11547 # want to keep, you may remove or edit it.
11549 # config.status only pays attention to the cache file if you give it
11550 # the --recheck option to rerun configure.
11552 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11553 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11554 # following values.
11558 # The following way of writing the cache mishandles newlines in values,
11559 # but we know of no workaround that is simple, portable, and efficient.
11560 # So, we kill variables containing newlines.
11561 # Ultrix sh set writes to stderr and can't be redirected directly,
11562 # and sets the high bit in the cache file unless we assign to the vars.
11564 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11565 eval ac_val=\$$ac_var
11569 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11570 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11573 _ | IFS | as_nl) ;; #(
11574 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11575 *) { eval $ac_var=; unset $ac_var;} ;;
11581 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11582 *${as_nl}ac_space=\ *)
11583 # `set' does not quote correctly, so add quotes: double-quote
11584 # substitution turns \\\\ into \\, and sed turns \\ into \.
11587 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11590 # `set' quotes correctly as required by POSIX, so do not add quotes.
11591 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11600 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11602 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11604 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11605 if test -w "$cache_file"; then
11606 if test "x$cache_file" != "x/dev/null"; then
11607 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11608 $as_echo "$as_me: updating cache $cache_file" >&6;}
11609 if test ! -f "$cache_file" || test -h "$cache_file"; then
11610 cat confcache >"$cache_file"
11612 case $cache_file in #(
11614 mv -f confcache "$cache_file"$$ &&
11615 mv -f "$cache_file"$$ "$cache_file" ;; #(
11617 mv -f confcache "$cache_file" ;;
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11623 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11628 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11629 # Let make expand exec_prefix.
11630 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11632 DEFS=-DHAVE_CONFIG_H
11636 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11637 # 1. Remove the extension, and $U if already installed.
11638 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11639 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11640 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11641 # will be set to the directory where LIBOBJS objects are built.
11642 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11643 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11645 LIBOBJS=$ac_libobjs
11647 LTLIBOBJS=$ac_ltlibobjs
11650 if test -n "$EXEEXT"; then
11652 am__EXEEXT_FALSE='#'
11654 am__EXEEXT_TRUE='#'
11658 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11659 as_fn_error $? "conditional \"AMDEP\" was never defined.
11660 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11662 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11663 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11664 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11666 if test -z "${USE_INCLUDED_INTL_H_TRUE}" && test -z "${USE_INCLUDED_INTL_H_FALSE}"; then
11667 as_fn_error $? "conditional \"USE_INCLUDED_INTL_H\" was never defined.
11668 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11670 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11671 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11672 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11675 : "${CONFIG_STATUS=./config.status}"
11677 ac_clean_files_save=$ac_clean_files
11678 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11679 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11680 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11682 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11684 # Generated by $as_me.
11685 # Run this file to recreate the current configuration.
11686 # Compiler output produced by configure, useful for debugging
11687 # configure, is in config.log if it exists.
11690 ac_cs_recheck=false
11693 SHELL=\${CONFIG_SHELL-$SHELL}
11696 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11697 ## -------------------- ##
11698 ## M4sh Initialization. ##
11699 ## -------------------- ##
11701 # Be more Bourne compatible
11702 DUALCASE=1; export DUALCASE # for MKS sh
11703 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11706 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11707 # is contrary to our usage. Disable this feature.
11708 alias -g '${1+"$@"}'='"$@"'
11709 setopt NO_GLOB_SUBST
11711 case `(set -o) 2>/dev/null` in #(
11723 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11724 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11725 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11726 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11727 # Prefer a ksh shell builtin over an external printf program on Solaris,
11728 # but without wasting forks for bash or zsh.
11729 if test -z "$BASH_VERSION$ZSH_VERSION" \
11730 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11731 as_echo='print -r --'
11732 as_echo_n='print -rn --'
11733 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11734 as_echo='printf %s\n'
11735 as_echo_n='printf %s'
11737 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11738 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11739 as_echo_n='/usr/ucb/echo -n'
11741 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11742 as_echo_n_body='eval
11746 expr "X$arg" : "X\\(.*\\)$as_nl";
11747 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11749 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11751 export as_echo_n_body
11752 as_echo_n='sh -c $as_echo_n_body as_echo'
11754 export as_echo_body
11755 as_echo='sh -c $as_echo_body as_echo'
11758 # The user is always right.
11759 if test "${PATH_SEPARATOR+set}" != set; then
11761 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11762 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11769 # We need space, tab and new line, in precisely that order. Quoting is
11770 # there to prevent editors from complaining about space-tab.
11771 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11772 # splitting by setting IFS to empty value.)
11775 # Find who we are. Look in the path if we contain no directory separator.
11778 *[\\/]* ) as_myself=$0 ;;
11779 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11780 for as_dir in $PATH
11783 test -z "$as_dir" && as_dir=.
11784 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11790 # We did not find ourselves, most probably we were run as `sh COMMAND'
11791 # in which case we are not to be found in the path.
11792 if test "x$as_myself" = x; then
11795 if test ! -f "$as_myself"; then
11796 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11800 # Unset variables that we do not need and which cause bugs (e.g. in
11801 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11802 # suppresses any "Segmentation fault" message there. '((' could
11803 # trigger a bug in pdksh 5.2.14.
11804 for as_var in BASH_ENV ENV MAIL MAILPATH
11805 do eval test x\${$as_var+set} = xset \
11806 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11819 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11822 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11823 # ----------------------------------------
11824 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11825 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11826 # script with STATUS, using 1 if that was 0.
11829 as_status=$1; test $as_status -eq 0 && as_status=1
11831 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11832 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11834 $as_echo "$as_me: error: $2" >&2
11835 as_fn_exit $as_status
11839 # as_fn_set_status STATUS
11840 # -----------------------
11841 # Set $? to STATUS, without forking.
11842 as_fn_set_status ()
11845 } # as_fn_set_status
11847 # as_fn_exit STATUS
11848 # -----------------
11849 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11853 as_fn_set_status $1
11859 # Portably unset VAR.
11862 { eval $1=; unset $1;}
11864 as_unset=as_fn_unset
11865 # as_fn_append VAR VALUE
11866 # ----------------------
11867 # Append the text in VALUE to the end of the definition contained in VAR. Take
11868 # advantage of any shell optimizations that allow amortized linear growth over
11869 # repeated appends, instead of the typical quadratic growth present in naive
11871 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11872 eval 'as_fn_append ()
11883 # as_fn_arith ARG...
11884 # ------------------
11885 # Perform arithmetic evaluation on the ARGs, and store the result in the
11886 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11887 # must be portable across $(()) and expr.
11888 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11889 eval 'as_fn_arith ()
11896 as_val=`expr "$@" || test $? -eq 1`
11901 if expr a : '\(a\)' >/dev/null 2>&1 &&
11902 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11908 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11909 as_basename=basename
11914 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11920 as_me=`$as_basename -- "$0" ||
11921 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11922 X"$0" : 'X\(//\)$' \| \
11923 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11925 sed '/^.*\/\([^/][^/]*\)\/*$/{
11939 # Avoid depending upon Character Ranges.
11940 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11941 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11942 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11943 as_cr_digits='0123456789'
11944 as_cr_alnum=$as_cr_Letters$as_cr_digits
11946 ECHO_C= ECHO_N= ECHO_T=
11947 case `echo -n x` in #(((((
11949 case `echo 'xy\c'` in
11950 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11952 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11959 rm -f conf$$ conf$$.exe conf$$.file
11960 if test -d conf$$.dir; then
11961 rm -f conf$$.dir/conf$$.file
11964 mkdir conf$$.dir 2>/dev/null
11966 if (echo >conf$$.file) 2>/dev/null; then
11967 if ln -s conf$$.file conf$$ 2>/dev/null; then
11969 # ... but there are two gotchas:
11970 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11971 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11972 # In both cases, we have to default to `cp -p'.
11973 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11975 elif ln conf$$.file conf$$ 2>/dev/null; then
11983 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11984 rmdir conf$$.dir 2>/dev/null
11989 # Create "$as_dir" as a directory, including parents if necessary.
11994 -*) as_dir=./$as_dir;;
11996 test -d "$as_dir" || eval $as_mkdir_p || {
12000 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12001 *) as_qdir=$as_dir;;
12003 as_dirs="'$as_qdir' $as_dirs"
12004 as_dir=`$as_dirname -- "$as_dir" ||
12005 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12006 X"$as_dir" : 'X\(//\)[^/]' \| \
12007 X"$as_dir" : 'X\(//\)$' \| \
12008 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12009 $as_echo X"$as_dir" |
12010 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12014 /^X\(\/\/\)[^/].*/{
12027 test -d "$as_dir" && break
12029 test -z "$as_dirs" || eval "mkdir $as_dirs"
12030 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12034 if mkdir -p . 2>/dev/null; then
12035 as_mkdir_p='mkdir -p "$as_dir"'
12037 test -d ./-p && rmdir ./-p
12041 if test -x / >/dev/null 2>&1; then
12042 as_test_x='test -x'
12044 if ls -dL / >/dev/null 2>&1; then
12051 if test -d "$1"; then
12057 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12058 ???[sx]*):;;*)false;;esac;fi
12062 as_executable_p=$as_test_x
12064 # Sed expression to map a string onto a valid CPP name.
12065 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12067 # Sed expression to map a string onto a valid variable name.
12068 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12072 ## ----------------------------------- ##
12073 ## Main body of $CONFIG_STATUS script. ##
12074 ## ----------------------------------- ##
12076 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12078 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12079 # Save the log message, to keep $0 and so on meaningful, and to
12080 # report actual input values of CONFIG_FILES etc. instead of their
12081 # values after options handling.
12083 This file was extended by $as_me, which was
12084 generated by GNU Autoconf 2.68. Invocation command line was
12086 CONFIG_FILES = $CONFIG_FILES
12087 CONFIG_HEADERS = $CONFIG_HEADERS
12088 CONFIG_LINKS = $CONFIG_LINKS
12089 CONFIG_COMMANDS = $CONFIG_COMMANDS
12092 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12097 case $ac_config_files in *"
12098 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12101 case $ac_config_headers in *"
12102 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12106 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12107 # Files that config.status was made for.
12108 config_files="$ac_config_files"
12109 config_headers="$ac_config_headers"
12110 config_commands="$ac_config_commands"
12114 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12116 \`$as_me' instantiates files and other configuration actions
12117 from templates according to the current configuration. Unless the files
12118 and actions are specified as TAGs, all are instantiated by default.
12120 Usage: $0 [OPTION]... [TAG]...
12122 -h, --help print this help, then exit
12123 -V, --version print version number and configuration settings, then exit
12124 --config print configuration, then exit
12125 -q, --quiet, --silent
12126 do not print progress messages
12127 -d, --debug don't remove temporary files
12128 --recheck update $as_me by reconfiguring in the same conditions
12129 --file=FILE[:TEMPLATE]
12130 instantiate the configuration file FILE
12131 --header=FILE[:TEMPLATE]
12132 instantiate the configuration header FILE
12134 Configuration files:
12137 Configuration headers:
12140 Configuration commands:
12143 Report bugs to the package provider."
12146 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12147 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12150 configured by $0, generated by GNU Autoconf 2.68,
12151 with options \\"\$ac_cs_config\\"
12153 Copyright (C) 2010 Free Software Foundation, Inc.
12154 This config.status script is free software; the Free Software Foundation
12155 gives unlimited permission to copy, distribute and modify it."
12162 test -n "\$AWK" || AWK=awk
12165 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12166 # The default lists apply if the user does not specify any file.
12172 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12173 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12177 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12189 # Handling of the options.
12190 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12192 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12193 $as_echo "$ac_cs_version"; exit ;;
12194 --config | --confi | --conf | --con | --co | --c )
12195 $as_echo "$ac_cs_config"; exit ;;
12196 --debug | --debu | --deb | --de | --d | -d )
12198 --file | --fil | --fi | --f )
12201 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12202 '') as_fn_error $? "missing file argument" ;;
12204 as_fn_append CONFIG_FILES " '$ac_optarg'"
12205 ac_need_defaults=false;;
12206 --header | --heade | --head | --hea )
12209 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12211 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12212 ac_need_defaults=false;;
12214 # Conflict between --help and --header
12215 as_fn_error $? "ambiguous option: \`$1'
12216 Try \`$0 --help' for more information.";;
12217 --help | --hel | -h )
12218 $as_echo "$ac_cs_usage"; exit ;;
12219 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12220 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12223 # This is an error.
12224 -*) as_fn_error $? "unrecognized option: \`$1'
12225 Try \`$0 --help' for more information." ;;
12227 *) as_fn_append ac_config_targets " $1"
12228 ac_need_defaults=false ;;
12234 ac_configure_extra_args=
12236 if $ac_cs_silent; then
12238 ac_configure_extra_args="$ac_configure_extra_args --silent"
12242 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12243 if \$ac_cs_recheck; then
12244 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12246 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12247 CONFIG_SHELL='$SHELL'
12248 export CONFIG_SHELL
12253 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12257 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12258 ## Running $as_me. ##
12264 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12268 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12269 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
12270 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
12271 # from automake < 1.5.
12272 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
12273 # Capture the value of LINGUAS because we need it to compute CATALOGS.
12274 LINGUAS="${LINGUAS-%UNSET%}"
12279 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12281 # Handling of arguments.
12282 for ac_config_target in $ac_config_targets
12284 case $ac_config_target in
12285 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12286 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12287 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
12288 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12289 "abook.spec") CONFIG_FILES="$CONFIG_FILES abook.spec" ;;
12290 "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
12291 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
12293 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12298 # If the user did not use the arguments to specify the items to instantiate,
12299 # then the envvar interface is used. Set only those that are not.
12300 # We use the long form for the default assignment because of an extremely
12301 # bizarre bug on SunOS 4.1.3.
12302 if $ac_need_defaults; then
12303 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12304 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12305 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12308 # Have a temporary directory for convenience. Make it in the build tree
12309 # simply because there is no reason against having it here, and in addition,
12310 # creating and moving files from /tmp can sometimes cause problems.
12311 # Hook for its removal unless debugging.
12312 # Note that there is a small window in which the directory will not be cleaned:
12313 # after its creation but before its name has been assigned to `$tmp'.
12317 trap 'exit_status=$?
12318 : "${ac_tmp:=$tmp}"
12319 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12321 trap 'as_fn_exit 1' 1 2 13 15
12323 # Create a (secure) tmp directory for tmp files.
12326 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12330 tmp=./conf$$-$RANDOM
12331 (umask 077 && mkdir "$tmp")
12332 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12335 # Set up the scripts for CONFIG_FILES section.
12336 # No need to generate them if there are no CONFIG_FILES.
12337 # This happens for instance with `./config.status config.h'.
12338 if test -n "$CONFIG_FILES"; then
12341 ac_cr=`echo X | tr X '\015'`
12342 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12343 # But we know of no other shell where ac_cr would be empty at this
12344 # point, so we can use a bashism as a fallback.
12345 if test "x$ac_cr" = x; then
12346 eval ac_cr=\$\'\\r\'
12348 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12349 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12352 ac_cs_awk_cr=$ac_cr
12355 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12360 echo "cat >conf$$subs.awk <<_ACEOF" &&
12361 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12363 } >conf$$subs.sh ||
12364 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12365 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12367 for ac_last_try in false false false false false :; do
12368 . ./conf$$subs.sh ||
12369 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12371 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12372 if test $ac_delim_n = $ac_delim_num; then
12374 elif $ac_last_try; then
12375 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12377 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12380 rm -f conf$$subs.sh
12382 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12383 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12387 s/^/S["/; s/!.*/"]=/
12397 s/\(.\{148\}\)..*/\1/
12399 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12404 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12411 s/\(.\{148\}\)..*/\1/
12413 s/["\\]/\\&/g; s/^/"/; s/$/"/
12417 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12422 ' <conf$$subs.awk | sed '
12427 ' >>$CONFIG_STATUS || ac_write_fail=1
12428 rm -f conf$$subs.awk
12429 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12431 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12432 for (key in S) S_is_set[key] = 1
12438 nfields = split(line, field, "@")
12440 len = length(field[1])
12441 for (i = 2; i < nfields; i++) {
12443 keylen = length(key)
12444 if (S_is_set[key]) {
12446 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12447 len += length(value) + length(field[++i])
12458 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12459 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12460 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12463 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12464 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12467 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12468 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12469 # trailing colons and then remove the whole line if VPATH becomes empty
12470 # (actually we leave an empty line to preserve line numbers).
12471 if test "x$srcdir" = x.; then
12472 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12490 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12491 fi # test -n "$CONFIG_FILES"
12493 # Set up the scripts for CONFIG_HEADERS section.
12494 # No need to generate them if there are no CONFIG_HEADERS.
12495 # This happens for instance with `./config.status Makefile'.
12496 if test -n "$CONFIG_HEADERS"; then
12497 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12501 # Transform confdefs.h into an awk script `defines.awk', embedded as
12502 # here-document in config.status, that substitutes the proper values into
12503 # config.h.in to produce config.h.
12505 # Create a delimiter string that does not exist in confdefs.h, to ease
12506 # handling of long lines.
12508 for ac_last_try in false false :; do
12509 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12510 if test -z "$ac_tt"; then
12512 elif $ac_last_try; then
12513 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12515 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12519 # For the awk script, D is an array of macro values keyed by name,
12520 # likewise P contains macro parameters if any. Preserve backslash
12521 # newline sequences.
12523 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12525 s/.\{148\}/&'"$ac_delim"'/g
12528 s/^[ ]*#[ ]*define[ ][ ]*/ /
12535 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12537 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12541 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12542 D["\1"]=" \3\\\\\\n"\\/p
12544 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12549 s/.\{148\}/&'"$ac_delim"'/g
12554 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12557 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12559 ' <confdefs.h | sed '
12560 s/'"$ac_delim"'/"\\\
12561 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12563 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12564 for (key in D) D_is_set[key] = 1
12567 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12569 split(line, arg, " ")
12570 if (arg[1] == "#") {
12574 defundef = substr(arg[1], 2)
12577 split(mac1, mac2, "(") #)
12579 prefix = substr(line, 1, index(line, defundef) - 1)
12580 if (D_is_set[macro]) {
12581 # Preserve the white space surrounding the "#".
12582 print prefix "define", macro P[macro] D[macro]
12585 # Replace #undef with comments. This is necessary, for example,
12586 # in the case of _POSIX_SOURCE, which is predefined and required
12587 # on some systems where configure will not decide to define it.
12588 if (defundef == "undef") {
12589 print "/*", prefix defundef, macro, "*/"
12597 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12598 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12599 fi # test -n "$CONFIG_HEADERS"
12602 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12607 :[FHLC]) ac_mode=$ac_tag; continue;;
12609 case $ac_mode$ac_tag in
12611 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12612 :[FH]-) ac_tag=-:-;;
12613 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12630 -) ac_f="$ac_tmp/stdin";;
12631 *) # Look for the file first in the build tree, then in the source tree
12632 # (if the path is not absolute). The absolute path cannot be DOS-style,
12633 # because $ac_f cannot contain `:'.
12637 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12639 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12641 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12642 as_fn_append ac_file_inputs " '$ac_f'"
12645 # Let's still pretend it is `configure' which instantiates (i.e., don't
12646 # use $as_me), people would be surprised to read:
12647 # /* config.h. Generated by config.status. */
12648 configure_input='Generated from '`
12649 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12651 if test x"$ac_file" != x-; then
12652 configure_input="$ac_file. $configure_input"
12653 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12654 $as_echo "$as_me: creating $ac_file" >&6;}
12656 # Neutralize special characters interpreted by sed in replacement strings.
12657 case $configure_input in #(
12658 *\&* | *\|* | *\\* )
12659 ac_sed_conf_input=`$as_echo "$configure_input" |
12660 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12661 *) ac_sed_conf_input=$configure_input;;
12665 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12666 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12671 ac_dir=`$as_dirname -- "$ac_file" ||
12672 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12673 X"$ac_file" : 'X\(//\)[^/]' \| \
12674 X"$ac_file" : 'X\(//\)$' \| \
12675 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12676 $as_echo X"$ac_file" |
12677 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12681 /^X\(\/\/\)[^/].*/{
12694 as_dir="$ac_dir"; as_fn_mkdir_p
12698 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12700 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12701 # A ".." for each directory in $ac_dir_suffix.
12702 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12703 case $ac_top_builddir_sub in
12704 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12705 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12708 ac_abs_top_builddir=$ac_pwd
12709 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12710 # for backward compatibility:
12711 ac_top_builddir=$ac_top_build_prefix
12714 .) # We are building in place.
12716 ac_top_srcdir=$ac_top_builddir_sub
12717 ac_abs_top_srcdir=$ac_pwd ;;
12718 [\\/]* | ?:[\\/]* ) # Absolute name.
12719 ac_srcdir=$srcdir$ac_dir_suffix;
12720 ac_top_srcdir=$srcdir
12721 ac_abs_top_srcdir=$srcdir ;;
12722 *) # Relative name.
12723 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12724 ac_top_srcdir=$ac_top_build_prefix$srcdir
12725 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12727 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12737 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12738 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12740 ac_MKDIR_P=$MKDIR_P
12742 [\\/$]* | ?:[\\/]* ) ;;
12743 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12747 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12748 # If the template does not know about datarootdir, expand it.
12749 # FIXME: This hack should be removed a few years after 2.60.
12750 ac_datarootdir_hack=; ac_datarootdir_seen=
12761 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12762 *datarootdir*) ac_datarootdir_seen=yes;;
12763 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12765 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12767 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12768 ac_datarootdir_hack='
12769 s&@datadir@&$datadir&g
12770 s&@docdir@&$docdir&g
12771 s&@infodir@&$infodir&g
12772 s&@localedir@&$localedir&g
12773 s&@mandir@&$mandir&g
12774 s&\\\${datarootdir}&$datarootdir&g' ;;
12778 # Neutralize VPATH when `$srcdir' = `.'.
12779 # Shell code in configure.ac might set extrasub.
12780 # FIXME: do we really want to maintain this feature?
12781 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12782 ac_sed_extra="$ac_vpsub
12785 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12787 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12788 s|@configure_input@|$ac_sed_conf_input|;t t
12789 s&@top_builddir@&$ac_top_builddir_sub&;t t
12790 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12791 s&@srcdir@&$ac_srcdir&;t t
12792 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12793 s&@top_srcdir@&$ac_top_srcdir&;t t
12794 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12795 s&@builddir@&$ac_builddir&;t t
12796 s&@abs_builddir@&$ac_abs_builddir&;t t
12797 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12798 s&@INSTALL@&$ac_INSTALL&;t t
12799 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12800 $ac_datarootdir_hack
12802 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12803 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12805 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12806 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12807 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12808 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12810 which seems to be undefined. Please make sure it is defined" >&5
12811 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12812 which seems to be undefined. Please make sure it is defined" >&2;}
12814 rm -f "$ac_tmp/stdin"
12816 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12817 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12819 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12825 if test x"$ac_file" != x-; then
12827 $as_echo "/* $configure_input */" \
12828 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12829 } >"$ac_tmp/config.h" \
12830 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12831 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12832 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12833 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12836 mv "$ac_tmp/config.h" "$ac_file" \
12837 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12840 $as_echo "/* $configure_input */" \
12841 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12842 || as_fn_error $? "could not create -" "$LINENO" 5
12844 # Compute "$ac_file"'s index in $config_headers.
12847 for _am_header in $config_headers :; do
12848 case $_am_header in
12849 $_am_arg | $_am_arg:* )
12852 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12855 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12856 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12857 X"$_am_arg" : 'X\(//\)[^/]' \| \
12858 X"$_am_arg" : 'X\(//\)$' \| \
12859 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12860 $as_echo X"$_am_arg" |
12861 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12865 /^X\(\/\/\)[^/].*/{
12877 s/.*/./; q'`/stamp-h$_am_stamp_count
12880 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12881 $as_echo "$as_me: executing $ac_file commands" >&6;}
12886 case $ac_file$ac_mode in
12887 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12888 # Autoconf 2.62 quotes --file arguments for eval, but not when files
12889 # are listed without --file. Let's play safe and only enable the eval
12890 # if we detect the quoting.
12891 case $CONFIG_FILES in
12892 *\'*) eval set x "$CONFIG_FILES" ;;
12893 *) set x $CONFIG_FILES ;;
12898 # Strip MF so we end up with the name of the file.
12899 mf=`echo "$mf" | sed -e 's/:.*$//'`
12900 # Check whether this is an Automake generated Makefile or not.
12901 # We used to match only the files named `Makefile.in', but
12902 # some people rename them; so instead we look at the file content.
12903 # Grep'ing the first line is not enough: some people post-process
12904 # each Makefile.in and add a new line on top of each file to say so.
12905 # Grep'ing the whole file is not good either: AIX grep has a line
12906 # limit of 2048, but all sed's we know have understand at least 4000.
12907 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12908 dirpart=`$as_dirname -- "$mf" ||
12909 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12910 X"$mf" : 'X\(//\)[^/]' \| \
12911 X"$mf" : 'X\(//\)$' \| \
12912 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12914 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12918 /^X\(\/\/\)[^/].*/{
12934 # Extract the definition of DEPDIR, am__include, and am__quote
12935 # from the Makefile without running `make'.
12936 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12937 test -z "$DEPDIR" && continue
12938 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12939 test -z "am__include" && continue
12940 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12941 # When using ansi2knr, U may be empty or an underscore; expand it
12942 U=`sed -n 's/^U = //p' < "$mf"`
12943 # Find all dependency output files, they are included files with
12944 # $(DEPDIR) in their names. We invoke sed twice because it is the
12945 # simplest approach to changing $(DEPDIR) to its actual value in the
12947 for file in `sed -n "
12948 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12949 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12950 # Make sure the directory exists.
12951 test -f "$dirpart/$file" && continue
12952 fdir=`$as_dirname -- "$file" ||
12953 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12954 X"$file" : 'X\(//\)[^/]' \| \
12955 X"$file" : 'X\(//\)$' \| \
12956 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12957 $as_echo X"$file" |
12958 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12962 /^X\(\/\/\)[^/].*/{
12975 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12976 # echo "creating $dirpart/$file"
12977 echo '# dummy' > "$dirpart/$file"
12982 "po-directories":C)
12983 for ac_file in $CONFIG_FILES; do
12984 # Support "outfile[:infile[:infile...]]"
12986 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12988 # PO directories have a Makefile.in generated from Makefile.in.in.
12989 case "$ac_file" in */Makefile.in)
12990 # Adjust a relative srcdir.
12991 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
12992 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
12993 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
12994 # In autoconf-2.13 it is called $ac_given_srcdir.
12995 # In autoconf-2.50 it is called $srcdir.
12996 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
12997 case "$ac_given_srcdir" in
12998 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
12999 /*) top_srcdir="$ac_given_srcdir" ;;
13000 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
13002 # Treat a directory as a PO directory if and only if it has a
13003 # POTFILES.in file. This allows packages to have multiple PO
13004 # directories under different names or in different locations.
13005 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
13006 rm -f "$ac_dir/POTFILES"
13007 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
13008 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
13009 POMAKEFILEDEPS="POTFILES.in"
13010 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
13011 # on $ac_dir but don't depend on user-specified configuration
13013 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
13014 # The LINGUAS file contains the set of available languages.
13015 if test -n "$OBSOLETE_ALL_LINGUAS"; then
13016 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
13018 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
13019 # Hide the ALL_LINGUAS assigment from automake < 1.5.
13020 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
13021 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
13023 # The set of available languages was given in configure.in.
13024 # Hide the ALL_LINGUAS assigment from automake < 1.5.
13025 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
13028 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
13029 # Compute UPDATEPOFILES
13030 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
13031 # Compute DUMMYPOFILES
13032 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
13034 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
13035 case "$ac_given_srcdir" in
13037 *) srcdirpre='$(srcdir)/' ;;
13043 for lang in $ALL_LINGUAS; do
13044 POFILES="$POFILES $srcdirpre$lang.po"
13045 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
13046 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
13047 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
13049 # CATALOGS depends on both $ac_dir and the user's LINGUAS
13050 # environment variable.
13052 if test -n "$ALL_LINGUAS"; then
13053 for presentlang in $ALL_LINGUAS; do
13055 if test "%UNSET%" != "$LINGUAS"; then
13056 desiredlanguages="$LINGUAS"
13058 desiredlanguages="$ALL_LINGUAS"
13060 for desiredlang in $desiredlanguages; do
13061 # Use the presentlang catalog if desiredlang is
13062 # a. equal to presentlang, or
13063 # b. a variant of presentlang (because in this case,
13064 # presentlang can be used as a fallback for messages
13065 # which are not translated in the desiredlang catalog).
13066 case "$desiredlang" in
13067 "$presentlang"*) useit=yes;;
13070 if test $useit = yes; then
13071 INST_LINGUAS="$INST_LINGUAS $presentlang"
13076 if test -n "$INST_LINGUAS"; then
13077 for lang in $INST_LINGUAS; do
13078 CATALOGS="$CATALOGS $lang.gmo"
13081 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
13082 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"
13083 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
13084 if test -f "$f"; then
13086 *.orig | *.bak | *~) ;;
13087 *) cat "$f" >> "$ac_dir/Makefile" ;;
13102 ac_clean_files=$ac_clean_files_save
13104 test $ac_write_fail = 0 ||
13105 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13108 # configure is writing to config.log, and then calls config.status.
13109 # config.status does its own redirection, appending to config.log.
13110 # Unfortunately, on DOS this fails, as config.log is still kept open
13111 # by configure, so config.status won't be able to write to it; its
13112 # output is simply discarded. So we exec the FD to /dev/null,
13113 # effectively closing config.log, so it can be properly (re)opened and
13114 # appended to by config.status. When coming back to configure, we
13115 # need to make the FD available again.
13116 if test "$no_create" != yes; then
13118 ac_config_status_args=
13119 test "$silent" = yes &&
13120 ac_config_status_args="$ac_config_status_args --quiet"
13122 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13124 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13125 # would make configure fail if this is the last instruction.
13126 $ac_cs_success || as_fn_exit 1
13128 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13130 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}