2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
147 *v*x* | *x*v* ) as_opts=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 test -z "$as_dir" && as_dir=.
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
238 if test "x$CONFIG_SHELL" != x; then :
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
248 *v*x* | *x*v* ) as_opts=-vx ;;
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
276 SHELL=${CONFIG_SHELL-/bin/sh}
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
287 # Portably unset VAR.
290 { eval $1=; unset $1;}
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
314 # Create "$as_dir" as a directory, including parents if necessary.
319 -*) as_dir=./$as_dir;;
321 test -d "$as_dir" || eval $as_mkdir_p || {
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
352 test -d "$as_dir" && break
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
398 as_val=`expr "$@" || test $? -eq 1`
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
410 as_status=$1; test $as_status -eq 0 && as_status=1
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
496 # Exit status is that of the last command.
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
518 mkdir conf$$.dir 2>/dev/null
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
529 elif ln conf$$.file conf$$ 2>/dev/null; then
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
543 test -d ./-p && rmdir ./-p
548 as_executable_p=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" || exec 7<&0 </dev/null
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
568 ac_default_prefix=/usr/local
570 ac_config_libobj_dir=.
577 # Identity of this package.
585 ac_unique_file="abook.c"
586 # Factoring default headers for most tests.
587 ac_includes_default="\
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
599 # ifdef HAVE_STDLIB_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
623 ac_subst_vars='am__EXEEXT_FALSE
627 ENABLE_VFORMAT_SUPPORT_FALSE
628 ENABLE_VFORMAT_SUPPORT_TRUE
631 USE_INCLUDED_INTL_H_FALSE
632 USE_INCLUDED_INTL_H_TRUE
648 XGETTEXT_EXTRA_OPTIONS
656 GETTEXT_MACRO_VERSION
686 INSTALL_STRIP_PROGRAM
728 program_transform_name
741 enable_option_checking
742 enable_dependency_tracking
754 ac_precious_vars='build_alias
765 # Initialize some variables set by options.
767 ac_init_version=false
768 ac_unrecognized_opts=
770 # The variables have the same names as the options, with
771 # dashes changed to underlines.
779 program_transform_name=s,x,x,
787 # Installation directory options.
788 # These are left unexpanded so users can "make install exec_prefix=/foo"
789 # and all the variables that are supposed to be based on exec_prefix
790 # by default will actually change.
791 # Use braces instead of parens because sh, perl, etc. also accept them.
792 # (The list follows the same order as the GNU Coding Standards.)
793 bindir='${exec_prefix}/bin'
794 sbindir='${exec_prefix}/sbin'
795 libexecdir='${exec_prefix}/libexec'
796 datarootdir='${prefix}/share'
797 datadir='${datarootdir}'
798 sysconfdir='${prefix}/etc'
799 sharedstatedir='${prefix}/com'
800 localstatedir='${prefix}/var'
801 includedir='${prefix}/include'
802 oldincludedir='/usr/include'
803 docdir='${datarootdir}/doc/${PACKAGE}'
804 infodir='${datarootdir}/info'
809 libdir='${exec_prefix}/lib'
810 localedir='${datarootdir}/locale'
811 mandir='${datarootdir}/man'
817 # If the previous option needs an argument, assign it.
818 if test -n "$ac_prev"; then
819 eval $ac_prev=\$ac_option
825 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
830 # Accept the important Cygnus configure options, so we can diagnose typos.
832 case $ac_dashdash$ac_option in
836 -bindir | --bindir | --bindi | --bind | --bin | --bi)
838 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
841 -build | --build | --buil | --bui | --bu)
842 ac_prev=build_alias ;;
843 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
844 build_alias=$ac_optarg ;;
846 -cache-file | --cache-file | --cache-fil | --cache-fi \
847 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
848 ac_prev=cache_file ;;
849 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
850 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
851 cache_file=$ac_optarg ;;
854 cache_file=config.cache ;;
856 -datadir | --datadir | --datadi | --datad)
858 -datadir=* | --datadir=* | --datadi=* | --datad=*)
859 datadir=$ac_optarg ;;
861 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
862 | --dataroo | --dataro | --datar)
863 ac_prev=datarootdir ;;
864 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
865 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
866 datarootdir=$ac_optarg ;;
868 -disable-* | --disable-*)
869 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
870 # Reject names that are not valid shell variable names.
871 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
872 as_fn_error $? "invalid feature name: $ac_useropt"
873 ac_useropt_orig=$ac_useropt
874 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
875 case $ac_user_opts in
879 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
880 ac_unrecognized_sep=', ';;
882 eval enable_$ac_useropt=no ;;
884 -docdir | --docdir | --docdi | --doc | --do)
886 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
889 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
891 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
894 -enable-* | --enable-*)
895 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
896 # Reject names that are not valid shell variable names.
897 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
898 as_fn_error $? "invalid feature name: $ac_useropt"
899 ac_useropt_orig=$ac_useropt
900 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
901 case $ac_user_opts in
905 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
906 ac_unrecognized_sep=', ';;
908 eval enable_$ac_useropt=\$ac_optarg ;;
910 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
911 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
912 | --exec | --exe | --ex)
913 ac_prev=exec_prefix ;;
914 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
915 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
916 | --exec=* | --exe=* | --ex=*)
917 exec_prefix=$ac_optarg ;;
919 -gas | --gas | --ga | --g)
920 # Obsolete; use --with-gas.
923 -help | --help | --hel | --he | -h)
925 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
926 ac_init_help=recursive ;;
927 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
928 ac_init_help=short ;;
930 -host | --host | --hos | --ho)
931 ac_prev=host_alias ;;
932 -host=* | --host=* | --hos=* | --ho=*)
933 host_alias=$ac_optarg ;;
935 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
937 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
939 htmldir=$ac_optarg ;;
941 -includedir | --includedir | --includedi | --included | --include \
942 | --includ | --inclu | --incl | --inc)
943 ac_prev=includedir ;;
944 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
945 | --includ=* | --inclu=* | --incl=* | --inc=*)
946 includedir=$ac_optarg ;;
948 -infodir | --infodir | --infodi | --infod | --info | --inf)
950 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
951 infodir=$ac_optarg ;;
953 -libdir | --libdir | --libdi | --libd)
955 -libdir=* | --libdir=* | --libdi=* | --libd=*)
958 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
959 | --libexe | --libex | --libe)
960 ac_prev=libexecdir ;;
961 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
962 | --libexe=* | --libex=* | --libe=*)
963 libexecdir=$ac_optarg ;;
965 -localedir | --localedir | --localedi | --localed | --locale)
967 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
968 localedir=$ac_optarg ;;
970 -localstatedir | --localstatedir | --localstatedi | --localstated \
971 | --localstate | --localstat | --localsta | --localst | --locals)
972 ac_prev=localstatedir ;;
973 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
974 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
975 localstatedir=$ac_optarg ;;
977 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
979 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
983 # Obsolete; use --without-fp.
986 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
987 | --no-cr | --no-c | -n)
990 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
991 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
994 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
995 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
996 | --oldin | --oldi | --old | --ol | --o)
997 ac_prev=oldincludedir ;;
998 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
999 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1000 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1001 oldincludedir=$ac_optarg ;;
1003 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1005 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1006 prefix=$ac_optarg ;;
1008 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1009 | --program-pre | --program-pr | --program-p)
1010 ac_prev=program_prefix ;;
1011 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1012 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1013 program_prefix=$ac_optarg ;;
1015 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1016 | --program-suf | --program-su | --program-s)
1017 ac_prev=program_suffix ;;
1018 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1019 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1020 program_suffix=$ac_optarg ;;
1022 -program-transform-name | --program-transform-name \
1023 | --program-transform-nam | --program-transform-na \
1024 | --program-transform-n | --program-transform- \
1025 | --program-transform | --program-transfor \
1026 | --program-transfo | --program-transf \
1027 | --program-trans | --program-tran \
1028 | --progr-tra | --program-tr | --program-t)
1029 ac_prev=program_transform_name ;;
1030 -program-transform-name=* | --program-transform-name=* \
1031 | --program-transform-nam=* | --program-transform-na=* \
1032 | --program-transform-n=* | --program-transform-=* \
1033 | --program-transform=* | --program-transfor=* \
1034 | --program-transfo=* | --program-transf=* \
1035 | --program-trans=* | --program-tran=* \
1036 | --progr-tra=* | --program-tr=* | --program-t=*)
1037 program_transform_name=$ac_optarg ;;
1039 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1041 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1042 pdfdir=$ac_optarg ;;
1044 -psdir | --psdir | --psdi | --psd | --ps)
1046 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1049 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1050 | -silent | --silent | --silen | --sile | --sil)
1053 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1055 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1057 sbindir=$ac_optarg ;;
1059 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1060 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1061 | --sharedst | --shareds | --shared | --share | --shar \
1063 ac_prev=sharedstatedir ;;
1064 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1065 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1066 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1068 sharedstatedir=$ac_optarg ;;
1070 -site | --site | --sit)
1072 -site=* | --site=* | --sit=*)
1075 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1077 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1078 srcdir=$ac_optarg ;;
1080 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1081 | --syscon | --sysco | --sysc | --sys | --sy)
1082 ac_prev=sysconfdir ;;
1083 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1084 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1085 sysconfdir=$ac_optarg ;;
1087 -target | --target | --targe | --targ | --tar | --ta | --t)
1088 ac_prev=target_alias ;;
1089 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1090 target_alias=$ac_optarg ;;
1092 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1095 -version | --version | --versio | --versi | --vers | -V)
1096 ac_init_version=: ;;
1099 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1100 # Reject names that are not valid shell variable names.
1101 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1102 as_fn_error $? "invalid package name: $ac_useropt"
1103 ac_useropt_orig=$ac_useropt
1104 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1105 case $ac_user_opts in
1109 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1110 ac_unrecognized_sep=', ';;
1112 eval with_$ac_useropt=\$ac_optarg ;;
1114 -without-* | --without-*)
1115 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1116 # Reject names that are not valid shell variable names.
1117 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1118 as_fn_error $? "invalid package name: $ac_useropt"
1119 ac_useropt_orig=$ac_useropt
1120 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1121 case $ac_user_opts in
1125 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1126 ac_unrecognized_sep=', ';;
1128 eval with_$ac_useropt=no ;;
1131 # Obsolete; use --with-x.
1134 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1135 | --x-incl | --x-inc | --x-in | --x-i)
1136 ac_prev=x_includes ;;
1137 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1138 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1139 x_includes=$ac_optarg ;;
1141 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1142 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1143 ac_prev=x_libraries ;;
1144 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1145 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1146 x_libraries=$ac_optarg ;;
1148 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1149 Try \`$0 --help' for more information"
1153 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1154 # Reject names that are not valid shell variable names.
1155 case $ac_envvar in #(
1156 '' | [0-9]* | *[!_$as_cr_alnum]* )
1157 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1159 eval $ac_envvar=\$ac_optarg
1160 export $ac_envvar ;;
1163 # FIXME: should be removed in autoconf 3.0.
1164 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1165 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1166 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1167 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1173 if test -n "$ac_prev"; then
1174 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1175 as_fn_error $? "missing argument to $ac_option"
1178 if test -n "$ac_unrecognized_opts"; then
1179 case $enable_option_checking in
1181 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1182 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1186 # Check all directory arguments for consistency.
1187 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1188 datadir sysconfdir sharedstatedir localstatedir includedir \
1189 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1190 libdir localedir mandir
1192 eval ac_val=\$$ac_var
1193 # Remove trailing slashes.
1196 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1197 eval $ac_var=\$ac_val;;
1199 # Be sure to have absolute directory names.
1201 [\\/$]* | ?:[\\/]* ) continue;;
1202 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1204 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1207 # There might be people who depend on the old broken behavior: `$host'
1208 # used to hold the argument of --host etc.
1209 # FIXME: To remove some day.
1212 target=$target_alias
1214 # FIXME: To remove some day.
1215 if test "x$host_alias" != x; then
1216 if test "x$build_alias" = x; then
1217 cross_compiling=maybe
1218 elif test "x$build_alias" != "x$host_alias"; then
1224 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1226 test "$silent" = yes && exec 6>/dev/null
1229 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1230 ac_ls_di=`ls -di .` &&
1231 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1232 as_fn_error $? "working directory cannot be determined"
1233 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1234 as_fn_error $? "pwd does not report name of working directory"
1237 # Find the source files, if location was not specified.
1238 if test -z "$srcdir"; then
1239 ac_srcdir_defaulted=yes
1240 # Try the directory containing this script, then the parent directory.
1241 ac_confdir=`$as_dirname -- "$as_myself" ||
1242 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1243 X"$as_myself" : 'X\(//\)[^/]' \| \
1244 X"$as_myself" : 'X\(//\)$' \| \
1245 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1246 $as_echo X"$as_myself" |
1247 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1265 if test ! -r "$srcdir/$ac_unique_file"; then
1269 ac_srcdir_defaulted=no
1271 if test ! -r "$srcdir/$ac_unique_file"; then
1272 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1273 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1275 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1277 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1279 # When building in place, set srcdir=.
1280 if test "$ac_abs_confdir" = "$ac_pwd"; then
1283 # Remove unnecessary trailing slashes from srcdir.
1284 # Double slashes in file names in object file debugging info
1285 # mess up M-x gdb in Emacs.
1287 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1289 for ac_var in $ac_precious_vars; do
1290 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1291 eval ac_env_${ac_var}_value=\$${ac_var}
1292 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1293 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1297 # Report the --help message.
1299 if test "$ac_init_help" = "long"; then
1300 # Omit some internal or obsolete options to make the list less imposing.
1301 # This message is too long to be a string in the A/UX 3.1 sh.
1303 \`configure' configures this package to adapt to many kinds of systems.
1305 Usage: $0 [OPTION]... [VAR=VALUE]...
1307 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1308 VAR=VALUE. See below for descriptions of some of the useful variables.
1310 Defaults for the options are specified in brackets.
1313 -h, --help display this help and exit
1314 --help=short display options specific to this package
1315 --help=recursive display the short help of all the included packages
1316 -V, --version display version information and exit
1317 -q, --quiet, --silent do not print \`checking ...' messages
1318 --cache-file=FILE cache test results in FILE [disabled]
1319 -C, --config-cache alias for \`--cache-file=config.cache'
1320 -n, --no-create do not create output files
1321 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1323 Installation directories:
1324 --prefix=PREFIX install architecture-independent files in PREFIX
1325 [$ac_default_prefix]
1326 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1329 By default, \`make install' will install all the files in
1330 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1331 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1332 for instance \`--prefix=\$HOME'.
1334 For better control, use the options below.
1336 Fine tuning of the installation directories:
1337 --bindir=DIR user executables [EPREFIX/bin]
1338 --sbindir=DIR system admin executables [EPREFIX/sbin]
1339 --libexecdir=DIR program executables [EPREFIX/libexec]
1340 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1341 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1342 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1343 --libdir=DIR object code libraries [EPREFIX/lib]
1344 --includedir=DIR C header files [PREFIX/include]
1345 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1346 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1347 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1348 --infodir=DIR info documentation [DATAROOTDIR/info]
1349 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1350 --mandir=DIR man documentation [DATAROOTDIR/man]
1351 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1352 --htmldir=DIR html documentation [DOCDIR]
1353 --dvidir=DIR dvi documentation [DOCDIR]
1354 --pdfdir=DIR pdf documentation [DOCDIR]
1355 --psdir=DIR ps documentation [DOCDIR]
1361 --program-prefix=PREFIX prepend PREFIX to installed program names
1362 --program-suffix=SUFFIX append SUFFIX to installed program names
1363 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1366 --build=BUILD configure for building on BUILD [guessed]
1367 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1371 if test -n "$ac_init_help"; then
1376 --disable-option-checking ignore unrecognized --enable/--with options
1377 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1378 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1379 --disable-dependency-tracking speeds up one-time build
1380 --enable-dependency-tracking do not reject slow dependency extractors
1381 --disable-nls do not use Native Language Support
1382 --disable-rpath do not hardcode runtime library paths
1383 --enable-vformat Use libvformat is available
1384 --enable-debug Enable debugging support
1387 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1388 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1389 --with-gnu-ld assume the C compiler uses GNU ld default=no
1390 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1391 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1392 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1393 --without-libintl-prefix don't search for libintl in includedir and libdir
1394 --with-localedir=PATH Where the locale files are installed
1395 --with-curses=DIR Where ncurses is installed
1396 --with-readline=DIR Where readline is installed
1398 Some influential environment variables:
1399 CC C compiler command
1400 CFLAGS C compiler flags
1401 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1402 nonstandard directory <lib dir>
1403 LIBS libraries to pass to the linker, e.g. -l<library>
1404 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1405 you have headers in a nonstandard directory <include dir>
1408 Use these variables to override the choices made by `configure' or to help
1409 it to find libraries and programs with nonstandard names/locations.
1411 Report bugs to the package provider.
1416 if test "$ac_init_help" = "recursive"; then
1417 # If there are subdirs, report their specific --help.
1418 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1419 test -d "$ac_dir" ||
1420 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1425 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1427 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1428 # A ".." for each directory in $ac_dir_suffix.
1429 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1430 case $ac_top_builddir_sub in
1431 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1432 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1435 ac_abs_top_builddir=$ac_pwd
1436 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1437 # for backward compatibility:
1438 ac_top_builddir=$ac_top_build_prefix
1441 .) # We are building in place.
1443 ac_top_srcdir=$ac_top_builddir_sub
1444 ac_abs_top_srcdir=$ac_pwd ;;
1445 [\\/]* | ?:[\\/]* ) # Absolute name.
1446 ac_srcdir=$srcdir$ac_dir_suffix;
1447 ac_top_srcdir=$srcdir
1448 ac_abs_top_srcdir=$srcdir ;;
1450 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1451 ac_top_srcdir=$ac_top_build_prefix$srcdir
1452 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1454 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1456 cd "$ac_dir" || { ac_status=$?; continue; }
1457 # Check for guested configure.
1458 if test -f "$ac_srcdir/configure.gnu"; then
1460 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1461 elif test -f "$ac_srcdir/configure"; then
1463 $SHELL "$ac_srcdir/configure" --help=recursive
1465 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1467 cd "$ac_pwd" || { ac_status=$?; break; }
1471 test -n "$ac_init_help" && exit $ac_status
1472 if $ac_init_version; then
1475 generated by GNU Autoconf 2.69
1477 Copyright (C) 2012 Free Software Foundation, Inc.
1478 This configure script is free software; the Free Software Foundation
1479 gives unlimited permission to copy, distribute and modify it.
1484 ## ------------------------ ##
1485 ## Autoconf initialization. ##
1486 ## ------------------------ ##
1488 # ac_fn_c_try_compile LINENO
1489 # --------------------------
1490 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1491 ac_fn_c_try_compile ()
1493 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1494 rm -f conftest.$ac_objext
1495 if { { ac_try="$ac_compile"
1497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1498 *) ac_try_echo=$ac_try;;
1500 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1501 $as_echo "$ac_try_echo"; } >&5
1502 (eval "$ac_compile") 2>conftest.err
1504 if test -s conftest.err; then
1505 grep -v '^ *+' conftest.err >conftest.er1
1506 cat conftest.er1 >&5
1507 mv -f conftest.er1 conftest.err
1509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1510 test $ac_status = 0; } && {
1511 test -z "$ac_c_werror_flag" ||
1512 test ! -s conftest.err
1513 } && test -s conftest.$ac_objext; then :
1516 $as_echo "$as_me: failed program was:" >&5
1517 sed 's/^/| /' conftest.$ac_ext >&5
1521 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1522 as_fn_set_status $ac_retval
1524 } # ac_fn_c_try_compile
1526 # ac_fn_c_try_cpp LINENO
1527 # ----------------------
1528 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1531 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1532 if { { ac_try="$ac_cpp conftest.$ac_ext"
1534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1535 *) ac_try_echo=$ac_try;;
1537 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1538 $as_echo "$ac_try_echo"; } >&5
1539 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1541 if test -s conftest.err; then
1542 grep -v '^ *+' conftest.err >conftest.er1
1543 cat conftest.er1 >&5
1544 mv -f conftest.er1 conftest.err
1546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1547 test $ac_status = 0; } > conftest.i && {
1548 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1549 test ! -s conftest.err
1553 $as_echo "$as_me: failed program was:" >&5
1554 sed 's/^/| /' conftest.$ac_ext >&5
1558 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1559 as_fn_set_status $ac_retval
1563 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1564 # -------------------------------------------------------
1565 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1566 # the include files in INCLUDES and setting the cache variable VAR
1568 ac_fn_c_check_header_mongrel ()
1570 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1571 if eval \${$3+:} false; then :
1572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1573 $as_echo_n "checking for $2... " >&6; }
1574 if eval \${$3+:} false; then :
1575 $as_echo_n "(cached) " >&6
1578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1579 $as_echo "$ac_res" >&6; }
1581 # Is the header compilable?
1582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1583 $as_echo_n "checking $2 usability... " >&6; }
1584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1585 /* end confdefs.h. */
1589 if ac_fn_c_try_compile "$LINENO"; then :
1590 ac_header_compiler=yes
1592 ac_header_compiler=no
1594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1596 $as_echo "$ac_header_compiler" >&6; }
1598 # Is the header present?
1599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1600 $as_echo_n "checking $2 presence... " >&6; }
1601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1602 /* end confdefs.h. */
1605 if ac_fn_c_try_cpp "$LINENO"; then :
1606 ac_header_preproc=yes
1608 ac_header_preproc=no
1610 rm -f conftest.err conftest.i conftest.$ac_ext
1611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1612 $as_echo "$ac_header_preproc" >&6; }
1614 # So? What about this header?
1615 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1618 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1620 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1624 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1626 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1628 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1630 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1632 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1636 $as_echo_n "checking for $2... " >&6; }
1637 if eval \${$3+:} false; then :
1638 $as_echo_n "(cached) " >&6
1640 eval "$3=\$ac_header_compiler"
1643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1644 $as_echo "$ac_res" >&6; }
1646 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1648 } # ac_fn_c_check_header_mongrel
1650 # ac_fn_c_try_run LINENO
1651 # ----------------------
1652 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1653 # that executables *can* be run.
1656 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1657 if { { ac_try="$ac_link"
1659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1660 *) ac_try_echo=$ac_try;;
1662 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1663 $as_echo "$ac_try_echo"; } >&5
1664 (eval "$ac_link") 2>&5
1666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1667 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1668 { { case "(($ac_try" in
1669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1670 *) ac_try_echo=$ac_try;;
1672 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1673 $as_echo "$ac_try_echo"; } >&5
1674 (eval "$ac_try") 2>&5
1676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1677 test $ac_status = 0; }; }; then :
1680 $as_echo "$as_me: program exited with status $ac_status" >&5
1681 $as_echo "$as_me: failed program was:" >&5
1682 sed 's/^/| /' conftest.$ac_ext >&5
1684 ac_retval=$ac_status
1686 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1687 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1688 as_fn_set_status $ac_retval
1692 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1693 # -------------------------------------------------------
1694 # Tests whether HEADER exists and can be compiled using the include files in
1695 # INCLUDES, setting the cache variable VAR accordingly.
1696 ac_fn_c_check_header_compile ()
1698 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1700 $as_echo_n "checking for $2... " >&6; }
1701 if eval \${$3+:} false; then :
1702 $as_echo_n "(cached) " >&6
1704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1705 /* end confdefs.h. */
1709 if ac_fn_c_try_compile "$LINENO"; then :
1714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1718 $as_echo "$ac_res" >&6; }
1719 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1721 } # ac_fn_c_check_header_compile
1723 # ac_fn_c_try_link LINENO
1724 # -----------------------
1725 # Try to link conftest.$ac_ext, and return whether this succeeded.
1728 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1729 rm -f conftest.$ac_objext conftest$ac_exeext
1730 if { { ac_try="$ac_link"
1732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1733 *) ac_try_echo=$ac_try;;
1735 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1736 $as_echo "$ac_try_echo"; } >&5
1737 (eval "$ac_link") 2>conftest.err
1739 if test -s conftest.err; then
1740 grep -v '^ *+' conftest.err >conftest.er1
1741 cat conftest.er1 >&5
1742 mv -f conftest.er1 conftest.err
1744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1745 test $ac_status = 0; } && {
1746 test -z "$ac_c_werror_flag" ||
1747 test ! -s conftest.err
1748 } && test -s conftest$ac_exeext && {
1749 test "$cross_compiling" = yes ||
1750 test -x conftest$ac_exeext
1754 $as_echo "$as_me: failed program was:" >&5
1755 sed 's/^/| /' conftest.$ac_ext >&5
1759 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1760 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1761 # interfere with the next link command; also delete a directory that is
1762 # left behind by Apple's compiler. We do this before executing the actions.
1763 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1764 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1765 as_fn_set_status $ac_retval
1767 } # ac_fn_c_try_link
1769 # ac_fn_c_check_func LINENO FUNC VAR
1770 # ----------------------------------
1771 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1772 ac_fn_c_check_func ()
1774 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1776 $as_echo_n "checking for $2... " >&6; }
1777 if eval \${$3+:} false; then :
1778 $as_echo_n "(cached) " >&6
1780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1781 /* end confdefs.h. */
1782 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1783 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1784 #define $2 innocuous_$2
1786 /* System header to define __stub macros and hopefully few prototypes,
1787 which can conflict with char $2 (); below.
1788 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1789 <limits.h> exists even on freestanding compilers. */
1792 # include <limits.h>
1794 # include <assert.h>
1799 /* Override any GCC internal prototype to avoid an error.
1800 Use char because int might match the return type of a GCC
1801 builtin and then its argument prototype would still apply. */
1806 /* The GNU C library defines this for functions which it implements
1807 to always fail with ENOSYS. Some functions are actually named
1808 something starting with __ and the normal name is an alias. */
1809 #if defined __stub_$2 || defined __stub___$2
1821 if ac_fn_c_try_link "$LINENO"; then :
1826 rm -f core conftest.err conftest.$ac_objext \
1827 conftest$ac_exeext conftest.$ac_ext
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1831 $as_echo "$ac_res" >&6; }
1832 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1834 } # ac_fn_c_check_func
1836 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1837 # ---------------------------------------------
1838 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1840 ac_fn_c_check_decl ()
1842 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1843 as_decl_name=`echo $2|sed 's/ *(.*//'`
1844 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1846 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1847 if eval \${$3+:} false; then :
1848 $as_echo_n "(cached) " >&6
1850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1851 /* end confdefs.h. */
1856 #ifndef $as_decl_name
1858 (void) $as_decl_use;
1860 (void) $as_decl_name;
1868 if ac_fn_c_try_compile "$LINENO"; then :
1873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1877 $as_echo "$ac_res" >&6; }
1878 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1880 } # ac_fn_c_check_decl
1882 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1883 # -------------------------------------------
1884 # Tests whether TYPE exists after having included INCLUDES, setting cache
1885 # variable VAR accordingly.
1886 ac_fn_c_check_type ()
1888 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1890 $as_echo_n "checking for $2... " >&6; }
1891 if eval \${$3+:} false; then :
1892 $as_echo_n "(cached) " >&6
1895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1896 /* end confdefs.h. */
1907 if ac_fn_c_try_compile "$LINENO"; then :
1908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1909 /* end confdefs.h. */
1920 if ac_fn_c_try_compile "$LINENO"; then :
1925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1931 $as_echo "$ac_res" >&6; }
1932 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1934 } # ac_fn_c_check_type
1935 cat >config.log <<_ACEOF
1936 This file contains any messages produced by compilers while
1937 running configure, to aid debugging if configure makes a mistake.
1939 It was created by $as_me, which was
1940 generated by GNU Autoconf 2.69. Invocation command line was
1952 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1953 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1954 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1955 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1956 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1958 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1959 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1961 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1962 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1963 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1964 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1965 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1966 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1967 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1975 test -z "$as_dir" && as_dir=.
1976 $as_echo "PATH: $as_dir"
1992 # Keep a trace of the command line.
1993 # Strip out --no-create and --no-recursion so they do not pile up.
1994 # Strip out --silent because we don't want to record it for future runs.
1995 # Also quote any args containing shell meta-characters.
1996 # Make two passes to allow for proper duplicate-argument suppression.
2000 ac_must_keep_next=false
2006 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2007 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2008 | -silent | --silent | --silen | --sile | --sil)
2011 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2014 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2016 as_fn_append ac_configure_args1 " '$ac_arg'"
2017 if test $ac_must_keep_next = true; then
2018 ac_must_keep_next=false # Got value, back to normal.
2021 *=* | --config-cache | -C | -disable-* | --disable-* \
2022 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2023 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2024 | -with-* | --with-* | -without-* | --without-* | --x)
2025 case "$ac_configure_args0 " in
2026 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2029 -* ) ac_must_keep_next=true ;;
2032 as_fn_append ac_configure_args " '$ac_arg'"
2037 { ac_configure_args0=; unset ac_configure_args0;}
2038 { ac_configure_args1=; unset ac_configure_args1;}
2040 # When interrupted or exit'd, cleanup temporary files, and complete
2041 # config.log. We remove comments because anyway the quotes in there
2042 # would cause problems or look ugly.
2043 # WARNING: Use '\'' to represent an apostrophe within the trap.
2044 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2045 trap 'exit_status=$?
2046 # Save into config.log some information that might help in debugging.
2050 $as_echo "## ---------------- ##
2051 ## Cache variables. ##
2052 ## ---------------- ##"
2054 # The following way of writing the cache mishandles newlines in values,
2056 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2057 eval ac_val=\$$ac_var
2061 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2062 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2065 _ | IFS | as_nl) ;; #(
2066 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2067 *) { eval $ac_var=; unset $ac_var;} ;;
2072 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2073 *${as_nl}ac_space=\ *)
2075 "s/'\''/'\''\\\\'\'''\''/g;
2076 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2079 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2086 $as_echo "## ----------------- ##
2087 ## Output variables. ##
2088 ## ----------------- ##"
2090 for ac_var in $ac_subst_vars
2092 eval ac_val=\$$ac_var
2094 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2096 $as_echo "$ac_var='\''$ac_val'\''"
2100 if test -n "$ac_subst_files"; then
2101 $as_echo "## ------------------- ##
2102 ## File substitutions. ##
2103 ## ------------------- ##"
2105 for ac_var in $ac_subst_files
2107 eval ac_val=\$$ac_var
2109 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2111 $as_echo "$ac_var='\''$ac_val'\''"
2116 if test -s confdefs.h; then
2117 $as_echo "## ----------- ##
2124 test "$ac_signal" != 0 &&
2125 $as_echo "$as_me: caught signal $ac_signal"
2126 $as_echo "$as_me: exit $exit_status"
2128 rm -f core *.core core.conftest.* &&
2129 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2132 for ac_signal in 1 2 13 15; do
2133 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2137 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2138 rm -f -r conftest* confdefs.h
2140 $as_echo "/* confdefs.h */" > confdefs.h
2142 # Predefined preprocessor variables.
2144 cat >>confdefs.h <<_ACEOF
2145 #define PACKAGE_NAME "$PACKAGE_NAME"
2148 cat >>confdefs.h <<_ACEOF
2149 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2152 cat >>confdefs.h <<_ACEOF
2153 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2156 cat >>confdefs.h <<_ACEOF
2157 #define PACKAGE_STRING "$PACKAGE_STRING"
2160 cat >>confdefs.h <<_ACEOF
2161 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2164 cat >>confdefs.h <<_ACEOF
2165 #define PACKAGE_URL "$PACKAGE_URL"
2169 # Let the site file select an alternate cache file if it wants to.
2170 # Prefer an explicitly selected file to automatically selected ones.
2173 if test -n "$CONFIG_SITE"; then
2174 # We do not want a PATH search for config.site.
2175 case $CONFIG_SITE in #((
2176 -*) ac_site_file1=./$CONFIG_SITE;;
2177 */*) ac_site_file1=$CONFIG_SITE;;
2178 *) ac_site_file1=./$CONFIG_SITE;;
2180 elif test "x$prefix" != xNONE; then
2181 ac_site_file1=$prefix/share/config.site
2182 ac_site_file2=$prefix/etc/config.site
2184 ac_site_file1=$ac_default_prefix/share/config.site
2185 ac_site_file2=$ac_default_prefix/etc/config.site
2187 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2189 test "x$ac_site_file" = xNONE && continue
2190 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2192 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2193 sed 's/^/| /' "$ac_site_file" >&5
2195 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2196 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2197 as_fn_error $? "failed to load site script $ac_site_file
2198 See \`config.log' for more details" "$LINENO" 5; }
2202 if test -r "$cache_file"; then
2203 # Some versions of bash will fail to source /dev/null (special files
2204 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2205 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2207 $as_echo "$as_me: loading cache $cache_file" >&6;}
2209 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2210 *) . "./$cache_file";;
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2215 $as_echo "$as_me: creating cache $cache_file" >&6;}
2219 gt_needs="$gt_needs "
2220 # Check that the precious variables saved in the cache have kept the same
2222 ac_cache_corrupted=false
2223 for ac_var in $ac_precious_vars; do
2224 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2225 eval ac_new_set=\$ac_env_${ac_var}_set
2226 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2227 eval ac_new_val=\$ac_env_${ac_var}_value
2228 case $ac_old_set,$ac_new_set in
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2231 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2232 ac_cache_corrupted=: ;;
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2235 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2236 ac_cache_corrupted=: ;;
2239 if test "x$ac_old_val" != "x$ac_new_val"; then
2240 # differences in whitespace do not lead to failure.
2241 ac_old_val_w=`echo x $ac_old_val`
2242 ac_new_val_w=`echo x $ac_new_val`
2243 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2245 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2246 ac_cache_corrupted=:
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2249 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2250 eval $ac_var=\$ac_old_val
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2253 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2255 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2258 # Pass precious variables to config.status.
2259 if test "$ac_new_set" = set; then
2261 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2262 *) ac_arg=$ac_var=$ac_new_val ;;
2264 case " $ac_configure_args " in
2265 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2266 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2270 if $ac_cache_corrupted; then
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2272 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2274 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2275 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2277 ## -------------------- ##
2278 ## Main body of script. ##
2279 ## -------------------- ##
2282 ac_cpp='$CPP $CPPFLAGS'
2283 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2284 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2285 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2289 am__api_version='1.11'
2292 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2293 if test -f "$ac_dir/install-sh"; then
2295 ac_install_sh="$ac_aux_dir/install-sh -c"
2297 elif test -f "$ac_dir/install.sh"; then
2299 ac_install_sh="$ac_aux_dir/install.sh -c"
2301 elif test -f "$ac_dir/shtool"; then
2303 ac_install_sh="$ac_aux_dir/shtool install -c"
2307 if test -z "$ac_aux_dir"; then
2308 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2311 # These three variables are undocumented and unsupported,
2312 # and are intended to be withdrawn in a future Autoconf release.
2313 # They can cause serious problems if a builder's source tree is in a directory
2314 # whose full name contains unusual characters.
2315 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2316 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2317 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2320 # Find a good install program. We prefer a C program (faster),
2321 # so one script is as good as another. But avoid the broken or
2322 # incompatible versions:
2323 # SysV /etc/install, /usr/sbin/install
2324 # SunOS /usr/etc/install
2325 # IRIX /sbin/install
2327 # AmigaOS /C/install, which installs bootblocks on floppy discs
2328 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2329 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2330 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2331 # OS/2's system install, which has a completely different semantic
2332 # ./install, which can be erroneously created by make from ./install.sh.
2333 # Reject install programs that cannot install multiple files.
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2335 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2336 if test -z "$INSTALL"; then
2337 if ${ac_cv_path_install+:} false; then :
2338 $as_echo_n "(cached) " >&6
2340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2344 test -z "$as_dir" && as_dir=.
2345 # Account for people who put trailing slashes in PATH elements.
2346 case $as_dir/ in #((
2347 ./ | .// | /[cC]/* | \
2348 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2349 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2352 # OSF1 and SCO ODT 3.0 have their own names for install.
2353 # Don't use installbsd from OSF since it installs stuff as root
2355 for ac_prog in ginstall scoinst install; do
2356 for ac_exec_ext in '' $ac_executable_extensions; do
2357 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2358 if test $ac_prog = install &&
2359 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2360 # AIX install. It has an incompatible calling convention.
2362 elif test $ac_prog = install &&
2363 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2364 # program-specific install script used by HP pwplus--don't use.
2367 rm -rf conftest.one conftest.two conftest.dir
2368 echo one > conftest.one
2369 echo two > conftest.two
2371 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2372 test -s conftest.one && test -s conftest.two &&
2373 test -s conftest.dir/conftest.one &&
2374 test -s conftest.dir/conftest.two
2376 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2389 rm -rf conftest.one conftest.two conftest.dir
2392 if test "${ac_cv_path_install+set}" = set; then
2393 INSTALL=$ac_cv_path_install
2395 # As a last resort, use the slow shell script. Don't cache a
2396 # value for INSTALL within a source directory, because that will
2397 # break other packages using the cache if that directory is
2398 # removed, or if the value is a relative name.
2399 INSTALL=$ac_install_sh
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2403 $as_echo "$INSTALL" >&6; }
2405 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2406 # It thinks the first close brace ends the variable substitution.
2407 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2409 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2411 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2414 $as_echo_n "checking whether build environment is sane... " >&6; }
2417 echo timestamp > conftest.file
2418 # Reject unsafe characters in $srcdir or the absolute working directory
2419 # name. Accept space and tab only in the latter.
2423 *[\\\"\#\$\&\'\`$am_lf]*)
2424 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2427 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2428 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2431 # Do `set' in a subshell so we don't clobber the current shell's
2432 # arguments. Must try -L first in case configure is actually a
2433 # symlink; some systems play weird games with the mod time of symlinks
2434 # (eg FreeBSD returns the mod time of the symlink's containing
2437 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2438 if test "$*" = "X"; then
2440 set X `ls -t "$srcdir/configure" conftest.file`
2443 if test "$*" != "X $srcdir/configure conftest.file" \
2444 && test "$*" != "X conftest.file $srcdir/configure"; then
2446 # If neither matched, then we have a broken ls. This can happen
2447 # if, for instance, CONFIG_SHELL is bash and it inherits a
2448 # broken ls alias from the environment. This has actually
2449 # happened. Such a system could not be considered "sane".
2450 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2451 alias in your environment" "$LINENO" 5
2454 test "$2" = conftest.file
2460 as_fn_error $? "newly created file is older than distributed files!
2461 Check your system clock" "$LINENO" 5
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2464 $as_echo "yes" >&6; }
2465 test "$program_prefix" != NONE &&
2466 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2467 # Use a double $ so make ignores it.
2468 test "$program_suffix" != NONE &&
2469 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2470 # Double any \ or $.
2471 # By default was `s,x,x', remove it if useless.
2472 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2473 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2475 # expand $ac_aux_dir to an absolute path
2476 am_aux_dir=`cd $ac_aux_dir && pwd`
2478 if test x"${MISSING+set}" != xset; then
2481 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2483 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2486 # Use eval to expand $SHELL
2487 if eval "$MISSING --run true"; then
2488 am_missing_run="$MISSING --run "
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2492 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2495 if test x"${install_sh}" != xset; then
2498 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2500 install_sh="\${SHELL} $am_aux_dir/install-sh"
2504 # Installed binaries are usually stripped using `strip' when the user
2505 # run `make install-strip'. However `strip' might not be the right
2506 # tool to use in cross-compilation environments, therefore Automake
2507 # will honor the `STRIP' environment variable to overrule this program.
2508 if test "$cross_compiling" != no; then
2509 if test -n "$ac_tool_prefix"; then
2510 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2511 set dummy ${ac_tool_prefix}strip; ac_word=$2
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2513 $as_echo_n "checking for $ac_word... " >&6; }
2514 if ${ac_cv_prog_STRIP+:} false; then :
2515 $as_echo_n "(cached) " >&6
2517 if test -n "$STRIP"; then
2518 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2524 test -z "$as_dir" && as_dir=.
2525 for ac_exec_ext in '' $ac_executable_extensions; do
2526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2527 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2537 STRIP=$ac_cv_prog_STRIP
2538 if test -n "$STRIP"; then
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2540 $as_echo "$STRIP" >&6; }
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2543 $as_echo "no" >&6; }
2548 if test -z "$ac_cv_prog_STRIP"; then
2550 # Extract the first word of "strip", so it can be a program name with args.
2551 set dummy strip; ac_word=$2
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2553 $as_echo_n "checking for $ac_word... " >&6; }
2554 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2555 $as_echo_n "(cached) " >&6
2557 if test -n "$ac_ct_STRIP"; then
2558 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2564 test -z "$as_dir" && as_dir=.
2565 for ac_exec_ext in '' $ac_executable_extensions; do
2566 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2567 ac_cv_prog_ac_ct_STRIP="strip"
2568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2577 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2578 if test -n "$ac_ct_STRIP"; then
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2580 $as_echo "$ac_ct_STRIP" >&6; }
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2583 $as_echo "no" >&6; }
2586 if test "x$ac_ct_STRIP" = x; then
2589 case $cross_compiling:$ac_tool_warned in
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2592 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2593 ac_tool_warned=yes ;;
2598 STRIP="$ac_cv_prog_STRIP"
2602 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2605 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2606 if test -z "$MKDIR_P"; then
2607 if ${ac_cv_path_mkdir+:} false; then :
2608 $as_echo_n "(cached) " >&6
2610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2611 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2614 test -z "$as_dir" && as_dir=.
2615 for ac_prog in mkdir gmkdir; do
2616 for ac_exec_ext in '' $ac_executable_extensions; do
2617 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2618 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2619 'mkdir (GNU coreutils) '* | \
2620 'mkdir (coreutils) '* | \
2621 'mkdir (fileutils) '4.1*)
2622 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2632 test -d ./--version && rmdir ./--version
2633 if test "${ac_cv_path_mkdir+set}" = set; then
2634 MKDIR_P="$ac_cv_path_mkdir -p"
2636 # As a last resort, use the slow shell script. Don't cache a
2637 # value for MKDIR_P within a source directory, because that will
2638 # break other packages using the cache if that directory is
2639 # removed, or if the value is a relative name.
2640 MKDIR_P="$ac_install_sh -d"
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2644 $as_echo "$MKDIR_P" >&6; }
2648 [\\/$]* | ?:[\\/]*) ;;
2649 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2652 for ac_prog in gawk mawk nawk awk
2654 # Extract the first word of "$ac_prog", so it can be a program name with args.
2655 set dummy $ac_prog; ac_word=$2
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2657 $as_echo_n "checking for $ac_word... " >&6; }
2658 if ${ac_cv_prog_AWK+:} false; then :
2659 $as_echo_n "(cached) " >&6
2661 if test -n "$AWK"; then
2662 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2668 test -z "$as_dir" && as_dir=.
2669 for ac_exec_ext in '' $ac_executable_extensions; do
2670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2671 ac_cv_prog_AWK="$ac_prog"
2672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2682 if test -n "$AWK"; then
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2684 $as_echo "$AWK" >&6; }
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2687 $as_echo "no" >&6; }
2691 test -n "$AWK" && break
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2695 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2697 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2698 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2699 $as_echo_n "(cached) " >&6
2701 cat >conftest.make <<\_ACEOF
2704 @echo '@@@%%%=$(MAKE)=@@@%%%'
2706 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2707 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2709 eval ac_cv_prog_make_${ac_make}_set=yes;;
2711 eval ac_cv_prog_make_${ac_make}_set=no;;
2715 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2717 $as_echo "yes" >&6; }
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2721 $as_echo "no" >&6; }
2722 SET_MAKE="MAKE=${MAKE-make}"
2725 rm -rf .tst 2>/dev/null
2726 mkdir .tst 2>/dev/null
2727 if test -d .tst; then
2732 rmdir .tst 2>/dev/null
2734 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2735 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2736 # is not polluted with repeated "-I."
2737 am__isrc=' -I$(srcdir)'
2738 # test to see if srcdir already configured
2739 if test -f $srcdir/config.status; then
2740 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2744 # test whether we have cygpath
2745 if test -z "$CYGPATH_W"; then
2746 if (cygpath --version) >/dev/null 2>/dev/null; then
2747 CYGPATH_W='cygpath -w'
2754 # Define the identity of the package.
2759 cat >>confdefs.h <<_ACEOF
2760 #define PACKAGE "$PACKAGE"
2764 cat >>confdefs.h <<_ACEOF
2765 #define VERSION "$VERSION"
2768 # Some tools Automake needs.
2770 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2773 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2776 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2779 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2782 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2784 # We need awk for the "check" target. The system "awk" is bad on
2786 # Always define AMTAR for backward compatibility. Yes, it's still used
2787 # in the wild :-( We should find a proper way to deprecate it ...
2790 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2796 ac_config_headers="$ac_config_headers config.h"
2800 DEPDIR="${am__leading_dot}deps"
2802 ac_config_commands="$ac_config_commands depfiles"
2805 am_make=${MAKE-make}
2806 cat > confinc << 'END'
2808 @echo this is the am__doit target
2811 # If we don't find an include directive, just comment out the code.
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2813 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2817 # First try GNU make style include.
2818 echo "include confinc" > confmf
2819 # Ignore all kinds of additional output from `make'.
2820 case `$am_make -s -f confmf 2> /dev/null` in #(
2821 *the\ am__doit\ target*)
2827 # Now try BSD make style include.
2828 if test "$am__include" = "#"; then
2829 echo '.include "confinc"' > confmf
2830 case `$am_make -s -f confmf 2> /dev/null` in #(
2831 *the\ am__doit\ target*)
2832 am__include=.include
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2841 $as_echo "$_am_result" >&6; }
2842 rm -f confinc confmf
2844 # Check whether --enable-dependency-tracking was given.
2845 if test "${enable_dependency_tracking+set}" = set; then :
2846 enableval=$enable_dependency_tracking;
2849 if test "x$enable_dependency_tracking" != xno; then
2850 am_depcomp="$ac_aux_dir/depcomp"
2854 if test "x$enable_dependency_tracking" != xno; then
2864 ac_cpp='$CPP $CPPFLAGS'
2865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2868 if test -n "$ac_tool_prefix"; then
2869 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2870 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2872 $as_echo_n "checking for $ac_word... " >&6; }
2873 if ${ac_cv_prog_CC+:} false; then :
2874 $as_echo_n "(cached) " >&6
2876 if test -n "$CC"; then
2877 ac_cv_prog_CC="$CC" # Let the user override the test.
2879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2883 test -z "$as_dir" && as_dir=.
2884 for ac_exec_ext in '' $ac_executable_extensions; do
2885 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2886 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2897 if test -n "$CC"; then
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2899 $as_echo "$CC" >&6; }
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2902 $as_echo "no" >&6; }
2907 if test -z "$ac_cv_prog_CC"; then
2909 # Extract the first word of "gcc", so it can be a program name with args.
2910 set dummy gcc; ac_word=$2
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2912 $as_echo_n "checking for $ac_word... " >&6; }
2913 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2914 $as_echo_n "(cached) " >&6
2916 if test -n "$ac_ct_CC"; then
2917 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2923 test -z "$as_dir" && as_dir=.
2924 for ac_exec_ext in '' $ac_executable_extensions; do
2925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2926 ac_cv_prog_ac_ct_CC="gcc"
2927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2936 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2937 if test -n "$ac_ct_CC"; then
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2939 $as_echo "$ac_ct_CC" >&6; }
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2942 $as_echo "no" >&6; }
2945 if test "x$ac_ct_CC" = x; then
2948 case $cross_compiling:$ac_tool_warned in
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2951 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2952 ac_tool_warned=yes ;;
2960 if test -z "$CC"; then
2961 if test -n "$ac_tool_prefix"; then
2962 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2963 set dummy ${ac_tool_prefix}cc; ac_word=$2
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2965 $as_echo_n "checking for $ac_word... " >&6; }
2966 if ${ac_cv_prog_CC+:} false; then :
2967 $as_echo_n "(cached) " >&6
2969 if test -n "$CC"; then
2970 ac_cv_prog_CC="$CC" # Let the user override the test.
2972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2976 test -z "$as_dir" && as_dir=.
2977 for ac_exec_ext in '' $ac_executable_extensions; do
2978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2979 ac_cv_prog_CC="${ac_tool_prefix}cc"
2980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2990 if test -n "$CC"; then
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2992 $as_echo "$CC" >&6; }
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2995 $as_echo "no" >&6; }
3001 if test -z "$CC"; then
3002 # Extract the first word of "cc", so it can be a program name with args.
3003 set dummy cc; ac_word=$2
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3005 $as_echo_n "checking for $ac_word... " >&6; }
3006 if ${ac_cv_prog_CC+:} false; then :
3007 $as_echo_n "(cached) " >&6
3009 if test -n "$CC"; then
3010 ac_cv_prog_CC="$CC" # Let the user override the test.
3013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3017 test -z "$as_dir" && as_dir=.
3018 for ac_exec_ext in '' $ac_executable_extensions; do
3019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3020 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3021 ac_prog_rejected=yes
3025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3032 if test $ac_prog_rejected = yes; then
3033 # We found a bogon in the path, so make sure we never use it.
3034 set dummy $ac_cv_prog_CC
3036 if test $# != 0; then
3037 # We chose a different compiler from the bogus one.
3038 # However, it has the same basename, so the bogon will be chosen
3039 # first if we set CC to just the basename; use the full file name.
3041 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3047 if test -n "$CC"; then
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3049 $as_echo "$CC" >&6; }
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3052 $as_echo "no" >&6; }
3057 if test -z "$CC"; then
3058 if test -n "$ac_tool_prefix"; then
3059 for ac_prog in cl.exe
3061 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3062 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3064 $as_echo_n "checking for $ac_word... " >&6; }
3065 if ${ac_cv_prog_CC+:} false; then :
3066 $as_echo_n "(cached) " >&6
3068 if test -n "$CC"; then
3069 ac_cv_prog_CC="$CC" # Let the user override the test.
3071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3075 test -z "$as_dir" && as_dir=.
3076 for ac_exec_ext in '' $ac_executable_extensions; do
3077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3078 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3089 if test -n "$CC"; then
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3091 $as_echo "$CC" >&6; }
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3094 $as_echo "no" >&6; }
3098 test -n "$CC" && break
3101 if test -z "$CC"; then
3103 for ac_prog in cl.exe
3105 # Extract the first word of "$ac_prog", so it can be a program name with args.
3106 set dummy $ac_prog; ac_word=$2
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3108 $as_echo_n "checking for $ac_word... " >&6; }
3109 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3110 $as_echo_n "(cached) " >&6
3112 if test -n "$ac_ct_CC"; then
3113 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3119 test -z "$as_dir" && as_dir=.
3120 for ac_exec_ext in '' $ac_executable_extensions; do
3121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3122 ac_cv_prog_ac_ct_CC="$ac_prog"
3123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3132 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3133 if test -n "$ac_ct_CC"; then
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3135 $as_echo "$ac_ct_CC" >&6; }
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3138 $as_echo "no" >&6; }
3142 test -n "$ac_ct_CC" && break
3145 if test "x$ac_ct_CC" = x; then
3148 case $cross_compiling:$ac_tool_warned in
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3151 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3152 ac_tool_warned=yes ;;
3161 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3162 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3163 as_fn_error $? "no acceptable C compiler found in \$PATH
3164 See \`config.log' for more details" "$LINENO" 5; }
3166 # Provide some information about the compiler.
3167 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3170 for ac_option in --version -v -V -qversion; do
3171 { { ac_try="$ac_compiler $ac_option >&5"
3173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3174 *) ac_try_echo=$ac_try;;
3176 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3177 $as_echo "$ac_try_echo"; } >&5
3178 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3180 if test -s conftest.err; then
3182 ... rest of stderr output deleted ...
3183 10q' conftest.err >conftest.er1
3184 cat conftest.er1 >&5
3186 rm -f conftest.er1 conftest.err
3187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3188 test $ac_status = 0; }
3191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3192 /* end confdefs.h. */
3202 ac_clean_files_save=$ac_clean_files
3203 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3204 # Try to create an executable without -o first, disregard a.out.
3205 # It will help us diagnose broken compilers, and finding out an intuition
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3208 $as_echo_n "checking whether the C compiler works... " >&6; }
3209 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3211 # The possible output files:
3212 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3215 for ac_file in $ac_files
3218 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3219 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3224 if { { ac_try="$ac_link_default"
3226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3227 *) ac_try_echo=$ac_try;;
3229 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3230 $as_echo "$ac_try_echo"; } >&5
3231 (eval "$ac_link_default") 2>&5
3233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3234 test $ac_status = 0; }; then :
3235 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3236 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3237 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3238 # so that the user can short-circuit this test for compilers unknown to
3240 for ac_file in $ac_files ''
3242 test -f "$ac_file" || continue
3244 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3247 # We found the default executable, but exeext='' is most
3251 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3253 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3255 # We set ac_cv_exeext here because the later test for it is not
3256 # safe: cross compilers may not add the suffix if given an `-o'
3257 # argument, so we may need to know it at that point already.
3258 # Even if this section looks crufty: it has the advantage of
3265 test "$ac_cv_exeext" = no && ac_cv_exeext=
3270 if test -z "$ac_file"; then :
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3272 $as_echo "no" >&6; }
3273 $as_echo "$as_me: failed program was:" >&5
3274 sed 's/^/| /' conftest.$ac_ext >&5
3276 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3277 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3278 as_fn_error 77 "C compiler cannot create executables
3279 See \`config.log' for more details" "$LINENO" 5; }
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3282 $as_echo "yes" >&6; }
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3285 $as_echo_n "checking for C compiler default output file name... " >&6; }
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3287 $as_echo "$ac_file" >&6; }
3288 ac_exeext=$ac_cv_exeext
3290 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3291 ac_clean_files=$ac_clean_files_save
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3293 $as_echo_n "checking for suffix of executables... " >&6; }
3294 if { { ac_try="$ac_link"
3296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3297 *) ac_try_echo=$ac_try;;
3299 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3300 $as_echo "$ac_try_echo"; } >&5
3301 (eval "$ac_link") 2>&5
3303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3304 test $ac_status = 0; }; then :
3305 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3306 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3307 # work properly (i.e., refer to `conftest.exe'), while it won't with
3309 for ac_file in conftest.exe conftest conftest.*; do
3310 test -f "$ac_file" || continue
3312 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3313 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3319 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3320 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3321 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3322 See \`config.log' for more details" "$LINENO" 5; }
3324 rm -f conftest conftest$ac_cv_exeext
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3326 $as_echo "$ac_cv_exeext" >&6; }
3328 rm -f conftest.$ac_ext
3329 EXEEXT=$ac_cv_exeext
3331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3332 /* end confdefs.h. */
3337 FILE *f = fopen ("conftest.out", "w");
3338 return ferror (f) || fclose (f) != 0;
3344 ac_clean_files="$ac_clean_files conftest.out"
3345 # Check that the compiler produces executables we can run. If not, either
3346 # the compiler is broken, or we cross compile.
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3348 $as_echo_n "checking whether we are cross compiling... " >&6; }
3349 if test "$cross_compiling" != yes; then
3350 { { ac_try="$ac_link"
3352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3353 *) ac_try_echo=$ac_try;;
3355 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3356 $as_echo "$ac_try_echo"; } >&5
3357 (eval "$ac_link") 2>&5
3359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3360 test $ac_status = 0; }
3361 if { ac_try='./conftest$ac_cv_exeext'
3362 { { case "(($ac_try" in
3363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3364 *) ac_try_echo=$ac_try;;
3366 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3367 $as_echo "$ac_try_echo"; } >&5
3368 (eval "$ac_try") 2>&5
3370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3371 test $ac_status = 0; }; }; then
3374 if test "$cross_compiling" = maybe; then
3377 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3378 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3379 as_fn_error $? "cannot run C compiled programs.
3380 If you meant to cross compile, use \`--host'.
3381 See \`config.log' for more details" "$LINENO" 5; }
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3386 $as_echo "$cross_compiling" >&6; }
3388 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3389 ac_clean_files=$ac_clean_files_save
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3391 $as_echo_n "checking for suffix of object files... " >&6; }
3392 if ${ac_cv_objext+:} false; then :
3393 $as_echo_n "(cached) " >&6
3395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3396 /* end confdefs.h. */
3406 rm -f conftest.o conftest.obj
3407 if { { ac_try="$ac_compile"
3409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3410 *) ac_try_echo=$ac_try;;
3412 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3413 $as_echo "$ac_try_echo"; } >&5
3414 (eval "$ac_compile") 2>&5
3416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3417 test $ac_status = 0; }; then :
3418 for ac_file in conftest.o conftest.obj conftest.*; do
3419 test -f "$ac_file" || continue;
3421 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3422 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3427 $as_echo "$as_me: failed program was:" >&5
3428 sed 's/^/| /' conftest.$ac_ext >&5
3430 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3431 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3432 as_fn_error $? "cannot compute suffix of object files: cannot compile
3433 See \`config.log' for more details" "$LINENO" 5; }
3435 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3438 $as_echo "$ac_cv_objext" >&6; }
3439 OBJEXT=$ac_cv_objext
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3442 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3443 if ${ac_cv_c_compiler_gnu+:} false; then :
3444 $as_echo_n "(cached) " >&6
3446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3447 /* end confdefs.h. */
3460 if ac_fn_c_try_compile "$LINENO"; then :
3465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3466 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3470 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3471 if test $ac_compiler_gnu = yes; then
3476 ac_test_CFLAGS=${CFLAGS+set}
3477 ac_save_CFLAGS=$CFLAGS
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3479 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3480 if ${ac_cv_prog_cc_g+:} false; then :
3481 $as_echo_n "(cached) " >&6
3483 ac_save_c_werror_flag=$ac_c_werror_flag
3484 ac_c_werror_flag=yes
3487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3488 /* end confdefs.h. */
3498 if ac_fn_c_try_compile "$LINENO"; then :
3502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3503 /* end confdefs.h. */
3513 if ac_fn_c_try_compile "$LINENO"; then :
3516 ac_c_werror_flag=$ac_save_c_werror_flag
3518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3519 /* end confdefs.h. */
3529 if ac_fn_c_try_compile "$LINENO"; then :
3532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3537 ac_c_werror_flag=$ac_save_c_werror_flag
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3540 $as_echo "$ac_cv_prog_cc_g" >&6; }
3541 if test "$ac_test_CFLAGS" = set; then
3542 CFLAGS=$ac_save_CFLAGS
3543 elif test $ac_cv_prog_cc_g = yes; then
3544 if test "$GCC" = yes; then
3550 if test "$GCC" = yes; then
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3557 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3558 if ${ac_cv_prog_cc_c89+:} false; then :
3559 $as_echo_n "(cached) " >&6
3561 ac_cv_prog_cc_c89=no
3563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3564 /* end confdefs.h. */
3568 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3569 struct buf { int x; };
3570 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3571 static char *e (p, i)
3577 static char *f (char * (*g) (char **, int), char **p, ...)
3582 s = g (p, va_arg (v,int));
3587 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3588 function prototypes and stuff, but not '\xHH' hex character constants.
3589 These don't provoke an error unfortunately, instead are silently treated
3590 as 'x'. The following induces an error, until -std is added to get
3591 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3592 array size at least. It's necessary to write '\x00'==0 to get something
3593 that's true only with -std. */
3594 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3596 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3597 inside strings and character constants. */
3599 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3601 int test (int i, double x);
3602 struct s1 {int (*f) (int a);};
3603 struct s2 {int (*f) (double a);};
3604 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3610 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3615 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3616 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3618 CC="$ac_save_CC $ac_arg"
3619 if ac_fn_c_try_compile "$LINENO"; then :
3620 ac_cv_prog_cc_c89=$ac_arg
3622 rm -f core conftest.err conftest.$ac_objext
3623 test "x$ac_cv_prog_cc_c89" != "xno" && break
3625 rm -f conftest.$ac_ext
3630 case "x$ac_cv_prog_cc_c89" in
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3633 $as_echo "none needed" >&6; } ;;
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3636 $as_echo "unsupported" >&6; } ;;
3638 CC="$CC $ac_cv_prog_cc_c89"
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3640 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3642 if test "x$ac_cv_prog_cc_c89" != xno; then :
3647 ac_cpp='$CPP $CPPFLAGS'
3648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3652 depcc="$CC" am_compiler_list=
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3655 $as_echo_n "checking dependency style of $depcc... " >&6; }
3656 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3657 $as_echo_n "(cached) " >&6
3659 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3660 # We make a subdir and do the tests there. Otherwise we can end up
3661 # making bogus files that we don't know about and never remove. For
3662 # instance it was reported that on HP-UX the gcc test will end up
3663 # making a dummy file named `D' -- because `-MD' means `put the output
3667 # Copy depcomp to subdir because otherwise we won't find it if we're
3668 # using a relative directory.
3669 cp "$am_depcomp" conftest.dir
3671 # We will build objects and dependencies in a subdirectory because
3672 # it helps to detect inapplicable dependency modes. For instance
3673 # both Tru64's cc and ICC support -MD to output dependencies as a
3674 # side effect of compilation, but ICC will put the dependencies in
3675 # the current directory while Tru64 will put them in the object
3679 am_cv_CC_dependencies_compiler_type=none
3680 if test "$am_compiler_list" = ""; then
3681 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3684 case " $depcc " in #(
3685 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3688 for depmode in $am_compiler_list; do
3689 # Setup a source with many dependencies, because some compilers
3690 # like to wrap large dependency lists on column 80 (with \), and
3691 # we should not choose a depcomp mode which is confused by this.
3693 # We need to recreate these files for each test, as the compiler may
3694 # overwrite some of them when testing with obscure command lines.
3695 # This happens at least with the AIX C compiler.
3697 for i in 1 2 3 4 5 6; do
3698 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3699 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3700 # Solaris 8's {/usr,}/bin/sh.
3701 touch sub/conftst$i.h
3703 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3705 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3706 # mode. It turns out that the SunPro C++ compiler does not properly
3707 # handle `-M -o', and we need to detect this. Also, some Intel
3708 # versions had trouble with output in subdirs
3709 am__obj=sub/conftest.${OBJEXT-o}
3710 am__minus_obj="-o $am__obj"
3713 # This depmode causes a compiler race in universal mode.
3714 test "$am__universal" = false || continue
3717 # after this tag, mechanisms are not by side-effect, so they'll
3718 # only be used when explicitly requested
3719 if test "x$enable_dependency_tracking" = xyes; then
3725 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3726 # This compiler won't grok `-c -o', but also, the minuso test has
3727 # not run yet. These depmodes are late enough in the game, and
3728 # so weak that their functioning should not be impacted.
3729 am__obj=conftest.${OBJEXT-o}
3734 if depmode=$depmode \
3735 source=sub/conftest.c object=$am__obj \
3736 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3737 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3738 >/dev/null 2>conftest.err &&
3739 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3740 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3741 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3742 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3743 # icc doesn't choke on unknown options, it will just issue warnings
3744 # or remarks (even with -Werror). So we grep stderr for any message
3745 # that says an option was ignored or not supported.
3746 # When given -MP, icc 7.0 and 7.1 complain thusly:
3747 # icc: Command line warning: ignoring option '-M'; no argument required
3748 # The diagnosis changed in icc 8.0:
3749 # icc: Command line remark: option '-MP' not supported
3750 if (grep 'ignoring option' conftest.err ||
3751 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3752 am_cv_CC_dependencies_compiler_type=$depmode
3761 am_cv_CC_dependencies_compiler_type=none
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3766 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3767 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3770 test "x$enable_dependency_tracking" != xno \
3771 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3773 am__fastdepCC_FALSE='#'
3775 am__fastdepCC_TRUE='#'
3776 am__fastdepCC_FALSE=
3782 ac_cpp='$CPP $CPPFLAGS'
3783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3787 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3788 # On Suns, sometimes $CPP names a directory.
3789 if test -n "$CPP" && test -d "$CPP"; then
3792 if test -z "$CPP"; then
3793 if ${ac_cv_prog_CPP+:} false; then :
3794 $as_echo_n "(cached) " >&6
3796 # Double quotes because CPP needs to be expanded
3797 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3800 for ac_c_preproc_warn_flag in '' yes
3802 # Use a header file that comes with gcc, so configuring glibc
3803 # with a fresh cross-compiler works.
3804 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3805 # <limits.h> exists even on freestanding compilers.
3806 # On the NeXT, cc -E runs the code through the compiler's parser,
3807 # not just through cpp. "Syntax error" is here to catch this case.
3808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3809 /* end confdefs.h. */
3811 # include <limits.h>
3813 # include <assert.h>
3817 if ac_fn_c_try_cpp "$LINENO"; then :
3820 # Broken: fails on valid input.
3823 rm -f conftest.err conftest.i conftest.$ac_ext
3825 # OK, works on sane cases. Now check whether nonexistent headers
3826 # can be detected and how.
3827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3828 /* end confdefs.h. */
3829 #include <ac_nonexistent.h>
3831 if ac_fn_c_try_cpp "$LINENO"; then :
3832 # Broken: success on invalid input.
3835 # Passes both tests.
3839 rm -f conftest.err conftest.i conftest.$ac_ext
3842 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3843 rm -f conftest.i conftest.err conftest.$ac_ext
3844 if $ac_preproc_ok; then :
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3857 $as_echo "$CPP" >&6; }
3859 for ac_c_preproc_warn_flag in '' yes
3861 # Use a header file that comes with gcc, so configuring glibc
3862 # with a fresh cross-compiler works.
3863 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3864 # <limits.h> exists even on freestanding compilers.
3865 # On the NeXT, cc -E runs the code through the compiler's parser,
3866 # not just through cpp. "Syntax error" is here to catch this case.
3867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3868 /* end confdefs.h. */
3870 # include <limits.h>
3872 # include <assert.h>
3876 if ac_fn_c_try_cpp "$LINENO"; then :
3879 # Broken: fails on valid input.
3882 rm -f conftest.err conftest.i conftest.$ac_ext
3884 # OK, works on sane cases. Now check whether nonexistent headers
3885 # can be detected and how.
3886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3887 /* end confdefs.h. */
3888 #include <ac_nonexistent.h>
3890 if ac_fn_c_try_cpp "$LINENO"; then :
3891 # Broken: success on invalid input.
3894 # Passes both tests.
3898 rm -f conftest.err conftest.i conftest.$ac_ext
3901 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3902 rm -f conftest.i conftest.err conftest.$ac_ext
3903 if $ac_preproc_ok; then :
3906 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3907 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3908 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3909 See \`config.log' for more details" "$LINENO" 5; }
3913 ac_cpp='$CPP $CPPFLAGS'
3914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3920 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3921 if ${ac_cv_path_GREP+:} false; then :
3922 $as_echo_n "(cached) " >&6
3924 if test -z "$GREP"; then
3925 ac_path_GREP_found=false
3926 # Loop through the user's path and test for each of PROGNAME-LIST
3927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3928 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3931 test -z "$as_dir" && as_dir=.
3932 for ac_prog in grep ggrep; do
3933 for ac_exec_ext in '' $ac_executable_extensions; do
3934 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3935 as_fn_executable_p "$ac_path_GREP" || continue
3936 # Check for GNU ac_path_GREP and select it if it is found.
3937 # Check for GNU $ac_path_GREP
3938 case `"$ac_path_GREP" --version 2>&1` in
3940 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3943 $as_echo_n 0123456789 >"conftest.in"
3946 cat "conftest.in" "conftest.in" >"conftest.tmp"
3947 mv "conftest.tmp" "conftest.in"
3948 cp "conftest.in" "conftest.nl"
3949 $as_echo 'GREP' >> "conftest.nl"
3950 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3951 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3952 as_fn_arith $ac_count + 1 && ac_count=$as_val
3953 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3954 # Best one so far, save it but keep looking for a better one
3955 ac_cv_path_GREP="$ac_path_GREP"
3956 ac_path_GREP_max=$ac_count
3958 # 10*(2^10) chars as input seems more than enough
3959 test $ac_count -gt 10 && break
3961 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3964 $ac_path_GREP_found && break 3
3969 if test -z "$ac_cv_path_GREP"; then
3970 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3973 ac_cv_path_GREP=$GREP
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3978 $as_echo "$ac_cv_path_GREP" >&6; }
3979 GREP="$ac_cv_path_GREP"
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3983 $as_echo_n "checking for egrep... " >&6; }
3984 if ${ac_cv_path_EGREP+:} false; then :
3985 $as_echo_n "(cached) " >&6
3987 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3988 then ac_cv_path_EGREP="$GREP -E"
3990 if test -z "$EGREP"; then
3991 ac_path_EGREP_found=false
3992 # Loop through the user's path and test for each of PROGNAME-LIST
3993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3994 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3997 test -z "$as_dir" && as_dir=.
3998 for ac_prog in egrep; do
3999 for ac_exec_ext in '' $ac_executable_extensions; do
4000 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4001 as_fn_executable_p "$ac_path_EGREP" || continue
4002 # Check for GNU ac_path_EGREP and select it if it is found.
4003 # Check for GNU $ac_path_EGREP
4004 case `"$ac_path_EGREP" --version 2>&1` in
4006 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4009 $as_echo_n 0123456789 >"conftest.in"
4012 cat "conftest.in" "conftest.in" >"conftest.tmp"
4013 mv "conftest.tmp" "conftest.in"
4014 cp "conftest.in" "conftest.nl"
4015 $as_echo 'EGREP' >> "conftest.nl"
4016 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4017 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4018 as_fn_arith $ac_count + 1 && ac_count=$as_val
4019 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4020 # Best one so far, save it but keep looking for a better one
4021 ac_cv_path_EGREP="$ac_path_EGREP"
4022 ac_path_EGREP_max=$ac_count
4024 # 10*(2^10) chars as input seems more than enough
4025 test $ac_count -gt 10 && break
4027 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4030 $ac_path_EGREP_found && break 3
4035 if test -z "$ac_cv_path_EGREP"; then
4036 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4039 ac_cv_path_EGREP=$EGREP
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4045 $as_echo "$ac_cv_path_EGREP" >&6; }
4046 EGREP="$ac_cv_path_EGREP"
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4050 $as_echo_n "checking for ANSI C header files... " >&6; }
4051 if ${ac_cv_header_stdc+:} false; then :
4052 $as_echo_n "(cached) " >&6
4054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4055 /* end confdefs.h. */
4069 if ac_fn_c_try_compile "$LINENO"; then :
4070 ac_cv_header_stdc=yes
4072 ac_cv_header_stdc=no
4074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4076 if test $ac_cv_header_stdc = yes; then
4077 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4079 /* end confdefs.h. */
4083 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4084 $EGREP "memchr" >/dev/null 2>&1; then :
4087 ac_cv_header_stdc=no
4093 if test $ac_cv_header_stdc = yes; then
4094 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4096 /* end confdefs.h. */
4100 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4101 $EGREP "free" >/dev/null 2>&1; then :
4104 ac_cv_header_stdc=no
4110 if test $ac_cv_header_stdc = yes; then
4111 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4112 if test "$cross_compiling" = yes; then :
4115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4116 /* end confdefs.h. */
4119 #if ((' ' & 0x0FF) == 0x020)
4120 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4121 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4123 # define ISLOWER(c) \
4124 (('a' <= (c) && (c) <= 'i') \
4125 || ('j' <= (c) && (c) <= 'r') \
4126 || ('s' <= (c) && (c) <= 'z'))
4127 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4130 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4135 for (i = 0; i < 256; i++)
4136 if (XOR (islower (i), ISLOWER (i))
4137 || toupper (i) != TOUPPER (i))
4142 if ac_fn_c_try_run "$LINENO"; then :
4145 ac_cv_header_stdc=no
4147 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4148 conftest.$ac_objext conftest.beam conftest.$ac_ext
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4154 $as_echo "$ac_cv_header_stdc" >&6; }
4155 if test $ac_cv_header_stdc = yes; then
4157 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4161 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4162 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4163 inttypes.h stdint.h unistd.h
4165 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4166 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4168 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4169 cat >>confdefs.h <<_ACEOF
4170 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4179 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4180 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4187 if test "$MINIX" = yes; then
4189 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4192 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4195 $as_echo "#define _MINIX 1" >>confdefs.h
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4201 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4202 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4203 $as_echo_n "(cached) " >&6
4205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4206 /* end confdefs.h. */
4208 # define __EXTENSIONS__ 1
4209 $ac_includes_default
4218 if ac_fn_c_try_compile "$LINENO"; then :
4219 ac_cv_safe_to_define___extensions__=yes
4221 ac_cv_safe_to_define___extensions__=no
4223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4226 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4227 test $ac_cv_safe_to_define___extensions__ = yes &&
4228 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4230 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4232 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4234 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4236 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
4241 $as_echo_n "checking whether NLS is requested... " >&6; }
4242 # Check whether --enable-nls was given.
4243 if test "${enable_nls+set}" = set; then :
4244 enableval=$enable_nls; USE_NLS=$enableval
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
4250 $as_echo "$USE_NLS" >&6; }
4255 GETTEXT_MACRO_VERSION=0.18
4260 # Prepare PATH_SEPARATOR.
4261 # The user is always right.
4262 if test "${PATH_SEPARATOR+set}" != set; then
4263 echo "#! /bin/sh" >conf$$.sh
4264 echo "exit 0" >>conf$$.sh
4266 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4274 # Find out how to test for executable files. Don't use a zero-byte file,
4275 # as systems may use methods other than mode bits to determine executability.
4276 cat >conf$$.file <<_ASEOF
4280 chmod +x conf$$.file
4281 if test -x conf$$.file >/dev/null 2>&1; then
4282 ac_executable_p="test -x"
4284 ac_executable_p="test -f"
4288 # Extract the first word of "msgfmt", so it can be a program name with args.
4289 set dummy msgfmt; ac_word=$2
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4291 $as_echo_n "checking for $ac_word... " >&6; }
4292 if ${ac_cv_path_MSGFMT+:} false; then :
4293 $as_echo_n "(cached) " >&6
4297 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4300 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4301 for ac_dir in $PATH; do
4303 test -z "$ac_dir" && ac_dir=.
4304 for ac_exec_ext in '' $ac_executable_extensions; do
4305 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4306 echo "$as_me: trying $ac_dir/$ac_word..." >&5
4307 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
4308 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4309 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4316 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4320 MSGFMT="$ac_cv_path_MSGFMT"
4321 if test "$MSGFMT" != ":"; then
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
4323 $as_echo "$MSGFMT" >&6; }
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4326 $as_echo "no" >&6; }
4329 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4330 set dummy gmsgfmt; ac_word=$2
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4332 $as_echo_n "checking for $ac_word... " >&6; }
4333 if ${ac_cv_path_GMSGFMT+:} false; then :
4334 $as_echo_n "(cached) " >&6
4338 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4345 test -z "$as_dir" && as_dir=.
4346 for ac_exec_ext in '' $ac_executable_extensions; do
4347 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4348 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4356 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4360 GMSGFMT=$ac_cv_path_GMSGFMT
4361 if test -n "$GMSGFMT"; then
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
4363 $as_echo "$GMSGFMT" >&6; }
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4366 $as_echo "no" >&6; }
4371 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4372 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
4373 *) MSGFMT_015=$MSGFMT ;;
4376 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4377 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
4378 *) GMSGFMT_015=$GMSGFMT ;;
4383 # Prepare PATH_SEPARATOR.
4384 # The user is always right.
4385 if test "${PATH_SEPARATOR+set}" != set; then
4386 echo "#! /bin/sh" >conf$$.sh
4387 echo "exit 0" >>conf$$.sh
4389 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4397 # Find out how to test for executable files. Don't use a zero-byte file,
4398 # as systems may use methods other than mode bits to determine executability.
4399 cat >conf$$.file <<_ASEOF
4403 chmod +x conf$$.file
4404 if test -x conf$$.file >/dev/null 2>&1; then
4405 ac_executable_p="test -x"
4407 ac_executable_p="test -f"
4411 # Extract the first word of "xgettext", so it can be a program name with args.
4412 set dummy xgettext; ac_word=$2
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4414 $as_echo_n "checking for $ac_word... " >&6; }
4415 if ${ac_cv_path_XGETTEXT+:} false; then :
4416 $as_echo_n "(cached) " >&6
4420 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4423 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4424 for ac_dir in $PATH; do
4426 test -z "$ac_dir" && ac_dir=.
4427 for ac_exec_ext in '' $ac_executable_extensions; do
4428 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4429 echo "$as_me: trying $ac_dir/$ac_word..." >&5
4430 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
4431 (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
4432 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
4439 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4443 XGETTEXT="$ac_cv_path_XGETTEXT"
4444 if test "$XGETTEXT" != ":"; then
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
4446 $as_echo "$XGETTEXT" >&6; }
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4449 $as_echo "no" >&6; }
4454 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4455 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
4456 *) XGETTEXT_015=$XGETTEXT ;;
4461 # Prepare PATH_SEPARATOR.
4462 # The user is always right.
4463 if test "${PATH_SEPARATOR+set}" != set; then
4464 echo "#! /bin/sh" >conf$$.sh
4465 echo "exit 0" >>conf$$.sh
4467 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4475 # Find out how to test for executable files. Don't use a zero-byte file,
4476 # as systems may use methods other than mode bits to determine executability.
4477 cat >conf$$.file <<_ASEOF
4481 chmod +x conf$$.file
4482 if test -x conf$$.file >/dev/null 2>&1; then
4483 ac_executable_p="test -x"
4485 ac_executable_p="test -f"
4489 # Extract the first word of "msgmerge", so it can be a program name with args.
4490 set dummy msgmerge; ac_word=$2
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4492 $as_echo_n "checking for $ac_word... " >&6; }
4493 if ${ac_cv_path_MSGMERGE+:} false; then :
4494 $as_echo_n "(cached) " >&6
4498 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
4501 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4502 for ac_dir in $PATH; do
4504 test -z "$ac_dir" && ac_dir=.
4505 for ac_exec_ext in '' $ac_executable_extensions; do
4506 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4507 echo "$as_me: trying $ac_dir/$ac_word..." >&5
4508 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
4509 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
4516 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
4520 MSGMERGE="$ac_cv_path_MSGMERGE"
4521 if test "$MSGMERGE" != ":"; then
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
4523 $as_echo "$MSGMERGE" >&6; }
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4526 $as_echo "no" >&6; }
4530 test -n "$localedir" || localedir='${datadir}/locale'
4533 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
4536 ac_config_commands="$ac_config_commands po-directories"
4540 if test "X$prefix" = "XNONE"; then
4541 acl_final_prefix="$ac_default_prefix"
4543 acl_final_prefix="$prefix"
4545 if test "X$exec_prefix" = "XNONE"; then
4546 acl_final_exec_prefix='${prefix}'
4548 acl_final_exec_prefix="$exec_prefix"
4550 acl_save_prefix="$prefix"
4551 prefix="$acl_final_prefix"
4552 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
4553 prefix="$acl_save_prefix"
4555 # Make sure we can run config.sub.
4556 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4557 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4560 $as_echo_n "checking build system type... " >&6; }
4561 if ${ac_cv_build+:} false; then :
4562 $as_echo_n "(cached) " >&6
4564 ac_build_alias=$build_alias
4565 test "x$ac_build_alias" = x &&
4566 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4567 test "x$ac_build_alias" = x &&
4568 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4569 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4570 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4574 $as_echo "$ac_cv_build" >&6; }
4575 case $ac_cv_build in
4577 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4580 ac_save_IFS=$IFS; IFS='-'
4586 # Remember, the first character of IFS is used to create $*,
4587 # except with old shells:
4590 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4594 $as_echo_n "checking host system type... " >&6; }
4595 if ${ac_cv_host+:} false; then :
4596 $as_echo_n "(cached) " >&6
4598 if test "x$host_alias" = x; then
4599 ac_cv_host=$ac_cv_build
4601 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4602 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4607 $as_echo "$ac_cv_host" >&6; }
4610 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4613 ac_save_IFS=$IFS; IFS='-'
4619 # Remember, the first character of IFS is used to create $*,
4620 # except with old shells:
4623 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4627 # Check whether --with-gnu-ld was given.
4628 if test "${with_gnu_ld+set}" = set; then :
4629 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4634 # Prepare PATH_SEPARATOR.
4635 # The user is always right.
4636 if test "${PATH_SEPARATOR+set}" != set; then
4637 echo "#! /bin/sh" >conf$$.sh
4638 echo "exit 0" >>conf$$.sh
4640 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4648 if test "$GCC" = yes; then
4649 # Check if gcc -print-prog-name=ld gives a path.
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
4651 $as_echo_n "checking for ld used by GCC... " >&6; }
4654 # gcc leaves a trailing carriage return which upsets mingw
4655 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4657 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4660 # Accept absolute paths.
4661 [\\/]* | [A-Za-z]:[\\/]*)
4662 re_direlt='/[^/][^/]*/\.\./'
4663 # Canonicalize the path of ld
4664 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4665 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4666 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4668 test -z "$LD" && LD="$ac_prog"
4671 # If it fails, then pretend we aren't using GCC.
4675 # If it is relative, then search for the first ld in PATH.
4679 elif test "$with_gnu_ld" = yes; then
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4681 $as_echo_n "checking for GNU ld... " >&6; }
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4684 $as_echo_n "checking for non-GNU ld... " >&6; }
4686 if ${acl_cv_path_LD+:} false; then :
4687 $as_echo_n "(cached) " >&6
4689 if test -z "$LD"; then
4690 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4691 for ac_dir in $PATH; do
4692 test -z "$ac_dir" && ac_dir=.
4693 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4694 acl_cv_path_LD="$ac_dir/$ac_prog"
4695 # Check to see if the program is GNU ld. I'd rather use --version,
4696 # but apparently some GNU ld's only accept -v.
4697 # Break only if it was the GNU/non-GNU ld that we prefer.
4698 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
4699 *GNU* | *'with BFD'*)
4700 test "$with_gnu_ld" != no && break ;;
4702 test "$with_gnu_ld" != yes && break ;;
4708 acl_cv_path_LD="$LD" # Let the user override the test with a path.
4712 LD="$acl_cv_path_LD"
4713 if test -n "$LD"; then
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4715 $as_echo "$LD" >&6; }
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4718 $as_echo "no" >&6; }
4720 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4722 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4723 if ${acl_cv_prog_gnu_ld+:} false; then :
4724 $as_echo_n "(cached) " >&6
4726 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4727 case `$LD -v 2>&1 </dev/null` in
4728 *GNU* | *'with BFD'*)
4729 acl_cv_prog_gnu_ld=yes ;;
4731 acl_cv_prog_gnu_ld=no ;;
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
4735 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
4736 with_gnu_ld=$acl_cv_prog_gnu_ld
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
4742 $as_echo_n "checking for shared library run path origin... " >&6; }
4743 if ${acl_cv_rpath+:} false; then :
4744 $as_echo_n "(cached) " >&6
4747 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
4748 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
4755 $as_echo "$acl_cv_rpath" >&6; }
4757 acl_libext="$acl_cv_libext"
4758 acl_shlibext="$acl_cv_shlibext"
4759 acl_libname_spec="$acl_cv_libname_spec"
4760 acl_library_names_spec="$acl_cv_library_names_spec"
4761 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
4762 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
4763 acl_hardcode_direct="$acl_cv_hardcode_direct"
4764 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
4765 # Check whether --enable-rpath was given.
4766 if test "${enable_rpath+set}" = set; then :
4767 enableval=$enable_rpath; :
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
4780 $as_echo_n "checking for 64-bit host... " >&6; }
4781 if ${gl_cv_solaris_64bit+:} false; then :
4782 $as_echo_n "(cached) " >&6
4784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4785 /* end confdefs.h. */
4792 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4793 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
4794 gl_cv_solaris_64bit=yes
4796 gl_cv_solaris_64bit=no
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
4803 $as_echo "$gl_cv_solaris_64bit" >&6; }
4804 if test $gl_cv_solaris_64bit = yes; then
4805 acl_libdirstem=lib/64
4807 sparc*) acl_libdirstem2=lib/sparcv9 ;;
4808 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
4813 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
4814 if test -n "$searchpath"; then
4815 acl_save_IFS="${IFS= }"; IFS=":"
4816 for searchdir in $searchpath; do
4817 if test -d "$searchdir"; then
4818 case "$searchdir" in
4819 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
4821 # Better ignore directories of this form. They are misleading.
4823 *) searchdir=`cd "$searchdir" && pwd`
4824 case "$searchdir" in
4825 */lib64 ) acl_libdirstem=lib64 ;;
4834 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
4849 acl_save_prefix="$prefix"
4850 prefix="$acl_final_prefix"
4851 acl_save_exec_prefix="$exec_prefix"
4852 exec_prefix="$acl_final_exec_prefix"
4854 eval additional_includedir=\"$includedir\"
4855 eval additional_libdir=\"$libdir\"
4857 exec_prefix="$acl_save_exec_prefix"
4858 prefix="$acl_save_prefix"
4861 # Check whether --with-libiconv-prefix was given.
4862 if test "${with_libiconv_prefix+set}" = set; then :
4863 withval=$with_libiconv_prefix;
4864 if test "X$withval" = "Xno"; then
4867 if test "X$withval" = "X"; then
4869 acl_save_prefix="$prefix"
4870 prefix="$acl_final_prefix"
4871 acl_save_exec_prefix="$exec_prefix"
4872 exec_prefix="$acl_final_exec_prefix"
4874 eval additional_includedir=\"$includedir\"
4875 eval additional_libdir=\"$libdir\"
4877 exec_prefix="$acl_save_exec_prefix"
4878 prefix="$acl_save_prefix"
4881 additional_includedir="$withval/include"
4882 additional_libdir="$withval/$acl_libdirstem"
4883 if test "$acl_libdirstem2" != "$acl_libdirstem" \
4884 && ! test -d "$withval/$acl_libdirstem"; then
4885 additional_libdir="$withval/$acl_libdirstem2"
4899 names_already_handled=
4900 names_next_round='iconv '
4901 while test -n "$names_next_round"; do
4902 names_this_round="$names_next_round"
4904 for name in $names_this_round; do
4906 for n in $names_already_handled; do
4907 if test "$n" = "$name"; then
4912 if test -z "$already_handled"; then
4913 names_already_handled="$names_already_handled $name"
4914 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
4915 eval value=\"\$HAVE_LIB$uppername\"
4916 if test -n "$value"; then
4917 if test "$value" = yes; then
4918 eval value=\"\$LIB$uppername\"
4919 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
4920 eval value=\"\$LTLIB$uppername\"
4921 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
4930 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
4931 if test -n "$acl_shlibext"; then
4932 shrext=".$acl_shlibext" # typically: shrext=.so
4936 if test $use_additional = yes; then
4937 dir="$additional_libdir"
4938 if test -n "$acl_shlibext"; then
4939 if test -f "$dir/$libname$shrext"; then
4941 found_so="$dir/$libname$shrext"
4943 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
4944 ver=`(cd "$dir" && \
4945 for f in "$libname$shrext".*; do echo "$f"; done \
4946 | sed -e "s,^$libname$shrext\\\\.,," \
4947 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
4948 | sed 1q ) 2>/dev/null`
4949 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
4951 found_so="$dir/$libname$shrext.$ver"
4954 eval library_names=\"$acl_library_names_spec\"
4955 for f in $library_names; do
4956 if test -f "$dir/$f"; then
4965 if test "X$found_dir" = "X"; then
4966 if test -f "$dir/$libname.$acl_libext"; then
4968 found_a="$dir/$libname.$acl_libext"
4971 if test "X$found_dir" != "X"; then
4972 if test -f "$dir/$libname.la"; then
4973 found_la="$dir/$libname.la"
4977 if test "X$found_dir" = "X"; then
4978 for x in $LDFLAGS $LTLIBICONV; do
4980 acl_save_prefix="$prefix"
4981 prefix="$acl_final_prefix"
4982 acl_save_exec_prefix="$exec_prefix"
4983 exec_prefix="$acl_final_exec_prefix"
4985 exec_prefix="$acl_save_exec_prefix"
4986 prefix="$acl_save_prefix"
4990 dir=`echo "X$x" | sed -e 's/^X-L//'`
4991 if test -n "$acl_shlibext"; then
4992 if test -f "$dir/$libname$shrext"; then
4994 found_so="$dir/$libname$shrext"
4996 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
4997 ver=`(cd "$dir" && \
4998 for f in "$libname$shrext".*; do echo "$f"; done \
4999 | sed -e "s,^$libname$shrext\\\\.,," \
5000 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5001 | sed 1q ) 2>/dev/null`
5002 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5004 found_so="$dir/$libname$shrext.$ver"
5007 eval library_names=\"$acl_library_names_spec\"
5008 for f in $library_names; do
5009 if test -f "$dir/$f"; then
5018 if test "X$found_dir" = "X"; then
5019 if test -f "$dir/$libname.$acl_libext"; then
5021 found_a="$dir/$libname.$acl_libext"
5024 if test "X$found_dir" != "X"; then
5025 if test -f "$dir/$libname.la"; then
5026 found_la="$dir/$libname.la"
5031 if test "X$found_dir" != "X"; then
5036 if test "X$found_dir" != "X"; then
5037 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
5038 if test "X$found_so" != "X"; then
5039 if test "$enable_rpath" = no \
5040 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
5041 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
5042 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5045 for x in $ltrpathdirs; do
5046 if test "X$x" = "X$found_dir"; then
5051 if test -z "$haveit"; then
5052 ltrpathdirs="$ltrpathdirs $found_dir"
5054 if test "$acl_hardcode_direct" = yes; then
5055 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5057 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
5058 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5060 for x in $rpathdirs; do
5061 if test "X$x" = "X$found_dir"; then
5066 if test -z "$haveit"; then
5067 rpathdirs="$rpathdirs $found_dir"
5071 for x in $LDFLAGS $LIBICONV; do
5073 acl_save_prefix="$prefix"
5074 prefix="$acl_final_prefix"
5075 acl_save_exec_prefix="$exec_prefix"
5076 exec_prefix="$acl_final_exec_prefix"
5078 exec_prefix="$acl_save_exec_prefix"
5079 prefix="$acl_save_prefix"
5081 if test "X$x" = "X-L$found_dir"; then
5086 if test -z "$haveit"; then
5087 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
5089 if test "$acl_hardcode_minus_L" != no; then
5090 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5092 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5098 if test "X$found_a" != "X"; then
5099 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
5101 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
5104 additional_includedir=
5105 case "$found_dir" in
5106 */$acl_libdirstem | */$acl_libdirstem/)
5107 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
5108 if test "$name" = 'iconv'; then
5109 LIBICONV_PREFIX="$basedir"
5111 additional_includedir="$basedir/include"
5113 */$acl_libdirstem2 | */$acl_libdirstem2/)
5114 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
5115 if test "$name" = 'iconv'; then
5116 LIBICONV_PREFIX="$basedir"
5118 additional_includedir="$basedir/include"
5121 if test "X$additional_includedir" != "X"; then
5122 if test "X$additional_includedir" != "X/usr/include"; then
5124 if test "X$additional_includedir" = "X/usr/local/include"; then
5125 if test -n "$GCC"; then
5127 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5131 if test -z "$haveit"; then
5132 for x in $CPPFLAGS $INCICONV; do
5134 acl_save_prefix="$prefix"
5135 prefix="$acl_final_prefix"
5136 acl_save_exec_prefix="$exec_prefix"
5137 exec_prefix="$acl_final_exec_prefix"
5139 exec_prefix="$acl_save_exec_prefix"
5140 prefix="$acl_save_prefix"
5142 if test "X$x" = "X-I$additional_includedir"; then
5147 if test -z "$haveit"; then
5148 if test -d "$additional_includedir"; then
5149 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5155 if test -n "$found_la"; then
5156 save_libdir="$libdir"
5158 */* | *\\*) . "$found_la" ;;
5159 *) . "./$found_la" ;;
5161 libdir="$save_libdir"
5162 for dep in $dependency_libs; do
5165 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5166 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
5167 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
5169 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
5170 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
5171 if test -n "$GCC"; then
5173 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5177 if test -z "$haveit"; then
5179 for x in $LDFLAGS $LIBICONV; do
5181 acl_save_prefix="$prefix"
5182 prefix="$acl_final_prefix"
5183 acl_save_exec_prefix="$exec_prefix"
5184 exec_prefix="$acl_final_exec_prefix"
5186 exec_prefix="$acl_save_exec_prefix"
5187 prefix="$acl_save_prefix"
5189 if test "X$x" = "X-L$additional_libdir"; then
5194 if test -z "$haveit"; then
5195 if test -d "$additional_libdir"; then
5196 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
5200 for x in $LDFLAGS $LTLIBICONV; do
5202 acl_save_prefix="$prefix"
5203 prefix="$acl_final_prefix"
5204 acl_save_exec_prefix="$exec_prefix"
5205 exec_prefix="$acl_final_exec_prefix"
5207 exec_prefix="$acl_save_exec_prefix"
5208 prefix="$acl_save_prefix"
5210 if test "X$x" = "X-L$additional_libdir"; then
5215 if test -z "$haveit"; then
5216 if test -d "$additional_libdir"; then
5217 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
5224 dir=`echo "X$dep" | sed -e 's/^X-R//'`
5225 if test "$enable_rpath" != no; then
5227 for x in $rpathdirs; do
5228 if test "X$x" = "X$dir"; then
5233 if test -z "$haveit"; then
5234 rpathdirs="$rpathdirs $dir"
5237 for x in $ltrpathdirs; do
5238 if test "X$x" = "X$dir"; then
5243 if test -z "$haveit"; then
5244 ltrpathdirs="$ltrpathdirs $dir"
5249 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5252 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5255 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
5256 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
5262 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5263 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
5269 if test "X$rpathdirs" != "X"; then
5270 if test -n "$acl_hardcode_libdir_separator"; then
5272 for found_dir in $rpathdirs; do
5273 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
5275 acl_save_libdir="$libdir"
5277 eval flag=\"$acl_hardcode_libdir_flag_spec\"
5278 libdir="$acl_save_libdir"
5279 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5281 for found_dir in $rpathdirs; do
5282 acl_save_libdir="$libdir"
5284 eval flag=\"$acl_hardcode_libdir_flag_spec\"
5285 libdir="$acl_save_libdir"
5286 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5290 if test "X$ltrpathdirs" != "X"; then
5291 for found_dir in $ltrpathdirs; do
5292 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
5327 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
5328 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
5329 $as_echo_n "(cached) " >&6
5331 gt_save_LIBS="$LIBS"
5332 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
5333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5334 /* end confdefs.h. */
5335 #include <CoreFoundation/CFPreferences.h>
5339 CFPreferencesCopyAppValue(NULL, NULL)
5344 if ac_fn_c_try_link "$LINENO"; then :
5345 gt_cv_func_CFPreferencesCopyAppValue=yes
5347 gt_cv_func_CFPreferencesCopyAppValue=no
5349 rm -f core conftest.err conftest.$ac_objext \
5350 conftest$ac_exeext conftest.$ac_ext
5351 LIBS="$gt_save_LIBS"
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
5354 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
5355 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
5357 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
5361 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
5362 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
5363 $as_echo_n "(cached) " >&6
5365 gt_save_LIBS="$LIBS"
5366 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
5367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5368 /* end confdefs.h. */
5369 #include <CoreFoundation/CFLocale.h>
5373 CFLocaleCopyCurrent();
5378 if ac_fn_c_try_link "$LINENO"; then :
5379 gt_cv_func_CFLocaleCopyCurrent=yes
5381 gt_cv_func_CFLocaleCopyCurrent=no
5383 rm -f core conftest.err conftest.$ac_objext \
5384 conftest$ac_exeext conftest.$ac_ext
5385 LIBS="$gt_save_LIBS"
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
5388 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
5389 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5391 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
5395 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5396 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
5408 case " $gt_needs " in
5409 *" need-formatstring-macros "*) gt_api_version=3 ;;
5410 *" need-ngettext "*) gt_api_version=2 ;;
5411 *) gt_api_version=1 ;;
5413 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
5414 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
5416 if test "$USE_NLS" = "yes"; then
5417 gt_use_preinstalled_gnugettext=no
5420 if test $gt_api_version -ge 3; then
5421 gt_revision_test_code='
5422 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
5423 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
5425 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
5428 gt_revision_test_code=
5430 if test $gt_api_version -ge 2; then
5431 gt_expression_test_code=' + * ngettext ("", "", 0)'
5433 gt_expression_test_code=
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
5437 $as_echo_n "checking for GNU gettext in libc... " >&6; }
5438 if eval \${$gt_func_gnugettext_libc+:} false; then :
5439 $as_echo_n "(cached) " >&6
5441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5442 /* end confdefs.h. */
5443 #include <libintl.h>
5444 $gt_revision_test_code
5445 extern int _nl_msg_cat_cntr;
5446 extern int *_nl_domain_bindings;
5450 bindtextdomain ("", "");
5451 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
5456 if ac_fn_c_try_link "$LINENO"; then :
5457 eval "$gt_func_gnugettext_libc=yes"
5459 eval "$gt_func_gnugettext_libc=no"
5461 rm -f core conftest.err conftest.$ac_objext \
5462 conftest$ac_exeext conftest.$ac_ext
5464 eval ac_res=\$$gt_func_gnugettext_libc
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5466 $as_echo "$ac_res" >&6; }
5468 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
5474 am_save_CPPFLAGS="$CPPFLAGS"
5476 for element in $INCICONV; do
5478 for x in $CPPFLAGS; do
5480 acl_save_prefix="$prefix"
5481 prefix="$acl_final_prefix"
5482 acl_save_exec_prefix="$exec_prefix"
5483 exec_prefix="$acl_final_exec_prefix"
5485 exec_prefix="$acl_save_exec_prefix"
5486 prefix="$acl_save_prefix"
5488 if test "X$x" = "X$element"; then
5493 if test -z "$haveit"; then
5494 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
5500 $as_echo_n "checking for iconv... " >&6; }
5501 if ${am_cv_func_iconv+:} false; then :
5502 $as_echo_n "(cached) " >&6
5505 am_cv_func_iconv="no, consider installing GNU libiconv"
5507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5508 /* end confdefs.h. */
5514 iconv_t cd = iconv_open("","");
5515 iconv(cd,NULL,NULL,NULL,NULL);
5521 if ac_fn_c_try_link "$LINENO"; then :
5522 am_cv_func_iconv=yes
5524 rm -f core conftest.err conftest.$ac_objext \
5525 conftest$ac_exeext conftest.$ac_ext
5526 if test "$am_cv_func_iconv" != yes; then
5527 am_save_LIBS="$LIBS"
5528 LIBS="$LIBS $LIBICONV"
5529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5530 /* end confdefs.h. */
5536 iconv_t cd = iconv_open("","");
5537 iconv(cd,NULL,NULL,NULL,NULL);
5543 if ac_fn_c_try_link "$LINENO"; then :
5545 am_cv_func_iconv=yes
5547 rm -f core conftest.err conftest.$ac_objext \
5548 conftest$ac_exeext conftest.$ac_ext
5549 LIBS="$am_save_LIBS"
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
5554 $as_echo "$am_cv_func_iconv" >&6; }
5555 if test "$am_cv_func_iconv" = yes; then
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
5557 $as_echo_n "checking for working iconv... " >&6; }
5558 if ${am_cv_func_iconv_works+:} false; then :
5559 $as_echo_n "(cached) " >&6
5562 am_save_LIBS="$LIBS"
5563 if test $am_cv_lib_iconv = yes; then
5564 LIBS="$LIBS $LIBICONV"
5566 if test "$cross_compiling" = yes; then :
5568 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
5569 *) am_cv_func_iconv_works="guessing yes" ;;
5572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5573 /* end confdefs.h. */
5579 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
5582 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
5583 if (cd_utf8_to_88591 != (iconv_t)(-1))
5585 static const char input[] = "\342\202\254"; /* EURO SIGN */
5587 const char *inptr = input;
5588 size_t inbytesleft = strlen (input);
5590 size_t outbytesleft = sizeof (buf);
5591 size_t res = iconv (cd_utf8_to_88591,
5592 (char **) &inptr, &inbytesleft,
5593 &outptr, &outbytesleft);
5598 /* Test against Solaris 10 bug: Failures are not distinguishable from
5599 successful returns. */
5601 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
5602 if (cd_ascii_to_88591 != (iconv_t)(-1))
5604 static const char input[] = "\263";
5606 const char *inptr = input;
5607 size_t inbytesleft = strlen (input);
5609 size_t outbytesleft = sizeof (buf);
5610 size_t res = iconv (cd_ascii_to_88591,
5611 (char **) &inptr, &inbytesleft,
5612 &outptr, &outbytesleft);
5617 #if 0 /* This bug could be worked around by the caller. */
5618 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
5620 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
5621 if (cd_88591_to_utf8 != (iconv_t)(-1))
5623 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
5625 const char *inptr = input;
5626 size_t inbytesleft = strlen (input);
5628 size_t outbytesleft = sizeof (buf);
5629 size_t res = iconv (cd_88591_to_utf8,
5630 (char **) &inptr, &inbytesleft,
5631 &outptr, &outbytesleft);
5637 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
5639 if (/* Try standardized names. */
5640 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
5641 /* Try IRIX, OSF/1 names. */
5642 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
5643 /* Try AIX names. */
5644 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
5645 /* Try HP-UX names. */
5646 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
5651 if ac_fn_c_try_run "$LINENO"; then :
5652 am_cv_func_iconv_works=yes
5654 am_cv_func_iconv_works=no
5656 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5657 conftest.$ac_objext conftest.beam conftest.$ac_ext
5660 LIBS="$am_save_LIBS"
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
5664 $as_echo "$am_cv_func_iconv_works" >&6; }
5665 case "$am_cv_func_iconv_works" in
5666 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
5667 *) am_func_iconv=yes ;;
5670 am_func_iconv=no am_cv_lib_iconv=no
5672 if test "$am_func_iconv" = yes; then
5674 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
5677 if test "$am_cv_lib_iconv" = yes; then
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
5679 $as_echo_n "checking how to link with libiconv... " >&6; }
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
5681 $as_echo "$LIBICONV" >&6; }
5683 CPPFLAGS="$am_save_CPPFLAGS"
5700 acl_save_prefix="$prefix"
5701 prefix="$acl_final_prefix"
5702 acl_save_exec_prefix="$exec_prefix"
5703 exec_prefix="$acl_final_exec_prefix"
5705 eval additional_includedir=\"$includedir\"
5706 eval additional_libdir=\"$libdir\"
5708 exec_prefix="$acl_save_exec_prefix"
5709 prefix="$acl_save_prefix"
5712 # Check whether --with-libintl-prefix was given.
5713 if test "${with_libintl_prefix+set}" = set; then :
5714 withval=$with_libintl_prefix;
5715 if test "X$withval" = "Xno"; then
5718 if test "X$withval" = "X"; then
5720 acl_save_prefix="$prefix"
5721 prefix="$acl_final_prefix"
5722 acl_save_exec_prefix="$exec_prefix"
5723 exec_prefix="$acl_final_exec_prefix"
5725 eval additional_includedir=\"$includedir\"
5726 eval additional_libdir=\"$libdir\"
5728 exec_prefix="$acl_save_exec_prefix"
5729 prefix="$acl_save_prefix"
5732 additional_includedir="$withval/include"
5733 additional_libdir="$withval/$acl_libdirstem"
5734 if test "$acl_libdirstem2" != "$acl_libdirstem" \
5735 && ! test -d "$withval/$acl_libdirstem"; then
5736 additional_libdir="$withval/$acl_libdirstem2"
5750 names_already_handled=
5751 names_next_round='intl '
5752 while test -n "$names_next_round"; do
5753 names_this_round="$names_next_round"
5755 for name in $names_this_round; do
5757 for n in $names_already_handled; do
5758 if test "$n" = "$name"; then
5763 if test -z "$already_handled"; then
5764 names_already_handled="$names_already_handled $name"
5765 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5766 eval value=\"\$HAVE_LIB$uppername\"
5767 if test -n "$value"; then
5768 if test "$value" = yes; then
5769 eval value=\"\$LIB$uppername\"
5770 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
5771 eval value=\"\$LTLIB$uppername\"
5772 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
5781 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
5782 if test -n "$acl_shlibext"; then
5783 shrext=".$acl_shlibext" # typically: shrext=.so
5787 if test $use_additional = yes; then
5788 dir="$additional_libdir"
5789 if test -n "$acl_shlibext"; then
5790 if test -f "$dir/$libname$shrext"; then
5792 found_so="$dir/$libname$shrext"
5794 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5795 ver=`(cd "$dir" && \
5796 for f in "$libname$shrext".*; do echo "$f"; done \
5797 | sed -e "s,^$libname$shrext\\\\.,," \
5798 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5799 | sed 1q ) 2>/dev/null`
5800 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5802 found_so="$dir/$libname$shrext.$ver"
5805 eval library_names=\"$acl_library_names_spec\"
5806 for f in $library_names; do
5807 if test -f "$dir/$f"; then
5816 if test "X$found_dir" = "X"; then
5817 if test -f "$dir/$libname.$acl_libext"; then
5819 found_a="$dir/$libname.$acl_libext"
5822 if test "X$found_dir" != "X"; then
5823 if test -f "$dir/$libname.la"; then
5824 found_la="$dir/$libname.la"
5828 if test "X$found_dir" = "X"; then
5829 for x in $LDFLAGS $LTLIBINTL; do
5831 acl_save_prefix="$prefix"
5832 prefix="$acl_final_prefix"
5833 acl_save_exec_prefix="$exec_prefix"
5834 exec_prefix="$acl_final_exec_prefix"
5836 exec_prefix="$acl_save_exec_prefix"
5837 prefix="$acl_save_prefix"
5841 dir=`echo "X$x" | sed -e 's/^X-L//'`
5842 if test -n "$acl_shlibext"; then
5843 if test -f "$dir/$libname$shrext"; then
5845 found_so="$dir/$libname$shrext"
5847 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5848 ver=`(cd "$dir" && \
5849 for f in "$libname$shrext".*; do echo "$f"; done \
5850 | sed -e "s,^$libname$shrext\\\\.,," \
5851 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5852 | sed 1q ) 2>/dev/null`
5853 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5855 found_so="$dir/$libname$shrext.$ver"
5858 eval library_names=\"$acl_library_names_spec\"
5859 for f in $library_names; do
5860 if test -f "$dir/$f"; then
5869 if test "X$found_dir" = "X"; then
5870 if test -f "$dir/$libname.$acl_libext"; then
5872 found_a="$dir/$libname.$acl_libext"
5875 if test "X$found_dir" != "X"; then
5876 if test -f "$dir/$libname.la"; then
5877 found_la="$dir/$libname.la"
5882 if test "X$found_dir" != "X"; then
5887 if test "X$found_dir" != "X"; then
5888 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
5889 if test "X$found_so" != "X"; then
5890 if test "$enable_rpath" = no \
5891 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
5892 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
5893 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5896 for x in $ltrpathdirs; do
5897 if test "X$x" = "X$found_dir"; then
5902 if test -z "$haveit"; then
5903 ltrpathdirs="$ltrpathdirs $found_dir"
5905 if test "$acl_hardcode_direct" = yes; then
5906 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5908 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
5909 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5911 for x in $rpathdirs; do
5912 if test "X$x" = "X$found_dir"; then
5917 if test -z "$haveit"; then
5918 rpathdirs="$rpathdirs $found_dir"
5922 for x in $LDFLAGS $LIBINTL; do
5924 acl_save_prefix="$prefix"
5925 prefix="$acl_final_prefix"
5926 acl_save_exec_prefix="$exec_prefix"
5927 exec_prefix="$acl_final_exec_prefix"
5929 exec_prefix="$acl_save_exec_prefix"
5930 prefix="$acl_save_prefix"
5932 if test "X$x" = "X-L$found_dir"; then
5937 if test -z "$haveit"; then
5938 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
5940 if test "$acl_hardcode_minus_L" != no; then
5941 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5943 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
5949 if test "X$found_a" != "X"; then
5950 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
5952 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
5955 additional_includedir=
5956 case "$found_dir" in
5957 */$acl_libdirstem | */$acl_libdirstem/)
5958 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
5959 if test "$name" = 'intl'; then
5960 LIBINTL_PREFIX="$basedir"
5962 additional_includedir="$basedir/include"
5964 */$acl_libdirstem2 | */$acl_libdirstem2/)
5965 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
5966 if test "$name" = 'intl'; then
5967 LIBINTL_PREFIX="$basedir"
5969 additional_includedir="$basedir/include"
5972 if test "X$additional_includedir" != "X"; then
5973 if test "X$additional_includedir" != "X/usr/include"; then
5975 if test "X$additional_includedir" = "X/usr/local/include"; then
5976 if test -n "$GCC"; then
5978 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5982 if test -z "$haveit"; then
5983 for x in $CPPFLAGS $INCINTL; do
5985 acl_save_prefix="$prefix"
5986 prefix="$acl_final_prefix"
5987 acl_save_exec_prefix="$exec_prefix"
5988 exec_prefix="$acl_final_exec_prefix"
5990 exec_prefix="$acl_save_exec_prefix"
5991 prefix="$acl_save_prefix"
5993 if test "X$x" = "X-I$additional_includedir"; then
5998 if test -z "$haveit"; then
5999 if test -d "$additional_includedir"; then
6000 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
6006 if test -n "$found_la"; then
6007 save_libdir="$libdir"
6009 */* | *\\*) . "$found_la" ;;
6010 *) . "./$found_la" ;;
6012 libdir="$save_libdir"
6013 for dep in $dependency_libs; do
6016 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6017 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
6018 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
6020 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
6021 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
6022 if test -n "$GCC"; then
6024 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6028 if test -z "$haveit"; then
6030 for x in $LDFLAGS $LIBINTL; do
6032 acl_save_prefix="$prefix"
6033 prefix="$acl_final_prefix"
6034 acl_save_exec_prefix="$exec_prefix"
6035 exec_prefix="$acl_final_exec_prefix"
6037 exec_prefix="$acl_save_exec_prefix"
6038 prefix="$acl_save_prefix"
6040 if test "X$x" = "X-L$additional_libdir"; then
6045 if test -z "$haveit"; then
6046 if test -d "$additional_libdir"; then
6047 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
6051 for x in $LDFLAGS $LTLIBINTL; do
6053 acl_save_prefix="$prefix"
6054 prefix="$acl_final_prefix"
6055 acl_save_exec_prefix="$exec_prefix"
6056 exec_prefix="$acl_final_exec_prefix"
6058 exec_prefix="$acl_save_exec_prefix"
6059 prefix="$acl_save_prefix"
6061 if test "X$x" = "X-L$additional_libdir"; then
6066 if test -z "$haveit"; then
6067 if test -d "$additional_libdir"; then
6068 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
6075 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6076 if test "$enable_rpath" != no; then
6078 for x in $rpathdirs; do
6079 if test "X$x" = "X$dir"; then
6084 if test -z "$haveit"; then
6085 rpathdirs="$rpathdirs $dir"
6088 for x in $ltrpathdirs; do
6089 if test "X$x" = "X$dir"; then
6094 if test -z "$haveit"; then
6095 ltrpathdirs="$ltrpathdirs $dir"
6100 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6103 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6106 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
6107 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
6113 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6114 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
6120 if test "X$rpathdirs" != "X"; then
6121 if test -n "$acl_hardcode_libdir_separator"; then
6123 for found_dir in $rpathdirs; do
6124 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
6126 acl_save_libdir="$libdir"
6128 eval flag=\"$acl_hardcode_libdir_flag_spec\"
6129 libdir="$acl_save_libdir"
6130 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6132 for found_dir in $rpathdirs; do
6133 acl_save_libdir="$libdir"
6135 eval flag=\"$acl_hardcode_libdir_flag_spec\"
6136 libdir="$acl_save_libdir"
6137 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6141 if test "X$ltrpathdirs" != "X"; then
6142 for found_dir in $ltrpathdirs; do
6143 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
6153 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
6154 if eval \${$gt_func_gnugettext_libintl+:} false; then :
6155 $as_echo_n "(cached) " >&6
6157 gt_save_CPPFLAGS="$CPPFLAGS"
6158 CPPFLAGS="$CPPFLAGS $INCINTL"
6159 gt_save_LIBS="$LIBS"
6160 LIBS="$LIBS $LIBINTL"
6161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6162 /* end confdefs.h. */
6163 #include <libintl.h>
6164 $gt_revision_test_code
6165 extern int _nl_msg_cat_cntr;
6170 const char *_nl_expand_alias (const char *);
6174 bindtextdomain ("", "");
6175 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6180 if ac_fn_c_try_link "$LINENO"; then :
6181 eval "$gt_func_gnugettext_libintl=yes"
6183 eval "$gt_func_gnugettext_libintl=no"
6185 rm -f core conftest.err conftest.$ac_objext \
6186 conftest$ac_exeext conftest.$ac_ext
6187 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
6188 LIBS="$LIBS $LIBICONV"
6189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6190 /* end confdefs.h. */
6191 #include <libintl.h>
6192 $gt_revision_test_code
6193 extern int _nl_msg_cat_cntr;
6198 const char *_nl_expand_alias (const char *);
6202 bindtextdomain ("", "");
6203 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6208 if ac_fn_c_try_link "$LINENO"; then :
6209 LIBINTL="$LIBINTL $LIBICONV"
6210 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
6211 eval "$gt_func_gnugettext_libintl=yes"
6214 rm -f core conftest.err conftest.$ac_objext \
6215 conftest$ac_exeext conftest.$ac_ext
6217 CPPFLAGS="$gt_save_CPPFLAGS"
6218 LIBS="$gt_save_LIBS"
6220 eval ac_res=\$$gt_func_gnugettext_libintl
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6222 $as_echo "$ac_res" >&6; }
6225 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
6226 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
6227 && test "$PACKAGE" != gettext-runtime \
6228 && test "$PACKAGE" != gettext-tools; }; then
6229 gt_use_preinstalled_gnugettext=yes
6238 if test -n "$INTL_MACOSX_LIBS"; then
6239 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6240 || test "$nls_cv_use_gnu_gettext" = "yes"; then
6241 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
6242 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
6246 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6247 || test "$nls_cv_use_gnu_gettext" = "yes"; then
6249 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
6257 $as_echo_n "checking whether to use NLS... " >&6; }
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6259 $as_echo "$USE_NLS" >&6; }
6260 if test "$USE_NLS" = "yes"; then
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
6262 $as_echo_n "checking where the gettext function comes from... " >&6; }
6263 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6264 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
6265 gt_source="external libintl"
6270 gt_source="included intl directory"
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
6273 $as_echo "$gt_source" >&6; }
6276 if test "$USE_NLS" = "yes"; then
6278 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6279 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
6281 $as_echo_n "checking how to link with libintl... " >&6; }
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
6283 $as_echo "$LIBINTL" >&6; }
6285 for element in $INCINTL; do
6287 for x in $CPPFLAGS; do
6289 acl_save_prefix="$prefix"
6290 prefix="$acl_final_prefix"
6291 acl_save_exec_prefix="$exec_prefix"
6292 exec_prefix="$acl_final_exec_prefix"
6294 exec_prefix="$acl_save_exec_prefix"
6295 prefix="$acl_save_prefix"
6297 if test "X$x" = "X$element"; then
6302 if test -z "$haveit"; then
6303 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6310 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
6313 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
6334 abook_localedir="$datadir/locale"
6335 abook_localedir=`( test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6336 eval tmp_abook_prefix=\""$abook_localedir"\"
6337 eval echo $tmp_abook_prefix
6340 localedir="\$(datadir)/locale"
6343 # Check whether --with-localedir was given.
6344 if test "${with_localedir+set}" = set; then :
6345 withval=$with_localedir;
6348 if test "x$with_localedir" != "x"; then
6349 abook_localedir="$with_localedir"
6350 localedir="$with_localedir"
6354 cat >>confdefs.h <<_ACEOF
6355 #define LOCALEDIR "$abook_localedir"
6360 if test x$USE_INCLUDED_LIBINTL = xyes; then
6361 USE_INCLUDED_INTL_H_TRUE=
6362 USE_INCLUDED_INTL_H_FALSE='#'
6364 USE_INCLUDED_INTL_H_TRUE='#'
6365 USE_INCLUDED_INTL_H_FALSE=
6371 ac_cpp='$CPP $CPPFLAGS'
6372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6373 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6375 if test -n "$ac_tool_prefix"; then
6376 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
6377 set dummy ${ac_tool_prefix}gcc; ac_word=$2
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6379 $as_echo_n "checking for $ac_word... " >&6; }
6380 if ${ac_cv_prog_CC+:} false; then :
6381 $as_echo_n "(cached) " >&6
6383 if test -n "$CC"; then
6384 ac_cv_prog_CC="$CC" # Let the user override the test.
6386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6390 test -z "$as_dir" && as_dir=.
6391 for ac_exec_ext in '' $ac_executable_extensions; do
6392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6393 ac_cv_prog_CC="${ac_tool_prefix}gcc"
6394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6404 if test -n "$CC"; then
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6406 $as_echo "$CC" >&6; }
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6409 $as_echo "no" >&6; }
6414 if test -z "$ac_cv_prog_CC"; then
6416 # Extract the first word of "gcc", so it can be a program name with args.
6417 set dummy gcc; ac_word=$2
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6419 $as_echo_n "checking for $ac_word... " >&6; }
6420 if ${ac_cv_prog_ac_ct_CC+:} false; then :
6421 $as_echo_n "(cached) " >&6
6423 if test -n "$ac_ct_CC"; then
6424 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6430 test -z "$as_dir" && as_dir=.
6431 for ac_exec_ext in '' $ac_executable_extensions; do
6432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6433 ac_cv_prog_ac_ct_CC="gcc"
6434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6443 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6444 if test -n "$ac_ct_CC"; then
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6446 $as_echo "$ac_ct_CC" >&6; }
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6449 $as_echo "no" >&6; }
6452 if test "x$ac_ct_CC" = x; then
6455 case $cross_compiling:$ac_tool_warned in
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6458 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6459 ac_tool_warned=yes ;;
6467 if test -z "$CC"; then
6468 if test -n "$ac_tool_prefix"; then
6469 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6470 set dummy ${ac_tool_prefix}cc; ac_word=$2
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6472 $as_echo_n "checking for $ac_word... " >&6; }
6473 if ${ac_cv_prog_CC+:} false; then :
6474 $as_echo_n "(cached) " >&6
6476 if test -n "$CC"; then
6477 ac_cv_prog_CC="$CC" # Let the user override the test.
6479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6483 test -z "$as_dir" && as_dir=.
6484 for ac_exec_ext in '' $ac_executable_extensions; do
6485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6486 ac_cv_prog_CC="${ac_tool_prefix}cc"
6487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6497 if test -n "$CC"; then
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6499 $as_echo "$CC" >&6; }
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6502 $as_echo "no" >&6; }
6508 if test -z "$CC"; then
6509 # Extract the first word of "cc", so it can be a program name with args.
6510 set dummy cc; ac_word=$2
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6512 $as_echo_n "checking for $ac_word... " >&6; }
6513 if ${ac_cv_prog_CC+:} false; then :
6514 $as_echo_n "(cached) " >&6
6516 if test -n "$CC"; then
6517 ac_cv_prog_CC="$CC" # Let the user override the test.
6520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6524 test -z "$as_dir" && as_dir=.
6525 for ac_exec_ext in '' $ac_executable_extensions; do
6526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6527 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6528 ac_prog_rejected=yes
6532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6539 if test $ac_prog_rejected = yes; then
6540 # We found a bogon in the path, so make sure we never use it.
6541 set dummy $ac_cv_prog_CC
6543 if test $# != 0; then
6544 # We chose a different compiler from the bogus one.
6545 # However, it has the same basename, so the bogon will be chosen
6546 # first if we set CC to just the basename; use the full file name.
6548 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6554 if test -n "$CC"; then
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6556 $as_echo "$CC" >&6; }
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6559 $as_echo "no" >&6; }
6564 if test -z "$CC"; then
6565 if test -n "$ac_tool_prefix"; then
6566 for ac_prog in cl.exe
6568 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6569 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6571 $as_echo_n "checking for $ac_word... " >&6; }
6572 if ${ac_cv_prog_CC+:} false; then :
6573 $as_echo_n "(cached) " >&6
6575 if test -n "$CC"; then
6576 ac_cv_prog_CC="$CC" # Let the user override the test.
6578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6582 test -z "$as_dir" && as_dir=.
6583 for ac_exec_ext in '' $ac_executable_extensions; do
6584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6585 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6596 if test -n "$CC"; then
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6598 $as_echo "$CC" >&6; }
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6601 $as_echo "no" >&6; }
6605 test -n "$CC" && break
6608 if test -z "$CC"; then
6610 for ac_prog in cl.exe
6612 # Extract the first word of "$ac_prog", so it can be a program name with args.
6613 set dummy $ac_prog; ac_word=$2
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6615 $as_echo_n "checking for $ac_word... " >&6; }
6616 if ${ac_cv_prog_ac_ct_CC+:} false; then :
6617 $as_echo_n "(cached) " >&6
6619 if test -n "$ac_ct_CC"; then
6620 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6626 test -z "$as_dir" && as_dir=.
6627 for ac_exec_ext in '' $ac_executable_extensions; do
6628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6629 ac_cv_prog_ac_ct_CC="$ac_prog"
6630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6639 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6640 if test -n "$ac_ct_CC"; then
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6642 $as_echo "$ac_ct_CC" >&6; }
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6645 $as_echo "no" >&6; }
6649 test -n "$ac_ct_CC" && break
6652 if test "x$ac_ct_CC" = x; then
6655 case $cross_compiling:$ac_tool_warned in
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6658 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6659 ac_tool_warned=yes ;;
6668 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6669 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6670 as_fn_error $? "no acceptable C compiler found in \$PATH
6671 See \`config.log' for more details" "$LINENO" 5; }
6673 # Provide some information about the compiler.
6674 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6677 for ac_option in --version -v -V -qversion; do
6678 { { ac_try="$ac_compiler $ac_option >&5"
6680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6681 *) ac_try_echo=$ac_try;;
6683 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6684 $as_echo "$ac_try_echo"; } >&5
6685 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6687 if test -s conftest.err; then
6689 ... rest of stderr output deleted ...
6690 10q' conftest.err >conftest.er1
6691 cat conftest.er1 >&5
6693 rm -f conftest.er1 conftest.err
6694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6695 test $ac_status = 0; }
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6699 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6700 if ${ac_cv_c_compiler_gnu+:} false; then :
6701 $as_echo_n "(cached) " >&6
6703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6704 /* end confdefs.h. */
6717 if ac_fn_c_try_compile "$LINENO"; then :
6722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6723 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6727 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
6728 if test $ac_compiler_gnu = yes; then
6733 ac_test_CFLAGS=${CFLAGS+set}
6734 ac_save_CFLAGS=$CFLAGS
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6736 $as_echo_n "checking whether $CC accepts -g... " >&6; }
6737 if ${ac_cv_prog_cc_g+:} false; then :
6738 $as_echo_n "(cached) " >&6
6740 ac_save_c_werror_flag=$ac_c_werror_flag
6741 ac_c_werror_flag=yes
6744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6745 /* end confdefs.h. */
6755 if ac_fn_c_try_compile "$LINENO"; then :
6759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6760 /* end confdefs.h. */
6770 if ac_fn_c_try_compile "$LINENO"; then :
6773 ac_c_werror_flag=$ac_save_c_werror_flag
6775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6776 /* end confdefs.h. */
6786 if ac_fn_c_try_compile "$LINENO"; then :
6789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6794 ac_c_werror_flag=$ac_save_c_werror_flag
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6797 $as_echo "$ac_cv_prog_cc_g" >&6; }
6798 if test "$ac_test_CFLAGS" = set; then
6799 CFLAGS=$ac_save_CFLAGS
6800 elif test $ac_cv_prog_cc_g = yes; then
6801 if test "$GCC" = yes; then
6807 if test "$GCC" = yes; then
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6814 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6815 if ${ac_cv_prog_cc_c89+:} false; then :
6816 $as_echo_n "(cached) " >&6
6818 ac_cv_prog_cc_c89=no
6820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6821 /* end confdefs.h. */
6825 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6826 struct buf { int x; };
6827 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6828 static char *e (p, i)
6834 static char *f (char * (*g) (char **, int), char **p, ...)
6839 s = g (p, va_arg (v,int));
6844 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6845 function prototypes and stuff, but not '\xHH' hex character constants.
6846 These don't provoke an error unfortunately, instead are silently treated
6847 as 'x'. The following induces an error, until -std is added to get
6848 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6849 array size at least. It's necessary to write '\x00'==0 to get something
6850 that's true only with -std. */
6851 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6853 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6854 inside strings and character constants. */
6856 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6858 int test (int i, double x);
6859 struct s1 {int (*f) (int a);};
6860 struct s2 {int (*f) (double a);};
6861 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6867 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6872 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6873 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6875 CC="$ac_save_CC $ac_arg"
6876 if ac_fn_c_try_compile "$LINENO"; then :
6877 ac_cv_prog_cc_c89=$ac_arg
6879 rm -f core conftest.err conftest.$ac_objext
6880 test "x$ac_cv_prog_cc_c89" != "xno" && break
6882 rm -f conftest.$ac_ext
6887 case "x$ac_cv_prog_cc_c89" in
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6890 $as_echo "none needed" >&6; } ;;
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6893 $as_echo "unsupported" >&6; } ;;
6895 CC="$CC $ac_cv_prog_cc_c89"
6896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6897 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6899 if test "x$ac_cv_prog_cc_c89" != xno; then :
6904 ac_cpp='$CPP $CPPFLAGS'
6905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6909 depcc="$CC" am_compiler_list=
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6912 $as_echo_n "checking dependency style of $depcc... " >&6; }
6913 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6914 $as_echo_n "(cached) " >&6
6916 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6917 # We make a subdir and do the tests there. Otherwise we can end up
6918 # making bogus files that we don't know about and never remove. For
6919 # instance it was reported that on HP-UX the gcc test will end up
6920 # making a dummy file named `D' -- because `-MD' means `put the output
6924 # Copy depcomp to subdir because otherwise we won't find it if we're
6925 # using a relative directory.
6926 cp "$am_depcomp" conftest.dir
6928 # We will build objects and dependencies in a subdirectory because
6929 # it helps to detect inapplicable dependency modes. For instance
6930 # both Tru64's cc and ICC support -MD to output dependencies as a
6931 # side effect of compilation, but ICC will put the dependencies in
6932 # the current directory while Tru64 will put them in the object
6936 am_cv_CC_dependencies_compiler_type=none
6937 if test "$am_compiler_list" = ""; then
6938 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6941 case " $depcc " in #(
6942 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6945 for depmode in $am_compiler_list; do
6946 # Setup a source with many dependencies, because some compilers
6947 # like to wrap large dependency lists on column 80 (with \), and
6948 # we should not choose a depcomp mode which is confused by this.
6950 # We need to recreate these files for each test, as the compiler may
6951 # overwrite some of them when testing with obscure command lines.
6952 # This happens at least with the AIX C compiler.
6954 for i in 1 2 3 4 5 6; do
6955 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6956 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6957 # Solaris 8's {/usr,}/bin/sh.
6958 touch sub/conftst$i.h
6960 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6962 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6963 # mode. It turns out that the SunPro C++ compiler does not properly
6964 # handle `-M -o', and we need to detect this. Also, some Intel
6965 # versions had trouble with output in subdirs
6966 am__obj=sub/conftest.${OBJEXT-o}
6967 am__minus_obj="-o $am__obj"
6970 # This depmode causes a compiler race in universal mode.
6971 test "$am__universal" = false || continue
6974 # after this tag, mechanisms are not by side-effect, so they'll
6975 # only be used when explicitly requested
6976 if test "x$enable_dependency_tracking" = xyes; then
6982 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6983 # This compiler won't grok `-c -o', but also, the minuso test has
6984 # not run yet. These depmodes are late enough in the game, and
6985 # so weak that their functioning should not be impacted.
6986 am__obj=conftest.${OBJEXT-o}
6991 if depmode=$depmode \
6992 source=sub/conftest.c object=$am__obj \
6993 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6994 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6995 >/dev/null 2>conftest.err &&
6996 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6997 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6998 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6999 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7000 # icc doesn't choke on unknown options, it will just issue warnings
7001 # or remarks (even with -Werror). So we grep stderr for any message
7002 # that says an option was ignored or not supported.
7003 # When given -MP, icc 7.0 and 7.1 complain thusly:
7004 # icc: Command line warning: ignoring option '-M'; no argument required
7005 # The diagnosis changed in icc 8.0:
7006 # icc: Command line remark: option '-MP' not supported
7007 if (grep 'ignoring option' conftest.err ||
7008 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7009 am_cv_CC_dependencies_compiler_type=$depmode
7018 am_cv_CC_dependencies_compiler_type=none
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
7023 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
7024 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
7027 test "x$enable_dependency_tracking" != xno \
7028 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
7030 am__fastdepCC_FALSE='#'
7032 am__fastdepCC_TRUE='#'
7033 am__fastdepCC_FALSE=
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
7038 $as_echo_n "checking for library containing strerror... " >&6; }
7039 if ${ac_cv_search_strerror+:} false; then :
7040 $as_echo_n "(cached) " >&6
7042 ac_func_search_save_LIBS=$LIBS
7043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7044 /* end confdefs.h. */
7046 /* Override any GCC internal prototype to avoid an error.
7047 Use char because int might match the return type of a GCC
7048 builtin and then its argument prototype would still apply. */
7061 for ac_lib in '' cposix; do
7062 if test -z "$ac_lib"; then
7063 ac_res="none required"
7066 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7068 if ac_fn_c_try_link "$LINENO"; then :
7069 ac_cv_search_strerror=$ac_res
7071 rm -f core conftest.err conftest.$ac_objext \
7073 if ${ac_cv_search_strerror+:} false; then :
7077 if ${ac_cv_search_strerror+:} false; then :
7080 ac_cv_search_strerror=no
7083 LIBS=$ac_func_search_save_LIBS
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
7086 $as_echo "$ac_cv_search_strerror" >&6; }
7087 ac_res=$ac_cv_search_strerror
7088 if test "$ac_res" != no; then :
7089 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
7094 $as_echo_n "checking for function prototypes... " >&6; }
7095 if test "$ac_cv_prog_cc_c89" != no; then
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7097 $as_echo "yes" >&6; }
7099 $as_echo "#define PROTOTYPES 1" >>confdefs.h
7102 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7106 $as_echo "no" >&6; }
7111 if test "$ac_cv_prog_cc_stdc" != no; then
7114 U=_ ANSI2KNR=./ansi2knr
7116 # Ensure some checks needed by ansi2knr itself.
7118 for ac_header in string.h
7120 ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
7121 if test "x$ac_cv_header_string_h" = xyes; then :
7122 cat >>confdefs.h <<_ACEOF
7123 #define HAVE_STRING_H 1
7131 if test "x$U" != "x"; then
7132 as_fn_error $? "Compiler not ANSI compliant" "$LINENO" 5
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
7135 $as_echo_n "checking for inline... " >&6; }
7136 if ${ac_cv_c_inline+:} false; then :
7137 $as_echo_n "(cached) " >&6
7140 for ac_kw in inline __inline__ __inline; do
7141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7142 /* end confdefs.h. */
7145 static $ac_kw foo_t static_foo () {return 0; }
7146 $ac_kw foo_t foo () {return 0; }
7150 if ac_fn_c_try_compile "$LINENO"; then :
7151 ac_cv_c_inline=$ac_kw
7153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7154 test "$ac_cv_c_inline" != no && break
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
7159 $as_echo "$ac_cv_c_inline" >&6; }
7161 case $ac_cv_c_inline in
7164 case $ac_cv_c_inline in
7166 *) ac_val=$ac_cv_c_inline;;
7168 cat >>confdefs.h <<_ACEOF
7170 #define inline $ac_val
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7178 $as_echo_n "checking for ANSI C header files... " >&6; }
7179 if ${ac_cv_header_stdc+:} false; then :
7180 $as_echo_n "(cached) " >&6
7182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7183 /* end confdefs.h. */
7197 if ac_fn_c_try_compile "$LINENO"; then :
7198 ac_cv_header_stdc=yes
7200 ac_cv_header_stdc=no
7202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7204 if test $ac_cv_header_stdc = yes; then
7205 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7207 /* end confdefs.h. */
7211 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7212 $EGREP "memchr" >/dev/null 2>&1; then :
7215 ac_cv_header_stdc=no
7221 if test $ac_cv_header_stdc = yes; then
7222 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7224 /* end confdefs.h. */
7228 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7229 $EGREP "free" >/dev/null 2>&1; then :
7232 ac_cv_header_stdc=no
7238 if test $ac_cv_header_stdc = yes; then
7239 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7240 if test "$cross_compiling" = yes; then :
7243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7244 /* end confdefs.h. */
7247 #if ((' ' & 0x0FF) == 0x020)
7248 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7249 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7251 # define ISLOWER(c) \
7252 (('a' <= (c) && (c) <= 'i') \
7253 || ('j' <= (c) && (c) <= 'r') \
7254 || ('s' <= (c) && (c) <= 'z'))
7255 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7258 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7263 for (i = 0; i < 256; i++)
7264 if (XOR (islower (i), ISLOWER (i))
7265 || toupper (i) != TOUPPER (i))
7270 if ac_fn_c_try_run "$LINENO"; then :
7273 ac_cv_header_stdc=no
7275 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7276 conftest.$ac_objext conftest.beam conftest.$ac_ext
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7282 $as_echo "$ac_cv_header_stdc" >&6; }
7283 if test $ac_cv_header_stdc = yes; then
7285 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7289 for ac_header in unistd.h locale.h sys/ioctl.h iconv.h
7291 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7292 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7293 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7294 cat >>confdefs.h <<_ACEOF
7295 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7302 ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
7303 if test "x$ac_cv_header_stdarg_h" = xyes; then :
7305 $as_echo "#define HAVE_STDARG_H 1" >>confdefs.h
7308 as_fn_error $? "*** stdarg.h is missing on your system ***" "$LINENO" 5
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
7313 $as_echo_n "checking for working strcoll... " >&6; }
7314 if ${ac_cv_func_strcoll_works+:} false; then :
7315 $as_echo_n "(cached) " >&6
7317 if test "$cross_compiling" = yes; then :
7318 ac_cv_func_strcoll_works=no
7320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7321 /* end confdefs.h. */
7322 $ac_includes_default
7326 return (strcoll ("abc", "def") >= 0 ||
7327 strcoll ("ABC", "DEF") >= 0 ||
7328 strcoll ("123", "456") >= 0)
7333 if ac_fn_c_try_run "$LINENO"; then :
7334 ac_cv_func_strcoll_works=yes
7336 ac_cv_func_strcoll_works=no
7338 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7339 conftest.$ac_objext conftest.beam conftest.$ac_ext
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
7344 $as_echo "$ac_cv_func_strcoll_works" >&6; }
7345 if test $ac_cv_func_strcoll_works = yes; then
7347 $as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
7351 for ac_func in setlocale
7353 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
7354 if test "x$ac_cv_func_setlocale" = xyes; then :
7355 cat >>confdefs.h <<_ACEOF
7356 #define HAVE_SETLOCALE 1
7364 ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
7365 if test "x$ac_cv_header_wchar_h" = xyes; then :
7369 $as_echo "#define HAVE_WCHAR_H 1" >>confdefs.h
7376 for ac_func in mbtowc wcwidth mbrtowc mbsinit
7378 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7379 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7380 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7381 cat >>confdefs.h <<_ACEOF
7382 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7390 ac_fn_c_check_decl "$LINENO" "wcwidth" "ac_cv_have_decl_wcwidth" "$ac_includes_default"
7391 if test "x$ac_cv_have_decl_wcwidth" = xyes; then :
7397 cat >>confdefs.h <<_ACEOF
7398 #define HAVE_DECL_WCWIDTH $ac_have_decl
7401 ac_fn_c_check_type "$LINENO" "wchar_t" "ac_cv_type_wchar_t" "$ac_includes_default"
7402 if test "x$ac_cv_type_wchar_t" = xyes; then :
7409 if test x$ac_widec_funcs = xyes -a x$ac_have_wchar_h = xyes; then
7410 ac_widec_possible=yes
7412 ac_widec_possible=no
7416 abook_cv_curses=/usr
7418 # Check whether --with-curses was given.
7419 if test "${with_curses+set}" = set; then :
7420 withval=$with_curses; if test $withval != yes; then
7421 abook_cv_curses=$withval
7423 if test x$abook_cv_curses != x/usr; then
7424 LDFLAGS="-L${abook_cv_curses}/lib $LDFLAGS"
7425 CPPFLAGS="$CPPFLAGS -I${abook_cv_curses}/include"
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncursesw" >&5
7431 $as_echo_n "checking for initscr in -lncursesw... " >&6; }
7432 if ${ac_cv_lib_ncursesw_initscr+:} false; then :
7433 $as_echo_n "(cached) " >&6
7435 ac_check_lib_save_LIBS=$LIBS
7436 LIBS="-lncursesw $LIBS"
7437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7438 /* end confdefs.h. */
7440 /* Override any GCC internal prototype to avoid an error.
7441 Use char because int might match the return type of a GCC
7442 builtin and then its argument prototype would still apply. */
7455 if ac_fn_c_try_link "$LINENO"; then :
7456 ac_cv_lib_ncursesw_initscr=yes
7458 ac_cv_lib_ncursesw_initscr=no
7460 rm -f core conftest.err conftest.$ac_objext \
7461 conftest$ac_exeext conftest.$ac_ext
7462 LIBS=$ac_check_lib_save_LIBS
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncursesw_initscr" >&5
7465 $as_echo "$ac_cv_lib_ncursesw_initscr" >&6; }
7466 if test "x$ac_cv_lib_ncursesw_initscr" = xyes; then :
7467 LIBS="$LIBS -lncursesw"
7468 if test x$abook_cv_curses = x/usr -a -d /usr/include/ncursesw; then
7469 CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw"
7471 for ac_header in ncurses.h
7473 ac_fn_c_check_header_mongrel "$LINENO" "ncurses.h" "ac_cv_header_ncurses_h" "$ac_includes_default"
7474 if test "x$ac_cv_header_ncurses_h" = xyes; then :
7475 cat >>confdefs.h <<_ACEOF
7476 #define HAVE_NCURSES_H 1
7485 ac_widec_possible=no
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncurses" >&5
7487 $as_echo_n "checking for initscr in -lncurses... " >&6; }
7488 if ${ac_cv_lib_ncurses_initscr+:} false; then :
7489 $as_echo_n "(cached) " >&6
7491 ac_check_lib_save_LIBS=$LIBS
7492 LIBS="-lncurses $LIBS"
7493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7494 /* end confdefs.h. */
7496 /* Override any GCC internal prototype to avoid an error.
7497 Use char because int might match the return type of a GCC
7498 builtin and then its argument prototype would still apply. */
7511 if ac_fn_c_try_link "$LINENO"; then :
7512 ac_cv_lib_ncurses_initscr=yes
7514 ac_cv_lib_ncurses_initscr=no
7516 rm -f core conftest.err conftest.$ac_objext \
7517 conftest$ac_exeext conftest.$ac_ext
7518 LIBS=$ac_check_lib_save_LIBS
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_initscr" >&5
7521 $as_echo "$ac_cv_lib_ncurses_initscr" >&6; }
7522 if test "x$ac_cv_lib_ncurses_initscr" = xyes; then :
7523 LIBS="$LIBS -lncurses"
7524 if test x$abook_cv_curses = x/usr -a -d /usr/include/ncurses; then
7525 CPPFLAGS="$CPPFLAGS -I/usr/include/ncurses"
7527 for ac_header in ncurses.h
7529 ac_fn_c_check_header_mongrel "$LINENO" "ncurses.h" "ac_cv_header_ncurses_h" "$ac_includes_default"
7530 if test "x$ac_cv_header_ncurses_h" = xyes; then :
7531 cat >>confdefs.h <<_ACEOF
7532 #define HAVE_NCURSES_H 1
7541 ac_fn_c_check_func "$LINENO" "initscr" "ac_cv_func_initscr"
7542 if test "x$ac_cv_func_initscr" = xyes; then :
7546 case $host_os in #(vi
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgoto in -lmytinfo" >&5
7549 $as_echo_n "checking for tgoto in -lmytinfo... " >&6; }
7550 if ${ac_cv_lib_mytinfo_tgoto+:} false; then :
7551 $as_echo_n "(cached) " >&6
7553 ac_check_lib_save_LIBS=$LIBS
7554 LIBS="-lmytinfo $LIBS"
7555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7556 /* end confdefs.h. */
7558 /* Override any GCC internal prototype to avoid an error.
7559 Use char because int might match the return type of a GCC
7560 builtin and then its argument prototype would still apply. */
7573 if ac_fn_c_try_link "$LINENO"; then :
7574 ac_cv_lib_mytinfo_tgoto=yes
7576 ac_cv_lib_mytinfo_tgoto=no
7578 rm -f core conftest.err conftest.$ac_objext \
7579 conftest$ac_exeext conftest.$ac_ext
7580 LIBS=$ac_check_lib_save_LIBS
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mytinfo_tgoto" >&5
7583 $as_echo "$ac_cv_lib_mytinfo_tgoto" >&6; }
7584 if test "x$ac_cv_lib_mytinfo_tgoto" = xyes; then :
7585 LIBS="-lmytinfo $LIBS"
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lcur_colr" >&5
7591 $as_echo_n "checking for initscr in -lcur_colr... " >&6; }
7592 if ${ac_cv_lib_cur_colr_initscr+:} false; then :
7593 $as_echo_n "(cached) " >&6
7595 ac_check_lib_save_LIBS=$LIBS
7596 LIBS="-lcur_colr $LIBS"
7597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7598 /* end confdefs.h. */
7600 /* Override any GCC internal prototype to avoid an error.
7601 Use char because int might match the return type of a GCC
7602 builtin and then its argument prototype would still apply. */
7615 if ac_fn_c_try_link "$LINENO"; then :
7616 ac_cv_lib_cur_colr_initscr=yes
7618 ac_cv_lib_cur_colr_initscr=no
7620 rm -f core conftest.err conftest.$ac_objext \
7621 conftest$ac_exeext conftest.$ac_ext
7622 LIBS=$ac_check_lib_save_LIBS
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cur_colr_initscr" >&5
7625 $as_echo "$ac_cv_lib_cur_colr_initscr" >&6; }
7626 if test "x$ac_cv_lib_cur_colr_initscr" = xyes; then :
7628 LIBS="-lcur_colr $LIBS"
7629 CFLAGS="-I/usr/include/curses_colr $CFLAGS"
7630 ac_cv_func_initscr=yes
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lHcurses" >&5
7635 $as_echo_n "checking for initscr in -lHcurses... " >&6; }
7636 if ${ac_cv_lib_Hcurses_initscr+:} false; then :
7637 $as_echo_n "(cached) " >&6
7639 ac_check_lib_save_LIBS=$LIBS
7640 LIBS="-lHcurses $LIBS"
7641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7642 /* end confdefs.h. */
7644 /* Override any GCC internal prototype to avoid an error.
7645 Use char because int might match the return type of a GCC
7646 builtin and then its argument prototype would still apply. */
7659 if ac_fn_c_try_link "$LINENO"; then :
7660 ac_cv_lib_Hcurses_initscr=yes
7662 ac_cv_lib_Hcurses_initscr=no
7664 rm -f core conftest.err conftest.$ac_objext \
7665 conftest$ac_exeext conftest.$ac_ext
7666 LIBS=$ac_check_lib_save_LIBS
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Hcurses_initscr" >&5
7669 $as_echo "$ac_cv_lib_Hcurses_initscr" >&6; }
7670 if test "x$ac_cv_lib_Hcurses_initscr" = xyes; then :
7672 # HP's header uses __HP_CURSES, but user claims _HP_CURSES.
7673 LIBS="-lHcurses $LIBS"
7674 CFLAGS="-D__HP_CURSES -D_HP_CURSES $CFLAGS"
7675 ac_cv_func_initscr=yes
7682 linux*) # Suse Linux does not follow /usr/lib convention
7687 if test ".$With5lib" != ".no" ; then
7688 if test -d /usr/5lib ; then
7690 CPPFLAGS="$CPPFLAGS -I/usr/5include"
7691 LIBS="$LIBS -L/usr/5lib"
7695 if test ".$ac_cv_func_initscr" != .yes ; then
7696 cf_save_LIBS="$LIBS"
7700 # Check for library containing tgoto. Do this before curses library
7701 # because it may be needed to link the test-case for initscr.
7702 ac_fn_c_check_func "$LINENO" "tgoto" "ac_cv_func_tgoto"
7703 if test "x$ac_cv_func_tgoto" = xyes; then :
7704 cf_term_lib=predefined
7707 for cf_term_lib in termcap termlib unknown
7709 as_ac_Lib=`$as_echo "ac_cv_lib_$cf_term_lib''_tgoto" | $as_tr_sh`
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgoto in -l$cf_term_lib" >&5
7711 $as_echo_n "checking for tgoto in -l$cf_term_lib... " >&6; }
7712 if eval \${$as_ac_Lib+:} false; then :
7713 $as_echo_n "(cached) " >&6
7715 ac_check_lib_save_LIBS=$LIBS
7716 LIBS="-l$cf_term_lib $LIBS"
7717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7718 /* end confdefs.h. */
7720 /* Override any GCC internal prototype to avoid an error.
7721 Use char because int might match the return type of a GCC
7722 builtin and then its argument prototype would still apply. */
7735 if ac_fn_c_try_link "$LINENO"; then :
7736 eval "$as_ac_Lib=yes"
7738 eval "$as_ac_Lib=no"
7740 rm -f core conftest.err conftest.$ac_objext \
7741 conftest$ac_exeext conftest.$ac_ext
7742 LIBS=$ac_check_lib_save_LIBS
7744 eval ac_res=\$$as_ac_Lib
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7746 $as_echo "$ac_res" >&6; }
7747 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
7756 # Check for library containing initscr
7757 test "$cf_term_lib" != predefined && test "$cf_term_lib" != unknown && LIBS="-l$cf_term_lib $cf_save_LIBS"
7758 for cf_curs_lib in cursesX curses ncurses xcurses jcurses unknown
7760 as_ac_Lib=`$as_echo "ac_cv_lib_$cf_curs_lib''_initscr" | $as_tr_sh`
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -l$cf_curs_lib" >&5
7762 $as_echo_n "checking for initscr in -l$cf_curs_lib... " >&6; }
7763 if eval \${$as_ac_Lib+:} false; then :
7764 $as_echo_n "(cached) " >&6
7766 ac_check_lib_save_LIBS=$LIBS
7767 LIBS="-l$cf_curs_lib $LIBS"
7768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7769 /* end confdefs.h. */
7771 /* Override any GCC internal prototype to avoid an error.
7772 Use char because int might match the return type of a GCC
7773 builtin and then its argument prototype would still apply. */
7786 if ac_fn_c_try_link "$LINENO"; then :
7787 eval "$as_ac_Lib=yes"
7789 eval "$as_ac_Lib=no"
7791 rm -f core conftest.err conftest.$ac_objext \
7792 conftest$ac_exeext conftest.$ac_ext
7793 LIBS=$ac_check_lib_save_LIBS
7795 eval ac_res=\$$as_ac_Lib
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7797 $as_echo "$ac_res" >&6; }
7798 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
7803 test $cf_curs_lib = unknown && as_fn_error $? "no curses library found" "$LINENO" 5
7805 LIBS="-l$cf_curs_lib $cf_save_LIBS"
7806 if test "$cf_term_lib" = unknown ; then
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can link with $cf_curs_lib library" >&5
7808 $as_echo_n "checking if we can link with $cf_curs_lib library... " >&6; }
7809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7810 /* end confdefs.h. */
7811 #include <${cf_cv_ncurses_header-curses.h}>
7820 if ac_fn_c_try_link "$LINENO"; then :
7825 rm -f core conftest.err conftest.$ac_objext \
7826 conftest$ac_exeext conftest.$ac_ext
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_result" >&5
7828 $as_echo "$cf_result" >&6; }
7829 test $cf_result = no && as_fn_error $? "Cannot link curses library" "$LINENO" 5
7830 elif test "$cf_term_lib" != predefined ; then
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need both $cf_curs_lib and $cf_term_lib libraries" >&5
7832 $as_echo_n "checking if we need both $cf_curs_lib and $cf_term_lib libraries... " >&6; }
7833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7834 /* end confdefs.h. */
7835 #include <${cf_cv_ncurses_header-curses.h}>
7839 initscr(); tgoto((char *)0, 0, 0);
7844 if ac_fn_c_try_link "$LINENO"; then :
7848 LIBS="-l$cf_curs_lib -l$cf_term_lib $cf_save_LIBS"
7849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7850 /* end confdefs.h. */
7851 #include <${cf_cv_ncurses_header-curses.h}>
7860 if ac_fn_c_try_link "$LINENO"; then :
7865 rm -f core conftest.err conftest.$ac_objext \
7866 conftest$ac_exeext conftest.$ac_ext
7869 rm -f core conftest.err conftest.$ac_objext \
7870 conftest$ac_exeext conftest.$ac_ext
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_result" >&5
7872 $as_echo "$cf_result" >&6; }
7887 abook_cv_readline=/usr
7889 # Check whether --with-readline was given.
7890 if test "${with_readline+set}" = set; then :
7891 withval=$with_readline; if test $withval != yes; then
7892 abook_cv_readline=$withval
7894 if test x$abook_cv_readline != x/usr; then
7895 LDFLAGS="-L${abook_cv_readline}/lib $LDFLAGS"
7896 CPPFLAGS="$CPPFLAGS -I${abook_cv_readline}/include"
7902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
7903 $as_echo_n "checking for a readline compatible library... " >&6; }
7904 if ${ac_cv_lib_readline+:} false; then :
7905 $as_echo_n "(cached) " >&6
7909 for readline_lib in readline edit editline; do
7910 for termcap_lib in "" termcap curses ncurses; do
7911 if test -z "$termcap_lib"; then
7912 TRY_LIB="-l$readline_lib"
7914 TRY_LIB="-l$readline_lib -l$termcap_lib"
7916 LIBS="$ORIG_LIBS $TRY_LIB"
7917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7918 /* end confdefs.h. */
7920 /* Override any GCC internal prototype to avoid an error.
7921 Use char because int might match the return type of a GCC
7922 builtin and then its argument prototype would still apply. */
7935 if ac_fn_c_try_link "$LINENO"; then :
7936 ac_cv_lib_readline="$TRY_LIB"
7938 rm -f core conftest.err conftest.$ac_objext \
7939 conftest$ac_exeext conftest.$ac_ext
7940 if test -n "$ac_cv_lib_readline"; then
7944 if test -n "$ac_cv_lib_readline"; then
7948 if test -z "$ac_cv_lib_readline"; then
7949 ac_cv_lib_readline="no"
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline" >&5
7955 $as_echo "$ac_cv_lib_readline" >&6; }
7957 if test "$ac_cv_lib_readline" != "no"; then
7958 LIBS="$LIBS $ac_cv_lib_readline"
7960 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
7962 for ac_header in readline.h readline/readline.h
7964 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7965 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7966 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7967 cat >>confdefs.h <<_ACEOF
7968 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
7976 $as_echo_n "checking whether readline supports history... " >&6; }
7977 if ${ac_cv_lib_readline_history+:} false; then :
7978 $as_echo_n "(cached) " >&6
7981 ac_cv_lib_readline_history="no"
7982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7983 /* end confdefs.h. */
7985 /* Override any GCC internal prototype to avoid an error.
7986 Use char because int might match the return type of a GCC
7987 builtin and then its argument prototype would still apply. */
7991 char add_history ();
7995 return add_history ();
8000 if ac_fn_c_try_link "$LINENO"; then :
8001 ac_cv_lib_readline_history="yes"
8003 rm -f core conftest.err conftest.$ac_objext \
8004 conftest$ac_exeext conftest.$ac_ext
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_history" >&5
8008 $as_echo "$ac_cv_lib_readline_history" >&6; }
8009 if test "$ac_cv_lib_readline_history" = "yes"; then
8011 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
8013 for ac_header in history.h readline/history.h
8015 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8016 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8017 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8018 cat >>confdefs.h <<_ACEOF
8019 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8031 if test x$ac_cv_lib_readline = xno -o x$ac_cv_lib_readline_history = xno; then
8032 as_fn_error $? "*** readline library not found or it doesn't support history ***" "$LINENO" 5
8037 # Check whether --enable-vformat was given.
8038 if test "${enable_vformat+set}" = set; then :
8039 enableval=$enable_vformat; case "${enableval}" in
8040 yes) vformat=true ;;
8041 no) vformat=false ;;
8042 *) as_fn_error $? "bad value ${enableval} for --enable-vformat" "$LINENO" 5 ;;
8048 if test x$vformat = xtrue; then
8049 ac_fn_c_check_header_mongrel "$LINENO" "vf_iface.h" "ac_cv_header_vf_iface_h" "$ac_includes_default"
8050 if test "x$ac_cv_header_vf_iface_h" = xyes; then :
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vf_read_file in -lvformat" >&5
8053 $as_echo_n "checking for vf_read_file in -lvformat... " >&6; }
8054 if ${ac_cv_lib_vformat_vf_read_file+:} false; then :
8055 $as_echo_n "(cached) " >&6
8057 ac_check_lib_save_LIBS=$LIBS
8058 LIBS="-lvformat $LIBS"
8059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8060 /* end confdefs.h. */
8062 /* Override any GCC internal prototype to avoid an error.
8063 Use char because int might match the return type of a GCC
8064 builtin and then its argument prototype would still apply. */
8068 char vf_read_file ();
8072 return vf_read_file ();
8077 if ac_fn_c_try_link "$LINENO"; then :
8078 ac_cv_lib_vformat_vf_read_file=yes
8080 ac_cv_lib_vformat_vf_read_file=no
8082 rm -f core conftest.err conftest.$ac_objext \
8083 conftest$ac_exeext conftest.$ac_ext
8084 LIBS=$ac_check_lib_save_LIBS
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_vformat_vf_read_file" >&5
8087 $as_echo "$ac_cv_lib_vformat_vf_read_file" >&6; }
8088 if test "x$ac_cv_lib_vformat_vf_read_file" = xyes; then :
8090 MODULES="$MODULES m_vcf"
8092 $as_echo "#define HAVE_VFORMAT 1" >>confdefs.h
8103 if test x"$have_vformat" = "xyes"; then
8104 ENABLE_VFORMAT_SUPPORT_TRUE=
8105 ENABLE_VFORMAT_SUPPORT_FALSE='#'
8107 ENABLE_VFORMAT_SUPPORT_TRUE='#'
8108 ENABLE_VFORMAT_SUPPORT_FALSE=
8114 if test x$ac_widec_possible = xyes; then
8116 $as_echo "#define HANDLE_MULTIBYTE 1" >>confdefs.h
8120 for ac_func in resizeterm
8122 ac_fn_c_check_func "$LINENO" "resizeterm" "ac_cv_func_resizeterm"
8123 if test "x$ac_cv_func_resizeterm" = xyes; then :
8124 cat >>confdefs.h <<_ACEOF
8125 #define HAVE_RESIZETERM 1
8132 for ac_func in snprintf vsnprintf
8134 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8135 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8136 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8137 cat >>confdefs.h <<_ACEOF
8138 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8145 for ac_func in strcasestr
8147 ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
8148 if test "x$ac_cv_func_strcasestr" = xyes; then :
8149 cat >>confdefs.h <<_ACEOF
8150 #define HAVE_STRCASESTR 1
8152 $as_echo "#define HAVE_STRCASESTR 1" >>confdefs.h
8158 # Check whether --enable-debug was given.
8159 if test "${enable_debug+set}" = set; then :
8160 enableval=$enable_debug; case "${enableval}" in
8163 *) as_fn_error $? "bad value ${enableval} for --enable-debug" "$LINENO" 5 ;;
8170 if test x$debug = xtrue; then
8171 CPPFLAGS="-DDEBUG=1 $CPPFLAGS"
8175 if test x$GCC = xyes; then
8176 CFLAGS="-Wall $CFLAGS"
8179 ac_config_files="$ac_config_files Makefile abook.spec po/Makefile.in"
8181 cat >confcache <<\_ACEOF
8182 # This file is a shell script that caches the results of configure
8183 # tests run on this system so they can be shared between configure
8184 # scripts and configure runs, see configure's option --config-cache.
8185 # It is not useful on other systems. If it contains results you don't
8186 # want to keep, you may remove or edit it.
8188 # config.status only pays attention to the cache file if you give it
8189 # the --recheck option to rerun configure.
8191 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8192 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8197 # The following way of writing the cache mishandles newlines in values,
8198 # but we know of no workaround that is simple, portable, and efficient.
8199 # So, we kill variables containing newlines.
8200 # Ultrix sh set writes to stderr and can't be redirected directly,
8201 # and sets the high bit in the cache file unless we assign to the vars.
8203 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8204 eval ac_val=\$$ac_var
8208 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8209 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8212 _ | IFS | as_nl) ;; #(
8213 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8214 *) { eval $ac_var=; unset $ac_var;} ;;
8220 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8221 *${as_nl}ac_space=\ *)
8222 # `set' does not quote correctly, so add quotes: double-quote
8223 # substitution turns \\\\ into \\, and sed turns \\ into \.
8226 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8229 # `set' quotes correctly as required by POSIX, so do not add quotes.
8230 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8239 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8241 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8243 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8244 if test -w "$cache_file"; then
8245 if test "x$cache_file" != "x/dev/null"; then
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8247 $as_echo "$as_me: updating cache $cache_file" >&6;}
8248 if test ! -f "$cache_file" || test -h "$cache_file"; then
8249 cat confcache >"$cache_file"
8251 case $cache_file in #(
8253 mv -f confcache "$cache_file"$$ &&
8254 mv -f "$cache_file"$$ "$cache_file" ;; #(
8256 mv -f confcache "$cache_file" ;;
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8262 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8267 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8268 # Let make expand exec_prefix.
8269 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8271 DEFS=-DHAVE_CONFIG_H
8275 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8276 # 1. Remove the extension, and $U if already installed.
8277 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8278 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
8279 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8280 # will be set to the directory where LIBOBJS objects are built.
8281 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8282 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8286 LTLIBOBJS=$ac_ltlibobjs
8289 if test -n "$EXEEXT"; then
8291 am__EXEEXT_FALSE='#'
8297 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8298 as_fn_error $? "conditional \"AMDEP\" was never defined.
8299 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8301 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8302 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
8303 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8305 if test -z "${USE_INCLUDED_INTL_H_TRUE}" && test -z "${USE_INCLUDED_INTL_H_FALSE}"; then
8306 as_fn_error $? "conditional \"USE_INCLUDED_INTL_H\" was never defined.
8307 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8309 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8310 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
8311 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8313 if test -z "${ENABLE_VFORMAT_SUPPORT_TRUE}" && test -z "${ENABLE_VFORMAT_SUPPORT_FALSE}"; then
8314 as_fn_error $? "conditional \"ENABLE_VFORMAT_SUPPORT\" was never defined.
8315 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8318 : "${CONFIG_STATUS=./config.status}"
8320 ac_clean_files_save=$ac_clean_files
8321 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8323 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8325 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8327 # Generated by $as_me.
8328 # Run this file to recreate the current configuration.
8329 # Compiler output produced by configure, useful for debugging
8330 # configure, is in config.log if it exists.
8336 SHELL=\${CONFIG_SHELL-$SHELL}
8339 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
8340 ## -------------------- ##
8341 ## M4sh Initialization. ##
8342 ## -------------------- ##
8344 # Be more Bourne compatible
8345 DUALCASE=1; export DUALCASE # for MKS sh
8346 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
8349 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8350 # is contrary to our usage. Disable this feature.
8351 alias -g '${1+"$@"}'='"$@"'
8352 setopt NO_GLOB_SUBST
8354 case `(set -o) 2>/dev/null` in #(
8366 # Printing a long string crashes Solaris 7 /usr/bin/printf.
8367 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8368 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8369 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8370 # Prefer a ksh shell builtin over an external printf program on Solaris,
8371 # but without wasting forks for bash or zsh.
8372 if test -z "$BASH_VERSION$ZSH_VERSION" \
8373 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8374 as_echo='print -r --'
8375 as_echo_n='print -rn --'
8376 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8377 as_echo='printf %s\n'
8378 as_echo_n='printf %s'
8380 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8381 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
8382 as_echo_n='/usr/ucb/echo -n'
8384 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8385 as_echo_n_body='eval
8389 expr "X$arg" : "X\\(.*\\)$as_nl";
8390 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8392 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
8394 export as_echo_n_body
8395 as_echo_n='sh -c $as_echo_n_body as_echo'
8398 as_echo='sh -c $as_echo_body as_echo'
8401 # The user is always right.
8402 if test "${PATH_SEPARATOR+set}" != set; then
8404 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8405 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8412 # We need space, tab and new line, in precisely that order. Quoting is
8413 # there to prevent editors from complaining about space-tab.
8414 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8415 # splitting by setting IFS to empty value.)
8418 # Find who we are. Look in the path if we contain no directory separator.
8421 *[\\/]* ) as_myself=$0 ;;
8422 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8426 test -z "$as_dir" && as_dir=.
8427 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8433 # We did not find ourselves, most probably we were run as `sh COMMAND'
8434 # in which case we are not to be found in the path.
8435 if test "x$as_myself" = x; then
8438 if test ! -f "$as_myself"; then
8439 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8443 # Unset variables that we do not need and which cause bugs (e.g. in
8444 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
8445 # suppresses any "Segmentation fault" message there. '((' could
8446 # trigger a bug in pdksh 5.2.14.
8447 for as_var in BASH_ENV ENV MAIL MAILPATH
8448 do eval test x\${$as_var+set} = xset \
8449 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8462 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8465 # as_fn_error STATUS ERROR [LINENO LOG_FD]
8466 # ----------------------------------------
8467 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8468 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8469 # script with STATUS, using 1 if that was 0.
8472 as_status=$1; test $as_status -eq 0 && as_status=1
8474 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8475 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8477 $as_echo "$as_me: error: $2" >&2
8478 as_fn_exit $as_status
8482 # as_fn_set_status STATUS
8483 # -----------------------
8484 # Set $? to STATUS, without forking.
8488 } # as_fn_set_status
8492 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8502 # Portably unset VAR.
8505 { eval $1=; unset $1;}
8507 as_unset=as_fn_unset
8508 # as_fn_append VAR VALUE
8509 # ----------------------
8510 # Append the text in VALUE to the end of the definition contained in VAR. Take
8511 # advantage of any shell optimizations that allow amortized linear growth over
8512 # repeated appends, instead of the typical quadratic growth present in naive
8514 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
8515 eval 'as_fn_append ()
8526 # as_fn_arith ARG...
8527 # ------------------
8528 # Perform arithmetic evaluation on the ARGs, and store the result in the
8529 # global $as_val. Take advantage of shells that can avoid forks. The arguments
8530 # must be portable across $(()) and expr.
8531 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
8532 eval 'as_fn_arith ()
8539 as_val=`expr "$@" || test $? -eq 1`
8544 if expr a : '\(a\)' >/dev/null 2>&1 &&
8545 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8551 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8552 as_basename=basename
8557 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8563 as_me=`$as_basename -- "$0" ||
8564 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8565 X"$0" : 'X\(//\)$' \| \
8566 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8568 sed '/^.*\/\([^/][^/]*\)\/*$/{
8582 # Avoid depending upon Character Ranges.
8583 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8584 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8585 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8586 as_cr_digits='0123456789'
8587 as_cr_alnum=$as_cr_Letters$as_cr_digits
8589 ECHO_C= ECHO_N= ECHO_T=
8590 case `echo -n x` in #(((((
8592 case `echo 'xy\c'` in
8593 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8595 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
8602 rm -f conf$$ conf$$.exe conf$$.file
8603 if test -d conf$$.dir; then
8604 rm -f conf$$.dir/conf$$.file
8607 mkdir conf$$.dir 2>/dev/null
8609 if (echo >conf$$.file) 2>/dev/null; then
8610 if ln -s conf$$.file conf$$ 2>/dev/null; then
8612 # ... but there are two gotchas:
8613 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8614 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8615 # In both cases, we have to default to `cp -pR'.
8616 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8618 elif ln conf$$.file conf$$ 2>/dev/null; then
8626 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8627 rmdir conf$$.dir 2>/dev/null
8632 # Create "$as_dir" as a directory, including parents if necessary.
8637 -*) as_dir=./$as_dir;;
8639 test -d "$as_dir" || eval $as_mkdir_p || {
8643 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8644 *) as_qdir=$as_dir;;
8646 as_dirs="'$as_qdir' $as_dirs"
8647 as_dir=`$as_dirname -- "$as_dir" ||
8648 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8649 X"$as_dir" : 'X\(//\)[^/]' \| \
8650 X"$as_dir" : 'X\(//\)$' \| \
8651 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8652 $as_echo X"$as_dir" |
8653 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8670 test -d "$as_dir" && break
8672 test -z "$as_dirs" || eval "mkdir $as_dirs"
8673 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
8677 if mkdir -p . 2>/dev/null; then
8678 as_mkdir_p='mkdir -p "$as_dir"'
8680 test -d ./-p && rmdir ./-p
8685 # as_fn_executable_p FILE
8686 # -----------------------
8687 # Test if FILE is an executable regular file.
8688 as_fn_executable_p ()
8690 test -f "$1" && test -x "$1"
8691 } # as_fn_executable_p
8693 as_executable_p=as_fn_executable_p
8695 # Sed expression to map a string onto a valid CPP name.
8696 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8698 # Sed expression to map a string onto a valid variable name.
8699 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8703 ## ----------------------------------- ##
8704 ## Main body of $CONFIG_STATUS script. ##
8705 ## ----------------------------------- ##
8707 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8709 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8710 # Save the log message, to keep $0 and so on meaningful, and to
8711 # report actual input values of CONFIG_FILES etc. instead of their
8712 # values after options handling.
8714 This file was extended by $as_me, which was
8715 generated by GNU Autoconf 2.69. Invocation command line was
8717 CONFIG_FILES = $CONFIG_FILES
8718 CONFIG_HEADERS = $CONFIG_HEADERS
8719 CONFIG_LINKS = $CONFIG_LINKS
8720 CONFIG_COMMANDS = $CONFIG_COMMANDS
8723 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8728 case $ac_config_files in *"
8729 "*) set x $ac_config_files; shift; ac_config_files=$*;;
8732 case $ac_config_headers in *"
8733 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8737 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8738 # Files that config.status was made for.
8739 config_files="$ac_config_files"
8740 config_headers="$ac_config_headers"
8741 config_commands="$ac_config_commands"
8745 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8747 \`$as_me' instantiates files and other configuration actions
8748 from templates according to the current configuration. Unless the files
8749 and actions are specified as TAGs, all are instantiated by default.
8751 Usage: $0 [OPTION]... [TAG]...
8753 -h, --help print this help, then exit
8754 -V, --version print version number and configuration settings, then exit
8755 --config print configuration, then exit
8756 -q, --quiet, --silent
8757 do not print progress messages
8758 -d, --debug don't remove temporary files
8759 --recheck update $as_me by reconfiguring in the same conditions
8760 --file=FILE[:TEMPLATE]
8761 instantiate the configuration file FILE
8762 --header=FILE[:TEMPLATE]
8763 instantiate the configuration header FILE
8765 Configuration files:
8768 Configuration headers:
8771 Configuration commands:
8774 Report bugs to the package provider."
8777 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8778 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8781 configured by $0, generated by GNU Autoconf 2.69,
8782 with options \\"\$ac_cs_config\\"
8784 Copyright (C) 2012 Free Software Foundation, Inc.
8785 This config.status script is free software; the Free Software Foundation
8786 gives unlimited permission to copy, distribute and modify it."
8793 test -n "\$AWK" || AWK=awk
8796 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8797 # The default lists apply if the user does not specify any file.
8803 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8804 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8808 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8820 # Handling of the options.
8821 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8823 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8824 $as_echo "$ac_cs_version"; exit ;;
8825 --config | --confi | --conf | --con | --co | --c )
8826 $as_echo "$ac_cs_config"; exit ;;
8827 --debug | --debu | --deb | --de | --d | -d )
8829 --file | --fil | --fi | --f )
8832 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8833 '') as_fn_error $? "missing file argument" ;;
8835 as_fn_append CONFIG_FILES " '$ac_optarg'"
8836 ac_need_defaults=false;;
8837 --header | --heade | --head | --hea )
8840 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8842 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8843 ac_need_defaults=false;;
8845 # Conflict between --help and --header
8846 as_fn_error $? "ambiguous option: \`$1'
8847 Try \`$0 --help' for more information.";;
8848 --help | --hel | -h )
8849 $as_echo "$ac_cs_usage"; exit ;;
8850 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8851 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8855 -*) as_fn_error $? "unrecognized option: \`$1'
8856 Try \`$0 --help' for more information." ;;
8858 *) as_fn_append ac_config_targets " $1"
8859 ac_need_defaults=false ;;
8865 ac_configure_extra_args=
8867 if $ac_cs_silent; then
8869 ac_configure_extra_args="$ac_configure_extra_args --silent"
8873 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8874 if \$ac_cs_recheck; then
8875 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8877 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8878 CONFIG_SHELL='$SHELL'
8884 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8888 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8889 ## Running $as_me. ##
8895 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8899 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
8900 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
8901 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
8902 # from automake < 1.5.
8903 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
8904 # Capture the value of LINGUAS because we need it to compute CATALOGS.
8905 LINGUAS="${LINGUAS-%UNSET%}"
8910 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8912 # Handling of arguments.
8913 for ac_config_target in $ac_config_targets
8915 case $ac_config_target in
8916 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
8917 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
8918 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
8919 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8920 "abook.spec") CONFIG_FILES="$CONFIG_FILES abook.spec" ;;
8921 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
8923 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8928 # If the user did not use the arguments to specify the items to instantiate,
8929 # then the envvar interface is used. Set only those that are not.
8930 # We use the long form for the default assignment because of an extremely
8931 # bizarre bug on SunOS 4.1.3.
8932 if $ac_need_defaults; then
8933 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8934 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8935 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8938 # Have a temporary directory for convenience. Make it in the build tree
8939 # simply because there is no reason against having it here, and in addition,
8940 # creating and moving files from /tmp can sometimes cause problems.
8941 # Hook for its removal unless debugging.
8942 # Note that there is a small window in which the directory will not be cleaned:
8943 # after its creation but before its name has been assigned to `$tmp'.
8947 trap 'exit_status=$?
8949 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8951 trap 'as_fn_exit 1' 1 2 13 15
8953 # Create a (secure) tmp directory for tmp files.
8956 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8960 tmp=./conf$$-$RANDOM
8961 (umask 077 && mkdir "$tmp")
8962 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
8965 # Set up the scripts for CONFIG_FILES section.
8966 # No need to generate them if there are no CONFIG_FILES.
8967 # This happens for instance with `./config.status config.h'.
8968 if test -n "$CONFIG_FILES"; then
8971 ac_cr=`echo X | tr X '\015'`
8972 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8973 # But we know of no other shell where ac_cr would be empty at this
8974 # point, so we can use a bashism as a fallback.
8975 if test "x$ac_cr" = x; then
8976 eval ac_cr=\$\'\\r\'
8978 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8979 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8985 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8990 echo "cat >conf$$subs.awk <<_ACEOF" &&
8991 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8994 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8995 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8997 for ac_last_try in false false false false false :; do
8998 . ./conf$$subs.sh ||
8999 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9001 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
9002 if test $ac_delim_n = $ac_delim_num; then
9004 elif $ac_last_try; then
9005 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9007 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9012 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9013 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
9017 s/^/S["/; s/!.*/"]=/
9027 s/\(.\{148\}\)..*/\1/
9029 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
9034 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9041 s/\(.\{148\}\)..*/\1/
9043 s/["\\]/\\&/g; s/^/"/; s/$/"/
9047 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9052 ' <conf$$subs.awk | sed '
9057 ' >>$CONFIG_STATUS || ac_write_fail=1
9058 rm -f conf$$subs.awk
9059 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9061 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
9062 for (key in S) S_is_set[key] = 1
9068 nfields = split(line, field, "@")
9070 len = length(field[1])
9071 for (i = 2; i < nfields; i++) {
9073 keylen = length(key)
9074 if (S_is_set[key]) {
9076 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9077 len += length(value) + length(field[++i])
9088 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9089 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9090 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
9093 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
9094 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
9097 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
9098 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
9099 # trailing colons and then remove the whole line if VPATH becomes empty
9100 # (actually we leave an empty line to preserve line numbers).
9101 if test "x$srcdir" = x.; then
9102 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
9120 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9121 fi # test -n "$CONFIG_FILES"
9123 # Set up the scripts for CONFIG_HEADERS section.
9124 # No need to generate them if there are no CONFIG_HEADERS.
9125 # This happens for instance with `./config.status Makefile'.
9126 if test -n "$CONFIG_HEADERS"; then
9127 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
9131 # Transform confdefs.h into an awk script `defines.awk', embedded as
9132 # here-document in config.status, that substitutes the proper values into
9133 # config.h.in to produce config.h.
9135 # Create a delimiter string that does not exist in confdefs.h, to ease
9136 # handling of long lines.
9138 for ac_last_try in false false :; do
9139 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
9140 if test -z "$ac_tt"; then
9142 elif $ac_last_try; then
9143 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
9145 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9149 # For the awk script, D is an array of macro values keyed by name,
9150 # likewise P contains macro parameters if any. Preserve backslash
9151 # newline sequences.
9153 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9155 s/.\{148\}/&'"$ac_delim"'/g
9158 s/^[ ]*#[ ]*define[ ][ ]*/ /
9165 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9167 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
9171 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9172 D["\1"]=" \3\\\\\\n"\\/p
9174 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
9179 s/.\{148\}/&'"$ac_delim"'/g
9184 s/["\\]/\\&/g; s/^/"/; s/$/"/p
9187 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
9189 ' <confdefs.h | sed '
9190 s/'"$ac_delim"'/"\\\
9191 "/g' >>$CONFIG_STATUS || ac_write_fail=1
9193 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9194 for (key in D) D_is_set[key] = 1
9197 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
9199 split(line, arg, " ")
9200 if (arg[1] == "#") {
9204 defundef = substr(arg[1], 2)
9207 split(mac1, mac2, "(") #)
9209 prefix = substr(line, 1, index(line, defundef) - 1)
9210 if (D_is_set[macro]) {
9211 # Preserve the white space surrounding the "#".
9212 print prefix "define", macro P[macro] D[macro]
9215 # Replace #undef with comments. This is necessary, for example,
9216 # in the case of _POSIX_SOURCE, which is predefined and required
9217 # on some systems where configure will not decide to define it.
9218 if (defundef == "undef") {
9219 print "/*", prefix defundef, macro, "*/"
9227 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9228 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
9229 fi # test -n "$CONFIG_HEADERS"
9232 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
9237 :[FHLC]) ac_mode=$ac_tag; continue;;
9239 case $ac_mode$ac_tag in
9241 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
9242 :[FH]-) ac_tag=-:-;;
9243 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9260 -) ac_f="$ac_tmp/stdin";;
9261 *) # Look for the file first in the build tree, then in the source tree
9262 # (if the path is not absolute). The absolute path cannot be DOS-style,
9263 # because $ac_f cannot contain `:'.
9267 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9269 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9271 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9272 as_fn_append ac_file_inputs " '$ac_f'"
9275 # Let's still pretend it is `configure' which instantiates (i.e., don't
9276 # use $as_me), people would be surprised to read:
9277 # /* config.h. Generated by config.status. */
9278 configure_input='Generated from '`
9279 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9281 if test x"$ac_file" != x-; then
9282 configure_input="$ac_file. $configure_input"
9283 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9284 $as_echo "$as_me: creating $ac_file" >&6;}
9286 # Neutralize special characters interpreted by sed in replacement strings.
9287 case $configure_input in #(
9288 *\&* | *\|* | *\\* )
9289 ac_sed_conf_input=`$as_echo "$configure_input" |
9290 sed 's/[\\\\&|]/\\\\&/g'`;; #(
9291 *) ac_sed_conf_input=$configure_input;;
9295 *:-:* | *:-) cat >"$ac_tmp/stdin" \
9296 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
9301 ac_dir=`$as_dirname -- "$ac_file" ||
9302 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9303 X"$ac_file" : 'X\(//\)[^/]' \| \
9304 X"$ac_file" : 'X\(//\)$' \| \
9305 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9306 $as_echo X"$ac_file" |
9307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9324 as_dir="$ac_dir"; as_fn_mkdir_p
9328 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9330 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9331 # A ".." for each directory in $ac_dir_suffix.
9332 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9333 case $ac_top_builddir_sub in
9334 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9335 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9338 ac_abs_top_builddir=$ac_pwd
9339 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9340 # for backward compatibility:
9341 ac_top_builddir=$ac_top_build_prefix
9344 .) # We are building in place.
9346 ac_top_srcdir=$ac_top_builddir_sub
9347 ac_abs_top_srcdir=$ac_pwd ;;
9348 [\\/]* | ?:[\\/]* ) # Absolute name.
9349 ac_srcdir=$srcdir$ac_dir_suffix;
9350 ac_top_srcdir=$srcdir
9351 ac_abs_top_srcdir=$srcdir ;;
9353 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9354 ac_top_srcdir=$ac_top_build_prefix$srcdir
9355 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9357 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9367 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9368 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9372 [\\/$]* | ?:[\\/]* ) ;;
9373 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
9377 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9378 # If the template does not know about datarootdir, expand it.
9379 # FIXME: This hack should be removed a few years after 2.60.
9380 ac_datarootdir_hack=; ac_datarootdir_seen=
9391 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9392 *datarootdir*) ac_datarootdir_seen=yes;;
9393 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9395 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9397 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9398 ac_datarootdir_hack='
9399 s&@datadir@&$datadir&g
9400 s&@docdir@&$docdir&g
9401 s&@infodir@&$infodir&g
9402 s&@localedir@&$localedir&g
9403 s&@mandir@&$mandir&g
9404 s&\\\${datarootdir}&$datarootdir&g' ;;
9408 # Neutralize VPATH when `$srcdir' = `.'.
9409 # Shell code in configure.ac might set extrasub.
9410 # FIXME: do we really want to maintain this feature?
9411 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9412 ac_sed_extra="$ac_vpsub
9415 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9417 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9418 s|@configure_input@|$ac_sed_conf_input|;t t
9419 s&@top_builddir@&$ac_top_builddir_sub&;t t
9420 s&@top_build_prefix@&$ac_top_build_prefix&;t t
9421 s&@srcdir@&$ac_srcdir&;t t
9422 s&@abs_srcdir@&$ac_abs_srcdir&;t t
9423 s&@top_srcdir@&$ac_top_srcdir&;t t
9424 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9425 s&@builddir@&$ac_builddir&;t t
9426 s&@abs_builddir@&$ac_abs_builddir&;t t
9427 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9428 s&@INSTALL@&$ac_INSTALL&;t t
9429 s&@MKDIR_P@&$ac_MKDIR_P&;t t
9430 $ac_datarootdir_hack
9432 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
9433 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9435 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9436 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
9437 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
9438 "$ac_tmp/out"`; test -z "$ac_out"; } &&
9439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9440 which seems to be undefined. Please make sure it is defined" >&5
9441 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9442 which seems to be undefined. Please make sure it is defined" >&2;}
9444 rm -f "$ac_tmp/stdin"
9446 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
9447 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
9449 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9455 if test x"$ac_file" != x-; then
9457 $as_echo "/* $configure_input */" \
9458 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
9459 } >"$ac_tmp/config.h" \
9460 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9461 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
9462 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9463 $as_echo "$as_me: $ac_file is unchanged" >&6;}
9466 mv "$ac_tmp/config.h" "$ac_file" \
9467 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9470 $as_echo "/* $configure_input */" \
9471 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
9472 || as_fn_error $? "could not create -" "$LINENO" 5
9474 # Compute "$ac_file"'s index in $config_headers.
9477 for _am_header in $config_headers :; do
9479 $_am_arg | $_am_arg:* )
9482 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
9485 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
9486 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9487 X"$_am_arg" : 'X\(//\)[^/]' \| \
9488 X"$_am_arg" : 'X\(//\)$' \| \
9489 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
9490 $as_echo X"$_am_arg" |
9491 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9507 s/.*/./; q'`/stamp-h$_am_stamp_count
9510 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
9511 $as_echo "$as_me: executing $ac_file commands" >&6;}
9516 case $ac_file$ac_mode in
9517 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
9518 # Autoconf 2.62 quotes --file arguments for eval, but not when files
9519 # are listed without --file. Let's play safe and only enable the eval
9520 # if we detect the quoting.
9521 case $CONFIG_FILES in
9522 *\'*) eval set x "$CONFIG_FILES" ;;
9523 *) set x $CONFIG_FILES ;;
9528 # Strip MF so we end up with the name of the file.
9529 mf=`echo "$mf" | sed -e 's/:.*$//'`
9530 # Check whether this is an Automake generated Makefile or not.
9531 # We used to match only the files named `Makefile.in', but
9532 # some people rename them; so instead we look at the file content.
9533 # Grep'ing the first line is not enough: some people post-process
9534 # each Makefile.in and add a new line on top of each file to say so.
9535 # Grep'ing the whole file is not good either: AIX grep has a line
9536 # limit of 2048, but all sed's we know have understand at least 4000.
9537 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
9538 dirpart=`$as_dirname -- "$mf" ||
9539 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9540 X"$mf" : 'X\(//\)[^/]' \| \
9541 X"$mf" : 'X\(//\)$' \| \
9542 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
9544 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9564 # Extract the definition of DEPDIR, am__include, and am__quote
9565 # from the Makefile without running `make'.
9566 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9567 test -z "$DEPDIR" && continue
9568 am__include=`sed -n 's/^am__include = //p' < "$mf"`
9569 test -z "am__include" && continue
9570 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9571 # When using ansi2knr, U may be empty or an underscore; expand it
9572 U=`sed -n 's/^U = //p' < "$mf"`
9573 # Find all dependency output files, they are included files with
9574 # $(DEPDIR) in their names. We invoke sed twice because it is the
9575 # simplest approach to changing $(DEPDIR) to its actual value in the
9577 for file in `sed -n "
9578 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9579 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9580 # Make sure the directory exists.
9581 test -f "$dirpart/$file" && continue
9582 fdir=`$as_dirname -- "$file" ||
9583 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9584 X"$file" : 'X\(//\)[^/]' \| \
9585 X"$file" : 'X\(//\)$' \| \
9586 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
9588 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9605 as_dir=$dirpart/$fdir; as_fn_mkdir_p
9606 # echo "creating $dirpart/$file"
9607 echo '# dummy' > "$dirpart/$file"
9613 for ac_file in $CONFIG_FILES; do
9614 # Support "outfile[:infile[:infile...]]"
9616 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9618 # PO directories have a Makefile.in generated from Makefile.in.in.
9619 case "$ac_file" in */Makefile.in)
9620 # Adjust a relative srcdir.
9621 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
9622 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
9623 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
9624 # In autoconf-2.13 it is called $ac_given_srcdir.
9625 # In autoconf-2.50 it is called $srcdir.
9626 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
9627 case "$ac_given_srcdir" in
9628 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
9629 /*) top_srcdir="$ac_given_srcdir" ;;
9630 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
9632 # Treat a directory as a PO directory if and only if it has a
9633 # POTFILES.in file. This allows packages to have multiple PO
9634 # directories under different names or in different locations.
9635 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
9636 rm -f "$ac_dir/POTFILES"
9637 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
9638 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
9639 POMAKEFILEDEPS="POTFILES.in"
9640 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
9641 # on $ac_dir but don't depend on user-specified configuration
9643 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
9644 # The LINGUAS file contains the set of available languages.
9645 if test -n "$OBSOLETE_ALL_LINGUAS"; then
9646 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
9648 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
9649 # Hide the ALL_LINGUAS assigment from automake < 1.5.
9650 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
9651 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
9653 # The set of available languages was given in configure.in.
9654 # Hide the ALL_LINGUAS assigment from automake < 1.5.
9655 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
9658 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
9659 # Compute UPDATEPOFILES
9660 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
9661 # Compute DUMMYPOFILES
9662 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
9664 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
9665 case "$ac_given_srcdir" in
9667 *) srcdirpre='$(srcdir)/' ;;
9673 for lang in $ALL_LINGUAS; do
9674 POFILES="$POFILES $srcdirpre$lang.po"
9675 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
9676 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
9677 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
9679 # CATALOGS depends on both $ac_dir and the user's LINGUAS
9680 # environment variable.
9682 if test -n "$ALL_LINGUAS"; then
9683 for presentlang in $ALL_LINGUAS; do
9685 if test "%UNSET%" != "$LINGUAS"; then
9686 desiredlanguages="$LINGUAS"
9688 desiredlanguages="$ALL_LINGUAS"
9690 for desiredlang in $desiredlanguages; do
9691 # Use the presentlang catalog if desiredlang is
9692 # a. equal to presentlang, or
9693 # b. a variant of presentlang (because in this case,
9694 # presentlang can be used as a fallback for messages
9695 # which are not translated in the desiredlang catalog).
9696 case "$desiredlang" in
9697 "$presentlang"*) useit=yes;;
9700 if test $useit = yes; then
9701 INST_LINGUAS="$INST_LINGUAS $presentlang"
9706 if test -n "$INST_LINGUAS"; then
9707 for lang in $INST_LINGUAS; do
9708 CATALOGS="$CATALOGS $lang.gmo"
9711 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
9712 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"
9713 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
9714 if test -f "$f"; then
9716 *.orig | *.bak | *~) ;;
9717 *) cat "$f" >> "$ac_dir/Makefile" ;;
9732 ac_clean_files=$ac_clean_files_save
9734 test $ac_write_fail = 0 ||
9735 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9738 # configure is writing to config.log, and then calls config.status.
9739 # config.status does its own redirection, appending to config.log.
9740 # Unfortunately, on DOS this fails, as config.log is still kept open
9741 # by configure, so config.status won't be able to write to it; its
9742 # output is simply discarded. So we exec the FD to /dev/null,
9743 # effectively closing config.log, so it can be properly (re)opened and
9744 # appended to by config.status. When coming back to configure, we
9745 # need to make the FD available again.
9746 if test "$no_create" != yes; then
9748 ac_config_status_args=
9749 test "$silent" = yes &&
9750 ac_config_status_args="$ac_config_status_args --quiet"
9752 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9754 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9755 # would make configure fail if this is the last instruction.
9756 $ac_cs_success || as_fn_exit 1
9758 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9759 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9760 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}