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
612 USE_INCLUDED_INTL_H_FALSE
613 USE_INCLUDED_INTL_H_TRUE
618 INTL_LIBTOOL_SUFFIX_PREFIX
625 BUILD_INCLUDED_LIBINTL
635 INTL_DEFAULT_VERBOSITY
662 XGETTEXT_EXTRA_OPTIONS
670 GETTEXT_MACRO_VERSION
700 INSTALL_STRIP_PROGRAM
742 program_transform_name
755 enable_option_checking
756 enable_dependency_tracking
763 with_included_gettext
771 ac_precious_vars='build_alias
782 # Initialize some variables set by options.
784 ac_init_version=false
785 ac_unrecognized_opts=
787 # The variables have the same names as the options, with
788 # dashes changed to underlines.
796 program_transform_name=s,x,x,
804 # Installation directory options.
805 # These are left unexpanded so users can "make install exec_prefix=/foo"
806 # and all the variables that are supposed to be based on exec_prefix
807 # by default will actually change.
808 # Use braces instead of parens because sh, perl, etc. also accept them.
809 # (The list follows the same order as the GNU Coding Standards.)
810 bindir='${exec_prefix}/bin'
811 sbindir='${exec_prefix}/sbin'
812 libexecdir='${exec_prefix}/libexec'
813 datarootdir='${prefix}/share'
814 datadir='${datarootdir}'
815 sysconfdir='${prefix}/etc'
816 sharedstatedir='${prefix}/com'
817 localstatedir='${prefix}/var'
818 includedir='${prefix}/include'
819 oldincludedir='/usr/include'
820 docdir='${datarootdir}/doc/${PACKAGE}'
821 infodir='${datarootdir}/info'
826 libdir='${exec_prefix}/lib'
827 localedir='${datarootdir}/locale'
828 mandir='${datarootdir}/man'
834 # If the previous option needs an argument, assign it.
835 if test -n "$ac_prev"; then
836 eval $ac_prev=\$ac_option
842 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
847 # Accept the important Cygnus configure options, so we can diagnose typos.
849 case $ac_dashdash$ac_option in
853 -bindir | --bindir | --bindi | --bind | --bin | --bi)
855 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
858 -build | --build | --buil | --bui | --bu)
859 ac_prev=build_alias ;;
860 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
861 build_alias=$ac_optarg ;;
863 -cache-file | --cache-file | --cache-fil | --cache-fi \
864 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
865 ac_prev=cache_file ;;
866 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
867 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
868 cache_file=$ac_optarg ;;
871 cache_file=config.cache ;;
873 -datadir | --datadir | --datadi | --datad)
875 -datadir=* | --datadir=* | --datadi=* | --datad=*)
876 datadir=$ac_optarg ;;
878 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
879 | --dataroo | --dataro | --datar)
880 ac_prev=datarootdir ;;
881 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
882 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
883 datarootdir=$ac_optarg ;;
885 -disable-* | --disable-*)
886 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
887 # Reject names that are not valid shell variable names.
888 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
889 as_fn_error $? "invalid feature name: $ac_useropt"
890 ac_useropt_orig=$ac_useropt
891 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
892 case $ac_user_opts in
896 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
897 ac_unrecognized_sep=', ';;
899 eval enable_$ac_useropt=no ;;
901 -docdir | --docdir | --docdi | --doc | --do)
903 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
906 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
908 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
911 -enable-* | --enable-*)
912 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
913 # Reject names that are not valid shell variable names.
914 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
915 as_fn_error $? "invalid feature name: $ac_useropt"
916 ac_useropt_orig=$ac_useropt
917 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
918 case $ac_user_opts in
922 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
923 ac_unrecognized_sep=', ';;
925 eval enable_$ac_useropt=\$ac_optarg ;;
927 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
928 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
929 | --exec | --exe | --ex)
930 ac_prev=exec_prefix ;;
931 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
932 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
933 | --exec=* | --exe=* | --ex=*)
934 exec_prefix=$ac_optarg ;;
936 -gas | --gas | --ga | --g)
937 # Obsolete; use --with-gas.
940 -help | --help | --hel | --he | -h)
942 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
943 ac_init_help=recursive ;;
944 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
945 ac_init_help=short ;;
947 -host | --host | --hos | --ho)
948 ac_prev=host_alias ;;
949 -host=* | --host=* | --hos=* | --ho=*)
950 host_alias=$ac_optarg ;;
952 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
954 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
956 htmldir=$ac_optarg ;;
958 -includedir | --includedir | --includedi | --included | --include \
959 | --includ | --inclu | --incl | --inc)
960 ac_prev=includedir ;;
961 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
962 | --includ=* | --inclu=* | --incl=* | --inc=*)
963 includedir=$ac_optarg ;;
965 -infodir | --infodir | --infodi | --infod | --info | --inf)
967 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
968 infodir=$ac_optarg ;;
970 -libdir | --libdir | --libdi | --libd)
972 -libdir=* | --libdir=* | --libdi=* | --libd=*)
975 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
976 | --libexe | --libex | --libe)
977 ac_prev=libexecdir ;;
978 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
979 | --libexe=* | --libex=* | --libe=*)
980 libexecdir=$ac_optarg ;;
982 -localedir | --localedir | --localedi | --localed | --locale)
984 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
985 localedir=$ac_optarg ;;
987 -localstatedir | --localstatedir | --localstatedi | --localstated \
988 | --localstate | --localstat | --localsta | --localst | --locals)
989 ac_prev=localstatedir ;;
990 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
991 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
992 localstatedir=$ac_optarg ;;
994 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
996 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1000 # Obsolete; use --without-fp.
1003 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1004 | --no-cr | --no-c | -n)
1007 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1008 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1011 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1012 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1013 | --oldin | --oldi | --old | --ol | --o)
1014 ac_prev=oldincludedir ;;
1015 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1016 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1017 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1018 oldincludedir=$ac_optarg ;;
1020 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1022 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1023 prefix=$ac_optarg ;;
1025 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1026 | --program-pre | --program-pr | --program-p)
1027 ac_prev=program_prefix ;;
1028 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1029 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1030 program_prefix=$ac_optarg ;;
1032 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1033 | --program-suf | --program-su | --program-s)
1034 ac_prev=program_suffix ;;
1035 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1036 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1037 program_suffix=$ac_optarg ;;
1039 -program-transform-name | --program-transform-name \
1040 | --program-transform-nam | --program-transform-na \
1041 | --program-transform-n | --program-transform- \
1042 | --program-transform | --program-transfor \
1043 | --program-transfo | --program-transf \
1044 | --program-trans | --program-tran \
1045 | --progr-tra | --program-tr | --program-t)
1046 ac_prev=program_transform_name ;;
1047 -program-transform-name=* | --program-transform-name=* \
1048 | --program-transform-nam=* | --program-transform-na=* \
1049 | --program-transform-n=* | --program-transform-=* \
1050 | --program-transform=* | --program-transfor=* \
1051 | --program-transfo=* | --program-transf=* \
1052 | --program-trans=* | --program-tran=* \
1053 | --progr-tra=* | --program-tr=* | --program-t=*)
1054 program_transform_name=$ac_optarg ;;
1056 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1058 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1059 pdfdir=$ac_optarg ;;
1061 -psdir | --psdir | --psdi | --psd | --ps)
1063 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1066 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1067 | -silent | --silent | --silen | --sile | --sil)
1070 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1072 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1074 sbindir=$ac_optarg ;;
1076 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1077 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1078 | --sharedst | --shareds | --shared | --share | --shar \
1080 ac_prev=sharedstatedir ;;
1081 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1082 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1083 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1085 sharedstatedir=$ac_optarg ;;
1087 -site | --site | --sit)
1089 -site=* | --site=* | --sit=*)
1092 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1094 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1095 srcdir=$ac_optarg ;;
1097 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1098 | --syscon | --sysco | --sysc | --sys | --sy)
1099 ac_prev=sysconfdir ;;
1100 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1101 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1102 sysconfdir=$ac_optarg ;;
1104 -target | --target | --targe | --targ | --tar | --ta | --t)
1105 ac_prev=target_alias ;;
1106 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1107 target_alias=$ac_optarg ;;
1109 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1112 -version | --version | --versio | --versi | --vers | -V)
1113 ac_init_version=: ;;
1116 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1117 # Reject names that are not valid shell variable names.
1118 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1119 as_fn_error $? "invalid package name: $ac_useropt"
1120 ac_useropt_orig=$ac_useropt
1121 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1122 case $ac_user_opts in
1126 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1127 ac_unrecognized_sep=', ';;
1129 eval with_$ac_useropt=\$ac_optarg ;;
1131 -without-* | --without-*)
1132 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1133 # Reject names that are not valid shell variable names.
1134 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1135 as_fn_error $? "invalid package name: $ac_useropt"
1136 ac_useropt_orig=$ac_useropt
1137 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1138 case $ac_user_opts in
1142 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1143 ac_unrecognized_sep=', ';;
1145 eval with_$ac_useropt=no ;;
1148 # Obsolete; use --with-x.
1151 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1152 | --x-incl | --x-inc | --x-in | --x-i)
1153 ac_prev=x_includes ;;
1154 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1155 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1156 x_includes=$ac_optarg ;;
1158 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1159 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1160 ac_prev=x_libraries ;;
1161 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1162 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1163 x_libraries=$ac_optarg ;;
1165 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1166 Try \`$0 --help' for more information"
1170 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1171 # Reject names that are not valid shell variable names.
1172 case $ac_envvar in #(
1173 '' | [0-9]* | *[!_$as_cr_alnum]* )
1174 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1176 eval $ac_envvar=\$ac_optarg
1177 export $ac_envvar ;;
1180 # FIXME: should be removed in autoconf 3.0.
1181 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1182 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1183 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1184 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1190 if test -n "$ac_prev"; then
1191 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1192 as_fn_error $? "missing argument to $ac_option"
1195 if test -n "$ac_unrecognized_opts"; then
1196 case $enable_option_checking in
1198 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1199 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1203 # Check all directory arguments for consistency.
1204 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1205 datadir sysconfdir sharedstatedir localstatedir includedir \
1206 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1207 libdir localedir mandir
1209 eval ac_val=\$$ac_var
1210 # Remove trailing slashes.
1213 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1214 eval $ac_var=\$ac_val;;
1216 # Be sure to have absolute directory names.
1218 [\\/$]* | ?:[\\/]* ) continue;;
1219 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1221 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1224 # There might be people who depend on the old broken behavior: `$host'
1225 # used to hold the argument of --host etc.
1226 # FIXME: To remove some day.
1229 target=$target_alias
1231 # FIXME: To remove some day.
1232 if test "x$host_alias" != x; then
1233 if test "x$build_alias" = x; then
1234 cross_compiling=maybe
1235 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1236 If a cross compiler is detected then cross compile mode will be used" >&2
1237 elif test "x$build_alias" != "x$host_alias"; then
1243 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1245 test "$silent" = yes && exec 6>/dev/null
1248 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1249 ac_ls_di=`ls -di .` &&
1250 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1251 as_fn_error $? "working directory cannot be determined"
1252 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1253 as_fn_error $? "pwd does not report name of working directory"
1256 # Find the source files, if location was not specified.
1257 if test -z "$srcdir"; then
1258 ac_srcdir_defaulted=yes
1259 # Try the directory containing this script, then the parent directory.
1260 ac_confdir=`$as_dirname -- "$as_myself" ||
1261 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1262 X"$as_myself" : 'X\(//\)[^/]' \| \
1263 X"$as_myself" : 'X\(//\)$' \| \
1264 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1265 $as_echo X"$as_myself" |
1266 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1284 if test ! -r "$srcdir/$ac_unique_file"; then
1288 ac_srcdir_defaulted=no
1290 if test ! -r "$srcdir/$ac_unique_file"; then
1291 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1292 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1294 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1296 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1298 # When building in place, set srcdir=.
1299 if test "$ac_abs_confdir" = "$ac_pwd"; then
1302 # Remove unnecessary trailing slashes from srcdir.
1303 # Double slashes in file names in object file debugging info
1304 # mess up M-x gdb in Emacs.
1306 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1308 for ac_var in $ac_precious_vars; do
1309 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1310 eval ac_env_${ac_var}_value=\$${ac_var}
1311 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1312 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1316 # Report the --help message.
1318 if test "$ac_init_help" = "long"; then
1319 # Omit some internal or obsolete options to make the list less imposing.
1320 # This message is too long to be a string in the A/UX 3.1 sh.
1322 \`configure' configures this package to adapt to many kinds of systems.
1324 Usage: $0 [OPTION]... [VAR=VALUE]...
1326 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1327 VAR=VALUE. See below for descriptions of some of the useful variables.
1329 Defaults for the options are specified in brackets.
1332 -h, --help display this help and exit
1333 --help=short display options specific to this package
1334 --help=recursive display the short help of all the included packages
1335 -V, --version display version information and exit
1336 -q, --quiet, --silent do not print \`checking ...' messages
1337 --cache-file=FILE cache test results in FILE [disabled]
1338 -C, --config-cache alias for \`--cache-file=config.cache'
1339 -n, --no-create do not create output files
1340 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1342 Installation directories:
1343 --prefix=PREFIX install architecture-independent files in PREFIX
1344 [$ac_default_prefix]
1345 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1348 By default, \`make install' will install all the files in
1349 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1350 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1351 for instance \`--prefix=\$HOME'.
1353 For better control, use the options below.
1355 Fine tuning of the installation directories:
1356 --bindir=DIR user executables [EPREFIX/bin]
1357 --sbindir=DIR system admin executables [EPREFIX/sbin]
1358 --libexecdir=DIR program executables [EPREFIX/libexec]
1359 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1360 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1361 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1362 --libdir=DIR object code libraries [EPREFIX/lib]
1363 --includedir=DIR C header files [PREFIX/include]
1364 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1365 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1366 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1367 --infodir=DIR info documentation [DATAROOTDIR/info]
1368 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1369 --mandir=DIR man documentation [DATAROOTDIR/man]
1370 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1371 --htmldir=DIR html documentation [DOCDIR]
1372 --dvidir=DIR dvi documentation [DOCDIR]
1373 --pdfdir=DIR pdf documentation [DOCDIR]
1374 --psdir=DIR ps documentation [DOCDIR]
1380 --program-prefix=PREFIX prepend PREFIX to installed program names
1381 --program-suffix=SUFFIX append SUFFIX to installed program names
1382 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1385 --build=BUILD configure for building on BUILD [guessed]
1386 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1390 if test -n "$ac_init_help"; then
1395 --disable-option-checking ignore unrecognized --enable/--with options
1396 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1397 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1398 --disable-dependency-tracking speeds up one-time build
1399 --enable-dependency-tracking do not reject slow dependency extractors
1400 --disable-nls do not use Native Language Support
1401 --enable-threads={posix|solaris|pth|win32}
1402 specify multithreading API
1403 --disable-threads build without multithread safety
1404 --disable-rpath do not hardcode runtime library paths
1405 --enable-vformat Use libvformat is available
1406 --enable-debug Enable debugging support
1409 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1410 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1411 --with-gnu-ld assume the C compiler uses GNU ld default=no
1412 --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
1413 --without-libpth-prefix don't search for libpth in includedir and libdir
1414 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1415 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1416 --with-included-gettext use the GNU gettext library included here
1417 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1418 --without-libintl-prefix don't search for libintl in includedir and libdir
1419 --with-localedir=PATH Where the locale files are installed
1420 --with-curses=DIR Where ncurses is installed
1421 --with-readline=DIR Where readline is installed
1423 Some influential environment variables:
1424 CC C compiler command
1425 CFLAGS C compiler flags
1426 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1427 nonstandard directory <lib dir>
1428 LIBS libraries to pass to the linker, e.g. -l<library>
1429 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1430 you have headers in a nonstandard directory <include dir>
1433 Use these variables to override the choices made by `configure' or to help
1434 it to find libraries and programs with nonstandard names/locations.
1436 Report bugs to the package provider.
1441 if test "$ac_init_help" = "recursive"; then
1442 # If there are subdirs, report their specific --help.
1443 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1444 test -d "$ac_dir" ||
1445 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1450 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1452 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1453 # A ".." for each directory in $ac_dir_suffix.
1454 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1455 case $ac_top_builddir_sub in
1456 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1457 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1460 ac_abs_top_builddir=$ac_pwd
1461 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1462 # for backward compatibility:
1463 ac_top_builddir=$ac_top_build_prefix
1466 .) # We are building in place.
1468 ac_top_srcdir=$ac_top_builddir_sub
1469 ac_abs_top_srcdir=$ac_pwd ;;
1470 [\\/]* | ?:[\\/]* ) # Absolute name.
1471 ac_srcdir=$srcdir$ac_dir_suffix;
1472 ac_top_srcdir=$srcdir
1473 ac_abs_top_srcdir=$srcdir ;;
1475 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1476 ac_top_srcdir=$ac_top_build_prefix$srcdir
1477 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1479 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1481 cd "$ac_dir" || { ac_status=$?; continue; }
1482 # Check for guested configure.
1483 if test -f "$ac_srcdir/configure.gnu"; then
1485 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1486 elif test -f "$ac_srcdir/configure"; then
1488 $SHELL "$ac_srcdir/configure" --help=recursive
1490 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1492 cd "$ac_pwd" || { ac_status=$?; break; }
1496 test -n "$ac_init_help" && exit $ac_status
1497 if $ac_init_version; then
1500 generated by GNU Autoconf 2.68
1502 Copyright (C) 2010 Free Software Foundation, Inc.
1503 This configure script is free software; the Free Software Foundation
1504 gives unlimited permission to copy, distribute and modify it.
1509 ## ------------------------ ##
1510 ## Autoconf initialization. ##
1511 ## ------------------------ ##
1513 # ac_fn_c_try_compile LINENO
1514 # --------------------------
1515 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1516 ac_fn_c_try_compile ()
1518 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1519 rm -f conftest.$ac_objext
1520 if { { ac_try="$ac_compile"
1522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1523 *) ac_try_echo=$ac_try;;
1525 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1526 $as_echo "$ac_try_echo"; } >&5
1527 (eval "$ac_compile") 2>conftest.err
1529 if test -s conftest.err; then
1530 grep -v '^ *+' conftest.err >conftest.er1
1531 cat conftest.er1 >&5
1532 mv -f conftest.er1 conftest.err
1534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1535 test $ac_status = 0; } && {
1536 test -z "$ac_c_werror_flag" ||
1537 test ! -s conftest.err
1538 } && test -s conftest.$ac_objext; then :
1541 $as_echo "$as_me: failed program was:" >&5
1542 sed 's/^/| /' conftest.$ac_ext >&5
1546 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1547 as_fn_set_status $ac_retval
1549 } # ac_fn_c_try_compile
1551 # ac_fn_c_try_cpp LINENO
1552 # ----------------------
1553 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1556 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1557 if { { ac_try="$ac_cpp conftest.$ac_ext"
1559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1560 *) ac_try_echo=$ac_try;;
1562 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1563 $as_echo "$ac_try_echo"; } >&5
1564 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1566 if test -s conftest.err; then
1567 grep -v '^ *+' conftest.err >conftest.er1
1568 cat conftest.er1 >&5
1569 mv -f conftest.er1 conftest.err
1571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1572 test $ac_status = 0; } > conftest.i && {
1573 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1574 test ! -s conftest.err
1578 $as_echo "$as_me: failed program was:" >&5
1579 sed 's/^/| /' conftest.$ac_ext >&5
1583 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1584 as_fn_set_status $ac_retval
1588 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1589 # -------------------------------------------------------
1590 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1591 # the include files in INCLUDES and setting the cache variable VAR
1593 ac_fn_c_check_header_mongrel ()
1595 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1596 if eval \${$3+:} false; then :
1597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1598 $as_echo_n "checking for $2... " >&6; }
1599 if eval \${$3+:} false; then :
1600 $as_echo_n "(cached) " >&6
1603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1604 $as_echo "$ac_res" >&6; }
1606 # Is the header compilable?
1607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1608 $as_echo_n "checking $2 usability... " >&6; }
1609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1610 /* end confdefs.h. */
1614 if ac_fn_c_try_compile "$LINENO"; then :
1615 ac_header_compiler=yes
1617 ac_header_compiler=no
1619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1621 $as_echo "$ac_header_compiler" >&6; }
1623 # Is the header present?
1624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1625 $as_echo_n "checking $2 presence... " >&6; }
1626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1627 /* end confdefs.h. */
1630 if ac_fn_c_try_cpp "$LINENO"; then :
1631 ac_header_preproc=yes
1633 ac_header_preproc=no
1635 rm -f conftest.err conftest.i conftest.$ac_ext
1636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1637 $as_echo "$ac_header_preproc" >&6; }
1639 # So? What about this header?
1640 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1643 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1645 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1649 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1651 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1653 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1655 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1657 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1661 $as_echo_n "checking for $2... " >&6; }
1662 if eval \${$3+:} false; then :
1663 $as_echo_n "(cached) " >&6
1665 eval "$3=\$ac_header_compiler"
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1669 $as_echo "$ac_res" >&6; }
1671 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1673 } # ac_fn_c_check_header_mongrel
1675 # ac_fn_c_try_run LINENO
1676 # ----------------------
1677 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1678 # that executables *can* be run.
1681 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1682 if { { ac_try="$ac_link"
1684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1685 *) ac_try_echo=$ac_try;;
1687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1688 $as_echo "$ac_try_echo"; } >&5
1689 (eval "$ac_link") 2>&5
1691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1692 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1693 { { case "(($ac_try" in
1694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1695 *) ac_try_echo=$ac_try;;
1697 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1698 $as_echo "$ac_try_echo"; } >&5
1699 (eval "$ac_try") 2>&5
1701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1702 test $ac_status = 0; }; }; then :
1705 $as_echo "$as_me: program exited with status $ac_status" >&5
1706 $as_echo "$as_me: failed program was:" >&5
1707 sed 's/^/| /' conftest.$ac_ext >&5
1709 ac_retval=$ac_status
1711 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1712 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1713 as_fn_set_status $ac_retval
1717 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1718 # -------------------------------------------------------
1719 # Tests whether HEADER exists and can be compiled using the include files in
1720 # INCLUDES, setting the cache variable VAR accordingly.
1721 ac_fn_c_check_header_compile ()
1723 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1725 $as_echo_n "checking for $2... " >&6; }
1726 if eval \${$3+:} false; then :
1727 $as_echo_n "(cached) " >&6
1729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1730 /* end confdefs.h. */
1734 if ac_fn_c_try_compile "$LINENO"; then :
1739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1743 $as_echo "$ac_res" >&6; }
1744 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1746 } # ac_fn_c_check_header_compile
1748 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1749 # -------------------------------------------
1750 # Tests whether TYPE exists after having included INCLUDES, setting cache
1751 # variable VAR accordingly.
1752 ac_fn_c_check_type ()
1754 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1756 $as_echo_n "checking for $2... " >&6; }
1757 if eval \${$3+:} false; then :
1758 $as_echo_n "(cached) " >&6
1761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1762 /* end confdefs.h. */
1773 if ac_fn_c_try_compile "$LINENO"; then :
1774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1775 /* end confdefs.h. */
1786 if ac_fn_c_try_compile "$LINENO"; then :
1791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1797 $as_echo "$ac_res" >&6; }
1798 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1800 } # ac_fn_c_check_type
1802 # ac_fn_c_try_link LINENO
1803 # -----------------------
1804 # Try to link conftest.$ac_ext, and return whether this succeeded.
1807 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1808 rm -f conftest.$ac_objext conftest$ac_exeext
1809 if { { ac_try="$ac_link"
1811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1812 *) ac_try_echo=$ac_try;;
1814 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1815 $as_echo "$ac_try_echo"; } >&5
1816 (eval "$ac_link") 2>conftest.err
1818 if test -s conftest.err; then
1819 grep -v '^ *+' conftest.err >conftest.er1
1820 cat conftest.er1 >&5
1821 mv -f conftest.er1 conftest.err
1823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1824 test $ac_status = 0; } && {
1825 test -z "$ac_c_werror_flag" ||
1826 test ! -s conftest.err
1827 } && test -s conftest$ac_exeext && {
1828 test "$cross_compiling" = yes ||
1829 $as_test_x conftest$ac_exeext
1833 $as_echo "$as_me: failed program was:" >&5
1834 sed 's/^/| /' conftest.$ac_ext >&5
1838 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1839 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1840 # interfere with the next link command; also delete a directory that is
1841 # left behind by Apple's compiler. We do this before executing the actions.
1842 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1843 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1844 as_fn_set_status $ac_retval
1846 } # ac_fn_c_try_link
1848 # ac_fn_c_check_func LINENO FUNC VAR
1849 # ----------------------------------
1850 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1851 ac_fn_c_check_func ()
1853 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1855 $as_echo_n "checking for $2... " >&6; }
1856 if eval \${$3+:} false; then :
1857 $as_echo_n "(cached) " >&6
1859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1860 /* end confdefs.h. */
1861 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1862 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1863 #define $2 innocuous_$2
1865 /* System header to define __stub macros and hopefully few prototypes,
1866 which can conflict with char $2 (); below.
1867 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1868 <limits.h> exists even on freestanding compilers. */
1871 # include <limits.h>
1873 # include <assert.h>
1878 /* Override any GCC internal prototype to avoid an error.
1879 Use char because int might match the return type of a GCC
1880 builtin and then its argument prototype would still apply. */
1885 /* The GNU C library defines this for functions which it implements
1886 to always fail with ENOSYS. Some functions are actually named
1887 something starting with __ and the normal name is an alias. */
1888 #if defined __stub_$2 || defined __stub___$2
1900 if ac_fn_c_try_link "$LINENO"; then :
1905 rm -f core conftest.err conftest.$ac_objext \
1906 conftest$ac_exeext conftest.$ac_ext
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1910 $as_echo "$ac_res" >&6; }
1911 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1913 } # ac_fn_c_check_func
1915 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1916 # --------------------------------------------
1917 # Tries to find the compile-time value of EXPR in a program that includes
1918 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1920 ac_fn_c_compute_int ()
1922 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1923 if test "$cross_compiling" = yes; then
1924 # Depending upon the size, compute the lo and hi bounds.
1925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1926 /* end confdefs.h. */
1931 static int test_array [1 - 2 * !(($2) >= 0)];
1938 if ac_fn_c_try_compile "$LINENO"; then :
1941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1942 /* end confdefs.h. */
1947 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1954 if ac_fn_c_try_compile "$LINENO"; then :
1955 ac_hi=$ac_mid; break
1957 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1958 if test $ac_lo -le $ac_mid; then
1962 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1968 /* end confdefs.h. */
1973 static int test_array [1 - 2 * !(($2) < 0)];
1980 if ac_fn_c_try_compile "$LINENO"; then :
1983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1984 /* end confdefs.h. */
1989 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1996 if ac_fn_c_try_compile "$LINENO"; then :
1997 ac_lo=$ac_mid; break
1999 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2000 if test $ac_mid -le $ac_hi; then
2004 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2014 # Binary search between lo and hi bounds.
2015 while test "x$ac_lo" != "x$ac_hi"; do
2016 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2018 /* end confdefs.h. */
2023 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2030 if ac_fn_c_try_compile "$LINENO"; then :
2033 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2038 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2043 /* end confdefs.h. */
2045 static long int longval () { return $2; }
2046 static unsigned long int ulongval () { return $2; }
2053 FILE *f = fopen ("conftest.val", "w");
2058 long int i = longval ();
2061 fprintf (f, "%ld", i);
2065 unsigned long int i = ulongval ();
2068 fprintf (f, "%lu", i);
2070 /* Do not output a trailing newline, as this causes \r\n confusion
2071 on some platforms. */
2072 return ferror (f) || fclose (f) != 0;
2078 if ac_fn_c_try_run "$LINENO"; then :
2079 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2083 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2084 conftest.$ac_objext conftest.beam conftest.$ac_ext
2088 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2089 as_fn_set_status $ac_retval
2091 } # ac_fn_c_compute_int
2093 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2094 # ---------------------------------------------
2095 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2097 ac_fn_c_check_decl ()
2099 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2100 as_decl_name=`echo $2|sed 's/ *(.*//'`
2101 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2103 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2104 if eval \${$3+:} false; then :
2105 $as_echo_n "(cached) " >&6
2107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2108 /* end confdefs.h. */
2113 #ifndef $as_decl_name
2115 (void) $as_decl_use;
2117 (void) $as_decl_name;
2125 if ac_fn_c_try_compile "$LINENO"; then :
2130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2134 $as_echo "$ac_res" >&6; }
2135 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2137 } # ac_fn_c_check_decl
2138 cat >config.log <<_ACEOF
2139 This file contains any messages produced by compilers while
2140 running configure, to aid debugging if configure makes a mistake.
2142 It was created by $as_me, which was
2143 generated by GNU Autoconf 2.68. Invocation command line was
2155 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2156 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2157 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2158 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2159 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2161 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2162 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2164 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2165 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2166 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2167 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2168 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2169 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2170 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2178 test -z "$as_dir" && as_dir=.
2179 $as_echo "PATH: $as_dir"
2195 # Keep a trace of the command line.
2196 # Strip out --no-create and --no-recursion so they do not pile up.
2197 # Strip out --silent because we don't want to record it for future runs.
2198 # Also quote any args containing shell meta-characters.
2199 # Make two passes to allow for proper duplicate-argument suppression.
2203 ac_must_keep_next=false
2209 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2210 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2211 | -silent | --silent | --silen | --sile | --sil)
2214 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2217 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2219 as_fn_append ac_configure_args1 " '$ac_arg'"
2220 if test $ac_must_keep_next = true; then
2221 ac_must_keep_next=false # Got value, back to normal.
2224 *=* | --config-cache | -C | -disable-* | --disable-* \
2225 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2226 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2227 | -with-* | --with-* | -without-* | --without-* | --x)
2228 case "$ac_configure_args0 " in
2229 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2232 -* ) ac_must_keep_next=true ;;
2235 as_fn_append ac_configure_args " '$ac_arg'"
2240 { ac_configure_args0=; unset ac_configure_args0;}
2241 { ac_configure_args1=; unset ac_configure_args1;}
2243 # When interrupted or exit'd, cleanup temporary files, and complete
2244 # config.log. We remove comments because anyway the quotes in there
2245 # would cause problems or look ugly.
2246 # WARNING: Use '\'' to represent an apostrophe within the trap.
2247 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2248 trap 'exit_status=$?
2249 # Save into config.log some information that might help in debugging.
2253 $as_echo "## ---------------- ##
2254 ## Cache variables. ##
2255 ## ---------------- ##"
2257 # The following way of writing the cache mishandles newlines in values,
2259 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2260 eval ac_val=\$$ac_var
2264 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2265 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2268 _ | IFS | as_nl) ;; #(
2269 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2270 *) { eval $ac_var=; unset $ac_var;} ;;
2275 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2276 *${as_nl}ac_space=\ *)
2278 "s/'\''/'\''\\\\'\'''\''/g;
2279 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2282 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2289 $as_echo "## ----------------- ##
2290 ## Output variables. ##
2291 ## ----------------- ##"
2293 for ac_var in $ac_subst_vars
2295 eval ac_val=\$$ac_var
2297 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2299 $as_echo "$ac_var='\''$ac_val'\''"
2303 if test -n "$ac_subst_files"; then
2304 $as_echo "## ------------------- ##
2305 ## File substitutions. ##
2306 ## ------------------- ##"
2308 for ac_var in $ac_subst_files
2310 eval ac_val=\$$ac_var
2312 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2314 $as_echo "$ac_var='\''$ac_val'\''"
2319 if test -s confdefs.h; then
2320 $as_echo "## ----------- ##
2327 test "$ac_signal" != 0 &&
2328 $as_echo "$as_me: caught signal $ac_signal"
2329 $as_echo "$as_me: exit $exit_status"
2331 rm -f core *.core core.conftest.* &&
2332 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2335 for ac_signal in 1 2 13 15; do
2336 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2340 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2341 rm -f -r conftest* confdefs.h
2343 $as_echo "/* confdefs.h */" > confdefs.h
2345 # Predefined preprocessor variables.
2347 cat >>confdefs.h <<_ACEOF
2348 #define PACKAGE_NAME "$PACKAGE_NAME"
2351 cat >>confdefs.h <<_ACEOF
2352 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2355 cat >>confdefs.h <<_ACEOF
2356 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2359 cat >>confdefs.h <<_ACEOF
2360 #define PACKAGE_STRING "$PACKAGE_STRING"
2363 cat >>confdefs.h <<_ACEOF
2364 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2367 cat >>confdefs.h <<_ACEOF
2368 #define PACKAGE_URL "$PACKAGE_URL"
2372 # Let the site file select an alternate cache file if it wants to.
2373 # Prefer an explicitly selected file to automatically selected ones.
2376 if test -n "$CONFIG_SITE"; then
2377 # We do not want a PATH search for config.site.
2378 case $CONFIG_SITE in #((
2379 -*) ac_site_file1=./$CONFIG_SITE;;
2380 */*) ac_site_file1=$CONFIG_SITE;;
2381 *) ac_site_file1=./$CONFIG_SITE;;
2383 elif test "x$prefix" != xNONE; then
2384 ac_site_file1=$prefix/share/config.site
2385 ac_site_file2=$prefix/etc/config.site
2387 ac_site_file1=$ac_default_prefix/share/config.site
2388 ac_site_file2=$ac_default_prefix/etc/config.site
2390 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2392 test "x$ac_site_file" = xNONE && continue
2393 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2395 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2396 sed 's/^/| /' "$ac_site_file" >&5
2398 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2399 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2400 as_fn_error $? "failed to load site script $ac_site_file
2401 See \`config.log' for more details" "$LINENO" 5; }
2405 if test -r "$cache_file"; then
2406 # Some versions of bash will fail to source /dev/null (special files
2407 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2408 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2410 $as_echo "$as_me: loading cache $cache_file" >&6;}
2412 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2413 *) . "./$cache_file";;
2417 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2418 $as_echo "$as_me: creating cache $cache_file" >&6;}
2422 gt_needs="$gt_needs "
2423 as_fn_append ac_header_list " stdlib.h"
2424 as_fn_append ac_header_list " unistd.h"
2425 as_fn_append ac_header_list " sys/param.h"
2426 # Check that the precious variables saved in the cache have kept the same
2428 ac_cache_corrupted=false
2429 for ac_var in $ac_precious_vars; do
2430 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2431 eval ac_new_set=\$ac_env_${ac_var}_set
2432 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2433 eval ac_new_val=\$ac_env_${ac_var}_value
2434 case $ac_old_set,$ac_new_set in
2436 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2437 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2438 ac_cache_corrupted=: ;;
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2441 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2442 ac_cache_corrupted=: ;;
2445 if test "x$ac_old_val" != "x$ac_new_val"; then
2446 # differences in whitespace do not lead to failure.
2447 ac_old_val_w=`echo x $ac_old_val`
2448 ac_new_val_w=`echo x $ac_new_val`
2449 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2451 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2452 ac_cache_corrupted=:
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2455 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2456 eval $ac_var=\$ac_old_val
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2459 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2461 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2464 # Pass precious variables to config.status.
2465 if test "$ac_new_set" = set; then
2467 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2468 *) ac_arg=$ac_var=$ac_new_val ;;
2470 case " $ac_configure_args " in
2471 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2472 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2476 if $ac_cache_corrupted; then
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2478 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2480 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2481 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2483 ## -------------------- ##
2484 ## Main body of script. ##
2485 ## -------------------- ##
2488 ac_cpp='$CPP $CPPFLAGS'
2489 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2490 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2491 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2494 am__api_version='1.11'
2497 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2498 if test -f "$ac_dir/install-sh"; then
2500 ac_install_sh="$ac_aux_dir/install-sh -c"
2502 elif test -f "$ac_dir/install.sh"; then
2504 ac_install_sh="$ac_aux_dir/install.sh -c"
2506 elif test -f "$ac_dir/shtool"; then
2508 ac_install_sh="$ac_aux_dir/shtool install -c"
2512 if test -z "$ac_aux_dir"; then
2513 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2516 # These three variables are undocumented and unsupported,
2517 # and are intended to be withdrawn in a future Autoconf release.
2518 # They can cause serious problems if a builder's source tree is in a directory
2519 # whose full name contains unusual characters.
2520 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2521 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2522 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2525 # Find a good install program. We prefer a C program (faster),
2526 # so one script is as good as another. But avoid the broken or
2527 # incompatible versions:
2528 # SysV /etc/install, /usr/sbin/install
2529 # SunOS /usr/etc/install
2530 # IRIX /sbin/install
2532 # AmigaOS /C/install, which installs bootblocks on floppy discs
2533 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2534 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2535 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2536 # OS/2's system install, which has a completely different semantic
2537 # ./install, which can be erroneously created by make from ./install.sh.
2538 # Reject install programs that cannot install multiple files.
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2540 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2541 if test -z "$INSTALL"; then
2542 if ${ac_cv_path_install+:} false; then :
2543 $as_echo_n "(cached) " >&6
2545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2549 test -z "$as_dir" && as_dir=.
2550 # Account for people who put trailing slashes in PATH elements.
2551 case $as_dir/ in #((
2552 ./ | .// | /[cC]/* | \
2553 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2554 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2557 # OSF1 and SCO ODT 3.0 have their own names for install.
2558 # Don't use installbsd from OSF since it installs stuff as root
2560 for ac_prog in ginstall scoinst install; do
2561 for ac_exec_ext in '' $ac_executable_extensions; do
2562 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2563 if test $ac_prog = install &&
2564 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2565 # AIX install. It has an incompatible calling convention.
2567 elif test $ac_prog = install &&
2568 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2569 # program-specific install script used by HP pwplus--don't use.
2572 rm -rf conftest.one conftest.two conftest.dir
2573 echo one > conftest.one
2574 echo two > conftest.two
2576 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2577 test -s conftest.one && test -s conftest.two &&
2578 test -s conftest.dir/conftest.one &&
2579 test -s conftest.dir/conftest.two
2581 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2594 rm -rf conftest.one conftest.two conftest.dir
2597 if test "${ac_cv_path_install+set}" = set; then
2598 INSTALL=$ac_cv_path_install
2600 # As a last resort, use the slow shell script. Don't cache a
2601 # value for INSTALL within a source directory, because that will
2602 # break other packages using the cache if that directory is
2603 # removed, or if the value is a relative name.
2604 INSTALL=$ac_install_sh
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2608 $as_echo "$INSTALL" >&6; }
2610 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2611 # It thinks the first close brace ends the variable substitution.
2612 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2614 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2616 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2619 $as_echo_n "checking whether build environment is sane... " >&6; }
2622 echo timestamp > conftest.file
2623 # Reject unsafe characters in $srcdir or the absolute working directory
2624 # name. Accept space and tab only in the latter.
2628 *[\\\"\#\$\&\'\`$am_lf]*)
2629 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2632 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2633 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2636 # Do `set' in a subshell so we don't clobber the current shell's
2637 # arguments. Must try -L first in case configure is actually a
2638 # symlink; some systems play weird games with the mod time of symlinks
2639 # (eg FreeBSD returns the mod time of the symlink's containing
2642 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2643 if test "$*" = "X"; then
2645 set X `ls -t "$srcdir/configure" conftest.file`
2648 if test "$*" != "X $srcdir/configure conftest.file" \
2649 && test "$*" != "X conftest.file $srcdir/configure"; then
2651 # If neither matched, then we have a broken ls. This can happen
2652 # if, for instance, CONFIG_SHELL is bash and it inherits a
2653 # broken ls alias from the environment. This has actually
2654 # happened. Such a system could not be considered "sane".
2655 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2656 alias in your environment" "$LINENO" 5
2659 test "$2" = conftest.file
2665 as_fn_error $? "newly created file is older than distributed files!
2666 Check your system clock" "$LINENO" 5
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2669 $as_echo "yes" >&6; }
2670 test "$program_prefix" != NONE &&
2671 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2672 # Use a double $ so make ignores it.
2673 test "$program_suffix" != NONE &&
2674 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2675 # Double any \ or $.
2676 # By default was `s,x,x', remove it if useless.
2677 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2678 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2680 # expand $ac_aux_dir to an absolute path
2681 am_aux_dir=`cd $ac_aux_dir && pwd`
2683 if test x"${MISSING+set}" != xset; then
2686 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2688 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2691 # Use eval to expand $SHELL
2692 if eval "$MISSING --run true"; then
2693 am_missing_run="$MISSING --run "
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2697 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2700 if test x"${install_sh}" != xset; then
2703 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2705 install_sh="\${SHELL} $am_aux_dir/install-sh"
2709 # Installed binaries are usually stripped using `strip' when the user
2710 # run `make install-strip'. However `strip' might not be the right
2711 # tool to use in cross-compilation environments, therefore Automake
2712 # will honor the `STRIP' environment variable to overrule this program.
2713 if test "$cross_compiling" != no; then
2714 if test -n "$ac_tool_prefix"; then
2715 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2716 set dummy ${ac_tool_prefix}strip; ac_word=$2
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2718 $as_echo_n "checking for $ac_word... " >&6; }
2719 if ${ac_cv_prog_STRIP+:} false; then :
2720 $as_echo_n "(cached) " >&6
2722 if test -n "$STRIP"; then
2723 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2729 test -z "$as_dir" && as_dir=.
2730 for ac_exec_ext in '' $ac_executable_extensions; do
2731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2732 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2742 STRIP=$ac_cv_prog_STRIP
2743 if test -n "$STRIP"; then
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2745 $as_echo "$STRIP" >&6; }
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2748 $as_echo "no" >&6; }
2753 if test -z "$ac_cv_prog_STRIP"; then
2755 # Extract the first word of "strip", so it can be a program name with args.
2756 set dummy strip; ac_word=$2
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2758 $as_echo_n "checking for $ac_word... " >&6; }
2759 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2760 $as_echo_n "(cached) " >&6
2762 if test -n "$ac_ct_STRIP"; then
2763 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2769 test -z "$as_dir" && as_dir=.
2770 for ac_exec_ext in '' $ac_executable_extensions; do
2771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2772 ac_cv_prog_ac_ct_STRIP="strip"
2773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2782 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2783 if test -n "$ac_ct_STRIP"; then
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2785 $as_echo "$ac_ct_STRIP" >&6; }
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2788 $as_echo "no" >&6; }
2791 if test "x$ac_ct_STRIP" = x; then
2794 case $cross_compiling:$ac_tool_warned in
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2797 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2798 ac_tool_warned=yes ;;
2803 STRIP="$ac_cv_prog_STRIP"
2807 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2810 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2811 if test -z "$MKDIR_P"; then
2812 if ${ac_cv_path_mkdir+:} false; then :
2813 $as_echo_n "(cached) " >&6
2815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2816 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2819 test -z "$as_dir" && as_dir=.
2820 for ac_prog in mkdir gmkdir; do
2821 for ac_exec_ext in '' $ac_executable_extensions; do
2822 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2823 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2824 'mkdir (GNU coreutils) '* | \
2825 'mkdir (coreutils) '* | \
2826 'mkdir (fileutils) '4.1*)
2827 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2837 test -d ./--version && rmdir ./--version
2838 if test "${ac_cv_path_mkdir+set}" = set; then
2839 MKDIR_P="$ac_cv_path_mkdir -p"
2841 # As a last resort, use the slow shell script. Don't cache a
2842 # value for MKDIR_P within a source directory, because that will
2843 # break other packages using the cache if that directory is
2844 # removed, or if the value is a relative name.
2845 MKDIR_P="$ac_install_sh -d"
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2849 $as_echo "$MKDIR_P" >&6; }
2853 [\\/$]* | ?:[\\/]*) ;;
2854 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2857 for ac_prog in gawk mawk nawk awk
2859 # Extract the first word of "$ac_prog", so it can be a program name with args.
2860 set dummy $ac_prog; ac_word=$2
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2862 $as_echo_n "checking for $ac_word... " >&6; }
2863 if ${ac_cv_prog_AWK+:} false; then :
2864 $as_echo_n "(cached) " >&6
2866 if test -n "$AWK"; then
2867 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2873 test -z "$as_dir" && as_dir=.
2874 for ac_exec_ext in '' $ac_executable_extensions; do
2875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2876 ac_cv_prog_AWK="$ac_prog"
2877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2887 if test -n "$AWK"; then
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2889 $as_echo "$AWK" >&6; }
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2892 $as_echo "no" >&6; }
2896 test -n "$AWK" && break
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2900 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2902 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2903 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2904 $as_echo_n "(cached) " >&6
2906 cat >conftest.make <<\_ACEOF
2909 @echo '@@@%%%=$(MAKE)=@@@%%%'
2911 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2912 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2914 eval ac_cv_prog_make_${ac_make}_set=yes;;
2916 eval ac_cv_prog_make_${ac_make}_set=no;;
2920 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2922 $as_echo "yes" >&6; }
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2926 $as_echo "no" >&6; }
2927 SET_MAKE="MAKE=${MAKE-make}"
2930 rm -rf .tst 2>/dev/null
2931 mkdir .tst 2>/dev/null
2932 if test -d .tst; then
2937 rmdir .tst 2>/dev/null
2939 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2940 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2941 # is not polluted with repeated "-I."
2942 am__isrc=' -I$(srcdir)'
2943 # test to see if srcdir already configured
2944 if test -f $srcdir/config.status; then
2945 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2949 # test whether we have cygpath
2950 if test -z "$CYGPATH_W"; then
2951 if (cygpath --version) >/dev/null 2>/dev/null; then
2952 CYGPATH_W='cygpath -w'
2959 # Define the identity of the package.
2964 cat >>confdefs.h <<_ACEOF
2965 #define PACKAGE "$PACKAGE"
2969 cat >>confdefs.h <<_ACEOF
2970 #define VERSION "$VERSION"
2973 # Some tools Automake needs.
2975 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2978 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2981 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2984 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2987 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2989 # We need awk for the "check" target. The system "awk" is bad on
2991 # Always define AMTAR for backward compatibility. Yes, it's still used
2992 # in the wild :-( We should find a proper way to deprecate it ...
2995 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3001 ac_config_headers="$ac_config_headers config.h"
3005 DEPDIR="${am__leading_dot}deps"
3007 ac_config_commands="$ac_config_commands depfiles"
3010 am_make=${MAKE-make}
3011 cat > confinc << 'END'
3013 @echo this is the am__doit target
3016 # If we don't find an include directive, just comment out the code.
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3018 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3022 # First try GNU make style include.
3023 echo "include confinc" > confmf
3024 # Ignore all kinds of additional output from `make'.
3025 case `$am_make -s -f confmf 2> /dev/null` in #(
3026 *the\ am__doit\ target*)
3032 # Now try BSD make style include.
3033 if test "$am__include" = "#"; then
3034 echo '.include "confinc"' > confmf
3035 case `$am_make -s -f confmf 2> /dev/null` in #(
3036 *the\ am__doit\ target*)
3037 am__include=.include
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3046 $as_echo "$_am_result" >&6; }
3047 rm -f confinc confmf
3049 # Check whether --enable-dependency-tracking was given.
3050 if test "${enable_dependency_tracking+set}" = set; then :
3051 enableval=$enable_dependency_tracking;
3054 if test "x$enable_dependency_tracking" != xno; then
3055 am_depcomp="$ac_aux_dir/depcomp"
3059 if test "x$enable_dependency_tracking" != xno; then
3069 ac_cpp='$CPP $CPPFLAGS'
3070 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3071 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3072 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3073 if test -n "$ac_tool_prefix"; then
3074 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3075 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3077 $as_echo_n "checking for $ac_word... " >&6; }
3078 if ${ac_cv_prog_CC+:} false; then :
3079 $as_echo_n "(cached) " >&6
3081 if test -n "$CC"; then
3082 ac_cv_prog_CC="$CC" # Let the user override the test.
3084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3088 test -z "$as_dir" && as_dir=.
3089 for ac_exec_ext in '' $ac_executable_extensions; do
3090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3091 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3102 if test -n "$CC"; then
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3104 $as_echo "$CC" >&6; }
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3107 $as_echo "no" >&6; }
3112 if test -z "$ac_cv_prog_CC"; then
3114 # Extract the first word of "gcc", so it can be a program name with args.
3115 set dummy gcc; ac_word=$2
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3117 $as_echo_n "checking for $ac_word... " >&6; }
3118 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3119 $as_echo_n "(cached) " >&6
3121 if test -n "$ac_ct_CC"; then
3122 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3128 test -z "$as_dir" && as_dir=.
3129 for ac_exec_ext in '' $ac_executable_extensions; do
3130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3131 ac_cv_prog_ac_ct_CC="gcc"
3132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3141 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3142 if test -n "$ac_ct_CC"; then
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3144 $as_echo "$ac_ct_CC" >&6; }
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3147 $as_echo "no" >&6; }
3150 if test "x$ac_ct_CC" = x; then
3153 case $cross_compiling:$ac_tool_warned in
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3156 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3157 ac_tool_warned=yes ;;
3165 if test -z "$CC"; then
3166 if test -n "$ac_tool_prefix"; then
3167 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3168 set dummy ${ac_tool_prefix}cc; ac_word=$2
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3170 $as_echo_n "checking for $ac_word... " >&6; }
3171 if ${ac_cv_prog_CC+:} false; then :
3172 $as_echo_n "(cached) " >&6
3174 if test -n "$CC"; then
3175 ac_cv_prog_CC="$CC" # Let the user override the test.
3177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3181 test -z "$as_dir" && as_dir=.
3182 for ac_exec_ext in '' $ac_executable_extensions; do
3183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3184 ac_cv_prog_CC="${ac_tool_prefix}cc"
3185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3195 if test -n "$CC"; then
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3197 $as_echo "$CC" >&6; }
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3200 $as_echo "no" >&6; }
3206 if test -z "$CC"; then
3207 # Extract the first word of "cc", so it can be a program name with args.
3208 set dummy cc; ac_word=$2
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3210 $as_echo_n "checking for $ac_word... " >&6; }
3211 if ${ac_cv_prog_CC+:} false; then :
3212 $as_echo_n "(cached) " >&6
3214 if test -n "$CC"; then
3215 ac_cv_prog_CC="$CC" # Let the user override the test.
3218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3222 test -z "$as_dir" && as_dir=.
3223 for ac_exec_ext in '' $ac_executable_extensions; do
3224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3225 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3226 ac_prog_rejected=yes
3230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3237 if test $ac_prog_rejected = yes; then
3238 # We found a bogon in the path, so make sure we never use it.
3239 set dummy $ac_cv_prog_CC
3241 if test $# != 0; then
3242 # We chose a different compiler from the bogus one.
3243 # However, it has the same basename, so the bogon will be chosen
3244 # first if we set CC to just the basename; use the full file name.
3246 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3252 if test -n "$CC"; then
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3254 $as_echo "$CC" >&6; }
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3257 $as_echo "no" >&6; }
3262 if test -z "$CC"; then
3263 if test -n "$ac_tool_prefix"; then
3264 for ac_prog in cl.exe
3266 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3267 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3269 $as_echo_n "checking for $ac_word... " >&6; }
3270 if ${ac_cv_prog_CC+:} false; then :
3271 $as_echo_n "(cached) " >&6
3273 if test -n "$CC"; then
3274 ac_cv_prog_CC="$CC" # Let the user override the test.
3276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3280 test -z "$as_dir" && as_dir=.
3281 for ac_exec_ext in '' $ac_executable_extensions; do
3282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3283 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3294 if test -n "$CC"; then
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3296 $as_echo "$CC" >&6; }
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3299 $as_echo "no" >&6; }
3303 test -n "$CC" && break
3306 if test -z "$CC"; then
3308 for ac_prog in cl.exe
3310 # Extract the first word of "$ac_prog", so it can be a program name with args.
3311 set dummy $ac_prog; ac_word=$2
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3313 $as_echo_n "checking for $ac_word... " >&6; }
3314 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3315 $as_echo_n "(cached) " >&6
3317 if test -n "$ac_ct_CC"; then
3318 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3324 test -z "$as_dir" && as_dir=.
3325 for ac_exec_ext in '' $ac_executable_extensions; do
3326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3327 ac_cv_prog_ac_ct_CC="$ac_prog"
3328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3337 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3338 if test -n "$ac_ct_CC"; then
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3340 $as_echo "$ac_ct_CC" >&6; }
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3343 $as_echo "no" >&6; }
3347 test -n "$ac_ct_CC" && break
3350 if test "x$ac_ct_CC" = x; then
3353 case $cross_compiling:$ac_tool_warned in
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3356 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3357 ac_tool_warned=yes ;;
3366 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3367 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3368 as_fn_error $? "no acceptable C compiler found in \$PATH
3369 See \`config.log' for more details" "$LINENO" 5; }
3371 # Provide some information about the compiler.
3372 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3375 for ac_option in --version -v -V -qversion; do
3376 { { ac_try="$ac_compiler $ac_option >&5"
3378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3379 *) ac_try_echo=$ac_try;;
3381 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3382 $as_echo "$ac_try_echo"; } >&5
3383 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3385 if test -s conftest.err; then
3387 ... rest of stderr output deleted ...
3388 10q' conftest.err >conftest.er1
3389 cat conftest.er1 >&5
3391 rm -f conftest.er1 conftest.err
3392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3393 test $ac_status = 0; }
3396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3397 /* end confdefs.h. */
3407 ac_clean_files_save=$ac_clean_files
3408 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3409 # Try to create an executable without -o first, disregard a.out.
3410 # It will help us diagnose broken compilers, and finding out an intuition
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3413 $as_echo_n "checking whether the C compiler works... " >&6; }
3414 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3416 # The possible output files:
3417 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3420 for ac_file in $ac_files
3423 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3424 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3429 if { { ac_try="$ac_link_default"
3431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3432 *) ac_try_echo=$ac_try;;
3434 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3435 $as_echo "$ac_try_echo"; } >&5
3436 (eval "$ac_link_default") 2>&5
3438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3439 test $ac_status = 0; }; then :
3440 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3441 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3442 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3443 # so that the user can short-circuit this test for compilers unknown to
3445 for ac_file in $ac_files ''
3447 test -f "$ac_file" || continue
3449 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3452 # We found the default executable, but exeext='' is most
3456 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3458 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3460 # We set ac_cv_exeext here because the later test for it is not
3461 # safe: cross compilers may not add the suffix if given an `-o'
3462 # argument, so we may need to know it at that point already.
3463 # Even if this section looks crufty: it has the advantage of
3470 test "$ac_cv_exeext" = no && ac_cv_exeext=
3475 if test -z "$ac_file"; then :
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3477 $as_echo "no" >&6; }
3478 $as_echo "$as_me: failed program was:" >&5
3479 sed 's/^/| /' conftest.$ac_ext >&5
3481 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3482 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3483 as_fn_error 77 "C compiler cannot create executables
3484 See \`config.log' for more details" "$LINENO" 5; }
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3487 $as_echo "yes" >&6; }
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3490 $as_echo_n "checking for C compiler default output file name... " >&6; }
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3492 $as_echo "$ac_file" >&6; }
3493 ac_exeext=$ac_cv_exeext
3495 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3496 ac_clean_files=$ac_clean_files_save
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3498 $as_echo_n "checking for suffix of executables... " >&6; }
3499 if { { ac_try="$ac_link"
3501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3502 *) ac_try_echo=$ac_try;;
3504 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3505 $as_echo "$ac_try_echo"; } >&5
3506 (eval "$ac_link") 2>&5
3508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3509 test $ac_status = 0; }; then :
3510 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3511 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3512 # work properly (i.e., refer to `conftest.exe'), while it won't with
3514 for ac_file in conftest.exe conftest conftest.*; do
3515 test -f "$ac_file" || continue
3517 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3518 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3524 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3525 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3526 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3527 See \`config.log' for more details" "$LINENO" 5; }
3529 rm -f conftest conftest$ac_cv_exeext
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3531 $as_echo "$ac_cv_exeext" >&6; }
3533 rm -f conftest.$ac_ext
3534 EXEEXT=$ac_cv_exeext
3536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3537 /* end confdefs.h. */
3542 FILE *f = fopen ("conftest.out", "w");
3543 return ferror (f) || fclose (f) != 0;
3549 ac_clean_files="$ac_clean_files conftest.out"
3550 # Check that the compiler produces executables we can run. If not, either
3551 # the compiler is broken, or we cross compile.
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3553 $as_echo_n "checking whether we are cross compiling... " >&6; }
3554 if test "$cross_compiling" != yes; then
3555 { { ac_try="$ac_link"
3557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3558 *) ac_try_echo=$ac_try;;
3560 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3561 $as_echo "$ac_try_echo"; } >&5
3562 (eval "$ac_link") 2>&5
3564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3565 test $ac_status = 0; }
3566 if { ac_try='./conftest$ac_cv_exeext'
3567 { { case "(($ac_try" in
3568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3569 *) ac_try_echo=$ac_try;;
3571 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3572 $as_echo "$ac_try_echo"; } >&5
3573 (eval "$ac_try") 2>&5
3575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3576 test $ac_status = 0; }; }; then
3579 if test "$cross_compiling" = maybe; then
3582 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3583 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3584 as_fn_error $? "cannot run C compiled programs.
3585 If you meant to cross compile, use \`--host'.
3586 See \`config.log' for more details" "$LINENO" 5; }
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3591 $as_echo "$cross_compiling" >&6; }
3593 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3594 ac_clean_files=$ac_clean_files_save
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3596 $as_echo_n "checking for suffix of object files... " >&6; }
3597 if ${ac_cv_objext+:} false; then :
3598 $as_echo_n "(cached) " >&6
3600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3601 /* end confdefs.h. */
3611 rm -f conftest.o conftest.obj
3612 if { { ac_try="$ac_compile"
3614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3615 *) ac_try_echo=$ac_try;;
3617 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3618 $as_echo "$ac_try_echo"; } >&5
3619 (eval "$ac_compile") 2>&5
3621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3622 test $ac_status = 0; }; then :
3623 for ac_file in conftest.o conftest.obj conftest.*; do
3624 test -f "$ac_file" || continue;
3626 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3627 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3632 $as_echo "$as_me: failed program was:" >&5
3633 sed 's/^/| /' conftest.$ac_ext >&5
3635 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3636 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3637 as_fn_error $? "cannot compute suffix of object files: cannot compile
3638 See \`config.log' for more details" "$LINENO" 5; }
3640 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3643 $as_echo "$ac_cv_objext" >&6; }
3644 OBJEXT=$ac_cv_objext
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3647 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3648 if ${ac_cv_c_compiler_gnu+:} false; then :
3649 $as_echo_n "(cached) " >&6
3651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3652 /* end confdefs.h. */
3665 if ac_fn_c_try_compile "$LINENO"; then :
3670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3671 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3675 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3676 if test $ac_compiler_gnu = yes; then
3681 ac_test_CFLAGS=${CFLAGS+set}
3682 ac_save_CFLAGS=$CFLAGS
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3684 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3685 if ${ac_cv_prog_cc_g+:} false; then :
3686 $as_echo_n "(cached) " >&6
3688 ac_save_c_werror_flag=$ac_c_werror_flag
3689 ac_c_werror_flag=yes
3692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3693 /* end confdefs.h. */
3703 if ac_fn_c_try_compile "$LINENO"; then :
3707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3708 /* end confdefs.h. */
3718 if ac_fn_c_try_compile "$LINENO"; then :
3721 ac_c_werror_flag=$ac_save_c_werror_flag
3723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3724 /* end confdefs.h. */
3734 if ac_fn_c_try_compile "$LINENO"; then :
3737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3742 ac_c_werror_flag=$ac_save_c_werror_flag
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3745 $as_echo "$ac_cv_prog_cc_g" >&6; }
3746 if test "$ac_test_CFLAGS" = set; then
3747 CFLAGS=$ac_save_CFLAGS
3748 elif test $ac_cv_prog_cc_g = yes; then
3749 if test "$GCC" = yes; then
3755 if test "$GCC" = yes; then
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3762 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3763 if ${ac_cv_prog_cc_c89+:} false; then :
3764 $as_echo_n "(cached) " >&6
3766 ac_cv_prog_cc_c89=no
3768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3769 /* end confdefs.h. */
3772 #include <sys/types.h>
3773 #include <sys/stat.h>
3774 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3775 struct buf { int x; };
3776 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3777 static char *e (p, i)
3783 static char *f (char * (*g) (char **, int), char **p, ...)
3788 s = g (p, va_arg (v,int));
3793 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3794 function prototypes and stuff, but not '\xHH' hex character constants.
3795 These don't provoke an error unfortunately, instead are silently treated
3796 as 'x'. The following induces an error, until -std is added to get
3797 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3798 array size at least. It's necessary to write '\x00'==0 to get something
3799 that's true only with -std. */
3800 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3802 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3803 inside strings and character constants. */
3805 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3807 int test (int i, double x);
3808 struct s1 {int (*f) (int a);};
3809 struct s2 {int (*f) (double a);};
3810 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3816 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3821 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3822 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3824 CC="$ac_save_CC $ac_arg"
3825 if ac_fn_c_try_compile "$LINENO"; then :
3826 ac_cv_prog_cc_c89=$ac_arg
3828 rm -f core conftest.err conftest.$ac_objext
3829 test "x$ac_cv_prog_cc_c89" != "xno" && break
3831 rm -f conftest.$ac_ext
3836 case "x$ac_cv_prog_cc_c89" in
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3839 $as_echo "none needed" >&6; } ;;
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3842 $as_echo "unsupported" >&6; } ;;
3844 CC="$CC $ac_cv_prog_cc_c89"
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3846 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3848 if test "x$ac_cv_prog_cc_c89" != xno; then :
3853 ac_cpp='$CPP $CPPFLAGS'
3854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3858 depcc="$CC" am_compiler_list=
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3861 $as_echo_n "checking dependency style of $depcc... " >&6; }
3862 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3863 $as_echo_n "(cached) " >&6
3865 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3866 # We make a subdir and do the tests there. Otherwise we can end up
3867 # making bogus files that we don't know about and never remove. For
3868 # instance it was reported that on HP-UX the gcc test will end up
3869 # making a dummy file named `D' -- because `-MD' means `put the output
3873 # Copy depcomp to subdir because otherwise we won't find it if we're
3874 # using a relative directory.
3875 cp "$am_depcomp" conftest.dir
3877 # We will build objects and dependencies in a subdirectory because
3878 # it helps to detect inapplicable dependency modes. For instance
3879 # both Tru64's cc and ICC support -MD to output dependencies as a
3880 # side effect of compilation, but ICC will put the dependencies in
3881 # the current directory while Tru64 will put them in the object
3885 am_cv_CC_dependencies_compiler_type=none
3886 if test "$am_compiler_list" = ""; then
3887 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3890 case " $depcc " in #(
3891 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3894 for depmode in $am_compiler_list; do
3895 # Setup a source with many dependencies, because some compilers
3896 # like to wrap large dependency lists on column 80 (with \), and
3897 # we should not choose a depcomp mode which is confused by this.
3899 # We need to recreate these files for each test, as the compiler may
3900 # overwrite some of them when testing with obscure command lines.
3901 # This happens at least with the AIX C compiler.
3903 for i in 1 2 3 4 5 6; do
3904 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3905 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3906 # Solaris 8's {/usr,}/bin/sh.
3907 touch sub/conftst$i.h
3909 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3911 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3912 # mode. It turns out that the SunPro C++ compiler does not properly
3913 # handle `-M -o', and we need to detect this. Also, some Intel
3914 # versions had trouble with output in subdirs
3915 am__obj=sub/conftest.${OBJEXT-o}
3916 am__minus_obj="-o $am__obj"
3919 # This depmode causes a compiler race in universal mode.
3920 test "$am__universal" = false || continue
3923 # after this tag, mechanisms are not by side-effect, so they'll
3924 # only be used when explicitly requested
3925 if test "x$enable_dependency_tracking" = xyes; then
3931 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3932 # This compiler won't grok `-c -o', but also, the minuso test has
3933 # not run yet. These depmodes are late enough in the game, and
3934 # so weak that their functioning should not be impacted.
3935 am__obj=conftest.${OBJEXT-o}
3940 if depmode=$depmode \
3941 source=sub/conftest.c object=$am__obj \
3942 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3943 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3944 >/dev/null 2>conftest.err &&
3945 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3946 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3947 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3948 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3949 # icc doesn't choke on unknown options, it will just issue warnings
3950 # or remarks (even with -Werror). So we grep stderr for any message
3951 # that says an option was ignored or not supported.
3952 # When given -MP, icc 7.0 and 7.1 complain thusly:
3953 # icc: Command line warning: ignoring option '-M'; no argument required
3954 # The diagnosis changed in icc 8.0:
3955 # icc: Command line remark: option '-MP' not supported
3956 if (grep 'ignoring option' conftest.err ||
3957 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3958 am_cv_CC_dependencies_compiler_type=$depmode
3967 am_cv_CC_dependencies_compiler_type=none
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3972 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3973 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3976 test "x$enable_dependency_tracking" != xno \
3977 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3979 am__fastdepCC_FALSE='#'
3981 am__fastdepCC_TRUE='#'
3982 am__fastdepCC_FALSE=
3988 ac_cpp='$CPP $CPPFLAGS'
3989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3993 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3994 # On Suns, sometimes $CPP names a directory.
3995 if test -n "$CPP" && test -d "$CPP"; then
3998 if test -z "$CPP"; then
3999 if ${ac_cv_prog_CPP+:} false; then :
4000 $as_echo_n "(cached) " >&6
4002 # Double quotes because CPP needs to be expanded
4003 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4006 for ac_c_preproc_warn_flag in '' yes
4008 # Use a header file that comes with gcc, so configuring glibc
4009 # with a fresh cross-compiler works.
4010 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4011 # <limits.h> exists even on freestanding compilers.
4012 # On the NeXT, cc -E runs the code through the compiler's parser,
4013 # not just through cpp. "Syntax error" is here to catch this case.
4014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4015 /* end confdefs.h. */
4017 # include <limits.h>
4019 # include <assert.h>
4023 if ac_fn_c_try_cpp "$LINENO"; then :
4026 # Broken: fails on valid input.
4029 rm -f conftest.err conftest.i conftest.$ac_ext
4031 # OK, works on sane cases. Now check whether nonexistent headers
4032 # can be detected and how.
4033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4034 /* end confdefs.h. */
4035 #include <ac_nonexistent.h>
4037 if ac_fn_c_try_cpp "$LINENO"; then :
4038 # Broken: success on invalid input.
4041 # Passes both tests.
4045 rm -f conftest.err conftest.i conftest.$ac_ext
4048 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4049 rm -f conftest.i conftest.err conftest.$ac_ext
4050 if $ac_preproc_ok; then :
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4063 $as_echo "$CPP" >&6; }
4065 for ac_c_preproc_warn_flag in '' yes
4067 # Use a header file that comes with gcc, so configuring glibc
4068 # with a fresh cross-compiler works.
4069 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4070 # <limits.h> exists even on freestanding compilers.
4071 # On the NeXT, cc -E runs the code through the compiler's parser,
4072 # not just through cpp. "Syntax error" is here to catch this case.
4073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4074 /* end confdefs.h. */
4076 # include <limits.h>
4078 # include <assert.h>
4082 if ac_fn_c_try_cpp "$LINENO"; then :
4085 # Broken: fails on valid input.
4088 rm -f conftest.err conftest.i conftest.$ac_ext
4090 # OK, works on sane cases. Now check whether nonexistent headers
4091 # can be detected and how.
4092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4093 /* end confdefs.h. */
4094 #include <ac_nonexistent.h>
4096 if ac_fn_c_try_cpp "$LINENO"; then :
4097 # Broken: success on invalid input.
4100 # Passes both tests.
4104 rm -f conftest.err conftest.i conftest.$ac_ext
4107 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4108 rm -f conftest.i conftest.err conftest.$ac_ext
4109 if $ac_preproc_ok; then :
4112 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4113 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4114 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4115 See \`config.log' for more details" "$LINENO" 5; }
4119 ac_cpp='$CPP $CPPFLAGS'
4120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4126 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4127 if ${ac_cv_path_GREP+:} false; then :
4128 $as_echo_n "(cached) " >&6
4130 if test -z "$GREP"; then
4131 ac_path_GREP_found=false
4132 # Loop through the user's path and test for each of PROGNAME-LIST
4133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4134 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4137 test -z "$as_dir" && as_dir=.
4138 for ac_prog in grep ggrep; do
4139 for ac_exec_ext in '' $ac_executable_extensions; do
4140 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4141 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4142 # Check for GNU ac_path_GREP and select it if it is found.
4143 # Check for GNU $ac_path_GREP
4144 case `"$ac_path_GREP" --version 2>&1` in
4146 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4149 $as_echo_n 0123456789 >"conftest.in"
4152 cat "conftest.in" "conftest.in" >"conftest.tmp"
4153 mv "conftest.tmp" "conftest.in"
4154 cp "conftest.in" "conftest.nl"
4155 $as_echo 'GREP' >> "conftest.nl"
4156 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4157 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4158 as_fn_arith $ac_count + 1 && ac_count=$as_val
4159 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4160 # Best one so far, save it but keep looking for a better one
4161 ac_cv_path_GREP="$ac_path_GREP"
4162 ac_path_GREP_max=$ac_count
4164 # 10*(2^10) chars as input seems more than enough
4165 test $ac_count -gt 10 && break
4167 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4170 $ac_path_GREP_found && break 3
4175 if test -z "$ac_cv_path_GREP"; then
4176 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4179 ac_cv_path_GREP=$GREP
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4184 $as_echo "$ac_cv_path_GREP" >&6; }
4185 GREP="$ac_cv_path_GREP"
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4189 $as_echo_n "checking for egrep... " >&6; }
4190 if ${ac_cv_path_EGREP+:} false; then :
4191 $as_echo_n "(cached) " >&6
4193 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4194 then ac_cv_path_EGREP="$GREP -E"
4196 if test -z "$EGREP"; then
4197 ac_path_EGREP_found=false
4198 # Loop through the user's path and test for each of PROGNAME-LIST
4199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4200 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4203 test -z "$as_dir" && as_dir=.
4204 for ac_prog in egrep; do
4205 for ac_exec_ext in '' $ac_executable_extensions; do
4206 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4207 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4208 # Check for GNU ac_path_EGREP and select it if it is found.
4209 # Check for GNU $ac_path_EGREP
4210 case `"$ac_path_EGREP" --version 2>&1` in
4212 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4215 $as_echo_n 0123456789 >"conftest.in"
4218 cat "conftest.in" "conftest.in" >"conftest.tmp"
4219 mv "conftest.tmp" "conftest.in"
4220 cp "conftest.in" "conftest.nl"
4221 $as_echo 'EGREP' >> "conftest.nl"
4222 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4223 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4224 as_fn_arith $ac_count + 1 && ac_count=$as_val
4225 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4226 # Best one so far, save it but keep looking for a better one
4227 ac_cv_path_EGREP="$ac_path_EGREP"
4228 ac_path_EGREP_max=$ac_count
4230 # 10*(2^10) chars as input seems more than enough
4231 test $ac_count -gt 10 && break
4233 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4236 $ac_path_EGREP_found && break 3
4241 if test -z "$ac_cv_path_EGREP"; then
4242 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4245 ac_cv_path_EGREP=$EGREP
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4251 $as_echo "$ac_cv_path_EGREP" >&6; }
4252 EGREP="$ac_cv_path_EGREP"
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4256 $as_echo_n "checking for ANSI C header files... " >&6; }
4257 if ${ac_cv_header_stdc+:} false; then :
4258 $as_echo_n "(cached) " >&6
4260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4261 /* end confdefs.h. */
4275 if ac_fn_c_try_compile "$LINENO"; then :
4276 ac_cv_header_stdc=yes
4278 ac_cv_header_stdc=no
4280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4282 if test $ac_cv_header_stdc = yes; then
4283 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4285 /* end confdefs.h. */
4289 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4290 $EGREP "memchr" >/dev/null 2>&1; then :
4293 ac_cv_header_stdc=no
4299 if test $ac_cv_header_stdc = yes; then
4300 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4302 /* end confdefs.h. */
4306 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4307 $EGREP "free" >/dev/null 2>&1; then :
4310 ac_cv_header_stdc=no
4316 if test $ac_cv_header_stdc = yes; then
4317 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4318 if test "$cross_compiling" = yes; then :
4321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4322 /* end confdefs.h. */
4325 #if ((' ' & 0x0FF) == 0x020)
4326 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4327 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4329 # define ISLOWER(c) \
4330 (('a' <= (c) && (c) <= 'i') \
4331 || ('j' <= (c) && (c) <= 'r') \
4332 || ('s' <= (c) && (c) <= 'z'))
4333 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4336 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4341 for (i = 0; i < 256; i++)
4342 if (XOR (islower (i), ISLOWER (i))
4343 || toupper (i) != TOUPPER (i))
4348 if ac_fn_c_try_run "$LINENO"; then :
4351 ac_cv_header_stdc=no
4353 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4354 conftest.$ac_objext conftest.beam conftest.$ac_ext
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4360 $as_echo "$ac_cv_header_stdc" >&6; }
4361 if test $ac_cv_header_stdc = yes; then
4363 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4367 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4368 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4369 inttypes.h stdint.h unistd.h
4371 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4372 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4374 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4375 cat >>confdefs.h <<_ACEOF
4376 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4385 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4386 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4393 if test "$MINIX" = yes; then
4395 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4398 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4401 $as_echo "#define _MINIX 1" >>confdefs.h
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4407 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4408 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4409 $as_echo_n "(cached) " >&6
4411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4412 /* end confdefs.h. */
4414 # define __EXTENSIONS__ 1
4415 $ac_includes_default
4424 if ac_fn_c_try_compile "$LINENO"; then :
4425 ac_cv_safe_to_define___extensions__=yes
4427 ac_cv_safe_to_define___extensions__=no
4429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4432 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4433 test $ac_cv_safe_to_define___extensions__ = yes &&
4434 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4436 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4438 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4440 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4442 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
4447 $as_echo_n "checking whether NLS is requested... " >&6; }
4448 # Check whether --enable-nls was given.
4449 if test "${enable_nls+set}" = set; then :
4450 enableval=$enable_nls; USE_NLS=$enableval
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
4456 $as_echo "$USE_NLS" >&6; }
4461 GETTEXT_MACRO_VERSION=0.18
4466 # Prepare PATH_SEPARATOR.
4467 # The user is always right.
4468 if test "${PATH_SEPARATOR+set}" != set; then
4469 echo "#! /bin/sh" >conf$$.sh
4470 echo "exit 0" >>conf$$.sh
4472 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4480 # Find out how to test for executable files. Don't use a zero-byte file,
4481 # as systems may use methods other than mode bits to determine executability.
4482 cat >conf$$.file <<_ASEOF
4486 chmod +x conf$$.file
4487 if test -x conf$$.file >/dev/null 2>&1; then
4488 ac_executable_p="test -x"
4490 ac_executable_p="test -f"
4494 # Extract the first word of "msgfmt", so it can be a program name with args.
4495 set dummy msgfmt; ac_word=$2
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4497 $as_echo_n "checking for $ac_word... " >&6; }
4498 if ${ac_cv_path_MSGFMT+:} false; then :
4499 $as_echo_n "(cached) " >&6
4503 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4506 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4507 for ac_dir in $PATH; do
4509 test -z "$ac_dir" && ac_dir=.
4510 for ac_exec_ext in '' $ac_executable_extensions; do
4511 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4512 echo "$as_me: trying $ac_dir/$ac_word..." >&5
4513 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
4514 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4515 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4522 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4526 MSGFMT="$ac_cv_path_MSGFMT"
4527 if test "$MSGFMT" != ":"; then
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
4529 $as_echo "$MSGFMT" >&6; }
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4532 $as_echo "no" >&6; }
4535 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4536 set dummy gmsgfmt; ac_word=$2
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4538 $as_echo_n "checking for $ac_word... " >&6; }
4539 if ${ac_cv_path_GMSGFMT+:} false; then :
4540 $as_echo_n "(cached) " >&6
4544 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4551 test -z "$as_dir" && as_dir=.
4552 for ac_exec_ext in '' $ac_executable_extensions; do
4553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4554 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4562 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4566 GMSGFMT=$ac_cv_path_GMSGFMT
4567 if test -n "$GMSGFMT"; then
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
4569 $as_echo "$GMSGFMT" >&6; }
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4572 $as_echo "no" >&6; }
4577 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4578 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
4579 *) MSGFMT_015=$MSGFMT ;;
4582 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4583 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
4584 *) GMSGFMT_015=$GMSGFMT ;;
4589 # Prepare PATH_SEPARATOR.
4590 # The user is always right.
4591 if test "${PATH_SEPARATOR+set}" != set; then
4592 echo "#! /bin/sh" >conf$$.sh
4593 echo "exit 0" >>conf$$.sh
4595 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4603 # Find out how to test for executable files. Don't use a zero-byte file,
4604 # as systems may use methods other than mode bits to determine executability.
4605 cat >conf$$.file <<_ASEOF
4609 chmod +x conf$$.file
4610 if test -x conf$$.file >/dev/null 2>&1; then
4611 ac_executable_p="test -x"
4613 ac_executable_p="test -f"
4617 # Extract the first word of "xgettext", so it can be a program name with args.
4618 set dummy xgettext; ac_word=$2
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4620 $as_echo_n "checking for $ac_word... " >&6; }
4621 if ${ac_cv_path_XGETTEXT+:} false; then :
4622 $as_echo_n "(cached) " >&6
4626 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4629 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4630 for ac_dir in $PATH; do
4632 test -z "$ac_dir" && ac_dir=.
4633 for ac_exec_ext in '' $ac_executable_extensions; do
4634 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4635 echo "$as_me: trying $ac_dir/$ac_word..." >&5
4636 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
4637 (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
4638 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
4645 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4649 XGETTEXT="$ac_cv_path_XGETTEXT"
4650 if test "$XGETTEXT" != ":"; then
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
4652 $as_echo "$XGETTEXT" >&6; }
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4655 $as_echo "no" >&6; }
4660 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4661 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
4662 *) XGETTEXT_015=$XGETTEXT ;;
4667 # Prepare PATH_SEPARATOR.
4668 # The user is always right.
4669 if test "${PATH_SEPARATOR+set}" != set; then
4670 echo "#! /bin/sh" >conf$$.sh
4671 echo "exit 0" >>conf$$.sh
4673 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4681 # Find out how to test for executable files. Don't use a zero-byte file,
4682 # as systems may use methods other than mode bits to determine executability.
4683 cat >conf$$.file <<_ASEOF
4687 chmod +x conf$$.file
4688 if test -x conf$$.file >/dev/null 2>&1; then
4689 ac_executable_p="test -x"
4691 ac_executable_p="test -f"
4695 # Extract the first word of "msgmerge", so it can be a program name with args.
4696 set dummy msgmerge; ac_word=$2
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4698 $as_echo_n "checking for $ac_word... " >&6; }
4699 if ${ac_cv_path_MSGMERGE+:} false; then :
4700 $as_echo_n "(cached) " >&6
4704 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
4707 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4708 for ac_dir in $PATH; do
4710 test -z "$ac_dir" && ac_dir=.
4711 for ac_exec_ext in '' $ac_executable_extensions; do
4712 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4713 echo "$as_me: trying $ac_dir/$ac_word..." >&5
4714 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
4715 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
4722 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
4726 MSGMERGE="$ac_cv_path_MSGMERGE"
4727 if test "$MSGMERGE" != ":"; then
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
4729 $as_echo "$MSGMERGE" >&6; }
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4732 $as_echo "no" >&6; }
4736 test -n "$localedir" || localedir='${datadir}/locale'
4739 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
4742 ac_config_commands="$ac_config_commands po-directories"
4745 # Make sure we can run config.sub.
4746 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4747 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4750 $as_echo_n "checking build system type... " >&6; }
4751 if ${ac_cv_build+:} false; then :
4752 $as_echo_n "(cached) " >&6
4754 ac_build_alias=$build_alias
4755 test "x$ac_build_alias" = x &&
4756 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4757 test "x$ac_build_alias" = x &&
4758 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4759 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4760 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4764 $as_echo "$ac_cv_build" >&6; }
4765 case $ac_cv_build in
4767 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4770 ac_save_IFS=$IFS; IFS='-'
4776 # Remember, the first character of IFS is used to create $*,
4777 # except with old shells:
4780 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4784 $as_echo_n "checking host system type... " >&6; }
4785 if ${ac_cv_host+:} false; then :
4786 $as_echo_n "(cached) " >&6
4788 if test "x$host_alias" = x; then
4789 ac_cv_host=$ac_cv_build
4791 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4792 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4797 $as_echo "$ac_cv_host" >&6; }
4800 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4803 ac_save_IFS=$IFS; IFS='-'
4809 # Remember, the first character of IFS is used to create $*,
4810 # except with old shells:
4813 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
4818 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
4819 if ${ac_cv_gnu_library_2+:} false; then :
4820 $as_echo_n "(cached) " >&6
4822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4823 /* end confdefs.h. */
4825 #include <features.h>
4826 #ifdef __GNU_LIBRARY__
4827 #if (__GLIBC__ >= 2)
4833 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4834 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
4835 ac_cv_gnu_library_2=yes
4837 ac_cv_gnu_library_2=no
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
4845 $as_echo "$ac_cv_gnu_library_2" >&6; }
4847 GLIBC2="$ac_cv_gnu_library_2"
4850 if test -n "$ac_tool_prefix"; then
4851 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4852 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4854 $as_echo_n "checking for $ac_word... " >&6; }
4855 if ${ac_cv_prog_RANLIB+:} false; then :
4856 $as_echo_n "(cached) " >&6
4858 if test -n "$RANLIB"; then
4859 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4865 test -z "$as_dir" && as_dir=.
4866 for ac_exec_ext in '' $ac_executable_extensions; do
4867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4868 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4878 RANLIB=$ac_cv_prog_RANLIB
4879 if test -n "$RANLIB"; then
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4881 $as_echo "$RANLIB" >&6; }
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4884 $as_echo "no" >&6; }
4889 if test -z "$ac_cv_prog_RANLIB"; then
4890 ac_ct_RANLIB=$RANLIB
4891 # Extract the first word of "ranlib", so it can be a program name with args.
4892 set dummy ranlib; ac_word=$2
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4894 $as_echo_n "checking for $ac_word... " >&6; }
4895 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4896 $as_echo_n "(cached) " >&6
4898 if test -n "$ac_ct_RANLIB"; then
4899 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4905 test -z "$as_dir" && as_dir=.
4906 for ac_exec_ext in '' $ac_executable_extensions; do
4907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4908 ac_cv_prog_ac_ct_RANLIB="ranlib"
4909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4918 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4919 if test -n "$ac_ct_RANLIB"; then
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4921 $as_echo "$ac_ct_RANLIB" >&6; }
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4924 $as_echo "no" >&6; }
4927 if test "x$ac_ct_RANLIB" = x; then
4930 case $cross_compiling:$ac_tool_warned in
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4933 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4934 ac_tool_warned=yes ;;
4936 RANLIB=$ac_ct_RANLIB
4939 RANLIB="$ac_cv_prog_RANLIB"
4946 if test -n "$GCC"; then
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
4948 $as_echo_n "checking whether the -Werror option is usable... " >&6; }
4949 if ${gl_cv_cc_vis_werror+:} false; then :
4950 $as_echo_n "(cached) " >&6
4953 gl_save_CFLAGS="$CFLAGS"
4954 CFLAGS="$CFLAGS -Werror"
4955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4956 /* end confdefs.h. */
4966 if ac_fn_c_try_compile "$LINENO"; then :
4967 gl_cv_cc_vis_werror=yes
4969 gl_cv_cc_vis_werror=no
4971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4972 CFLAGS="$gl_save_CFLAGS"
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
4976 $as_echo "$gl_cv_cc_vis_werror" >&6; }
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
4978 $as_echo_n "checking for simple visibility declarations... " >&6; }
4979 if ${gl_cv_cc_visibility+:} false; then :
4980 $as_echo_n "(cached) " >&6
4983 gl_save_CFLAGS="$CFLAGS"
4984 CFLAGS="$CFLAGS -fvisibility=hidden"
4985 if test $gl_cv_cc_vis_werror = yes; then
4986 CFLAGS="$CFLAGS -Werror"
4988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4989 /* end confdefs.h. */
4990 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
4991 extern __attribute__((__visibility__("default"))) int exportedvar;
4992 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
4993 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
4994 void dummyfunc (void) {}
5003 if ac_fn_c_try_compile "$LINENO"; then :
5004 gl_cv_cc_visibility=yes
5006 gl_cv_cc_visibility=no
5008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5009 CFLAGS="$gl_save_CFLAGS"
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
5013 $as_echo "$gl_cv_cc_visibility" >&6; }
5014 if test $gl_cv_cc_visibility = yes; then
5015 CFLAG_VISIBILITY="-fvisibility=hidden"
5022 cat >>confdefs.h <<_ACEOF
5023 #define HAVE_VISIBILITY $HAVE_VISIBILITY
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5028 $as_echo_n "checking for inline... " >&6; }
5029 if ${ac_cv_c_inline+:} false; then :
5030 $as_echo_n "(cached) " >&6
5033 for ac_kw in inline __inline__ __inline; do
5034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5035 /* end confdefs.h. */
5038 static $ac_kw foo_t static_foo () {return 0; }
5039 $ac_kw foo_t foo () {return 0; }
5043 if ac_fn_c_try_compile "$LINENO"; then :
5044 ac_cv_c_inline=$ac_kw
5046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5047 test "$ac_cv_c_inline" != no && break
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5052 $as_echo "$ac_cv_c_inline" >&6; }
5054 case $ac_cv_c_inline in
5057 case $ac_cv_c_inline in
5059 *) ac_val=$ac_cv_c_inline;;
5061 cat >>confdefs.h <<_ACEOF
5063 #define inline $ac_val
5069 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5070 if test "x$ac_cv_type_size_t" = xyes; then :
5074 cat >>confdefs.h <<_ACEOF
5075 #define size_t unsigned int
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
5082 $as_echo_n "checking for stdint.h... " >&6; }
5083 if ${gl_cv_header_stdint_h+:} false; then :
5084 $as_echo_n "(cached) " >&6
5086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5087 /* end confdefs.h. */
5088 #include <sys/types.h>
5093 uintmax_t i = (uintmax_t) -1; return !i;
5098 if ac_fn_c_try_compile "$LINENO"; then :
5099 gl_cv_header_stdint_h=yes
5101 gl_cv_header_stdint_h=no
5103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
5106 $as_echo "$gl_cv_header_stdint_h" >&6; }
5107 if test $gl_cv_header_stdint_h = yes; then
5109 cat >>confdefs.h <<_ACEOF
5110 #define HAVE_STDINT_H_WITH_UINTMAX 1
5115 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5116 # for constant arguments. Useless!
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5118 $as_echo_n "checking for working alloca.h... " >&6; }
5119 if ${ac_cv_working_alloca_h+:} false; then :
5120 $as_echo_n "(cached) " >&6
5122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5123 /* end confdefs.h. */
5128 char *p = (char *) alloca (2 * sizeof (int));
5134 if ac_fn_c_try_link "$LINENO"; then :
5135 ac_cv_working_alloca_h=yes
5137 ac_cv_working_alloca_h=no
5139 rm -f core conftest.err conftest.$ac_objext \
5140 conftest$ac_exeext conftest.$ac_ext
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5143 $as_echo "$ac_cv_working_alloca_h" >&6; }
5144 if test $ac_cv_working_alloca_h = yes; then
5146 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5151 $as_echo_n "checking for alloca... " >&6; }
5152 if ${ac_cv_func_alloca_works+:} false; then :
5153 $as_echo_n "(cached) " >&6
5155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5156 /* end confdefs.h. */
5158 # define alloca __builtin_alloca
5161 # include <malloc.h>
5162 # define alloca _alloca
5164 # ifdef HAVE_ALLOCA_H
5165 # include <alloca.h>
5170 # ifndef alloca /* predefined by HP cc +Olibcalls */
5171 void *alloca (size_t);
5181 char *p = (char *) alloca (1);
5187 if ac_fn_c_try_link "$LINENO"; then :
5188 ac_cv_func_alloca_works=yes
5190 ac_cv_func_alloca_works=no
5192 rm -f core conftest.err conftest.$ac_objext \
5193 conftest$ac_exeext conftest.$ac_ext
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5196 $as_echo "$ac_cv_func_alloca_works" >&6; }
5198 if test $ac_cv_func_alloca_works = yes; then
5200 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
5203 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5204 # that cause trouble. Some versions do not even contain alloca or
5205 # contain a buggy version. If you still want to use their alloca,
5206 # use ar to extract alloca.o from them instead of compiling alloca.c.
5208 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5210 $as_echo "#define C_ALLOCA 1" >>confdefs.h
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
5214 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
5215 if ${ac_cv_os_cray+:} false; then :
5216 $as_echo_n "(cached) " >&6
5218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5219 /* end confdefs.h. */
5220 #if defined CRAY && ! defined CRAY2
5227 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5228 $EGREP "webecray" >/dev/null 2>&1; then :
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5237 $as_echo "$ac_cv_os_cray" >&6; }
5238 if test $ac_cv_os_cray = yes; then
5239 for ac_func in _getb67 GETB67 getb67; do
5240 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5241 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5242 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5244 cat >>confdefs.h <<_ACEOF
5245 #define CRAY_STACKSEG_END $ac_func
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5255 $as_echo_n "checking stack direction for C alloca... " >&6; }
5256 if ${ac_cv_c_stack_direction+:} false; then :
5257 $as_echo_n "(cached) " >&6
5259 if test "$cross_compiling" = yes; then :
5260 ac_cv_c_stack_direction=0
5262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5263 /* end confdefs.h. */
5264 $ac_includes_default
5266 find_stack_direction ()
5268 static char *addr = 0;
5273 return find_stack_direction ();
5276 return (&dummy > addr) ? 1 : -1;
5282 return find_stack_direction () < 0;
5285 if ac_fn_c_try_run "$LINENO"; then :
5286 ac_cv_c_stack_direction=1
5288 ac_cv_c_stack_direction=-1
5290 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5291 conftest.$ac_objext conftest.beam conftest.$ac_ext
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5296 $as_echo "$ac_cv_c_stack_direction" >&6; }
5297 cat >>confdefs.h <<_ACEOF
5298 #define STACK_DIRECTION $ac_cv_c_stack_direction
5307 for ac_header in $ac_header_list
5309 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5310 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5312 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5313 cat >>confdefs.h <<_ACEOF
5314 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5328 for ac_func in getpagesize
5330 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
5331 if test "x$ac_cv_func_getpagesize" = xyes; then :
5332 cat >>confdefs.h <<_ACEOF
5333 #define HAVE_GETPAGESIZE 1
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
5340 $as_echo_n "checking for working mmap... " >&6; }
5341 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
5342 $as_echo_n "(cached) " >&6
5344 if test "$cross_compiling" = yes; then :
5345 ac_cv_func_mmap_fixed_mapped=no
5347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5348 /* end confdefs.h. */
5349 $ac_includes_default
5350 /* malloc might have been renamed as rpl_malloc. */
5353 /* Thanks to Mike Haertel and Jim Avera for this test.
5354 Here is a matrix of mmap possibilities:
5355 mmap private not fixed
5356 mmap private fixed at somewhere currently unmapped
5357 mmap private fixed at somewhere already mapped
5358 mmap shared not fixed
5359 mmap shared fixed at somewhere currently unmapped
5360 mmap shared fixed at somewhere already mapped
5361 For private mappings, we should verify that changes cannot be read()
5362 back from the file, nor mmap's back from the file at a different
5363 address. (There have been systems where private was not correctly
5364 implemented like the infamous i386 svr4.0, and systems where the
5365 VM page cache was not coherent with the file system buffer cache
5366 like early versions of FreeBSD and possibly contemporary NetBSD.)
5367 For shared mappings, we should conversely verify that changes get
5368 propagated back to all the places they're supposed to be.
5370 Grep wants private fixed already mapped.
5371 The main things grep needs to know about mmap are:
5372 * does it exist and is it safe to write into the mmap'd area
5373 * how to use it (BSD variants) */
5376 #include <sys/mman.h>
5378 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
5382 /* This mess was copied from the GNU getpagesize.h. */
5383 #ifndef HAVE_GETPAGESIZE
5384 # ifdef _SC_PAGESIZE
5385 # define getpagesize() sysconf(_SC_PAGESIZE)
5386 # else /* no _SC_PAGESIZE */
5387 # ifdef HAVE_SYS_PARAM_H
5388 # include <sys/param.h>
5389 # ifdef EXEC_PAGESIZE
5390 # define getpagesize() EXEC_PAGESIZE
5391 # else /* no EXEC_PAGESIZE */
5393 # define getpagesize() NBPG * CLSIZE
5396 # endif /* no CLSIZE */
5397 # else /* no NBPG */
5399 # define getpagesize() NBPC
5400 # else /* no NBPC */
5402 # define getpagesize() PAGESIZE
5403 # endif /* PAGESIZE */
5404 # endif /* no NBPC */
5405 # endif /* no NBPG */
5406 # endif /* no EXEC_PAGESIZE */
5407 # else /* no HAVE_SYS_PARAM_H */
5408 # define getpagesize() 8192 /* punt totally */
5409 # endif /* no HAVE_SYS_PARAM_H */
5410 # endif /* no _SC_PAGESIZE */
5412 #endif /* no HAVE_GETPAGESIZE */
5417 char *data, *data2, *data3;
5422 pagesize = getpagesize ();
5424 /* First, make a file with some known garbage in it. */
5425 data = (char *) malloc (pagesize);
5428 for (i = 0; i < pagesize; ++i)
5429 *(data + i) = rand ();
5431 fd = creat ("conftest.mmap", 0600);
5434 if (write (fd, data, pagesize) != pagesize)
5438 /* Next, check that the tail of a page is zero-filled. File must have
5439 non-zero length, otherwise we risk SIGBUS for entire page. */
5440 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
5444 if (write (fd2, cdata2, 1) != 1)
5446 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
5447 if (data2 == MAP_FAILED)
5449 for (i = 0; i < pagesize; ++i)
5453 if (munmap (data2, pagesize))
5456 /* Next, try to mmap the file at a fixed address which already has
5457 something else allocated at it. If we can, also make sure that
5458 we see the same garbage. */
5459 fd = open ("conftest.mmap", O_RDWR);
5462 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
5463 MAP_PRIVATE | MAP_FIXED, fd, 0L))
5465 for (i = 0; i < pagesize; ++i)
5466 if (*(data + i) != *(data2 + i))
5469 /* Finally, make sure that changes to the mapped area do not
5470 percolate back to the file as seen by read(). (This is a bug on
5471 some variants of i386 svr4.0.) */
5472 for (i = 0; i < pagesize; ++i)
5473 *(data2 + i) = *(data2 + i) + 1;
5474 data3 = (char *) malloc (pagesize);
5477 if (read (fd, data3, pagesize) != pagesize)
5479 for (i = 0; i < pagesize; ++i)
5480 if (*(data + i) != *(data3 + i))
5486 if ac_fn_c_try_run "$LINENO"; then :
5487 ac_cv_func_mmap_fixed_mapped=yes
5489 ac_cv_func_mmap_fixed_mapped=no
5491 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5492 conftest.$ac_objext conftest.beam conftest.$ac_ext
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
5497 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
5498 if test $ac_cv_func_mmap_fixed_mapped = yes; then
5500 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
5503 rm -f conftest.mmap conftest.txt
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
5508 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
5509 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
5510 $as_echo_n "(cached) " >&6
5513 gt_cv_int_divbyzero_sigfpe=
5515 macos* | darwin[6-9]* | darwin[1-9][0-9]*)
5516 # On MacOS X 10.2 or newer, just assume the same as when cross-
5517 # compiling. If we were to perform the real test, 1 Crash Report
5518 # dialog window would pop up.
5520 i[34567]86 | x86_64)
5521 gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
5525 if test -z "$gt_cv_int_divbyzero_sigfpe"; then
5526 if test "$cross_compiling" = yes; then :
5528 # Guess based on the CPU.
5530 alpha* | i[34567]86 | x86_64 | m68k | s390*)
5531 gt_cv_int_divbyzero_sigfpe="guessing yes";;
5533 gt_cv_int_divbyzero_sigfpe="guessing no";;
5537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5538 /* end confdefs.h. */
5544 sigfpe_handler (int sig)
5546 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
5547 exit (sig != SIGFPE);
5557 signal (SIGFPE, sigfpe_handler);
5558 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
5559 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
5560 signal (SIGTRAP, sigfpe_handler);
5562 /* Linux/SPARC yields signal SIGILL. */
5563 #if defined (__sparc__) && defined (__linux__)
5564 signal (SIGILL, sigfpe_handler);
5573 if ac_fn_c_try_run "$LINENO"; then :
5574 gt_cv_int_divbyzero_sigfpe=yes
5576 gt_cv_int_divbyzero_sigfpe=no
5578 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5579 conftest.$ac_objext conftest.beam conftest.$ac_ext
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
5586 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
5587 case "$gt_cv_int_divbyzero_sigfpe" in
5592 cat >>confdefs.h <<_ACEOF
5593 #define INTDIV0_RAISES_SIGFPE $value
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
5599 $as_echo_n "checking for inttypes.h... " >&6; }
5600 if ${gl_cv_header_inttypes_h+:} false; then :
5601 $as_echo_n "(cached) " >&6
5603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5604 /* end confdefs.h. */
5605 #include <sys/types.h>
5606 #include <inttypes.h>
5610 uintmax_t i = (uintmax_t) -1; return !i;
5615 if ac_fn_c_try_compile "$LINENO"; then :
5616 gl_cv_header_inttypes_h=yes
5618 gl_cv_header_inttypes_h=no
5620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
5623 $as_echo "$gl_cv_header_inttypes_h" >&6; }
5624 if test $gl_cv_header_inttypes_h = yes; then
5626 cat >>confdefs.h <<_ACEOF
5627 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
5634 $as_echo_n "checking for unsigned long long int... " >&6; }
5635 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
5636 $as_echo_n "(cached) " >&6
5638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5639 /* end confdefs.h. */
5641 /* For now, do not test the preprocessor; as of 2007 there are too many
5642 implementations with broken preprocessors. Perhaps this can
5643 be revisited in 2012. In the meantime, code should not expect
5644 #if to work with literals wider than 32 bits. */
5645 /* Test literals. */
5646 long long int ll = 9223372036854775807ll;
5647 long long int nll = -9223372036854775807LL;
5648 unsigned long long int ull = 18446744073709551615ULL;
5649 /* Test constant expressions. */
5650 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5652 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5658 /* Test availability of runtime routines for shift and division. */
5659 long long int llmax = 9223372036854775807ll;
5660 unsigned long long int ullmax = 18446744073709551615ull;
5661 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5662 | (llmax / ll) | (llmax % ll)
5663 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5664 | (ullmax / ull) | (ullmax % ull));
5670 if ac_fn_c_try_link "$LINENO"; then :
5671 ac_cv_type_unsigned_long_long_int=yes
5673 ac_cv_type_unsigned_long_long_int=no
5675 rm -f core conftest.err conftest.$ac_objext \
5676 conftest$ac_exeext conftest.$ac_ext
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
5679 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
5680 if test $ac_cv_type_unsigned_long_long_int = yes; then
5682 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
5689 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
5691 test $ac_cv_type_unsigned_long_long_int = yes \
5692 && ac_type='unsigned long long' \
5693 || ac_type='unsigned long'
5695 cat >>confdefs.h <<_ACEOF
5696 #define uintmax_t $ac_type
5701 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
5706 for ac_header in inttypes.h
5708 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
5709 if test "x$ac_cv_header_inttypes_h" = xyes; then :
5710 cat >>confdefs.h <<_ACEOF
5711 #define HAVE_INTTYPES_H 1
5718 if test $ac_cv_header_inttypes_h = yes; then
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
5720 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
5721 if ${gt_cv_inttypes_pri_broken+:} false; then :
5722 $as_echo_n "(cached) " >&6
5725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5726 /* end confdefs.h. */
5727 #include <inttypes.h>
5740 if ac_fn_c_try_compile "$LINENO"; then :
5741 gt_cv_inttypes_pri_broken=no
5743 gt_cv_inttypes_pri_broken=yes
5745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
5749 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
5751 if test "$gt_cv_inttypes_pri_broken" = yes; then
5753 cat >>confdefs.h <<_ACEOF
5754 #define PRI_MACROS_BROKEN 1
5768 # Check whether --enable-threads was given.
5769 if test "${enable_threads+set}" = set; then :
5770 enableval=$enable_threads; gl_use_threads=$enableval
5772 if test -n "$gl_use_threads_default"; then
5773 gl_use_threads="$gl_use_threads_default"
5776 osf*) gl_use_threads=no ;;
5779 1.[0-5].*) gl_use_threads=no ;;
5780 *) gl_use_threads=yes ;;
5783 *) gl_use_threads=yes ;;
5789 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
5790 # For using <pthread.h>:
5793 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
5794 # groks <pthread.h>. cc also understands the flag -pthread, but
5795 # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
5796 # 2. putting a flag into CPPFLAGS that has an effect on the linker
5797 # causes the AC_TRY_LINK test below to succeed unexpectedly,
5798 # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
5799 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
5802 # Some systems optimize for single-threaded programs by default, and
5803 # need special flags to disable these optimizations. For example, the
5804 # definition of 'errno' in <errno.h>.
5806 aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
5807 solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
5815 if test "X$prefix" = "XNONE"; then
5816 acl_final_prefix="$ac_default_prefix"
5818 acl_final_prefix="$prefix"
5820 if test "X$exec_prefix" = "XNONE"; then
5821 acl_final_exec_prefix='${prefix}'
5823 acl_final_exec_prefix="$exec_prefix"
5825 acl_save_prefix="$prefix"
5826 prefix="$acl_final_prefix"
5827 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5828 prefix="$acl_save_prefix"
5831 # Check whether --with-gnu-ld was given.
5832 if test "${with_gnu_ld+set}" = set; then :
5833 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5838 # Prepare PATH_SEPARATOR.
5839 # The user is always right.
5840 if test "${PATH_SEPARATOR+set}" != set; then
5841 echo "#! /bin/sh" >conf$$.sh
5842 echo "exit 0" >>conf$$.sh
5844 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5852 if test "$GCC" = yes; then
5853 # Check if gcc -print-prog-name=ld gives a path.
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
5855 $as_echo_n "checking for ld used by GCC... " >&6; }
5858 # gcc leaves a trailing carriage return which upsets mingw
5859 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5861 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5864 # Accept absolute paths.
5865 [\\/]* | [A-Za-z]:[\\/]*)
5866 re_direlt='/[^/][^/]*/\.\./'
5867 # Canonicalize the path of ld
5868 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5869 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5870 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5872 test -z "$LD" && LD="$ac_prog"
5875 # If it fails, then pretend we aren't using GCC.
5879 # If it is relative, then search for the first ld in PATH.
5883 elif test "$with_gnu_ld" = yes; then
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5885 $as_echo_n "checking for GNU ld... " >&6; }
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5888 $as_echo_n "checking for non-GNU ld... " >&6; }
5890 if ${acl_cv_path_LD+:} false; then :
5891 $as_echo_n "(cached) " >&6
5893 if test -z "$LD"; then
5894 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5895 for ac_dir in $PATH; do
5896 test -z "$ac_dir" && ac_dir=.
5897 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5898 acl_cv_path_LD="$ac_dir/$ac_prog"
5899 # Check to see if the program is GNU ld. I'd rather use --version,
5900 # but apparently some GNU ld's only accept -v.
5901 # Break only if it was the GNU/non-GNU ld that we prefer.
5902 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
5903 *GNU* | *'with BFD'*)
5904 test "$with_gnu_ld" != no && break ;;
5906 test "$with_gnu_ld" != yes && break ;;
5912 acl_cv_path_LD="$LD" # Let the user override the test with a path.
5916 LD="$acl_cv_path_LD"
5917 if test -n "$LD"; then
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5919 $as_echo "$LD" >&6; }
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5922 $as_echo "no" >&6; }
5924 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5926 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5927 if ${acl_cv_prog_gnu_ld+:} false; then :
5928 $as_echo_n "(cached) " >&6
5930 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5931 case `$LD -v 2>&1 </dev/null` in
5932 *GNU* | *'with BFD'*)
5933 acl_cv_prog_gnu_ld=yes ;;
5935 acl_cv_prog_gnu_ld=no ;;
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
5939 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
5940 with_gnu_ld=$acl_cv_prog_gnu_ld
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
5946 $as_echo_n "checking for shared library run path origin... " >&6; }
5947 if ${acl_cv_rpath+:} false; then :
5948 $as_echo_n "(cached) " >&6
5951 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5952 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
5959 $as_echo "$acl_cv_rpath" >&6; }
5961 acl_libext="$acl_cv_libext"
5962 acl_shlibext="$acl_cv_shlibext"
5963 acl_libname_spec="$acl_cv_libname_spec"
5964 acl_library_names_spec="$acl_cv_library_names_spec"
5965 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5966 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5967 acl_hardcode_direct="$acl_cv_hardcode_direct"
5968 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
5969 # Check whether --enable-rpath was given.
5970 if test "${enable_rpath+set}" = set; then :
5971 enableval=$enable_rpath; :
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
5984 $as_echo_n "checking for 64-bit host... " >&6; }
5985 if ${gl_cv_solaris_64bit+:} false; then :
5986 $as_echo_n "(cached) " >&6
5988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5989 /* end confdefs.h. */
5996 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5997 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
5998 gl_cv_solaris_64bit=yes
6000 gl_cv_solaris_64bit=no
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
6007 $as_echo "$gl_cv_solaris_64bit" >&6; }
6008 if test $gl_cv_solaris_64bit = yes; then
6009 acl_libdirstem=lib/64
6011 sparc*) acl_libdirstem2=lib/sparcv9 ;;
6012 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
6017 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
6018 if test -n "$searchpath"; then
6019 acl_save_IFS="${IFS= }"; IFS=":"
6020 for searchdir in $searchpath; do
6021 if test -d "$searchdir"; then
6022 case "$searchdir" in
6023 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
6025 # Better ignore directories of this form. They are misleading.
6027 *) searchdir=`cd "$searchdir" && pwd`
6028 case "$searchdir" in
6029 */lib64 ) acl_libdirstem=lib64 ;;
6038 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
6047 if test "$gl_use_threads" != no; then
6048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
6049 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
6050 if ${gl_cv_have_weak+:} false; then :
6051 $as_echo_n "(cached) " >&6
6054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6055 /* end confdefs.h. */
6056 extern void xyzzy ();
6066 if ac_fn_c_try_link "$LINENO"; then :
6067 gl_cv_have_weak=maybe
6069 rm -f core conftest.err conftest.$ac_objext \
6070 conftest$ac_exeext conftest.$ac_ext
6071 if test $gl_cv_have_weak = maybe; then
6072 if test "$cross_compiling" = yes; then :
6073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6074 /* end confdefs.h. */
6076 Extensible Linking Format
6080 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6081 $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
6082 gl_cv_have_weak="guessing yes"
6084 gl_cv_have_weak="guessing no"
6090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6091 /* end confdefs.h. */
6097 return (fputs == NULL);
6100 if ac_fn_c_try_run "$LINENO"; then :
6105 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6106 conftest.$ac_objext conftest.beam conftest.$ac_ext
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
6113 $as_echo "$gl_cv_have_weak" >&6; }
6114 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
6115 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
6116 # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
6117 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
6118 if test "x$ac_cv_header_pthread_h" = xyes; then :
6119 gl_have_pthread_h=yes
6121 gl_have_pthread_h=no
6125 if test "$gl_have_pthread_h" = yes; then
6126 # Other possible tests:
6127 # -lpthreads (FSU threads, PCthreads)
6130 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
6131 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
6132 # the second one only in libpthread, and lock.c needs it.
6133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6134 /* end confdefs.h. */
6135 #include <pthread.h>
6139 pthread_mutex_lock((pthread_mutex_t*)0);
6140 pthread_mutexattr_init((pthread_mutexattr_t*)0);
6145 if ac_fn_c_try_link "$LINENO"; then :
6148 rm -f core conftest.err conftest.$ac_objext \
6149 conftest$ac_exeext conftest.$ac_ext
6150 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
6151 # since it is defined as a macro on OSF/1.)
6152 if test -n "$gl_have_pthread"; then
6153 # The program links fine without libpthread. But it may actually
6154 # need to link with libpthread in order to create multiple threads.
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
6156 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
6157 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
6158 $as_echo_n "(cached) " >&6
6160 ac_check_lib_save_LIBS=$LIBS
6161 LIBS="-lpthread $LIBS"
6162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6163 /* end confdefs.h. */
6165 /* Override any GCC internal prototype to avoid an error.
6166 Use char because int might match the return type of a GCC
6167 builtin and then its argument prototype would still apply. */
6171 char pthread_kill ();
6175 return pthread_kill ();
6180 if ac_fn_c_try_link "$LINENO"; then :
6181 ac_cv_lib_pthread_pthread_kill=yes
6183 ac_cv_lib_pthread_pthread_kill=no
6185 rm -f core conftest.err conftest.$ac_objext \
6186 conftest$ac_exeext conftest.$ac_ext
6187 LIBS=$ac_check_lib_save_LIBS
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
6190 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
6191 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
6192 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
6193 # On Solaris and HP-UX, most pthread functions exist also in libc.
6194 # Therefore pthread_in_use() needs to actually try to create a
6195 # thread: pthread_create from libc will fail, whereas
6196 # pthread_create will actually create a thread.
6200 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
6207 # Some library is needed. Try libpthread and libc_r.
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
6209 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
6210 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
6211 $as_echo_n "(cached) " >&6
6213 ac_check_lib_save_LIBS=$LIBS
6214 LIBS="-lpthread $LIBS"
6215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6216 /* end confdefs.h. */
6218 /* Override any GCC internal prototype to avoid an error.
6219 Use char because int might match the return type of a GCC
6220 builtin and then its argument prototype would still apply. */
6224 char pthread_kill ();
6228 return pthread_kill ();
6233 if ac_fn_c_try_link "$LINENO"; then :
6234 ac_cv_lib_pthread_pthread_kill=yes
6236 ac_cv_lib_pthread_pthread_kill=no
6238 rm -f core conftest.err conftest.$ac_objext \
6239 conftest$ac_exeext conftest.$ac_ext
6240 LIBS=$ac_check_lib_save_LIBS
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
6243 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
6244 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
6246 LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
6247 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
6250 if test -z "$gl_have_pthread"; then
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
6253 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
6254 if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
6255 $as_echo_n "(cached) " >&6
6257 ac_check_lib_save_LIBS=$LIBS
6259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6260 /* end confdefs.h. */
6262 /* Override any GCC internal prototype to avoid an error.
6263 Use char because int might match the return type of a GCC
6264 builtin and then its argument prototype would still apply. */
6268 char pthread_kill ();
6272 return pthread_kill ();
6277 if ac_fn_c_try_link "$LINENO"; then :
6278 ac_cv_lib_c_r_pthread_kill=yes
6280 ac_cv_lib_c_r_pthread_kill=no
6282 rm -f core conftest.err conftest.$ac_objext \
6283 conftest$ac_exeext conftest.$ac_ext
6284 LIBS=$ac_check_lib_save_LIBS
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
6287 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
6288 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
6290 LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
6291 LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
6296 if test -n "$gl_have_pthread"; then
6297 gl_threads_api=posix
6299 $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
6301 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
6302 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
6304 $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
6313 if test -z "$gl_have_pthread"; then
6314 if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
6315 gl_have_solaristhread=
6316 gl_save_LIBS="$LIBS"
6317 LIBS="$LIBS -lthread"
6318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6319 /* end confdefs.h. */
6330 if ac_fn_c_try_link "$LINENO"; then :
6331 gl_have_solaristhread=yes
6333 rm -f core conftest.err conftest.$ac_objext \
6334 conftest$ac_exeext conftest.$ac_ext
6335 LIBS="$gl_save_LIBS"
6336 if test -n "$gl_have_solaristhread"; then
6337 gl_threads_api=solaris
6339 LTLIBTHREAD=-lthread
6340 LIBMULTITHREAD="$LIBTHREAD"
6341 LTLIBMULTITHREAD="$LTLIBTHREAD"
6343 $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
6345 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
6347 $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
6355 if test "$gl_use_threads" = pth; then
6356 gl_save_CPPFLAGS="$CPPFLAGS"
6362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
6363 $as_echo_n "checking how to link with libpth... " >&6; }
6364 if ${ac_cv_libpth_libs+:} false; then :
6365 $as_echo_n "(cached) " >&6
6377 acl_save_prefix="$prefix"
6378 prefix="$acl_final_prefix"
6379 acl_save_exec_prefix="$exec_prefix"
6380 exec_prefix="$acl_final_exec_prefix"
6382 eval additional_includedir=\"$includedir\"
6383 eval additional_libdir=\"$libdir\"
6385 exec_prefix="$acl_save_exec_prefix"
6386 prefix="$acl_save_prefix"
6389 # Check whether --with-libpth-prefix was given.
6390 if test "${with_libpth_prefix+set}" = set; then :
6391 withval=$with_libpth_prefix;
6392 if test "X$withval" = "Xno"; then
6395 if test "X$withval" = "X"; then
6397 acl_save_prefix="$prefix"
6398 prefix="$acl_final_prefix"
6399 acl_save_exec_prefix="$exec_prefix"
6400 exec_prefix="$acl_final_exec_prefix"
6402 eval additional_includedir=\"$includedir\"
6403 eval additional_libdir=\"$libdir\"
6405 exec_prefix="$acl_save_exec_prefix"
6406 prefix="$acl_save_prefix"
6409 additional_includedir="$withval/include"
6410 additional_libdir="$withval/$acl_libdirstem"
6411 if test "$acl_libdirstem2" != "$acl_libdirstem" \
6412 && ! test -d "$withval/$acl_libdirstem"; then
6413 additional_libdir="$withval/$acl_libdirstem2"
6427 names_already_handled=
6428 names_next_round='pth '
6429 while test -n "$names_next_round"; do
6430 names_this_round="$names_next_round"
6432 for name in $names_this_round; do
6434 for n in $names_already_handled; do
6435 if test "$n" = "$name"; then
6440 if test -z "$already_handled"; then
6441 names_already_handled="$names_already_handled $name"
6442 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6443 eval value=\"\$HAVE_LIB$uppername\"
6444 if test -n "$value"; then
6445 if test "$value" = yes; then
6446 eval value=\"\$LIB$uppername\"
6447 test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
6448 eval value=\"\$LTLIB$uppername\"
6449 test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
6458 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
6459 if test -n "$acl_shlibext"; then
6460 shrext=".$acl_shlibext" # typically: shrext=.so
6464 if test $use_additional = yes; then
6465 dir="$additional_libdir"
6466 if test -n "$acl_shlibext"; then
6467 if test -f "$dir/$libname$shrext"; then
6469 found_so="$dir/$libname$shrext"
6471 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6472 ver=`(cd "$dir" && \
6473 for f in "$libname$shrext".*; do echo "$f"; done \
6474 | sed -e "s,^$libname$shrext\\\\.,," \
6475 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6476 | sed 1q ) 2>/dev/null`
6477 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6479 found_so="$dir/$libname$shrext.$ver"
6482 eval library_names=\"$acl_library_names_spec\"
6483 for f in $library_names; do
6484 if test -f "$dir/$f"; then
6493 if test "X$found_dir" = "X"; then
6494 if test -f "$dir/$libname.$acl_libext"; then
6496 found_a="$dir/$libname.$acl_libext"
6499 if test "X$found_dir" != "X"; then
6500 if test -f "$dir/$libname.la"; then
6501 found_la="$dir/$libname.la"
6505 if test "X$found_dir" = "X"; then
6506 for x in $LDFLAGS $LTLIBPTH; do
6508 acl_save_prefix="$prefix"
6509 prefix="$acl_final_prefix"
6510 acl_save_exec_prefix="$exec_prefix"
6511 exec_prefix="$acl_final_exec_prefix"
6513 exec_prefix="$acl_save_exec_prefix"
6514 prefix="$acl_save_prefix"
6518 dir=`echo "X$x" | sed -e 's/^X-L//'`
6519 if test -n "$acl_shlibext"; then
6520 if test -f "$dir/$libname$shrext"; then
6522 found_so="$dir/$libname$shrext"
6524 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6525 ver=`(cd "$dir" && \
6526 for f in "$libname$shrext".*; do echo "$f"; done \
6527 | sed -e "s,^$libname$shrext\\\\.,," \
6528 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6529 | sed 1q ) 2>/dev/null`
6530 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6532 found_so="$dir/$libname$shrext.$ver"
6535 eval library_names=\"$acl_library_names_spec\"
6536 for f in $library_names; do
6537 if test -f "$dir/$f"; then
6546 if test "X$found_dir" = "X"; then
6547 if test -f "$dir/$libname.$acl_libext"; then
6549 found_a="$dir/$libname.$acl_libext"
6552 if test "X$found_dir" != "X"; then
6553 if test -f "$dir/$libname.la"; then
6554 found_la="$dir/$libname.la"
6559 if test "X$found_dir" != "X"; then
6564 if test "X$found_dir" != "X"; then
6565 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
6566 if test "X$found_so" != "X"; then
6567 if test "$enable_rpath" = no \
6568 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
6569 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
6570 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
6573 for x in $ltrpathdirs; do
6574 if test "X$x" = "X$found_dir"; then
6579 if test -z "$haveit"; then
6580 ltrpathdirs="$ltrpathdirs $found_dir"
6582 if test "$acl_hardcode_direct" = yes; then
6583 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
6585 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
6586 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
6588 for x in $rpathdirs; do
6589 if test "X$x" = "X$found_dir"; then
6594 if test -z "$haveit"; then
6595 rpathdirs="$rpathdirs $found_dir"
6599 for x in $LDFLAGS $LIBPTH; do
6601 acl_save_prefix="$prefix"
6602 prefix="$acl_final_prefix"
6603 acl_save_exec_prefix="$exec_prefix"
6604 exec_prefix="$acl_final_exec_prefix"
6606 exec_prefix="$acl_save_exec_prefix"
6607 prefix="$acl_save_prefix"
6609 if test "X$x" = "X-L$found_dir"; then
6614 if test -z "$haveit"; then
6615 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
6617 if test "$acl_hardcode_minus_L" != no; then
6618 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
6620 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
6626 if test "X$found_a" != "X"; then
6627 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
6629 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
6632 additional_includedir=
6633 case "$found_dir" in
6634 */$acl_libdirstem | */$acl_libdirstem/)
6635 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
6636 if test "$name" = 'pth'; then
6637 LIBPTH_PREFIX="$basedir"
6639 additional_includedir="$basedir/include"
6641 */$acl_libdirstem2 | */$acl_libdirstem2/)
6642 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
6643 if test "$name" = 'pth'; then
6644 LIBPTH_PREFIX="$basedir"
6646 additional_includedir="$basedir/include"
6649 if test "X$additional_includedir" != "X"; then
6650 if test "X$additional_includedir" != "X/usr/include"; then
6652 if test "X$additional_includedir" = "X/usr/local/include"; then
6653 if test -n "$GCC"; then
6655 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6659 if test -z "$haveit"; then
6660 for x in $CPPFLAGS $INCPTH; do
6662 acl_save_prefix="$prefix"
6663 prefix="$acl_final_prefix"
6664 acl_save_exec_prefix="$exec_prefix"
6665 exec_prefix="$acl_final_exec_prefix"
6667 exec_prefix="$acl_save_exec_prefix"
6668 prefix="$acl_save_prefix"
6670 if test "X$x" = "X-I$additional_includedir"; then
6675 if test -z "$haveit"; then
6676 if test -d "$additional_includedir"; then
6677 INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
6683 if test -n "$found_la"; then
6684 save_libdir="$libdir"
6686 */* | *\\*) . "$found_la" ;;
6687 *) . "./$found_la" ;;
6689 libdir="$save_libdir"
6690 for dep in $dependency_libs; do
6693 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6694 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
6695 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
6697 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
6698 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
6699 if test -n "$GCC"; then
6701 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6705 if test -z "$haveit"; then
6707 for x in $LDFLAGS $LIBPTH; do
6709 acl_save_prefix="$prefix"
6710 prefix="$acl_final_prefix"
6711 acl_save_exec_prefix="$exec_prefix"
6712 exec_prefix="$acl_final_exec_prefix"
6714 exec_prefix="$acl_save_exec_prefix"
6715 prefix="$acl_save_prefix"
6717 if test "X$x" = "X-L$additional_libdir"; then
6722 if test -z "$haveit"; then
6723 if test -d "$additional_libdir"; then
6724 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
6728 for x in $LDFLAGS $LTLIBPTH; do
6730 acl_save_prefix="$prefix"
6731 prefix="$acl_final_prefix"
6732 acl_save_exec_prefix="$exec_prefix"
6733 exec_prefix="$acl_final_exec_prefix"
6735 exec_prefix="$acl_save_exec_prefix"
6736 prefix="$acl_save_prefix"
6738 if test "X$x" = "X-L$additional_libdir"; then
6743 if test -z "$haveit"; then
6744 if test -d "$additional_libdir"; then
6745 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
6752 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6753 if test "$enable_rpath" != no; then
6755 for x in $rpathdirs; do
6756 if test "X$x" = "X$dir"; then
6761 if test -z "$haveit"; then
6762 rpathdirs="$rpathdirs $dir"
6765 for x in $ltrpathdirs; do
6766 if test "X$x" = "X$dir"; then
6771 if test -z "$haveit"; then
6772 ltrpathdirs="$ltrpathdirs $dir"
6777 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6780 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6783 LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
6784 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
6790 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
6791 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
6797 if test "X$rpathdirs" != "X"; then
6798 if test -n "$acl_hardcode_libdir_separator"; then
6800 for found_dir in $rpathdirs; do
6801 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
6803 acl_save_libdir="$libdir"
6805 eval flag=\"$acl_hardcode_libdir_flag_spec\"
6806 libdir="$acl_save_libdir"
6807 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
6809 for found_dir in $rpathdirs; do
6810 acl_save_libdir="$libdir"
6812 eval flag=\"$acl_hardcode_libdir_flag_spec\"
6813 libdir="$acl_save_libdir"
6814 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
6818 if test "X$ltrpathdirs" != "X"; then
6819 for found_dir in $ltrpathdirs; do
6820 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
6829 ac_cv_libpth_libs="$LIBPTH"
6830 ac_cv_libpth_ltlibs="$LTLIBPTH"
6831 ac_cv_libpth_cppflags="$INCPTH"
6832 ac_cv_libpth_prefix="$LIBPTH_PREFIX"
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
6836 $as_echo "$ac_cv_libpth_libs" >&6; }
6837 LIBPTH="$ac_cv_libpth_libs"
6838 LTLIBPTH="$ac_cv_libpth_ltlibs"
6839 INCPTH="$ac_cv_libpth_cppflags"
6840 LIBPTH_PREFIX="$ac_cv_libpth_prefix"
6842 for element in $INCPTH; do
6844 for x in $CPPFLAGS; do
6846 acl_save_prefix="$prefix"
6847 prefix="$acl_final_prefix"
6848 acl_save_exec_prefix="$exec_prefix"
6849 exec_prefix="$acl_final_exec_prefix"
6851 exec_prefix="$acl_save_exec_prefix"
6852 prefix="$acl_save_prefix"
6854 if test "X$x" = "X$element"; then
6859 if test -z "$haveit"; then
6860 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6872 gl_save_LIBS="$LIBS"
6874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6875 /* end confdefs.h. */
6885 if ac_fn_c_try_link "$LINENO"; then :
6888 rm -f core conftest.err conftest.$ac_objext \
6889 conftest$ac_exeext conftest.$ac_ext
6890 LIBS="$gl_save_LIBS"
6891 if test -n "$gl_have_pth"; then
6894 LTLIBTHREAD="$LTLIBPTH"
6895 LIBMULTITHREAD="$LIBTHREAD"
6896 LTLIBMULTITHREAD="$LTLIBTHREAD"
6898 $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
6900 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
6901 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
6903 $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
6910 CPPFLAGS="$gl_save_CPPFLAGS"
6913 if test -z "$gl_have_pthread"; then
6914 if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then
6915 if { case "$host_os" in
6920 gl_threads_api=win32
6922 $as_echo "#define USE_WIN32_THREADS 1" >>confdefs.h
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
6929 $as_echo_n "checking for multithread API to use... " >&6; }
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
6931 $as_echo "$gl_threads_api" >&6; }
6943 if test "$gl_threads_api" = posix; then
6944 # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
6945 # pthread_rwlock_* functions.
6946 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
6948 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
6950 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
6954 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
6955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6956 /* end confdefs.h. */
6957 #include <pthread.h>
6961 #if __FreeBSD__ == 4
6962 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
6964 int x = (int)PTHREAD_MUTEX_RECURSIVE;
6971 if ac_fn_c_try_compile "$LINENO"; then :
6973 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
6976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6995 acl_save_prefix="$prefix"
6996 prefix="$acl_final_prefix"
6997 acl_save_exec_prefix="$exec_prefix"
6998 exec_prefix="$acl_final_exec_prefix"
7000 eval additional_includedir=\"$includedir\"
7001 eval additional_libdir=\"$libdir\"
7003 exec_prefix="$acl_save_exec_prefix"
7004 prefix="$acl_save_prefix"
7007 # Check whether --with-libiconv-prefix was given.
7008 if test "${with_libiconv_prefix+set}" = set; then :
7009 withval=$with_libiconv_prefix;
7010 if test "X$withval" = "Xno"; then
7013 if test "X$withval" = "X"; then
7015 acl_save_prefix="$prefix"
7016 prefix="$acl_final_prefix"
7017 acl_save_exec_prefix="$exec_prefix"
7018 exec_prefix="$acl_final_exec_prefix"
7020 eval additional_includedir=\"$includedir\"
7021 eval additional_libdir=\"$libdir\"
7023 exec_prefix="$acl_save_exec_prefix"
7024 prefix="$acl_save_prefix"
7027 additional_includedir="$withval/include"
7028 additional_libdir="$withval/$acl_libdirstem"
7029 if test "$acl_libdirstem2" != "$acl_libdirstem" \
7030 && ! test -d "$withval/$acl_libdirstem"; then
7031 additional_libdir="$withval/$acl_libdirstem2"
7045 names_already_handled=
7046 names_next_round='iconv '
7047 while test -n "$names_next_round"; do
7048 names_this_round="$names_next_round"
7050 for name in $names_this_round; do
7052 for n in $names_already_handled; do
7053 if test "$n" = "$name"; then
7058 if test -z "$already_handled"; then
7059 names_already_handled="$names_already_handled $name"
7060 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7061 eval value=\"\$HAVE_LIB$uppername\"
7062 if test -n "$value"; then
7063 if test "$value" = yes; then
7064 eval value=\"\$LIB$uppername\"
7065 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7066 eval value=\"\$LTLIB$uppername\"
7067 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7076 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
7077 if test -n "$acl_shlibext"; then
7078 shrext=".$acl_shlibext" # typically: shrext=.so
7082 if test $use_additional = yes; then
7083 dir="$additional_libdir"
7084 if test -n "$acl_shlibext"; then
7085 if test -f "$dir/$libname$shrext"; then
7087 found_so="$dir/$libname$shrext"
7089 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
7090 ver=`(cd "$dir" && \
7091 for f in "$libname$shrext".*; do echo "$f"; done \
7092 | sed -e "s,^$libname$shrext\\\\.,," \
7093 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7094 | sed 1q ) 2>/dev/null`
7095 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
7097 found_so="$dir/$libname$shrext.$ver"
7100 eval library_names=\"$acl_library_names_spec\"
7101 for f in $library_names; do
7102 if test -f "$dir/$f"; then
7111 if test "X$found_dir" = "X"; then
7112 if test -f "$dir/$libname.$acl_libext"; then
7114 found_a="$dir/$libname.$acl_libext"
7117 if test "X$found_dir" != "X"; then
7118 if test -f "$dir/$libname.la"; then
7119 found_la="$dir/$libname.la"
7123 if test "X$found_dir" = "X"; then
7124 for x in $LDFLAGS $LTLIBICONV; do
7126 acl_save_prefix="$prefix"
7127 prefix="$acl_final_prefix"
7128 acl_save_exec_prefix="$exec_prefix"
7129 exec_prefix="$acl_final_exec_prefix"
7131 exec_prefix="$acl_save_exec_prefix"
7132 prefix="$acl_save_prefix"
7136 dir=`echo "X$x" | sed -e 's/^X-L//'`
7137 if test -n "$acl_shlibext"; then
7138 if test -f "$dir/$libname$shrext"; then
7140 found_so="$dir/$libname$shrext"
7142 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
7143 ver=`(cd "$dir" && \
7144 for f in "$libname$shrext".*; do echo "$f"; done \
7145 | sed -e "s,^$libname$shrext\\\\.,," \
7146 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7147 | sed 1q ) 2>/dev/null`
7148 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
7150 found_so="$dir/$libname$shrext.$ver"
7153 eval library_names=\"$acl_library_names_spec\"
7154 for f in $library_names; do
7155 if test -f "$dir/$f"; then
7164 if test "X$found_dir" = "X"; then
7165 if test -f "$dir/$libname.$acl_libext"; then
7167 found_a="$dir/$libname.$acl_libext"
7170 if test "X$found_dir" != "X"; then
7171 if test -f "$dir/$libname.la"; then
7172 found_la="$dir/$libname.la"
7177 if test "X$found_dir" != "X"; then
7182 if test "X$found_dir" != "X"; then
7183 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7184 if test "X$found_so" != "X"; then
7185 if test "$enable_rpath" = no \
7186 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
7187 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
7188 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7191 for x in $ltrpathdirs; do
7192 if test "X$x" = "X$found_dir"; then
7197 if test -z "$haveit"; then
7198 ltrpathdirs="$ltrpathdirs $found_dir"
7200 if test "$acl_hardcode_direct" = yes; then
7201 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7203 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
7204 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7206 for x in $rpathdirs; do
7207 if test "X$x" = "X$found_dir"; then
7212 if test -z "$haveit"; then
7213 rpathdirs="$rpathdirs $found_dir"
7217 for x in $LDFLAGS $LIBICONV; do
7219 acl_save_prefix="$prefix"
7220 prefix="$acl_final_prefix"
7221 acl_save_exec_prefix="$exec_prefix"
7222 exec_prefix="$acl_final_exec_prefix"
7224 exec_prefix="$acl_save_exec_prefix"
7225 prefix="$acl_save_prefix"
7227 if test "X$x" = "X-L$found_dir"; then
7232 if test -z "$haveit"; then
7233 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7235 if test "$acl_hardcode_minus_L" != no; then
7236 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7238 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7244 if test "X$found_a" != "X"; then
7245 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7247 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7250 additional_includedir=
7251 case "$found_dir" in
7252 */$acl_libdirstem | */$acl_libdirstem/)
7253 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
7254 if test "$name" = 'iconv'; then
7255 LIBICONV_PREFIX="$basedir"
7257 additional_includedir="$basedir/include"
7259 */$acl_libdirstem2 | */$acl_libdirstem2/)
7260 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
7261 if test "$name" = 'iconv'; then
7262 LIBICONV_PREFIX="$basedir"
7264 additional_includedir="$basedir/include"
7267 if test "X$additional_includedir" != "X"; then
7268 if test "X$additional_includedir" != "X/usr/include"; then
7270 if test "X$additional_includedir" = "X/usr/local/include"; then
7271 if test -n "$GCC"; then
7273 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7277 if test -z "$haveit"; then
7278 for x in $CPPFLAGS $INCICONV; do
7280 acl_save_prefix="$prefix"
7281 prefix="$acl_final_prefix"
7282 acl_save_exec_prefix="$exec_prefix"
7283 exec_prefix="$acl_final_exec_prefix"
7285 exec_prefix="$acl_save_exec_prefix"
7286 prefix="$acl_save_prefix"
7288 if test "X$x" = "X-I$additional_includedir"; then
7293 if test -z "$haveit"; then
7294 if test -d "$additional_includedir"; then
7295 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7301 if test -n "$found_la"; then
7302 save_libdir="$libdir"
7304 */* | *\\*) . "$found_la" ;;
7305 *) . "./$found_la" ;;
7307 libdir="$save_libdir"
7308 for dep in $dependency_libs; do
7311 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7312 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
7313 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
7315 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
7316 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
7317 if test -n "$GCC"; then
7319 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7323 if test -z "$haveit"; then
7325 for x in $LDFLAGS $LIBICONV; do
7327 acl_save_prefix="$prefix"
7328 prefix="$acl_final_prefix"
7329 acl_save_exec_prefix="$exec_prefix"
7330 exec_prefix="$acl_final_exec_prefix"
7332 exec_prefix="$acl_save_exec_prefix"
7333 prefix="$acl_save_prefix"
7335 if test "X$x" = "X-L$additional_libdir"; then
7340 if test -z "$haveit"; then
7341 if test -d "$additional_libdir"; then
7342 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7346 for x in $LDFLAGS $LTLIBICONV; do
7348 acl_save_prefix="$prefix"
7349 prefix="$acl_final_prefix"
7350 acl_save_exec_prefix="$exec_prefix"
7351 exec_prefix="$acl_final_exec_prefix"
7353 exec_prefix="$acl_save_exec_prefix"
7354 prefix="$acl_save_prefix"
7356 if test "X$x" = "X-L$additional_libdir"; then
7361 if test -z "$haveit"; then
7362 if test -d "$additional_libdir"; then
7363 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7370 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7371 if test "$enable_rpath" != no; then
7373 for x in $rpathdirs; do
7374 if test "X$x" = "X$dir"; then
7379 if test -z "$haveit"; then
7380 rpathdirs="$rpathdirs $dir"
7383 for x in $ltrpathdirs; do
7384 if test "X$x" = "X$dir"; then
7389 if test -z "$haveit"; then
7390 ltrpathdirs="$ltrpathdirs $dir"
7395 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7398 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7401 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
7402 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
7408 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7409 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
7415 if test "X$rpathdirs" != "X"; then
7416 if test -n "$acl_hardcode_libdir_separator"; then
7418 for found_dir in $rpathdirs; do
7419 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
7421 acl_save_libdir="$libdir"
7423 eval flag=\"$acl_hardcode_libdir_flag_spec\"
7424 libdir="$acl_save_libdir"
7425 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7427 for found_dir in $rpathdirs; do
7428 acl_save_libdir="$libdir"
7430 eval flag=\"$acl_hardcode_libdir_flag_spec\"
7431 libdir="$acl_save_libdir"
7432 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7436 if test "X$ltrpathdirs" != "X"; then
7437 for found_dir in $ltrpathdirs; do
7438 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
7453 am_save_CPPFLAGS="$CPPFLAGS"
7455 for element in $INCICONV; do
7457 for x in $CPPFLAGS; do
7459 acl_save_prefix="$prefix"
7460 prefix="$acl_final_prefix"
7461 acl_save_exec_prefix="$exec_prefix"
7462 exec_prefix="$acl_final_exec_prefix"
7464 exec_prefix="$acl_save_exec_prefix"
7465 prefix="$acl_save_prefix"
7467 if test "X$x" = "X$element"; then
7472 if test -z "$haveit"; then
7473 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
7479 $as_echo_n "checking for iconv... " >&6; }
7480 if ${am_cv_func_iconv+:} false; then :
7481 $as_echo_n "(cached) " >&6
7484 am_cv_func_iconv="no, consider installing GNU libiconv"
7486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7487 /* end confdefs.h. */
7493 iconv_t cd = iconv_open("","");
7494 iconv(cd,NULL,NULL,NULL,NULL);
7500 if ac_fn_c_try_link "$LINENO"; then :
7501 am_cv_func_iconv=yes
7503 rm -f core conftest.err conftest.$ac_objext \
7504 conftest$ac_exeext conftest.$ac_ext
7505 if test "$am_cv_func_iconv" != yes; then
7506 am_save_LIBS="$LIBS"
7507 LIBS="$LIBS $LIBICONV"
7508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7509 /* end confdefs.h. */
7515 iconv_t cd = iconv_open("","");
7516 iconv(cd,NULL,NULL,NULL,NULL);
7522 if ac_fn_c_try_link "$LINENO"; then :
7524 am_cv_func_iconv=yes
7526 rm -f core conftest.err conftest.$ac_objext \
7527 conftest$ac_exeext conftest.$ac_ext
7528 LIBS="$am_save_LIBS"
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
7533 $as_echo "$am_cv_func_iconv" >&6; }
7534 if test "$am_cv_func_iconv" = yes; then
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
7536 $as_echo_n "checking for working iconv... " >&6; }
7537 if ${am_cv_func_iconv_works+:} false; then :
7538 $as_echo_n "(cached) " >&6
7541 am_save_LIBS="$LIBS"
7542 if test $am_cv_lib_iconv = yes; then
7543 LIBS="$LIBS $LIBICONV"
7545 if test "$cross_compiling" = yes; then :
7547 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
7548 *) am_cv_func_iconv_works="guessing yes" ;;
7551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7552 /* end confdefs.h. */
7558 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
7561 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
7562 if (cd_utf8_to_88591 != (iconv_t)(-1))
7564 static const char input[] = "\342\202\254"; /* EURO SIGN */
7566 const char *inptr = input;
7567 size_t inbytesleft = strlen (input);
7569 size_t outbytesleft = sizeof (buf);
7570 size_t res = iconv (cd_utf8_to_88591,
7571 (char **) &inptr, &inbytesleft,
7572 &outptr, &outbytesleft);
7577 /* Test against Solaris 10 bug: Failures are not distinguishable from
7578 successful returns. */
7580 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
7581 if (cd_ascii_to_88591 != (iconv_t)(-1))
7583 static const char input[] = "\263";
7585 const char *inptr = input;
7586 size_t inbytesleft = strlen (input);
7588 size_t outbytesleft = sizeof (buf);
7589 size_t res = iconv (cd_ascii_to_88591,
7590 (char **) &inptr, &inbytesleft,
7591 &outptr, &outbytesleft);
7596 #if 0 /* This bug could be worked around by the caller. */
7597 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
7599 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
7600 if (cd_88591_to_utf8 != (iconv_t)(-1))
7602 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
7604 const char *inptr = input;
7605 size_t inbytesleft = strlen (input);
7607 size_t outbytesleft = sizeof (buf);
7608 size_t res = iconv (cd_88591_to_utf8,
7609 (char **) &inptr, &inbytesleft,
7610 &outptr, &outbytesleft);
7616 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
7618 if (/* Try standardized names. */
7619 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
7620 /* Try IRIX, OSF/1 names. */
7621 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
7622 /* Try AIX names. */
7623 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
7624 /* Try HP-UX names. */
7625 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
7630 if ac_fn_c_try_run "$LINENO"; then :
7631 am_cv_func_iconv_works=yes
7633 am_cv_func_iconv_works=no
7635 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7636 conftest.$ac_objext conftest.beam conftest.$ac_ext
7639 LIBS="$am_save_LIBS"
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
7643 $as_echo "$am_cv_func_iconv_works" >&6; }
7644 case "$am_cv_func_iconv_works" in
7645 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
7646 *) am_func_iconv=yes ;;
7649 am_func_iconv=no am_cv_lib_iconv=no
7651 if test "$am_func_iconv" = yes; then
7653 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
7656 if test "$am_cv_lib_iconv" = yes; then
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
7658 $as_echo_n "checking how to link with libiconv... " >&6; }
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
7660 $as_echo "$LIBICONV" >&6; }
7662 CPPFLAGS="$am_save_CPPFLAGS"
7669 if test "$am_cv_func_iconv" = yes; then
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
7671 $as_echo_n "checking for iconv declaration... " >&6; }
7672 if ${am_cv_proto_iconv+:} false; then :
7673 $as_echo_n "(cached) " >&6
7676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7677 /* end confdefs.h. */
7685 #if defined(__STDC__) || defined(__cplusplus)
7686 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
7699 if ac_fn_c_try_compile "$LINENO"; then :
7700 am_cv_proto_iconv_arg1=""
7702 am_cv_proto_iconv_arg1="const"
7704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7705 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);"
7708 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
7710 $am_cv_proto_iconv" >&5
7712 $am_cv_proto_iconv" >&6; }
7714 cat >>confdefs.h <<_ACEOF
7715 #define ICONV_CONST $am_cv_proto_iconv_arg1
7723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7724 /* end confdefs.h. */
7725 int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
7734 if ac_fn_c_try_link "$LINENO"; then :
7736 $as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
7739 rm -f core conftest.err conftest.$ac_objext \
7740 conftest$ac_exeext conftest.$ac_ext
7742 for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
7744 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7745 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7746 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7747 cat >>confdefs.h <<_ACEOF
7748 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7755 for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
7756 stpcpy strcasecmp strdup strtoul tsearch uselocale argz_count \
7757 argz_stringify argz_next __fsetlocking
7759 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7760 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7761 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7762 cat >>confdefs.h <<_ACEOF
7763 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
7772 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
7773 if ${ac_cv_have_decl_feof_unlocked+:} false; then :
7774 $as_echo_n "(cached) " >&6
7776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7777 /* end confdefs.h. */
7783 #ifndef feof_unlocked
7784 char *p = (char *) feof_unlocked;
7791 if ac_fn_c_try_compile "$LINENO"; then :
7792 ac_cv_have_decl_feof_unlocked=yes
7794 ac_cv_have_decl_feof_unlocked=no
7796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
7799 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
7800 if test $ac_cv_have_decl_feof_unlocked = yes; then
7806 cat >>confdefs.h <<_ACEOF
7807 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
7813 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
7814 if ${ac_cv_have_decl_fgets_unlocked+:} false; then :
7815 $as_echo_n "(cached) " >&6
7817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7818 /* end confdefs.h. */
7824 #ifndef fgets_unlocked
7825 char *p = (char *) fgets_unlocked;
7832 if ac_fn_c_try_compile "$LINENO"; then :
7833 ac_cv_have_decl_fgets_unlocked=yes
7835 ac_cv_have_decl_fgets_unlocked=no
7837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
7840 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
7841 if test $ac_cv_have_decl_fgets_unlocked = yes; then
7847 cat >>confdefs.h <<_ACEOF
7848 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
7855 for ac_prog in bison
7857 # Extract the first word of "$ac_prog", so it can be a program name with args.
7858 set dummy $ac_prog; ac_word=$2
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7860 $as_echo_n "checking for $ac_word... " >&6; }
7861 if ${ac_cv_prog_INTLBISON+:} false; then :
7862 $as_echo_n "(cached) " >&6
7864 if test -n "$INTLBISON"; then
7865 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
7867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7871 test -z "$as_dir" && as_dir=.
7872 for ac_exec_ext in '' $ac_executable_extensions; do
7873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7874 ac_cv_prog_INTLBISON="$ac_prog"
7875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7884 INTLBISON=$ac_cv_prog_INTLBISON
7885 if test -n "$INTLBISON"; then
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
7887 $as_echo "$INTLBISON" >&6; }
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7890 $as_echo "no" >&6; }
7894 test -n "$INTLBISON" && break
7897 if test -z "$INTLBISON"; then
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
7901 $as_echo_n "checking version of bison... " >&6; }
7902 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
7903 case $ac_prog_version in
7904 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
7905 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
7906 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
7907 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
7910 $as_echo "$ac_prog_version" >&6; }
7912 if test $ac_verc_fail = yes; then
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
7918 $as_echo_n "checking for long long int... " >&6; }
7919 if ${ac_cv_type_long_long_int+:} false; then :
7920 $as_echo_n "(cached) " >&6
7922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7923 /* end confdefs.h. */
7925 /* For now, do not test the preprocessor; as of 2007 there are too many
7926 implementations with broken preprocessors. Perhaps this can
7927 be revisited in 2012. In the meantime, code should not expect
7928 #if to work with literals wider than 32 bits. */
7929 /* Test literals. */
7930 long long int ll = 9223372036854775807ll;
7931 long long int nll = -9223372036854775807LL;
7932 unsigned long long int ull = 18446744073709551615ULL;
7933 /* Test constant expressions. */
7934 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
7936 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
7942 /* Test availability of runtime routines for shift and division. */
7943 long long int llmax = 9223372036854775807ll;
7944 unsigned long long int ullmax = 18446744073709551615ull;
7945 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
7946 | (llmax / ll) | (llmax % ll)
7947 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
7948 | (ullmax / ull) | (ullmax % ull));
7954 if ac_fn_c_try_link "$LINENO"; then :
7955 if test "$cross_compiling" = yes; then :
7956 ac_cv_type_long_long_int=yes
7958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7959 /* end confdefs.h. */
7963 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
7964 # define LLONG_MAX (HALF - 1 + HALF)
7969 long long int n = 1;
7973 long long int m = n << i;
7976 if (LLONG_MAX / 2 < m)
7984 if ac_fn_c_try_run "$LINENO"; then :
7985 ac_cv_type_long_long_int=yes
7987 ac_cv_type_long_long_int=no
7989 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7990 conftest.$ac_objext conftest.beam conftest.$ac_ext
7994 ac_cv_type_long_long_int=no
7996 rm -f core conftest.err conftest.$ac_objext \
7997 conftest$ac_exeext conftest.$ac_ext
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
8000 $as_echo "$ac_cv_type_long_long_int" >&6; }
8001 if test $ac_cv_type_long_long_int = yes; then
8003 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
8009 $as_echo_n "checking for wchar_t... " >&6; }
8010 if ${gt_cv_c_wchar_t+:} false; then :
8011 $as_echo_n "(cached) " >&6
8013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8014 /* end confdefs.h. */
8016 wchar_t foo = (wchar_t)'\0';
8025 if ac_fn_c_try_compile "$LINENO"; then :
8030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
8033 $as_echo "$gt_cv_c_wchar_t" >&6; }
8034 if test $gt_cv_c_wchar_t = yes; then
8036 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
8042 $as_echo_n "checking for wint_t... " >&6; }
8043 if ${gt_cv_c_wint_t+:} false; then :
8044 $as_echo_n "(cached) " >&6
8046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8047 /* end confdefs.h. */
8049 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
8051 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
8052 before <wchar.h>. */
8057 wint_t foo = (wchar_t)'\0';
8066 if ac_fn_c_try_compile "$LINENO"; then :
8071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
8074 $as_echo "$gt_cv_c_wint_t" >&6; }
8075 if test $gt_cv_c_wint_t = yes; then
8077 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
8085 $as_echo_n "checking for intmax_t... " >&6; }
8086 if ${gt_cv_c_intmax_t+:} false; then :
8087 $as_echo_n "(cached) " >&6
8089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8090 /* end confdefs.h. */
8094 #if HAVE_STDINT_H_WITH_UINTMAX
8097 #if HAVE_INTTYPES_H_WITH_UINTMAX
8098 #include <inttypes.h>
8110 if ac_fn_c_try_compile "$LINENO"; then :
8111 gt_cv_c_intmax_t=yes
8115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
8118 $as_echo "$gt_cv_c_intmax_t" >&6; }
8119 if test $gt_cv_c_intmax_t = yes; then
8121 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
8128 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
8129 if ${gt_cv_func_printf_posix+:} false; then :
8130 $as_echo_n "(cached) " >&6
8133 if test "$cross_compiling" = yes; then :
8135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8136 /* end confdefs.h. */
8138 #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
8143 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8144 $EGREP "notposix" >/dev/null 2>&1; then :
8145 gt_cv_func_printf_posix="guessing no"
8147 gt_cv_func_printf_posix="guessing yes"
8153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8154 /* end confdefs.h. */
8158 /* The string "%2$d %1$d", with dollar characters protected from the shell's
8159 dollar expansion (possibly an autoconf bug). */
8160 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
8161 static char buf[100];
8164 sprintf (buf, format, 33, 55);
8165 return (strcmp (buf, "55 33") != 0);
8168 if ac_fn_c_try_run "$LINENO"; then :
8169 gt_cv_func_printf_posix=yes
8171 gt_cv_func_printf_posix=no
8173 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8174 conftest.$ac_objext conftest.beam conftest.$ac_ext
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
8180 $as_echo "$gt_cv_func_printf_posix" >&6; }
8181 case $gt_cv_func_printf_posix in
8184 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
8191 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
8192 if ${ac_cv_gnu_library_2_1+:} false; then :
8193 $as_echo_n "(cached) " >&6
8195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8196 /* end confdefs.h. */
8198 #include <features.h>
8199 #ifdef __GNU_LIBRARY__
8200 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
8206 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8207 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
8208 ac_cv_gnu_library_2_1=yes
8210 ac_cv_gnu_library_2_1=no
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
8218 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
8220 GLIBC21="$ac_cv_gnu_library_2_1"
8224 for ac_header in stdint.h
8226 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
8227 if test "x$ac_cv_header_stdint_h" = xyes; then :
8228 cat >>confdefs.h <<_ACEOF
8229 #define HAVE_STDINT_H 1
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
8237 $as_echo_n "checking for SIZE_MAX... " >&6; }
8238 if ${gl_cv_size_max+:} false; then :
8239 $as_echo_n "(cached) " >&6
8243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8244 /* end confdefs.h. */
8255 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8256 $EGREP "Found it" >/dev/null 2>&1; then :
8261 if test -z "$gl_cv_size_max"; then
8262 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
8263 #include <limits.h>"; then :
8266 size_t_bits_minus_1=
8269 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
8275 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
8276 if test $fits_in_uint = 1; then
8277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8278 /* end confdefs.h. */
8281 extern unsigned long foo;
8291 if ac_fn_c_try_compile "$LINENO"; then :
8294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8296 if test $fits_in_uint = 1; then
8297 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
8299 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
8302 gl_cv_size_max='((size_t)~(size_t)0)'
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
8308 $as_echo "$gl_cv_size_max" >&6; }
8309 if test "$gl_cv_size_max" != yes; then
8311 cat >>confdefs.h <<_ACEOF
8312 #define SIZE_MAX $gl_cv_size_max
8321 for ac_header in stdint.h
8323 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
8324 if test "x$ac_cv_header_stdint_h" = xyes; then :
8325 cat >>confdefs.h <<_ACEOF
8326 #define HAVE_STDINT_H 1
8336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
8337 $as_echo_n "checking for working fcntl.h... " >&6; }
8338 if ${gl_cv_header_working_fcntl_h+:} false; then :
8339 $as_echo_n "(cached) " >&6
8341 if test "$cross_compiling" = yes; then :
8342 gl_cv_header_working_fcntl_h=cross-compiling
8344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8345 /* end confdefs.h. */
8346 #include <sys/types.h>
8347 #include <sys/stat.h>
8354 #define O_NOFOLLOW 0
8356 static int const constants[] =
8358 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
8359 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
8366 int status = !constants;
8368 static char const sym[] = "conftest.sym";
8369 if (symlink (".", sym) != 0
8370 || close (open (sym, O_RDONLY | O_NOFOLLOW)) == 0)
8375 static char const file[] = "confdefs.h";
8376 int fd = open (file, O_RDONLY | O_NOATIME);
8378 struct stat st0, st1;
8380 || fstat (fd, &st0) != 0
8382 || read (fd, &c, 1) != 1
8384 || stat (file, &st1) != 0
8385 || st0.st_atime != st1.st_atime)
8393 if ac_fn_c_try_run "$LINENO"; then :
8394 gl_cv_header_working_fcntl_h=yes
8397 32) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
8398 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
8399 96) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
8400 *) gl_cv_header_working_fcntl_h='no';;
8403 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8404 conftest.$ac_objext conftest.beam conftest.$ac_ext
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
8409 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
8411 case $gl_cv_header_working_fcntl_h in #(
8412 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
8416 cat >>confdefs.h <<_ACEOF
8417 #define HAVE_WORKING_O_NOATIME $ac_val
8421 case $gl_cv_header_working_fcntl_h in #(
8422 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
8426 cat >>confdefs.h <<_ACEOF
8427 #define HAVE_WORKING_O_NOFOLLOW $ac_val
8432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
8433 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
8434 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
8435 $as_echo_n "(cached) " >&6
8437 gt_save_LIBS="$LIBS"
8438 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
8439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8440 /* end confdefs.h. */
8441 #include <CoreFoundation/CFPreferences.h>
8445 CFPreferencesCopyAppValue(NULL, NULL)
8450 if ac_fn_c_try_link "$LINENO"; then :
8451 gt_cv_func_CFPreferencesCopyAppValue=yes
8453 gt_cv_func_CFPreferencesCopyAppValue=no
8455 rm -f core conftest.err conftest.$ac_objext \
8456 conftest$ac_exeext conftest.$ac_ext
8457 LIBS="$gt_save_LIBS"
8459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
8460 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
8461 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
8463 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
8467 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
8468 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
8469 $as_echo_n "(cached) " >&6
8471 gt_save_LIBS="$LIBS"
8472 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
8473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8474 /* end confdefs.h. */
8475 #include <CoreFoundation/CFLocale.h>
8479 CFLocaleCopyCurrent();
8484 if ac_fn_c_try_link "$LINENO"; then :
8485 gt_cv_func_CFLocaleCopyCurrent=yes
8487 gt_cv_func_CFLocaleCopyCurrent=no
8489 rm -f core conftest.err conftest.$ac_objext \
8490 conftest$ac_exeext conftest.$ac_ext
8491 LIBS="$gt_save_LIBS"
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
8494 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
8495 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
8497 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
8501 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
8502 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
8511 case "$enable_silent_rules" in
8512 yes) INTL_DEFAULT_VERBOSITY=0;;
8513 no) INTL_DEFAULT_VERBOSITY=1;;
8514 *) INTL_DEFAULT_VERBOSITY=1;;
8518 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
8519 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
8523 $as_echo "#define ptrdiff_t long" >>confdefs.h
8528 for ac_header in stddef.h stdlib.h string.h
8530 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8531 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8532 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8533 cat >>confdefs.h <<_ACEOF
8534 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8541 for ac_func in asprintf fwprintf newlocale putenv setenv setlocale \
8542 snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
8544 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8545 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8546 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8547 cat >>confdefs.h <<_ACEOF
8548 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
8557 $as_echo_n "checking whether _snprintf is declared... " >&6; }
8558 if ${ac_cv_have_decl__snprintf+:} false; then :
8559 $as_echo_n "(cached) " >&6
8561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8562 /* end confdefs.h. */
8569 char *p = (char *) _snprintf;
8576 if ac_fn_c_try_compile "$LINENO"; then :
8577 ac_cv_have_decl__snprintf=yes
8579 ac_cv_have_decl__snprintf=no
8581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
8584 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
8585 if test $ac_cv_have_decl__snprintf = yes; then
8591 cat >>confdefs.h <<_ACEOF
8592 #define HAVE_DECL__SNPRINTF $gt_value
8597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
8598 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
8599 if ${ac_cv_have_decl__snwprintf+:} false; then :
8600 $as_echo_n "(cached) " >&6
8602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8603 /* end confdefs.h. */
8610 char *p = (char *) _snwprintf;
8617 if ac_fn_c_try_compile "$LINENO"; then :
8618 ac_cv_have_decl__snwprintf=yes
8620 ac_cv_have_decl__snwprintf=no
8622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
8625 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
8626 if test $ac_cv_have_decl__snwprintf = yes; then
8632 cat >>confdefs.h <<_ACEOF
8633 #define HAVE_DECL__SNWPRINTF $gt_value
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
8640 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
8641 if ${ac_cv_have_decl_getc_unlocked+:} false; then :
8642 $as_echo_n "(cached) " >&6
8644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8645 /* end confdefs.h. */
8651 #ifndef getc_unlocked
8652 char *p = (char *) getc_unlocked;
8659 if ac_fn_c_try_compile "$LINENO"; then :
8660 ac_cv_have_decl_getc_unlocked=yes
8662 ac_cv_have_decl_getc_unlocked=no
8664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
8667 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
8668 if test $ac_cv_have_decl_getc_unlocked = yes; then
8674 cat >>confdefs.h <<_ACEOF
8675 #define HAVE_DECL_GETC_UNLOCKED $gt_value
8680 case $gt_cv_func_printf_posix in
8681 *yes) HAVE_POSIX_PRINTF=1 ;;
8682 *) HAVE_POSIX_PRINTF=0 ;;
8685 if test "$ac_cv_func_asprintf" = yes; then
8691 if test "$ac_cv_func_snprintf" = yes; then
8697 if test "$ac_cv_func_newlocale" = yes; then
8703 if test "$ac_cv_func_wprintf" = yes; then
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
8712 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
8713 if ${am_cv_langinfo_codeset+:} false; then :
8714 $as_echo_n "(cached) " >&6
8716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8717 /* end confdefs.h. */
8718 #include <langinfo.h>
8722 char* cs = nl_langinfo(CODESET); return !cs;
8727 if ac_fn_c_try_link "$LINENO"; then :
8728 am_cv_langinfo_codeset=yes
8730 am_cv_langinfo_codeset=no
8732 rm -f core conftest.err conftest.$ac_objext \
8733 conftest$ac_exeext conftest.$ac_ext
8736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
8737 $as_echo "$am_cv_langinfo_codeset" >&6; }
8738 if test $am_cv_langinfo_codeset = yes; then
8740 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
8745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
8746 $as_echo_n "checking for LC_MESSAGES... " >&6; }
8747 if ${gt_cv_val_LC_MESSAGES+:} false; then :
8748 $as_echo_n "(cached) " >&6
8750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8751 /* end confdefs.h. */
8761 if ac_fn_c_try_link "$LINENO"; then :
8762 gt_cv_val_LC_MESSAGES=yes
8764 gt_cv_val_LC_MESSAGES=no
8766 rm -f core conftest.err conftest.$ac_objext \
8767 conftest$ac_exeext conftest.$ac_ext
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
8770 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
8771 if test $gt_cv_val_LC_MESSAGES = yes; then
8773 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
8778 if test "$enable_shared" = yes; then
8780 mingw* | cygwin*) is_woe32dll=yes ;;
8781 *) is_woe32dll=no ;;
8786 WOE32DLL=$is_woe32dll
8790 mingw* | cygwin*) is_woe32=yes ;;
8795 if test $WOE32 = yes; then
8796 if test -n "$ac_tool_prefix"; then
8797 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
8798 set dummy ${ac_tool_prefix}windres; ac_word=$2
8799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8800 $as_echo_n "checking for $ac_word... " >&6; }
8801 if ${ac_cv_prog_WINDRES+:} false; then :
8802 $as_echo_n "(cached) " >&6
8804 if test -n "$WINDRES"; then
8805 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8811 test -z "$as_dir" && as_dir=.
8812 for ac_exec_ext in '' $ac_executable_extensions; do
8813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8814 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
8815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8824 WINDRES=$ac_cv_prog_WINDRES
8825 if test -n "$WINDRES"; then
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8827 $as_echo "$WINDRES" >&6; }
8829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8830 $as_echo "no" >&6; }
8835 if test -z "$ac_cv_prog_WINDRES"; then
8836 ac_ct_WINDRES=$WINDRES
8837 # Extract the first word of "windres", so it can be a program name with args.
8838 set dummy windres; ac_word=$2
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8840 $as_echo_n "checking for $ac_word... " >&6; }
8841 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
8842 $as_echo_n "(cached) " >&6
8844 if test -n "$ac_ct_WINDRES"; then
8845 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
8847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8851 test -z "$as_dir" && as_dir=.
8852 for ac_exec_ext in '' $ac_executable_extensions; do
8853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8854 ac_cv_prog_ac_ct_WINDRES="windres"
8855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8864 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
8865 if test -n "$ac_ct_WINDRES"; then
8866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
8867 $as_echo "$ac_ct_WINDRES" >&6; }
8869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8870 $as_echo "no" >&6; }
8873 if test "x$ac_ct_WINDRES" = x; then
8876 case $cross_compiling:$ac_tool_warned in
8878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8879 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8880 ac_tool_warned=yes ;;
8882 WINDRES=$ac_ct_WINDRES
8885 WINDRES="$ac_cv_prog_WINDRES"
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
8922 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
8923 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
8924 $as_echo_n "(cached) " >&6
8926 gt_save_LIBS="$LIBS"
8927 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
8928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8929 /* end confdefs.h. */
8930 #include <CoreFoundation/CFPreferences.h>
8934 CFPreferencesCopyAppValue(NULL, NULL)
8939 if ac_fn_c_try_link "$LINENO"; then :
8940 gt_cv_func_CFPreferencesCopyAppValue=yes
8942 gt_cv_func_CFPreferencesCopyAppValue=no
8944 rm -f core conftest.err conftest.$ac_objext \
8945 conftest$ac_exeext conftest.$ac_ext
8946 LIBS="$gt_save_LIBS"
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
8949 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
8950 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
8952 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
8956 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
8957 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
8958 $as_echo_n "(cached) " >&6
8960 gt_save_LIBS="$LIBS"
8961 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
8962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8963 /* end confdefs.h. */
8964 #include <CoreFoundation/CFLocale.h>
8968 CFLocaleCopyCurrent();
8973 if ac_fn_c_try_link "$LINENO"; then :
8974 gt_cv_func_CFLocaleCopyCurrent=yes
8976 gt_cv_func_CFLocaleCopyCurrent=no
8978 rm -f core conftest.err conftest.$ac_objext \
8979 conftest$ac_exeext conftest.$ac_ext
8980 LIBS="$gt_save_LIBS"
8982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
8983 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
8984 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
8986 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
8990 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
8991 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
8999 BUILD_INCLUDED_LIBINTL=no
9000 USE_INCLUDED_LIBINTL=no
9006 case " $gt_needs " in
9007 *" need-formatstring-macros "*) gt_api_version=3 ;;
9008 *" need-ngettext "*) gt_api_version=2 ;;
9009 *) gt_api_version=1 ;;
9011 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
9012 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
9014 if test "$USE_NLS" = "yes"; then
9015 gt_use_preinstalled_gnugettext=no
9017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
9018 $as_echo_n "checking whether included gettext is requested... " >&6; }
9020 # Check whether --with-included-gettext was given.
9021 if test "${with_included_gettext+set}" = set; then :
9022 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
9024 nls_cv_force_use_gnu_gettext=no
9027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
9028 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
9030 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
9031 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
9034 if test $gt_api_version -ge 3; then
9035 gt_revision_test_code='
9036 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
9037 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
9039 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
9042 gt_revision_test_code=
9044 if test $gt_api_version -ge 2; then
9045 gt_expression_test_code=' + * ngettext ("", "", 0)'
9047 gt_expression_test_code=
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
9051 $as_echo_n "checking for GNU gettext in libc... " >&6; }
9052 if eval \${$gt_func_gnugettext_libc+:} false; then :
9053 $as_echo_n "(cached) " >&6
9055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9056 /* end confdefs.h. */
9057 #include <libintl.h>
9058 $gt_revision_test_code
9059 extern int _nl_msg_cat_cntr;
9060 extern int *_nl_domain_bindings;
9064 bindtextdomain ("", "");
9065 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
9070 if ac_fn_c_try_link "$LINENO"; then :
9071 eval "$gt_func_gnugettext_libc=yes"
9073 eval "$gt_func_gnugettext_libc=no"
9075 rm -f core conftest.err conftest.$ac_objext \
9076 conftest$ac_exeext conftest.$ac_ext
9078 eval ac_res=\$$gt_func_gnugettext_libc
9079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9080 $as_echo "$ac_res" >&6; }
9082 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
9093 acl_save_prefix="$prefix"
9094 prefix="$acl_final_prefix"
9095 acl_save_exec_prefix="$exec_prefix"
9096 exec_prefix="$acl_final_exec_prefix"
9098 eval additional_includedir=\"$includedir\"
9099 eval additional_libdir=\"$libdir\"
9101 exec_prefix="$acl_save_exec_prefix"
9102 prefix="$acl_save_prefix"
9105 # Check whether --with-libintl-prefix was given.
9106 if test "${with_libintl_prefix+set}" = set; then :
9107 withval=$with_libintl_prefix;
9108 if test "X$withval" = "Xno"; then
9111 if test "X$withval" = "X"; then
9113 acl_save_prefix="$prefix"
9114 prefix="$acl_final_prefix"
9115 acl_save_exec_prefix="$exec_prefix"
9116 exec_prefix="$acl_final_exec_prefix"
9118 eval additional_includedir=\"$includedir\"
9119 eval additional_libdir=\"$libdir\"
9121 exec_prefix="$acl_save_exec_prefix"
9122 prefix="$acl_save_prefix"
9125 additional_includedir="$withval/include"
9126 additional_libdir="$withval/$acl_libdirstem"
9127 if test "$acl_libdirstem2" != "$acl_libdirstem" \
9128 && ! test -d "$withval/$acl_libdirstem"; then
9129 additional_libdir="$withval/$acl_libdirstem2"
9143 names_already_handled=
9144 names_next_round='intl '
9145 while test -n "$names_next_round"; do
9146 names_this_round="$names_next_round"
9148 for name in $names_this_round; do
9150 for n in $names_already_handled; do
9151 if test "$n" = "$name"; then
9156 if test -z "$already_handled"; then
9157 names_already_handled="$names_already_handled $name"
9158 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9159 eval value=\"\$HAVE_LIB$uppername\"
9160 if test -n "$value"; then
9161 if test "$value" = yes; then
9162 eval value=\"\$LIB$uppername\"
9163 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
9164 eval value=\"\$LTLIB$uppername\"
9165 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
9174 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
9175 if test -n "$acl_shlibext"; then
9176 shrext=".$acl_shlibext" # typically: shrext=.so
9180 if test $use_additional = yes; then
9181 dir="$additional_libdir"
9182 if test -n "$acl_shlibext"; then
9183 if test -f "$dir/$libname$shrext"; then
9185 found_so="$dir/$libname$shrext"
9187 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9188 ver=`(cd "$dir" && \
9189 for f in "$libname$shrext".*; do echo "$f"; done \
9190 | sed -e "s,^$libname$shrext\\\\.,," \
9191 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9192 | sed 1q ) 2>/dev/null`
9193 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
9195 found_so="$dir/$libname$shrext.$ver"
9198 eval library_names=\"$acl_library_names_spec\"
9199 for f in $library_names; do
9200 if test -f "$dir/$f"; then
9209 if test "X$found_dir" = "X"; then
9210 if test -f "$dir/$libname.$acl_libext"; then
9212 found_a="$dir/$libname.$acl_libext"
9215 if test "X$found_dir" != "X"; then
9216 if test -f "$dir/$libname.la"; then
9217 found_la="$dir/$libname.la"
9221 if test "X$found_dir" = "X"; then
9222 for x in $LDFLAGS $LTLIBINTL; do
9224 acl_save_prefix="$prefix"
9225 prefix="$acl_final_prefix"
9226 acl_save_exec_prefix="$exec_prefix"
9227 exec_prefix="$acl_final_exec_prefix"
9229 exec_prefix="$acl_save_exec_prefix"
9230 prefix="$acl_save_prefix"
9234 dir=`echo "X$x" | sed -e 's/^X-L//'`
9235 if test -n "$acl_shlibext"; then
9236 if test -f "$dir/$libname$shrext"; then
9238 found_so="$dir/$libname$shrext"
9240 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9241 ver=`(cd "$dir" && \
9242 for f in "$libname$shrext".*; do echo "$f"; done \
9243 | sed -e "s,^$libname$shrext\\\\.,," \
9244 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9245 | sed 1q ) 2>/dev/null`
9246 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
9248 found_so="$dir/$libname$shrext.$ver"
9251 eval library_names=\"$acl_library_names_spec\"
9252 for f in $library_names; do
9253 if test -f "$dir/$f"; then
9262 if test "X$found_dir" = "X"; then
9263 if test -f "$dir/$libname.$acl_libext"; then
9265 found_a="$dir/$libname.$acl_libext"
9268 if test "X$found_dir" != "X"; then
9269 if test -f "$dir/$libname.la"; then
9270 found_la="$dir/$libname.la"
9275 if test "X$found_dir" != "X"; then
9280 if test "X$found_dir" != "X"; then
9281 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
9282 if test "X$found_so" != "X"; then
9283 if test "$enable_rpath" = no \
9284 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
9285 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
9286 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9289 for x in $ltrpathdirs; do
9290 if test "X$x" = "X$found_dir"; then
9295 if test -z "$haveit"; then
9296 ltrpathdirs="$ltrpathdirs $found_dir"
9298 if test "$acl_hardcode_direct" = yes; then
9299 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9301 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
9302 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9304 for x in $rpathdirs; do
9305 if test "X$x" = "X$found_dir"; then
9310 if test -z "$haveit"; then
9311 rpathdirs="$rpathdirs $found_dir"
9315 for x in $LDFLAGS $LIBINTL; do
9317 acl_save_prefix="$prefix"
9318 prefix="$acl_final_prefix"
9319 acl_save_exec_prefix="$exec_prefix"
9320 exec_prefix="$acl_final_exec_prefix"
9322 exec_prefix="$acl_save_exec_prefix"
9323 prefix="$acl_save_prefix"
9325 if test "X$x" = "X-L$found_dir"; then
9330 if test -z "$haveit"; then
9331 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
9333 if test "$acl_hardcode_minus_L" != no; then
9334 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9336 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9342 if test "X$found_a" != "X"; then
9343 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
9345 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
9348 additional_includedir=
9349 case "$found_dir" in
9350 */$acl_libdirstem | */$acl_libdirstem/)
9351 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9352 if test "$name" = 'intl'; then
9353 LIBINTL_PREFIX="$basedir"
9355 additional_includedir="$basedir/include"
9357 */$acl_libdirstem2 | */$acl_libdirstem2/)
9358 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
9359 if test "$name" = 'intl'; then
9360 LIBINTL_PREFIX="$basedir"
9362 additional_includedir="$basedir/include"
9365 if test "X$additional_includedir" != "X"; then
9366 if test "X$additional_includedir" != "X/usr/include"; then
9368 if test "X$additional_includedir" = "X/usr/local/include"; then
9369 if test -n "$GCC"; then
9371 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9375 if test -z "$haveit"; then
9376 for x in $CPPFLAGS $INCINTL; do
9378 acl_save_prefix="$prefix"
9379 prefix="$acl_final_prefix"
9380 acl_save_exec_prefix="$exec_prefix"
9381 exec_prefix="$acl_final_exec_prefix"
9383 exec_prefix="$acl_save_exec_prefix"
9384 prefix="$acl_save_prefix"
9386 if test "X$x" = "X-I$additional_includedir"; then
9391 if test -z "$haveit"; then
9392 if test -d "$additional_includedir"; then
9393 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9399 if test -n "$found_la"; then
9400 save_libdir="$libdir"
9402 */* | *\\*) . "$found_la" ;;
9403 *) . "./$found_la" ;;
9405 libdir="$save_libdir"
9406 for dep in $dependency_libs; do
9409 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9410 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
9411 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
9413 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
9414 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
9415 if test -n "$GCC"; then
9417 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9421 if test -z "$haveit"; then
9423 for x in $LDFLAGS $LIBINTL; do
9425 acl_save_prefix="$prefix"
9426 prefix="$acl_final_prefix"
9427 acl_save_exec_prefix="$exec_prefix"
9428 exec_prefix="$acl_final_exec_prefix"
9430 exec_prefix="$acl_save_exec_prefix"
9431 prefix="$acl_save_prefix"
9433 if test "X$x" = "X-L$additional_libdir"; then
9438 if test -z "$haveit"; then
9439 if test -d "$additional_libdir"; then
9440 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
9444 for x in $LDFLAGS $LTLIBINTL; do
9446 acl_save_prefix="$prefix"
9447 prefix="$acl_final_prefix"
9448 acl_save_exec_prefix="$exec_prefix"
9449 exec_prefix="$acl_final_exec_prefix"
9451 exec_prefix="$acl_save_exec_prefix"
9452 prefix="$acl_save_prefix"
9454 if test "X$x" = "X-L$additional_libdir"; then
9459 if test -z "$haveit"; then
9460 if test -d "$additional_libdir"; then
9461 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
9468 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9469 if test "$enable_rpath" != no; then
9471 for x in $rpathdirs; do
9472 if test "X$x" = "X$dir"; then
9477 if test -z "$haveit"; then
9478 rpathdirs="$rpathdirs $dir"
9481 for x in $ltrpathdirs; do
9482 if test "X$x" = "X$dir"; then
9487 if test -z "$haveit"; then
9488 ltrpathdirs="$ltrpathdirs $dir"
9493 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9496 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9499 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
9500 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
9506 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9507 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
9513 if test "X$rpathdirs" != "X"; then
9514 if test -n "$acl_hardcode_libdir_separator"; then
9516 for found_dir in $rpathdirs; do
9517 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
9519 acl_save_libdir="$libdir"
9521 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9522 libdir="$acl_save_libdir"
9523 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9525 for found_dir in $rpathdirs; do
9526 acl_save_libdir="$libdir"
9528 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9529 libdir="$acl_save_libdir"
9530 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9534 if test "X$ltrpathdirs" != "X"; then
9535 for found_dir in $ltrpathdirs; do
9536 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
9545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
9546 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
9547 if eval \${$gt_func_gnugettext_libintl+:} false; then :
9548 $as_echo_n "(cached) " >&6
9550 gt_save_CPPFLAGS="$CPPFLAGS"
9551 CPPFLAGS="$CPPFLAGS $INCINTL"
9552 gt_save_LIBS="$LIBS"
9553 LIBS="$LIBS $LIBINTL"
9554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9555 /* end confdefs.h. */
9556 #include <libintl.h>
9557 $gt_revision_test_code
9558 extern int _nl_msg_cat_cntr;
9563 const char *_nl_expand_alias (const char *);
9567 bindtextdomain ("", "");
9568 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
9573 if ac_fn_c_try_link "$LINENO"; then :
9574 eval "$gt_func_gnugettext_libintl=yes"
9576 eval "$gt_func_gnugettext_libintl=no"
9578 rm -f core conftest.err conftest.$ac_objext \
9579 conftest$ac_exeext conftest.$ac_ext
9580 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
9581 LIBS="$LIBS $LIBICONV"
9582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9583 /* end confdefs.h. */
9584 #include <libintl.h>
9585 $gt_revision_test_code
9586 extern int _nl_msg_cat_cntr;
9591 const char *_nl_expand_alias (const char *);
9595 bindtextdomain ("", "");
9596 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
9601 if ac_fn_c_try_link "$LINENO"; then :
9602 LIBINTL="$LIBINTL $LIBICONV"
9603 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
9604 eval "$gt_func_gnugettext_libintl=yes"
9607 rm -f core conftest.err conftest.$ac_objext \
9608 conftest$ac_exeext conftest.$ac_ext
9610 CPPFLAGS="$gt_save_CPPFLAGS"
9611 LIBS="$gt_save_LIBS"
9613 eval ac_res=\$$gt_func_gnugettext_libintl
9614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9615 $as_echo "$ac_res" >&6; }
9618 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
9619 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
9620 && test "$PACKAGE" != gettext-runtime \
9621 && test "$PACKAGE" != gettext-tools; }; then
9622 gt_use_preinstalled_gnugettext=yes
9630 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
9631 nls_cv_use_gnu_gettext=yes
9635 if test "$nls_cv_use_gnu_gettext" = "yes"; then
9636 BUILD_INCLUDED_LIBINTL=yes
9637 USE_INCLUDED_LIBINTL=yes
9638 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
9639 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
9640 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
9644 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9645 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9650 if test -n "$INTL_MACOSX_LIBS"; then
9651 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9652 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9653 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
9654 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
9658 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9659 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9661 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
9668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
9669 $as_echo_n "checking whether to use NLS... " >&6; }
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
9671 $as_echo "$USE_NLS" >&6; }
9672 if test "$USE_NLS" = "yes"; then
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
9674 $as_echo_n "checking where the gettext function comes from... " >&6; }
9675 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9676 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
9677 gt_source="external libintl"
9682 gt_source="included intl directory"
9684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
9685 $as_echo "$gt_source" >&6; }
9688 if test "$USE_NLS" = "yes"; then
9690 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9691 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
9692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
9693 $as_echo_n "checking how to link with libintl... " >&6; }
9694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
9695 $as_echo "$LIBINTL" >&6; }
9697 for element in $INCINTL; do
9699 for x in $CPPFLAGS; do
9701 acl_save_prefix="$prefix"
9702 prefix="$acl_final_prefix"
9703 acl_save_exec_prefix="$exec_prefix"
9704 exec_prefix="$acl_final_exec_prefix"
9706 exec_prefix="$acl_save_exec_prefix"
9707 prefix="$acl_save_prefix"
9709 if test "X$x" = "X$element"; then
9714 if test -z "$haveit"; then
9715 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9722 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
9725 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
9733 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
9734 BUILD_INCLUDED_LIBINTL=yes
9742 nls_cv_header_libgt=
9754 if test "$USE_INCLUDED_LIBINTL" = yes; then
9755 INTLOBJS="\$(GETTOBJS)"
9759 INTL_LIBTOOL_SUFFIX_PREFIX=
9775 abook_localedir="$datadir/locale"
9776 abook_localedir=`( test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9777 eval tmp_abook_prefix=\""$abook_localedir"\"
9778 eval echo $tmp_abook_prefix
9781 localedir="\$(datadir)/locale"
9784 # Check whether --with-localedir was given.
9785 if test "${with_localedir+set}" = set; then :
9786 withval=$with_localedir;
9789 if test "x$with_localedir" != "x"; then
9790 abook_localedir="$with_localedir"
9791 localedir="$with_localedir"
9795 cat >>confdefs.h <<_ACEOF
9796 #define LOCALEDIR "$abook_localedir"
9801 if test x$USE_INCLUDED_LIBINTL = xyes; then
9802 USE_INCLUDED_INTL_H_TRUE=
9803 USE_INCLUDED_INTL_H_FALSE='#'
9805 USE_INCLUDED_INTL_H_TRUE='#'
9806 USE_INCLUDED_INTL_H_FALSE=
9812 ac_cpp='$CPP $CPPFLAGS'
9813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9816 if test -n "$ac_tool_prefix"; then
9817 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
9818 set dummy ${ac_tool_prefix}gcc; ac_word=$2
9819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9820 $as_echo_n "checking for $ac_word... " >&6; }
9821 if ${ac_cv_prog_CC+:} false; then :
9822 $as_echo_n "(cached) " >&6
9824 if test -n "$CC"; then
9825 ac_cv_prog_CC="$CC" # Let the user override the test.
9827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9831 test -z "$as_dir" && as_dir=.
9832 for ac_exec_ext in '' $ac_executable_extensions; do
9833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9834 ac_cv_prog_CC="${ac_tool_prefix}gcc"
9835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9845 if test -n "$CC"; then
9846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
9847 $as_echo "$CC" >&6; }
9849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9850 $as_echo "no" >&6; }
9855 if test -z "$ac_cv_prog_CC"; then
9857 # Extract the first word of "gcc", so it can be a program name with args.
9858 set dummy gcc; ac_word=$2
9859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9860 $as_echo_n "checking for $ac_word... " >&6; }
9861 if ${ac_cv_prog_ac_ct_CC+:} false; then :
9862 $as_echo_n "(cached) " >&6
9864 if test -n "$ac_ct_CC"; then
9865 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
9867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9871 test -z "$as_dir" && as_dir=.
9872 for ac_exec_ext in '' $ac_executable_extensions; do
9873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9874 ac_cv_prog_ac_ct_CC="gcc"
9875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9884 ac_ct_CC=$ac_cv_prog_ac_ct_CC
9885 if test -n "$ac_ct_CC"; then
9886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
9887 $as_echo "$ac_ct_CC" >&6; }
9889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9890 $as_echo "no" >&6; }
9893 if test "x$ac_ct_CC" = x; then
9896 case $cross_compiling:$ac_tool_warned in
9898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9899 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9900 ac_tool_warned=yes ;;
9908 if test -z "$CC"; then
9909 if test -n "$ac_tool_prefix"; then
9910 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
9911 set dummy ${ac_tool_prefix}cc; ac_word=$2
9912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9913 $as_echo_n "checking for $ac_word... " >&6; }
9914 if ${ac_cv_prog_CC+:} false; then :
9915 $as_echo_n "(cached) " >&6
9917 if test -n "$CC"; then
9918 ac_cv_prog_CC="$CC" # Let the user override the test.
9920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9924 test -z "$as_dir" && as_dir=.
9925 for ac_exec_ext in '' $ac_executable_extensions; do
9926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9927 ac_cv_prog_CC="${ac_tool_prefix}cc"
9928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9938 if test -n "$CC"; then
9939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
9940 $as_echo "$CC" >&6; }
9942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9943 $as_echo "no" >&6; }
9949 if test -z "$CC"; then
9950 # Extract the first word of "cc", so it can be a program name with args.
9951 set dummy cc; ac_word=$2
9952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9953 $as_echo_n "checking for $ac_word... " >&6; }
9954 if ${ac_cv_prog_CC+:} false; then :
9955 $as_echo_n "(cached) " >&6
9957 if test -n "$CC"; then
9958 ac_cv_prog_CC="$CC" # Let the user override the test.
9961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9965 test -z "$as_dir" && as_dir=.
9966 for ac_exec_ext in '' $ac_executable_extensions; do
9967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9968 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
9969 ac_prog_rejected=yes
9973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9980 if test $ac_prog_rejected = yes; then
9981 # We found a bogon in the path, so make sure we never use it.
9982 set dummy $ac_cv_prog_CC
9984 if test $# != 0; then
9985 # We chose a different compiler from the bogus one.
9986 # However, it has the same basename, so the bogon will be chosen
9987 # first if we set CC to just the basename; use the full file name.
9989 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
9995 if test -n "$CC"; then
9996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
9997 $as_echo "$CC" >&6; }
9999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10000 $as_echo "no" >&6; }
10005 if test -z "$CC"; then
10006 if test -n "$ac_tool_prefix"; then
10007 for ac_prog in cl.exe
10009 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10010 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10012 $as_echo_n "checking for $ac_word... " >&6; }
10013 if ${ac_cv_prog_CC+:} false; then :
10014 $as_echo_n "(cached) " >&6
10016 if test -n "$CC"; then
10017 ac_cv_prog_CC="$CC" # Let the user override the test.
10019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10020 for as_dir in $PATH
10023 test -z "$as_dir" && as_dir=.
10024 for ac_exec_ext in '' $ac_executable_extensions; do
10025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10026 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10037 if test -n "$CC"; then
10038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10039 $as_echo "$CC" >&6; }
10041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10042 $as_echo "no" >&6; }
10046 test -n "$CC" && break
10049 if test -z "$CC"; then
10051 for ac_prog in cl.exe
10053 # Extract the first word of "$ac_prog", so it can be a program name with args.
10054 set dummy $ac_prog; ac_word=$2
10055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10056 $as_echo_n "checking for $ac_word... " >&6; }
10057 if ${ac_cv_prog_ac_ct_CC+:} false; then :
10058 $as_echo_n "(cached) " >&6
10060 if test -n "$ac_ct_CC"; then
10061 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10064 for as_dir in $PATH
10067 test -z "$as_dir" && as_dir=.
10068 for ac_exec_ext in '' $ac_executable_extensions; do
10069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10070 ac_cv_prog_ac_ct_CC="$ac_prog"
10071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10080 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10081 if test -n "$ac_ct_CC"; then
10082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
10083 $as_echo "$ac_ct_CC" >&6; }
10085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10086 $as_echo "no" >&6; }
10090 test -n "$ac_ct_CC" && break
10093 if test "x$ac_ct_CC" = x; then
10096 case $cross_compiling:$ac_tool_warned in
10098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10099 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10100 ac_tool_warned=yes ;;
10109 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10110 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10111 as_fn_error $? "no acceptable C compiler found in \$PATH
10112 See \`config.log' for more details" "$LINENO" 5; }
10114 # Provide some information about the compiler.
10115 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
10118 for ac_option in --version -v -V -qversion; do
10119 { { ac_try="$ac_compiler $ac_option >&5"
10120 case "(($ac_try" in
10121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10122 *) ac_try_echo=$ac_try;;
10124 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10125 $as_echo "$ac_try_echo"; } >&5
10126 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
10128 if test -s conftest.err; then
10130 ... rest of stderr output deleted ...
10131 10q' conftest.err >conftest.er1
10132 cat conftest.er1 >&5
10134 rm -f conftest.er1 conftest.err
10135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10136 test $ac_status = 0; }
10139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
10140 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
10141 if ${ac_cv_c_compiler_gnu+:} false; then :
10142 $as_echo_n "(cached) " >&6
10144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10145 /* end confdefs.h. */
10158 if ac_fn_c_try_compile "$LINENO"; then :
10159 ac_compiler_gnu=yes
10163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10164 ac_cv_c_compiler_gnu=$ac_compiler_gnu
10167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
10168 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
10169 if test $ac_compiler_gnu = yes; then
10174 ac_test_CFLAGS=${CFLAGS+set}
10175 ac_save_CFLAGS=$CFLAGS
10176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
10177 $as_echo_n "checking whether $CC accepts -g... " >&6; }
10178 if ${ac_cv_prog_cc_g+:} false; then :
10179 $as_echo_n "(cached) " >&6
10181 ac_save_c_werror_flag=$ac_c_werror_flag
10182 ac_c_werror_flag=yes
10185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10186 /* end confdefs.h. */
10196 if ac_fn_c_try_compile "$LINENO"; then :
10197 ac_cv_prog_cc_g=yes
10200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10201 /* end confdefs.h. */
10211 if ac_fn_c_try_compile "$LINENO"; then :
10214 ac_c_werror_flag=$ac_save_c_werror_flag
10216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10217 /* end confdefs.h. */
10227 if ac_fn_c_try_compile "$LINENO"; then :
10228 ac_cv_prog_cc_g=yes
10230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10235 ac_c_werror_flag=$ac_save_c_werror_flag
10237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
10238 $as_echo "$ac_cv_prog_cc_g" >&6; }
10239 if test "$ac_test_CFLAGS" = set; then
10240 CFLAGS=$ac_save_CFLAGS
10241 elif test $ac_cv_prog_cc_g = yes; then
10242 if test "$GCC" = yes; then
10248 if test "$GCC" = yes; then
10254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
10255 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
10256 if ${ac_cv_prog_cc_c89+:} false; then :
10257 $as_echo_n "(cached) " >&6
10259 ac_cv_prog_cc_c89=no
10261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10262 /* end confdefs.h. */
10263 #include <stdarg.h>
10265 #include <sys/types.h>
10266 #include <sys/stat.h>
10267 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
10268 struct buf { int x; };
10269 FILE * (*rcsopen) (struct buf *, struct stat *, int);
10270 static char *e (p, i)
10276 static char *f (char * (*g) (char **, int), char **p, ...)
10281 s = g (p, va_arg (v,int));
10286 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
10287 function prototypes and stuff, but not '\xHH' hex character constants.
10288 These don't provoke an error unfortunately, instead are silently treated
10289 as 'x'. The following induces an error, until -std is added to get
10290 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
10291 array size at least. It's necessary to write '\x00'==0 to get something
10292 that's true only with -std. */
10293 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
10295 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
10296 inside strings and character constants. */
10298 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
10300 int test (int i, double x);
10301 struct s1 {int (*f) (int a);};
10302 struct s2 {int (*f) (double a);};
10303 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
10309 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
10314 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
10315 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
10317 CC="$ac_save_CC $ac_arg"
10318 if ac_fn_c_try_compile "$LINENO"; then :
10319 ac_cv_prog_cc_c89=$ac_arg
10321 rm -f core conftest.err conftest.$ac_objext
10322 test "x$ac_cv_prog_cc_c89" != "xno" && break
10324 rm -f conftest.$ac_ext
10329 case "x$ac_cv_prog_cc_c89" in
10331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
10332 $as_echo "none needed" >&6; } ;;
10334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
10335 $as_echo "unsupported" >&6; } ;;
10337 CC="$CC $ac_cv_prog_cc_c89"
10338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
10339 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
10341 if test "x$ac_cv_prog_cc_c89" != xno; then :
10346 ac_cpp='$CPP $CPPFLAGS'
10347 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10348 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10349 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10351 depcc="$CC" am_compiler_list=
10353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
10354 $as_echo_n "checking dependency style of $depcc... " >&6; }
10355 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
10356 $as_echo_n "(cached) " >&6
10358 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
10359 # We make a subdir and do the tests there. Otherwise we can end up
10360 # making bogus files that we don't know about and never remove. For
10361 # instance it was reported that on HP-UX the gcc test will end up
10362 # making a dummy file named `D' -- because `-MD' means `put the output
10364 rm -rf conftest.dir
10366 # Copy depcomp to subdir because otherwise we won't find it if we're
10367 # using a relative directory.
10368 cp "$am_depcomp" conftest.dir
10370 # We will build objects and dependencies in a subdirectory because
10371 # it helps to detect inapplicable dependency modes. For instance
10372 # both Tru64's cc and ICC support -MD to output dependencies as a
10373 # side effect of compilation, but ICC will put the dependencies in
10374 # the current directory while Tru64 will put them in the object
10378 am_cv_CC_dependencies_compiler_type=none
10379 if test "$am_compiler_list" = ""; then
10380 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10382 am__universal=false
10383 case " $depcc " in #(
10384 *\ -arch\ *\ -arch\ *) am__universal=true ;;
10387 for depmode in $am_compiler_list; do
10388 # Setup a source with many dependencies, because some compilers
10389 # like to wrap large dependency lists on column 80 (with \), and
10390 # we should not choose a depcomp mode which is confused by this.
10392 # We need to recreate these files for each test, as the compiler may
10393 # overwrite some of them when testing with obscure command lines.
10394 # This happens at least with the AIX C compiler.
10396 for i in 1 2 3 4 5 6; do
10397 echo '#include "conftst'$i'.h"' >> sub/conftest.c
10398 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10399 # Solaris 8's {/usr,}/bin/sh.
10400 touch sub/conftst$i.h
10402 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
10404 # We check with `-c' and `-o' for the sake of the "dashmstdout"
10405 # mode. It turns out that the SunPro C++ compiler does not properly
10406 # handle `-M -o', and we need to detect this. Also, some Intel
10407 # versions had trouble with output in subdirs
10408 am__obj=sub/conftest.${OBJEXT-o}
10409 am__minus_obj="-o $am__obj"
10412 # This depmode causes a compiler race in universal mode.
10413 test "$am__universal" = false || continue
10416 # after this tag, mechanisms are not by side-effect, so they'll
10417 # only be used when explicitly requested
10418 if test "x$enable_dependency_tracking" = xyes; then
10424 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
10425 # This compiler won't grok `-c -o', but also, the minuso test has
10426 # not run yet. These depmodes are late enough in the game, and
10427 # so weak that their functioning should not be impacted.
10428 am__obj=conftest.${OBJEXT-o}
10433 if depmode=$depmode \
10434 source=sub/conftest.c object=$am__obj \
10435 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10436 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
10437 >/dev/null 2>conftest.err &&
10438 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
10439 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
10440 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
10441 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
10442 # icc doesn't choke on unknown options, it will just issue warnings
10443 # or remarks (even with -Werror). So we grep stderr for any message
10444 # that says an option was ignored or not supported.
10445 # When given -MP, icc 7.0 and 7.1 complain thusly:
10446 # icc: Command line warning: ignoring option '-M'; no argument required
10447 # The diagnosis changed in icc 8.0:
10448 # icc: Command line remark: option '-MP' not supported
10449 if (grep 'ignoring option' conftest.err ||
10450 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
10451 am_cv_CC_dependencies_compiler_type=$depmode
10458 rm -rf conftest.dir
10460 am_cv_CC_dependencies_compiler_type=none
10464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
10465 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
10466 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
10469 test "x$enable_dependency_tracking" != xno \
10470 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
10471 am__fastdepCC_TRUE=
10472 am__fastdepCC_FALSE='#'
10474 am__fastdepCC_TRUE='#'
10475 am__fastdepCC_FALSE=
10479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
10480 $as_echo_n "checking for library containing strerror... " >&6; }
10481 if ${ac_cv_search_strerror+:} false; then :
10482 $as_echo_n "(cached) " >&6
10484 ac_func_search_save_LIBS=$LIBS
10485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10486 /* end confdefs.h. */
10488 /* Override any GCC internal prototype to avoid an error.
10489 Use char because int might match the return type of a GCC
10490 builtin and then its argument prototype would still apply. */
10498 return strerror ();
10503 for ac_lib in '' cposix; do
10504 if test -z "$ac_lib"; then
10505 ac_res="none required"
10508 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10510 if ac_fn_c_try_link "$LINENO"; then :
10511 ac_cv_search_strerror=$ac_res
10513 rm -f core conftest.err conftest.$ac_objext \
10515 if ${ac_cv_search_strerror+:} false; then :
10519 if ${ac_cv_search_strerror+:} false; then :
10522 ac_cv_search_strerror=no
10524 rm conftest.$ac_ext
10525 LIBS=$ac_func_search_save_LIBS
10527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
10528 $as_echo "$ac_cv_search_strerror" >&6; }
10529 ac_res=$ac_cv_search_strerror
10530 if test "$ac_res" != no; then :
10531 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
10536 $as_echo_n "checking for function prototypes... " >&6; }
10537 if test "$ac_cv_prog_cc_c89" != no; then
10538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10539 $as_echo "yes" >&6; }
10541 $as_echo "#define PROTOTYPES 1" >>confdefs.h
10544 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
10547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10548 $as_echo "no" >&6; }
10553 if test "$ac_cv_prog_cc_stdc" != no; then
10556 U=_ ANSI2KNR=./ansi2knr
10558 # Ensure some checks needed by ansi2knr itself.
10560 for ac_header in string.h
10562 ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
10563 if test "x$ac_cv_header_string_h" = xyes; then :
10564 cat >>confdefs.h <<_ACEOF
10565 #define HAVE_STRING_H 1
10573 if test "x$U" != "x"; then
10574 as_fn_error $? "Compiler not ANSI compliant" "$LINENO" 5
10576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
10577 $as_echo_n "checking for inline... " >&6; }
10578 if ${ac_cv_c_inline+:} false; then :
10579 $as_echo_n "(cached) " >&6
10582 for ac_kw in inline __inline__ __inline; do
10583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10584 /* end confdefs.h. */
10585 #ifndef __cplusplus
10587 static $ac_kw foo_t static_foo () {return 0; }
10588 $ac_kw foo_t foo () {return 0; }
10592 if ac_fn_c_try_compile "$LINENO"; then :
10593 ac_cv_c_inline=$ac_kw
10595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10596 test "$ac_cv_c_inline" != no && break
10600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
10601 $as_echo "$ac_cv_c_inline" >&6; }
10603 case $ac_cv_c_inline in
10606 case $ac_cv_c_inline in
10608 *) ac_val=$ac_cv_c_inline;;
10610 cat >>confdefs.h <<_ACEOF
10611 #ifndef __cplusplus
10612 #define inline $ac_val
10619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10620 $as_echo_n "checking for ANSI C header files... " >&6; }
10621 if ${ac_cv_header_stdc+:} false; then :
10622 $as_echo_n "(cached) " >&6
10624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10625 /* end confdefs.h. */
10626 #include <stdlib.h>
10627 #include <stdarg.h>
10628 #include <string.h>
10639 if ac_fn_c_try_compile "$LINENO"; then :
10640 ac_cv_header_stdc=yes
10642 ac_cv_header_stdc=no
10644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10646 if test $ac_cv_header_stdc = yes; then
10647 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10649 /* end confdefs.h. */
10650 #include <string.h>
10653 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10654 $EGREP "memchr" >/dev/null 2>&1; then :
10657 ac_cv_header_stdc=no
10663 if test $ac_cv_header_stdc = yes; then
10664 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10666 /* end confdefs.h. */
10667 #include <stdlib.h>
10670 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10671 $EGREP "free" >/dev/null 2>&1; then :
10674 ac_cv_header_stdc=no
10680 if test $ac_cv_header_stdc = yes; then
10681 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10682 if test "$cross_compiling" = yes; then :
10685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10686 /* end confdefs.h. */
10688 #include <stdlib.h>
10689 #if ((' ' & 0x0FF) == 0x020)
10690 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10691 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10693 # define ISLOWER(c) \
10694 (('a' <= (c) && (c) <= 'i') \
10695 || ('j' <= (c) && (c) <= 'r') \
10696 || ('s' <= (c) && (c) <= 'z'))
10697 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10700 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10705 for (i = 0; i < 256; i++)
10706 if (XOR (islower (i), ISLOWER (i))
10707 || toupper (i) != TOUPPER (i))
10712 if ac_fn_c_try_run "$LINENO"; then :
10715 ac_cv_header_stdc=no
10717 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10718 conftest.$ac_objext conftest.beam conftest.$ac_ext
10723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
10724 $as_echo "$ac_cv_header_stdc" >&6; }
10725 if test $ac_cv_header_stdc = yes; then
10727 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
10731 for ac_header in unistd.h locale.h sys/ioctl.h iconv.h
10733 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10734 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10735 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10736 cat >>confdefs.h <<_ACEOF
10737 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10744 ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
10745 if test "x$ac_cv_header_stdarg_h" = xyes; then :
10747 $as_echo "#define HAVE_STDARG_H 1" >>confdefs.h
10750 as_fn_error $? "*** stdarg.h is missing on your system ***" "$LINENO" 5
10754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
10755 $as_echo_n "checking for working strcoll... " >&6; }
10756 if ${ac_cv_func_strcoll_works+:} false; then :
10757 $as_echo_n "(cached) " >&6
10759 if test "$cross_compiling" = yes; then :
10760 ac_cv_func_strcoll_works=no
10762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10763 /* end confdefs.h. */
10764 $ac_includes_default
10768 return (strcoll ("abc", "def") >= 0 ||
10769 strcoll ("ABC", "DEF") >= 0 ||
10770 strcoll ("123", "456") >= 0)
10775 if ac_fn_c_try_run "$LINENO"; then :
10776 ac_cv_func_strcoll_works=yes
10778 ac_cv_func_strcoll_works=no
10780 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10781 conftest.$ac_objext conftest.beam conftest.$ac_ext
10785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
10786 $as_echo "$ac_cv_func_strcoll_works" >&6; }
10787 if test $ac_cv_func_strcoll_works = yes; then
10789 $as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
10793 for ac_func in setlocale
10795 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
10796 if test "x$ac_cv_func_setlocale" = xyes; then :
10797 cat >>confdefs.h <<_ACEOF
10798 #define HAVE_SETLOCALE 1
10806 ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
10807 if test "x$ac_cv_header_wchar_h" = xyes; then :
10809 ac_have_wchar_h=yes
10811 $as_echo "#define HAVE_WCHAR_H 1" >>confdefs.h
10818 for ac_func in mbtowc wcwidth mbrtowc mbsinit
10820 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10821 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10822 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10823 cat >>confdefs.h <<_ACEOF
10824 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10832 ac_fn_c_check_decl "$LINENO" "wcwidth" "ac_cv_have_decl_wcwidth" "$ac_includes_default"
10833 if test "x$ac_cv_have_decl_wcwidth" = xyes; then :
10839 cat >>confdefs.h <<_ACEOF
10840 #define HAVE_DECL_WCWIDTH $ac_have_decl
10843 ac_fn_c_check_type "$LINENO" "wchar_t" "ac_cv_type_wchar_t" "$ac_includes_default"
10844 if test "x$ac_cv_type_wchar_t" = xyes; then :
10851 if test x$ac_widec_funcs = xyes -a x$ac_have_wchar_h = xyes; then
10852 ac_widec_possible=yes
10854 ac_widec_possible=no
10858 abook_cv_curses=/usr
10860 # Check whether --with-curses was given.
10861 if test "${with_curses+set}" = set; then :
10862 withval=$with_curses; if test $withval != yes; then
10863 abook_cv_curses=$withval
10865 if test x$abook_cv_curses != x/usr; then
10866 LDFLAGS="-L${abook_cv_curses}/lib $LDFLAGS"
10867 CPPFLAGS="$CPPFLAGS -I${abook_cv_curses}/include"
10872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncursesw" >&5
10873 $as_echo_n "checking for initscr in -lncursesw... " >&6; }
10874 if ${ac_cv_lib_ncursesw_initscr+:} false; then :
10875 $as_echo_n "(cached) " >&6
10877 ac_check_lib_save_LIBS=$LIBS
10878 LIBS="-lncursesw $LIBS"
10879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10880 /* end confdefs.h. */
10882 /* Override any GCC internal prototype to avoid an error.
10883 Use char because int might match the return type of a GCC
10884 builtin and then its argument prototype would still apply. */
10897 if ac_fn_c_try_link "$LINENO"; then :
10898 ac_cv_lib_ncursesw_initscr=yes
10900 ac_cv_lib_ncursesw_initscr=no
10902 rm -f core conftest.err conftest.$ac_objext \
10903 conftest$ac_exeext conftest.$ac_ext
10904 LIBS=$ac_check_lib_save_LIBS
10906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncursesw_initscr" >&5
10907 $as_echo "$ac_cv_lib_ncursesw_initscr" >&6; }
10908 if test "x$ac_cv_lib_ncursesw_initscr" = xyes; then :
10909 LIBS="$LIBS -lncursesw"
10910 if test x$abook_cv_curses = x/usr -a -d /usr/include/ncursesw; then
10911 CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw"
10913 for ac_header in ncurses.h
10915 ac_fn_c_check_header_mongrel "$LINENO" "ncurses.h" "ac_cv_header_ncurses_h" "$ac_includes_default"
10916 if test "x$ac_cv_header_ncurses_h" = xyes; then :
10917 cat >>confdefs.h <<_ACEOF
10918 #define HAVE_NCURSES_H 1
10927 ac_widec_possible=no
10928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncurses" >&5
10929 $as_echo_n "checking for initscr in -lncurses... " >&6; }
10930 if ${ac_cv_lib_ncurses_initscr+:} false; then :
10931 $as_echo_n "(cached) " >&6
10933 ac_check_lib_save_LIBS=$LIBS
10934 LIBS="-lncurses $LIBS"
10935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10936 /* end confdefs.h. */
10938 /* Override any GCC internal prototype to avoid an error.
10939 Use char because int might match the return type of a GCC
10940 builtin and then its argument prototype would still apply. */
10953 if ac_fn_c_try_link "$LINENO"; then :
10954 ac_cv_lib_ncurses_initscr=yes
10956 ac_cv_lib_ncurses_initscr=no
10958 rm -f core conftest.err conftest.$ac_objext \
10959 conftest$ac_exeext conftest.$ac_ext
10960 LIBS=$ac_check_lib_save_LIBS
10962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_initscr" >&5
10963 $as_echo "$ac_cv_lib_ncurses_initscr" >&6; }
10964 if test "x$ac_cv_lib_ncurses_initscr" = xyes; then :
10965 LIBS="$LIBS -lncurses"
10966 if test x$abook_cv_curses = x/usr -a -d /usr/include/ncurses; then
10967 CPPFLAGS="$CPPFLAGS -I/usr/include/ncurses"
10969 for ac_header in ncurses.h
10971 ac_fn_c_check_header_mongrel "$LINENO" "ncurses.h" "ac_cv_header_ncurses_h" "$ac_includes_default"
10972 if test "x$ac_cv_header_ncurses_h" = xyes; then :
10973 cat >>confdefs.h <<_ACEOF
10974 #define HAVE_NCURSES_H 1
10983 ac_fn_c_check_func "$LINENO" "initscr" "ac_cv_func_initscr"
10984 if test "x$ac_cv_func_initscr" = xyes; then :
10988 case $host_os in #(vi
10990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgoto in -lmytinfo" >&5
10991 $as_echo_n "checking for tgoto in -lmytinfo... " >&6; }
10992 if ${ac_cv_lib_mytinfo_tgoto+:} false; then :
10993 $as_echo_n "(cached) " >&6
10995 ac_check_lib_save_LIBS=$LIBS
10996 LIBS="-lmytinfo $LIBS"
10997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10998 /* end confdefs.h. */
11000 /* Override any GCC internal prototype to avoid an error.
11001 Use char because int might match the return type of a GCC
11002 builtin and then its argument prototype would still apply. */
11015 if ac_fn_c_try_link "$LINENO"; then :
11016 ac_cv_lib_mytinfo_tgoto=yes
11018 ac_cv_lib_mytinfo_tgoto=no
11020 rm -f core conftest.err conftest.$ac_objext \
11021 conftest$ac_exeext conftest.$ac_ext
11022 LIBS=$ac_check_lib_save_LIBS
11024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mytinfo_tgoto" >&5
11025 $as_echo "$ac_cv_lib_mytinfo_tgoto" >&6; }
11026 if test "x$ac_cv_lib_mytinfo_tgoto" = xyes; then :
11027 LIBS="-lmytinfo $LIBS"
11032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lcur_colr" >&5
11033 $as_echo_n "checking for initscr in -lcur_colr... " >&6; }
11034 if ${ac_cv_lib_cur_colr_initscr+:} false; then :
11035 $as_echo_n "(cached) " >&6
11037 ac_check_lib_save_LIBS=$LIBS
11038 LIBS="-lcur_colr $LIBS"
11039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11040 /* end confdefs.h. */
11042 /* Override any GCC internal prototype to avoid an error.
11043 Use char because int might match the return type of a GCC
11044 builtin and then its argument prototype would still apply. */
11057 if ac_fn_c_try_link "$LINENO"; then :
11058 ac_cv_lib_cur_colr_initscr=yes
11060 ac_cv_lib_cur_colr_initscr=no
11062 rm -f core conftest.err conftest.$ac_objext \
11063 conftest$ac_exeext conftest.$ac_ext
11064 LIBS=$ac_check_lib_save_LIBS
11066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cur_colr_initscr" >&5
11067 $as_echo "$ac_cv_lib_cur_colr_initscr" >&6; }
11068 if test "x$ac_cv_lib_cur_colr_initscr" = xyes; then :
11070 LIBS="-lcur_colr $LIBS"
11071 CFLAGS="-I/usr/include/curses_colr $CFLAGS"
11072 ac_cv_func_initscr=yes
11076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lHcurses" >&5
11077 $as_echo_n "checking for initscr in -lHcurses... " >&6; }
11078 if ${ac_cv_lib_Hcurses_initscr+:} false; then :
11079 $as_echo_n "(cached) " >&6
11081 ac_check_lib_save_LIBS=$LIBS
11082 LIBS="-lHcurses $LIBS"
11083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11084 /* end confdefs.h. */
11086 /* Override any GCC internal prototype to avoid an error.
11087 Use char because int might match the return type of a GCC
11088 builtin and then its argument prototype would still apply. */
11101 if ac_fn_c_try_link "$LINENO"; then :
11102 ac_cv_lib_Hcurses_initscr=yes
11104 ac_cv_lib_Hcurses_initscr=no
11106 rm -f core conftest.err conftest.$ac_objext \
11107 conftest$ac_exeext conftest.$ac_ext
11108 LIBS=$ac_check_lib_save_LIBS
11110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Hcurses_initscr" >&5
11111 $as_echo "$ac_cv_lib_Hcurses_initscr" >&6; }
11112 if test "x$ac_cv_lib_Hcurses_initscr" = xyes; then :
11114 # HP's header uses __HP_CURSES, but user claims _HP_CURSES.
11115 LIBS="-lHcurses $LIBS"
11116 CFLAGS="-D__HP_CURSES -D_HP_CURSES $CFLAGS"
11117 ac_cv_func_initscr=yes
11124 linux*) # Suse Linux does not follow /usr/lib convention
11125 LIBS="$LIBS -L/lib"
11129 if test ".$With5lib" != ".no" ; then
11130 if test -d /usr/5lib ; then
11132 CPPFLAGS="$CPPFLAGS -I/usr/5include"
11133 LIBS="$LIBS -L/usr/5lib"
11137 if test ".$ac_cv_func_initscr" != .yes ; then
11138 cf_save_LIBS="$LIBS"
11142 # Check for library containing tgoto. Do this before curses library
11143 # because it may be needed to link the test-case for initscr.
11144 ac_fn_c_check_func "$LINENO" "tgoto" "ac_cv_func_tgoto"
11145 if test "x$ac_cv_func_tgoto" = xyes; then :
11146 cf_term_lib=predefined
11149 for cf_term_lib in termcap termlib unknown
11151 as_ac_Lib=`$as_echo "ac_cv_lib_$cf_term_lib''_tgoto" | $as_tr_sh`
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgoto in -l$cf_term_lib" >&5
11153 $as_echo_n "checking for tgoto in -l$cf_term_lib... " >&6; }
11154 if eval \${$as_ac_Lib+:} false; then :
11155 $as_echo_n "(cached) " >&6
11157 ac_check_lib_save_LIBS=$LIBS
11158 LIBS="-l$cf_term_lib $LIBS"
11159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11160 /* end confdefs.h. */
11162 /* Override any GCC internal prototype to avoid an error.
11163 Use char because int might match the return type of a GCC
11164 builtin and then its argument prototype would still apply. */
11177 if ac_fn_c_try_link "$LINENO"; then :
11178 eval "$as_ac_Lib=yes"
11180 eval "$as_ac_Lib=no"
11182 rm -f core conftest.err conftest.$ac_objext \
11183 conftest$ac_exeext conftest.$ac_ext
11184 LIBS=$ac_check_lib_save_LIBS
11186 eval ac_res=\$$as_ac_Lib
11187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11188 $as_echo "$ac_res" >&6; }
11189 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
11198 # Check for library containing initscr
11199 test "$cf_term_lib" != predefined && test "$cf_term_lib" != unknown && LIBS="-l$cf_term_lib $cf_save_LIBS"
11200 for cf_curs_lib in cursesX curses ncurses xcurses jcurses unknown
11202 as_ac_Lib=`$as_echo "ac_cv_lib_$cf_curs_lib''_initscr" | $as_tr_sh`
11203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -l$cf_curs_lib" >&5
11204 $as_echo_n "checking for initscr in -l$cf_curs_lib... " >&6; }
11205 if eval \${$as_ac_Lib+:} false; then :
11206 $as_echo_n "(cached) " >&6
11208 ac_check_lib_save_LIBS=$LIBS
11209 LIBS="-l$cf_curs_lib $LIBS"
11210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11211 /* end confdefs.h. */
11213 /* Override any GCC internal prototype to avoid an error.
11214 Use char because int might match the return type of a GCC
11215 builtin and then its argument prototype would still apply. */
11228 if ac_fn_c_try_link "$LINENO"; then :
11229 eval "$as_ac_Lib=yes"
11231 eval "$as_ac_Lib=no"
11233 rm -f core conftest.err conftest.$ac_objext \
11234 conftest$ac_exeext conftest.$ac_ext
11235 LIBS=$ac_check_lib_save_LIBS
11237 eval ac_res=\$$as_ac_Lib
11238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11239 $as_echo "$ac_res" >&6; }
11240 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
11245 test $cf_curs_lib = unknown && as_fn_error $? "no curses library found" "$LINENO" 5
11247 LIBS="-l$cf_curs_lib $cf_save_LIBS"
11248 if test "$cf_term_lib" = unknown ; then
11249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can link with $cf_curs_lib library" >&5
11250 $as_echo_n "checking if we can link with $cf_curs_lib library... " >&6; }
11251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11252 /* end confdefs.h. */
11253 #include <${cf_cv_ncurses_header-curses.h}>
11262 if ac_fn_c_try_link "$LINENO"; then :
11267 rm -f core conftest.err conftest.$ac_objext \
11268 conftest$ac_exeext conftest.$ac_ext
11269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_result" >&5
11270 $as_echo "$cf_result" >&6; }
11271 test $cf_result = no && as_fn_error $? "Cannot link curses library" "$LINENO" 5
11272 elif test "$cf_term_lib" != predefined ; then
11273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need both $cf_curs_lib and $cf_term_lib libraries" >&5
11274 $as_echo_n "checking if we need both $cf_curs_lib and $cf_term_lib libraries... " >&6; }
11275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11276 /* end confdefs.h. */
11277 #include <${cf_cv_ncurses_header-curses.h}>
11281 initscr(); tgoto((char *)0, 0, 0);
11286 if ac_fn_c_try_link "$LINENO"; then :
11290 LIBS="-l$cf_curs_lib -l$cf_term_lib $cf_save_LIBS"
11291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11292 /* end confdefs.h. */
11293 #include <${cf_cv_ncurses_header-curses.h}>
11302 if ac_fn_c_try_link "$LINENO"; then :
11307 rm -f core conftest.err conftest.$ac_objext \
11308 conftest$ac_exeext conftest.$ac_ext
11311 rm -f core conftest.err conftest.$ac_objext \
11312 conftest$ac_exeext conftest.$ac_ext
11313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_result" >&5
11314 $as_echo "$cf_result" >&6; }
11329 abook_cv_readline=/usr
11331 # Check whether --with-readline was given.
11332 if test "${with_readline+set}" = set; then :
11333 withval=$with_readline; if test $withval != yes; then
11334 abook_cv_readline=$withval
11336 if test x$abook_cv_readline != x/usr; then
11337 LDFLAGS="-L${abook_cv_readline}/lib $LDFLAGS"
11338 CPPFLAGS="$CPPFLAGS -I${abook_cv_readline}/include"
11344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
11345 $as_echo_n "checking for a readline compatible library... " >&6; }
11346 if ${ac_cv_lib_readline+:} false; then :
11347 $as_echo_n "(cached) " >&6
11351 for readline_lib in readline edit editline; do
11352 for termcap_lib in "" termcap curses ncurses; do
11353 if test -z "$termcap_lib"; then
11354 TRY_LIB="-l$readline_lib"
11356 TRY_LIB="-l$readline_lib -l$termcap_lib"
11358 LIBS="$ORIG_LIBS $TRY_LIB"
11359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11360 /* end confdefs.h. */
11362 /* Override any GCC internal prototype to avoid an error.
11363 Use char because int might match the return type of a GCC
11364 builtin and then its argument prototype would still apply. */
11372 return readline ();
11377 if ac_fn_c_try_link "$LINENO"; then :
11378 ac_cv_lib_readline="$TRY_LIB"
11380 rm -f core conftest.err conftest.$ac_objext \
11381 conftest$ac_exeext conftest.$ac_ext
11382 if test -n "$ac_cv_lib_readline"; then
11386 if test -n "$ac_cv_lib_readline"; then
11390 if test -z "$ac_cv_lib_readline"; then
11391 ac_cv_lib_readline="no"
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline" >&5
11397 $as_echo "$ac_cv_lib_readline" >&6; }
11399 if test "$ac_cv_lib_readline" != "no"; then
11400 LIBS="$LIBS $ac_cv_lib_readline"
11402 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
11404 for ac_header in readline.h readline/readline.h
11406 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11407 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11408 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11409 cat >>confdefs.h <<_ACEOF
11410 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
11418 $as_echo_n "checking whether readline supports history... " >&6; }
11419 if ${ac_cv_lib_readline_history+:} false; then :
11420 $as_echo_n "(cached) " >&6
11423 ac_cv_lib_readline_history="no"
11424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11425 /* end confdefs.h. */
11427 /* Override any GCC internal prototype to avoid an error.
11428 Use char because int might match the return type of a GCC
11429 builtin and then its argument prototype would still apply. */
11433 char add_history ();
11437 return add_history ();
11442 if ac_fn_c_try_link "$LINENO"; then :
11443 ac_cv_lib_readline_history="yes"
11445 rm -f core conftest.err conftest.$ac_objext \
11446 conftest$ac_exeext conftest.$ac_ext
11449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_history" >&5
11450 $as_echo "$ac_cv_lib_readline_history" >&6; }
11451 if test "$ac_cv_lib_readline_history" = "yes"; then
11453 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
11455 for ac_header in history.h readline/history.h
11457 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11458 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11459 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11460 cat >>confdefs.h <<_ACEOF
11461 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11473 if test x$ac_cv_lib_readline = xno -o x$ac_cv_lib_readline_history = xno; then
11474 as_fn_error $? "*** readline library not found or it doesn't support history ***" "$LINENO" 5
11479 # Check whether --enable-vformat was given.
11480 if test "${enable_vformat+set}" = set; then :
11481 enableval=$enable_vformat; case "${enableval}" in
11482 yes) vformat=true ;;
11483 no) vformat=false ;;
11484 *) as_fn_error $? "bad value ${enableval} for --enable-vformat" "$LINENO" 5 ;;
11491 if test x$vformat = xtrue; then
11492 ac_fn_c_check_header_mongrel "$LINENO" "vf_iface.h" "ac_cv_header_vf_iface_h" "$ac_includes_default"
11493 if test "x$ac_cv_header_vf_iface_h" = xyes; then :
11495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vf_read_file in -lvformat" >&5
11496 $as_echo_n "checking for vf_read_file in -lvformat... " >&6; }
11497 if ${ac_cv_lib_vformat_vf_read_file+:} false; then :
11498 $as_echo_n "(cached) " >&6
11500 ac_check_lib_save_LIBS=$LIBS
11501 LIBS="-lvformat $LIBS"
11502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11503 /* end confdefs.h. */
11505 /* Override any GCC internal prototype to avoid an error.
11506 Use char because int might match the return type of a GCC
11507 builtin and then its argument prototype would still apply. */
11511 char vf_read_file ();
11515 return vf_read_file ();
11520 if ac_fn_c_try_link "$LINENO"; then :
11521 ac_cv_lib_vformat_vf_read_file=yes
11523 ac_cv_lib_vformat_vf_read_file=no
11525 rm -f core conftest.err conftest.$ac_objext \
11526 conftest$ac_exeext conftest.$ac_ext
11527 LIBS=$ac_check_lib_save_LIBS
11529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_vformat_vf_read_file" >&5
11530 $as_echo "$ac_cv_lib_vformat_vf_read_file" >&6; }
11531 if test "x$ac_cv_lib_vformat_vf_read_file" = xyes; then :
11533 MODULES="$MODULES m_vcf"
11535 LDFLAGS="-lvformat $LDFLAGS"
11536 CFLAGS="-DVFORMAT=1 $CFLAGS"
11549 if test x$ac_widec_possible = xyes; then
11551 $as_echo "#define HANDLE_MULTIBYTE 1" >>confdefs.h
11555 for ac_func in resizeterm
11557 ac_fn_c_check_func "$LINENO" "resizeterm" "ac_cv_func_resizeterm"
11558 if test "x$ac_cv_func_resizeterm" = xyes; then :
11559 cat >>confdefs.h <<_ACEOF
11560 #define HAVE_RESIZETERM 1
11567 for ac_func in snprintf vsnprintf
11569 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11570 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11571 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11572 cat >>confdefs.h <<_ACEOF
11573 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11580 for ac_func in strcasestr
11582 ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
11583 if test "x$ac_cv_func_strcasestr" = xyes; then :
11584 cat >>confdefs.h <<_ACEOF
11585 #define HAVE_STRCASESTR 1
11587 $as_echo "#define HAVE_STRCASESTR 1" >>confdefs.h
11593 # Check whether --enable-debug was given.
11594 if test "${enable_debug+set}" = set; then :
11595 enableval=$enable_debug; case "${enableval}" in
11598 *) as_fn_error $? "bad value ${enableval} for --enable-debug" "$LINENO" 5 ;;
11605 if test x$debug = xtrue; then
11606 CPPFLAGS="-DDEBUG=1 $CPPFLAGS"
11607 CFLAGS="-g $CFLAGS"
11610 if test x$GCC = xyes; then
11611 CFLAGS="-Wall $CFLAGS"
11614 ac_config_files="$ac_config_files Makefile abook.spec intl/Makefile po/Makefile.in"
11616 cat >confcache <<\_ACEOF
11617 # This file is a shell script that caches the results of configure
11618 # tests run on this system so they can be shared between configure
11619 # scripts and configure runs, see configure's option --config-cache.
11620 # It is not useful on other systems. If it contains results you don't
11621 # want to keep, you may remove or edit it.
11623 # config.status only pays attention to the cache file if you give it
11624 # the --recheck option to rerun configure.
11626 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11627 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11628 # following values.
11632 # The following way of writing the cache mishandles newlines in values,
11633 # but we know of no workaround that is simple, portable, and efficient.
11634 # So, we kill variables containing newlines.
11635 # Ultrix sh set writes to stderr and can't be redirected directly,
11636 # and sets the high bit in the cache file unless we assign to the vars.
11638 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11639 eval ac_val=\$$ac_var
11643 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11644 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11647 _ | IFS | as_nl) ;; #(
11648 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11649 *) { eval $ac_var=; unset $ac_var;} ;;
11655 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11656 *${as_nl}ac_space=\ *)
11657 # `set' does not quote correctly, so add quotes: double-quote
11658 # substitution turns \\\\ into \\, and sed turns \\ into \.
11661 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11664 # `set' quotes correctly as required by POSIX, so do not add quotes.
11665 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11674 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11676 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11678 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11679 if test -w "$cache_file"; then
11680 if test "x$cache_file" != "x/dev/null"; then
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11682 $as_echo "$as_me: updating cache $cache_file" >&6;}
11683 if test ! -f "$cache_file" || test -h "$cache_file"; then
11684 cat confcache >"$cache_file"
11686 case $cache_file in #(
11688 mv -f confcache "$cache_file"$$ &&
11689 mv -f "$cache_file"$$ "$cache_file" ;; #(
11691 mv -f confcache "$cache_file" ;;
11696 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11697 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11702 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11703 # Let make expand exec_prefix.
11704 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11706 DEFS=-DHAVE_CONFIG_H
11710 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11711 # 1. Remove the extension, and $U if already installed.
11712 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11713 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11714 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11715 # will be set to the directory where LIBOBJS objects are built.
11716 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11717 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11719 LIBOBJS=$ac_libobjs
11721 LTLIBOBJS=$ac_ltlibobjs
11724 if test -n "$EXEEXT"; then
11726 am__EXEEXT_FALSE='#'
11728 am__EXEEXT_TRUE='#'
11732 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11733 as_fn_error $? "conditional \"AMDEP\" was never defined.
11734 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11736 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11737 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11738 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11740 if test -z "${USE_INCLUDED_INTL_H_TRUE}" && test -z "${USE_INCLUDED_INTL_H_FALSE}"; then
11741 as_fn_error $? "conditional \"USE_INCLUDED_INTL_H\" was never defined.
11742 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11744 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11745 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11746 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11749 : "${CONFIG_STATUS=./config.status}"
11751 ac_clean_files_save=$ac_clean_files
11752 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11754 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11756 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11758 # Generated by $as_me.
11759 # Run this file to recreate the current configuration.
11760 # Compiler output produced by configure, useful for debugging
11761 # configure, is in config.log if it exists.
11764 ac_cs_recheck=false
11767 SHELL=\${CONFIG_SHELL-$SHELL}
11770 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11771 ## -------------------- ##
11772 ## M4sh Initialization. ##
11773 ## -------------------- ##
11775 # Be more Bourne compatible
11776 DUALCASE=1; export DUALCASE # for MKS sh
11777 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11780 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11781 # is contrary to our usage. Disable this feature.
11782 alias -g '${1+"$@"}'='"$@"'
11783 setopt NO_GLOB_SUBST
11785 case `(set -o) 2>/dev/null` in #(
11797 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11798 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11799 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11800 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11801 # Prefer a ksh shell builtin over an external printf program on Solaris,
11802 # but without wasting forks for bash or zsh.
11803 if test -z "$BASH_VERSION$ZSH_VERSION" \
11804 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11805 as_echo='print -r --'
11806 as_echo_n='print -rn --'
11807 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11808 as_echo='printf %s\n'
11809 as_echo_n='printf %s'
11811 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11812 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11813 as_echo_n='/usr/ucb/echo -n'
11815 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11816 as_echo_n_body='eval
11820 expr "X$arg" : "X\\(.*\\)$as_nl";
11821 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11823 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11825 export as_echo_n_body
11826 as_echo_n='sh -c $as_echo_n_body as_echo'
11828 export as_echo_body
11829 as_echo='sh -c $as_echo_body as_echo'
11832 # The user is always right.
11833 if test "${PATH_SEPARATOR+set}" != set; then
11835 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11836 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11843 # We need space, tab and new line, in precisely that order. Quoting is
11844 # there to prevent editors from complaining about space-tab.
11845 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11846 # splitting by setting IFS to empty value.)
11849 # Find who we are. Look in the path if we contain no directory separator.
11852 *[\\/]* ) as_myself=$0 ;;
11853 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11854 for as_dir in $PATH
11857 test -z "$as_dir" && as_dir=.
11858 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11864 # We did not find ourselves, most probably we were run as `sh COMMAND'
11865 # in which case we are not to be found in the path.
11866 if test "x$as_myself" = x; then
11869 if test ! -f "$as_myself"; then
11870 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11874 # Unset variables that we do not need and which cause bugs (e.g. in
11875 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11876 # suppresses any "Segmentation fault" message there. '((' could
11877 # trigger a bug in pdksh 5.2.14.
11878 for as_var in BASH_ENV ENV MAIL MAILPATH
11879 do eval test x\${$as_var+set} = xset \
11880 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11893 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11896 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11897 # ----------------------------------------
11898 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11899 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11900 # script with STATUS, using 1 if that was 0.
11903 as_status=$1; test $as_status -eq 0 && as_status=1
11905 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11906 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11908 $as_echo "$as_me: error: $2" >&2
11909 as_fn_exit $as_status
11913 # as_fn_set_status STATUS
11914 # -----------------------
11915 # Set $? to STATUS, without forking.
11916 as_fn_set_status ()
11919 } # as_fn_set_status
11921 # as_fn_exit STATUS
11922 # -----------------
11923 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11927 as_fn_set_status $1
11933 # Portably unset VAR.
11936 { eval $1=; unset $1;}
11938 as_unset=as_fn_unset
11939 # as_fn_append VAR VALUE
11940 # ----------------------
11941 # Append the text in VALUE to the end of the definition contained in VAR. Take
11942 # advantage of any shell optimizations that allow amortized linear growth over
11943 # repeated appends, instead of the typical quadratic growth present in naive
11945 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11946 eval 'as_fn_append ()
11957 # as_fn_arith ARG...
11958 # ------------------
11959 # Perform arithmetic evaluation on the ARGs, and store the result in the
11960 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11961 # must be portable across $(()) and expr.
11962 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11963 eval 'as_fn_arith ()
11970 as_val=`expr "$@" || test $? -eq 1`
11975 if expr a : '\(a\)' >/dev/null 2>&1 &&
11976 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11982 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11983 as_basename=basename
11988 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11994 as_me=`$as_basename -- "$0" ||
11995 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11996 X"$0" : 'X\(//\)$' \| \
11997 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11999 sed '/^.*\/\([^/][^/]*\)\/*$/{
12013 # Avoid depending upon Character Ranges.
12014 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12015 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12016 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12017 as_cr_digits='0123456789'
12018 as_cr_alnum=$as_cr_Letters$as_cr_digits
12020 ECHO_C= ECHO_N= ECHO_T=
12021 case `echo -n x` in #(((((
12023 case `echo 'xy\c'` in
12024 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12026 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12033 rm -f conf$$ conf$$.exe conf$$.file
12034 if test -d conf$$.dir; then
12035 rm -f conf$$.dir/conf$$.file
12038 mkdir conf$$.dir 2>/dev/null
12040 if (echo >conf$$.file) 2>/dev/null; then
12041 if ln -s conf$$.file conf$$ 2>/dev/null; then
12043 # ... but there are two gotchas:
12044 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12045 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12046 # In both cases, we have to default to `cp -p'.
12047 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12049 elif ln conf$$.file conf$$ 2>/dev/null; then
12057 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12058 rmdir conf$$.dir 2>/dev/null
12063 # Create "$as_dir" as a directory, including parents if necessary.
12068 -*) as_dir=./$as_dir;;
12070 test -d "$as_dir" || eval $as_mkdir_p || {
12074 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12075 *) as_qdir=$as_dir;;
12077 as_dirs="'$as_qdir' $as_dirs"
12078 as_dir=`$as_dirname -- "$as_dir" ||
12079 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12080 X"$as_dir" : 'X\(//\)[^/]' \| \
12081 X"$as_dir" : 'X\(//\)$' \| \
12082 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12083 $as_echo X"$as_dir" |
12084 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12088 /^X\(\/\/\)[^/].*/{
12101 test -d "$as_dir" && break
12103 test -z "$as_dirs" || eval "mkdir $as_dirs"
12104 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12108 if mkdir -p . 2>/dev/null; then
12109 as_mkdir_p='mkdir -p "$as_dir"'
12111 test -d ./-p && rmdir ./-p
12115 if test -x / >/dev/null 2>&1; then
12116 as_test_x='test -x'
12118 if ls -dL / >/dev/null 2>&1; then
12125 if test -d "$1"; then
12131 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12132 ???[sx]*):;;*)false;;esac;fi
12136 as_executable_p=$as_test_x
12138 # Sed expression to map a string onto a valid CPP name.
12139 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12141 # Sed expression to map a string onto a valid variable name.
12142 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12146 ## ----------------------------------- ##
12147 ## Main body of $CONFIG_STATUS script. ##
12148 ## ----------------------------------- ##
12150 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12152 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12153 # Save the log message, to keep $0 and so on meaningful, and to
12154 # report actual input values of CONFIG_FILES etc. instead of their
12155 # values after options handling.
12157 This file was extended by $as_me, which was
12158 generated by GNU Autoconf 2.68. Invocation command line was
12160 CONFIG_FILES = $CONFIG_FILES
12161 CONFIG_HEADERS = $CONFIG_HEADERS
12162 CONFIG_LINKS = $CONFIG_LINKS
12163 CONFIG_COMMANDS = $CONFIG_COMMANDS
12166 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12171 case $ac_config_files in *"
12172 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12175 case $ac_config_headers in *"
12176 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12180 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12181 # Files that config.status was made for.
12182 config_files="$ac_config_files"
12183 config_headers="$ac_config_headers"
12184 config_commands="$ac_config_commands"
12188 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12190 \`$as_me' instantiates files and other configuration actions
12191 from templates according to the current configuration. Unless the files
12192 and actions are specified as TAGs, all are instantiated by default.
12194 Usage: $0 [OPTION]... [TAG]...
12196 -h, --help print this help, then exit
12197 -V, --version print version number and configuration settings, then exit
12198 --config print configuration, then exit
12199 -q, --quiet, --silent
12200 do not print progress messages
12201 -d, --debug don't remove temporary files
12202 --recheck update $as_me by reconfiguring in the same conditions
12203 --file=FILE[:TEMPLATE]
12204 instantiate the configuration file FILE
12205 --header=FILE[:TEMPLATE]
12206 instantiate the configuration header FILE
12208 Configuration files:
12211 Configuration headers:
12214 Configuration commands:
12217 Report bugs to the package provider."
12220 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12221 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12224 configured by $0, generated by GNU Autoconf 2.68,
12225 with options \\"\$ac_cs_config\\"
12227 Copyright (C) 2010 Free Software Foundation, Inc.
12228 This config.status script is free software; the Free Software Foundation
12229 gives unlimited permission to copy, distribute and modify it."
12236 test -n "\$AWK" || AWK=awk
12239 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12240 # The default lists apply if the user does not specify any file.
12246 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12247 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12251 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12263 # Handling of the options.
12264 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12266 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12267 $as_echo "$ac_cs_version"; exit ;;
12268 --config | --confi | --conf | --con | --co | --c )
12269 $as_echo "$ac_cs_config"; exit ;;
12270 --debug | --debu | --deb | --de | --d | -d )
12272 --file | --fil | --fi | --f )
12275 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12276 '') as_fn_error $? "missing file argument" ;;
12278 as_fn_append CONFIG_FILES " '$ac_optarg'"
12279 ac_need_defaults=false;;
12280 --header | --heade | --head | --hea )
12283 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12285 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12286 ac_need_defaults=false;;
12288 # Conflict between --help and --header
12289 as_fn_error $? "ambiguous option: \`$1'
12290 Try \`$0 --help' for more information.";;
12291 --help | --hel | -h )
12292 $as_echo "$ac_cs_usage"; exit ;;
12293 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12294 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12297 # This is an error.
12298 -*) as_fn_error $? "unrecognized option: \`$1'
12299 Try \`$0 --help' for more information." ;;
12301 *) as_fn_append ac_config_targets " $1"
12302 ac_need_defaults=false ;;
12308 ac_configure_extra_args=
12310 if $ac_cs_silent; then
12312 ac_configure_extra_args="$ac_configure_extra_args --silent"
12316 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12317 if \$ac_cs_recheck; then
12318 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12320 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12321 CONFIG_SHELL='$SHELL'
12322 export CONFIG_SHELL
12327 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12331 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12332 ## Running $as_me. ##
12338 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12342 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12343 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
12344 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
12345 # from automake < 1.5.
12346 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
12347 # Capture the value of LINGUAS because we need it to compute CATALOGS.
12348 LINGUAS="${LINGUAS-%UNSET%}"
12353 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12355 # Handling of arguments.
12356 for ac_config_target in $ac_config_targets
12358 case $ac_config_target in
12359 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12360 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12361 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
12362 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12363 "abook.spec") CONFIG_FILES="$CONFIG_FILES abook.spec" ;;
12364 "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
12365 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
12367 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12372 # If the user did not use the arguments to specify the items to instantiate,
12373 # then the envvar interface is used. Set only those that are not.
12374 # We use the long form for the default assignment because of an extremely
12375 # bizarre bug on SunOS 4.1.3.
12376 if $ac_need_defaults; then
12377 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12378 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12379 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12382 # Have a temporary directory for convenience. Make it in the build tree
12383 # simply because there is no reason against having it here, and in addition,
12384 # creating and moving files from /tmp can sometimes cause problems.
12385 # Hook for its removal unless debugging.
12386 # Note that there is a small window in which the directory will not be cleaned:
12387 # after its creation but before its name has been assigned to `$tmp'.
12391 trap 'exit_status=$?
12392 : "${ac_tmp:=$tmp}"
12393 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12395 trap 'as_fn_exit 1' 1 2 13 15
12397 # Create a (secure) tmp directory for tmp files.
12400 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12404 tmp=./conf$$-$RANDOM
12405 (umask 077 && mkdir "$tmp")
12406 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12409 # Set up the scripts for CONFIG_FILES section.
12410 # No need to generate them if there are no CONFIG_FILES.
12411 # This happens for instance with `./config.status config.h'.
12412 if test -n "$CONFIG_FILES"; then
12415 ac_cr=`echo X | tr X '\015'`
12416 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12417 # But we know of no other shell where ac_cr would be empty at this
12418 # point, so we can use a bashism as a fallback.
12419 if test "x$ac_cr" = x; then
12420 eval ac_cr=\$\'\\r\'
12422 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12423 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12426 ac_cs_awk_cr=$ac_cr
12429 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12434 echo "cat >conf$$subs.awk <<_ACEOF" &&
12435 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12437 } >conf$$subs.sh ||
12438 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12439 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12441 for ac_last_try in false false false false false :; do
12442 . ./conf$$subs.sh ||
12443 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12445 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12446 if test $ac_delim_n = $ac_delim_num; then
12448 elif $ac_last_try; then
12449 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12451 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12454 rm -f conf$$subs.sh
12456 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12457 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12461 s/^/S["/; s/!.*/"]=/
12471 s/\(.\{148\}\)..*/\1/
12473 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12478 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12485 s/\(.\{148\}\)..*/\1/
12487 s/["\\]/\\&/g; s/^/"/; s/$/"/
12491 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12496 ' <conf$$subs.awk | sed '
12501 ' >>$CONFIG_STATUS || ac_write_fail=1
12502 rm -f conf$$subs.awk
12503 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12505 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12506 for (key in S) S_is_set[key] = 1
12512 nfields = split(line, field, "@")
12514 len = length(field[1])
12515 for (i = 2; i < nfields; i++) {
12517 keylen = length(key)
12518 if (S_is_set[key]) {
12520 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12521 len += length(value) + length(field[++i])
12532 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12533 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12534 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12537 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12538 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12541 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12542 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12543 # trailing colons and then remove the whole line if VPATH becomes empty
12544 # (actually we leave an empty line to preserve line numbers).
12545 if test "x$srcdir" = x.; then
12546 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12564 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12565 fi # test -n "$CONFIG_FILES"
12567 # Set up the scripts for CONFIG_HEADERS section.
12568 # No need to generate them if there are no CONFIG_HEADERS.
12569 # This happens for instance with `./config.status Makefile'.
12570 if test -n "$CONFIG_HEADERS"; then
12571 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12575 # Transform confdefs.h into an awk script `defines.awk', embedded as
12576 # here-document in config.status, that substitutes the proper values into
12577 # config.h.in to produce config.h.
12579 # Create a delimiter string that does not exist in confdefs.h, to ease
12580 # handling of long lines.
12582 for ac_last_try in false false :; do
12583 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12584 if test -z "$ac_tt"; then
12586 elif $ac_last_try; then
12587 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12589 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12593 # For the awk script, D is an array of macro values keyed by name,
12594 # likewise P contains macro parameters if any. Preserve backslash
12595 # newline sequences.
12597 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12599 s/.\{148\}/&'"$ac_delim"'/g
12602 s/^[ ]*#[ ]*define[ ][ ]*/ /
12609 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12611 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12615 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12616 D["\1"]=" \3\\\\\\n"\\/p
12618 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12623 s/.\{148\}/&'"$ac_delim"'/g
12628 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12631 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12633 ' <confdefs.h | sed '
12634 s/'"$ac_delim"'/"\\\
12635 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12637 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12638 for (key in D) D_is_set[key] = 1
12641 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12643 split(line, arg, " ")
12644 if (arg[1] == "#") {
12648 defundef = substr(arg[1], 2)
12651 split(mac1, mac2, "(") #)
12653 prefix = substr(line, 1, index(line, defundef) - 1)
12654 if (D_is_set[macro]) {
12655 # Preserve the white space surrounding the "#".
12656 print prefix "define", macro P[macro] D[macro]
12659 # Replace #undef with comments. This is necessary, for example,
12660 # in the case of _POSIX_SOURCE, which is predefined and required
12661 # on some systems where configure will not decide to define it.
12662 if (defundef == "undef") {
12663 print "/*", prefix defundef, macro, "*/"
12671 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12672 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12673 fi # test -n "$CONFIG_HEADERS"
12676 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12681 :[FHLC]) ac_mode=$ac_tag; continue;;
12683 case $ac_mode$ac_tag in
12685 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12686 :[FH]-) ac_tag=-:-;;
12687 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12704 -) ac_f="$ac_tmp/stdin";;
12705 *) # Look for the file first in the build tree, then in the source tree
12706 # (if the path is not absolute). The absolute path cannot be DOS-style,
12707 # because $ac_f cannot contain `:'.
12711 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12713 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12715 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12716 as_fn_append ac_file_inputs " '$ac_f'"
12719 # Let's still pretend it is `configure' which instantiates (i.e., don't
12720 # use $as_me), people would be surprised to read:
12721 # /* config.h. Generated by config.status. */
12722 configure_input='Generated from '`
12723 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12725 if test x"$ac_file" != x-; then
12726 configure_input="$ac_file. $configure_input"
12727 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12728 $as_echo "$as_me: creating $ac_file" >&6;}
12730 # Neutralize special characters interpreted by sed in replacement strings.
12731 case $configure_input in #(
12732 *\&* | *\|* | *\\* )
12733 ac_sed_conf_input=`$as_echo "$configure_input" |
12734 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12735 *) ac_sed_conf_input=$configure_input;;
12739 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12740 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12745 ac_dir=`$as_dirname -- "$ac_file" ||
12746 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12747 X"$ac_file" : 'X\(//\)[^/]' \| \
12748 X"$ac_file" : 'X\(//\)$' \| \
12749 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12750 $as_echo X"$ac_file" |
12751 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12755 /^X\(\/\/\)[^/].*/{
12768 as_dir="$ac_dir"; as_fn_mkdir_p
12772 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12774 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12775 # A ".." for each directory in $ac_dir_suffix.
12776 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12777 case $ac_top_builddir_sub in
12778 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12779 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12782 ac_abs_top_builddir=$ac_pwd
12783 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12784 # for backward compatibility:
12785 ac_top_builddir=$ac_top_build_prefix
12788 .) # We are building in place.
12790 ac_top_srcdir=$ac_top_builddir_sub
12791 ac_abs_top_srcdir=$ac_pwd ;;
12792 [\\/]* | ?:[\\/]* ) # Absolute name.
12793 ac_srcdir=$srcdir$ac_dir_suffix;
12794 ac_top_srcdir=$srcdir
12795 ac_abs_top_srcdir=$srcdir ;;
12796 *) # Relative name.
12797 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12798 ac_top_srcdir=$ac_top_build_prefix$srcdir
12799 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12801 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12811 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12812 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12814 ac_MKDIR_P=$MKDIR_P
12816 [\\/$]* | ?:[\\/]* ) ;;
12817 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12821 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12822 # If the template does not know about datarootdir, expand it.
12823 # FIXME: This hack should be removed a few years after 2.60.
12824 ac_datarootdir_hack=; ac_datarootdir_seen=
12835 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12836 *datarootdir*) ac_datarootdir_seen=yes;;
12837 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12839 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12841 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12842 ac_datarootdir_hack='
12843 s&@datadir@&$datadir&g
12844 s&@docdir@&$docdir&g
12845 s&@infodir@&$infodir&g
12846 s&@localedir@&$localedir&g
12847 s&@mandir@&$mandir&g
12848 s&\\\${datarootdir}&$datarootdir&g' ;;
12852 # Neutralize VPATH when `$srcdir' = `.'.
12853 # Shell code in configure.ac might set extrasub.
12854 # FIXME: do we really want to maintain this feature?
12855 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12856 ac_sed_extra="$ac_vpsub
12859 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12861 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12862 s|@configure_input@|$ac_sed_conf_input|;t t
12863 s&@top_builddir@&$ac_top_builddir_sub&;t t
12864 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12865 s&@srcdir@&$ac_srcdir&;t t
12866 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12867 s&@top_srcdir@&$ac_top_srcdir&;t t
12868 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12869 s&@builddir@&$ac_builddir&;t t
12870 s&@abs_builddir@&$ac_abs_builddir&;t t
12871 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12872 s&@INSTALL@&$ac_INSTALL&;t t
12873 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12874 $ac_datarootdir_hack
12876 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12877 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12879 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12880 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12881 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12882 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12884 which seems to be undefined. Please make sure it is defined" >&5
12885 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12886 which seems to be undefined. Please make sure it is defined" >&2;}
12888 rm -f "$ac_tmp/stdin"
12890 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12891 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12893 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12899 if test x"$ac_file" != x-; then
12901 $as_echo "/* $configure_input */" \
12902 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12903 } >"$ac_tmp/config.h" \
12904 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12905 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12906 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12907 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12910 mv "$ac_tmp/config.h" "$ac_file" \
12911 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12914 $as_echo "/* $configure_input */" \
12915 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12916 || as_fn_error $? "could not create -" "$LINENO" 5
12918 # Compute "$ac_file"'s index in $config_headers.
12921 for _am_header in $config_headers :; do
12922 case $_am_header in
12923 $_am_arg | $_am_arg:* )
12926 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12929 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12930 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12931 X"$_am_arg" : 'X\(//\)[^/]' \| \
12932 X"$_am_arg" : 'X\(//\)$' \| \
12933 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12934 $as_echo X"$_am_arg" |
12935 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12939 /^X\(\/\/\)[^/].*/{
12951 s/.*/./; q'`/stamp-h$_am_stamp_count
12954 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12955 $as_echo "$as_me: executing $ac_file commands" >&6;}
12960 case $ac_file$ac_mode in
12961 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12962 # Autoconf 2.62 quotes --file arguments for eval, but not when files
12963 # are listed without --file. Let's play safe and only enable the eval
12964 # if we detect the quoting.
12965 case $CONFIG_FILES in
12966 *\'*) eval set x "$CONFIG_FILES" ;;
12967 *) set x $CONFIG_FILES ;;
12972 # Strip MF so we end up with the name of the file.
12973 mf=`echo "$mf" | sed -e 's/:.*$//'`
12974 # Check whether this is an Automake generated Makefile or not.
12975 # We used to match only the files named `Makefile.in', but
12976 # some people rename them; so instead we look at the file content.
12977 # Grep'ing the first line is not enough: some people post-process
12978 # each Makefile.in and add a new line on top of each file to say so.
12979 # Grep'ing the whole file is not good either: AIX grep has a line
12980 # limit of 2048, but all sed's we know have understand at least 4000.
12981 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12982 dirpart=`$as_dirname -- "$mf" ||
12983 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12984 X"$mf" : 'X\(//\)[^/]' \| \
12985 X"$mf" : 'X\(//\)$' \| \
12986 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12988 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12992 /^X\(\/\/\)[^/].*/{
13008 # Extract the definition of DEPDIR, am__include, and am__quote
13009 # from the Makefile without running `make'.
13010 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13011 test -z "$DEPDIR" && continue
13012 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13013 test -z "am__include" && continue
13014 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13015 # When using ansi2knr, U may be empty or an underscore; expand it
13016 U=`sed -n 's/^U = //p' < "$mf"`
13017 # Find all dependency output files, they are included files with
13018 # $(DEPDIR) in their names. We invoke sed twice because it is the
13019 # simplest approach to changing $(DEPDIR) to its actual value in the
13021 for file in `sed -n "
13022 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13023 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13024 # Make sure the directory exists.
13025 test -f "$dirpart/$file" && continue
13026 fdir=`$as_dirname -- "$file" ||
13027 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13028 X"$file" : 'X\(//\)[^/]' \| \
13029 X"$file" : 'X\(//\)$' \| \
13030 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13031 $as_echo X"$file" |
13032 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13036 /^X\(\/\/\)[^/].*/{
13049 as_dir=$dirpart/$fdir; as_fn_mkdir_p
13050 # echo "creating $dirpart/$file"
13051 echo '# dummy' > "$dirpart/$file"
13056 "po-directories":C)
13057 for ac_file in $CONFIG_FILES; do
13058 # Support "outfile[:infile[:infile...]]"
13060 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13062 # PO directories have a Makefile.in generated from Makefile.in.in.
13063 case "$ac_file" in */Makefile.in)
13064 # Adjust a relative srcdir.
13065 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
13066 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
13067 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
13068 # In autoconf-2.13 it is called $ac_given_srcdir.
13069 # In autoconf-2.50 it is called $srcdir.
13070 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
13071 case "$ac_given_srcdir" in
13072 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
13073 /*) top_srcdir="$ac_given_srcdir" ;;
13074 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
13076 # Treat a directory as a PO directory if and only if it has a
13077 # POTFILES.in file. This allows packages to have multiple PO
13078 # directories under different names or in different locations.
13079 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
13080 rm -f "$ac_dir/POTFILES"
13081 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
13082 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
13083 POMAKEFILEDEPS="POTFILES.in"
13084 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
13085 # on $ac_dir but don't depend on user-specified configuration
13087 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
13088 # The LINGUAS file contains the set of available languages.
13089 if test -n "$OBSOLETE_ALL_LINGUAS"; then
13090 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
13092 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
13093 # Hide the ALL_LINGUAS assigment from automake < 1.5.
13094 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
13095 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
13097 # The set of available languages was given in configure.in.
13098 # Hide the ALL_LINGUAS assigment from automake < 1.5.
13099 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
13102 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
13103 # Compute UPDATEPOFILES
13104 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
13105 # Compute DUMMYPOFILES
13106 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
13108 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
13109 case "$ac_given_srcdir" in
13111 *) srcdirpre='$(srcdir)/' ;;
13117 for lang in $ALL_LINGUAS; do
13118 POFILES="$POFILES $srcdirpre$lang.po"
13119 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
13120 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
13121 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
13123 # CATALOGS depends on both $ac_dir and the user's LINGUAS
13124 # environment variable.
13126 if test -n "$ALL_LINGUAS"; then
13127 for presentlang in $ALL_LINGUAS; do
13129 if test "%UNSET%" != "$LINGUAS"; then
13130 desiredlanguages="$LINGUAS"
13132 desiredlanguages="$ALL_LINGUAS"
13134 for desiredlang in $desiredlanguages; do
13135 # Use the presentlang catalog if desiredlang is
13136 # a. equal to presentlang, or
13137 # b. a variant of presentlang (because in this case,
13138 # presentlang can be used as a fallback for messages
13139 # which are not translated in the desiredlang catalog).
13140 case "$desiredlang" in
13141 "$presentlang"*) useit=yes;;
13144 if test $useit = yes; then
13145 INST_LINGUAS="$INST_LINGUAS $presentlang"
13150 if test -n "$INST_LINGUAS"; then
13151 for lang in $INST_LINGUAS; do
13152 CATALOGS="$CATALOGS $lang.gmo"
13155 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
13156 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"
13157 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
13158 if test -f "$f"; then
13160 *.orig | *.bak | *~) ;;
13161 *) cat "$f" >> "$ac_dir/Makefile" ;;
13176 ac_clean_files=$ac_clean_files_save
13178 test $ac_write_fail = 0 ||
13179 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13182 # configure is writing to config.log, and then calls config.status.
13183 # config.status does its own redirection, appending to config.log.
13184 # Unfortunately, on DOS this fails, as config.log is still kept open
13185 # by configure, so config.status won't be able to write to it; its
13186 # output is simply discarded. So we exec the FD to /dev/null,
13187 # effectively closing config.log, so it can be properly (re)opened and
13188 # appended to by config.status. When coming back to configure, we
13189 # need to make the FD available again.
13190 if test "$no_create" != yes; then
13192 ac_config_status_args=
13193 test "$silent" = yes &&
13194 ac_config_status_args="$ac_config_status_args --quiet"
13196 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13198 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13199 # would make configure fail if this is the last instruction.
13200 $ac_cs_success || as_fn_exit 1
13202 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13204 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}