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"
567 # Factoring default headers for most tests.
568 ac_includes_default="\
570 #ifdef HAVE_SYS_TYPES_H
571 # include <sys/types.h>
573 #ifdef HAVE_SYS_STAT_H
574 # include <sys/stat.h>
580 # ifdef HAVE_STDLIB_H
585 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
590 #ifdef HAVE_STRINGS_H
591 # include <strings.h>
593 #ifdef HAVE_INTTYPES_H
594 # include <inttypes.h>
604 gl_use_threads_default=
605 ac_subst_vars='am__EXEEXT_FALSE
611 USE_INCLUDED_INTL_H_FALSE
612 USE_INCLUDED_INTL_H_TRUE
617 INTL_LIBTOOL_SUFFIX_PREFIX
624 BUILD_INCLUDED_LIBINTL
634 INTL_DEFAULT_VERBOSITY
680 XGETTEXT_EXTRA_OPTIONS
688 GETTEXT_MACRO_VERSION
698 INSTALL_STRIP_PROGRAM
740 program_transform_name
753 enable_option_checking
755 enable_dependency_tracking
761 with_included_gettext
768 ac_precious_vars='build_alias
779 # Initialize some variables set by options.
781 ac_init_version=false
782 ac_unrecognized_opts=
784 # The variables have the same names as the options, with
785 # dashes changed to underlines.
793 program_transform_name=s,x,x,
801 # Installation directory options.
802 # These are left unexpanded so users can "make install exec_prefix=/foo"
803 # and all the variables that are supposed to be based on exec_prefix
804 # by default will actually change.
805 # Use braces instead of parens because sh, perl, etc. also accept them.
806 # (The list follows the same order as the GNU Coding Standards.)
807 bindir='${exec_prefix}/bin'
808 sbindir='${exec_prefix}/sbin'
809 libexecdir='${exec_prefix}/libexec'
810 datarootdir='${prefix}/share'
811 datadir='${datarootdir}'
812 sysconfdir='${prefix}/etc'
813 sharedstatedir='${prefix}/com'
814 localstatedir='${prefix}/var'
815 includedir='${prefix}/include'
816 oldincludedir='/usr/include'
817 docdir='${datarootdir}/doc/${PACKAGE}'
818 infodir='${datarootdir}/info'
823 libdir='${exec_prefix}/lib'
824 localedir='${datarootdir}/locale'
825 mandir='${datarootdir}/man'
831 # If the previous option needs an argument, assign it.
832 if test -n "$ac_prev"; then
833 eval $ac_prev=\$ac_option
839 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
844 # Accept the important Cygnus configure options, so we can diagnose typos.
846 case $ac_dashdash$ac_option in
850 -bindir | --bindir | --bindi | --bind | --bin | --bi)
852 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
855 -build | --build | --buil | --bui | --bu)
856 ac_prev=build_alias ;;
857 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
858 build_alias=$ac_optarg ;;
860 -cache-file | --cache-file | --cache-fil | --cache-fi \
861 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
862 ac_prev=cache_file ;;
863 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
864 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
865 cache_file=$ac_optarg ;;
868 cache_file=config.cache ;;
870 -datadir | --datadir | --datadi | --datad)
872 -datadir=* | --datadir=* | --datadi=* | --datad=*)
873 datadir=$ac_optarg ;;
875 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
876 | --dataroo | --dataro | --datar)
877 ac_prev=datarootdir ;;
878 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
879 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
880 datarootdir=$ac_optarg ;;
882 -disable-* | --disable-*)
883 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
884 # Reject names that are not valid shell variable names.
885 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
886 as_fn_error $? "invalid feature name: $ac_useropt"
887 ac_useropt_orig=$ac_useropt
888 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
889 case $ac_user_opts in
893 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
894 ac_unrecognized_sep=', ';;
896 eval enable_$ac_useropt=no ;;
898 -docdir | --docdir | --docdi | --doc | --do)
900 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
903 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
905 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
908 -enable-* | --enable-*)
909 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
910 # Reject names that are not valid shell variable names.
911 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
912 as_fn_error $? "invalid feature name: $ac_useropt"
913 ac_useropt_orig=$ac_useropt
914 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
915 case $ac_user_opts in
919 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
920 ac_unrecognized_sep=', ';;
922 eval enable_$ac_useropt=\$ac_optarg ;;
924 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
925 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
926 | --exec | --exe | --ex)
927 ac_prev=exec_prefix ;;
928 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
929 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
930 | --exec=* | --exe=* | --ex=*)
931 exec_prefix=$ac_optarg ;;
933 -gas | --gas | --ga | --g)
934 # Obsolete; use --with-gas.
937 -help | --help | --hel | --he | -h)
939 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
940 ac_init_help=recursive ;;
941 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
942 ac_init_help=short ;;
944 -host | --host | --hos | --ho)
945 ac_prev=host_alias ;;
946 -host=* | --host=* | --hos=* | --ho=*)
947 host_alias=$ac_optarg ;;
949 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
951 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
953 htmldir=$ac_optarg ;;
955 -includedir | --includedir | --includedi | --included | --include \
956 | --includ | --inclu | --incl | --inc)
957 ac_prev=includedir ;;
958 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
959 | --includ=* | --inclu=* | --incl=* | --inc=*)
960 includedir=$ac_optarg ;;
962 -infodir | --infodir | --infodi | --infod | --info | --inf)
964 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
965 infodir=$ac_optarg ;;
967 -libdir | --libdir | --libdi | --libd)
969 -libdir=* | --libdir=* | --libdi=* | --libd=*)
972 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
973 | --libexe | --libex | --libe)
974 ac_prev=libexecdir ;;
975 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
976 | --libexe=* | --libex=* | --libe=*)
977 libexecdir=$ac_optarg ;;
979 -localedir | --localedir | --localedi | --localed | --locale)
981 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
982 localedir=$ac_optarg ;;
984 -localstatedir | --localstatedir | --localstatedi | --localstated \
985 | --localstate | --localstat | --localsta | --localst | --locals)
986 ac_prev=localstatedir ;;
987 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
988 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
989 localstatedir=$ac_optarg ;;
991 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
993 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
997 # Obsolete; use --without-fp.
1000 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1001 | --no-cr | --no-c | -n)
1004 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1005 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1008 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1009 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1010 | --oldin | --oldi | --old | --ol | --o)
1011 ac_prev=oldincludedir ;;
1012 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1013 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1014 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1015 oldincludedir=$ac_optarg ;;
1017 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1019 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1020 prefix=$ac_optarg ;;
1022 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1023 | --program-pre | --program-pr | --program-p)
1024 ac_prev=program_prefix ;;
1025 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1026 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1027 program_prefix=$ac_optarg ;;
1029 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1030 | --program-suf | --program-su | --program-s)
1031 ac_prev=program_suffix ;;
1032 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1033 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1034 program_suffix=$ac_optarg ;;
1036 -program-transform-name | --program-transform-name \
1037 | --program-transform-nam | --program-transform-na \
1038 | --program-transform-n | --program-transform- \
1039 | --program-transform | --program-transfor \
1040 | --program-transfo | --program-transf \
1041 | --program-trans | --program-tran \
1042 | --progr-tra | --program-tr | --program-t)
1043 ac_prev=program_transform_name ;;
1044 -program-transform-name=* | --program-transform-name=* \
1045 | --program-transform-nam=* | --program-transform-na=* \
1046 | --program-transform-n=* | --program-transform-=* \
1047 | --program-transform=* | --program-transfor=* \
1048 | --program-transfo=* | --program-transf=* \
1049 | --program-trans=* | --program-tran=* \
1050 | --progr-tra=* | --program-tr=* | --program-t=*)
1051 program_transform_name=$ac_optarg ;;
1053 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1055 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1056 pdfdir=$ac_optarg ;;
1058 -psdir | --psdir | --psdi | --psd | --ps)
1060 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1063 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1064 | -silent | --silent | --silen | --sile | --sil)
1067 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1069 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1071 sbindir=$ac_optarg ;;
1073 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1074 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1075 | --sharedst | --shareds | --shared | --share | --shar \
1077 ac_prev=sharedstatedir ;;
1078 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1079 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1080 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1082 sharedstatedir=$ac_optarg ;;
1084 -site | --site | --sit)
1086 -site=* | --site=* | --sit=*)
1089 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1091 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1092 srcdir=$ac_optarg ;;
1094 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1095 | --syscon | --sysco | --sysc | --sys | --sy)
1096 ac_prev=sysconfdir ;;
1097 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1098 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1099 sysconfdir=$ac_optarg ;;
1101 -target | --target | --targe | --targ | --tar | --ta | --t)
1102 ac_prev=target_alias ;;
1103 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1104 target_alias=$ac_optarg ;;
1106 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1109 -version | --version | --versio | --versi | --vers | -V)
1110 ac_init_version=: ;;
1113 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1114 # Reject names that are not valid shell variable names.
1115 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1116 as_fn_error $? "invalid package name: $ac_useropt"
1117 ac_useropt_orig=$ac_useropt
1118 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1119 case $ac_user_opts in
1123 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1124 ac_unrecognized_sep=', ';;
1126 eval with_$ac_useropt=\$ac_optarg ;;
1128 -without-* | --without-*)
1129 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1130 # Reject names that are not valid shell variable names.
1131 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1132 as_fn_error $? "invalid package name: $ac_useropt"
1133 ac_useropt_orig=$ac_useropt
1134 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1135 case $ac_user_opts in
1139 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1140 ac_unrecognized_sep=', ';;
1142 eval with_$ac_useropt=no ;;
1145 # Obsolete; use --with-x.
1148 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1149 | --x-incl | --x-inc | --x-in | --x-i)
1150 ac_prev=x_includes ;;
1151 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1152 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1153 x_includes=$ac_optarg ;;
1155 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1156 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1157 ac_prev=x_libraries ;;
1158 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1159 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1160 x_libraries=$ac_optarg ;;
1162 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1163 Try \`$0 --help' for more information"
1167 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1168 # Reject names that are not valid shell variable names.
1169 case $ac_envvar in #(
1170 '' | [0-9]* | *[!_$as_cr_alnum]* )
1171 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1173 eval $ac_envvar=\$ac_optarg
1174 export $ac_envvar ;;
1177 # FIXME: should be removed in autoconf 3.0.
1178 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1179 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1180 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1181 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1187 if test -n "$ac_prev"; then
1188 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1189 as_fn_error $? "missing argument to $ac_option"
1192 if test -n "$ac_unrecognized_opts"; then
1193 case $enable_option_checking in
1195 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1196 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1200 # Check all directory arguments for consistency.
1201 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1202 datadir sysconfdir sharedstatedir localstatedir includedir \
1203 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1204 libdir localedir mandir
1206 eval ac_val=\$$ac_var
1207 # Remove trailing slashes.
1210 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1211 eval $ac_var=\$ac_val;;
1213 # Be sure to have absolute directory names.
1215 [\\/$]* | ?:[\\/]* ) continue;;
1216 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1218 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1221 # There might be people who depend on the old broken behavior: `$host'
1222 # used to hold the argument of --host etc.
1223 # FIXME: To remove some day.
1226 target=$target_alias
1228 # FIXME: To remove some day.
1229 if test "x$host_alias" != x; then
1230 if test "x$build_alias" = x; then
1231 cross_compiling=maybe
1232 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1233 If a cross compiler is detected then cross compile mode will be used" >&2
1234 elif test "x$build_alias" != "x$host_alias"; then
1240 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1242 test "$silent" = yes && exec 6>/dev/null
1245 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1246 ac_ls_di=`ls -di .` &&
1247 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1248 as_fn_error $? "working directory cannot be determined"
1249 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1250 as_fn_error $? "pwd does not report name of working directory"
1253 # Find the source files, if location was not specified.
1254 if test -z "$srcdir"; then
1255 ac_srcdir_defaulted=yes
1256 # Try the directory containing this script, then the parent directory.
1257 ac_confdir=`$as_dirname -- "$as_myself" ||
1258 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1259 X"$as_myself" : 'X\(//\)[^/]' \| \
1260 X"$as_myself" : 'X\(//\)$' \| \
1261 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1262 $as_echo X"$as_myself" |
1263 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1281 if test ! -r "$srcdir/$ac_unique_file"; then
1285 ac_srcdir_defaulted=no
1287 if test ! -r "$srcdir/$ac_unique_file"; then
1288 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1289 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1291 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1293 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1295 # When building in place, set srcdir=.
1296 if test "$ac_abs_confdir" = "$ac_pwd"; then
1299 # Remove unnecessary trailing slashes from srcdir.
1300 # Double slashes in file names in object file debugging info
1301 # mess up M-x gdb in Emacs.
1303 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1305 for ac_var in $ac_precious_vars; do
1306 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1307 eval ac_env_${ac_var}_value=\$${ac_var}
1308 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1309 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1313 # Report the --help message.
1315 if test "$ac_init_help" = "long"; then
1316 # Omit some internal or obsolete options to make the list less imposing.
1317 # This message is too long to be a string in the A/UX 3.1 sh.
1319 \`configure' configures this package to adapt to many kinds of systems.
1321 Usage: $0 [OPTION]... [VAR=VALUE]...
1323 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1324 VAR=VALUE. See below for descriptions of some of the useful variables.
1326 Defaults for the options are specified in brackets.
1329 -h, --help display this help and exit
1330 --help=short display options specific to this package
1331 --help=recursive display the short help of all the included packages
1332 -V, --version display version information and exit
1333 -q, --quiet, --silent do not print \`checking ...' messages
1334 --cache-file=FILE cache test results in FILE [disabled]
1335 -C, --config-cache alias for \`--cache-file=config.cache'
1336 -n, --no-create do not create output files
1337 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1339 Installation directories:
1340 --prefix=PREFIX install architecture-independent files in PREFIX
1341 [$ac_default_prefix]
1342 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1345 By default, \`make install' will install all the files in
1346 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1347 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1348 for instance \`--prefix=\$HOME'.
1350 For better control, use the options below.
1352 Fine tuning of the installation directories:
1353 --bindir=DIR user executables [EPREFIX/bin]
1354 --sbindir=DIR system admin executables [EPREFIX/sbin]
1355 --libexecdir=DIR program executables [EPREFIX/libexec]
1356 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1357 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1358 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1359 --libdir=DIR object code libraries [EPREFIX/lib]
1360 --includedir=DIR C header files [PREFIX/include]
1361 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1362 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1363 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1364 --infodir=DIR info documentation [DATAROOTDIR/info]
1365 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1366 --mandir=DIR man documentation [DATAROOTDIR/man]
1367 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1368 --htmldir=DIR html documentation [DOCDIR]
1369 --dvidir=DIR dvi documentation [DOCDIR]
1370 --pdfdir=DIR pdf documentation [DOCDIR]
1371 --psdir=DIR ps documentation [DOCDIR]
1377 --program-prefix=PREFIX prepend PREFIX to installed program names
1378 --program-suffix=SUFFIX append SUFFIX to installed program names
1379 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1382 --build=BUILD configure for building on BUILD [guessed]
1383 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1387 if test -n "$ac_init_help"; then
1392 --disable-option-checking ignore unrecognized --enable/--with options
1393 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1394 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1395 --disable-nls do not use Native Language Support
1396 --disable-dependency-tracking speeds up one-time build
1397 --enable-dependency-tracking do not reject slow dependency extractors
1398 --enable-threads={posix|solaris|pth|win32}
1399 specify multithreading API
1400 --disable-threads build without multithread safety
1401 --disable-rpath do not hardcode runtime library paths
1402 --enable-debug Enable debugging support
1405 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1406 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1407 --with-gnu-ld assume the C compiler uses GNU ld default=no
1408 --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
1409 --without-libpth-prefix don't search for libpth in includedir and libdir
1410 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1411 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1412 --with-included-gettext use the GNU gettext library included here
1413 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1414 --without-libintl-prefix don't search for libintl in includedir and libdir
1415 --with-localedir=PATH Where the locale files are installed
1416 --with-curses=DIR Where ncurses is installed
1417 --with-readline=DIR Where readline is installed
1419 Some influential environment variables:
1420 CC C compiler command
1421 CFLAGS C compiler flags
1422 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1423 nonstandard directory <lib dir>
1424 LIBS libraries to pass to the linker, e.g. -l<library>
1425 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1426 you have headers in a nonstandard directory <include dir>
1429 Use these variables to override the choices made by `configure' or to help
1430 it to find libraries and programs with nonstandard names/locations.
1432 Report bugs to the package provider.
1437 if test "$ac_init_help" = "recursive"; then
1438 # If there are subdirs, report their specific --help.
1439 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1440 test -d "$ac_dir" ||
1441 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1446 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1448 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1449 # A ".." for each directory in $ac_dir_suffix.
1450 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1451 case $ac_top_builddir_sub in
1452 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1453 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1456 ac_abs_top_builddir=$ac_pwd
1457 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1458 # for backward compatibility:
1459 ac_top_builddir=$ac_top_build_prefix
1462 .) # We are building in place.
1464 ac_top_srcdir=$ac_top_builddir_sub
1465 ac_abs_top_srcdir=$ac_pwd ;;
1466 [\\/]* | ?:[\\/]* ) # Absolute name.
1467 ac_srcdir=$srcdir$ac_dir_suffix;
1468 ac_top_srcdir=$srcdir
1469 ac_abs_top_srcdir=$srcdir ;;
1471 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1472 ac_top_srcdir=$ac_top_build_prefix$srcdir
1473 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1475 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1477 cd "$ac_dir" || { ac_status=$?; continue; }
1478 # Check for guested configure.
1479 if test -f "$ac_srcdir/configure.gnu"; then
1481 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1482 elif test -f "$ac_srcdir/configure"; then
1484 $SHELL "$ac_srcdir/configure" --help=recursive
1486 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1488 cd "$ac_pwd" || { ac_status=$?; break; }
1492 test -n "$ac_init_help" && exit $ac_status
1493 if $ac_init_version; then
1496 generated by GNU Autoconf 2.68
1498 Copyright (C) 2010 Free Software Foundation, Inc.
1499 This configure script is free software; the Free Software Foundation
1500 gives unlimited permission to copy, distribute and modify it.
1505 ## ------------------------ ##
1506 ## Autoconf initialization. ##
1507 ## ------------------------ ##
1509 # ac_fn_c_try_compile LINENO
1510 # --------------------------
1511 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1512 ac_fn_c_try_compile ()
1514 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1515 rm -f conftest.$ac_objext
1516 if { { ac_try="$ac_compile"
1518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1519 *) ac_try_echo=$ac_try;;
1521 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1522 $as_echo "$ac_try_echo"; } >&5
1523 (eval "$ac_compile") 2>conftest.err
1525 if test -s conftest.err; then
1526 grep -v '^ *+' conftest.err >conftest.er1
1527 cat conftest.er1 >&5
1528 mv -f conftest.er1 conftest.err
1530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1531 test $ac_status = 0; } && {
1532 test -z "$ac_c_werror_flag" ||
1533 test ! -s conftest.err
1534 } && test -s conftest.$ac_objext; then :
1537 $as_echo "$as_me: failed program was:" >&5
1538 sed 's/^/| /' conftest.$ac_ext >&5
1542 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1543 as_fn_set_status $ac_retval
1545 } # ac_fn_c_try_compile
1547 # ac_fn_c_try_cpp LINENO
1548 # ----------------------
1549 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1552 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1553 if { { ac_try="$ac_cpp conftest.$ac_ext"
1555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1556 *) ac_try_echo=$ac_try;;
1558 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1559 $as_echo "$ac_try_echo"; } >&5
1560 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1562 if test -s conftest.err; then
1563 grep -v '^ *+' conftest.err >conftest.er1
1564 cat conftest.er1 >&5
1565 mv -f conftest.er1 conftest.err
1567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1568 test $ac_status = 0; } > conftest.i && {
1569 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1570 test ! -s conftest.err
1574 $as_echo "$as_me: failed program was:" >&5
1575 sed 's/^/| /' conftest.$ac_ext >&5
1579 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1580 as_fn_set_status $ac_retval
1584 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1585 # -------------------------------------------
1586 # Tests whether TYPE exists after having included INCLUDES, setting cache
1587 # variable VAR accordingly.
1588 ac_fn_c_check_type ()
1590 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1592 $as_echo_n "checking for $2... " >&6; }
1593 if eval \${$3+:} false; then :
1594 $as_echo_n "(cached) " >&6
1597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1598 /* end confdefs.h. */
1609 if ac_fn_c_try_compile "$LINENO"; then :
1610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1611 /* end confdefs.h. */
1622 if ac_fn_c_try_compile "$LINENO"; then :
1627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1633 $as_echo "$ac_res" >&6; }
1634 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1636 } # ac_fn_c_check_type
1638 # ac_fn_c_try_run LINENO
1639 # ----------------------
1640 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1641 # that executables *can* be run.
1644 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1645 if { { ac_try="$ac_link"
1647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1648 *) ac_try_echo=$ac_try;;
1650 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1651 $as_echo "$ac_try_echo"; } >&5
1652 (eval "$ac_link") 2>&5
1654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1655 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1656 { { case "(($ac_try" in
1657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1658 *) ac_try_echo=$ac_try;;
1660 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1661 $as_echo "$ac_try_echo"; } >&5
1662 (eval "$ac_try") 2>&5
1664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1665 test $ac_status = 0; }; }; then :
1668 $as_echo "$as_me: program exited with status $ac_status" >&5
1669 $as_echo "$as_me: failed program was:" >&5
1670 sed 's/^/| /' conftest.$ac_ext >&5
1672 ac_retval=$ac_status
1674 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1675 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1676 as_fn_set_status $ac_retval
1680 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1681 # -------------------------------------------------------
1682 # Tests whether HEADER exists and can be compiled using the include files in
1683 # INCLUDES, setting the cache variable VAR accordingly.
1684 ac_fn_c_check_header_compile ()
1686 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1688 $as_echo_n "checking for $2... " >&6; }
1689 if eval \${$3+:} false; then :
1690 $as_echo_n "(cached) " >&6
1692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1693 /* end confdefs.h. */
1697 if ac_fn_c_try_compile "$LINENO"; then :
1702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1706 $as_echo "$ac_res" >&6; }
1707 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1709 } # ac_fn_c_check_header_compile
1711 # ac_fn_c_try_link LINENO
1712 # -----------------------
1713 # Try to link conftest.$ac_ext, and return whether this succeeded.
1716 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1717 rm -f conftest.$ac_objext conftest$ac_exeext
1718 if { { ac_try="$ac_link"
1720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1721 *) ac_try_echo=$ac_try;;
1723 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1724 $as_echo "$ac_try_echo"; } >&5
1725 (eval "$ac_link") 2>conftest.err
1727 if test -s conftest.err; then
1728 grep -v '^ *+' conftest.err >conftest.er1
1729 cat conftest.er1 >&5
1730 mv -f conftest.er1 conftest.err
1732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1733 test $ac_status = 0; } && {
1734 test -z "$ac_c_werror_flag" ||
1735 test ! -s conftest.err
1736 } && test -s conftest$ac_exeext && {
1737 test "$cross_compiling" = yes ||
1738 $as_test_x conftest$ac_exeext
1742 $as_echo "$as_me: failed program was:" >&5
1743 sed 's/^/| /' conftest.$ac_ext >&5
1747 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1748 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1749 # interfere with the next link command; also delete a directory that is
1750 # left behind by Apple's compiler. We do this before executing the actions.
1751 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1752 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1753 as_fn_set_status $ac_retval
1755 } # ac_fn_c_try_link
1757 # ac_fn_c_check_func LINENO FUNC VAR
1758 # ----------------------------------
1759 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1760 ac_fn_c_check_func ()
1762 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1764 $as_echo_n "checking for $2... " >&6; }
1765 if eval \${$3+:} false; then :
1766 $as_echo_n "(cached) " >&6
1768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1769 /* end confdefs.h. */
1770 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1771 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1772 #define $2 innocuous_$2
1774 /* System header to define __stub macros and hopefully few prototypes,
1775 which can conflict with char $2 (); below.
1776 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1777 <limits.h> exists even on freestanding compilers. */
1780 # include <limits.h>
1782 # include <assert.h>
1787 /* Override any GCC internal prototype to avoid an error.
1788 Use char because int might match the return type of a GCC
1789 builtin and then its argument prototype would still apply. */
1794 /* The GNU C library defines this for functions which it implements
1795 to always fail with ENOSYS. Some functions are actually named
1796 something starting with __ and the normal name is an alias. */
1797 #if defined __stub_$2 || defined __stub___$2
1809 if ac_fn_c_try_link "$LINENO"; then :
1814 rm -f core conftest.err conftest.$ac_objext \
1815 conftest$ac_exeext conftest.$ac_ext
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1819 $as_echo "$ac_res" >&6; }
1820 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1822 } # ac_fn_c_check_func
1824 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1825 # -------------------------------------------------------
1826 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1827 # the include files in INCLUDES and setting the cache variable VAR
1829 ac_fn_c_check_header_mongrel ()
1831 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1832 if eval \${$3+:} false; then :
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1834 $as_echo_n "checking for $2... " >&6; }
1835 if eval \${$3+:} false; then :
1836 $as_echo_n "(cached) " >&6
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1840 $as_echo "$ac_res" >&6; }
1842 # Is the header compilable?
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1844 $as_echo_n "checking $2 usability... " >&6; }
1845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1846 /* end confdefs.h. */
1850 if ac_fn_c_try_compile "$LINENO"; then :
1851 ac_header_compiler=yes
1853 ac_header_compiler=no
1855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1857 $as_echo "$ac_header_compiler" >&6; }
1859 # Is the header present?
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1861 $as_echo_n "checking $2 presence... " >&6; }
1862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1863 /* end confdefs.h. */
1866 if ac_fn_c_try_cpp "$LINENO"; then :
1867 ac_header_preproc=yes
1869 ac_header_preproc=no
1871 rm -f conftest.err conftest.i conftest.$ac_ext
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1873 $as_echo "$ac_header_preproc" >&6; }
1875 # So? What about this header?
1876 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1879 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1881 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1885 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1887 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1889 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1891 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1893 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1897 $as_echo_n "checking for $2... " >&6; }
1898 if eval \${$3+:} false; then :
1899 $as_echo_n "(cached) " >&6
1901 eval "$3=\$ac_header_compiler"
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1905 $as_echo "$ac_res" >&6; }
1907 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1909 } # ac_fn_c_check_header_mongrel
1911 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1912 # --------------------------------------------
1913 # Tries to find the compile-time value of EXPR in a program that includes
1914 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1916 ac_fn_c_compute_int ()
1918 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1919 if test "$cross_compiling" = yes; then
1920 # Depending upon the size, compute the lo and hi bounds.
1921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1922 /* end confdefs.h. */
1927 static int test_array [1 - 2 * !(($2) >= 0)];
1934 if ac_fn_c_try_compile "$LINENO"; then :
1937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1938 /* end confdefs.h. */
1943 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1950 if ac_fn_c_try_compile "$LINENO"; then :
1951 ac_hi=$ac_mid; break
1953 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1954 if test $ac_lo -le $ac_mid; then
1958 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1964 /* end confdefs.h. */
1969 static int test_array [1 - 2 * !(($2) < 0)];
1976 if ac_fn_c_try_compile "$LINENO"; then :
1979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1980 /* end confdefs.h. */
1985 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1992 if ac_fn_c_try_compile "$LINENO"; then :
1993 ac_lo=$ac_mid; break
1995 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1996 if test $ac_mid -le $ac_hi; then
2000 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2010 # Binary search between lo and hi bounds.
2011 while test "x$ac_lo" != "x$ac_hi"; do
2012 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2014 /* end confdefs.h. */
2019 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2026 if ac_fn_c_try_compile "$LINENO"; then :
2029 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2034 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2039 /* end confdefs.h. */
2041 static long int longval () { return $2; }
2042 static unsigned long int ulongval () { return $2; }
2049 FILE *f = fopen ("conftest.val", "w");
2054 long int i = longval ();
2057 fprintf (f, "%ld", i);
2061 unsigned long int i = ulongval ();
2064 fprintf (f, "%lu", i);
2066 /* Do not output a trailing newline, as this causes \r\n confusion
2067 on some platforms. */
2068 return ferror (f) || fclose (f) != 0;
2074 if ac_fn_c_try_run "$LINENO"; then :
2075 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2079 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2080 conftest.$ac_objext conftest.beam conftest.$ac_ext
2084 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2085 as_fn_set_status $ac_retval
2087 } # ac_fn_c_compute_int
2089 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2090 # ---------------------------------------------
2091 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2093 ac_fn_c_check_decl ()
2095 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2096 as_decl_name=`echo $2|sed 's/ *(.*//'`
2097 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2099 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2100 if eval \${$3+:} false; then :
2101 $as_echo_n "(cached) " >&6
2103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2104 /* end confdefs.h. */
2109 #ifndef $as_decl_name
2111 (void) $as_decl_use;
2113 (void) $as_decl_name;
2121 if ac_fn_c_try_compile "$LINENO"; then :
2126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2130 $as_echo "$ac_res" >&6; }
2131 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2133 } # ac_fn_c_check_decl
2134 cat >config.log <<_ACEOF
2135 This file contains any messages produced by compilers while
2136 running configure, to aid debugging if configure makes a mistake.
2138 It was created by $as_me, which was
2139 generated by GNU Autoconf 2.68. Invocation command line was
2151 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2152 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2153 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2154 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2155 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2157 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2158 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2160 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2161 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2162 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2163 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2164 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2165 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2166 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2174 test -z "$as_dir" && as_dir=.
2175 $as_echo "PATH: $as_dir"
2191 # Keep a trace of the command line.
2192 # Strip out --no-create and --no-recursion so they do not pile up.
2193 # Strip out --silent because we don't want to record it for future runs.
2194 # Also quote any args containing shell meta-characters.
2195 # Make two passes to allow for proper duplicate-argument suppression.
2199 ac_must_keep_next=false
2205 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2206 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2207 | -silent | --silent | --silen | --sile | --sil)
2210 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2213 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2215 as_fn_append ac_configure_args1 " '$ac_arg'"
2216 if test $ac_must_keep_next = true; then
2217 ac_must_keep_next=false # Got value, back to normal.
2220 *=* | --config-cache | -C | -disable-* | --disable-* \
2221 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2222 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2223 | -with-* | --with-* | -without-* | --without-* | --x)
2224 case "$ac_configure_args0 " in
2225 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2228 -* ) ac_must_keep_next=true ;;
2231 as_fn_append ac_configure_args " '$ac_arg'"
2236 { ac_configure_args0=; unset ac_configure_args0;}
2237 { ac_configure_args1=; unset ac_configure_args1;}
2239 # When interrupted or exit'd, cleanup temporary files, and complete
2240 # config.log. We remove comments because anyway the quotes in there
2241 # would cause problems or look ugly.
2242 # WARNING: Use '\'' to represent an apostrophe within the trap.
2243 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2244 trap 'exit_status=$?
2245 # Save into config.log some information that might help in debugging.
2249 $as_echo "## ---------------- ##
2250 ## Cache variables. ##
2251 ## ---------------- ##"
2253 # The following way of writing the cache mishandles newlines in values,
2255 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2256 eval ac_val=\$$ac_var
2260 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2261 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2264 _ | IFS | as_nl) ;; #(
2265 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2266 *) { eval $ac_var=; unset $ac_var;} ;;
2271 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2272 *${as_nl}ac_space=\ *)
2274 "s/'\''/'\''\\\\'\'''\''/g;
2275 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2278 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2285 $as_echo "## ----------------- ##
2286 ## Output variables. ##
2287 ## ----------------- ##"
2289 for ac_var in $ac_subst_vars
2291 eval ac_val=\$$ac_var
2293 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2295 $as_echo "$ac_var='\''$ac_val'\''"
2299 if test -n "$ac_subst_files"; then
2300 $as_echo "## ------------------- ##
2301 ## File substitutions. ##
2302 ## ------------------- ##"
2304 for ac_var in $ac_subst_files
2306 eval ac_val=\$$ac_var
2308 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2310 $as_echo "$ac_var='\''$ac_val'\''"
2315 if test -s confdefs.h; then
2316 $as_echo "## ----------- ##
2323 test "$ac_signal" != 0 &&
2324 $as_echo "$as_me: caught signal $ac_signal"
2325 $as_echo "$as_me: exit $exit_status"
2327 rm -f core *.core core.conftest.* &&
2328 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2331 for ac_signal in 1 2 13 15; do
2332 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2336 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2337 rm -f -r conftest* confdefs.h
2339 $as_echo "/* confdefs.h */" > confdefs.h
2341 # Predefined preprocessor variables.
2343 cat >>confdefs.h <<_ACEOF
2344 #define PACKAGE_NAME "$PACKAGE_NAME"
2347 cat >>confdefs.h <<_ACEOF
2348 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2351 cat >>confdefs.h <<_ACEOF
2352 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2355 cat >>confdefs.h <<_ACEOF
2356 #define PACKAGE_STRING "$PACKAGE_STRING"
2359 cat >>confdefs.h <<_ACEOF
2360 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2363 cat >>confdefs.h <<_ACEOF
2364 #define PACKAGE_URL "$PACKAGE_URL"
2368 # Let the site file select an alternate cache file if it wants to.
2369 # Prefer an explicitly selected file to automatically selected ones.
2372 if test -n "$CONFIG_SITE"; then
2373 # We do not want a PATH search for config.site.
2374 case $CONFIG_SITE in #((
2375 -*) ac_site_file1=./$CONFIG_SITE;;
2376 */*) ac_site_file1=$CONFIG_SITE;;
2377 *) ac_site_file1=./$CONFIG_SITE;;
2379 elif test "x$prefix" != xNONE; then
2380 ac_site_file1=$prefix/share/config.site
2381 ac_site_file2=$prefix/etc/config.site
2383 ac_site_file1=$ac_default_prefix/share/config.site
2384 ac_site_file2=$ac_default_prefix/etc/config.site
2386 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2388 test "x$ac_site_file" = xNONE && continue
2389 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2391 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2392 sed 's/^/| /' "$ac_site_file" >&5
2394 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2395 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2396 as_fn_error $? "failed to load site script $ac_site_file
2397 See \`config.log' for more details" "$LINENO" 5; }
2401 if test -r "$cache_file"; then
2402 # Some versions of bash will fail to source /dev/null (special files
2403 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2404 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2406 $as_echo "$as_me: loading cache $cache_file" >&6;}
2408 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2409 *) . "./$cache_file";;
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2414 $as_echo "$as_me: creating cache $cache_file" >&6;}
2418 gt_needs="$gt_needs "
2419 as_fn_append ac_header_list " stdlib.h"
2420 as_fn_append ac_header_list " unistd.h"
2421 as_fn_append ac_header_list " sys/param.h"
2422 # Check that the precious variables saved in the cache have kept the same
2424 ac_cache_corrupted=false
2425 for ac_var in $ac_precious_vars; do
2426 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2427 eval ac_new_set=\$ac_env_${ac_var}_set
2428 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2429 eval ac_new_val=\$ac_env_${ac_var}_value
2430 case $ac_old_set,$ac_new_set in
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2433 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2434 ac_cache_corrupted=: ;;
2436 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2437 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2438 ac_cache_corrupted=: ;;
2441 if test "x$ac_old_val" != "x$ac_new_val"; then
2442 # differences in whitespace do not lead to failure.
2443 ac_old_val_w=`echo x $ac_old_val`
2444 ac_new_val_w=`echo x $ac_new_val`
2445 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2447 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2448 ac_cache_corrupted=:
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2451 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2452 eval $ac_var=\$ac_old_val
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2455 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2457 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2460 # Pass precious variables to config.status.
2461 if test "$ac_new_set" = set; then
2463 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2464 *) ac_arg=$ac_var=$ac_new_val ;;
2466 case " $ac_configure_args " in
2467 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2468 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2472 if $ac_cache_corrupted; then
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2474 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2476 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2477 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2479 ## -------------------- ##
2480 ## Main body of script. ##
2481 ## -------------------- ##
2484 ac_cpp='$CPP $CPPFLAGS'
2485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2490 am__api_version='1.11'
2493 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2494 if test -f "$ac_dir/install-sh"; then
2496 ac_install_sh="$ac_aux_dir/install-sh -c"
2498 elif test -f "$ac_dir/install.sh"; then
2500 ac_install_sh="$ac_aux_dir/install.sh -c"
2502 elif test -f "$ac_dir/shtool"; then
2504 ac_install_sh="$ac_aux_dir/shtool install -c"
2508 if test -z "$ac_aux_dir"; then
2509 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2512 # These three variables are undocumented and unsupported,
2513 # and are intended to be withdrawn in a future Autoconf release.
2514 # They can cause serious problems if a builder's source tree is in a directory
2515 # whose full name contains unusual characters.
2516 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2517 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2518 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2521 # Find a good install program. We prefer a C program (faster),
2522 # so one script is as good as another. But avoid the broken or
2523 # incompatible versions:
2524 # SysV /etc/install, /usr/sbin/install
2525 # SunOS /usr/etc/install
2526 # IRIX /sbin/install
2528 # AmigaOS /C/install, which installs bootblocks on floppy discs
2529 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2530 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2531 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2532 # OS/2's system install, which has a completely different semantic
2533 # ./install, which can be erroneously created by make from ./install.sh.
2534 # Reject install programs that cannot install multiple files.
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2536 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2537 if test -z "$INSTALL"; then
2538 if ${ac_cv_path_install+:} false; then :
2539 $as_echo_n "(cached) " >&6
2541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2545 test -z "$as_dir" && as_dir=.
2546 # Account for people who put trailing slashes in PATH elements.
2547 case $as_dir/ in #((
2548 ./ | .// | /[cC]/* | \
2549 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2550 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2553 # OSF1 and SCO ODT 3.0 have their own names for install.
2554 # Don't use installbsd from OSF since it installs stuff as root
2556 for ac_prog in ginstall scoinst install; do
2557 for ac_exec_ext in '' $ac_executable_extensions; do
2558 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2559 if test $ac_prog = install &&
2560 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2561 # AIX install. It has an incompatible calling convention.
2563 elif test $ac_prog = install &&
2564 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2565 # program-specific install script used by HP pwplus--don't use.
2568 rm -rf conftest.one conftest.two conftest.dir
2569 echo one > conftest.one
2570 echo two > conftest.two
2572 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2573 test -s conftest.one && test -s conftest.two &&
2574 test -s conftest.dir/conftest.one &&
2575 test -s conftest.dir/conftest.two
2577 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2590 rm -rf conftest.one conftest.two conftest.dir
2593 if test "${ac_cv_path_install+set}" = set; then
2594 INSTALL=$ac_cv_path_install
2596 # As a last resort, use the slow shell script. Don't cache a
2597 # value for INSTALL within a source directory, because that will
2598 # break other packages using the cache if that directory is
2599 # removed, or if the value is a relative name.
2600 INSTALL=$ac_install_sh
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2604 $as_echo "$INSTALL" >&6; }
2606 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2607 # It thinks the first close brace ends the variable substitution.
2608 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2610 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2612 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2615 $as_echo_n "checking whether build environment is sane... " >&6; }
2618 echo timestamp > conftest.file
2619 # Reject unsafe characters in $srcdir or the absolute working directory
2620 # name. Accept space and tab only in the latter.
2624 *[\\\"\#\$\&\'\`$am_lf]*)
2625 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2628 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2629 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2632 # Do `set' in a subshell so we don't clobber the current shell's
2633 # arguments. Must try -L first in case configure is actually a
2634 # symlink; some systems play weird games with the mod time of symlinks
2635 # (eg FreeBSD returns the mod time of the symlink's containing
2638 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2639 if test "$*" = "X"; then
2641 set X `ls -t "$srcdir/configure" conftest.file`
2644 if test "$*" != "X $srcdir/configure conftest.file" \
2645 && test "$*" != "X conftest.file $srcdir/configure"; then
2647 # If neither matched, then we have a broken ls. This can happen
2648 # if, for instance, CONFIG_SHELL is bash and it inherits a
2649 # broken ls alias from the environment. This has actually
2650 # happened. Such a system could not be considered "sane".
2651 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2652 alias in your environment" "$LINENO" 5
2655 test "$2" = conftest.file
2661 as_fn_error $? "newly created file is older than distributed files!
2662 Check your system clock" "$LINENO" 5
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2665 $as_echo "yes" >&6; }
2666 test "$program_prefix" != NONE &&
2667 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2668 # Use a double $ so make ignores it.
2669 test "$program_suffix" != NONE &&
2670 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2671 # Double any \ or $.
2672 # By default was `s,x,x', remove it if useless.
2673 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2674 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2676 # expand $ac_aux_dir to an absolute path
2677 am_aux_dir=`cd $ac_aux_dir && pwd`
2679 if test x"${MISSING+set}" != xset; then
2682 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2684 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2687 # Use eval to expand $SHELL
2688 if eval "$MISSING --run true"; then
2689 am_missing_run="$MISSING --run "
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2693 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2696 if test x"${install_sh}" != xset; then
2699 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2701 install_sh="\${SHELL} $am_aux_dir/install-sh"
2705 # Installed binaries are usually stripped using `strip' when the user
2706 # run `make install-strip'. However `strip' might not be the right
2707 # tool to use in cross-compilation environments, therefore Automake
2708 # will honor the `STRIP' environment variable to overrule this program.
2709 if test "$cross_compiling" != no; then
2710 if test -n "$ac_tool_prefix"; then
2711 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2712 set dummy ${ac_tool_prefix}strip; ac_word=$2
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2714 $as_echo_n "checking for $ac_word... " >&6; }
2715 if ${ac_cv_prog_STRIP+:} false; then :
2716 $as_echo_n "(cached) " >&6
2718 if test -n "$STRIP"; then
2719 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2725 test -z "$as_dir" && as_dir=.
2726 for ac_exec_ext in '' $ac_executable_extensions; do
2727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2728 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2738 STRIP=$ac_cv_prog_STRIP
2739 if test -n "$STRIP"; then
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2741 $as_echo "$STRIP" >&6; }
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2744 $as_echo "no" >&6; }
2749 if test -z "$ac_cv_prog_STRIP"; then
2751 # Extract the first word of "strip", so it can be a program name with args.
2752 set dummy strip; ac_word=$2
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2754 $as_echo_n "checking for $ac_word... " >&6; }
2755 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2756 $as_echo_n "(cached) " >&6
2758 if test -n "$ac_ct_STRIP"; then
2759 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2765 test -z "$as_dir" && as_dir=.
2766 for ac_exec_ext in '' $ac_executable_extensions; do
2767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2768 ac_cv_prog_ac_ct_STRIP="strip"
2769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2778 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2779 if test -n "$ac_ct_STRIP"; then
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2781 $as_echo "$ac_ct_STRIP" >&6; }
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2784 $as_echo "no" >&6; }
2787 if test "x$ac_ct_STRIP" = x; then
2790 case $cross_compiling:$ac_tool_warned in
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2793 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2794 ac_tool_warned=yes ;;
2799 STRIP="$ac_cv_prog_STRIP"
2803 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2806 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2807 if test -z "$MKDIR_P"; then
2808 if ${ac_cv_path_mkdir+:} false; then :
2809 $as_echo_n "(cached) " >&6
2811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2812 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2815 test -z "$as_dir" && as_dir=.
2816 for ac_prog in mkdir gmkdir; do
2817 for ac_exec_ext in '' $ac_executable_extensions; do
2818 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2819 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2820 'mkdir (GNU coreutils) '* | \
2821 'mkdir (coreutils) '* | \
2822 'mkdir (fileutils) '4.1*)
2823 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2833 test -d ./--version && rmdir ./--version
2834 if test "${ac_cv_path_mkdir+set}" = set; then
2835 MKDIR_P="$ac_cv_path_mkdir -p"
2837 # As a last resort, use the slow shell script. Don't cache a
2838 # value for MKDIR_P within a source directory, because that will
2839 # break other packages using the cache if that directory is
2840 # removed, or if the value is a relative name.
2841 MKDIR_P="$ac_install_sh -d"
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2845 $as_echo "$MKDIR_P" >&6; }
2849 [\\/$]* | ?:[\\/]*) ;;
2850 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2853 for ac_prog in gawk mawk nawk awk
2855 # Extract the first word of "$ac_prog", so it can be a program name with args.
2856 set dummy $ac_prog; ac_word=$2
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2858 $as_echo_n "checking for $ac_word... " >&6; }
2859 if ${ac_cv_prog_AWK+:} false; then :
2860 $as_echo_n "(cached) " >&6
2862 if test -n "$AWK"; then
2863 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2869 test -z "$as_dir" && as_dir=.
2870 for ac_exec_ext in '' $ac_executable_extensions; do
2871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2872 ac_cv_prog_AWK="$ac_prog"
2873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2883 if test -n "$AWK"; then
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2885 $as_echo "$AWK" >&6; }
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2888 $as_echo "no" >&6; }
2892 test -n "$AWK" && break
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2896 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2898 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2899 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2900 $as_echo_n "(cached) " >&6
2902 cat >conftest.make <<\_ACEOF
2905 @echo '@@@%%%=$(MAKE)=@@@%%%'
2907 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2908 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2910 eval ac_cv_prog_make_${ac_make}_set=yes;;
2912 eval ac_cv_prog_make_${ac_make}_set=no;;
2916 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2918 $as_echo "yes" >&6; }
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2922 $as_echo "no" >&6; }
2923 SET_MAKE="MAKE=${MAKE-make}"
2926 rm -rf .tst 2>/dev/null
2927 mkdir .tst 2>/dev/null
2928 if test -d .tst; then
2933 rmdir .tst 2>/dev/null
2935 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2936 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2937 # is not polluted with repeated "-I."
2938 am__isrc=' -I$(srcdir)'
2939 # test to see if srcdir already configured
2940 if test -f $srcdir/config.status; then
2941 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2945 # test whether we have cygpath
2946 if test -z "$CYGPATH_W"; then
2947 if (cygpath --version) >/dev/null 2>/dev/null; then
2948 CYGPATH_W='cygpath -w'
2955 # Define the identity of the package.
2960 cat >>confdefs.h <<_ACEOF
2961 #define PACKAGE "$PACKAGE"
2965 cat >>confdefs.h <<_ACEOF
2966 #define VERSION "$VERSION"
2969 # Some tools Automake needs.
2971 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2974 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2977 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2980 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2983 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2985 # We need awk for the "check" target. The system "awk" is bad on
2987 # Always define AMTAR for backward compatibility.
2989 AMTAR=${AMTAR-"${am_missing_run}tar"}
2991 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2997 ac_config_headers="$ac_config_headers config.h"
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
3003 $as_echo_n "checking whether NLS is requested... " >&6; }
3004 # Check whether --enable-nls was given.
3005 if test "${enable_nls+set}" = set; then :
3006 enableval=$enable_nls; USE_NLS=$enableval
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
3012 $as_echo "$USE_NLS" >&6; }
3017 GETTEXT_MACRO_VERSION=0.18
3022 # Prepare PATH_SEPARATOR.
3023 # The user is always right.
3024 if test "${PATH_SEPARATOR+set}" != set; then
3025 echo "#! /bin/sh" >conf$$.sh
3026 echo "exit 0" >>conf$$.sh
3028 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3036 # Find out how to test for executable files. Don't use a zero-byte file,
3037 # as systems may use methods other than mode bits to determine executability.
3038 cat >conf$$.file <<_ASEOF
3042 chmod +x conf$$.file
3043 if test -x conf$$.file >/dev/null 2>&1; then
3044 ac_executable_p="test -x"
3046 ac_executable_p="test -f"
3050 # Extract the first word of "msgfmt", so it can be a program name with args.
3051 set dummy msgfmt; ac_word=$2
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3053 $as_echo_n "checking for $ac_word... " >&6; }
3054 if ${ac_cv_path_MSGFMT+:} false; then :
3055 $as_echo_n "(cached) " >&6
3059 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3062 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3063 for ac_dir in $PATH; do
3065 test -z "$ac_dir" && ac_dir=.
3066 for ac_exec_ext in '' $ac_executable_extensions; do
3067 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3068 echo "$as_me: trying $ac_dir/$ac_word..." >&5
3069 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
3070 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3071 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
3078 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
3082 MSGFMT="$ac_cv_path_MSGFMT"
3083 if test "$MSGFMT" != ":"; then
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
3085 $as_echo "$MSGFMT" >&6; }
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3088 $as_echo "no" >&6; }
3091 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3092 set dummy gmsgfmt; ac_word=$2
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3094 $as_echo_n "checking for $ac_word... " >&6; }
3095 if ${ac_cv_path_GMSGFMT+:} false; then :
3096 $as_echo_n "(cached) " >&6
3100 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3107 test -z "$as_dir" && as_dir=.
3108 for ac_exec_ext in '' $ac_executable_extensions; do
3109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3110 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
3111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3118 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3122 GMSGFMT=$ac_cv_path_GMSGFMT
3123 if test -n "$GMSGFMT"; then
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
3125 $as_echo "$GMSGFMT" >&6; }
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3128 $as_echo "no" >&6; }
3133 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
3134 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
3135 *) MSGFMT_015=$MSGFMT ;;
3138 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
3139 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
3140 *) GMSGFMT_015=$GMSGFMT ;;
3145 # Prepare PATH_SEPARATOR.
3146 # The user is always right.
3147 if test "${PATH_SEPARATOR+set}" != set; then
3148 echo "#! /bin/sh" >conf$$.sh
3149 echo "exit 0" >>conf$$.sh
3151 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3159 # Find out how to test for executable files. Don't use a zero-byte file,
3160 # as systems may use methods other than mode bits to determine executability.
3161 cat >conf$$.file <<_ASEOF
3165 chmod +x conf$$.file
3166 if test -x conf$$.file >/dev/null 2>&1; then
3167 ac_executable_p="test -x"
3169 ac_executable_p="test -f"
3173 # Extract the first word of "xgettext", so it can be a program name with args.
3174 set dummy xgettext; ac_word=$2
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3176 $as_echo_n "checking for $ac_word... " >&6; }
3177 if ${ac_cv_path_XGETTEXT+:} false; then :
3178 $as_echo_n "(cached) " >&6
3182 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3185 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3186 for ac_dir in $PATH; do
3188 test -z "$ac_dir" && ac_dir=.
3189 for ac_exec_ext in '' $ac_executable_extensions; do
3190 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3191 echo "$as_me: trying $ac_dir/$ac_word..." >&5
3192 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
3193 (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
3194 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
3201 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3205 XGETTEXT="$ac_cv_path_XGETTEXT"
3206 if test "$XGETTEXT" != ":"; then
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
3208 $as_echo "$XGETTEXT" >&6; }
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3211 $as_echo "no" >&6; }
3216 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
3217 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
3218 *) XGETTEXT_015=$XGETTEXT ;;
3223 # Prepare PATH_SEPARATOR.
3224 # The user is always right.
3225 if test "${PATH_SEPARATOR+set}" != set; then
3226 echo "#! /bin/sh" >conf$$.sh
3227 echo "exit 0" >>conf$$.sh
3229 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3237 # Find out how to test for executable files. Don't use a zero-byte file,
3238 # as systems may use methods other than mode bits to determine executability.
3239 cat >conf$$.file <<_ASEOF
3243 chmod +x conf$$.file
3244 if test -x conf$$.file >/dev/null 2>&1; then
3245 ac_executable_p="test -x"
3247 ac_executable_p="test -f"
3251 # Extract the first word of "msgmerge", so it can be a program name with args.
3252 set dummy msgmerge; ac_word=$2
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3254 $as_echo_n "checking for $ac_word... " >&6; }
3255 if ${ac_cv_path_MSGMERGE+:} false; then :
3256 $as_echo_n "(cached) " >&6
3260 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
3263 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3264 for ac_dir in $PATH; do
3266 test -z "$ac_dir" && ac_dir=.
3267 for ac_exec_ext in '' $ac_executable_extensions; do
3268 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3269 echo "$as_me: trying $ac_dir/$ac_word..." >&5
3270 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
3271 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
3278 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
3282 MSGMERGE="$ac_cv_path_MSGMERGE"
3283 if test "$MSGMERGE" != ":"; then
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
3285 $as_echo "$MSGMERGE" >&6; }
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3288 $as_echo "no" >&6; }
3292 test -n "$localedir" || localedir='${datadir}/locale'
3295 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
3298 ac_config_commands="$ac_config_commands po-directories"
3301 DEPDIR="${am__leading_dot}deps"
3303 ac_config_commands="$ac_config_commands depfiles"
3306 am_make=${MAKE-make}
3307 cat > confinc << 'END'
3309 @echo this is the am__doit target
3312 # If we don't find an include directive, just comment out the code.
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3314 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3318 # First try GNU make style include.
3319 echo "include confinc" > confmf
3320 # Ignore all kinds of additional output from `make'.
3321 case `$am_make -s -f confmf 2> /dev/null` in #(
3322 *the\ am__doit\ target*)
3328 # Now try BSD make style include.
3329 if test "$am__include" = "#"; then
3330 echo '.include "confinc"' > confmf
3331 case `$am_make -s -f confmf 2> /dev/null` in #(
3332 *the\ am__doit\ target*)
3333 am__include=.include
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3342 $as_echo "$_am_result" >&6; }
3343 rm -f confinc confmf
3345 # Check whether --enable-dependency-tracking was given.
3346 if test "${enable_dependency_tracking+set}" = set; then :
3347 enableval=$enable_dependency_tracking;
3350 if test "x$enable_dependency_tracking" != xno; then
3351 am_depcomp="$ac_aux_dir/depcomp"
3354 if test "x$enable_dependency_tracking" != xno; then
3364 ac_cpp='$CPP $CPPFLAGS'
3365 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3366 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3367 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3368 if test -n "$ac_tool_prefix"; then
3369 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3370 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3372 $as_echo_n "checking for $ac_word... " >&6; }
3373 if ${ac_cv_prog_CC+:} false; then :
3374 $as_echo_n "(cached) " >&6
3376 if test -n "$CC"; then
3377 ac_cv_prog_CC="$CC" # Let the user override the test.
3379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3383 test -z "$as_dir" && as_dir=.
3384 for ac_exec_ext in '' $ac_executable_extensions; do
3385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3386 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3397 if test -n "$CC"; then
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3399 $as_echo "$CC" >&6; }
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3402 $as_echo "no" >&6; }
3407 if test -z "$ac_cv_prog_CC"; then
3409 # Extract the first word of "gcc", so it can be a program name with args.
3410 set dummy gcc; ac_word=$2
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3412 $as_echo_n "checking for $ac_word... " >&6; }
3413 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3414 $as_echo_n "(cached) " >&6
3416 if test -n "$ac_ct_CC"; then
3417 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3423 test -z "$as_dir" && as_dir=.
3424 for ac_exec_ext in '' $ac_executable_extensions; do
3425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3426 ac_cv_prog_ac_ct_CC="gcc"
3427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3436 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3437 if test -n "$ac_ct_CC"; then
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3439 $as_echo "$ac_ct_CC" >&6; }
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3442 $as_echo "no" >&6; }
3445 if test "x$ac_ct_CC" = x; then
3448 case $cross_compiling:$ac_tool_warned in
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3451 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3452 ac_tool_warned=yes ;;
3460 if test -z "$CC"; then
3461 if test -n "$ac_tool_prefix"; then
3462 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3463 set dummy ${ac_tool_prefix}cc; ac_word=$2
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3465 $as_echo_n "checking for $ac_word... " >&6; }
3466 if ${ac_cv_prog_CC+:} false; then :
3467 $as_echo_n "(cached) " >&6
3469 if test -n "$CC"; then
3470 ac_cv_prog_CC="$CC" # Let the user override the test.
3472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3476 test -z "$as_dir" && as_dir=.
3477 for ac_exec_ext in '' $ac_executable_extensions; do
3478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3479 ac_cv_prog_CC="${ac_tool_prefix}cc"
3480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3490 if test -n "$CC"; then
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3492 $as_echo "$CC" >&6; }
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3495 $as_echo "no" >&6; }
3501 if test -z "$CC"; then
3502 # Extract the first word of "cc", so it can be a program name with args.
3503 set dummy cc; ac_word=$2
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3505 $as_echo_n "checking for $ac_word... " >&6; }
3506 if ${ac_cv_prog_CC+:} false; then :
3507 $as_echo_n "(cached) " >&6
3509 if test -n "$CC"; then
3510 ac_cv_prog_CC="$CC" # Let the user override the test.
3513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3517 test -z "$as_dir" && as_dir=.
3518 for ac_exec_ext in '' $ac_executable_extensions; do
3519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3520 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3521 ac_prog_rejected=yes
3525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3532 if test $ac_prog_rejected = yes; then
3533 # We found a bogon in the path, so make sure we never use it.
3534 set dummy $ac_cv_prog_CC
3536 if test $# != 0; then
3537 # We chose a different compiler from the bogus one.
3538 # However, it has the same basename, so the bogon will be chosen
3539 # first if we set CC to just the basename; use the full file name.
3541 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3547 if test -n "$CC"; then
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3549 $as_echo "$CC" >&6; }
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3552 $as_echo "no" >&6; }
3557 if test -z "$CC"; then
3558 if test -n "$ac_tool_prefix"; then
3559 for ac_prog in cl.exe
3561 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3562 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3564 $as_echo_n "checking for $ac_word... " >&6; }
3565 if ${ac_cv_prog_CC+:} false; then :
3566 $as_echo_n "(cached) " >&6
3568 if test -n "$CC"; then
3569 ac_cv_prog_CC="$CC" # Let the user override the test.
3571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3575 test -z "$as_dir" && as_dir=.
3576 for ac_exec_ext in '' $ac_executable_extensions; do
3577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3578 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3589 if test -n "$CC"; then
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3591 $as_echo "$CC" >&6; }
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3594 $as_echo "no" >&6; }
3598 test -n "$CC" && break
3601 if test -z "$CC"; then
3603 for ac_prog in cl.exe
3605 # Extract the first word of "$ac_prog", so it can be a program name with args.
3606 set dummy $ac_prog; ac_word=$2
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3608 $as_echo_n "checking for $ac_word... " >&6; }
3609 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3610 $as_echo_n "(cached) " >&6
3612 if test -n "$ac_ct_CC"; then
3613 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3619 test -z "$as_dir" && as_dir=.
3620 for ac_exec_ext in '' $ac_executable_extensions; do
3621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3622 ac_cv_prog_ac_ct_CC="$ac_prog"
3623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3632 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3633 if test -n "$ac_ct_CC"; then
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3635 $as_echo "$ac_ct_CC" >&6; }
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3638 $as_echo "no" >&6; }
3642 test -n "$ac_ct_CC" && break
3645 if test "x$ac_ct_CC" = x; then
3648 case $cross_compiling:$ac_tool_warned in
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3651 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3652 ac_tool_warned=yes ;;
3661 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3662 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3663 as_fn_error $? "no acceptable C compiler found in \$PATH
3664 See \`config.log' for more details" "$LINENO" 5; }
3666 # Provide some information about the compiler.
3667 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3670 for ac_option in --version -v -V -qversion; do
3671 { { ac_try="$ac_compiler $ac_option >&5"
3673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3674 *) ac_try_echo=$ac_try;;
3676 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3677 $as_echo "$ac_try_echo"; } >&5
3678 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3680 if test -s conftest.err; then
3682 ... rest of stderr output deleted ...
3683 10q' conftest.err >conftest.er1
3684 cat conftest.er1 >&5
3686 rm -f conftest.er1 conftest.err
3687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3688 test $ac_status = 0; }
3691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3692 /* end confdefs.h. */
3702 ac_clean_files_save=$ac_clean_files
3703 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3704 # Try to create an executable without -o first, disregard a.out.
3705 # It will help us diagnose broken compilers, and finding out an intuition
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3708 $as_echo_n "checking whether the C compiler works... " >&6; }
3709 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3711 # The possible output files:
3712 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3715 for ac_file in $ac_files
3718 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3719 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3724 if { { ac_try="$ac_link_default"
3726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3727 *) ac_try_echo=$ac_try;;
3729 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3730 $as_echo "$ac_try_echo"; } >&5
3731 (eval "$ac_link_default") 2>&5
3733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3734 test $ac_status = 0; }; then :
3735 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3736 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3737 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3738 # so that the user can short-circuit this test for compilers unknown to
3740 for ac_file in $ac_files ''
3742 test -f "$ac_file" || continue
3744 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3747 # We found the default executable, but exeext='' is most
3751 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3753 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3755 # We set ac_cv_exeext here because the later test for it is not
3756 # safe: cross compilers may not add the suffix if given an `-o'
3757 # argument, so we may need to know it at that point already.
3758 # Even if this section looks crufty: it has the advantage of
3765 test "$ac_cv_exeext" = no && ac_cv_exeext=
3770 if test -z "$ac_file"; then :
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3772 $as_echo "no" >&6; }
3773 $as_echo "$as_me: failed program was:" >&5
3774 sed 's/^/| /' conftest.$ac_ext >&5
3776 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3777 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3778 as_fn_error 77 "C compiler cannot create executables
3779 See \`config.log' for more details" "$LINENO" 5; }
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3782 $as_echo "yes" >&6; }
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3785 $as_echo_n "checking for C compiler default output file name... " >&6; }
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3787 $as_echo "$ac_file" >&6; }
3788 ac_exeext=$ac_cv_exeext
3790 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3791 ac_clean_files=$ac_clean_files_save
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3793 $as_echo_n "checking for suffix of executables... " >&6; }
3794 if { { ac_try="$ac_link"
3796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3797 *) ac_try_echo=$ac_try;;
3799 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3800 $as_echo "$ac_try_echo"; } >&5
3801 (eval "$ac_link") 2>&5
3803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3804 test $ac_status = 0; }; then :
3805 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3806 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3807 # work properly (i.e., refer to `conftest.exe'), while it won't with
3809 for ac_file in conftest.exe conftest conftest.*; do
3810 test -f "$ac_file" || continue
3812 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3813 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3819 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3820 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3821 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3822 See \`config.log' for more details" "$LINENO" 5; }
3824 rm -f conftest conftest$ac_cv_exeext
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3826 $as_echo "$ac_cv_exeext" >&6; }
3828 rm -f conftest.$ac_ext
3829 EXEEXT=$ac_cv_exeext
3831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3832 /* end confdefs.h. */
3837 FILE *f = fopen ("conftest.out", "w");
3838 return ferror (f) || fclose (f) != 0;
3844 ac_clean_files="$ac_clean_files conftest.out"
3845 # Check that the compiler produces executables we can run. If not, either
3846 # the compiler is broken, or we cross compile.
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3848 $as_echo_n "checking whether we are cross compiling... " >&6; }
3849 if test "$cross_compiling" != yes; then
3850 { { ac_try="$ac_link"
3852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3853 *) ac_try_echo=$ac_try;;
3855 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3856 $as_echo "$ac_try_echo"; } >&5
3857 (eval "$ac_link") 2>&5
3859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3860 test $ac_status = 0; }
3861 if { ac_try='./conftest$ac_cv_exeext'
3862 { { case "(($ac_try" in
3863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3864 *) ac_try_echo=$ac_try;;
3866 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3867 $as_echo "$ac_try_echo"; } >&5
3868 (eval "$ac_try") 2>&5
3870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3871 test $ac_status = 0; }; }; then
3874 if test "$cross_compiling" = maybe; then
3877 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3878 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3879 as_fn_error $? "cannot run C compiled programs.
3880 If you meant to cross compile, use \`--host'.
3881 See \`config.log' for more details" "$LINENO" 5; }
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3886 $as_echo "$cross_compiling" >&6; }
3888 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3889 ac_clean_files=$ac_clean_files_save
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3891 $as_echo_n "checking for suffix of object files... " >&6; }
3892 if ${ac_cv_objext+:} false; then :
3893 $as_echo_n "(cached) " >&6
3895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3896 /* end confdefs.h. */
3906 rm -f conftest.o conftest.obj
3907 if { { ac_try="$ac_compile"
3909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3910 *) ac_try_echo=$ac_try;;
3912 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3913 $as_echo "$ac_try_echo"; } >&5
3914 (eval "$ac_compile") 2>&5
3916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3917 test $ac_status = 0; }; then :
3918 for ac_file in conftest.o conftest.obj conftest.*; do
3919 test -f "$ac_file" || continue;
3921 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3922 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3927 $as_echo "$as_me: failed program was:" >&5
3928 sed 's/^/| /' conftest.$ac_ext >&5
3930 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3931 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3932 as_fn_error $? "cannot compute suffix of object files: cannot compile
3933 See \`config.log' for more details" "$LINENO" 5; }
3935 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3938 $as_echo "$ac_cv_objext" >&6; }
3939 OBJEXT=$ac_cv_objext
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3942 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3943 if ${ac_cv_c_compiler_gnu+:} false; then :
3944 $as_echo_n "(cached) " >&6
3946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3947 /* end confdefs.h. */
3960 if ac_fn_c_try_compile "$LINENO"; then :
3965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3966 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3970 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3971 if test $ac_compiler_gnu = yes; then
3976 ac_test_CFLAGS=${CFLAGS+set}
3977 ac_save_CFLAGS=$CFLAGS
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3979 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3980 if ${ac_cv_prog_cc_g+:} false; then :
3981 $as_echo_n "(cached) " >&6
3983 ac_save_c_werror_flag=$ac_c_werror_flag
3984 ac_c_werror_flag=yes
3987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3988 /* end confdefs.h. */
3998 if ac_fn_c_try_compile "$LINENO"; then :
4002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4003 /* end confdefs.h. */
4013 if ac_fn_c_try_compile "$LINENO"; then :
4016 ac_c_werror_flag=$ac_save_c_werror_flag
4018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4019 /* end confdefs.h. */
4029 if ac_fn_c_try_compile "$LINENO"; then :
4032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4037 ac_c_werror_flag=$ac_save_c_werror_flag
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4040 $as_echo "$ac_cv_prog_cc_g" >&6; }
4041 if test "$ac_test_CFLAGS" = set; then
4042 CFLAGS=$ac_save_CFLAGS
4043 elif test $ac_cv_prog_cc_g = yes; then
4044 if test "$GCC" = yes; then
4050 if test "$GCC" = yes; then
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4057 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4058 if ${ac_cv_prog_cc_c89+:} false; then :
4059 $as_echo_n "(cached) " >&6
4061 ac_cv_prog_cc_c89=no
4063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4064 /* end confdefs.h. */
4067 #include <sys/types.h>
4068 #include <sys/stat.h>
4069 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4070 struct buf { int x; };
4071 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4072 static char *e (p, i)
4078 static char *f (char * (*g) (char **, int), char **p, ...)
4083 s = g (p, va_arg (v,int));
4088 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4089 function prototypes and stuff, but not '\xHH' hex character constants.
4090 These don't provoke an error unfortunately, instead are silently treated
4091 as 'x'. The following induces an error, until -std is added to get
4092 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4093 array size at least. It's necessary to write '\x00'==0 to get something
4094 that's true only with -std. */
4095 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4097 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4098 inside strings and character constants. */
4100 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4102 int test (int i, double x);
4103 struct s1 {int (*f) (int a);};
4104 struct s2 {int (*f) (double a);};
4105 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4111 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4116 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4117 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4119 CC="$ac_save_CC $ac_arg"
4120 if ac_fn_c_try_compile "$LINENO"; then :
4121 ac_cv_prog_cc_c89=$ac_arg
4123 rm -f core conftest.err conftest.$ac_objext
4124 test "x$ac_cv_prog_cc_c89" != "xno" && break
4126 rm -f conftest.$ac_ext
4131 case "x$ac_cv_prog_cc_c89" in
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4134 $as_echo "none needed" >&6; } ;;
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4137 $as_echo "unsupported" >&6; } ;;
4139 CC="$CC $ac_cv_prog_cc_c89"
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4141 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4143 if test "x$ac_cv_prog_cc_c89" != xno; then :
4148 ac_cpp='$CPP $CPPFLAGS'
4149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4151 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4153 depcc="$CC" am_compiler_list=
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4156 $as_echo_n "checking dependency style of $depcc... " >&6; }
4157 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4158 $as_echo_n "(cached) " >&6
4160 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4161 # We make a subdir and do the tests there. Otherwise we can end up
4162 # making bogus files that we don't know about and never remove. For
4163 # instance it was reported that on HP-UX the gcc test will end up
4164 # making a dummy file named `D' -- because `-MD' means `put the output
4167 # Copy depcomp to subdir because otherwise we won't find it if we're
4168 # using a relative directory.
4169 cp "$am_depcomp" conftest.dir
4171 # We will build objects and dependencies in a subdirectory because
4172 # it helps to detect inapplicable dependency modes. For instance
4173 # both Tru64's cc and ICC support -MD to output dependencies as a
4174 # side effect of compilation, but ICC will put the dependencies in
4175 # the current directory while Tru64 will put them in the object
4179 am_cv_CC_dependencies_compiler_type=none
4180 if test "$am_compiler_list" = ""; then
4181 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4184 case " $depcc " in #(
4185 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4188 for depmode in $am_compiler_list; do
4189 # Setup a source with many dependencies, because some compilers
4190 # like to wrap large dependency lists on column 80 (with \), and
4191 # we should not choose a depcomp mode which is confused by this.
4193 # We need to recreate these files for each test, as the compiler may
4194 # overwrite some of them when testing with obscure command lines.
4195 # This happens at least with the AIX C compiler.
4197 for i in 1 2 3 4 5 6; do
4198 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4199 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4200 # Solaris 8's {/usr,}/bin/sh.
4201 touch sub/conftst$i.h
4203 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4205 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4206 # mode. It turns out that the SunPro C++ compiler does not properly
4207 # handle `-M -o', and we need to detect this. Also, some Intel
4208 # versions had trouble with output in subdirs
4209 am__obj=sub/conftest.${OBJEXT-o}
4210 am__minus_obj="-o $am__obj"
4213 # This depmode causes a compiler race in universal mode.
4214 test "$am__universal" = false || continue
4217 # after this tag, mechanisms are not by side-effect, so they'll
4218 # only be used when explicitly requested
4219 if test "x$enable_dependency_tracking" = xyes; then
4225 msvisualcpp | msvcmsys)
4226 # This compiler won't grok `-c -o', but also, the minuso test has
4227 # not run yet. These depmodes are late enough in the game, and
4228 # so weak that their functioning should not be impacted.
4229 am__obj=conftest.${OBJEXT-o}
4234 if depmode=$depmode \
4235 source=sub/conftest.c object=$am__obj \
4236 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4237 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4238 >/dev/null 2>conftest.err &&
4239 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4240 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4241 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4242 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4243 # icc doesn't choke on unknown options, it will just issue warnings
4244 # or remarks (even with -Werror). So we grep stderr for any message
4245 # that says an option was ignored or not supported.
4246 # When given -MP, icc 7.0 and 7.1 complain thusly:
4247 # icc: Command line warning: ignoring option '-M'; no argument required
4248 # The diagnosis changed in icc 8.0:
4249 # icc: Command line remark: option '-MP' not supported
4250 if (grep 'ignoring option' conftest.err ||
4251 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4252 am_cv_CC_dependencies_compiler_type=$depmode
4261 am_cv_CC_dependencies_compiler_type=none
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4266 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4267 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4270 test "x$enable_dependency_tracking" != xno \
4271 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4273 am__fastdepCC_FALSE='#'
4275 am__fastdepCC_TRUE='#'
4276 am__fastdepCC_FALSE=
4280 # Make sure we can run config.sub.
4281 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4282 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4285 $as_echo_n "checking build system type... " >&6; }
4286 if ${ac_cv_build+:} false; then :
4287 $as_echo_n "(cached) " >&6
4289 ac_build_alias=$build_alias
4290 test "x$ac_build_alias" = x &&
4291 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4292 test "x$ac_build_alias" = x &&
4293 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4294 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4295 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4299 $as_echo "$ac_cv_build" >&6; }
4300 case $ac_cv_build in
4302 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4305 ac_save_IFS=$IFS; IFS='-'
4311 # Remember, the first character of IFS is used to create $*,
4312 # except with old shells:
4315 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4319 $as_echo_n "checking host system type... " >&6; }
4320 if ${ac_cv_host+:} false; then :
4321 $as_echo_n "(cached) " >&6
4323 if test "x$host_alias" = x; then
4324 ac_cv_host=$ac_cv_build
4326 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4327 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4332 $as_echo "$ac_cv_host" >&6; }
4335 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4338 ac_save_IFS=$IFS; IFS='-'
4344 # Remember, the first character of IFS is used to create $*,
4345 # except with old shells:
4348 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4353 ac_cpp='$CPP $CPPFLAGS'
4354 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4355 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4356 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4358 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4359 # On Suns, sometimes $CPP names a directory.
4360 if test -n "$CPP" && test -d "$CPP"; then
4363 if test -z "$CPP"; then
4364 if ${ac_cv_prog_CPP+:} false; then :
4365 $as_echo_n "(cached) " >&6
4367 # Double quotes because CPP needs to be expanded
4368 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4371 for ac_c_preproc_warn_flag in '' yes
4373 # Use a header file that comes with gcc, so configuring glibc
4374 # with a fresh cross-compiler works.
4375 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4376 # <limits.h> exists even on freestanding compilers.
4377 # On the NeXT, cc -E runs the code through the compiler's parser,
4378 # not just through cpp. "Syntax error" is here to catch this case.
4379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4380 /* end confdefs.h. */
4382 # include <limits.h>
4384 # include <assert.h>
4388 if ac_fn_c_try_cpp "$LINENO"; then :
4391 # Broken: fails on valid input.
4394 rm -f conftest.err conftest.i conftest.$ac_ext
4396 # OK, works on sane cases. Now check whether nonexistent headers
4397 # can be detected and how.
4398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4399 /* end confdefs.h. */
4400 #include <ac_nonexistent.h>
4402 if ac_fn_c_try_cpp "$LINENO"; then :
4403 # Broken: success on invalid input.
4406 # Passes both tests.
4410 rm -f conftest.err conftest.i conftest.$ac_ext
4413 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4414 rm -f conftest.i conftest.err conftest.$ac_ext
4415 if $ac_preproc_ok; then :
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4428 $as_echo "$CPP" >&6; }
4430 for ac_c_preproc_warn_flag in '' yes
4432 # Use a header file that comes with gcc, so configuring glibc
4433 # with a fresh cross-compiler works.
4434 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4435 # <limits.h> exists even on freestanding compilers.
4436 # On the NeXT, cc -E runs the code through the compiler's parser,
4437 # not just through cpp. "Syntax error" is here to catch this case.
4438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4439 /* end confdefs.h. */
4441 # include <limits.h>
4443 # include <assert.h>
4447 if ac_fn_c_try_cpp "$LINENO"; then :
4450 # Broken: fails on valid input.
4453 rm -f conftest.err conftest.i conftest.$ac_ext
4455 # OK, works on sane cases. Now check whether nonexistent headers
4456 # can be detected and how.
4457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4458 /* end confdefs.h. */
4459 #include <ac_nonexistent.h>
4461 if ac_fn_c_try_cpp "$LINENO"; then :
4462 # Broken: success on invalid input.
4465 # Passes both tests.
4469 rm -f conftest.err conftest.i conftest.$ac_ext
4472 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4473 rm -f conftest.i conftest.err conftest.$ac_ext
4474 if $ac_preproc_ok; then :
4477 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4478 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4479 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4480 See \`config.log' for more details" "$LINENO" 5; }
4484 ac_cpp='$CPP $CPPFLAGS'
4485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4491 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4492 if ${ac_cv_path_GREP+:} false; then :
4493 $as_echo_n "(cached) " >&6
4495 if test -z "$GREP"; then
4496 ac_path_GREP_found=false
4497 # Loop through the user's path and test for each of PROGNAME-LIST
4498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4499 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4502 test -z "$as_dir" && as_dir=.
4503 for ac_prog in grep ggrep; do
4504 for ac_exec_ext in '' $ac_executable_extensions; do
4505 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4506 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4507 # Check for GNU ac_path_GREP and select it if it is found.
4508 # Check for GNU $ac_path_GREP
4509 case `"$ac_path_GREP" --version 2>&1` in
4511 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4514 $as_echo_n 0123456789 >"conftest.in"
4517 cat "conftest.in" "conftest.in" >"conftest.tmp"
4518 mv "conftest.tmp" "conftest.in"
4519 cp "conftest.in" "conftest.nl"
4520 $as_echo 'GREP' >> "conftest.nl"
4521 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4522 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4523 as_fn_arith $ac_count + 1 && ac_count=$as_val
4524 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4525 # Best one so far, save it but keep looking for a better one
4526 ac_cv_path_GREP="$ac_path_GREP"
4527 ac_path_GREP_max=$ac_count
4529 # 10*(2^10) chars as input seems more than enough
4530 test $ac_count -gt 10 && break
4532 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4535 $ac_path_GREP_found && break 3
4540 if test -z "$ac_cv_path_GREP"; then
4541 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4544 ac_cv_path_GREP=$GREP
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4549 $as_echo "$ac_cv_path_GREP" >&6; }
4550 GREP="$ac_cv_path_GREP"
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4554 $as_echo_n "checking for egrep... " >&6; }
4555 if ${ac_cv_path_EGREP+:} false; then :
4556 $as_echo_n "(cached) " >&6
4558 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4559 then ac_cv_path_EGREP="$GREP -E"
4561 if test -z "$EGREP"; then
4562 ac_path_EGREP_found=false
4563 # Loop through the user's path and test for each of PROGNAME-LIST
4564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4565 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4568 test -z "$as_dir" && as_dir=.
4569 for ac_prog in egrep; do
4570 for ac_exec_ext in '' $ac_executable_extensions; do
4571 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4572 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4573 # Check for GNU ac_path_EGREP and select it if it is found.
4574 # Check for GNU $ac_path_EGREP
4575 case `"$ac_path_EGREP" --version 2>&1` in
4577 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4580 $as_echo_n 0123456789 >"conftest.in"
4583 cat "conftest.in" "conftest.in" >"conftest.tmp"
4584 mv "conftest.tmp" "conftest.in"
4585 cp "conftest.in" "conftest.nl"
4586 $as_echo 'EGREP' >> "conftest.nl"
4587 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4588 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4589 as_fn_arith $ac_count + 1 && ac_count=$as_val
4590 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4591 # Best one so far, save it but keep looking for a better one
4592 ac_cv_path_EGREP="$ac_path_EGREP"
4593 ac_path_EGREP_max=$ac_count
4595 # 10*(2^10) chars as input seems more than enough
4596 test $ac_count -gt 10 && break
4598 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4601 $ac_path_EGREP_found && break 3
4606 if test -z "$ac_cv_path_EGREP"; then
4607 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4610 ac_cv_path_EGREP=$EGREP
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4616 $as_echo "$ac_cv_path_EGREP" >&6; }
4617 EGREP="$ac_cv_path_EGREP"
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
4622 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
4623 if ${ac_cv_gnu_library_2+:} false; then :
4624 $as_echo_n "(cached) " >&6
4626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4627 /* end confdefs.h. */
4629 #include <features.h>
4630 #ifdef __GNU_LIBRARY__
4631 #if (__GLIBC__ >= 2)
4637 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4638 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
4639 ac_cv_gnu_library_2=yes
4641 ac_cv_gnu_library_2=no
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
4649 $as_echo "$ac_cv_gnu_library_2" >&6; }
4651 GLIBC2="$ac_cv_gnu_library_2"
4654 if test -n "$ac_tool_prefix"; then
4655 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4656 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4658 $as_echo_n "checking for $ac_word... " >&6; }
4659 if ${ac_cv_prog_RANLIB+:} false; then :
4660 $as_echo_n "(cached) " >&6
4662 if test -n "$RANLIB"; then
4663 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4669 test -z "$as_dir" && as_dir=.
4670 for ac_exec_ext in '' $ac_executable_extensions; do
4671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4672 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4682 RANLIB=$ac_cv_prog_RANLIB
4683 if test -n "$RANLIB"; then
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4685 $as_echo "$RANLIB" >&6; }
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4688 $as_echo "no" >&6; }
4693 if test -z "$ac_cv_prog_RANLIB"; then
4694 ac_ct_RANLIB=$RANLIB
4695 # Extract the first word of "ranlib", so it can be a program name with args.
4696 set dummy ranlib; 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_prog_ac_ct_RANLIB+:} false; then :
4700 $as_echo_n "(cached) " >&6
4702 if test -n "$ac_ct_RANLIB"; then
4703 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4709 test -z "$as_dir" && as_dir=.
4710 for ac_exec_ext in '' $ac_executable_extensions; do
4711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4712 ac_cv_prog_ac_ct_RANLIB="ranlib"
4713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4722 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4723 if test -n "$ac_ct_RANLIB"; then
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4725 $as_echo "$ac_ct_RANLIB" >&6; }
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4728 $as_echo "no" >&6; }
4731 if test "x$ac_ct_RANLIB" = x; then
4734 case $cross_compiling:$ac_tool_warned in
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4737 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4738 ac_tool_warned=yes ;;
4740 RANLIB=$ac_ct_RANLIB
4743 RANLIB="$ac_cv_prog_RANLIB"
4750 if test -n "$GCC"; then
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
4752 $as_echo_n "checking whether the -Werror option is usable... " >&6; }
4753 if ${gl_cv_cc_vis_werror+:} false; then :
4754 $as_echo_n "(cached) " >&6
4757 gl_save_CFLAGS="$CFLAGS"
4758 CFLAGS="$CFLAGS -Werror"
4759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4760 /* end confdefs.h. */
4770 if ac_fn_c_try_compile "$LINENO"; then :
4771 gl_cv_cc_vis_werror=yes
4773 gl_cv_cc_vis_werror=no
4775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4776 CFLAGS="$gl_save_CFLAGS"
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
4780 $as_echo "$gl_cv_cc_vis_werror" >&6; }
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
4782 $as_echo_n "checking for simple visibility declarations... " >&6; }
4783 if ${gl_cv_cc_visibility+:} false; then :
4784 $as_echo_n "(cached) " >&6
4787 gl_save_CFLAGS="$CFLAGS"
4788 CFLAGS="$CFLAGS -fvisibility=hidden"
4789 if test $gl_cv_cc_vis_werror = yes; then
4790 CFLAGS="$CFLAGS -Werror"
4792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4793 /* end confdefs.h. */
4794 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
4795 extern __attribute__((__visibility__("default"))) int exportedvar;
4796 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
4797 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
4798 void dummyfunc (void) {}
4807 if ac_fn_c_try_compile "$LINENO"; then :
4808 gl_cv_cc_visibility=yes
4810 gl_cv_cc_visibility=no
4812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4813 CFLAGS="$gl_save_CFLAGS"
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
4817 $as_echo "$gl_cv_cc_visibility" >&6; }
4818 if test $gl_cv_cc_visibility = yes; then
4819 CFLAG_VISIBILITY="-fvisibility=hidden"
4826 cat >>confdefs.h <<_ACEOF
4827 #define HAVE_VISIBILITY $HAVE_VISIBILITY
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4832 $as_echo_n "checking for inline... " >&6; }
4833 if ${ac_cv_c_inline+:} false; then :
4834 $as_echo_n "(cached) " >&6
4837 for ac_kw in inline __inline__ __inline; do
4838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4839 /* end confdefs.h. */
4842 static $ac_kw foo_t static_foo () {return 0; }
4843 $ac_kw foo_t foo () {return 0; }
4847 if ac_fn_c_try_compile "$LINENO"; then :
4848 ac_cv_c_inline=$ac_kw
4850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4851 test "$ac_cv_c_inline" != no && break
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4856 $as_echo "$ac_cv_c_inline" >&6; }
4858 case $ac_cv_c_inline in
4861 case $ac_cv_c_inline in
4863 *) ac_val=$ac_cv_c_inline;;
4865 cat >>confdefs.h <<_ACEOF
4867 #define inline $ac_val
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4874 $as_echo_n "checking for ANSI C header files... " >&6; }
4875 if ${ac_cv_header_stdc+:} false; then :
4876 $as_echo_n "(cached) " >&6
4878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4879 /* end confdefs.h. */
4893 if ac_fn_c_try_compile "$LINENO"; then :
4894 ac_cv_header_stdc=yes
4896 ac_cv_header_stdc=no
4898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4900 if test $ac_cv_header_stdc = yes; then
4901 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4903 /* end confdefs.h. */
4907 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4908 $EGREP "memchr" >/dev/null 2>&1; then :
4911 ac_cv_header_stdc=no
4917 if test $ac_cv_header_stdc = yes; then
4918 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4920 /* end confdefs.h. */
4924 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4925 $EGREP "free" >/dev/null 2>&1; then :
4928 ac_cv_header_stdc=no
4934 if test $ac_cv_header_stdc = yes; then
4935 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4936 if test "$cross_compiling" = yes; then :
4939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4940 /* end confdefs.h. */
4943 #if ((' ' & 0x0FF) == 0x020)
4944 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4945 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4947 # define ISLOWER(c) \
4948 (('a' <= (c) && (c) <= 'i') \
4949 || ('j' <= (c) && (c) <= 'r') \
4950 || ('s' <= (c) && (c) <= 'z'))
4951 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4954 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4959 for (i = 0; i < 256; i++)
4960 if (XOR (islower (i), ISLOWER (i))
4961 || toupper (i) != TOUPPER (i))
4966 if ac_fn_c_try_run "$LINENO"; then :
4969 ac_cv_header_stdc=no
4971 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4972 conftest.$ac_objext conftest.beam conftest.$ac_ext
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4978 $as_echo "$ac_cv_header_stdc" >&6; }
4979 if test $ac_cv_header_stdc = yes; then
4981 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4985 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4986 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4987 inttypes.h stdint.h unistd.h
4989 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4990 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4992 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4993 cat >>confdefs.h <<_ACEOF
4994 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5002 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5003 if test "x$ac_cv_type_size_t" = xyes; then :
5007 cat >>confdefs.h <<_ACEOF
5008 #define size_t unsigned int
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
5015 $as_echo_n "checking for stdint.h... " >&6; }
5016 if ${gl_cv_header_stdint_h+:} false; then :
5017 $as_echo_n "(cached) " >&6
5019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5020 /* end confdefs.h. */
5021 #include <sys/types.h>
5026 uintmax_t i = (uintmax_t) -1; return !i;
5031 if ac_fn_c_try_compile "$LINENO"; then :
5032 gl_cv_header_stdint_h=yes
5034 gl_cv_header_stdint_h=no
5036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
5039 $as_echo "$gl_cv_header_stdint_h" >&6; }
5040 if test $gl_cv_header_stdint_h = yes; then
5042 cat >>confdefs.h <<_ACEOF
5043 #define HAVE_STDINT_H_WITH_UINTMAX 1
5048 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5049 # for constant arguments. Useless!
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5051 $as_echo_n "checking for working alloca.h... " >&6; }
5052 if ${ac_cv_working_alloca_h+:} false; then :
5053 $as_echo_n "(cached) " >&6
5055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5056 /* end confdefs.h. */
5061 char *p = (char *) alloca (2 * sizeof (int));
5067 if ac_fn_c_try_link "$LINENO"; then :
5068 ac_cv_working_alloca_h=yes
5070 ac_cv_working_alloca_h=no
5072 rm -f core conftest.err conftest.$ac_objext \
5073 conftest$ac_exeext conftest.$ac_ext
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5076 $as_echo "$ac_cv_working_alloca_h" >&6; }
5077 if test $ac_cv_working_alloca_h = yes; then
5079 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5084 $as_echo_n "checking for alloca... " >&6; }
5085 if ${ac_cv_func_alloca_works+:} false; then :
5086 $as_echo_n "(cached) " >&6
5088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5089 /* end confdefs.h. */
5091 # define alloca __builtin_alloca
5094 # include <malloc.h>
5095 # define alloca _alloca
5097 # ifdef HAVE_ALLOCA_H
5098 # include <alloca.h>
5103 # ifndef alloca /* predefined by HP cc +Olibcalls */
5104 void *alloca (size_t);
5114 char *p = (char *) alloca (1);
5120 if ac_fn_c_try_link "$LINENO"; then :
5121 ac_cv_func_alloca_works=yes
5123 ac_cv_func_alloca_works=no
5125 rm -f core conftest.err conftest.$ac_objext \
5126 conftest$ac_exeext conftest.$ac_ext
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5129 $as_echo "$ac_cv_func_alloca_works" >&6; }
5131 if test $ac_cv_func_alloca_works = yes; then
5133 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
5136 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5137 # that cause trouble. Some versions do not even contain alloca or
5138 # contain a buggy version. If you still want to use their alloca,
5139 # use ar to extract alloca.o from them instead of compiling alloca.c.
5141 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5143 $as_echo "#define C_ALLOCA 1" >>confdefs.h
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
5147 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
5148 if ${ac_cv_os_cray+:} false; then :
5149 $as_echo_n "(cached) " >&6
5151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5152 /* end confdefs.h. */
5153 #if defined CRAY && ! defined CRAY2
5160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5161 $EGREP "webecray" >/dev/null 2>&1; then :
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5170 $as_echo "$ac_cv_os_cray" >&6; }
5171 if test $ac_cv_os_cray = yes; then
5172 for ac_func in _getb67 GETB67 getb67; do
5173 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5174 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5175 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5177 cat >>confdefs.h <<_ACEOF
5178 #define CRAY_STACKSEG_END $ac_func
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5188 $as_echo_n "checking stack direction for C alloca... " >&6; }
5189 if ${ac_cv_c_stack_direction+:} false; then :
5190 $as_echo_n "(cached) " >&6
5192 if test "$cross_compiling" = yes; then :
5193 ac_cv_c_stack_direction=0
5195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5196 /* end confdefs.h. */
5197 $ac_includes_default
5199 find_stack_direction ()
5201 static char *addr = 0;
5206 return find_stack_direction ();
5209 return (&dummy > addr) ? 1 : -1;
5215 return find_stack_direction () < 0;
5218 if ac_fn_c_try_run "$LINENO"; then :
5219 ac_cv_c_stack_direction=1
5221 ac_cv_c_stack_direction=-1
5223 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5224 conftest.$ac_objext conftest.beam conftest.$ac_ext
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5229 $as_echo "$ac_cv_c_stack_direction" >&6; }
5230 cat >>confdefs.h <<_ACEOF
5231 #define STACK_DIRECTION $ac_cv_c_stack_direction
5240 for ac_header in $ac_header_list
5242 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5243 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5245 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5246 cat >>confdefs.h <<_ACEOF
5247 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5261 for ac_func in getpagesize
5263 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
5264 if test "x$ac_cv_func_getpagesize" = xyes; then :
5265 cat >>confdefs.h <<_ACEOF
5266 #define HAVE_GETPAGESIZE 1
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
5273 $as_echo_n "checking for working mmap... " >&6; }
5274 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
5275 $as_echo_n "(cached) " >&6
5277 if test "$cross_compiling" = yes; then :
5278 ac_cv_func_mmap_fixed_mapped=no
5280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5281 /* end confdefs.h. */
5282 $ac_includes_default
5283 /* malloc might have been renamed as rpl_malloc. */
5286 /* Thanks to Mike Haertel and Jim Avera for this test.
5287 Here is a matrix of mmap possibilities:
5288 mmap private not fixed
5289 mmap private fixed at somewhere currently unmapped
5290 mmap private fixed at somewhere already mapped
5291 mmap shared not fixed
5292 mmap shared fixed at somewhere currently unmapped
5293 mmap shared fixed at somewhere already mapped
5294 For private mappings, we should verify that changes cannot be read()
5295 back from the file, nor mmap's back from the file at a different
5296 address. (There have been systems where private was not correctly
5297 implemented like the infamous i386 svr4.0, and systems where the
5298 VM page cache was not coherent with the file system buffer cache
5299 like early versions of FreeBSD and possibly contemporary NetBSD.)
5300 For shared mappings, we should conversely verify that changes get
5301 propagated back to all the places they're supposed to be.
5303 Grep wants private fixed already mapped.
5304 The main things grep needs to know about mmap are:
5305 * does it exist and is it safe to write into the mmap'd area
5306 * how to use it (BSD variants) */
5309 #include <sys/mman.h>
5311 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
5315 /* This mess was copied from the GNU getpagesize.h. */
5316 #ifndef HAVE_GETPAGESIZE
5317 # ifdef _SC_PAGESIZE
5318 # define getpagesize() sysconf(_SC_PAGESIZE)
5319 # else /* no _SC_PAGESIZE */
5320 # ifdef HAVE_SYS_PARAM_H
5321 # include <sys/param.h>
5322 # ifdef EXEC_PAGESIZE
5323 # define getpagesize() EXEC_PAGESIZE
5324 # else /* no EXEC_PAGESIZE */
5326 # define getpagesize() NBPG * CLSIZE
5329 # endif /* no CLSIZE */
5330 # else /* no NBPG */
5332 # define getpagesize() NBPC
5333 # else /* no NBPC */
5335 # define getpagesize() PAGESIZE
5336 # endif /* PAGESIZE */
5337 # endif /* no NBPC */
5338 # endif /* no NBPG */
5339 # endif /* no EXEC_PAGESIZE */
5340 # else /* no HAVE_SYS_PARAM_H */
5341 # define getpagesize() 8192 /* punt totally */
5342 # endif /* no HAVE_SYS_PARAM_H */
5343 # endif /* no _SC_PAGESIZE */
5345 #endif /* no HAVE_GETPAGESIZE */
5350 char *data, *data2, *data3;
5355 pagesize = getpagesize ();
5357 /* First, make a file with some known garbage in it. */
5358 data = (char *) malloc (pagesize);
5361 for (i = 0; i < pagesize; ++i)
5362 *(data + i) = rand ();
5364 fd = creat ("conftest.mmap", 0600);
5367 if (write (fd, data, pagesize) != pagesize)
5371 /* Next, check that the tail of a page is zero-filled. File must have
5372 non-zero length, otherwise we risk SIGBUS for entire page. */
5373 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
5377 if (write (fd2, cdata2, 1) != 1)
5379 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
5380 if (data2 == MAP_FAILED)
5382 for (i = 0; i < pagesize; ++i)
5386 if (munmap (data2, pagesize))
5389 /* Next, try to mmap the file at a fixed address which already has
5390 something else allocated at it. If we can, also make sure that
5391 we see the same garbage. */
5392 fd = open ("conftest.mmap", O_RDWR);
5395 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
5396 MAP_PRIVATE | MAP_FIXED, fd, 0L))
5398 for (i = 0; i < pagesize; ++i)
5399 if (*(data + i) != *(data2 + i))
5402 /* Finally, make sure that changes to the mapped area do not
5403 percolate back to the file as seen by read(). (This is a bug on
5404 some variants of i386 svr4.0.) */
5405 for (i = 0; i < pagesize; ++i)
5406 *(data2 + i) = *(data2 + i) + 1;
5407 data3 = (char *) malloc (pagesize);
5410 if (read (fd, data3, pagesize) != pagesize)
5412 for (i = 0; i < pagesize; ++i)
5413 if (*(data + i) != *(data3 + i))
5419 if ac_fn_c_try_run "$LINENO"; then :
5420 ac_cv_func_mmap_fixed_mapped=yes
5422 ac_cv_func_mmap_fixed_mapped=no
5424 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5425 conftest.$ac_objext conftest.beam conftest.$ac_ext
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
5430 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
5431 if test $ac_cv_func_mmap_fixed_mapped = yes; then
5433 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
5436 rm -f conftest.mmap conftest.txt
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
5441 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
5442 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
5443 $as_echo_n "(cached) " >&6
5446 gt_cv_int_divbyzero_sigfpe=
5448 macos* | darwin[6-9]* | darwin[1-9][0-9]*)
5449 # On MacOS X 10.2 or newer, just assume the same as when cross-
5450 # compiling. If we were to perform the real test, 1 Crash Report
5451 # dialog window would pop up.
5453 i[34567]86 | x86_64)
5454 gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
5458 if test -z "$gt_cv_int_divbyzero_sigfpe"; then
5459 if test "$cross_compiling" = yes; then :
5461 # Guess based on the CPU.
5463 alpha* | i[34567]86 | x86_64 | m68k | s390*)
5464 gt_cv_int_divbyzero_sigfpe="guessing yes";;
5466 gt_cv_int_divbyzero_sigfpe="guessing no";;
5470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5471 /* end confdefs.h. */
5477 sigfpe_handler (int sig)
5479 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
5480 exit (sig != SIGFPE);
5490 signal (SIGFPE, sigfpe_handler);
5491 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
5492 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
5493 signal (SIGTRAP, sigfpe_handler);
5495 /* Linux/SPARC yields signal SIGILL. */
5496 #if defined (__sparc__) && defined (__linux__)
5497 signal (SIGILL, sigfpe_handler);
5506 if ac_fn_c_try_run "$LINENO"; then :
5507 gt_cv_int_divbyzero_sigfpe=yes
5509 gt_cv_int_divbyzero_sigfpe=no
5511 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5512 conftest.$ac_objext conftest.beam conftest.$ac_ext
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
5519 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
5520 case "$gt_cv_int_divbyzero_sigfpe" in
5525 cat >>confdefs.h <<_ACEOF
5526 #define INTDIV0_RAISES_SIGFPE $value
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
5532 $as_echo_n "checking for inttypes.h... " >&6; }
5533 if ${gl_cv_header_inttypes_h+:} false; then :
5534 $as_echo_n "(cached) " >&6
5536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5537 /* end confdefs.h. */
5538 #include <sys/types.h>
5539 #include <inttypes.h>
5543 uintmax_t i = (uintmax_t) -1; return !i;
5548 if ac_fn_c_try_compile "$LINENO"; then :
5549 gl_cv_header_inttypes_h=yes
5551 gl_cv_header_inttypes_h=no
5553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
5556 $as_echo "$gl_cv_header_inttypes_h" >&6; }
5557 if test $gl_cv_header_inttypes_h = yes; then
5559 cat >>confdefs.h <<_ACEOF
5560 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
5567 $as_echo_n "checking for unsigned long long int... " >&6; }
5568 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
5569 $as_echo_n "(cached) " >&6
5571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5572 /* end confdefs.h. */
5574 /* For now, do not test the preprocessor; as of 2007 there are too many
5575 implementations with broken preprocessors. Perhaps this can
5576 be revisited in 2012. In the meantime, code should not expect
5577 #if to work with literals wider than 32 bits. */
5578 /* Test literals. */
5579 long long int ll = 9223372036854775807ll;
5580 long long int nll = -9223372036854775807LL;
5581 unsigned long long int ull = 18446744073709551615ULL;
5582 /* Test constant expressions. */
5583 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5585 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5591 /* Test availability of runtime routines for shift and division. */
5592 long long int llmax = 9223372036854775807ll;
5593 unsigned long long int ullmax = 18446744073709551615ull;
5594 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5595 | (llmax / ll) | (llmax % ll)
5596 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5597 | (ullmax / ull) | (ullmax % ull));
5603 if ac_fn_c_try_link "$LINENO"; then :
5604 ac_cv_type_unsigned_long_long_int=yes
5606 ac_cv_type_unsigned_long_long_int=no
5608 rm -f core conftest.err conftest.$ac_objext \
5609 conftest$ac_exeext conftest.$ac_ext
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
5612 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
5613 if test $ac_cv_type_unsigned_long_long_int = yes; then
5615 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
5622 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
5624 test $ac_cv_type_unsigned_long_long_int = yes \
5625 && ac_type='unsigned long long' \
5626 || ac_type='unsigned long'
5628 cat >>confdefs.h <<_ACEOF
5629 #define uintmax_t $ac_type
5634 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
5639 for ac_header in inttypes.h
5641 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
5642 if test "x$ac_cv_header_inttypes_h" = xyes; then :
5643 cat >>confdefs.h <<_ACEOF
5644 #define HAVE_INTTYPES_H 1
5651 if test $ac_cv_header_inttypes_h = yes; then
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
5653 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
5654 if ${gt_cv_inttypes_pri_broken+:} false; then :
5655 $as_echo_n "(cached) " >&6
5658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5659 /* end confdefs.h. */
5660 #include <inttypes.h>
5673 if ac_fn_c_try_compile "$LINENO"; then :
5674 gt_cv_inttypes_pri_broken=no
5676 gt_cv_inttypes_pri_broken=yes
5678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
5682 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
5684 if test "$gt_cv_inttypes_pri_broken" = yes; then
5686 cat >>confdefs.h <<_ACEOF
5687 #define PRI_MACROS_BROKEN 1
5697 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5698 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5705 if test "$MINIX" = yes; then
5707 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5710 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5713 $as_echo "#define _MINIX 1" >>confdefs.h
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5719 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5720 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5721 $as_echo_n "(cached) " >&6
5723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5724 /* end confdefs.h. */
5726 # define __EXTENSIONS__ 1
5727 $ac_includes_default
5736 if ac_fn_c_try_compile "$LINENO"; then :
5737 ac_cv_safe_to_define___extensions__=yes
5739 ac_cv_safe_to_define___extensions__=no
5741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5744 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5745 test $ac_cv_safe_to_define___extensions__ = yes &&
5746 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5748 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5750 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5752 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5754 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5762 # Check whether --enable-threads was given.
5763 if test "${enable_threads+set}" = set; then :
5764 enableval=$enable_threads; gl_use_threads=$enableval
5766 if test -n "$gl_use_threads_default"; then
5767 gl_use_threads="$gl_use_threads_default"
5770 osf*) gl_use_threads=no ;;
5773 1.[0-5].*) gl_use_threads=no ;;
5774 *) gl_use_threads=yes ;;
5777 *) gl_use_threads=yes ;;
5783 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
5784 # For using <pthread.h>:
5787 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
5788 # groks <pthread.h>. cc also understands the flag -pthread, but
5789 # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
5790 # 2. putting a flag into CPPFLAGS that has an effect on the linker
5791 # causes the AC_TRY_LINK test below to succeed unexpectedly,
5792 # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
5793 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
5796 # Some systems optimize for single-threaded programs by default, and
5797 # need special flags to disable these optimizations. For example, the
5798 # definition of 'errno' in <errno.h>.
5800 aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
5801 solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
5809 if test "X$prefix" = "XNONE"; then
5810 acl_final_prefix="$ac_default_prefix"
5812 acl_final_prefix="$prefix"
5814 if test "X$exec_prefix" = "XNONE"; then
5815 acl_final_exec_prefix='${prefix}'
5817 acl_final_exec_prefix="$exec_prefix"
5819 acl_save_prefix="$prefix"
5820 prefix="$acl_final_prefix"
5821 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5822 prefix="$acl_save_prefix"
5825 # Check whether --with-gnu-ld was given.
5826 if test "${with_gnu_ld+set}" = set; then :
5827 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5832 # Prepare PATH_SEPARATOR.
5833 # The user is always right.
5834 if test "${PATH_SEPARATOR+set}" != set; then
5835 echo "#! /bin/sh" >conf$$.sh
5836 echo "exit 0" >>conf$$.sh
5838 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5846 if test "$GCC" = yes; then
5847 # Check if gcc -print-prog-name=ld gives a path.
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
5849 $as_echo_n "checking for ld used by GCC... " >&6; }
5852 # gcc leaves a trailing carriage return which upsets mingw
5853 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5855 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5858 # Accept absolute paths.
5859 [\\/]* | [A-Za-z]:[\\/]*)
5860 re_direlt='/[^/][^/]*/\.\./'
5861 # Canonicalize the path of ld
5862 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5863 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5864 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5866 test -z "$LD" && LD="$ac_prog"
5869 # If it fails, then pretend we aren't using GCC.
5873 # If it is relative, then search for the first ld in PATH.
5877 elif test "$with_gnu_ld" = yes; then
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5879 $as_echo_n "checking for GNU ld... " >&6; }
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5882 $as_echo_n "checking for non-GNU ld... " >&6; }
5884 if ${acl_cv_path_LD+:} false; then :
5885 $as_echo_n "(cached) " >&6
5887 if test -z "$LD"; then
5888 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5889 for ac_dir in $PATH; do
5890 test -z "$ac_dir" && ac_dir=.
5891 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5892 acl_cv_path_LD="$ac_dir/$ac_prog"
5893 # Check to see if the program is GNU ld. I'd rather use --version,
5894 # but apparently some GNU ld's only accept -v.
5895 # Break only if it was the GNU/non-GNU ld that we prefer.
5896 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
5897 *GNU* | *'with BFD'*)
5898 test "$with_gnu_ld" != no && break ;;
5900 test "$with_gnu_ld" != yes && break ;;
5906 acl_cv_path_LD="$LD" # Let the user override the test with a path.
5910 LD="$acl_cv_path_LD"
5911 if test -n "$LD"; then
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5913 $as_echo "$LD" >&6; }
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5916 $as_echo "no" >&6; }
5918 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5920 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5921 if ${acl_cv_prog_gnu_ld+:} false; then :
5922 $as_echo_n "(cached) " >&6
5924 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5925 case `$LD -v 2>&1 </dev/null` in
5926 *GNU* | *'with BFD'*)
5927 acl_cv_prog_gnu_ld=yes ;;
5929 acl_cv_prog_gnu_ld=no ;;
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
5933 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
5934 with_gnu_ld=$acl_cv_prog_gnu_ld
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
5940 $as_echo_n "checking for shared library run path origin... " >&6; }
5941 if ${acl_cv_rpath+:} false; then :
5942 $as_echo_n "(cached) " >&6
5945 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5946 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
5953 $as_echo "$acl_cv_rpath" >&6; }
5955 acl_libext="$acl_cv_libext"
5956 acl_shlibext="$acl_cv_shlibext"
5957 acl_libname_spec="$acl_cv_libname_spec"
5958 acl_library_names_spec="$acl_cv_library_names_spec"
5959 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5960 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5961 acl_hardcode_direct="$acl_cv_hardcode_direct"
5962 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
5963 # Check whether --enable-rpath was given.
5964 if test "${enable_rpath+set}" = set; then :
5965 enableval=$enable_rpath; :
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
5978 $as_echo_n "checking for 64-bit host... " >&6; }
5979 if ${gl_cv_solaris_64bit+:} false; then :
5980 $as_echo_n "(cached) " >&6
5982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5983 /* end confdefs.h. */
5990 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5991 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
5992 gl_cv_solaris_64bit=yes
5994 gl_cv_solaris_64bit=no
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
6001 $as_echo "$gl_cv_solaris_64bit" >&6; }
6002 if test $gl_cv_solaris_64bit = yes; then
6003 acl_libdirstem=lib/64
6005 sparc*) acl_libdirstem2=lib/sparcv9 ;;
6006 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
6011 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
6012 if test -n "$searchpath"; then
6013 acl_save_IFS="${IFS= }"; IFS=":"
6014 for searchdir in $searchpath; do
6015 if test -d "$searchdir"; then
6016 case "$searchdir" in
6017 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
6019 # Better ignore directories of this form. They are misleading.
6021 *) searchdir=`cd "$searchdir" && pwd`
6022 case "$searchdir" in
6023 */lib64 ) acl_libdirstem=lib64 ;;
6032 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
6041 if test "$gl_use_threads" != no; then
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
6043 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
6044 if ${gl_cv_have_weak+:} false; then :
6045 $as_echo_n "(cached) " >&6
6048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6049 /* end confdefs.h. */
6050 extern void xyzzy ();
6060 if ac_fn_c_try_link "$LINENO"; then :
6061 gl_cv_have_weak=maybe
6063 rm -f core conftest.err conftest.$ac_objext \
6064 conftest$ac_exeext conftest.$ac_ext
6065 if test $gl_cv_have_weak = maybe; then
6066 if test "$cross_compiling" = yes; then :
6067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6068 /* end confdefs.h. */
6070 Extensible Linking Format
6074 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6075 $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
6076 gl_cv_have_weak="guessing yes"
6078 gl_cv_have_weak="guessing no"
6084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6085 /* end confdefs.h. */
6091 return (fputs == NULL);
6094 if ac_fn_c_try_run "$LINENO"; then :
6099 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6100 conftest.$ac_objext conftest.beam conftest.$ac_ext
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
6107 $as_echo "$gl_cv_have_weak" >&6; }
6108 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
6109 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
6110 # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
6111 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
6112 if test "x$ac_cv_header_pthread_h" = xyes; then :
6113 gl_have_pthread_h=yes
6115 gl_have_pthread_h=no
6119 if test "$gl_have_pthread_h" = yes; then
6120 # Other possible tests:
6121 # -lpthreads (FSU threads, PCthreads)
6124 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
6125 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
6126 # the second one only in libpthread, and lock.c needs it.
6127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6128 /* end confdefs.h. */
6129 #include <pthread.h>
6133 pthread_mutex_lock((pthread_mutex_t*)0);
6134 pthread_mutexattr_init((pthread_mutexattr_t*)0);
6139 if ac_fn_c_try_link "$LINENO"; then :
6142 rm -f core conftest.err conftest.$ac_objext \
6143 conftest$ac_exeext conftest.$ac_ext
6144 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
6145 # since it is defined as a macro on OSF/1.)
6146 if test -n "$gl_have_pthread"; then
6147 # The program links fine without libpthread. But it may actually
6148 # need to link with libpthread in order to create multiple threads.
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
6150 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
6151 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
6152 $as_echo_n "(cached) " >&6
6154 ac_check_lib_save_LIBS=$LIBS
6155 LIBS="-lpthread $LIBS"
6156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6157 /* end confdefs.h. */
6159 /* Override any GCC internal prototype to avoid an error.
6160 Use char because int might match the return type of a GCC
6161 builtin and then its argument prototype would still apply. */
6165 char pthread_kill ();
6169 return pthread_kill ();
6174 if ac_fn_c_try_link "$LINENO"; then :
6175 ac_cv_lib_pthread_pthread_kill=yes
6177 ac_cv_lib_pthread_pthread_kill=no
6179 rm -f core conftest.err conftest.$ac_objext \
6180 conftest$ac_exeext conftest.$ac_ext
6181 LIBS=$ac_check_lib_save_LIBS
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
6184 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
6185 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
6186 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
6187 # On Solaris and HP-UX, most pthread functions exist also in libc.
6188 # Therefore pthread_in_use() needs to actually try to create a
6189 # thread: pthread_create from libc will fail, whereas
6190 # pthread_create will actually create a thread.
6194 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
6201 # Some library is needed. Try libpthread and libc_r.
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
6203 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
6204 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
6205 $as_echo_n "(cached) " >&6
6207 ac_check_lib_save_LIBS=$LIBS
6208 LIBS="-lpthread $LIBS"
6209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6210 /* end confdefs.h. */
6212 /* Override any GCC internal prototype to avoid an error.
6213 Use char because int might match the return type of a GCC
6214 builtin and then its argument prototype would still apply. */
6218 char pthread_kill ();
6222 return pthread_kill ();
6227 if ac_fn_c_try_link "$LINENO"; then :
6228 ac_cv_lib_pthread_pthread_kill=yes
6230 ac_cv_lib_pthread_pthread_kill=no
6232 rm -f core conftest.err conftest.$ac_objext \
6233 conftest$ac_exeext conftest.$ac_ext
6234 LIBS=$ac_check_lib_save_LIBS
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
6237 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
6238 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
6240 LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
6241 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
6244 if test -z "$gl_have_pthread"; then
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
6247 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
6248 if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
6249 $as_echo_n "(cached) " >&6
6251 ac_check_lib_save_LIBS=$LIBS
6253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6254 /* end confdefs.h. */
6256 /* Override any GCC internal prototype to avoid an error.
6257 Use char because int might match the return type of a GCC
6258 builtin and then its argument prototype would still apply. */
6262 char pthread_kill ();
6266 return pthread_kill ();
6271 if ac_fn_c_try_link "$LINENO"; then :
6272 ac_cv_lib_c_r_pthread_kill=yes
6274 ac_cv_lib_c_r_pthread_kill=no
6276 rm -f core conftest.err conftest.$ac_objext \
6277 conftest$ac_exeext conftest.$ac_ext
6278 LIBS=$ac_check_lib_save_LIBS
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
6281 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
6282 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
6284 LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
6285 LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
6290 if test -n "$gl_have_pthread"; then
6291 gl_threads_api=posix
6293 $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
6295 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
6296 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
6298 $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
6307 if test -z "$gl_have_pthread"; then
6308 if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
6309 gl_have_solaristhread=
6310 gl_save_LIBS="$LIBS"
6311 LIBS="$LIBS -lthread"
6312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6313 /* end confdefs.h. */
6324 if ac_fn_c_try_link "$LINENO"; then :
6325 gl_have_solaristhread=yes
6327 rm -f core conftest.err conftest.$ac_objext \
6328 conftest$ac_exeext conftest.$ac_ext
6329 LIBS="$gl_save_LIBS"
6330 if test -n "$gl_have_solaristhread"; then
6331 gl_threads_api=solaris
6333 LTLIBTHREAD=-lthread
6334 LIBMULTITHREAD="$LIBTHREAD"
6335 LTLIBMULTITHREAD="$LTLIBTHREAD"
6337 $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
6339 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
6341 $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
6349 if test "$gl_use_threads" = pth; then
6350 gl_save_CPPFLAGS="$CPPFLAGS"
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
6357 $as_echo_n "checking how to link with libpth... " >&6; }
6358 if ${ac_cv_libpth_libs+:} false; then :
6359 $as_echo_n "(cached) " >&6
6371 acl_save_prefix="$prefix"
6372 prefix="$acl_final_prefix"
6373 acl_save_exec_prefix="$exec_prefix"
6374 exec_prefix="$acl_final_exec_prefix"
6376 eval additional_includedir=\"$includedir\"
6377 eval additional_libdir=\"$libdir\"
6379 exec_prefix="$acl_save_exec_prefix"
6380 prefix="$acl_save_prefix"
6383 # Check whether --with-libpth-prefix was given.
6384 if test "${with_libpth_prefix+set}" = set; then :
6385 withval=$with_libpth_prefix;
6386 if test "X$withval" = "Xno"; then
6389 if test "X$withval" = "X"; then
6391 acl_save_prefix="$prefix"
6392 prefix="$acl_final_prefix"
6393 acl_save_exec_prefix="$exec_prefix"
6394 exec_prefix="$acl_final_exec_prefix"
6396 eval additional_includedir=\"$includedir\"
6397 eval additional_libdir=\"$libdir\"
6399 exec_prefix="$acl_save_exec_prefix"
6400 prefix="$acl_save_prefix"
6403 additional_includedir="$withval/include"
6404 additional_libdir="$withval/$acl_libdirstem"
6405 if test "$acl_libdirstem2" != "$acl_libdirstem" \
6406 && ! test -d "$withval/$acl_libdirstem"; then
6407 additional_libdir="$withval/$acl_libdirstem2"
6421 names_already_handled=
6422 names_next_round='pth '
6423 while test -n "$names_next_round"; do
6424 names_this_round="$names_next_round"
6426 for name in $names_this_round; do
6428 for n in $names_already_handled; do
6429 if test "$n" = "$name"; then
6434 if test -z "$already_handled"; then
6435 names_already_handled="$names_already_handled $name"
6436 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6437 eval value=\"\$HAVE_LIB$uppername\"
6438 if test -n "$value"; then
6439 if test "$value" = yes; then
6440 eval value=\"\$LIB$uppername\"
6441 test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
6442 eval value=\"\$LTLIB$uppername\"
6443 test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
6452 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
6453 if test -n "$acl_shlibext"; then
6454 shrext=".$acl_shlibext" # typically: shrext=.so
6458 if test $use_additional = yes; then
6459 dir="$additional_libdir"
6460 if test -n "$acl_shlibext"; then
6461 if test -f "$dir/$libname$shrext"; then
6463 found_so="$dir/$libname$shrext"
6465 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6466 ver=`(cd "$dir" && \
6467 for f in "$libname$shrext".*; do echo "$f"; done \
6468 | sed -e "s,^$libname$shrext\\\\.,," \
6469 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6470 | sed 1q ) 2>/dev/null`
6471 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6473 found_so="$dir/$libname$shrext.$ver"
6476 eval library_names=\"$acl_library_names_spec\"
6477 for f in $library_names; do
6478 if test -f "$dir/$f"; then
6487 if test "X$found_dir" = "X"; then
6488 if test -f "$dir/$libname.$acl_libext"; then
6490 found_a="$dir/$libname.$acl_libext"
6493 if test "X$found_dir" != "X"; then
6494 if test -f "$dir/$libname.la"; then
6495 found_la="$dir/$libname.la"
6499 if test "X$found_dir" = "X"; then
6500 for x in $LDFLAGS $LTLIBPTH; do
6502 acl_save_prefix="$prefix"
6503 prefix="$acl_final_prefix"
6504 acl_save_exec_prefix="$exec_prefix"
6505 exec_prefix="$acl_final_exec_prefix"
6507 exec_prefix="$acl_save_exec_prefix"
6508 prefix="$acl_save_prefix"
6512 dir=`echo "X$x" | sed -e 's/^X-L//'`
6513 if test -n "$acl_shlibext"; then
6514 if test -f "$dir/$libname$shrext"; then
6516 found_so="$dir/$libname$shrext"
6518 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6519 ver=`(cd "$dir" && \
6520 for f in "$libname$shrext".*; do echo "$f"; done \
6521 | sed -e "s,^$libname$shrext\\\\.,," \
6522 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6523 | sed 1q ) 2>/dev/null`
6524 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6526 found_so="$dir/$libname$shrext.$ver"
6529 eval library_names=\"$acl_library_names_spec\"
6530 for f in $library_names; do
6531 if test -f "$dir/$f"; then
6540 if test "X$found_dir" = "X"; then
6541 if test -f "$dir/$libname.$acl_libext"; then
6543 found_a="$dir/$libname.$acl_libext"
6546 if test "X$found_dir" != "X"; then
6547 if test -f "$dir/$libname.la"; then
6548 found_la="$dir/$libname.la"
6553 if test "X$found_dir" != "X"; then
6558 if test "X$found_dir" != "X"; then
6559 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
6560 if test "X$found_so" != "X"; then
6561 if test "$enable_rpath" = no \
6562 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
6563 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
6564 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
6567 for x in $ltrpathdirs; do
6568 if test "X$x" = "X$found_dir"; then
6573 if test -z "$haveit"; then
6574 ltrpathdirs="$ltrpathdirs $found_dir"
6576 if test "$acl_hardcode_direct" = yes; then
6577 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
6579 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
6580 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
6582 for x in $rpathdirs; do
6583 if test "X$x" = "X$found_dir"; then
6588 if test -z "$haveit"; then
6589 rpathdirs="$rpathdirs $found_dir"
6593 for x in $LDFLAGS $LIBPTH; do
6595 acl_save_prefix="$prefix"
6596 prefix="$acl_final_prefix"
6597 acl_save_exec_prefix="$exec_prefix"
6598 exec_prefix="$acl_final_exec_prefix"
6600 exec_prefix="$acl_save_exec_prefix"
6601 prefix="$acl_save_prefix"
6603 if test "X$x" = "X-L$found_dir"; then
6608 if test -z "$haveit"; then
6609 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
6611 if test "$acl_hardcode_minus_L" != no; then
6612 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
6614 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
6620 if test "X$found_a" != "X"; then
6621 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
6623 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
6626 additional_includedir=
6627 case "$found_dir" in
6628 */$acl_libdirstem | */$acl_libdirstem/)
6629 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
6630 if test "$name" = 'pth'; then
6631 LIBPTH_PREFIX="$basedir"
6633 additional_includedir="$basedir/include"
6635 */$acl_libdirstem2 | */$acl_libdirstem2/)
6636 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
6637 if test "$name" = 'pth'; then
6638 LIBPTH_PREFIX="$basedir"
6640 additional_includedir="$basedir/include"
6643 if test "X$additional_includedir" != "X"; then
6644 if test "X$additional_includedir" != "X/usr/include"; then
6646 if test "X$additional_includedir" = "X/usr/local/include"; then
6647 if test -n "$GCC"; then
6649 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6653 if test -z "$haveit"; then
6654 for x in $CPPFLAGS $INCPTH; do
6656 acl_save_prefix="$prefix"
6657 prefix="$acl_final_prefix"
6658 acl_save_exec_prefix="$exec_prefix"
6659 exec_prefix="$acl_final_exec_prefix"
6661 exec_prefix="$acl_save_exec_prefix"
6662 prefix="$acl_save_prefix"
6664 if test "X$x" = "X-I$additional_includedir"; then
6669 if test -z "$haveit"; then
6670 if test -d "$additional_includedir"; then
6671 INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
6677 if test -n "$found_la"; then
6678 save_libdir="$libdir"
6680 */* | *\\*) . "$found_la" ;;
6681 *) . "./$found_la" ;;
6683 libdir="$save_libdir"
6684 for dep in $dependency_libs; do
6687 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6688 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
6689 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
6691 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
6692 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
6693 if test -n "$GCC"; then
6695 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6699 if test -z "$haveit"; then
6701 for x in $LDFLAGS $LIBPTH; do
6703 acl_save_prefix="$prefix"
6704 prefix="$acl_final_prefix"
6705 acl_save_exec_prefix="$exec_prefix"
6706 exec_prefix="$acl_final_exec_prefix"
6708 exec_prefix="$acl_save_exec_prefix"
6709 prefix="$acl_save_prefix"
6711 if test "X$x" = "X-L$additional_libdir"; then
6716 if test -z "$haveit"; then
6717 if test -d "$additional_libdir"; then
6718 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
6722 for x in $LDFLAGS $LTLIBPTH; do
6724 acl_save_prefix="$prefix"
6725 prefix="$acl_final_prefix"
6726 acl_save_exec_prefix="$exec_prefix"
6727 exec_prefix="$acl_final_exec_prefix"
6729 exec_prefix="$acl_save_exec_prefix"
6730 prefix="$acl_save_prefix"
6732 if test "X$x" = "X-L$additional_libdir"; then
6737 if test -z "$haveit"; then
6738 if test -d "$additional_libdir"; then
6739 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
6746 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6747 if test "$enable_rpath" != no; then
6749 for x in $rpathdirs; do
6750 if test "X$x" = "X$dir"; then
6755 if test -z "$haveit"; then
6756 rpathdirs="$rpathdirs $dir"
6759 for x in $ltrpathdirs; do
6760 if test "X$x" = "X$dir"; then
6765 if test -z "$haveit"; then
6766 ltrpathdirs="$ltrpathdirs $dir"
6771 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6774 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6777 LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
6778 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
6784 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
6785 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
6791 if test "X$rpathdirs" != "X"; then
6792 if test -n "$acl_hardcode_libdir_separator"; then
6794 for found_dir in $rpathdirs; do
6795 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
6797 acl_save_libdir="$libdir"
6799 eval flag=\"$acl_hardcode_libdir_flag_spec\"
6800 libdir="$acl_save_libdir"
6801 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
6803 for found_dir in $rpathdirs; do
6804 acl_save_libdir="$libdir"
6806 eval flag=\"$acl_hardcode_libdir_flag_spec\"
6807 libdir="$acl_save_libdir"
6808 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
6812 if test "X$ltrpathdirs" != "X"; then
6813 for found_dir in $ltrpathdirs; do
6814 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
6823 ac_cv_libpth_libs="$LIBPTH"
6824 ac_cv_libpth_ltlibs="$LTLIBPTH"
6825 ac_cv_libpth_cppflags="$INCPTH"
6826 ac_cv_libpth_prefix="$LIBPTH_PREFIX"
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
6830 $as_echo "$ac_cv_libpth_libs" >&6; }
6831 LIBPTH="$ac_cv_libpth_libs"
6832 LTLIBPTH="$ac_cv_libpth_ltlibs"
6833 INCPTH="$ac_cv_libpth_cppflags"
6834 LIBPTH_PREFIX="$ac_cv_libpth_prefix"
6836 for element in $INCPTH; do
6838 for x in $CPPFLAGS; do
6840 acl_save_prefix="$prefix"
6841 prefix="$acl_final_prefix"
6842 acl_save_exec_prefix="$exec_prefix"
6843 exec_prefix="$acl_final_exec_prefix"
6845 exec_prefix="$acl_save_exec_prefix"
6846 prefix="$acl_save_prefix"
6848 if test "X$x" = "X$element"; then
6853 if test -z "$haveit"; then
6854 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6866 gl_save_LIBS="$LIBS"
6868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6869 /* end confdefs.h. */
6879 if ac_fn_c_try_link "$LINENO"; then :
6882 rm -f core conftest.err conftest.$ac_objext \
6883 conftest$ac_exeext conftest.$ac_ext
6884 LIBS="$gl_save_LIBS"
6885 if test -n "$gl_have_pth"; then
6888 LTLIBTHREAD="$LTLIBPTH"
6889 LIBMULTITHREAD="$LIBTHREAD"
6890 LTLIBMULTITHREAD="$LTLIBTHREAD"
6892 $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
6894 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
6895 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
6897 $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
6904 CPPFLAGS="$gl_save_CPPFLAGS"
6907 if test -z "$gl_have_pthread"; then
6908 if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then
6909 if { case "$host_os" in
6914 gl_threads_api=win32
6916 $as_echo "#define USE_WIN32_THREADS 1" >>confdefs.h
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
6923 $as_echo_n "checking for multithread API to use... " >&6; }
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
6925 $as_echo "$gl_threads_api" >&6; }
6937 if test "$gl_threads_api" = posix; then
6938 # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
6939 # pthread_rwlock_* functions.
6940 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
6942 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
6944 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
6948 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
6949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6950 /* end confdefs.h. */
6951 #include <pthread.h>
6955 #if __FreeBSD__ == 4
6956 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
6958 int x = (int)PTHREAD_MUTEX_RECURSIVE;
6965 if ac_fn_c_try_compile "$LINENO"; then :
6967 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
6970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6989 acl_save_prefix="$prefix"
6990 prefix="$acl_final_prefix"
6991 acl_save_exec_prefix="$exec_prefix"
6992 exec_prefix="$acl_final_exec_prefix"
6994 eval additional_includedir=\"$includedir\"
6995 eval additional_libdir=\"$libdir\"
6997 exec_prefix="$acl_save_exec_prefix"
6998 prefix="$acl_save_prefix"
7001 # Check whether --with-libiconv-prefix was given.
7002 if test "${with_libiconv_prefix+set}" = set; then :
7003 withval=$with_libiconv_prefix;
7004 if test "X$withval" = "Xno"; then
7007 if test "X$withval" = "X"; then
7009 acl_save_prefix="$prefix"
7010 prefix="$acl_final_prefix"
7011 acl_save_exec_prefix="$exec_prefix"
7012 exec_prefix="$acl_final_exec_prefix"
7014 eval additional_includedir=\"$includedir\"
7015 eval additional_libdir=\"$libdir\"
7017 exec_prefix="$acl_save_exec_prefix"
7018 prefix="$acl_save_prefix"
7021 additional_includedir="$withval/include"
7022 additional_libdir="$withval/$acl_libdirstem"
7023 if test "$acl_libdirstem2" != "$acl_libdirstem" \
7024 && ! test -d "$withval/$acl_libdirstem"; then
7025 additional_libdir="$withval/$acl_libdirstem2"
7039 names_already_handled=
7040 names_next_round='iconv '
7041 while test -n "$names_next_round"; do
7042 names_this_round="$names_next_round"
7044 for name in $names_this_round; do
7046 for n in $names_already_handled; do
7047 if test "$n" = "$name"; then
7052 if test -z "$already_handled"; then
7053 names_already_handled="$names_already_handled $name"
7054 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7055 eval value=\"\$HAVE_LIB$uppername\"
7056 if test -n "$value"; then
7057 if test "$value" = yes; then
7058 eval value=\"\$LIB$uppername\"
7059 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7060 eval value=\"\$LTLIB$uppername\"
7061 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7070 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
7071 if test -n "$acl_shlibext"; then
7072 shrext=".$acl_shlibext" # typically: shrext=.so
7076 if test $use_additional = yes; then
7077 dir="$additional_libdir"
7078 if test -n "$acl_shlibext"; then
7079 if test -f "$dir/$libname$shrext"; then
7081 found_so="$dir/$libname$shrext"
7083 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
7084 ver=`(cd "$dir" && \
7085 for f in "$libname$shrext".*; do echo "$f"; done \
7086 | sed -e "s,^$libname$shrext\\\\.,," \
7087 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7088 | sed 1q ) 2>/dev/null`
7089 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
7091 found_so="$dir/$libname$shrext.$ver"
7094 eval library_names=\"$acl_library_names_spec\"
7095 for f in $library_names; do
7096 if test -f "$dir/$f"; then
7105 if test "X$found_dir" = "X"; then
7106 if test -f "$dir/$libname.$acl_libext"; then
7108 found_a="$dir/$libname.$acl_libext"
7111 if test "X$found_dir" != "X"; then
7112 if test -f "$dir/$libname.la"; then
7113 found_la="$dir/$libname.la"
7117 if test "X$found_dir" = "X"; then
7118 for x in $LDFLAGS $LTLIBICONV; do
7120 acl_save_prefix="$prefix"
7121 prefix="$acl_final_prefix"
7122 acl_save_exec_prefix="$exec_prefix"
7123 exec_prefix="$acl_final_exec_prefix"
7125 exec_prefix="$acl_save_exec_prefix"
7126 prefix="$acl_save_prefix"
7130 dir=`echo "X$x" | sed -e 's/^X-L//'`
7131 if test -n "$acl_shlibext"; then
7132 if test -f "$dir/$libname$shrext"; then
7134 found_so="$dir/$libname$shrext"
7136 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
7137 ver=`(cd "$dir" && \
7138 for f in "$libname$shrext".*; do echo "$f"; done \
7139 | sed -e "s,^$libname$shrext\\\\.,," \
7140 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7141 | sed 1q ) 2>/dev/null`
7142 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
7144 found_so="$dir/$libname$shrext.$ver"
7147 eval library_names=\"$acl_library_names_spec\"
7148 for f in $library_names; do
7149 if test -f "$dir/$f"; then
7158 if test "X$found_dir" = "X"; then
7159 if test -f "$dir/$libname.$acl_libext"; then
7161 found_a="$dir/$libname.$acl_libext"
7164 if test "X$found_dir" != "X"; then
7165 if test -f "$dir/$libname.la"; then
7166 found_la="$dir/$libname.la"
7171 if test "X$found_dir" != "X"; then
7176 if test "X$found_dir" != "X"; then
7177 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7178 if test "X$found_so" != "X"; then
7179 if test "$enable_rpath" = no \
7180 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
7181 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
7182 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7185 for x in $ltrpathdirs; do
7186 if test "X$x" = "X$found_dir"; then
7191 if test -z "$haveit"; then
7192 ltrpathdirs="$ltrpathdirs $found_dir"
7194 if test "$acl_hardcode_direct" = yes; then
7195 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7197 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
7198 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7200 for x in $rpathdirs; do
7201 if test "X$x" = "X$found_dir"; then
7206 if test -z "$haveit"; then
7207 rpathdirs="$rpathdirs $found_dir"
7211 for x in $LDFLAGS $LIBICONV; do
7213 acl_save_prefix="$prefix"
7214 prefix="$acl_final_prefix"
7215 acl_save_exec_prefix="$exec_prefix"
7216 exec_prefix="$acl_final_exec_prefix"
7218 exec_prefix="$acl_save_exec_prefix"
7219 prefix="$acl_save_prefix"
7221 if test "X$x" = "X-L$found_dir"; then
7226 if test -z "$haveit"; then
7227 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7229 if test "$acl_hardcode_minus_L" != no; then
7230 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7232 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7238 if test "X$found_a" != "X"; then
7239 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7241 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7244 additional_includedir=
7245 case "$found_dir" in
7246 */$acl_libdirstem | */$acl_libdirstem/)
7247 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
7248 if test "$name" = 'iconv'; then
7249 LIBICONV_PREFIX="$basedir"
7251 additional_includedir="$basedir/include"
7253 */$acl_libdirstem2 | */$acl_libdirstem2/)
7254 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
7255 if test "$name" = 'iconv'; then
7256 LIBICONV_PREFIX="$basedir"
7258 additional_includedir="$basedir/include"
7261 if test "X$additional_includedir" != "X"; then
7262 if test "X$additional_includedir" != "X/usr/include"; then
7264 if test "X$additional_includedir" = "X/usr/local/include"; then
7265 if test -n "$GCC"; then
7267 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7271 if test -z "$haveit"; then
7272 for x in $CPPFLAGS $INCICONV; do
7274 acl_save_prefix="$prefix"
7275 prefix="$acl_final_prefix"
7276 acl_save_exec_prefix="$exec_prefix"
7277 exec_prefix="$acl_final_exec_prefix"
7279 exec_prefix="$acl_save_exec_prefix"
7280 prefix="$acl_save_prefix"
7282 if test "X$x" = "X-I$additional_includedir"; then
7287 if test -z "$haveit"; then
7288 if test -d "$additional_includedir"; then
7289 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7295 if test -n "$found_la"; then
7296 save_libdir="$libdir"
7298 */* | *\\*) . "$found_la" ;;
7299 *) . "./$found_la" ;;
7301 libdir="$save_libdir"
7302 for dep in $dependency_libs; do
7305 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7306 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
7307 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
7309 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
7310 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
7311 if test -n "$GCC"; then
7313 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7317 if test -z "$haveit"; then
7319 for x in $LDFLAGS $LIBICONV; do
7321 acl_save_prefix="$prefix"
7322 prefix="$acl_final_prefix"
7323 acl_save_exec_prefix="$exec_prefix"
7324 exec_prefix="$acl_final_exec_prefix"
7326 exec_prefix="$acl_save_exec_prefix"
7327 prefix="$acl_save_prefix"
7329 if test "X$x" = "X-L$additional_libdir"; then
7334 if test -z "$haveit"; then
7335 if test -d "$additional_libdir"; then
7336 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7340 for x in $LDFLAGS $LTLIBICONV; do
7342 acl_save_prefix="$prefix"
7343 prefix="$acl_final_prefix"
7344 acl_save_exec_prefix="$exec_prefix"
7345 exec_prefix="$acl_final_exec_prefix"
7347 exec_prefix="$acl_save_exec_prefix"
7348 prefix="$acl_save_prefix"
7350 if test "X$x" = "X-L$additional_libdir"; then
7355 if test -z "$haveit"; then
7356 if test -d "$additional_libdir"; then
7357 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7364 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7365 if test "$enable_rpath" != no; then
7367 for x in $rpathdirs; do
7368 if test "X$x" = "X$dir"; then
7373 if test -z "$haveit"; then
7374 rpathdirs="$rpathdirs $dir"
7377 for x in $ltrpathdirs; do
7378 if test "X$x" = "X$dir"; then
7383 if test -z "$haveit"; then
7384 ltrpathdirs="$ltrpathdirs $dir"
7389 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7392 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7395 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
7396 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
7402 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7403 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
7409 if test "X$rpathdirs" != "X"; then
7410 if test -n "$acl_hardcode_libdir_separator"; then
7412 for found_dir in $rpathdirs; do
7413 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
7415 acl_save_libdir="$libdir"
7417 eval flag=\"$acl_hardcode_libdir_flag_spec\"
7418 libdir="$acl_save_libdir"
7419 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7421 for found_dir in $rpathdirs; do
7422 acl_save_libdir="$libdir"
7424 eval flag=\"$acl_hardcode_libdir_flag_spec\"
7425 libdir="$acl_save_libdir"
7426 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7430 if test "X$ltrpathdirs" != "X"; then
7431 for found_dir in $ltrpathdirs; do
7432 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
7447 am_save_CPPFLAGS="$CPPFLAGS"
7449 for element in $INCICONV; do
7451 for x in $CPPFLAGS; do
7453 acl_save_prefix="$prefix"
7454 prefix="$acl_final_prefix"
7455 acl_save_exec_prefix="$exec_prefix"
7456 exec_prefix="$acl_final_exec_prefix"
7458 exec_prefix="$acl_save_exec_prefix"
7459 prefix="$acl_save_prefix"
7461 if test "X$x" = "X$element"; then
7466 if test -z "$haveit"; then
7467 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
7473 $as_echo_n "checking for iconv... " >&6; }
7474 if ${am_cv_func_iconv+:} false; then :
7475 $as_echo_n "(cached) " >&6
7478 am_cv_func_iconv="no, consider installing GNU libiconv"
7480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7481 /* end confdefs.h. */
7487 iconv_t cd = iconv_open("","");
7488 iconv(cd,NULL,NULL,NULL,NULL);
7494 if ac_fn_c_try_link "$LINENO"; then :
7495 am_cv_func_iconv=yes
7497 rm -f core conftest.err conftest.$ac_objext \
7498 conftest$ac_exeext conftest.$ac_ext
7499 if test "$am_cv_func_iconv" != yes; then
7500 am_save_LIBS="$LIBS"
7501 LIBS="$LIBS $LIBICONV"
7502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7503 /* end confdefs.h. */
7509 iconv_t cd = iconv_open("","");
7510 iconv(cd,NULL,NULL,NULL,NULL);
7516 if ac_fn_c_try_link "$LINENO"; then :
7518 am_cv_func_iconv=yes
7520 rm -f core conftest.err conftest.$ac_objext \
7521 conftest$ac_exeext conftest.$ac_ext
7522 LIBS="$am_save_LIBS"
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
7527 $as_echo "$am_cv_func_iconv" >&6; }
7528 if test "$am_cv_func_iconv" = yes; then
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
7530 $as_echo_n "checking for working iconv... " >&6; }
7531 if ${am_cv_func_iconv_works+:} false; then :
7532 $as_echo_n "(cached) " >&6
7535 am_save_LIBS="$LIBS"
7536 if test $am_cv_lib_iconv = yes; then
7537 LIBS="$LIBS $LIBICONV"
7539 if test "$cross_compiling" = yes; then :
7541 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
7542 *) am_cv_func_iconv_works="guessing yes" ;;
7545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7546 /* end confdefs.h. */
7552 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
7555 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
7556 if (cd_utf8_to_88591 != (iconv_t)(-1))
7558 static const char input[] = "\342\202\254"; /* EURO SIGN */
7560 const char *inptr = input;
7561 size_t inbytesleft = strlen (input);
7563 size_t outbytesleft = sizeof (buf);
7564 size_t res = iconv (cd_utf8_to_88591,
7565 (char **) &inptr, &inbytesleft,
7566 &outptr, &outbytesleft);
7571 /* Test against Solaris 10 bug: Failures are not distinguishable from
7572 successful returns. */
7574 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
7575 if (cd_ascii_to_88591 != (iconv_t)(-1))
7577 static const char input[] = "\263";
7579 const char *inptr = input;
7580 size_t inbytesleft = strlen (input);
7582 size_t outbytesleft = sizeof (buf);
7583 size_t res = iconv (cd_ascii_to_88591,
7584 (char **) &inptr, &inbytesleft,
7585 &outptr, &outbytesleft);
7590 #if 0 /* This bug could be worked around by the caller. */
7591 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
7593 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
7594 if (cd_88591_to_utf8 != (iconv_t)(-1))
7596 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
7598 const char *inptr = input;
7599 size_t inbytesleft = strlen (input);
7601 size_t outbytesleft = sizeof (buf);
7602 size_t res = iconv (cd_88591_to_utf8,
7603 (char **) &inptr, &inbytesleft,
7604 &outptr, &outbytesleft);
7610 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
7612 if (/* Try standardized names. */
7613 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
7614 /* Try IRIX, OSF/1 names. */
7615 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
7616 /* Try AIX names. */
7617 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
7618 /* Try HP-UX names. */
7619 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
7624 if ac_fn_c_try_run "$LINENO"; then :
7625 am_cv_func_iconv_works=yes
7627 am_cv_func_iconv_works=no
7629 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7630 conftest.$ac_objext conftest.beam conftest.$ac_ext
7633 LIBS="$am_save_LIBS"
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
7637 $as_echo "$am_cv_func_iconv_works" >&6; }
7638 case "$am_cv_func_iconv_works" in
7639 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
7640 *) am_func_iconv=yes ;;
7643 am_func_iconv=no am_cv_lib_iconv=no
7645 if test "$am_func_iconv" = yes; then
7647 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
7650 if test "$am_cv_lib_iconv" = yes; then
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
7652 $as_echo_n "checking how to link with libiconv... " >&6; }
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
7654 $as_echo "$LIBICONV" >&6; }
7656 CPPFLAGS="$am_save_CPPFLAGS"
7663 if test "$am_cv_func_iconv" = yes; then
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
7665 $as_echo_n "checking for iconv declaration... " >&6; }
7666 if ${am_cv_proto_iconv+:} false; then :
7667 $as_echo_n "(cached) " >&6
7670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7671 /* end confdefs.h. */
7679 #if defined(__STDC__) || defined(__cplusplus)
7680 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
7693 if ac_fn_c_try_compile "$LINENO"; then :
7694 am_cv_proto_iconv_arg1=""
7696 am_cv_proto_iconv_arg1="const"
7698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7699 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);"
7702 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
7704 $am_cv_proto_iconv" >&5
7706 $am_cv_proto_iconv" >&6; }
7708 cat >>confdefs.h <<_ACEOF
7709 #define ICONV_CONST $am_cv_proto_iconv_arg1
7717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7718 /* end confdefs.h. */
7719 int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
7728 if ac_fn_c_try_link "$LINENO"; then :
7730 $as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
7733 rm -f core conftest.err conftest.$ac_objext \
7734 conftest$ac_exeext conftest.$ac_ext
7736 for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
7738 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7739 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7740 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7741 cat >>confdefs.h <<_ACEOF
7742 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7749 for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
7750 stpcpy strcasecmp strdup strtoul tsearch uselocale argz_count \
7751 argz_stringify argz_next __fsetlocking
7753 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7754 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7755 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7756 cat >>confdefs.h <<_ACEOF
7757 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
7766 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
7767 if ${ac_cv_have_decl_feof_unlocked+:} false; then :
7768 $as_echo_n "(cached) " >&6
7770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7771 /* end confdefs.h. */
7777 #ifndef feof_unlocked
7778 char *p = (char *) feof_unlocked;
7785 if ac_fn_c_try_compile "$LINENO"; then :
7786 ac_cv_have_decl_feof_unlocked=yes
7788 ac_cv_have_decl_feof_unlocked=no
7790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
7793 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
7794 if test $ac_cv_have_decl_feof_unlocked = yes; then
7800 cat >>confdefs.h <<_ACEOF
7801 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
7807 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
7808 if ${ac_cv_have_decl_fgets_unlocked+:} false; then :
7809 $as_echo_n "(cached) " >&6
7811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7812 /* end confdefs.h. */
7818 #ifndef fgets_unlocked
7819 char *p = (char *) fgets_unlocked;
7826 if ac_fn_c_try_compile "$LINENO"; then :
7827 ac_cv_have_decl_fgets_unlocked=yes
7829 ac_cv_have_decl_fgets_unlocked=no
7831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
7834 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
7835 if test $ac_cv_have_decl_fgets_unlocked = yes; then
7841 cat >>confdefs.h <<_ACEOF
7842 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
7849 for ac_prog in bison
7851 # Extract the first word of "$ac_prog", so it can be a program name with args.
7852 set dummy $ac_prog; ac_word=$2
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7854 $as_echo_n "checking for $ac_word... " >&6; }
7855 if ${ac_cv_prog_INTLBISON+:} false; then :
7856 $as_echo_n "(cached) " >&6
7858 if test -n "$INTLBISON"; then
7859 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
7861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7865 test -z "$as_dir" && as_dir=.
7866 for ac_exec_ext in '' $ac_executable_extensions; do
7867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7868 ac_cv_prog_INTLBISON="$ac_prog"
7869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7878 INTLBISON=$ac_cv_prog_INTLBISON
7879 if test -n "$INTLBISON"; then
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
7881 $as_echo "$INTLBISON" >&6; }
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7884 $as_echo "no" >&6; }
7888 test -n "$INTLBISON" && break
7891 if test -z "$INTLBISON"; then
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
7895 $as_echo_n "checking version of bison... " >&6; }
7896 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
7897 case $ac_prog_version in
7898 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
7899 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
7900 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
7901 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
7904 $as_echo "$ac_prog_version" >&6; }
7906 if test $ac_verc_fail = yes; then
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
7912 $as_echo_n "checking for long long int... " >&6; }
7913 if ${ac_cv_type_long_long_int+:} false; then :
7914 $as_echo_n "(cached) " >&6
7916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7917 /* end confdefs.h. */
7919 /* For now, do not test the preprocessor; as of 2007 there are too many
7920 implementations with broken preprocessors. Perhaps this can
7921 be revisited in 2012. In the meantime, code should not expect
7922 #if to work with literals wider than 32 bits. */
7923 /* Test literals. */
7924 long long int ll = 9223372036854775807ll;
7925 long long int nll = -9223372036854775807LL;
7926 unsigned long long int ull = 18446744073709551615ULL;
7927 /* Test constant expressions. */
7928 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
7930 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
7936 /* Test availability of runtime routines for shift and division. */
7937 long long int llmax = 9223372036854775807ll;
7938 unsigned long long int ullmax = 18446744073709551615ull;
7939 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
7940 | (llmax / ll) | (llmax % ll)
7941 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
7942 | (ullmax / ull) | (ullmax % ull));
7948 if ac_fn_c_try_link "$LINENO"; then :
7949 if test "$cross_compiling" = yes; then :
7950 ac_cv_type_long_long_int=yes
7952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7953 /* end confdefs.h. */
7957 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
7958 # define LLONG_MAX (HALF - 1 + HALF)
7963 long long int n = 1;
7967 long long int m = n << i;
7970 if (LLONG_MAX / 2 < m)
7978 if ac_fn_c_try_run "$LINENO"; then :
7979 ac_cv_type_long_long_int=yes
7981 ac_cv_type_long_long_int=no
7983 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7984 conftest.$ac_objext conftest.beam conftest.$ac_ext
7988 ac_cv_type_long_long_int=no
7990 rm -f core conftest.err conftest.$ac_objext \
7991 conftest$ac_exeext conftest.$ac_ext
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
7994 $as_echo "$ac_cv_type_long_long_int" >&6; }
7995 if test $ac_cv_type_long_long_int = yes; then
7997 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
8003 $as_echo_n "checking for wchar_t... " >&6; }
8004 if ${gt_cv_c_wchar_t+:} false; then :
8005 $as_echo_n "(cached) " >&6
8007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8008 /* end confdefs.h. */
8010 wchar_t foo = (wchar_t)'\0';
8019 if ac_fn_c_try_compile "$LINENO"; then :
8024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
8027 $as_echo "$gt_cv_c_wchar_t" >&6; }
8028 if test $gt_cv_c_wchar_t = yes; then
8030 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
8035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
8036 $as_echo_n "checking for wint_t... " >&6; }
8037 if ${gt_cv_c_wint_t+:} false; then :
8038 $as_echo_n "(cached) " >&6
8040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8041 /* end confdefs.h. */
8043 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
8045 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
8046 before <wchar.h>. */
8051 wint_t foo = (wchar_t)'\0';
8060 if ac_fn_c_try_compile "$LINENO"; then :
8065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
8068 $as_echo "$gt_cv_c_wint_t" >&6; }
8069 if test $gt_cv_c_wint_t = yes; then
8071 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
8078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
8079 $as_echo_n "checking for intmax_t... " >&6; }
8080 if ${gt_cv_c_intmax_t+:} false; then :
8081 $as_echo_n "(cached) " >&6
8083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8084 /* end confdefs.h. */
8088 #if HAVE_STDINT_H_WITH_UINTMAX
8091 #if HAVE_INTTYPES_H_WITH_UINTMAX
8092 #include <inttypes.h>
8104 if ac_fn_c_try_compile "$LINENO"; then :
8105 gt_cv_c_intmax_t=yes
8109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
8112 $as_echo "$gt_cv_c_intmax_t" >&6; }
8113 if test $gt_cv_c_intmax_t = yes; then
8115 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
8122 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
8123 if ${gt_cv_func_printf_posix+:} false; then :
8124 $as_echo_n "(cached) " >&6
8127 if test "$cross_compiling" = yes; then :
8129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8130 /* end confdefs.h. */
8132 #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
8137 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8138 $EGREP "notposix" >/dev/null 2>&1; then :
8139 gt_cv_func_printf_posix="guessing no"
8141 gt_cv_func_printf_posix="guessing yes"
8147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8148 /* end confdefs.h. */
8152 /* The string "%2$d %1$d", with dollar characters protected from the shell's
8153 dollar expansion (possibly an autoconf bug). */
8154 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
8155 static char buf[100];
8158 sprintf (buf, format, 33, 55);
8159 return (strcmp (buf, "55 33") != 0);
8162 if ac_fn_c_try_run "$LINENO"; then :
8163 gt_cv_func_printf_posix=yes
8165 gt_cv_func_printf_posix=no
8167 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8168 conftest.$ac_objext conftest.beam conftest.$ac_ext
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
8174 $as_echo "$gt_cv_func_printf_posix" >&6; }
8175 case $gt_cv_func_printf_posix in
8178 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
8185 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
8186 if ${ac_cv_gnu_library_2_1+:} false; then :
8187 $as_echo_n "(cached) " >&6
8189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8190 /* end confdefs.h. */
8192 #include <features.h>
8193 #ifdef __GNU_LIBRARY__
8194 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
8200 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8201 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
8202 ac_cv_gnu_library_2_1=yes
8204 ac_cv_gnu_library_2_1=no
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
8212 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
8214 GLIBC21="$ac_cv_gnu_library_2_1"
8218 for ac_header in stdint.h
8220 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
8221 if test "x$ac_cv_header_stdint_h" = xyes; then :
8222 cat >>confdefs.h <<_ACEOF
8223 #define HAVE_STDINT_H 1
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
8231 $as_echo_n "checking for SIZE_MAX... " >&6; }
8232 if ${gl_cv_size_max+:} false; then :
8233 $as_echo_n "(cached) " >&6
8237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8238 /* end confdefs.h. */
8249 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8250 $EGREP "Found it" >/dev/null 2>&1; then :
8255 if test -z "$gl_cv_size_max"; then
8256 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
8257 #include <limits.h>"; then :
8260 size_t_bits_minus_1=
8263 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
8269 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
8270 if test $fits_in_uint = 1; then
8271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8272 /* end confdefs.h. */
8275 extern unsigned long foo;
8285 if ac_fn_c_try_compile "$LINENO"; then :
8288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8290 if test $fits_in_uint = 1; then
8291 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
8293 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
8296 gl_cv_size_max='((size_t)~(size_t)0)'
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
8302 $as_echo "$gl_cv_size_max" >&6; }
8303 if test "$gl_cv_size_max" != yes; then
8305 cat >>confdefs.h <<_ACEOF
8306 #define SIZE_MAX $gl_cv_size_max
8315 for ac_header in stdint.h
8317 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
8318 if test "x$ac_cv_header_stdint_h" = xyes; then :
8319 cat >>confdefs.h <<_ACEOF
8320 #define HAVE_STDINT_H 1
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
8331 $as_echo_n "checking for working fcntl.h... " >&6; }
8332 if ${gl_cv_header_working_fcntl_h+:} false; then :
8333 $as_echo_n "(cached) " >&6
8335 if test "$cross_compiling" = yes; then :
8336 gl_cv_header_working_fcntl_h=cross-compiling
8338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8339 /* end confdefs.h. */
8340 #include <sys/types.h>
8341 #include <sys/stat.h>
8348 #define O_NOFOLLOW 0
8350 static int const constants[] =
8352 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
8353 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
8360 int status = !constants;
8362 static char const sym[] = "conftest.sym";
8363 if (symlink (".", sym) != 0
8364 || close (open (sym, O_RDONLY | O_NOFOLLOW)) == 0)
8369 static char const file[] = "confdefs.h";
8370 int fd = open (file, O_RDONLY | O_NOATIME);
8372 struct stat st0, st1;
8374 || fstat (fd, &st0) != 0
8376 || read (fd, &c, 1) != 1
8378 || stat (file, &st1) != 0
8379 || st0.st_atime != st1.st_atime)
8387 if ac_fn_c_try_run "$LINENO"; then :
8388 gl_cv_header_working_fcntl_h=yes
8391 32) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
8392 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
8393 96) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
8394 *) gl_cv_header_working_fcntl_h='no';;
8397 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8398 conftest.$ac_objext conftest.beam conftest.$ac_ext
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
8403 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
8405 case $gl_cv_header_working_fcntl_h in #(
8406 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
8410 cat >>confdefs.h <<_ACEOF
8411 #define HAVE_WORKING_O_NOATIME $ac_val
8415 case $gl_cv_header_working_fcntl_h in #(
8416 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
8420 cat >>confdefs.h <<_ACEOF
8421 #define HAVE_WORKING_O_NOFOLLOW $ac_val
8426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
8427 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
8428 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
8429 $as_echo_n "(cached) " >&6
8431 gt_save_LIBS="$LIBS"
8432 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
8433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8434 /* end confdefs.h. */
8435 #include <CoreFoundation/CFPreferences.h>
8439 CFPreferencesCopyAppValue(NULL, NULL)
8444 if ac_fn_c_try_link "$LINENO"; then :
8445 gt_cv_func_CFPreferencesCopyAppValue=yes
8447 gt_cv_func_CFPreferencesCopyAppValue=no
8449 rm -f core conftest.err conftest.$ac_objext \
8450 conftest$ac_exeext conftest.$ac_ext
8451 LIBS="$gt_save_LIBS"
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
8454 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
8455 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
8457 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
8461 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
8462 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
8463 $as_echo_n "(cached) " >&6
8465 gt_save_LIBS="$LIBS"
8466 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
8467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8468 /* end confdefs.h. */
8469 #include <CoreFoundation/CFLocale.h>
8473 CFLocaleCopyCurrent();
8478 if ac_fn_c_try_link "$LINENO"; then :
8479 gt_cv_func_CFLocaleCopyCurrent=yes
8481 gt_cv_func_CFLocaleCopyCurrent=no
8483 rm -f core conftest.err conftest.$ac_objext \
8484 conftest$ac_exeext conftest.$ac_ext
8485 LIBS="$gt_save_LIBS"
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
8488 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
8489 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
8491 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
8495 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
8496 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
8505 case "$enable_silent_rules" in
8506 yes) INTL_DEFAULT_VERBOSITY=0;;
8507 no) INTL_DEFAULT_VERBOSITY=1;;
8508 *) INTL_DEFAULT_VERBOSITY=1;;
8512 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
8513 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
8517 $as_echo "#define ptrdiff_t long" >>confdefs.h
8522 for ac_header in stddef.h stdlib.h string.h
8524 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8525 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8526 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8527 cat >>confdefs.h <<_ACEOF
8528 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8535 for ac_func in asprintf fwprintf newlocale putenv setenv setlocale \
8536 snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
8538 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8539 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8540 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8541 cat >>confdefs.h <<_ACEOF
8542 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
8551 $as_echo_n "checking whether _snprintf is declared... " >&6; }
8552 if ${ac_cv_have_decl__snprintf+:} false; then :
8553 $as_echo_n "(cached) " >&6
8555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8556 /* end confdefs.h. */
8563 char *p = (char *) _snprintf;
8570 if ac_fn_c_try_compile "$LINENO"; then :
8571 ac_cv_have_decl__snprintf=yes
8573 ac_cv_have_decl__snprintf=no
8575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
8578 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
8579 if test $ac_cv_have_decl__snprintf = yes; then
8585 cat >>confdefs.h <<_ACEOF
8586 #define HAVE_DECL__SNPRINTF $gt_value
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
8592 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
8593 if ${ac_cv_have_decl__snwprintf+:} false; then :
8594 $as_echo_n "(cached) " >&6
8596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8597 /* end confdefs.h. */
8604 char *p = (char *) _snwprintf;
8611 if ac_fn_c_try_compile "$LINENO"; then :
8612 ac_cv_have_decl__snwprintf=yes
8614 ac_cv_have_decl__snwprintf=no
8616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
8619 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
8620 if test $ac_cv_have_decl__snwprintf = yes; then
8626 cat >>confdefs.h <<_ACEOF
8627 #define HAVE_DECL__SNWPRINTF $gt_value
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
8634 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
8635 if ${ac_cv_have_decl_getc_unlocked+:} false; then :
8636 $as_echo_n "(cached) " >&6
8638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8639 /* end confdefs.h. */
8645 #ifndef getc_unlocked
8646 char *p = (char *) getc_unlocked;
8653 if ac_fn_c_try_compile "$LINENO"; then :
8654 ac_cv_have_decl_getc_unlocked=yes
8656 ac_cv_have_decl_getc_unlocked=no
8658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
8661 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
8662 if test $ac_cv_have_decl_getc_unlocked = yes; then
8668 cat >>confdefs.h <<_ACEOF
8669 #define HAVE_DECL_GETC_UNLOCKED $gt_value
8674 case $gt_cv_func_printf_posix in
8675 *yes) HAVE_POSIX_PRINTF=1 ;;
8676 *) HAVE_POSIX_PRINTF=0 ;;
8679 if test "$ac_cv_func_asprintf" = yes; then
8685 if test "$ac_cv_func_snprintf" = yes; then
8691 if test "$ac_cv_func_newlocale" = yes; then
8697 if test "$ac_cv_func_wprintf" = yes; then
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
8706 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
8707 if ${am_cv_langinfo_codeset+:} false; then :
8708 $as_echo_n "(cached) " >&6
8710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8711 /* end confdefs.h. */
8712 #include <langinfo.h>
8716 char* cs = nl_langinfo(CODESET); return !cs;
8721 if ac_fn_c_try_link "$LINENO"; then :
8722 am_cv_langinfo_codeset=yes
8724 am_cv_langinfo_codeset=no
8726 rm -f core conftest.err conftest.$ac_objext \
8727 conftest$ac_exeext conftest.$ac_ext
8730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
8731 $as_echo "$am_cv_langinfo_codeset" >&6; }
8732 if test $am_cv_langinfo_codeset = yes; then
8734 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
8739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
8740 $as_echo_n "checking for LC_MESSAGES... " >&6; }
8741 if ${gt_cv_val_LC_MESSAGES+:} false; then :
8742 $as_echo_n "(cached) " >&6
8744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8745 /* end confdefs.h. */
8755 if ac_fn_c_try_link "$LINENO"; then :
8756 gt_cv_val_LC_MESSAGES=yes
8758 gt_cv_val_LC_MESSAGES=no
8760 rm -f core conftest.err conftest.$ac_objext \
8761 conftest$ac_exeext conftest.$ac_ext
8763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
8764 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
8765 if test $gt_cv_val_LC_MESSAGES = yes; then
8767 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
8772 if test "$enable_shared" = yes; then
8774 mingw* | cygwin*) is_woe32dll=yes ;;
8775 *) is_woe32dll=no ;;
8780 WOE32DLL=$is_woe32dll
8784 mingw* | cygwin*) is_woe32=yes ;;
8789 if test $WOE32 = yes; then
8790 if test -n "$ac_tool_prefix"; then
8791 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
8792 set dummy ${ac_tool_prefix}windres; ac_word=$2
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8794 $as_echo_n "checking for $ac_word... " >&6; }
8795 if ${ac_cv_prog_WINDRES+:} false; then :
8796 $as_echo_n "(cached) " >&6
8798 if test -n "$WINDRES"; then
8799 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8805 test -z "$as_dir" && as_dir=.
8806 for ac_exec_ext in '' $ac_executable_extensions; do
8807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8808 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
8809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8818 WINDRES=$ac_cv_prog_WINDRES
8819 if test -n "$WINDRES"; then
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8821 $as_echo "$WINDRES" >&6; }
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8824 $as_echo "no" >&6; }
8829 if test -z "$ac_cv_prog_WINDRES"; then
8830 ac_ct_WINDRES=$WINDRES
8831 # Extract the first word of "windres", so it can be a program name with args.
8832 set dummy windres; ac_word=$2
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8834 $as_echo_n "checking for $ac_word... " >&6; }
8835 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
8836 $as_echo_n "(cached) " >&6
8838 if test -n "$ac_ct_WINDRES"; then
8839 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
8841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8845 test -z "$as_dir" && as_dir=.
8846 for ac_exec_ext in '' $ac_executable_extensions; do
8847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8848 ac_cv_prog_ac_ct_WINDRES="windres"
8849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8858 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
8859 if test -n "$ac_ct_WINDRES"; then
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
8861 $as_echo "$ac_ct_WINDRES" >&6; }
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8864 $as_echo "no" >&6; }
8867 if test "x$ac_ct_WINDRES" = x; then
8870 case $cross_compiling:$ac_tool_warned in
8872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8873 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8874 ac_tool_warned=yes ;;
8876 WINDRES=$ac_ct_WINDRES
8879 WINDRES="$ac_cv_prog_WINDRES"
8915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
8916 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
8917 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
8918 $as_echo_n "(cached) " >&6
8920 gt_save_LIBS="$LIBS"
8921 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
8922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8923 /* end confdefs.h. */
8924 #include <CoreFoundation/CFPreferences.h>
8928 CFPreferencesCopyAppValue(NULL, NULL)
8933 if ac_fn_c_try_link "$LINENO"; then :
8934 gt_cv_func_CFPreferencesCopyAppValue=yes
8936 gt_cv_func_CFPreferencesCopyAppValue=no
8938 rm -f core conftest.err conftest.$ac_objext \
8939 conftest$ac_exeext conftest.$ac_ext
8940 LIBS="$gt_save_LIBS"
8942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
8943 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
8944 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
8946 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
8949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
8950 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
8951 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
8952 $as_echo_n "(cached) " >&6
8954 gt_save_LIBS="$LIBS"
8955 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
8956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8957 /* end confdefs.h. */
8958 #include <CoreFoundation/CFLocale.h>
8962 CFLocaleCopyCurrent();
8967 if ac_fn_c_try_link "$LINENO"; then :
8968 gt_cv_func_CFLocaleCopyCurrent=yes
8970 gt_cv_func_CFLocaleCopyCurrent=no
8972 rm -f core conftest.err conftest.$ac_objext \
8973 conftest$ac_exeext conftest.$ac_ext
8974 LIBS="$gt_save_LIBS"
8976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
8977 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
8978 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
8980 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
8984 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
8985 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
8993 BUILD_INCLUDED_LIBINTL=no
8994 USE_INCLUDED_LIBINTL=no
9000 case " $gt_needs " in
9001 *" need-formatstring-macros "*) gt_api_version=3 ;;
9002 *" need-ngettext "*) gt_api_version=2 ;;
9003 *) gt_api_version=1 ;;
9005 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
9006 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
9008 if test "$USE_NLS" = "yes"; then
9009 gt_use_preinstalled_gnugettext=no
9011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
9012 $as_echo_n "checking whether included gettext is requested... " >&6; }
9014 # Check whether --with-included-gettext was given.
9015 if test "${with_included_gettext+set}" = set; then :
9016 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
9018 nls_cv_force_use_gnu_gettext=no
9021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
9022 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
9024 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
9025 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
9028 if test $gt_api_version -ge 3; then
9029 gt_revision_test_code='
9030 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
9031 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
9033 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
9036 gt_revision_test_code=
9038 if test $gt_api_version -ge 2; then
9039 gt_expression_test_code=' + * ngettext ("", "", 0)'
9041 gt_expression_test_code=
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
9045 $as_echo_n "checking for GNU gettext in libc... " >&6; }
9046 if eval \${$gt_func_gnugettext_libc+:} false; then :
9047 $as_echo_n "(cached) " >&6
9049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9050 /* end confdefs.h. */
9051 #include <libintl.h>
9052 $gt_revision_test_code
9053 extern int _nl_msg_cat_cntr;
9054 extern int *_nl_domain_bindings;
9058 bindtextdomain ("", "");
9059 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
9064 if ac_fn_c_try_link "$LINENO"; then :
9065 eval "$gt_func_gnugettext_libc=yes"
9067 eval "$gt_func_gnugettext_libc=no"
9069 rm -f core conftest.err conftest.$ac_objext \
9070 conftest$ac_exeext conftest.$ac_ext
9072 eval ac_res=\$$gt_func_gnugettext_libc
9073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9074 $as_echo "$ac_res" >&6; }
9076 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
9087 acl_save_prefix="$prefix"
9088 prefix="$acl_final_prefix"
9089 acl_save_exec_prefix="$exec_prefix"
9090 exec_prefix="$acl_final_exec_prefix"
9092 eval additional_includedir=\"$includedir\"
9093 eval additional_libdir=\"$libdir\"
9095 exec_prefix="$acl_save_exec_prefix"
9096 prefix="$acl_save_prefix"
9099 # Check whether --with-libintl-prefix was given.
9100 if test "${with_libintl_prefix+set}" = set; then :
9101 withval=$with_libintl_prefix;
9102 if test "X$withval" = "Xno"; then
9105 if test "X$withval" = "X"; then
9107 acl_save_prefix="$prefix"
9108 prefix="$acl_final_prefix"
9109 acl_save_exec_prefix="$exec_prefix"
9110 exec_prefix="$acl_final_exec_prefix"
9112 eval additional_includedir=\"$includedir\"
9113 eval additional_libdir=\"$libdir\"
9115 exec_prefix="$acl_save_exec_prefix"
9116 prefix="$acl_save_prefix"
9119 additional_includedir="$withval/include"
9120 additional_libdir="$withval/$acl_libdirstem"
9121 if test "$acl_libdirstem2" != "$acl_libdirstem" \
9122 && ! test -d "$withval/$acl_libdirstem"; then
9123 additional_libdir="$withval/$acl_libdirstem2"
9137 names_already_handled=
9138 names_next_round='intl '
9139 while test -n "$names_next_round"; do
9140 names_this_round="$names_next_round"
9142 for name in $names_this_round; do
9144 for n in $names_already_handled; do
9145 if test "$n" = "$name"; then
9150 if test -z "$already_handled"; then
9151 names_already_handled="$names_already_handled $name"
9152 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9153 eval value=\"\$HAVE_LIB$uppername\"
9154 if test -n "$value"; then
9155 if test "$value" = yes; then
9156 eval value=\"\$LIB$uppername\"
9157 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
9158 eval value=\"\$LTLIB$uppername\"
9159 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
9168 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
9169 if test -n "$acl_shlibext"; then
9170 shrext=".$acl_shlibext" # typically: shrext=.so
9174 if test $use_additional = yes; then
9175 dir="$additional_libdir"
9176 if test -n "$acl_shlibext"; then
9177 if test -f "$dir/$libname$shrext"; then
9179 found_so="$dir/$libname$shrext"
9181 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9182 ver=`(cd "$dir" && \
9183 for f in "$libname$shrext".*; do echo "$f"; done \
9184 | sed -e "s,^$libname$shrext\\\\.,," \
9185 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9186 | sed 1q ) 2>/dev/null`
9187 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
9189 found_so="$dir/$libname$shrext.$ver"
9192 eval library_names=\"$acl_library_names_spec\"
9193 for f in $library_names; do
9194 if test -f "$dir/$f"; then
9203 if test "X$found_dir" = "X"; then
9204 if test -f "$dir/$libname.$acl_libext"; then
9206 found_a="$dir/$libname.$acl_libext"
9209 if test "X$found_dir" != "X"; then
9210 if test -f "$dir/$libname.la"; then
9211 found_la="$dir/$libname.la"
9215 if test "X$found_dir" = "X"; then
9216 for x in $LDFLAGS $LTLIBINTL; do
9218 acl_save_prefix="$prefix"
9219 prefix="$acl_final_prefix"
9220 acl_save_exec_prefix="$exec_prefix"
9221 exec_prefix="$acl_final_exec_prefix"
9223 exec_prefix="$acl_save_exec_prefix"
9224 prefix="$acl_save_prefix"
9228 dir=`echo "X$x" | sed -e 's/^X-L//'`
9229 if test -n "$acl_shlibext"; then
9230 if test -f "$dir/$libname$shrext"; then
9232 found_so="$dir/$libname$shrext"
9234 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9235 ver=`(cd "$dir" && \
9236 for f in "$libname$shrext".*; do echo "$f"; done \
9237 | sed -e "s,^$libname$shrext\\\\.,," \
9238 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9239 | sed 1q ) 2>/dev/null`
9240 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
9242 found_so="$dir/$libname$shrext.$ver"
9245 eval library_names=\"$acl_library_names_spec\"
9246 for f in $library_names; do
9247 if test -f "$dir/$f"; then
9256 if test "X$found_dir" = "X"; then
9257 if test -f "$dir/$libname.$acl_libext"; then
9259 found_a="$dir/$libname.$acl_libext"
9262 if test "X$found_dir" != "X"; then
9263 if test -f "$dir/$libname.la"; then
9264 found_la="$dir/$libname.la"
9269 if test "X$found_dir" != "X"; then
9274 if test "X$found_dir" != "X"; then
9275 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
9276 if test "X$found_so" != "X"; then
9277 if test "$enable_rpath" = no \
9278 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
9279 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
9280 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9283 for x in $ltrpathdirs; do
9284 if test "X$x" = "X$found_dir"; then
9289 if test -z "$haveit"; then
9290 ltrpathdirs="$ltrpathdirs $found_dir"
9292 if test "$acl_hardcode_direct" = yes; then
9293 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9295 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
9296 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9298 for x in $rpathdirs; do
9299 if test "X$x" = "X$found_dir"; then
9304 if test -z "$haveit"; then
9305 rpathdirs="$rpathdirs $found_dir"
9309 for x in $LDFLAGS $LIBINTL; do
9311 acl_save_prefix="$prefix"
9312 prefix="$acl_final_prefix"
9313 acl_save_exec_prefix="$exec_prefix"
9314 exec_prefix="$acl_final_exec_prefix"
9316 exec_prefix="$acl_save_exec_prefix"
9317 prefix="$acl_save_prefix"
9319 if test "X$x" = "X-L$found_dir"; then
9324 if test -z "$haveit"; then
9325 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
9327 if test "$acl_hardcode_minus_L" != no; then
9328 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9330 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9336 if test "X$found_a" != "X"; then
9337 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
9339 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
9342 additional_includedir=
9343 case "$found_dir" in
9344 */$acl_libdirstem | */$acl_libdirstem/)
9345 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9346 if test "$name" = 'intl'; then
9347 LIBINTL_PREFIX="$basedir"
9349 additional_includedir="$basedir/include"
9351 */$acl_libdirstem2 | */$acl_libdirstem2/)
9352 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
9353 if test "$name" = 'intl'; then
9354 LIBINTL_PREFIX="$basedir"
9356 additional_includedir="$basedir/include"
9359 if test "X$additional_includedir" != "X"; then
9360 if test "X$additional_includedir" != "X/usr/include"; then
9362 if test "X$additional_includedir" = "X/usr/local/include"; then
9363 if test -n "$GCC"; then
9365 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9369 if test -z "$haveit"; then
9370 for x in $CPPFLAGS $INCINTL; do
9372 acl_save_prefix="$prefix"
9373 prefix="$acl_final_prefix"
9374 acl_save_exec_prefix="$exec_prefix"
9375 exec_prefix="$acl_final_exec_prefix"
9377 exec_prefix="$acl_save_exec_prefix"
9378 prefix="$acl_save_prefix"
9380 if test "X$x" = "X-I$additional_includedir"; then
9385 if test -z "$haveit"; then
9386 if test -d "$additional_includedir"; then
9387 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9393 if test -n "$found_la"; then
9394 save_libdir="$libdir"
9396 */* | *\\*) . "$found_la" ;;
9397 *) . "./$found_la" ;;
9399 libdir="$save_libdir"
9400 for dep in $dependency_libs; do
9403 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9404 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
9405 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
9407 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
9408 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
9409 if test -n "$GCC"; then
9411 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9415 if test -z "$haveit"; then
9417 for x in $LDFLAGS $LIBINTL; do
9419 acl_save_prefix="$prefix"
9420 prefix="$acl_final_prefix"
9421 acl_save_exec_prefix="$exec_prefix"
9422 exec_prefix="$acl_final_exec_prefix"
9424 exec_prefix="$acl_save_exec_prefix"
9425 prefix="$acl_save_prefix"
9427 if test "X$x" = "X-L$additional_libdir"; then
9432 if test -z "$haveit"; then
9433 if test -d "$additional_libdir"; then
9434 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
9438 for x in $LDFLAGS $LTLIBINTL; do
9440 acl_save_prefix="$prefix"
9441 prefix="$acl_final_prefix"
9442 acl_save_exec_prefix="$exec_prefix"
9443 exec_prefix="$acl_final_exec_prefix"
9445 exec_prefix="$acl_save_exec_prefix"
9446 prefix="$acl_save_prefix"
9448 if test "X$x" = "X-L$additional_libdir"; then
9453 if test -z "$haveit"; then
9454 if test -d "$additional_libdir"; then
9455 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
9462 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9463 if test "$enable_rpath" != no; then
9465 for x in $rpathdirs; do
9466 if test "X$x" = "X$dir"; then
9471 if test -z "$haveit"; then
9472 rpathdirs="$rpathdirs $dir"
9475 for x in $ltrpathdirs; do
9476 if test "X$x" = "X$dir"; then
9481 if test -z "$haveit"; then
9482 ltrpathdirs="$ltrpathdirs $dir"
9487 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9490 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9493 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
9494 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
9500 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9501 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
9507 if test "X$rpathdirs" != "X"; then
9508 if test -n "$acl_hardcode_libdir_separator"; then
9510 for found_dir in $rpathdirs; do
9511 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
9513 acl_save_libdir="$libdir"
9515 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9516 libdir="$acl_save_libdir"
9517 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9519 for found_dir in $rpathdirs; do
9520 acl_save_libdir="$libdir"
9522 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9523 libdir="$acl_save_libdir"
9524 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9528 if test "X$ltrpathdirs" != "X"; then
9529 for found_dir in $ltrpathdirs; do
9530 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
9539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
9540 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
9541 if eval \${$gt_func_gnugettext_libintl+:} false; then :
9542 $as_echo_n "(cached) " >&6
9544 gt_save_CPPFLAGS="$CPPFLAGS"
9545 CPPFLAGS="$CPPFLAGS $INCINTL"
9546 gt_save_LIBS="$LIBS"
9547 LIBS="$LIBS $LIBINTL"
9548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9549 /* end confdefs.h. */
9550 #include <libintl.h>
9551 $gt_revision_test_code
9552 extern int _nl_msg_cat_cntr;
9557 const char *_nl_expand_alias (const char *);
9561 bindtextdomain ("", "");
9562 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
9567 if ac_fn_c_try_link "$LINENO"; then :
9568 eval "$gt_func_gnugettext_libintl=yes"
9570 eval "$gt_func_gnugettext_libintl=no"
9572 rm -f core conftest.err conftest.$ac_objext \
9573 conftest$ac_exeext conftest.$ac_ext
9574 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
9575 LIBS="$LIBS $LIBICONV"
9576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9577 /* end confdefs.h. */
9578 #include <libintl.h>
9579 $gt_revision_test_code
9580 extern int _nl_msg_cat_cntr;
9585 const char *_nl_expand_alias (const char *);
9589 bindtextdomain ("", "");
9590 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
9595 if ac_fn_c_try_link "$LINENO"; then :
9596 LIBINTL="$LIBINTL $LIBICONV"
9597 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
9598 eval "$gt_func_gnugettext_libintl=yes"
9601 rm -f core conftest.err conftest.$ac_objext \
9602 conftest$ac_exeext conftest.$ac_ext
9604 CPPFLAGS="$gt_save_CPPFLAGS"
9605 LIBS="$gt_save_LIBS"
9607 eval ac_res=\$$gt_func_gnugettext_libintl
9608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9609 $as_echo "$ac_res" >&6; }
9612 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
9613 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
9614 && test "$PACKAGE" != gettext-runtime \
9615 && test "$PACKAGE" != gettext-tools; }; then
9616 gt_use_preinstalled_gnugettext=yes
9624 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
9625 nls_cv_use_gnu_gettext=yes
9629 if test "$nls_cv_use_gnu_gettext" = "yes"; then
9630 BUILD_INCLUDED_LIBINTL=yes
9631 USE_INCLUDED_LIBINTL=yes
9632 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
9633 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
9634 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
9638 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9639 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9644 if test -n "$INTL_MACOSX_LIBS"; then
9645 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9646 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9647 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
9648 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
9652 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9653 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9655 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
9662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
9663 $as_echo_n "checking whether to use NLS... " >&6; }
9664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
9665 $as_echo "$USE_NLS" >&6; }
9666 if test "$USE_NLS" = "yes"; then
9667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
9668 $as_echo_n "checking where the gettext function comes from... " >&6; }
9669 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9670 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
9671 gt_source="external libintl"
9676 gt_source="included intl directory"
9678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
9679 $as_echo "$gt_source" >&6; }
9682 if test "$USE_NLS" = "yes"; then
9684 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9685 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
9686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
9687 $as_echo_n "checking how to link with libintl... " >&6; }
9688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
9689 $as_echo "$LIBINTL" >&6; }
9691 for element in $INCINTL; do
9693 for x in $CPPFLAGS; do
9695 acl_save_prefix="$prefix"
9696 prefix="$acl_final_prefix"
9697 acl_save_exec_prefix="$exec_prefix"
9698 exec_prefix="$acl_final_exec_prefix"
9700 exec_prefix="$acl_save_exec_prefix"
9701 prefix="$acl_save_prefix"
9703 if test "X$x" = "X$element"; then
9708 if test -z "$haveit"; then
9709 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9716 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
9719 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
9727 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
9728 BUILD_INCLUDED_LIBINTL=yes
9736 nls_cv_header_libgt=
9748 if test "$USE_INCLUDED_LIBINTL" = yes; then
9749 INTLOBJS="\$(GETTOBJS)"
9753 INTL_LIBTOOL_SUFFIX_PREFIX=
9769 abook_localedir="$datadir/locale"
9770 abook_localedir=`( test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9771 eval tmp_abook_prefix=\""$abook_localedir"\"
9772 eval echo $tmp_abook_prefix
9775 localedir="\$(datadir)/locale"
9778 # Check whether --with-localedir was given.
9779 if test "${with_localedir+set}" = set; then :
9780 withval=$with_localedir;
9783 if test "x$with_localedir" != "x"; then
9784 abook_localedir="$with_localedir"
9785 localedir="$with_localedir"
9789 cat >>confdefs.h <<_ACEOF
9790 #define LOCALEDIR "$abook_localedir"
9795 if test x$USE_INCLUDED_LIBINTL = xyes; then
9796 USE_INCLUDED_INTL_H_TRUE=
9797 USE_INCLUDED_INTL_H_FALSE='#'
9799 USE_INCLUDED_INTL_H_TRUE='#'
9800 USE_INCLUDED_INTL_H_FALSE=
9806 ac_cpp='$CPP $CPPFLAGS'
9807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9810 if test -n "$ac_tool_prefix"; then
9811 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
9812 set dummy ${ac_tool_prefix}gcc; ac_word=$2
9813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9814 $as_echo_n "checking for $ac_word... " >&6; }
9815 if ${ac_cv_prog_CC+:} false; then :
9816 $as_echo_n "(cached) " >&6
9818 if test -n "$CC"; then
9819 ac_cv_prog_CC="$CC" # Let the user override the test.
9821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9825 test -z "$as_dir" && as_dir=.
9826 for ac_exec_ext in '' $ac_executable_extensions; do
9827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9828 ac_cv_prog_CC="${ac_tool_prefix}gcc"
9829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9839 if test -n "$CC"; then
9840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
9841 $as_echo "$CC" >&6; }
9843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9844 $as_echo "no" >&6; }
9849 if test -z "$ac_cv_prog_CC"; then
9851 # Extract the first word of "gcc", so it can be a program name with args.
9852 set dummy gcc; ac_word=$2
9853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9854 $as_echo_n "checking for $ac_word... " >&6; }
9855 if ${ac_cv_prog_ac_ct_CC+:} false; then :
9856 $as_echo_n "(cached) " >&6
9858 if test -n "$ac_ct_CC"; then
9859 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
9861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9865 test -z "$as_dir" && as_dir=.
9866 for ac_exec_ext in '' $ac_executable_extensions; do
9867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9868 ac_cv_prog_ac_ct_CC="gcc"
9869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9878 ac_ct_CC=$ac_cv_prog_ac_ct_CC
9879 if test -n "$ac_ct_CC"; then
9880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
9881 $as_echo "$ac_ct_CC" >&6; }
9883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9884 $as_echo "no" >&6; }
9887 if test "x$ac_ct_CC" = x; then
9890 case $cross_compiling:$ac_tool_warned in
9892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9893 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9894 ac_tool_warned=yes ;;
9902 if test -z "$CC"; then
9903 if test -n "$ac_tool_prefix"; then
9904 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
9905 set dummy ${ac_tool_prefix}cc; ac_word=$2
9906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9907 $as_echo_n "checking for $ac_word... " >&6; }
9908 if ${ac_cv_prog_CC+:} false; then :
9909 $as_echo_n "(cached) " >&6
9911 if test -n "$CC"; then
9912 ac_cv_prog_CC="$CC" # Let the user override the test.
9914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9918 test -z "$as_dir" && as_dir=.
9919 for ac_exec_ext in '' $ac_executable_extensions; do
9920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9921 ac_cv_prog_CC="${ac_tool_prefix}cc"
9922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9932 if test -n "$CC"; then
9933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
9934 $as_echo "$CC" >&6; }
9936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9937 $as_echo "no" >&6; }
9943 if test -z "$CC"; then
9944 # Extract the first word of "cc", so it can be a program name with args.
9945 set dummy cc; ac_word=$2
9946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9947 $as_echo_n "checking for $ac_word... " >&6; }
9948 if ${ac_cv_prog_CC+:} false; then :
9949 $as_echo_n "(cached) " >&6
9951 if test -n "$CC"; then
9952 ac_cv_prog_CC="$CC" # Let the user override the test.
9955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9959 test -z "$as_dir" && as_dir=.
9960 for ac_exec_ext in '' $ac_executable_extensions; do
9961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9962 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
9963 ac_prog_rejected=yes
9967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9974 if test $ac_prog_rejected = yes; then
9975 # We found a bogon in the path, so make sure we never use it.
9976 set dummy $ac_cv_prog_CC
9978 if test $# != 0; then
9979 # We chose a different compiler from the bogus one.
9980 # However, it has the same basename, so the bogon will be chosen
9981 # first if we set CC to just the basename; use the full file name.
9983 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
9989 if test -n "$CC"; then
9990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
9991 $as_echo "$CC" >&6; }
9993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9994 $as_echo "no" >&6; }
9999 if test -z "$CC"; then
10000 if test -n "$ac_tool_prefix"; then
10001 for ac_prog in cl.exe
10003 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10004 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10006 $as_echo_n "checking for $ac_word... " >&6; }
10007 if ${ac_cv_prog_CC+:} false; then :
10008 $as_echo_n "(cached) " >&6
10010 if test -n "$CC"; then
10011 ac_cv_prog_CC="$CC" # Let the user override the test.
10013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10014 for as_dir in $PATH
10017 test -z "$as_dir" && as_dir=.
10018 for ac_exec_ext in '' $ac_executable_extensions; do
10019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10020 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10031 if test -n "$CC"; then
10032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10033 $as_echo "$CC" >&6; }
10035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10036 $as_echo "no" >&6; }
10040 test -n "$CC" && break
10043 if test -z "$CC"; then
10045 for ac_prog in cl.exe
10047 # Extract the first word of "$ac_prog", so it can be a program name with args.
10048 set dummy $ac_prog; ac_word=$2
10049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10050 $as_echo_n "checking for $ac_word... " >&6; }
10051 if ${ac_cv_prog_ac_ct_CC+:} false; then :
10052 $as_echo_n "(cached) " >&6
10054 if test -n "$ac_ct_CC"; then
10055 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10058 for as_dir in $PATH
10061 test -z "$as_dir" && as_dir=.
10062 for ac_exec_ext in '' $ac_executable_extensions; do
10063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10064 ac_cv_prog_ac_ct_CC="$ac_prog"
10065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10074 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10075 if test -n "$ac_ct_CC"; then
10076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
10077 $as_echo "$ac_ct_CC" >&6; }
10079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10080 $as_echo "no" >&6; }
10084 test -n "$ac_ct_CC" && break
10087 if test "x$ac_ct_CC" = x; then
10090 case $cross_compiling:$ac_tool_warned in
10092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10093 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10094 ac_tool_warned=yes ;;
10103 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10104 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10105 as_fn_error $? "no acceptable C compiler found in \$PATH
10106 See \`config.log' for more details" "$LINENO" 5; }
10108 # Provide some information about the compiler.
10109 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
10112 for ac_option in --version -v -V -qversion; do
10113 { { ac_try="$ac_compiler $ac_option >&5"
10114 case "(($ac_try" in
10115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10116 *) ac_try_echo=$ac_try;;
10118 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10119 $as_echo "$ac_try_echo"; } >&5
10120 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
10122 if test -s conftest.err; then
10124 ... rest of stderr output deleted ...
10125 10q' conftest.err >conftest.er1
10126 cat conftest.er1 >&5
10128 rm -f conftest.er1 conftest.err
10129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10130 test $ac_status = 0; }
10133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
10134 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
10135 if ${ac_cv_c_compiler_gnu+:} false; then :
10136 $as_echo_n "(cached) " >&6
10138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10139 /* end confdefs.h. */
10152 if ac_fn_c_try_compile "$LINENO"; then :
10153 ac_compiler_gnu=yes
10157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10158 ac_cv_c_compiler_gnu=$ac_compiler_gnu
10161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
10162 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
10163 if test $ac_compiler_gnu = yes; then
10168 ac_test_CFLAGS=${CFLAGS+set}
10169 ac_save_CFLAGS=$CFLAGS
10170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
10171 $as_echo_n "checking whether $CC accepts -g... " >&6; }
10172 if ${ac_cv_prog_cc_g+:} false; then :
10173 $as_echo_n "(cached) " >&6
10175 ac_save_c_werror_flag=$ac_c_werror_flag
10176 ac_c_werror_flag=yes
10179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10180 /* end confdefs.h. */
10190 if ac_fn_c_try_compile "$LINENO"; then :
10191 ac_cv_prog_cc_g=yes
10194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10195 /* end confdefs.h. */
10205 if ac_fn_c_try_compile "$LINENO"; then :
10208 ac_c_werror_flag=$ac_save_c_werror_flag
10210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10211 /* end confdefs.h. */
10221 if ac_fn_c_try_compile "$LINENO"; then :
10222 ac_cv_prog_cc_g=yes
10224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10229 ac_c_werror_flag=$ac_save_c_werror_flag
10231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
10232 $as_echo "$ac_cv_prog_cc_g" >&6; }
10233 if test "$ac_test_CFLAGS" = set; then
10234 CFLAGS=$ac_save_CFLAGS
10235 elif test $ac_cv_prog_cc_g = yes; then
10236 if test "$GCC" = yes; then
10242 if test "$GCC" = yes; then
10248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
10249 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
10250 if ${ac_cv_prog_cc_c89+:} false; then :
10251 $as_echo_n "(cached) " >&6
10253 ac_cv_prog_cc_c89=no
10255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10256 /* end confdefs.h. */
10257 #include <stdarg.h>
10259 #include <sys/types.h>
10260 #include <sys/stat.h>
10261 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
10262 struct buf { int x; };
10263 FILE * (*rcsopen) (struct buf *, struct stat *, int);
10264 static char *e (p, i)
10270 static char *f (char * (*g) (char **, int), char **p, ...)
10275 s = g (p, va_arg (v,int));
10280 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
10281 function prototypes and stuff, but not '\xHH' hex character constants.
10282 These don't provoke an error unfortunately, instead are silently treated
10283 as 'x'. The following induces an error, until -std is added to get
10284 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
10285 array size at least. It's necessary to write '\x00'==0 to get something
10286 that's true only with -std. */
10287 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
10289 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
10290 inside strings and character constants. */
10292 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
10294 int test (int i, double x);
10295 struct s1 {int (*f) (int a);};
10296 struct s2 {int (*f) (double a);};
10297 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
10303 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
10308 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
10309 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
10311 CC="$ac_save_CC $ac_arg"
10312 if ac_fn_c_try_compile "$LINENO"; then :
10313 ac_cv_prog_cc_c89=$ac_arg
10315 rm -f core conftest.err conftest.$ac_objext
10316 test "x$ac_cv_prog_cc_c89" != "xno" && break
10318 rm -f conftest.$ac_ext
10323 case "x$ac_cv_prog_cc_c89" in
10325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
10326 $as_echo "none needed" >&6; } ;;
10328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
10329 $as_echo "unsupported" >&6; } ;;
10331 CC="$CC $ac_cv_prog_cc_c89"
10332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
10333 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
10335 if test "x$ac_cv_prog_cc_c89" != xno; then :
10340 ac_cpp='$CPP $CPPFLAGS'
10341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10345 depcc="$CC" am_compiler_list=
10347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
10348 $as_echo_n "checking dependency style of $depcc... " >&6; }
10349 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
10350 $as_echo_n "(cached) " >&6
10352 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
10353 # We make a subdir and do the tests there. Otherwise we can end up
10354 # making bogus files that we don't know about and never remove. For
10355 # instance it was reported that on HP-UX the gcc test will end up
10356 # making a dummy file named `D' -- because `-MD' means `put the output
10359 # Copy depcomp to subdir because otherwise we won't find it if we're
10360 # using a relative directory.
10361 cp "$am_depcomp" conftest.dir
10363 # We will build objects and dependencies in a subdirectory because
10364 # it helps to detect inapplicable dependency modes. For instance
10365 # both Tru64's cc and ICC support -MD to output dependencies as a
10366 # side effect of compilation, but ICC will put the dependencies in
10367 # the current directory while Tru64 will put them in the object
10371 am_cv_CC_dependencies_compiler_type=none
10372 if test "$am_compiler_list" = ""; then
10373 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10375 am__universal=false
10376 case " $depcc " in #(
10377 *\ -arch\ *\ -arch\ *) am__universal=true ;;
10380 for depmode in $am_compiler_list; do
10381 # Setup a source with many dependencies, because some compilers
10382 # like to wrap large dependency lists on column 80 (with \), and
10383 # we should not choose a depcomp mode which is confused by this.
10385 # We need to recreate these files for each test, as the compiler may
10386 # overwrite some of them when testing with obscure command lines.
10387 # This happens at least with the AIX C compiler.
10389 for i in 1 2 3 4 5 6; do
10390 echo '#include "conftst'$i'.h"' >> sub/conftest.c
10391 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10392 # Solaris 8's {/usr,}/bin/sh.
10393 touch sub/conftst$i.h
10395 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
10397 # We check with `-c' and `-o' for the sake of the "dashmstdout"
10398 # mode. It turns out that the SunPro C++ compiler does not properly
10399 # handle `-M -o', and we need to detect this. Also, some Intel
10400 # versions had trouble with output in subdirs
10401 am__obj=sub/conftest.${OBJEXT-o}
10402 am__minus_obj="-o $am__obj"
10405 # This depmode causes a compiler race in universal mode.
10406 test "$am__universal" = false || continue
10409 # after this tag, mechanisms are not by side-effect, so they'll
10410 # only be used when explicitly requested
10411 if test "x$enable_dependency_tracking" = xyes; then
10417 msvisualcpp | msvcmsys)
10418 # This compiler won't grok `-c -o', but also, the minuso test has
10419 # not run yet. These depmodes are late enough in the game, and
10420 # so weak that their functioning should not be impacted.
10421 am__obj=conftest.${OBJEXT-o}
10426 if depmode=$depmode \
10427 source=sub/conftest.c object=$am__obj \
10428 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10429 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
10430 >/dev/null 2>conftest.err &&
10431 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
10432 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
10433 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
10434 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
10435 # icc doesn't choke on unknown options, it will just issue warnings
10436 # or remarks (even with -Werror). So we grep stderr for any message
10437 # that says an option was ignored or not supported.
10438 # When given -MP, icc 7.0 and 7.1 complain thusly:
10439 # icc: Command line warning: ignoring option '-M'; no argument required
10440 # The diagnosis changed in icc 8.0:
10441 # icc: Command line remark: option '-MP' not supported
10442 if (grep 'ignoring option' conftest.err ||
10443 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
10444 am_cv_CC_dependencies_compiler_type=$depmode
10451 rm -rf conftest.dir
10453 am_cv_CC_dependencies_compiler_type=none
10457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
10458 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
10459 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
10462 test "x$enable_dependency_tracking" != xno \
10463 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
10464 am__fastdepCC_TRUE=
10465 am__fastdepCC_FALSE='#'
10467 am__fastdepCC_TRUE='#'
10468 am__fastdepCC_FALSE=
10472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
10473 $as_echo_n "checking for library containing strerror... " >&6; }
10474 if ${ac_cv_search_strerror+:} false; then :
10475 $as_echo_n "(cached) " >&6
10477 ac_func_search_save_LIBS=$LIBS
10478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10479 /* end confdefs.h. */
10481 /* Override any GCC internal prototype to avoid an error.
10482 Use char because int might match the return type of a GCC
10483 builtin and then its argument prototype would still apply. */
10491 return strerror ();
10496 for ac_lib in '' cposix; do
10497 if test -z "$ac_lib"; then
10498 ac_res="none required"
10501 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10503 if ac_fn_c_try_link "$LINENO"; then :
10504 ac_cv_search_strerror=$ac_res
10506 rm -f core conftest.err conftest.$ac_objext \
10508 if ${ac_cv_search_strerror+:} false; then :
10512 if ${ac_cv_search_strerror+:} false; then :
10515 ac_cv_search_strerror=no
10517 rm conftest.$ac_ext
10518 LIBS=$ac_func_search_save_LIBS
10520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
10521 $as_echo "$ac_cv_search_strerror" >&6; }
10522 ac_res=$ac_cv_search_strerror
10523 if test "$ac_res" != no; then :
10524 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
10529 $as_echo_n "checking for function prototypes... " >&6; }
10530 if test "$ac_cv_prog_cc_c89" != no; then
10531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10532 $as_echo "yes" >&6; }
10534 $as_echo "#define PROTOTYPES 1" >>confdefs.h
10537 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
10540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10541 $as_echo "no" >&6; }
10545 if test "$ac_cv_prog_cc_stdc" != no; then
10548 U=_ ANSI2KNR=./ansi2knr
10550 # Ensure some checks needed by ansi2knr itself.
10552 for ac_header in string.h
10554 ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
10555 if test "x$ac_cv_header_string_h" = xyes; then :
10556 cat >>confdefs.h <<_ACEOF
10557 #define HAVE_STRING_H 1
10565 if test "x$U" != "x"; then
10566 as_fn_error $? "Compiler not ANSI compliant" "$LINENO" 5
10568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
10569 $as_echo_n "checking for inline... " >&6; }
10570 if ${ac_cv_c_inline+:} false; then :
10571 $as_echo_n "(cached) " >&6
10574 for ac_kw in inline __inline__ __inline; do
10575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10576 /* end confdefs.h. */
10577 #ifndef __cplusplus
10579 static $ac_kw foo_t static_foo () {return 0; }
10580 $ac_kw foo_t foo () {return 0; }
10584 if ac_fn_c_try_compile "$LINENO"; then :
10585 ac_cv_c_inline=$ac_kw
10587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10588 test "$ac_cv_c_inline" != no && break
10592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
10593 $as_echo "$ac_cv_c_inline" >&6; }
10595 case $ac_cv_c_inline in
10598 case $ac_cv_c_inline in
10600 *) ac_val=$ac_cv_c_inline;;
10602 cat >>confdefs.h <<_ACEOF
10603 #ifndef __cplusplus
10604 #define inline $ac_val
10611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10612 $as_echo_n "checking for ANSI C header files... " >&6; }
10613 if ${ac_cv_header_stdc+:} false; then :
10614 $as_echo_n "(cached) " >&6
10616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10617 /* end confdefs.h. */
10618 #include <stdlib.h>
10619 #include <stdarg.h>
10620 #include <string.h>
10631 if ac_fn_c_try_compile "$LINENO"; then :
10632 ac_cv_header_stdc=yes
10634 ac_cv_header_stdc=no
10636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10638 if test $ac_cv_header_stdc = yes; then
10639 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10641 /* end confdefs.h. */
10642 #include <string.h>
10645 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10646 $EGREP "memchr" >/dev/null 2>&1; then :
10649 ac_cv_header_stdc=no
10655 if test $ac_cv_header_stdc = yes; then
10656 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10658 /* end confdefs.h. */
10659 #include <stdlib.h>
10662 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10663 $EGREP "free" >/dev/null 2>&1; then :
10666 ac_cv_header_stdc=no
10672 if test $ac_cv_header_stdc = yes; then
10673 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10674 if test "$cross_compiling" = yes; then :
10677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10678 /* end confdefs.h. */
10680 #include <stdlib.h>
10681 #if ((' ' & 0x0FF) == 0x020)
10682 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10683 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10685 # define ISLOWER(c) \
10686 (('a' <= (c) && (c) <= 'i') \
10687 || ('j' <= (c) && (c) <= 'r') \
10688 || ('s' <= (c) && (c) <= 'z'))
10689 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10692 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10697 for (i = 0; i < 256; i++)
10698 if (XOR (islower (i), ISLOWER (i))
10699 || toupper (i) != TOUPPER (i))
10704 if ac_fn_c_try_run "$LINENO"; then :
10707 ac_cv_header_stdc=no
10709 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10710 conftest.$ac_objext conftest.beam conftest.$ac_ext
10715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
10716 $as_echo "$ac_cv_header_stdc" >&6; }
10717 if test $ac_cv_header_stdc = yes; then
10719 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
10723 for ac_header in unistd.h locale.h sys/ioctl.h iconv.h
10725 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10726 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10727 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10728 cat >>confdefs.h <<_ACEOF
10729 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10736 ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
10737 if test "x$ac_cv_header_stdarg_h" = xyes; then :
10739 $as_echo "#define HAVE_STDARG_H 1" >>confdefs.h
10742 as_fn_error $? "*** stdarg.h is missing on your system ***" "$LINENO" 5
10746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
10747 $as_echo_n "checking for working strcoll... " >&6; }
10748 if ${ac_cv_func_strcoll_works+:} false; then :
10749 $as_echo_n "(cached) " >&6
10751 if test "$cross_compiling" = yes; then :
10752 ac_cv_func_strcoll_works=no
10754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10755 /* end confdefs.h. */
10756 $ac_includes_default
10760 return (strcoll ("abc", "def") >= 0 ||
10761 strcoll ("ABC", "DEF") >= 0 ||
10762 strcoll ("123", "456") >= 0)
10767 if ac_fn_c_try_run "$LINENO"; then :
10768 ac_cv_func_strcoll_works=yes
10770 ac_cv_func_strcoll_works=no
10772 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10773 conftest.$ac_objext conftest.beam conftest.$ac_ext
10777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
10778 $as_echo "$ac_cv_func_strcoll_works" >&6; }
10779 if test $ac_cv_func_strcoll_works = yes; then
10781 $as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
10785 for ac_func in setlocale
10787 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
10788 if test "x$ac_cv_func_setlocale" = xyes; then :
10789 cat >>confdefs.h <<_ACEOF
10790 #define HAVE_SETLOCALE 1
10798 ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
10799 if test "x$ac_cv_header_wchar_h" = xyes; then :
10801 ac_have_wchar_h=yes
10803 $as_echo "#define HAVE_WCHAR_H 1" >>confdefs.h
10810 for ac_func in mbtowc wcwidth mbrtowc mbsinit
10812 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10813 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10814 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10815 cat >>confdefs.h <<_ACEOF
10816 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10824 ac_fn_c_check_decl "$LINENO" "wcwidth" "ac_cv_have_decl_wcwidth" "$ac_includes_default"
10825 if test "x$ac_cv_have_decl_wcwidth" = xyes; then :
10831 cat >>confdefs.h <<_ACEOF
10832 #define HAVE_DECL_WCWIDTH $ac_have_decl
10835 ac_fn_c_check_type "$LINENO" "wchar_t" "ac_cv_type_wchar_t" "$ac_includes_default"
10836 if test "x$ac_cv_type_wchar_t" = xyes; then :
10843 if test x$ac_widec_funcs = xyes -a x$ac_have_wchar_h = xyes; then
10844 ac_widec_possible=yes
10846 ac_widec_possible=no
10850 abook_cv_curses=/usr
10852 # Check whether --with-curses was given.
10853 if test "${with_curses+set}" = set; then :
10854 withval=$with_curses; if test $withval != yes; then
10855 abook_cv_curses=$withval
10857 if test x$abook_cv_curses != x/usr; then
10858 LDFLAGS="-L${abook_cv_curses}/lib $LDFLAGS"
10859 CPPFLAGS="$CPPFLAGS -I${abook_cv_curses}/include"
10864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncursesw" >&5
10865 $as_echo_n "checking for initscr in -lncursesw... " >&6; }
10866 if ${ac_cv_lib_ncursesw_initscr+:} false; then :
10867 $as_echo_n "(cached) " >&6
10869 ac_check_lib_save_LIBS=$LIBS
10870 LIBS="-lncursesw $LIBS"
10871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10872 /* end confdefs.h. */
10874 /* Override any GCC internal prototype to avoid an error.
10875 Use char because int might match the return type of a GCC
10876 builtin and then its argument prototype would still apply. */
10889 if ac_fn_c_try_link "$LINENO"; then :
10890 ac_cv_lib_ncursesw_initscr=yes
10892 ac_cv_lib_ncursesw_initscr=no
10894 rm -f core conftest.err conftest.$ac_objext \
10895 conftest$ac_exeext conftest.$ac_ext
10896 LIBS=$ac_check_lib_save_LIBS
10898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncursesw_initscr" >&5
10899 $as_echo "$ac_cv_lib_ncursesw_initscr" >&6; }
10900 if test "x$ac_cv_lib_ncursesw_initscr" = xyes; then :
10901 LIBS="$LIBS -lncursesw"
10902 if test x$abook_cv_curses = x/usr -a -d /usr/include/ncursesw; then
10903 CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw"
10905 for ac_header in ncurses.h
10907 ac_fn_c_check_header_mongrel "$LINENO" "ncurses.h" "ac_cv_header_ncurses_h" "$ac_includes_default"
10908 if test "x$ac_cv_header_ncurses_h" = xyes; then :
10909 cat >>confdefs.h <<_ACEOF
10910 #define HAVE_NCURSES_H 1
10919 ac_widec_possible=no
10920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncurses" >&5
10921 $as_echo_n "checking for initscr in -lncurses... " >&6; }
10922 if ${ac_cv_lib_ncurses_initscr+:} false; then :
10923 $as_echo_n "(cached) " >&6
10925 ac_check_lib_save_LIBS=$LIBS
10926 LIBS="-lncurses $LIBS"
10927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10928 /* end confdefs.h. */
10930 /* Override any GCC internal prototype to avoid an error.
10931 Use char because int might match the return type of a GCC
10932 builtin and then its argument prototype would still apply. */
10945 if ac_fn_c_try_link "$LINENO"; then :
10946 ac_cv_lib_ncurses_initscr=yes
10948 ac_cv_lib_ncurses_initscr=no
10950 rm -f core conftest.err conftest.$ac_objext \
10951 conftest$ac_exeext conftest.$ac_ext
10952 LIBS=$ac_check_lib_save_LIBS
10954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_initscr" >&5
10955 $as_echo "$ac_cv_lib_ncurses_initscr" >&6; }
10956 if test "x$ac_cv_lib_ncurses_initscr" = xyes; then :
10957 LIBS="$LIBS -lncurses"
10958 if test x$abook_cv_curses = x/usr -a -d /usr/include/ncurses; then
10959 CPPFLAGS="$CPPFLAGS -I/usr/include/ncurses"
10961 for ac_header in ncurses.h
10963 ac_fn_c_check_header_mongrel "$LINENO" "ncurses.h" "ac_cv_header_ncurses_h" "$ac_includes_default"
10964 if test "x$ac_cv_header_ncurses_h" = xyes; then :
10965 cat >>confdefs.h <<_ACEOF
10966 #define HAVE_NCURSES_H 1
10975 ac_fn_c_check_func "$LINENO" "initscr" "ac_cv_func_initscr"
10976 if test "x$ac_cv_func_initscr" = xyes; then :
10980 case $host_os in #(vi
10982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgoto in -lmytinfo" >&5
10983 $as_echo_n "checking for tgoto in -lmytinfo... " >&6; }
10984 if ${ac_cv_lib_mytinfo_tgoto+:} false; then :
10985 $as_echo_n "(cached) " >&6
10987 ac_check_lib_save_LIBS=$LIBS
10988 LIBS="-lmytinfo $LIBS"
10989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10990 /* end confdefs.h. */
10992 /* Override any GCC internal prototype to avoid an error.
10993 Use char because int might match the return type of a GCC
10994 builtin and then its argument prototype would still apply. */
11007 if ac_fn_c_try_link "$LINENO"; then :
11008 ac_cv_lib_mytinfo_tgoto=yes
11010 ac_cv_lib_mytinfo_tgoto=no
11012 rm -f core conftest.err conftest.$ac_objext \
11013 conftest$ac_exeext conftest.$ac_ext
11014 LIBS=$ac_check_lib_save_LIBS
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mytinfo_tgoto" >&5
11017 $as_echo "$ac_cv_lib_mytinfo_tgoto" >&6; }
11018 if test "x$ac_cv_lib_mytinfo_tgoto" = xyes; then :
11019 LIBS="-lmytinfo $LIBS"
11024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lcur_colr" >&5
11025 $as_echo_n "checking for initscr in -lcur_colr... " >&6; }
11026 if ${ac_cv_lib_cur_colr_initscr+:} false; then :
11027 $as_echo_n "(cached) " >&6
11029 ac_check_lib_save_LIBS=$LIBS
11030 LIBS="-lcur_colr $LIBS"
11031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11032 /* end confdefs.h. */
11034 /* Override any GCC internal prototype to avoid an error.
11035 Use char because int might match the return type of a GCC
11036 builtin and then its argument prototype would still apply. */
11049 if ac_fn_c_try_link "$LINENO"; then :
11050 ac_cv_lib_cur_colr_initscr=yes
11052 ac_cv_lib_cur_colr_initscr=no
11054 rm -f core conftest.err conftest.$ac_objext \
11055 conftest$ac_exeext conftest.$ac_ext
11056 LIBS=$ac_check_lib_save_LIBS
11058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cur_colr_initscr" >&5
11059 $as_echo "$ac_cv_lib_cur_colr_initscr" >&6; }
11060 if test "x$ac_cv_lib_cur_colr_initscr" = xyes; then :
11062 LIBS="-lcur_colr $LIBS"
11063 CFLAGS="-I/usr/include/curses_colr $CFLAGS"
11064 ac_cv_func_initscr=yes
11068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lHcurses" >&5
11069 $as_echo_n "checking for initscr in -lHcurses... " >&6; }
11070 if ${ac_cv_lib_Hcurses_initscr+:} false; then :
11071 $as_echo_n "(cached) " >&6
11073 ac_check_lib_save_LIBS=$LIBS
11074 LIBS="-lHcurses $LIBS"
11075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11076 /* end confdefs.h. */
11078 /* Override any GCC internal prototype to avoid an error.
11079 Use char because int might match the return type of a GCC
11080 builtin and then its argument prototype would still apply. */
11093 if ac_fn_c_try_link "$LINENO"; then :
11094 ac_cv_lib_Hcurses_initscr=yes
11096 ac_cv_lib_Hcurses_initscr=no
11098 rm -f core conftest.err conftest.$ac_objext \
11099 conftest$ac_exeext conftest.$ac_ext
11100 LIBS=$ac_check_lib_save_LIBS
11102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Hcurses_initscr" >&5
11103 $as_echo "$ac_cv_lib_Hcurses_initscr" >&6; }
11104 if test "x$ac_cv_lib_Hcurses_initscr" = xyes; then :
11106 # HP's header uses __HP_CURSES, but user claims _HP_CURSES.
11107 LIBS="-lHcurses $LIBS"
11108 CFLAGS="-D__HP_CURSES -D_HP_CURSES $CFLAGS"
11109 ac_cv_func_initscr=yes
11116 linux*) # Suse Linux does not follow /usr/lib convention
11117 LIBS="$LIBS -L/lib"
11121 if test ".$With5lib" != ".no" ; then
11122 if test -d /usr/5lib ; then
11124 CPPFLAGS="$CPPFLAGS -I/usr/5include"
11125 LIBS="$LIBS -L/usr/5lib"
11129 if test ".$ac_cv_func_initscr" != .yes ; then
11130 cf_save_LIBS="$LIBS"
11134 # Check for library containing tgoto. Do this before curses library
11135 # because it may be needed to link the test-case for initscr.
11136 ac_fn_c_check_func "$LINENO" "tgoto" "ac_cv_func_tgoto"
11137 if test "x$ac_cv_func_tgoto" = xyes; then :
11138 cf_term_lib=predefined
11141 for cf_term_lib in termcap termlib unknown
11143 as_ac_Lib=`$as_echo "ac_cv_lib_$cf_term_lib''_tgoto" | $as_tr_sh`
11144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgoto in -l$cf_term_lib" >&5
11145 $as_echo_n "checking for tgoto in -l$cf_term_lib... " >&6; }
11146 if eval \${$as_ac_Lib+:} false; then :
11147 $as_echo_n "(cached) " >&6
11149 ac_check_lib_save_LIBS=$LIBS
11150 LIBS="-l$cf_term_lib $LIBS"
11151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11152 /* end confdefs.h. */
11154 /* Override any GCC internal prototype to avoid an error.
11155 Use char because int might match the return type of a GCC
11156 builtin and then its argument prototype would still apply. */
11169 if ac_fn_c_try_link "$LINENO"; then :
11170 eval "$as_ac_Lib=yes"
11172 eval "$as_ac_Lib=no"
11174 rm -f core conftest.err conftest.$ac_objext \
11175 conftest$ac_exeext conftest.$ac_ext
11176 LIBS=$ac_check_lib_save_LIBS
11178 eval ac_res=\$$as_ac_Lib
11179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11180 $as_echo "$ac_res" >&6; }
11181 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
11190 # Check for library containing initscr
11191 test "$cf_term_lib" != predefined && test "$cf_term_lib" != unknown && LIBS="-l$cf_term_lib $cf_save_LIBS"
11192 for cf_curs_lib in cursesX curses ncurses xcurses jcurses unknown
11194 as_ac_Lib=`$as_echo "ac_cv_lib_$cf_curs_lib''_initscr" | $as_tr_sh`
11195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -l$cf_curs_lib" >&5
11196 $as_echo_n "checking for initscr in -l$cf_curs_lib... " >&6; }
11197 if eval \${$as_ac_Lib+:} false; then :
11198 $as_echo_n "(cached) " >&6
11200 ac_check_lib_save_LIBS=$LIBS
11201 LIBS="-l$cf_curs_lib $LIBS"
11202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11203 /* end confdefs.h. */
11205 /* Override any GCC internal prototype to avoid an error.
11206 Use char because int might match the return type of a GCC
11207 builtin and then its argument prototype would still apply. */
11220 if ac_fn_c_try_link "$LINENO"; then :
11221 eval "$as_ac_Lib=yes"
11223 eval "$as_ac_Lib=no"
11225 rm -f core conftest.err conftest.$ac_objext \
11226 conftest$ac_exeext conftest.$ac_ext
11227 LIBS=$ac_check_lib_save_LIBS
11229 eval ac_res=\$$as_ac_Lib
11230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11231 $as_echo "$ac_res" >&6; }
11232 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
11237 test $cf_curs_lib = unknown && as_fn_error $? "no curses library found" "$LINENO" 5
11239 LIBS="-l$cf_curs_lib $cf_save_LIBS"
11240 if test "$cf_term_lib" = unknown ; then
11241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can link with $cf_curs_lib library" >&5
11242 $as_echo_n "checking if we can link with $cf_curs_lib library... " >&6; }
11243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11244 /* end confdefs.h. */
11245 #include <${cf_cv_ncurses_header-curses.h}>
11254 if ac_fn_c_try_link "$LINENO"; then :
11259 rm -f core conftest.err conftest.$ac_objext \
11260 conftest$ac_exeext conftest.$ac_ext
11261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_result" >&5
11262 $as_echo "$cf_result" >&6; }
11263 test $cf_result = no && as_fn_error $? "Cannot link curses library" "$LINENO" 5
11264 elif test "$cf_term_lib" != predefined ; then
11265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need both $cf_curs_lib and $cf_term_lib libraries" >&5
11266 $as_echo_n "checking if we need both $cf_curs_lib and $cf_term_lib libraries... " >&6; }
11267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11268 /* end confdefs.h. */
11269 #include <${cf_cv_ncurses_header-curses.h}>
11273 initscr(); tgoto((char *)0, 0, 0);
11278 if ac_fn_c_try_link "$LINENO"; then :
11282 LIBS="-l$cf_curs_lib -l$cf_term_lib $cf_save_LIBS"
11283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11284 /* end confdefs.h. */
11285 #include <${cf_cv_ncurses_header-curses.h}>
11294 if ac_fn_c_try_link "$LINENO"; then :
11299 rm -f core conftest.err conftest.$ac_objext \
11300 conftest$ac_exeext conftest.$ac_ext
11303 rm -f core conftest.err conftest.$ac_objext \
11304 conftest$ac_exeext conftest.$ac_ext
11305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_result" >&5
11306 $as_echo "$cf_result" >&6; }
11321 abook_cv_readline=/usr
11323 # Check whether --with-readline was given.
11324 if test "${with_readline+set}" = set; then :
11325 withval=$with_readline; if test $withval != yes; then
11326 abook_cv_readline=$withval
11328 if test x$abook_cv_readline != x/usr; then
11329 LDFLAGS="-L${abook_cv_readline}/lib $LDFLAGS"
11330 CPPFLAGS="$CPPFLAGS -I${abook_cv_readline}/include"
11336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
11337 $as_echo_n "checking for a readline compatible library... " >&6; }
11338 if ${ac_cv_lib_readline+:} false; then :
11339 $as_echo_n "(cached) " >&6
11343 for readline_lib in readline edit editline; do
11344 for termcap_lib in "" termcap curses ncurses; do
11345 if test -z "$termcap_lib"; then
11346 TRY_LIB="-l$readline_lib"
11348 TRY_LIB="-l$readline_lib -l$termcap_lib"
11350 LIBS="$ORIG_LIBS $TRY_LIB"
11351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11352 /* end confdefs.h. */
11354 /* Override any GCC internal prototype to avoid an error.
11355 Use char because int might match the return type of a GCC
11356 builtin and then its argument prototype would still apply. */
11364 return readline ();
11369 if ac_fn_c_try_link "$LINENO"; then :
11370 ac_cv_lib_readline="$TRY_LIB"
11372 rm -f core conftest.err conftest.$ac_objext \
11373 conftest$ac_exeext conftest.$ac_ext
11374 if test -n "$ac_cv_lib_readline"; then
11378 if test -n "$ac_cv_lib_readline"; then
11382 if test -z "$ac_cv_lib_readline"; then
11383 ac_cv_lib_readline="no"
11388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline" >&5
11389 $as_echo "$ac_cv_lib_readline" >&6; }
11391 if test "$ac_cv_lib_readline" != "no"; then
11392 LIBS="$LIBS $ac_cv_lib_readline"
11394 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
11396 for ac_header in readline.h readline/readline.h
11398 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11399 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11400 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11401 cat >>confdefs.h <<_ACEOF
11402 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
11410 $as_echo_n "checking whether readline supports history... " >&6; }
11411 if ${ac_cv_lib_readline_history+:} false; then :
11412 $as_echo_n "(cached) " >&6
11415 ac_cv_lib_readline_history="no"
11416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11417 /* end confdefs.h. */
11419 /* Override any GCC internal prototype to avoid an error.
11420 Use char because int might match the return type of a GCC
11421 builtin and then its argument prototype would still apply. */
11425 char add_history ();
11429 return add_history ();
11434 if ac_fn_c_try_link "$LINENO"; then :
11435 ac_cv_lib_readline_history="yes"
11437 rm -f core conftest.err conftest.$ac_objext \
11438 conftest$ac_exeext conftest.$ac_ext
11441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_history" >&5
11442 $as_echo "$ac_cv_lib_readline_history" >&6; }
11443 if test "$ac_cv_lib_readline_history" = "yes"; then
11445 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
11447 for ac_header in history.h readline/history.h
11449 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11450 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11451 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11452 cat >>confdefs.h <<_ACEOF
11453 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11465 if test x$ac_cv_lib_readline = xno -o x$ac_cv_lib_readline_history = xno; then
11466 as_fn_error $? "*** readline library not found or it doesn't support history ***" "$LINENO" 5
11470 if test x$ac_widec_possible = xyes; then
11472 $as_echo "#define HANDLE_MULTIBYTE 1" >>confdefs.h
11476 for ac_func in resizeterm
11478 ac_fn_c_check_func "$LINENO" "resizeterm" "ac_cv_func_resizeterm"
11479 if test "x$ac_cv_func_resizeterm" = xyes; then :
11480 cat >>confdefs.h <<_ACEOF
11481 #define HAVE_RESIZETERM 1
11488 for ac_func in snprintf vsnprintf
11490 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11491 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11492 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11493 cat >>confdefs.h <<_ACEOF
11494 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11501 for ac_func in strcasestr
11503 ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
11504 if test "x$ac_cv_func_strcasestr" = xyes; then :
11505 cat >>confdefs.h <<_ACEOF
11506 #define HAVE_STRCASESTR 1
11508 $as_echo "#define HAVE_STRCASESTR 1" >>confdefs.h
11514 # Check whether --enable-debug was given.
11515 if test "${enable_debug+set}" = set; then :
11516 enableval=$enable_debug; case "${enableval}" in
11519 *) as_fn_error $? "bad value ${enableval} for --enable-debug" "$LINENO" 5 ;;
11526 if test x$debug = xtrue; then
11527 CPPFLAGS="-DDEBUG=1 $CPPFLAGS"
11528 CFLAGS="-g $CFLAGS"
11531 if test x$GCC = xyes; then
11532 CFLAGS="-Wall $CFLAGS"
11535 ac_config_files="$ac_config_files Makefile abook.spec intl/Makefile po/Makefile.in"
11537 cat >confcache <<\_ACEOF
11538 # This file is a shell script that caches the results of configure
11539 # tests run on this system so they can be shared between configure
11540 # scripts and configure runs, see configure's option --config-cache.
11541 # It is not useful on other systems. If it contains results you don't
11542 # want to keep, you may remove or edit it.
11544 # config.status only pays attention to the cache file if you give it
11545 # the --recheck option to rerun configure.
11547 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11548 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11549 # following values.
11553 # The following way of writing the cache mishandles newlines in values,
11554 # but we know of no workaround that is simple, portable, and efficient.
11555 # So, we kill variables containing newlines.
11556 # Ultrix sh set writes to stderr and can't be redirected directly,
11557 # and sets the high bit in the cache file unless we assign to the vars.
11559 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11560 eval ac_val=\$$ac_var
11564 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11565 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11568 _ | IFS | as_nl) ;; #(
11569 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11570 *) { eval $ac_var=; unset $ac_var;} ;;
11576 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11577 *${as_nl}ac_space=\ *)
11578 # `set' does not quote correctly, so add quotes: double-quote
11579 # substitution turns \\\\ into \\, and sed turns \\ into \.
11582 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11585 # `set' quotes correctly as required by POSIX, so do not add quotes.
11586 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11595 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11597 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11599 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11600 if test -w "$cache_file"; then
11601 if test "x$cache_file" != "x/dev/null"; then
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11603 $as_echo "$as_me: updating cache $cache_file" >&6;}
11604 if test ! -f "$cache_file" || test -h "$cache_file"; then
11605 cat confcache >"$cache_file"
11607 case $cache_file in #(
11609 mv -f confcache "$cache_file"$$ &&
11610 mv -f "$cache_file"$$ "$cache_file" ;; #(
11612 mv -f confcache "$cache_file" ;;
11617 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11618 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11623 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11624 # Let make expand exec_prefix.
11625 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11627 DEFS=-DHAVE_CONFIG_H
11631 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11632 # 1. Remove the extension, and $U if already installed.
11633 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11634 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11635 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11636 # will be set to the directory where LIBOBJS objects are built.
11637 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11638 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11640 LIBOBJS=$ac_libobjs
11642 LTLIBOBJS=$ac_ltlibobjs
11645 if test -n "$EXEEXT"; then
11647 am__EXEEXT_FALSE='#'
11649 am__EXEEXT_TRUE='#'
11653 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11654 as_fn_error $? "conditional \"AMDEP\" was never defined.
11655 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11657 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11658 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11659 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11661 if test -z "${USE_INCLUDED_INTL_H_TRUE}" && test -z "${USE_INCLUDED_INTL_H_FALSE}"; then
11662 as_fn_error $? "conditional \"USE_INCLUDED_INTL_H\" was never defined.
11663 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11665 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11666 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11667 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11670 : "${CONFIG_STATUS=./config.status}"
11672 ac_clean_files_save=$ac_clean_files
11673 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11674 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11675 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11677 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11679 # Generated by $as_me.
11680 # Run this file to recreate the current configuration.
11681 # Compiler output produced by configure, useful for debugging
11682 # configure, is in config.log if it exists.
11685 ac_cs_recheck=false
11688 SHELL=\${CONFIG_SHELL-$SHELL}
11691 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11692 ## -------------------- ##
11693 ## M4sh Initialization. ##
11694 ## -------------------- ##
11696 # Be more Bourne compatible
11697 DUALCASE=1; export DUALCASE # for MKS sh
11698 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11701 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11702 # is contrary to our usage. Disable this feature.
11703 alias -g '${1+"$@"}'='"$@"'
11704 setopt NO_GLOB_SUBST
11706 case `(set -o) 2>/dev/null` in #(
11718 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11719 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11720 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11721 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11722 # Prefer a ksh shell builtin over an external printf program on Solaris,
11723 # but without wasting forks for bash or zsh.
11724 if test -z "$BASH_VERSION$ZSH_VERSION" \
11725 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11726 as_echo='print -r --'
11727 as_echo_n='print -rn --'
11728 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11729 as_echo='printf %s\n'
11730 as_echo_n='printf %s'
11732 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11733 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11734 as_echo_n='/usr/ucb/echo -n'
11736 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11737 as_echo_n_body='eval
11741 expr "X$arg" : "X\\(.*\\)$as_nl";
11742 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11744 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11746 export as_echo_n_body
11747 as_echo_n='sh -c $as_echo_n_body as_echo'
11749 export as_echo_body
11750 as_echo='sh -c $as_echo_body as_echo'
11753 # The user is always right.
11754 if test "${PATH_SEPARATOR+set}" != set; then
11756 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11757 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11764 # We need space, tab and new line, in precisely that order. Quoting is
11765 # there to prevent editors from complaining about space-tab.
11766 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11767 # splitting by setting IFS to empty value.)
11770 # Find who we are. Look in the path if we contain no directory separator.
11773 *[\\/]* ) as_myself=$0 ;;
11774 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11775 for as_dir in $PATH
11778 test -z "$as_dir" && as_dir=.
11779 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11785 # We did not find ourselves, most probably we were run as `sh COMMAND'
11786 # in which case we are not to be found in the path.
11787 if test "x$as_myself" = x; then
11790 if test ! -f "$as_myself"; then
11791 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11795 # Unset variables that we do not need and which cause bugs (e.g. in
11796 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11797 # suppresses any "Segmentation fault" message there. '((' could
11798 # trigger a bug in pdksh 5.2.14.
11799 for as_var in BASH_ENV ENV MAIL MAILPATH
11800 do eval test x\${$as_var+set} = xset \
11801 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11814 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11817 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11818 # ----------------------------------------
11819 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11820 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11821 # script with STATUS, using 1 if that was 0.
11824 as_status=$1; test $as_status -eq 0 && as_status=1
11826 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11827 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11829 $as_echo "$as_me: error: $2" >&2
11830 as_fn_exit $as_status
11834 # as_fn_set_status STATUS
11835 # -----------------------
11836 # Set $? to STATUS, without forking.
11837 as_fn_set_status ()
11840 } # as_fn_set_status
11842 # as_fn_exit STATUS
11843 # -----------------
11844 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11848 as_fn_set_status $1
11854 # Portably unset VAR.
11857 { eval $1=; unset $1;}
11859 as_unset=as_fn_unset
11860 # as_fn_append VAR VALUE
11861 # ----------------------
11862 # Append the text in VALUE to the end of the definition contained in VAR. Take
11863 # advantage of any shell optimizations that allow amortized linear growth over
11864 # repeated appends, instead of the typical quadratic growth present in naive
11866 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11867 eval 'as_fn_append ()
11878 # as_fn_arith ARG...
11879 # ------------------
11880 # Perform arithmetic evaluation on the ARGs, and store the result in the
11881 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11882 # must be portable across $(()) and expr.
11883 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11884 eval 'as_fn_arith ()
11891 as_val=`expr "$@" || test $? -eq 1`
11896 if expr a : '\(a\)' >/dev/null 2>&1 &&
11897 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11903 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11904 as_basename=basename
11909 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11915 as_me=`$as_basename -- "$0" ||
11916 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11917 X"$0" : 'X\(//\)$' \| \
11918 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11920 sed '/^.*\/\([^/][^/]*\)\/*$/{
11934 # Avoid depending upon Character Ranges.
11935 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11936 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11937 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11938 as_cr_digits='0123456789'
11939 as_cr_alnum=$as_cr_Letters$as_cr_digits
11941 ECHO_C= ECHO_N= ECHO_T=
11942 case `echo -n x` in #(((((
11944 case `echo 'xy\c'` in
11945 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11947 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11954 rm -f conf$$ conf$$.exe conf$$.file
11955 if test -d conf$$.dir; then
11956 rm -f conf$$.dir/conf$$.file
11959 mkdir conf$$.dir 2>/dev/null
11961 if (echo >conf$$.file) 2>/dev/null; then
11962 if ln -s conf$$.file conf$$ 2>/dev/null; then
11964 # ... but there are two gotchas:
11965 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11966 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11967 # In both cases, we have to default to `cp -p'.
11968 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11970 elif ln conf$$.file conf$$ 2>/dev/null; then
11978 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11979 rmdir conf$$.dir 2>/dev/null
11984 # Create "$as_dir" as a directory, including parents if necessary.
11989 -*) as_dir=./$as_dir;;
11991 test -d "$as_dir" || eval $as_mkdir_p || {
11995 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11996 *) as_qdir=$as_dir;;
11998 as_dirs="'$as_qdir' $as_dirs"
11999 as_dir=`$as_dirname -- "$as_dir" ||
12000 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12001 X"$as_dir" : 'X\(//\)[^/]' \| \
12002 X"$as_dir" : 'X\(//\)$' \| \
12003 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12004 $as_echo X"$as_dir" |
12005 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12009 /^X\(\/\/\)[^/].*/{
12022 test -d "$as_dir" && break
12024 test -z "$as_dirs" || eval "mkdir $as_dirs"
12025 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12029 if mkdir -p . 2>/dev/null; then
12030 as_mkdir_p='mkdir -p "$as_dir"'
12032 test -d ./-p && rmdir ./-p
12036 if test -x / >/dev/null 2>&1; then
12037 as_test_x='test -x'
12039 if ls -dL / >/dev/null 2>&1; then
12046 if test -d "$1"; then
12052 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12053 ???[sx]*):;;*)false;;esac;fi
12057 as_executable_p=$as_test_x
12059 # Sed expression to map a string onto a valid CPP name.
12060 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12062 # Sed expression to map a string onto a valid variable name.
12063 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12067 ## ----------------------------------- ##
12068 ## Main body of $CONFIG_STATUS script. ##
12069 ## ----------------------------------- ##
12071 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12073 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12074 # Save the log message, to keep $0 and so on meaningful, and to
12075 # report actual input values of CONFIG_FILES etc. instead of their
12076 # values after options handling.
12078 This file was extended by $as_me, which was
12079 generated by GNU Autoconf 2.68. Invocation command line was
12081 CONFIG_FILES = $CONFIG_FILES
12082 CONFIG_HEADERS = $CONFIG_HEADERS
12083 CONFIG_LINKS = $CONFIG_LINKS
12084 CONFIG_COMMANDS = $CONFIG_COMMANDS
12087 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12092 case $ac_config_files in *"
12093 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12096 case $ac_config_headers in *"
12097 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12101 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12102 # Files that config.status was made for.
12103 config_files="$ac_config_files"
12104 config_headers="$ac_config_headers"
12105 config_commands="$ac_config_commands"
12109 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12111 \`$as_me' instantiates files and other configuration actions
12112 from templates according to the current configuration. Unless the files
12113 and actions are specified as TAGs, all are instantiated by default.
12115 Usage: $0 [OPTION]... [TAG]...
12117 -h, --help print this help, then exit
12118 -V, --version print version number and configuration settings, then exit
12119 --config print configuration, then exit
12120 -q, --quiet, --silent
12121 do not print progress messages
12122 -d, --debug don't remove temporary files
12123 --recheck update $as_me by reconfiguring in the same conditions
12124 --file=FILE[:TEMPLATE]
12125 instantiate the configuration file FILE
12126 --header=FILE[:TEMPLATE]
12127 instantiate the configuration header FILE
12129 Configuration files:
12132 Configuration headers:
12135 Configuration commands:
12138 Report bugs to the package provider."
12141 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12142 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12145 configured by $0, generated by GNU Autoconf 2.68,
12146 with options \\"\$ac_cs_config\\"
12148 Copyright (C) 2010 Free Software Foundation, Inc.
12149 This config.status script is free software; the Free Software Foundation
12150 gives unlimited permission to copy, distribute and modify it."
12157 test -n "\$AWK" || AWK=awk
12160 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12161 # The default lists apply if the user does not specify any file.
12167 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12168 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12172 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12184 # Handling of the options.
12185 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12187 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12188 $as_echo "$ac_cs_version"; exit ;;
12189 --config | --confi | --conf | --con | --co | --c )
12190 $as_echo "$ac_cs_config"; exit ;;
12191 --debug | --debu | --deb | --de | --d | -d )
12193 --file | --fil | --fi | --f )
12196 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12197 '') as_fn_error $? "missing file argument" ;;
12199 as_fn_append CONFIG_FILES " '$ac_optarg'"
12200 ac_need_defaults=false;;
12201 --header | --heade | --head | --hea )
12204 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12206 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12207 ac_need_defaults=false;;
12209 # Conflict between --help and --header
12210 as_fn_error $? "ambiguous option: \`$1'
12211 Try \`$0 --help' for more information.";;
12212 --help | --hel | -h )
12213 $as_echo "$ac_cs_usage"; exit ;;
12214 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12215 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12218 # This is an error.
12219 -*) as_fn_error $? "unrecognized option: \`$1'
12220 Try \`$0 --help' for more information." ;;
12222 *) as_fn_append ac_config_targets " $1"
12223 ac_need_defaults=false ;;
12229 ac_configure_extra_args=
12231 if $ac_cs_silent; then
12233 ac_configure_extra_args="$ac_configure_extra_args --silent"
12237 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12238 if \$ac_cs_recheck; then
12239 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12241 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12242 CONFIG_SHELL='$SHELL'
12243 export CONFIG_SHELL
12248 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12252 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12253 ## Running $as_me. ##
12259 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12263 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
12264 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
12265 # from automake < 1.5.
12266 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
12267 # Capture the value of LINGUAS because we need it to compute CATALOGS.
12268 LINGUAS="${LINGUAS-%UNSET%}"
12270 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12274 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12276 # Handling of arguments.
12277 for ac_config_target in $ac_config_targets
12279 case $ac_config_target in
12280 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12281 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
12282 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12283 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12284 "abook.spec") CONFIG_FILES="$CONFIG_FILES abook.spec" ;;
12285 "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
12286 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
12288 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12293 # If the user did not use the arguments to specify the items to instantiate,
12294 # then the envvar interface is used. Set only those that are not.
12295 # We use the long form for the default assignment because of an extremely
12296 # bizarre bug on SunOS 4.1.3.
12297 if $ac_need_defaults; then
12298 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12299 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12300 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12303 # Have a temporary directory for convenience. Make it in the build tree
12304 # simply because there is no reason against having it here, and in addition,
12305 # creating and moving files from /tmp can sometimes cause problems.
12306 # Hook for its removal unless debugging.
12307 # Note that there is a small window in which the directory will not be cleaned:
12308 # after its creation but before its name has been assigned to `$tmp'.
12312 trap 'exit_status=$?
12313 : "${ac_tmp:=$tmp}"
12314 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12316 trap 'as_fn_exit 1' 1 2 13 15
12318 # Create a (secure) tmp directory for tmp files.
12321 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12325 tmp=./conf$$-$RANDOM
12326 (umask 077 && mkdir "$tmp")
12327 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12330 # Set up the scripts for CONFIG_FILES section.
12331 # No need to generate them if there are no CONFIG_FILES.
12332 # This happens for instance with `./config.status config.h'.
12333 if test -n "$CONFIG_FILES"; then
12336 ac_cr=`echo X | tr X '\015'`
12337 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12338 # But we know of no other shell where ac_cr would be empty at this
12339 # point, so we can use a bashism as a fallback.
12340 if test "x$ac_cr" = x; then
12341 eval ac_cr=\$\'\\r\'
12343 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12344 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12347 ac_cs_awk_cr=$ac_cr
12350 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12355 echo "cat >conf$$subs.awk <<_ACEOF" &&
12356 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12358 } >conf$$subs.sh ||
12359 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12360 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12362 for ac_last_try in false false false false false :; do
12363 . ./conf$$subs.sh ||
12364 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12366 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12367 if test $ac_delim_n = $ac_delim_num; then
12369 elif $ac_last_try; then
12370 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12372 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12375 rm -f conf$$subs.sh
12377 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12378 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12382 s/^/S["/; s/!.*/"]=/
12392 s/\(.\{148\}\)..*/\1/
12394 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12399 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12406 s/\(.\{148\}\)..*/\1/
12408 s/["\\]/\\&/g; s/^/"/; s/$/"/
12412 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12417 ' <conf$$subs.awk | sed '
12422 ' >>$CONFIG_STATUS || ac_write_fail=1
12423 rm -f conf$$subs.awk
12424 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12426 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12427 for (key in S) S_is_set[key] = 1
12433 nfields = split(line, field, "@")
12435 len = length(field[1])
12436 for (i = 2; i < nfields; i++) {
12438 keylen = length(key)
12439 if (S_is_set[key]) {
12441 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12442 len += length(value) + length(field[++i])
12453 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12454 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12455 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12458 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12459 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12462 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12463 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12464 # trailing colons and then remove the whole line if VPATH becomes empty
12465 # (actually we leave an empty line to preserve line numbers).
12466 if test "x$srcdir" = x.; then
12467 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12485 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12486 fi # test -n "$CONFIG_FILES"
12488 # Set up the scripts for CONFIG_HEADERS section.
12489 # No need to generate them if there are no CONFIG_HEADERS.
12490 # This happens for instance with `./config.status Makefile'.
12491 if test -n "$CONFIG_HEADERS"; then
12492 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12496 # Transform confdefs.h into an awk script `defines.awk', embedded as
12497 # here-document in config.status, that substitutes the proper values into
12498 # config.h.in to produce config.h.
12500 # Create a delimiter string that does not exist in confdefs.h, to ease
12501 # handling of long lines.
12503 for ac_last_try in false false :; do
12504 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12505 if test -z "$ac_tt"; then
12507 elif $ac_last_try; then
12508 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12510 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12514 # For the awk script, D is an array of macro values keyed by name,
12515 # likewise P contains macro parameters if any. Preserve backslash
12516 # newline sequences.
12518 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12520 s/.\{148\}/&'"$ac_delim"'/g
12523 s/^[ ]*#[ ]*define[ ][ ]*/ /
12530 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12532 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12536 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12537 D["\1"]=" \3\\\\\\n"\\/p
12539 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12544 s/.\{148\}/&'"$ac_delim"'/g
12549 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12552 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12554 ' <confdefs.h | sed '
12555 s/'"$ac_delim"'/"\\\
12556 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12558 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12559 for (key in D) D_is_set[key] = 1
12562 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12564 split(line, arg, " ")
12565 if (arg[1] == "#") {
12569 defundef = substr(arg[1], 2)
12572 split(mac1, mac2, "(") #)
12574 prefix = substr(line, 1, index(line, defundef) - 1)
12575 if (D_is_set[macro]) {
12576 # Preserve the white space surrounding the "#".
12577 print prefix "define", macro P[macro] D[macro]
12580 # Replace #undef with comments. This is necessary, for example,
12581 # in the case of _POSIX_SOURCE, which is predefined and required
12582 # on some systems where configure will not decide to define it.
12583 if (defundef == "undef") {
12584 print "/*", prefix defundef, macro, "*/"
12592 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12593 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12594 fi # test -n "$CONFIG_HEADERS"
12597 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12602 :[FHLC]) ac_mode=$ac_tag; continue;;
12604 case $ac_mode$ac_tag in
12606 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12607 :[FH]-) ac_tag=-:-;;
12608 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12625 -) ac_f="$ac_tmp/stdin";;
12626 *) # Look for the file first in the build tree, then in the source tree
12627 # (if the path is not absolute). The absolute path cannot be DOS-style,
12628 # because $ac_f cannot contain `:'.
12632 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12634 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12636 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12637 as_fn_append ac_file_inputs " '$ac_f'"
12640 # Let's still pretend it is `configure' which instantiates (i.e., don't
12641 # use $as_me), people would be surprised to read:
12642 # /* config.h. Generated by config.status. */
12643 configure_input='Generated from '`
12644 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12646 if test x"$ac_file" != x-; then
12647 configure_input="$ac_file. $configure_input"
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12649 $as_echo "$as_me: creating $ac_file" >&6;}
12651 # Neutralize special characters interpreted by sed in replacement strings.
12652 case $configure_input in #(
12653 *\&* | *\|* | *\\* )
12654 ac_sed_conf_input=`$as_echo "$configure_input" |
12655 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12656 *) ac_sed_conf_input=$configure_input;;
12660 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12661 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12666 ac_dir=`$as_dirname -- "$ac_file" ||
12667 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12668 X"$ac_file" : 'X\(//\)[^/]' \| \
12669 X"$ac_file" : 'X\(//\)$' \| \
12670 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12671 $as_echo X"$ac_file" |
12672 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12676 /^X\(\/\/\)[^/].*/{
12689 as_dir="$ac_dir"; as_fn_mkdir_p
12693 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12695 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12696 # A ".." for each directory in $ac_dir_suffix.
12697 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12698 case $ac_top_builddir_sub in
12699 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12700 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12703 ac_abs_top_builddir=$ac_pwd
12704 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12705 # for backward compatibility:
12706 ac_top_builddir=$ac_top_build_prefix
12709 .) # We are building in place.
12711 ac_top_srcdir=$ac_top_builddir_sub
12712 ac_abs_top_srcdir=$ac_pwd ;;
12713 [\\/]* | ?:[\\/]* ) # Absolute name.
12714 ac_srcdir=$srcdir$ac_dir_suffix;
12715 ac_top_srcdir=$srcdir
12716 ac_abs_top_srcdir=$srcdir ;;
12717 *) # Relative name.
12718 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12719 ac_top_srcdir=$ac_top_build_prefix$srcdir
12720 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12722 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12732 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12733 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12735 ac_MKDIR_P=$MKDIR_P
12737 [\\/$]* | ?:[\\/]* ) ;;
12738 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12742 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12743 # If the template does not know about datarootdir, expand it.
12744 # FIXME: This hack should be removed a few years after 2.60.
12745 ac_datarootdir_hack=; ac_datarootdir_seen=
12756 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12757 *datarootdir*) ac_datarootdir_seen=yes;;
12758 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12759 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12760 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12762 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12763 ac_datarootdir_hack='
12764 s&@datadir@&$datadir&g
12765 s&@docdir@&$docdir&g
12766 s&@infodir@&$infodir&g
12767 s&@localedir@&$localedir&g
12768 s&@mandir@&$mandir&g
12769 s&\\\${datarootdir}&$datarootdir&g' ;;
12773 # Neutralize VPATH when `$srcdir' = `.'.
12774 # Shell code in configure.ac might set extrasub.
12775 # FIXME: do we really want to maintain this feature?
12776 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12777 ac_sed_extra="$ac_vpsub
12780 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12782 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12783 s|@configure_input@|$ac_sed_conf_input|;t t
12784 s&@top_builddir@&$ac_top_builddir_sub&;t t
12785 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12786 s&@srcdir@&$ac_srcdir&;t t
12787 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12788 s&@top_srcdir@&$ac_top_srcdir&;t t
12789 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12790 s&@builddir@&$ac_builddir&;t t
12791 s&@abs_builddir@&$ac_abs_builddir&;t t
12792 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12793 s&@INSTALL@&$ac_INSTALL&;t t
12794 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12795 $ac_datarootdir_hack
12797 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12798 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12800 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12801 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12802 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12803 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12805 which seems to be undefined. Please make sure it is defined" >&5
12806 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12807 which seems to be undefined. Please make sure it is defined" >&2;}
12809 rm -f "$ac_tmp/stdin"
12811 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12812 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12814 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12820 if test x"$ac_file" != x-; then
12822 $as_echo "/* $configure_input */" \
12823 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12824 } >"$ac_tmp/config.h" \
12825 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12826 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12827 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12828 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12831 mv "$ac_tmp/config.h" "$ac_file" \
12832 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12835 $as_echo "/* $configure_input */" \
12836 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12837 || as_fn_error $? "could not create -" "$LINENO" 5
12839 # Compute "$ac_file"'s index in $config_headers.
12842 for _am_header in $config_headers :; do
12843 case $_am_header in
12844 $_am_arg | $_am_arg:* )
12847 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12850 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12851 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12852 X"$_am_arg" : 'X\(//\)[^/]' \| \
12853 X"$_am_arg" : 'X\(//\)$' \| \
12854 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12855 $as_echo X"$_am_arg" |
12856 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12860 /^X\(\/\/\)[^/].*/{
12872 s/.*/./; q'`/stamp-h$_am_stamp_count
12875 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12876 $as_echo "$as_me: executing $ac_file commands" >&6;}
12881 case $ac_file$ac_mode in
12882 "po-directories":C)
12883 for ac_file in $CONFIG_FILES; do
12884 # Support "outfile[:infile[:infile...]]"
12886 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12888 # PO directories have a Makefile.in generated from Makefile.in.in.
12889 case "$ac_file" in */Makefile.in)
12890 # Adjust a relative srcdir.
12891 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
12892 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
12893 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
12894 # In autoconf-2.13 it is called $ac_given_srcdir.
12895 # In autoconf-2.50 it is called $srcdir.
12896 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
12897 case "$ac_given_srcdir" in
12898 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
12899 /*) top_srcdir="$ac_given_srcdir" ;;
12900 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
12902 # Treat a directory as a PO directory if and only if it has a
12903 # POTFILES.in file. This allows packages to have multiple PO
12904 # directories under different names or in different locations.
12905 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
12906 rm -f "$ac_dir/POTFILES"
12907 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
12908 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
12909 POMAKEFILEDEPS="POTFILES.in"
12910 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
12911 # on $ac_dir but don't depend on user-specified configuration
12913 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
12914 # The LINGUAS file contains the set of available languages.
12915 if test -n "$OBSOLETE_ALL_LINGUAS"; then
12916 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
12918 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
12919 # Hide the ALL_LINGUAS assigment from automake < 1.5.
12920 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
12921 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
12923 # The set of available languages was given in configure.in.
12924 # Hide the ALL_LINGUAS assigment from automake < 1.5.
12925 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
12928 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
12929 # Compute UPDATEPOFILES
12930 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
12931 # Compute DUMMYPOFILES
12932 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
12934 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
12935 case "$ac_given_srcdir" in
12937 *) srcdirpre='$(srcdir)/' ;;
12943 for lang in $ALL_LINGUAS; do
12944 POFILES="$POFILES $srcdirpre$lang.po"
12945 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
12946 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
12947 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
12949 # CATALOGS depends on both $ac_dir and the user's LINGUAS
12950 # environment variable.
12952 if test -n "$ALL_LINGUAS"; then
12953 for presentlang in $ALL_LINGUAS; do
12955 if test "%UNSET%" != "$LINGUAS"; then
12956 desiredlanguages="$LINGUAS"
12958 desiredlanguages="$ALL_LINGUAS"
12960 for desiredlang in $desiredlanguages; do
12961 # Use the presentlang catalog if desiredlang is
12962 # a. equal to presentlang, or
12963 # b. a variant of presentlang (because in this case,
12964 # presentlang can be used as a fallback for messages
12965 # which are not translated in the desiredlang catalog).
12966 case "$desiredlang" in
12967 "$presentlang"*) useit=yes;;
12970 if test $useit = yes; then
12971 INST_LINGUAS="$INST_LINGUAS $presentlang"
12976 if test -n "$INST_LINGUAS"; then
12977 for lang in $INST_LINGUAS; do
12978 CATALOGS="$CATALOGS $lang.gmo"
12981 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
12982 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"
12983 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
12984 if test -f "$f"; then
12986 *.orig | *.bak | *~) ;;
12987 *) cat "$f" >> "$ac_dir/Makefile" ;;
12995 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12996 # Autoconf 2.62 quotes --file arguments for eval, but not when files
12997 # are listed without --file. Let's play safe and only enable the eval
12998 # if we detect the quoting.
12999 case $CONFIG_FILES in
13000 *\'*) eval set x "$CONFIG_FILES" ;;
13001 *) set x $CONFIG_FILES ;;
13006 # Strip MF so we end up with the name of the file.
13007 mf=`echo "$mf" | sed -e 's/:.*$//'`
13008 # Check whether this is an Automake generated Makefile or not.
13009 # We used to match only the files named `Makefile.in', but
13010 # some people rename them; so instead we look at the file content.
13011 # Grep'ing the first line is not enough: some people post-process
13012 # each Makefile.in and add a new line on top of each file to say so.
13013 # Grep'ing the whole file is not good either: AIX grep has a line
13014 # limit of 2048, but all sed's we know have understand at least 4000.
13015 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13016 dirpart=`$as_dirname -- "$mf" ||
13017 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13018 X"$mf" : 'X\(//\)[^/]' \| \
13019 X"$mf" : 'X\(//\)$' \| \
13020 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13022 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13026 /^X\(\/\/\)[^/].*/{
13042 # Extract the definition of DEPDIR, am__include, and am__quote
13043 # from the Makefile without running `make'.
13044 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13045 test -z "$DEPDIR" && continue
13046 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13047 test -z "am__include" && continue
13048 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13049 # When using ansi2knr, U may be empty or an underscore; expand it
13050 U=`sed -n 's/^U = //p' < "$mf"`
13051 # Find all dependency output files, they are included files with
13052 # $(DEPDIR) in their names. We invoke sed twice because it is the
13053 # simplest approach to changing $(DEPDIR) to its actual value in the
13055 for file in `sed -n "
13056 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13057 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13058 # Make sure the directory exists.
13059 test -f "$dirpart/$file" && continue
13060 fdir=`$as_dirname -- "$file" ||
13061 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13062 X"$file" : 'X\(//\)[^/]' \| \
13063 X"$file" : 'X\(//\)$' \| \
13064 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13065 $as_echo X"$file" |
13066 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13070 /^X\(\/\/\)[^/].*/{
13083 as_dir=$dirpart/$fdir; as_fn_mkdir_p
13084 # echo "creating $dirpart/$file"
13085 echo '# dummy' > "$dirpart/$file"
13097 ac_clean_files=$ac_clean_files_save
13099 test $ac_write_fail = 0 ||
13100 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13103 # configure is writing to config.log, and then calls config.status.
13104 # config.status does its own redirection, appending to config.log.
13105 # Unfortunately, on DOS this fails, as config.log is still kept open
13106 # by configure, so config.status won't be able to write to it; its
13107 # output is simply discarded. So we exec the FD to /dev/null,
13108 # effectively closing config.log, so it can be properly (re)opened and
13109 # appended to by config.status. When coming back to configure, we
13110 # need to make the FD available again.
13111 if test "$no_create" != yes; then
13113 ac_config_status_args=
13114 test "$silent" = yes &&
13115 ac_config_status_args="$ac_config_status_args --quiet"
13117 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13119 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13120 # would make configure fail if this is the last instruction.
13121 $ac_cs_success || as_fn_exit 1
13123 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13125 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}