2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE
=1; export DUALCASE
# for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print
-rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
55 as_echo_n='/usr
/ucb
/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
68 as_echo_n='sh
-c $as_echo_n_body as_echo
'
71 as_echo='sh
-c $as_echo_body as_echo
'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x
; then
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var
in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\
${$as_var+set} = xset \
121 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
134 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x
; then
137 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 case \`(set -o) 2>/dev/null\` in #(
153 as_required
="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev
/null
; then :
180 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
183 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
185 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
188 test -z "$as_dir" && as_dir
=.
192 for as_base
in sh bash ksh sh5
; do
193 # Try only shells that exist, to save several forks.
194 as_shell
=$as_dir/$as_base
195 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
197 CONFIG_SHELL
=$as_shell as_have_required
=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
206 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
208 CONFIG_SHELL
=$SHELL as_have_required
=yes
213 if test "x$CONFIG_SHELL" != x
; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
219 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x
$as_have_required = xno
; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x
${ZSH_VERSION+set} = xset
; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
240 SHELL
=${CONFIG_SHELL-/bin/sh}
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE
= GREP_OPTIONS
=
244 unset CLICOLOR_FORCE GREP_OPTIONS
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
251 # Portably unset VAR.
254 { eval $1=; unset $1;}
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
278 # Create "$as_dir" as a directory, including parents if necessary.
283 -*) as_dir
=.
/$as_dir;;
285 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
289 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
292 as_dirs
="'$as_qdir' $as_dirs"
293 as_dir
=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316 test -d "$as_dir" && break
318 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
319 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
330 eval 'as_fn_append ()
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
354 as_val
=`expr "$@" || test $? -eq 1`
359 # as_fn_error ERROR [LINENO LOG_FD]
360 # ---------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with status $?, using 1 if that was 0.
366 as_status
=$?
; test $as_status -eq 0 && as_status
=1
368 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
371 $as_echo "$as_me: error: $1" >&2
372 as_fn_exit
$as_status
375 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
382 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
388 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
394 as_me
=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
413 # Avoid depending upon Character Ranges.
414 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits
='0123456789'
418 as_cr_alnum
=$as_cr_Letters$as_cr_digits
421 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
422 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441 chmod +x
"$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
448 # Exit status is that of the last command.
452 ECHO_C
= ECHO_N
= ECHO_T
=
453 case `echo -n x` in #(((((
455 case `echo 'xy\c'` in
456 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
465 rm -f conf$$ conf$$.exe conf$$.
file
466 if test -d conf$$.dir
; then
467 rm -f conf$$.dir
/conf$$.
file
470 mkdir conf$$.dir
2>/dev
/null
472 if (echo >conf$$.
file) 2>/dev
/null
; then
473 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
481 elif ln conf$$.
file conf$$
2>/dev
/null
; then
489 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
490 rmdir conf$$.dir
2>/dev
/null
492 if mkdir
-p .
2>/dev
/null
; then
493 as_mkdir_p
='mkdir -p "$as_dir"'
495 test -d .
/-p && rmdir .
/-p
499 if test -x / >/dev
/null
2>&1; then
502 if ls -dL / >/dev
/null
2>&1; then
509 if test -d "$1"; then
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
520 as_executable_p
=$as_test_x
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
529 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
533 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
540 ac_default_prefix
=/usr
/local
542 ac_config_libobj_dir
=.
549 # Identity of this package.
557 ac_unique_file
="abook.c"
558 # Factoring default headers for most tests.
559 ac_includes_default
="\
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
571 # ifdef HAVE_STDLIB_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
596 ac_subst_vars
='am__EXEEXT_FALSE
602 USE_INCLUDED_INTL_H_FALSE
603 USE_INCLUDED_INTL_H_TRUE
608 INTL_LIBTOOL_SUFFIX_PREFIX
615 BUILD_INCLUDED_LIBINTL
650 XGETTEXT_EXTRA_OPTIONS
658 GETTEXT_MACRO_VERSION
687 INSTALL_STRIP_PROGRAM
729 program_transform_name
742 enable_option_checking
743 enable_dependency_tracking
750 with_included_gettext
757 ac_precious_vars
='build_alias
768 # Initialize some variables set by options.
770 ac_init_version
=false
771 ac_unrecognized_opts
=
773 # The variables have the same names as the options, with
774 # dashes changed to underlines.
782 program_transform_name
=s
,x
,x
,
790 # Installation directory options.
791 # These are left unexpanded so users can "make install exec_prefix=/foo"
792 # and all the variables that are supposed to be based on exec_prefix
793 # by default will actually change.
794 # Use braces instead of parens because sh, perl, etc. also accept them.
795 # (The list follows the same order as the GNU Coding Standards.)
796 bindir
='${exec_prefix}/bin'
797 sbindir
='${exec_prefix}/sbin'
798 libexecdir
='${exec_prefix}/libexec'
799 datarootdir
='${prefix}/share'
800 datadir
='${datarootdir}'
801 sysconfdir
='${prefix}/etc'
802 sharedstatedir
='${prefix}/com'
803 localstatedir
='${prefix}/var'
804 includedir
='${prefix}/include'
805 oldincludedir
='/usr/include'
806 docdir
='${datarootdir}/doc/${PACKAGE}'
807 infodir
='${datarootdir}/info'
812 libdir
='${exec_prefix}/lib'
813 localedir
='${datarootdir}/locale'
814 mandir
='${datarootdir}/man'
820 # If the previous option needs an argument, assign it.
821 if test -n "$ac_prev"; then
822 eval $ac_prev=\
$ac_option
828 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
832 # Accept the important Cygnus configure options, so we can diagnose typos.
834 case $ac_dashdash$ac_option in
838 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
840 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
843 -build |
--build |
--buil |
--bui |
--bu)
844 ac_prev
=build_alias
;;
845 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
846 build_alias
=$ac_optarg ;;
848 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
849 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
850 ac_prev
=cache_file
;;
851 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
852 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
853 cache_file
=$ac_optarg ;;
856 cache_file
=config.cache
;;
858 -datadir |
--datadir |
--datadi |
--datad)
860 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
861 datadir
=$ac_optarg ;;
863 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
864 |
--dataroo |
--dataro |
--datar)
865 ac_prev
=datarootdir
;;
866 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
867 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
868 datarootdir
=$ac_optarg ;;
870 -disable-* |
--disable-*)
871 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
872 # Reject names that are not valid shell variable names.
873 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
874 as_fn_error
"invalid feature name: $ac_useropt"
875 ac_useropt_orig
=$ac_useropt
876 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
877 case $ac_user_opts in
881 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
882 ac_unrecognized_sep
=', ';;
884 eval enable_
$ac_useropt=no
;;
886 -docdir |
--docdir |
--docdi |
--doc |
--do)
888 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
891 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
893 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
896 -enable-* |
--enable-*)
897 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
898 # Reject names that are not valid shell variable names.
899 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
900 as_fn_error
"invalid feature name: $ac_useropt"
901 ac_useropt_orig
=$ac_useropt
902 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
903 case $ac_user_opts in
907 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
908 ac_unrecognized_sep
=', ';;
910 eval enable_
$ac_useropt=\
$ac_optarg ;;
912 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
913 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
914 |
--exec |
--exe |
--ex)
915 ac_prev
=exec_prefix
;;
916 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
917 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
918 |
--exec=* |
--exe=* |
--ex=*)
919 exec_prefix
=$ac_optarg ;;
921 -gas |
--gas |
--ga |
--g)
922 # Obsolete; use --with-gas.
925 -help |
--help |
--hel |
--he |
-h)
927 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
928 ac_init_help
=recursive
;;
929 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
930 ac_init_help
=short
;;
932 -host |
--host |
--hos |
--ho)
933 ac_prev
=host_alias
;;
934 -host=* |
--host=* |
--hos=* |
--ho=*)
935 host_alias
=$ac_optarg ;;
937 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
939 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
941 htmldir
=$ac_optarg ;;
943 -includedir |
--includedir |
--includedi |
--included |
--include \
944 |
--includ |
--inclu |
--incl |
--inc)
945 ac_prev
=includedir
;;
946 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
947 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
948 includedir
=$ac_optarg ;;
950 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
952 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
953 infodir
=$ac_optarg ;;
955 -libdir |
--libdir |
--libdi |
--libd)
957 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
960 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
961 |
--libexe |
--libex |
--libe)
962 ac_prev
=libexecdir
;;
963 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
964 |
--libexe=* |
--libex=* |
--libe=*)
965 libexecdir
=$ac_optarg ;;
967 -localedir |
--localedir |
--localedi |
--localed |
--locale)
969 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
970 localedir
=$ac_optarg ;;
972 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
973 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
974 ac_prev
=localstatedir
;;
975 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
976 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
977 localstatedir
=$ac_optarg ;;
979 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
981 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
985 # Obsolete; use --without-fp.
988 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
989 |
--no-cr |
--no-c |
-n)
992 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
993 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
996 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
997 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
998 |
--oldin |
--oldi |
--old |
--ol |
--o)
999 ac_prev
=oldincludedir
;;
1000 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1001 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1002 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1003 oldincludedir
=$ac_optarg ;;
1005 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1007 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1008 prefix
=$ac_optarg ;;
1010 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1011 |
--program-pre |
--program-pr |
--program-p)
1012 ac_prev
=program_prefix
;;
1013 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1014 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1015 program_prefix
=$ac_optarg ;;
1017 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1018 |
--program-suf |
--program-su |
--program-s)
1019 ac_prev
=program_suffix
;;
1020 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1021 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1022 program_suffix
=$ac_optarg ;;
1024 -program-transform-name |
--program-transform-name \
1025 |
--program-transform-nam |
--program-transform-na \
1026 |
--program-transform-n |
--program-transform- \
1027 |
--program-transform |
--program-transfor \
1028 |
--program-transfo |
--program-transf \
1029 |
--program-trans |
--program-tran \
1030 |
--progr-tra |
--program-tr |
--program-t)
1031 ac_prev
=program_transform_name
;;
1032 -program-transform-name=* |
--program-transform-name=* \
1033 |
--program-transform-nam=* |
--program-transform-na=* \
1034 |
--program-transform-n=* |
--program-transform-=* \
1035 |
--program-transform=* |
--program-transfor=* \
1036 |
--program-transfo=* |
--program-transf=* \
1037 |
--program-trans=* |
--program-tran=* \
1038 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1039 program_transform_name
=$ac_optarg ;;
1041 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1043 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1044 pdfdir
=$ac_optarg ;;
1046 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1048 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1051 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1052 |
-silent |
--silent |
--silen |
--sile |
--sil)
1055 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1057 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1059 sbindir
=$ac_optarg ;;
1061 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1062 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1063 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1065 ac_prev
=sharedstatedir
;;
1066 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1067 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1068 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1070 sharedstatedir
=$ac_optarg ;;
1072 -site |
--site |
--sit)
1074 -site=* |
--site=* |
--sit=*)
1077 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1079 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1080 srcdir
=$ac_optarg ;;
1082 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1083 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1084 ac_prev
=sysconfdir
;;
1085 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1086 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1087 sysconfdir
=$ac_optarg ;;
1089 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1090 ac_prev
=target_alias
;;
1091 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1092 target_alias
=$ac_optarg ;;
1094 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1097 -version |
--version |
--versio |
--versi |
--vers |
-V)
1098 ac_init_version
=: ;;
1101 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1102 # Reject names that are not valid shell variable names.
1103 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1104 as_fn_error
"invalid package name: $ac_useropt"
1105 ac_useropt_orig
=$ac_useropt
1106 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1107 case $ac_user_opts in
1111 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1112 ac_unrecognized_sep
=', ';;
1114 eval with_
$ac_useropt=\
$ac_optarg ;;
1116 -without-* |
--without-*)
1117 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1118 # Reject names that are not valid shell variable names.
1119 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1120 as_fn_error
"invalid package name: $ac_useropt"
1121 ac_useropt_orig
=$ac_useropt
1122 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1123 case $ac_user_opts in
1127 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1128 ac_unrecognized_sep
=', ';;
1130 eval with_
$ac_useropt=no
;;
1133 # Obsolete; use --with-x.
1136 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1137 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1138 ac_prev
=x_includes
;;
1139 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1140 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1141 x_includes
=$ac_optarg ;;
1143 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1144 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1145 ac_prev
=x_libraries
;;
1146 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1147 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1148 x_libraries
=$ac_optarg ;;
1150 -*) as_fn_error
"unrecognized option: \`$ac_option'
1151 Try \`$0 --help' for more information."
1155 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1156 # Reject names that are not valid shell variable names.
1157 case $ac_envvar in #(
1158 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1159 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1161 eval $ac_envvar=\
$ac_optarg
1162 export $ac_envvar ;;
1165 # FIXME: should be removed in autoconf 3.0.
1166 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1167 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1168 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1169 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1175 if test -n "$ac_prev"; then
1176 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1177 as_fn_error
"missing argument to $ac_option"
1180 if test -n "$ac_unrecognized_opts"; then
1181 case $enable_option_checking in
1183 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1184 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1188 # Check all directory arguments for consistency.
1189 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1190 datadir sysconfdir sharedstatedir localstatedir includedir \
1191 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1192 libdir localedir mandir
1194 eval ac_val
=\$
$ac_var
1195 # Remove trailing slashes.
1198 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1199 eval $ac_var=\
$ac_val;;
1201 # Be sure to have absolute directory names.
1203 [\\/$
]* | ?
:[\\/]* ) continue;;
1204 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1206 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1209 # There might be people who depend on the old broken behavior: `$host'
1210 # used to hold the argument of --host etc.
1211 # FIXME: To remove some day.
1214 target
=$target_alias
1216 # FIXME: To remove some day.
1217 if test "x$host_alias" != x
; then
1218 if test "x$build_alias" = x
; then
1219 cross_compiling
=maybe
1220 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1221 If a cross compiler is detected then cross compile mode will be used." >&2
1222 elif test "x$build_alias" != "x$host_alias"; then
1228 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1230 test "$silent" = yes && exec 6>/dev
/null
1233 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1234 ac_ls_di
=`ls -di .` &&
1235 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1236 as_fn_error
"working directory cannot be determined"
1237 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1238 as_fn_error
"pwd does not report name of working directory"
1241 # Find the source files, if location was not specified.
1242 if test -z "$srcdir"; then
1243 ac_srcdir_defaulted
=yes
1244 # Try the directory containing this script, then the parent directory.
1245 ac_confdir
=`$as_dirname -- "$as_myself" ||
1246 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1247 X"$as_myself" : 'X\(//\)[^/]' \| \
1248 X"$as_myself" : 'X\(//\)$' \| \
1249 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1250 $as_echo X"$as_myself" |
1251 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1269 if test ! -r "$srcdir/$ac_unique_file"; then
1273 ac_srcdir_defaulted
=no
1275 if test ! -r "$srcdir/$ac_unique_file"; then
1276 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1277 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1279 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1281 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1283 # When building in place, set srcdir=.
1284 if test "$ac_abs_confdir" = "$ac_pwd"; then
1287 # Remove unnecessary trailing slashes from srcdir.
1288 # Double slashes in file names in object file debugging info
1289 # mess up M-x gdb in Emacs.
1291 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1293 for ac_var
in $ac_precious_vars; do
1294 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1295 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1296 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1297 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1301 # Report the --help message.
1303 if test "$ac_init_help" = "long"; then
1304 # Omit some internal or obsolete options to make the list less imposing.
1305 # This message is too long to be a string in the A/UX 3.1 sh.
1307 \`configure' configures this package to adapt to many kinds of systems.
1309 Usage: $0 [OPTION]... [VAR=VALUE]...
1311 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1312 VAR=VALUE. See below for descriptions of some of the useful variables.
1314 Defaults for the options are specified in brackets.
1317 -h, --help display this help and exit
1318 --help=short display options specific to this package
1319 --help=recursive display the short help of all the included packages
1320 -V, --version display version information and exit
1321 -q, --quiet, --silent do not print \`checking...' messages
1322 --cache-file=FILE cache test results in FILE [disabled]
1323 -C, --config-cache alias for \`--cache-file=config.cache'
1324 -n, --no-create do not create output files
1325 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1327 Installation directories:
1328 --prefix=PREFIX install architecture-independent files in PREFIX
1329 [$ac_default_prefix]
1330 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1333 By default, \`make install' will install all the files in
1334 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1335 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1336 for instance \`--prefix=\$HOME'.
1338 For better control, use the options below.
1340 Fine tuning of the installation directories:
1341 --bindir=DIR user executables [EPREFIX/bin]
1342 --sbindir=DIR system admin executables [EPREFIX/sbin]
1343 --libexecdir=DIR program executables [EPREFIX/libexec]
1344 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1345 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1346 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1347 --libdir=DIR object code libraries [EPREFIX/lib]
1348 --includedir=DIR C header files [PREFIX/include]
1349 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1350 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1351 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1352 --infodir=DIR info documentation [DATAROOTDIR/info]
1353 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1354 --mandir=DIR man documentation [DATAROOTDIR/man]
1355 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1356 --htmldir=DIR html documentation [DOCDIR]
1357 --dvidir=DIR dvi documentation [DOCDIR]
1358 --pdfdir=DIR pdf documentation [DOCDIR]
1359 --psdir=DIR ps documentation [DOCDIR]
1365 --program-prefix=PREFIX prepend PREFIX to installed program names
1366 --program-suffix=SUFFIX append SUFFIX to installed program names
1367 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1370 --build=BUILD configure
for building on BUILD
[guessed
]
1371 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1375 if test -n "$ac_init_help"; then
1380 --disable-option-checking ignore unrecognized
--enable/--with options
1381 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1382 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1383 --disable-dependency-tracking speeds up one-time build
1384 --enable-dependency-tracking do not reject slow dependency extractors
1385 --disable-nls do not use Native Language Support
1386 --enable-threads={posix|solaris|pth|win32
}
1387 specify multithreading API
1388 --disable-threads build without multithread safety
1389 --disable-rpath do not hardcode runtime library paths
1390 --enable-debug Enable debugging support
1393 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1394 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1395 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1396 --with-libpth-prefix[=DIR
] search
for libpth
in DIR
/include and DIR
/lib
1397 --without-libpth-prefix don
't search for libpth in includedir and libdir
1398 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1399 --without-libiconv-prefix don't search
for libiconv
in includedir and libdir
1400 --with-included-gettext use the GNU
gettext library included here
1401 --with-libintl-prefix[=DIR
] search
for libintl
in DIR
/include and DIR
/lib
1402 --without-libintl-prefix don
't search for libintl in includedir and libdir
1403 --with-localedir=PATH Where the locale files are installed
1404 --with-curses=DIR Where ncurses is installed
1405 --with-readline=DIR Where readline is installed
1407 Some influential environment variables:
1408 CC C compiler command
1409 CFLAGS C compiler flags
1410 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1411 nonstandard directory <lib dir>
1412 LIBS libraries to pass to the linker, e.g. -l<library>
1413 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1414 you have headers in a nonstandard directory <include dir>
1417 Use these variables to override the choices made by `configure' or to
help
1418 it to
find libraries and programs with nonstandard names
/locations.
1420 Report bugs to the package provider.
1425 if test "$ac_init_help" = "recursive"; then
1426 # If there are subdirs, report their specific --help.
1427 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1428 test -d "$ac_dir" ||
1429 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1434 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1436 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1437 # A ".." for each directory in $ac_dir_suffix.
1438 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1439 case $ac_top_builddir_sub in
1440 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1441 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1444 ac_abs_top_builddir
=$ac_pwd
1445 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1446 # for backward compatibility:
1447 ac_top_builddir
=$ac_top_build_prefix
1450 .
) # We are building in place.
1452 ac_top_srcdir
=$ac_top_builddir_sub
1453 ac_abs_top_srcdir
=$ac_pwd ;;
1454 [\\/]* | ?
:[\\/]* ) # Absolute name.
1455 ac_srcdir
=$srcdir$ac_dir_suffix;
1456 ac_top_srcdir
=$srcdir
1457 ac_abs_top_srcdir
=$srcdir ;;
1459 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1460 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1461 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1463 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1465 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1466 # Check for guested configure.
1467 if test -f "$ac_srcdir/configure.gnu"; then
1469 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1470 elif test -f "$ac_srcdir/configure"; then
1472 $SHELL "$ac_srcdir/configure" --help=recursive
1474 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1476 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1480 test -n "$ac_init_help" && exit $ac_status
1481 if $ac_init_version; then
1484 generated by GNU Autoconf
2.65
1486 Copyright
(C
) 2009 Free Software Foundation
, Inc.
1487 This configure
script is free software
; the Free Software Foundation
1488 gives unlimited permission to copy
, distribute and modify it.
1493 ## ------------------------ ##
1494 ## Autoconf initialization. ##
1495 ## ------------------------ ##
1497 # ac_fn_c_try_compile LINENO
1498 # --------------------------
1499 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1500 ac_fn_c_try_compile
()
1502 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1503 rm -f conftest.
$ac_objext
1504 if { { ac_try
="$ac_compile"
1506 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1507 *) ac_try_echo=$ac_try;;
1509 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1510 $as_echo "$ac_try_echo"; } >&5
1511 (eval "$ac_compile") 2>conftest.err
1513 if test -s conftest.err; then
1514 grep -v '^ *+' conftest.err >conftest.er1
1515 cat conftest.er1 >&5
1516 mv -f conftest.er1 conftest.err
1518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1519 test $ac_status = 0; } && {
1520 test -z "$ac_c_werror_flag" ||
1521 test ! -s conftest.err
1522 } && test -s conftest.$ac_objext; then :
1525 $as_echo "$as_me: failed program was:" >&5
1526 sed 's/^/| /' conftest.$ac_ext >&5
1530 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1531 as_fn_set_status $ac_retval
1533 } # ac_fn_c_try_compile
1535 # ac_fn_c_try_cpp LINENO
1536 # ----------------------
1537 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1540 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1541 if { { ac_try="$ac_cpp conftest.$ac_ext"
1543 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1544 *) ac_try_echo
=$ac_try;;
1546 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1547 $as_echo "$ac_try_echo"; } >&5
1548 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1550 if test -s conftest.err
; then
1551 grep -v '^ *+' conftest.err
>conftest.er1
1552 cat conftest.er1
>&5
1553 mv -f conftest.er1 conftest.err
1555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1556 test $ac_status = 0; } >/dev
/null
&& {
1557 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1558 test ! -s conftest.err
1562 $as_echo "$as_me: failed program was:" >&5
1563 sed 's/^/| /' conftest.
$ac_ext >&5
1567 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1568 as_fn_set_status
$ac_retval
1572 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1573 # -------------------------------------------------------
1574 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1575 # the include files in INCLUDES and setting the cache variable VAR
1577 ac_fn_c_check_header_mongrel
()
1579 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1580 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1582 $as_echo_n "checking for $2... " >&6; }
1583 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1584 $as_echo_n "(cached) " >&6
1587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1588 $as_echo "$ac_res" >&6; }
1590 # Is the header compilable?
1591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1592 $as_echo_n "checking $2 usability... " >&6; }
1593 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1594 /* end confdefs.h. */
1598 if ac_fn_c_try_compile
"$LINENO"; then :
1599 ac_header_compiler
=yes
1601 ac_header_compiler
=no
1603 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1605 $as_echo "$ac_header_compiler" >&6; }
1607 # Is the header present?
1608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1609 $as_echo_n "checking $2 presence... " >&6; }
1610 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1611 /* end confdefs.h. */
1614 if ac_fn_c_try_cpp
"$LINENO"; then :
1615 ac_header_preproc
=yes
1617 ac_header_preproc
=no
1619 rm -f conftest.err conftest.
$ac_ext
1620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1621 $as_echo "$ac_header_preproc" >&6; }
1623 # So? What about this header?
1624 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1627 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1629 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1633 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1635 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1637 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1639 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1641 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1645 $as_echo_n "checking for $2... " >&6; }
1646 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1647 $as_echo_n "(cached) " >&6
1649 eval "$3=\$ac_header_compiler"
1652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1653 $as_echo "$ac_res" >&6; }
1655 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1657 } # ac_fn_c_check_header_mongrel
1659 # ac_fn_c_try_run LINENO
1660 # ----------------------
1661 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1662 # that executables *can* be run.
1665 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1666 if { { ac_try
="$ac_link"
1668 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1669 *) ac_try_echo=$ac_try;;
1671 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1672 $as_echo "$ac_try_echo"; } >&5
1673 (eval "$ac_link") 2>&5
1675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1676 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1677 { { case "(($ac_try" in
1678 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1679 *) ac_try_echo
=$ac_try;;
1681 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1682 $as_echo "$ac_try_echo"; } >&5
1683 (eval "$ac_try") 2>&5
1685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1686 test $ac_status = 0; }; }; then :
1689 $as_echo "$as_me: program exited with status $ac_status" >&5
1690 $as_echo "$as_me: failed program was:" >&5
1691 sed 's/^/| /' conftest.
$ac_ext >&5
1693 ac_retval
=$ac_status
1695 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1696 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1697 as_fn_set_status
$ac_retval
1701 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1702 # -------------------------------------------------------
1703 # Tests whether HEADER exists and can be compiled using the include files in
1704 # INCLUDES, setting the cache variable VAR accordingly.
1705 ac_fn_c_check_header_compile
()
1707 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1709 $as_echo_n "checking for $2... " >&6; }
1710 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1711 $as_echo_n "(cached) " >&6
1713 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1714 /* end confdefs.h. */
1718 if ac_fn_c_try_compile
"$LINENO"; then :
1723 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1727 $as_echo "$ac_res" >&6; }
1728 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1730 } # ac_fn_c_check_header_compile
1732 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1733 # -------------------------------------------
1734 # Tests whether TYPE exists after having included INCLUDES, setting cache
1735 # variable VAR accordingly.
1736 ac_fn_c_check_type
()
1738 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1740 $as_echo_n "checking for $2... " >&6; }
1741 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1742 $as_echo_n "(cached) " >&6
1745 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1746 /* end confdefs.h. */
1757 if ac_fn_c_try_compile
"$LINENO"; then :
1758 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1759 /* end confdefs.h. */
1770 if ac_fn_c_try_compile
"$LINENO"; then :
1775 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1777 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1781 $as_echo "$ac_res" >&6; }
1782 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1784 } # ac_fn_c_check_type
1786 # ac_fn_c_try_link LINENO
1787 # -----------------------
1788 # Try to link conftest.$ac_ext, and return whether this succeeded.
1791 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1792 rm -f conftest.
$ac_objext conftest
$ac_exeext
1793 if { { ac_try
="$ac_link"
1795 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1796 *) ac_try_echo=$ac_try;;
1798 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1799 $as_echo "$ac_try_echo"; } >&5
1800 (eval "$ac_link") 2>conftest.err
1802 if test -s conftest.err; then
1803 grep -v '^ *+' conftest.err >conftest.er1
1804 cat conftest.er1 >&5
1805 mv -f conftest.er1 conftest.err
1807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1808 test $ac_status = 0; } && {
1809 test -z "$ac_c_werror_flag" ||
1810 test ! -s conftest.err
1811 } && test -s conftest$ac_exeext && {
1812 test "$cross_compiling" = yes ||
1813 $as_test_x conftest$ac_exeext
1817 $as_echo "$as_me: failed program was:" >&5
1818 sed 's/^/| /' conftest.$ac_ext >&5
1822 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1823 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1824 # interfere with the next link command; also delete a directory that is
1825 # left behind by Apple's compiler. We do this before executing the actions.
1826 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1827 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1828 as_fn_set_status $ac_retval
1830 } # ac_fn_c_try_link
1832 # ac_fn_c_check_func LINENO FUNC VAR
1833 # ----------------------------------
1834 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1835 ac_fn_c_check_func ()
1837 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1839 $as_echo_n "checking for $2... " >&6; }
1840 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1841 $as_echo_n "(cached) " >&6
1843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1844 /* end confdefs.h. */
1845 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1846 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1847 #define $2 innocuous_$2
1849 /* System header to define __stub macros and hopefully few prototypes,
1850 which can conflict with char $2 (); below.
1851 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1852 <limits.h> exists even on freestanding compilers. */
1855 # include <limits.h>
1857 # include <assert.h>
1862 /* Override any GCC internal prototype to avoid an error.
1863 Use char because int might match the return type of a GCC
1864 builtin and then its argument prototype would still apply. */
1869 /* The GNU C library defines this for functions which it implements
1870 to always fail with ENOSYS. Some functions are actually named
1871 something starting with __ and the normal name is an alias. */
1872 #if defined __stub_$2 || defined __stub___$2
1884 if ac_fn_c_try_link "$LINENO"; then :
1889 rm -f core conftest.err conftest.$ac_objext \
1890 conftest$ac_exeext conftest.$ac_ext
1893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1894 $as_echo "$ac_res" >&6; }
1895 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1897 } # ac_fn_c_check_func
1899 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1900 # --------------------------------------------
1901 # Tries to find the compile-time value of EXPR in a program that includes
1902 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1904 ac_fn_c_compute_int ()
1906 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1907 if test "$cross_compiling" = yes; then
1908 # Depending upon the size, compute the lo and hi bounds.
1909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1910 /* end confdefs.h. */
1915 static int test_array [1 - 2 * !(($2) >= 0)];
1922 if ac_fn_c_try_compile "$LINENO"; then :
1925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1926 /* end confdefs.h. */
1931 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1938 if ac_fn_c_try_compile "$LINENO"; then :
1939 ac_hi=$ac_mid; break
1941 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1942 if test $ac_lo -le $ac_mid; then
1946 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1952 /* end confdefs.h. */
1957 static int test_array [1 - 2 * !(($2) < 0)];
1964 if ac_fn_c_try_compile "$LINENO"; then :
1967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1968 /* end confdefs.h. */
1973 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1980 if ac_fn_c_try_compile "$LINENO"; then :
1981 ac_lo=$ac_mid; break
1983 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1984 if test $ac_mid -le $ac_hi; then
1988 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1998 # Binary search between lo and hi bounds.
1999 while test "x$ac_lo" != "x$ac_hi"; do
2000 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2002 /* end confdefs.h. */
2007 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2014 if ac_fn_c_try_compile "$LINENO"; then :
2017 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2022 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2027 /* end confdefs.h. */
2029 static long int longval () { return $2; }
2030 static unsigned long int ulongval () { return $2; }
2037 FILE *f = fopen ("conftest.val", "w");
2042 long int i = longval ();
2045 fprintf (f, "%ld", i);
2049 unsigned long int i = ulongval ();
2052 fprintf (f, "%lu", i);
2054 /* Do not output a trailing newline, as this causes \r\n confusion
2055 on some platforms. */
2056 return ferror (f) || fclose (f) != 0;
2062 if ac_fn_c_try_run "$LINENO"; then :
2063 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2067 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2068 conftest.$ac_objext conftest.beam conftest.$ac_ext
2072 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2073 as_fn_set_status $ac_retval
2075 } # ac_fn_c_compute_int
2077 # ac_fn_c_check_decl LINENO SYMBOL VAR
2078 # ------------------------------------
2079 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2080 ac_fn_c_check_decl ()
2082 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2084 $as_echo_n "checking whether $2 is declared... " >&6; }
2085 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2086 $as_echo_n "(cached) " >&6
2088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2089 /* end confdefs.h. */
2102 if ac_fn_c_try_compile "$LINENO"; then :
2107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2111 $as_echo "$ac_res" >&6; }
2112 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2114 } # ac_fn_c_check_decl
2115 cat >config.log <<_ACEOF
2116 This file contains any messages produced by compilers while
2117 running configure, to aid debugging if configure makes a mistake.
2119 It was created by $as_me, which was
2120 generated by GNU Autoconf 2.65. Invocation command line was
2132 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2133 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2134 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2135 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2136 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2138 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2139 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2141 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2142 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2143 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2144 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2145 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2146 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2147 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2155 test -z "$as_dir" && as_dir=.
2156 $as_echo "PATH: $as_dir"
2172 # Keep a trace of the command line.
2173 # Strip out --no-create and --no-recursion so they do not pile up.
2174 # Strip out --silent because we don't want to record it for future runs.
2175 # Also quote any args containing shell meta-characters.
2176 # Make two passes to allow for proper duplicate-argument suppression.
2180 ac_must_keep_next=false
2186 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2187 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2188 | -silent | --silent | --silen | --sile | --sil)
2191 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2194 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2196 as_fn_append ac_configure_args1 " '$ac_arg'"
2197 if test $ac_must_keep_next = true; then
2198 ac_must_keep_next=false # Got value, back to normal.
2201 *=* | --config-cache | -C | -disable-* | --disable-* \
2202 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2203 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2204 | -with-* | --with-* | -without-* | --without-* | --x)
2205 case "$ac_configure_args0 " in
2206 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2209 -* ) ac_must_keep_next=true ;;
2212 as_fn_append ac_configure_args " '$ac_arg'"
2217 { ac_configure_args0=; unset ac_configure_args0;}
2218 { ac_configure_args1=; unset ac_configure_args1;}
2220 # When interrupted or exit'd, cleanup temporary files, and complete
2221 # config.log. We remove comments because anyway the quotes in there
2222 # would cause problems or look ugly.
2223 # WARNING: Use '\'' to represent an apostrophe within the trap.
2224 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2225 trap 'exit_status=$?
2226 # Save into config.log some information that might help in debugging.
2231 ## ---------------- ##
2232 ## Cache variables. ##
2233 ## ---------------- ##
2236 # The following way of writing the cache mishandles newlines in values,
2238 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2239 eval ac_val=\$$ac_var
2243 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2244 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2247 _ | IFS | as_nl) ;; #(
2248 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2249 *) { eval $ac_var=; unset $ac_var;} ;;
2254 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2255 *${as_nl}ac_space=\ *)
2257 "s/'\''/'\''\\\\'\'''\''/g;
2258 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2261 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2269 ## ----------------- ##
2270 ## Output variables. ##
2271 ## ----------------- ##
2274 for ac_var in $ac_subst_vars
2276 eval ac_val=\$$ac_var
2278 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2280 $as_echo "$ac_var='\''$ac_val'\''"
2284 if test -n "$ac_subst_files"; then
2286 ## ------------------- ##
2287 ## File substitutions. ##
2288 ## ------------------- ##
2291 for ac_var in $ac_subst_files
2293 eval ac_val=\$$ac_var
2295 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2297 $as_echo "$ac_var='\''$ac_val'\''"
2302 if test -s confdefs.h; then
2312 test "$ac_signal" != 0 &&
2313 $as_echo "$as_me: caught signal $ac_signal"
2314 $as_echo "$as_me: exit $exit_status"
2316 rm -f core *.core core.conftest.* &&
2317 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2320 for ac_signal in 1 2 13 15; do
2321 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2325 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2326 rm -f -r conftest* confdefs.h
2328 $as_echo "/* confdefs.h */" > confdefs.h
2330 # Predefined preprocessor variables.
2332 cat >>confdefs.h <<_ACEOF
2333 #define PACKAGE_NAME "$PACKAGE_NAME"
2336 cat >>confdefs.h <<_ACEOF
2337 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2340 cat >>confdefs.h <<_ACEOF
2341 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2344 cat >>confdefs.h <<_ACEOF
2345 #define PACKAGE_STRING "$PACKAGE_STRING"
2348 cat >>confdefs.h <<_ACEOF
2349 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2352 cat >>confdefs.h <<_ACEOF
2353 #define PACKAGE_URL "$PACKAGE_URL"
2357 # Let the site file select an alternate cache file if it wants to.
2358 # Prefer an explicitly selected file to automatically selected ones.
2361 if test -n "$CONFIG_SITE"; then
2362 ac_site_file1=$CONFIG_SITE
2363 elif test "x$prefix" != xNONE; then
2364 ac_site_file1=$prefix/share/config.site
2365 ac_site_file2=$prefix/etc/config.site
2367 ac_site_file1=$ac_default_prefix/share/config.site
2368 ac_site_file2=$ac_default_prefix/etc/config.site
2370 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2372 test "x$ac_site_file" = xNONE && continue
2373 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2375 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2376 sed 's/^/| /' "$ac_site_file" >&5
2381 if test -r "$cache_file"; then
2382 # Some versions of bash will fail to source /dev/null (special files
2383 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2384 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2386 $as_echo "$as_me: loading cache $cache_file" >&6;}
2388 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2389 *) . "./$cache_file";;
2393 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2394 $as_echo "$as_me: creating cache $cache_file" >&6;}
2398 gt_needs="$gt_needs "
2399 as_fn_append ac_header_list " stdlib.h"
2400 as_fn_append ac_header_list " unistd.h"
2401 as_fn_append ac_header_list " sys/param.h"
2402 # Check that the precious variables saved in the cache have kept the same
2404 ac_cache_corrupted=false
2405 for ac_var in $ac_precious_vars; do
2406 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2407 eval ac_new_set=\$ac_env_${ac_var}_set
2408 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2409 eval ac_new_val=\$ac_env_${ac_var}_value
2410 case $ac_old_set,$ac_new_set in
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2413 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2414 ac_cache_corrupted=: ;;
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2417 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2418 ac_cache_corrupted=: ;;
2421 if test "x$ac_old_val" != "x$ac_new_val"; then
2422 # differences in whitespace do not lead to failure.
2423 ac_old_val_w=`echo x
$ac_old_val`
2424 ac_new_val_w=`echo x
$ac_new_val`
2425 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2427 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2428 ac_cache_corrupted=:
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2431 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2432 eval $ac_var=\$ac_old_val
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2435 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2436 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2437 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2440 # Pass precious variables to config.status.
2441 if test "$ac_new_set" = set; then
2443 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2444 *) ac_arg=$ac_var=$ac_new_val ;;
2446 case " $ac_configure_args " in
2447 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2448 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2452 if $ac_cache_corrupted; then
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2454 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2456 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2457 as_fn_error "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2459 ## -------------------- ##
2460 ## Main body of script. ##
2461 ## -------------------- ##
2464 ac_cpp='$CPP $CPPFLAGS'
2465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2467 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2470 am__api_version='1.11'
2473 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2474 for ac_t in install-sh install.sh shtool; do
2475 if test -f "$ac_dir/$ac_t"; then
2477 ac_install_sh="$ac_aux_dir/$ac_t -c"
2482 if test -z "$ac_aux_dir"; then
2483 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2486 # These three variables are undocumented and unsupported,
2487 # and are intended to be withdrawn in a future Autoconf release.
2488 # They can cause serious problems if a builder's source tree is in a directory
2489 # whose full name contains unusual characters.
2490 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2491 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2492 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2495 # Find a good install program. We prefer a C program (faster),
2496 # so one script is as good as another. But avoid the broken or
2497 # incompatible versions:
2498 # SysV /etc/install, /usr/sbin/install
2499 # SunOS /usr/etc/install
2500 # IRIX /sbin/install
2502 # AmigaOS /C/install, which installs bootblocks on floppy discs
2503 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2504 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2505 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2506 # OS/2's system install, which has a completely different semantic
2507 # ./install, which can be erroneously created by make from ./install.sh.
2508 # Reject install programs that cannot install multiple files.
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2510 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2511 if test -z "$INSTALL"; then
2512 if test "${ac_cv_path_install+set}" = set; then :
2513 $as_echo_n "(cached) " >&6
2515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2519 test -z "$as_dir" && as_dir=.
2520 # Account for people who put trailing slashes in PATH elements.
2521 case $as_dir/ in #((
2522 ./ | .// | /[cC]/* | \
2523 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2524 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2527 # OSF1 and SCO ODT 3.0 have their own names for install.
2528 # Don't use installbsd from OSF since it installs stuff as root
2530 for ac_prog in ginstall scoinst install; do
2531 for ac_exec_ext in '' $ac_executable_extensions; do
2532 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2533 if test $ac_prog = install &&
2534 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2535 # AIX install. It has an incompatible calling convention.
2537 elif test $ac_prog = install &&
2538 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2539 # program-specific install script used by HP pwplus--don't use.
2542 rm -rf conftest.one conftest.two conftest.dir
2543 echo one > conftest.one
2544 echo two > conftest.two
2546 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2547 test -s conftest.one && test -s conftest.two &&
2548 test -s conftest.dir/conftest.one &&
2549 test -s conftest.dir/conftest.two
2551 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2564 rm -rf conftest.one conftest.two conftest.dir
2567 if test "${ac_cv_path_install+set}" = set; then
2568 INSTALL=$ac_cv_path_install
2570 # As a last resort, use the slow shell script. Don't cache a
2571 # value for INSTALL within a source directory, because that will
2572 # break other packages using the cache if that directory is
2573 # removed, or if the value is a relative name.
2574 INSTALL=$ac_install_sh
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2578 $as_echo "$INSTALL" >&6; }
2580 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2581 # It thinks the first close brace ends the variable substitution.
2582 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2584 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2586 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2589 $as_echo_n "checking whether build environment is sane... " >&6; }
2592 echo timestamp > conftest.file
2593 # Reject unsafe characters in $srcdir or the absolute working directory
2594 # name. Accept space and tab only in the latter.
2598 *[\\\"\#\$\&\'\`$am_lf]*)
2599 as_fn_error
"unsafe absolute working directory name" "$LINENO" 5;;
2602 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2603 as_fn_error
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2606 # Do `set' in a subshell so we don't clobber the current shell's
2607 # arguments. Must try -L first in case configure is actually a
2608 # symlink; some systems play weird games with the mod time of symlinks
2609 # (eg FreeBSD returns the mod time of the symlink's containing
2612 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2613 if test "$*" = "X"; then
2615 set X
`ls -t "$srcdir/configure" conftest.file`
2618 if test "$*" != "X $srcdir/configure conftest.file" \
2619 && test "$*" != "X conftest.file $srcdir/configure"; then
2621 # If neither matched, then we have a broken ls. This can happen
2622 # if, for instance, CONFIG_SHELL is bash and it inherits a
2623 # broken ls alias from the environment. This has actually
2624 # happened. Such a system could not be considered "sane".
2625 as_fn_error
"ls -t appears to fail. Make sure there is not a broken
2626 alias in your environment" "$LINENO" 5
2629 test "$2" = conftest.
file
2635 as_fn_error
"newly created file is older than distributed files!
2636 Check your system clock" "$LINENO" 5
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2639 $as_echo "yes" >&6; }
2640 test "$program_prefix" != NONE
&&
2641 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2642 # Use a double $ so make ignores it.
2643 test "$program_suffix" != NONE
&&
2644 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2645 # Double any \ or $.
2646 # By default was `s,x,x', remove it if useless.
2647 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2648 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2650 # expand $ac_aux_dir to an absolute path
2651 am_aux_dir
=`cd $ac_aux_dir && pwd`
2653 if test x
"${MISSING+set}" != xset
; then
2656 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
2658 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
2661 # Use eval to expand $SHELL
2662 if eval "$MISSING --run true"; then
2663 am_missing_run
="$MISSING --run "
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2667 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2670 if test x
"${install_sh}" != xset
; then
2673 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
2675 install_sh
="\${SHELL} $am_aux_dir/install-sh"
2679 # Installed binaries are usually stripped using `strip' when the user
2680 # run `make install-strip'. However `strip' might not be the right
2681 # tool to use in cross-compilation environments, therefore Automake
2682 # will honor the `STRIP' environment variable to overrule this program.
2683 if test "$cross_compiling" != no
; then
2684 if test -n "$ac_tool_prefix"; then
2685 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2686 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2688 $as_echo_n "checking for $ac_word... " >&6; }
2689 if test "${ac_cv_prog_STRIP+set}" = set; then :
2690 $as_echo_n "(cached) " >&6
2692 if test -n "$STRIP"; then
2693 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2695 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2699 test -z "$as_dir" && as_dir
=.
2700 for ac_exec_ext
in '' $ac_executable_extensions; do
2701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2702 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2712 STRIP
=$ac_cv_prog_STRIP
2713 if test -n "$STRIP"; then
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2715 $as_echo "$STRIP" >&6; }
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2718 $as_echo "no" >&6; }
2723 if test -z "$ac_cv_prog_STRIP"; then
2725 # Extract the first word of "strip", so it can be a program name with args.
2726 set dummy strip
; ac_word
=$2
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2728 $as_echo_n "checking for $ac_word... " >&6; }
2729 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2730 $as_echo_n "(cached) " >&6
2732 if test -n "$ac_ct_STRIP"; then
2733 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
2735 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2739 test -z "$as_dir" && as_dir
=.
2740 for ac_exec_ext
in '' $ac_executable_extensions; do
2741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2742 ac_cv_prog_ac_ct_STRIP
="strip"
2743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2752 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
2753 if test -n "$ac_ct_STRIP"; then
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2755 $as_echo "$ac_ct_STRIP" >&6; }
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2758 $as_echo "no" >&6; }
2761 if test "x$ac_ct_STRIP" = x
; then
2764 case $cross_compiling:$ac_tool_warned in
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2767 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2768 ac_tool_warned
=yes ;;
2773 STRIP
="$ac_cv_prog_STRIP"
2777 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2780 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2781 if test -z "$MKDIR_P"; then
2782 if test "${ac_cv_path_mkdir+set}" = set; then :
2783 $as_echo_n "(cached) " >&6
2785 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2786 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
2789 test -z "$as_dir" && as_dir
=.
2790 for ac_prog
in mkdir gmkdir
; do
2791 for ac_exec_ext
in '' $ac_executable_extensions; do
2792 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
2793 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2794 'mkdir (GNU coreutils) '* | \
2795 'mkdir (coreutils) '* | \
2796 'mkdir (fileutils) '4.1*)
2797 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
2807 test -d .
/--version && rmdir .
/--version
2808 if test "${ac_cv_path_mkdir+set}" = set; then
2809 MKDIR_P
="$ac_cv_path_mkdir -p"
2811 # As a last resort, use the slow shell script. Don't cache a
2812 # value for MKDIR_P within a source directory, because that will
2813 # break other packages using the cache if that directory is
2814 # removed, or if the value is a relative name.
2815 MKDIR_P
="$ac_install_sh -d"
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2819 $as_echo "$MKDIR_P" >&6; }
2823 [\\/$
]* | ?
:[\\/]*) ;;
2824 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
2827 for ac_prog
in gawk mawk nawk
awk
2829 # Extract the first word of "$ac_prog", so it can be a program name with args.
2830 set dummy
$ac_prog; ac_word
=$2
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2832 $as_echo_n "checking for $ac_word... " >&6; }
2833 if test "${ac_cv_prog_AWK+set}" = set; then :
2834 $as_echo_n "(cached) " >&6
2836 if test -n "$AWK"; then
2837 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2839 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2843 test -z "$as_dir" && as_dir
=.
2844 for ac_exec_ext
in '' $ac_executable_extensions; do
2845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2846 ac_cv_prog_AWK
="$ac_prog"
2847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2857 if test -n "$AWK"; then
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2859 $as_echo "$AWK" >&6; }
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2862 $as_echo "no" >&6; }
2866 test -n "$AWK" && break
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2870 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2872 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2873 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2874 $as_echo_n "(cached) " >&6
2876 cat >conftest.
make <<\_ACEOF
2879 @
echo '@@@%%%=$(MAKE)=@@@%%%'
2881 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2882 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2884 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
2886 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
2890 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2892 $as_echo "yes" >&6; }
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2896 $as_echo "no" >&6; }
2897 SET_MAKE
="MAKE=${MAKE-make}"
2900 rm -rf .tst
2>/dev
/null
2901 mkdir .tst
2>/dev
/null
2902 if test -d .tst
; then
2907 rmdir .tst
2>/dev
/null
2909 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2910 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2911 # is not polluted with repeated "-I."
2912 am__isrc
=' -I$(srcdir)'
2913 # test to see if srcdir already configured
2914 if test -f $srcdir/config.status
; then
2915 as_fn_error
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2919 # test whether we have cygpath
2920 if test -z "$CYGPATH_W"; then
2921 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
2922 CYGPATH_W
='cygpath -w'
2929 # Define the identity of the package.
2934 cat >>confdefs.h
<<_ACEOF
2935 #define PACKAGE "$PACKAGE"
2939 cat >>confdefs.h
<<_ACEOF
2940 #define VERSION "$VERSION"
2943 # Some tools Automake needs.
2945 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2948 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
2951 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2954 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
2957 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
2959 # We need awk for the "check" target. The system "awk" is bad on
2961 # Always define AMTAR for backward compatibility.
2963 AMTAR
=${AMTAR-"${am_missing_run}tar"}
2965 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
2971 ac_config_headers
="$ac_config_headers config.h"
2973 DEPDIR
="${am__leading_dot}deps"
2975 ac_config_commands
="$ac_config_commands depfiles"
2978 am_make
=${MAKE-make}
2979 cat > confinc
<< 'END'
2981 @
echo this is the am__doit target
2984 # If we don't find an include directive, just comment out the code.
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2986 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2990 # First try GNU make style include.
2991 echo "include confinc" > confmf
2992 # Ignore all kinds of additional output from `make'.
2993 case `$am_make -s -f confmf 2> /dev/null` in #(
2994 *the\ am__doit\ target
*)
3000 # Now try BSD make style include.
3001 if test "$am__include" = "#"; then
3002 echo '.include "confinc"' > confmf
3003 case `$am_make -s -f confmf 2> /dev/null` in #(
3004 *the\ am__doit\ target
*)
3005 am__include
=.include
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3014 $as_echo "$_am_result" >&6; }
3015 rm -f confinc confmf
3017 # Check whether --enable-dependency-tracking was given.
3018 if test "${enable_dependency_tracking+set}" = set; then :
3019 enableval
=$enable_dependency_tracking;
3022 if test "x$enable_dependency_tracking" != xno
; then
3023 am_depcomp
="$ac_aux_dir/depcomp"
3026 if test "x$enable_dependency_tracking" != xno; then
3036 ac_cpp
='$CPP $CPPFLAGS'
3037 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3038 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3039 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3040 if test -n "$ac_tool_prefix"; then
3041 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3042 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3044 $as_echo_n "checking for $ac_word... " >&6; }
3045 if test "${ac_cv_prog_CC+set}" = set; then :
3046 $as_echo_n "(cached) " >&6
3048 if test -n "$CC"; then
3049 ac_cv_prog_CC
="$CC" # Let the user override the test.
3051 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3055 test -z "$as_dir" && as_dir
=.
3056 for ac_exec_ext
in '' $ac_executable_extensions; do
3057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3058 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3069 if test -n "$CC"; then
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3071 $as_echo "$CC" >&6; }
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3074 $as_echo "no" >&6; }
3079 if test -z "$ac_cv_prog_CC"; then
3081 # Extract the first word of "gcc", so it can be a program name with args.
3082 set dummy gcc
; ac_word
=$2
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3084 $as_echo_n "checking for $ac_word... " >&6; }
3085 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3086 $as_echo_n "(cached) " >&6
3088 if test -n "$ac_ct_CC"; then
3089 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3091 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3095 test -z "$as_dir" && as_dir
=.
3096 for ac_exec_ext
in '' $ac_executable_extensions; do
3097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3098 ac_cv_prog_ac_ct_CC
="gcc"
3099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3108 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3109 if test -n "$ac_ct_CC"; then
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3111 $as_echo "$ac_ct_CC" >&6; }
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3114 $as_echo "no" >&6; }
3117 if test "x$ac_ct_CC" = x
; then
3120 case $cross_compiling:$ac_tool_warned in
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3123 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3124 ac_tool_warned
=yes ;;
3132 if test -z "$CC"; then
3133 if test -n "$ac_tool_prefix"; then
3134 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3135 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3137 $as_echo_n "checking for $ac_word... " >&6; }
3138 if test "${ac_cv_prog_CC+set}" = set; then :
3139 $as_echo_n "(cached) " >&6
3141 if test -n "$CC"; then
3142 ac_cv_prog_CC
="$CC" # Let the user override the test.
3144 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3148 test -z "$as_dir" && as_dir
=.
3149 for ac_exec_ext
in '' $ac_executable_extensions; do
3150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3151 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3162 if test -n "$CC"; then
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3164 $as_echo "$CC" >&6; }
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3167 $as_echo "no" >&6; }
3173 if test -z "$CC"; then
3174 # Extract the first word of "cc", so it can be a program name with args.
3175 set dummy cc
; ac_word
=$2
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3177 $as_echo_n "checking for $ac_word... " >&6; }
3178 if test "${ac_cv_prog_CC+set}" = set; then :
3179 $as_echo_n "(cached) " >&6
3181 if test -n "$CC"; then
3182 ac_cv_prog_CC
="$CC" # Let the user override the test.
3185 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3189 test -z "$as_dir" && as_dir
=.
3190 for ac_exec_ext
in '' $ac_executable_extensions; do
3191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3192 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3193 ac_prog_rejected
=yes
3197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3204 if test $ac_prog_rejected = yes; then
3205 # We found a bogon in the path, so make sure we never use it.
3206 set dummy
$ac_cv_prog_CC
3208 if test $# != 0; then
3209 # We chose a different compiler from the bogus one.
3210 # However, it has the same basename, so the bogon will be chosen
3211 # first if we set CC to just the basename; use the full file name.
3213 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3219 if test -n "$CC"; then
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3221 $as_echo "$CC" >&6; }
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3224 $as_echo "no" >&6; }
3229 if test -z "$CC"; then
3230 if test -n "$ac_tool_prefix"; then
3231 for ac_prog
in cl.exe
3233 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3234 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3236 $as_echo_n "checking for $ac_word... " >&6; }
3237 if test "${ac_cv_prog_CC+set}" = set; then :
3238 $as_echo_n "(cached) " >&6
3240 if test -n "$CC"; then
3241 ac_cv_prog_CC
="$CC" # Let the user override the test.
3243 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3247 test -z "$as_dir" && as_dir
=.
3248 for ac_exec_ext
in '' $ac_executable_extensions; do
3249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3250 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3261 if test -n "$CC"; then
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3263 $as_echo "$CC" >&6; }
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3266 $as_echo "no" >&6; }
3270 test -n "$CC" && break
3273 if test -z "$CC"; then
3275 for ac_prog
in cl.exe
3277 # Extract the first word of "$ac_prog", so it can be a program name with args.
3278 set dummy
$ac_prog; ac_word
=$2
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3280 $as_echo_n "checking for $ac_word... " >&6; }
3281 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3282 $as_echo_n "(cached) " >&6
3284 if test -n "$ac_ct_CC"; then
3285 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3287 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3291 test -z "$as_dir" && as_dir
=.
3292 for ac_exec_ext
in '' $ac_executable_extensions; do
3293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3294 ac_cv_prog_ac_ct_CC
="$ac_prog"
3295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3304 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3305 if test -n "$ac_ct_CC"; then
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3307 $as_echo "$ac_ct_CC" >&6; }
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3310 $as_echo "no" >&6; }
3314 test -n "$ac_ct_CC" && break
3317 if test "x$ac_ct_CC" = x
; then
3320 case $cross_compiling:$ac_tool_warned in
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3323 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3324 ac_tool_warned
=yes ;;
3333 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3334 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3335 as_fn_error
"no acceptable C compiler found in \$PATH
3336 See \`config.log' for more details." "$LINENO" 5; }
3338 # Provide some information about the compiler.
3339 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3342 for ac_option
in --version -v -V -qversion; do
3343 { { ac_try
="$ac_compiler $ac_option >&5"
3345 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3346 *) ac_try_echo=$ac_try;;
3348 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3349 $as_echo "$ac_try_echo"; } >&5
3350 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3352 if test -s conftest.err; then
3354 ... rest of stderr output deleted ...
3355 10q' conftest.err >conftest.er1
3356 cat conftest.er1 >&5
3358 rm -f conftest.er1 conftest.err
3359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3360 test $ac_status = 0; }
3363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3364 /* end confdefs.h. */
3374 ac_clean_files_save=$ac_clean_files
3375 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3376 # Try to create an executable without -o first, disregard a.out.
3377 # It will help us diagnose broken compilers, and finding out an intuition
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3380 $as_echo_n "checking whether the C compiler works... " >&6; }
3381 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3383 # The possible output files:
3384 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3387 for ac_file in $ac_files
3390 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3391 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3396 if { { ac_try="$ac_link_default"
3398 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3399 *) ac_try_echo
=$ac_try;;
3401 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3402 $as_echo "$ac_try_echo"; } >&5
3403 (eval "$ac_link_default") 2>&5
3405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3406 test $ac_status = 0; }; then :
3407 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3408 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3409 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3410 # so that the user can short-circuit this test for compilers unknown to
3412 for ac_file
in $ac_files ''
3414 test -f "$ac_file" ||
continue
3416 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3419 # We found the default executable, but exeext='' is most
3423 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3425 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3427 # We set ac_cv_exeext here because the later test for it is not
3428 # safe: cross compilers may not add the suffix if given an `-o'
3429 # argument, so we may need to know it at that point already.
3430 # Even if this section looks crufty: it has the advantage of
3437 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3442 if test -z "$ac_file"; then :
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3444 $as_echo "no" >&6; }
3445 $as_echo "$as_me: failed program was:" >&5
3446 sed 's/^/| /' conftest.
$ac_ext >&5
3448 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3449 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3450 { as_fn_set_status
77
3451 as_fn_error
"C compiler cannot create executables
3452 See \`config.log' for more details." "$LINENO" 5; }; }
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3455 $as_echo "yes" >&6; }
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3458 $as_echo_n "checking for C compiler default output file name... " >&6; }
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3460 $as_echo "$ac_file" >&6; }
3461 ac_exeext
=$ac_cv_exeext
3463 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3464 ac_clean_files
=$ac_clean_files_save
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3466 $as_echo_n "checking for suffix of executables... " >&6; }
3467 if { { ac_try
="$ac_link"
3469 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3470 *) ac_try_echo=$ac_try;;
3472 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3473 $as_echo "$ac_try_echo"; } >&5
3474 (eval "$ac_link") 2>&5
3476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3477 test $ac_status = 0; }; then :
3478 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3479 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3480 # work properly (i.e., refer to `conftest.exe'), while it won't with
3482 for ac_file
in conftest.exe conftest conftest.
*; do
3483 test -f "$ac_file" ||
continue
3485 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3486 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3492 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3493 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3494 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3495 See \`config.log' for more details." "$LINENO" 5; }
3497 rm -f conftest conftest
$ac_cv_exeext
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3499 $as_echo "$ac_cv_exeext" >&6; }
3501 rm -f conftest.
$ac_ext
3502 EXEEXT
=$ac_cv_exeext
3504 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3505 /* end confdefs.h. */
3510 FILE *f = fopen ("conftest.out", "w");
3511 return ferror (f) || fclose (f) != 0;
3517 ac_clean_files
="$ac_clean_files conftest.out"
3518 # Check that the compiler produces executables we can run. If not, either
3519 # the compiler is broken, or we cross compile.
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3521 $as_echo_n "checking whether we are cross compiling... " >&6; }
3522 if test "$cross_compiling" != yes; then
3523 { { ac_try
="$ac_link"
3525 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3526 *) ac_try_echo=$ac_try;;
3528 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3529 $as_echo "$ac_try_echo"; } >&5
3530 (eval "$ac_link") 2>&5
3532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3533 test $ac_status = 0; }
3534 if { ac_try='./conftest$ac_cv_exeext'
3535 { { case "(($ac_try" in
3536 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3537 *) ac_try_echo
=$ac_try;;
3539 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3540 $as_echo "$ac_try_echo"; } >&5
3541 (eval "$ac_try") 2>&5
3543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3544 test $ac_status = 0; }; }; then
3547 if test "$cross_compiling" = maybe
; then
3550 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3551 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3552 as_fn_error
"cannot run C compiled programs.
3553 If you meant to cross compile, use \`--host'.
3554 See \`config.log' for more details." "$LINENO" 5; }
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3559 $as_echo "$cross_compiling" >&6; }
3561 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3562 ac_clean_files
=$ac_clean_files_save
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3564 $as_echo_n "checking for suffix of object files... " >&6; }
3565 if test "${ac_cv_objext+set}" = set; then :
3566 $as_echo_n "(cached) " >&6
3568 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3569 /* end confdefs.h. */
3579 rm -f conftest.o conftest.obj
3580 if { { ac_try
="$ac_compile"
3582 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3583 *) ac_try_echo=$ac_try;;
3585 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3586 $as_echo "$ac_try_echo"; } >&5
3587 (eval "$ac_compile") 2>&5
3589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3590 test $ac_status = 0; }; then :
3591 for ac_file in conftest.o conftest.obj conftest.*; do
3592 test -f "$ac_file" || continue;
3594 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3595 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3600 $as_echo "$as_me: failed program was:" >&5
3601 sed 's/^/| /' conftest.$ac_ext >&5
3603 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3604 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3605 as_fn_error "cannot compute suffix of object files
: cannot compile
3606 See \
`config.log' for more details." "$LINENO" 5; }
3608 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3611 $as_echo "$ac_cv_objext" >&6; }
3612 OBJEXT=$ac_cv_objext
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3615 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3616 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3617 $as_echo_n "(cached) " >&6
3619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3620 /* end confdefs.h. */
3633 if ac_fn_c_try_compile "$LINENO"; then :
3638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3639 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3643 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3644 if test $ac_compiler_gnu = yes; then
3649 ac_test_CFLAGS=${CFLAGS+set}
3650 ac_save_CFLAGS=$CFLAGS
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3652 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3653 if test "${ac_cv_prog_cc_g+set}" = set; then :
3654 $as_echo_n "(cached) " >&6
3656 ac_save_c_werror_flag=$ac_c_werror_flag
3657 ac_c_werror_flag=yes
3660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3661 /* end confdefs.h. */
3671 if ac_fn_c_try_compile "$LINENO"; then :
3675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3676 /* end confdefs.h. */
3686 if ac_fn_c_try_compile "$LINENO"; then :
3689 ac_c_werror_flag=$ac_save_c_werror_flag
3691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3692 /* end confdefs.h. */
3702 if ac_fn_c_try_compile "$LINENO"; then :
3705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3710 ac_c_werror_flag=$ac_save_c_werror_flag
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3713 $as_echo "$ac_cv_prog_cc_g" >&6; }
3714 if test "$ac_test_CFLAGS" = set; then
3715 CFLAGS=$ac_save_CFLAGS
3716 elif test $ac_cv_prog_cc_g = yes; then
3717 if test "$GCC" = yes; then
3723 if test "$GCC" = yes; then
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3730 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3731 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3732 $as_echo_n "(cached) " >&6
3734 ac_cv_prog_cc_c89=no
3736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3737 /* end confdefs.h. */
3740 #include <sys/types.h>
3741 #include <sys/stat.h>
3742 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3743 struct buf { int x; };
3744 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3745 static char *e (p, i)
3751 static char *f (char * (*g) (char **, int), char **p, ...)
3756 s = g (p, va_arg (v,int));
3761 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3762 function prototypes and stuff, but not '\xHH' hex character constants.
3763 These don't provoke an error unfortunately, instead are silently treated
3764 as 'x'. The following induces an error, until -std is added to get
3765 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3766 array size at least. It's necessary to write '\x00'==0 to get something
3767 that's true only with -std. */
3768 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3770 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3771 inside strings and character constants. */
3773 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3775 int test (int i, double x);
3776 struct s1 {int (*f) (int a);};
3777 struct s2 {int (*f) (double a);};
3778 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3784 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3789 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3790 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3792 CC="$ac_save_CC $ac_arg"
3793 if ac_fn_c_try_compile "$LINENO"; then :
3794 ac_cv_prog_cc_c89=$ac_arg
3796 rm -f core conftest.err conftest.$ac_objext
3797 test "x$ac_cv_prog_cc_c89" != "xno" && break
3799 rm -f conftest.$ac_ext
3804 case "x$ac_cv_prog_cc_c89" in
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3807 $as_echo "none needed" >&6; } ;;
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3810 $as_echo "unsupported" >&6; } ;;
3812 CC="$CC $ac_cv_prog_cc_c89"
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3814 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3816 if test "x$ac_cv_prog_cc_c89" != xno; then :
3821 ac_cpp='$CPP $CPPFLAGS'
3822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3826 depcc="$CC" am_compiler_list=
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3829 $as_echo_n "checking dependency style of $depcc... " >&6; }
3830 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3831 $as_echo_n "(cached) " >&6
3833 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3834 # We make a subdir and do the tests there. Otherwise we can end up
3835 # making bogus files that we don't know about and never remove. For
3836 # instance it was reported that on HP-UX the gcc test will end up
3837 # making a dummy file named `D
' -- because `-MD' means
`put the output
3840 # Copy depcomp to subdir because otherwise we won't find it if we're
3841 # using a relative directory.
3842 cp "$am_depcomp" conftest.dir
3844 # We will build objects and dependencies in a subdirectory because
3845 # it helps to detect inapplicable dependency modes. For instance
3846 # both Tru64's cc and ICC support -MD to output dependencies as a
3847 # side effect of compilation, but ICC will put the dependencies in
3848 # the current directory while Tru64 will put them in the object
3852 am_cv_CC_dependencies_compiler_type=none
3853 if test "$am_compiler_list" = ""; then
3854 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
3857 case " $depcc " in #(
3858 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3861 for depmode in $am_compiler_list; do
3862 # Setup a source with many dependencies, because some compilers
3863 # like to wrap large dependency lists on column 80 (with \), and
3864 # we should not choose a depcomp mode which is confused by this.
3866 # We need to recreate these files for each test, as the compiler may
3867 # overwrite some of them when testing with obscure command lines.
3868 # This happens at least with the AIX C compiler.
3870 for i in 1 2 3 4 5 6; do
3871 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3872 # Using `: > sub
/conftst
$i.h
' creates only sub/conftst1.h with
3873 # Solaris 8's
{/usr
,}/bin
/sh.
3874 touch sub
/conftst
$i.h
3876 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3878 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3879 # mode. It turns out that the SunPro C++ compiler does not properly
3880 # handle `-M -o', and we need to detect this. Also, some Intel
3881 # versions had trouble with output in subdirs
3882 am__obj
=sub
/conftest.
${OBJEXT-o}
3883 am__minus_obj
="-o $am__obj"
3886 # This depmode causes a compiler race in universal mode.
3887 test "$am__universal" = false ||
continue
3890 # after this tag, mechanisms are not by side-effect, so they'll
3891 # only be used when explicitly requested
3892 if test "x$enable_dependency_tracking" = xyes
; then
3898 msvisualcpp | msvcmsys
)
3899 # This compiler won't grok `-c -o', but also, the minuso test has
3900 # not run yet. These depmodes are late enough in the game, and
3901 # so weak that their functioning should not be impacted.
3902 am__obj
=conftest.
${OBJEXT-o}
3907 if depmode
=$depmode \
3908 source=sub
/conftest.c object
=$am__obj \
3909 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
3910 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
3911 >/dev
/null
2>conftest.err
&&
3912 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
3913 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
3914 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
3915 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
3916 # icc doesn't choke on unknown options, it will just issue warnings
3917 # or remarks (even with -Werror). So we grep stderr for any message
3918 # that says an option was ignored or not supported.
3919 # When given -MP, icc 7.0 and 7.1 complain thusly:
3920 # icc: Command line warning: ignoring option '-M'; no argument required
3921 # The diagnosis changed in icc 8.0:
3922 # icc: Command line remark: option '-MP' not supported
3923 if (grep 'ignoring option' conftest.err ||
3924 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
3925 am_cv_CC_dependencies_compiler_type
=$depmode
3934 am_cv_CC_dependencies_compiler_type
=none
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3939 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3940 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
3943 test "x$enable_dependency_tracking" != xno \
3944 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
3946 am__fastdepCC_FALSE
='#'
3948 am__fastdepCC_TRUE
='#'
3949 am__fastdepCC_FALSE
=
3955 ac_cpp
='$CPP $CPPFLAGS'
3956 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3957 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3958 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3960 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3961 # On Suns, sometimes $CPP names a directory.
3962 if test -n "$CPP" && test -d "$CPP"; then
3965 if test -z "$CPP"; then
3966 if test "${ac_cv_prog_CPP+set}" = set; then :
3967 $as_echo_n "(cached) " >&6
3969 # Double quotes because CPP needs to be expanded
3970 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3973 for ac_c_preproc_warn_flag
in '' yes
3975 # Use a header file that comes with gcc, so configuring glibc
3976 # with a fresh cross-compiler works.
3977 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3978 # <limits.h> exists even on freestanding compilers.
3979 # On the NeXT, cc -E runs the code through the compiler's parser,
3980 # not just through cpp. "Syntax error" is here to catch this case.
3981 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3982 /* end confdefs.h. */
3984 # include <limits.h>
3986 # include <assert.h>
3990 if ac_fn_c_try_cpp
"$LINENO"; then :
3993 # Broken: fails on valid input.
3996 rm -f conftest.err conftest.
$ac_ext
3998 # OK, works on sane cases. Now check whether nonexistent headers
3999 # can be detected and how.
4000 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4001 /* end confdefs.h. */
4002 #include <ac_nonexistent.h>
4004 if ac_fn_c_try_cpp
"$LINENO"; then :
4005 # Broken: success on invalid input.
4008 # Passes both tests.
4012 rm -f conftest.err conftest.
$ac_ext
4015 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4016 rm -f conftest.err conftest.
$ac_ext
4017 if $ac_preproc_ok; then :
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4030 $as_echo "$CPP" >&6; }
4032 for ac_c_preproc_warn_flag
in '' yes
4034 # Use a header file that comes with gcc, so configuring glibc
4035 # with a fresh cross-compiler works.
4036 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4037 # <limits.h> exists even on freestanding compilers.
4038 # On the NeXT, cc -E runs the code through the compiler's parser,
4039 # not just through cpp. "Syntax error" is here to catch this case.
4040 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4041 /* end confdefs.h. */
4043 # include <limits.h>
4045 # include <assert.h>
4049 if ac_fn_c_try_cpp
"$LINENO"; then :
4052 # Broken: fails on valid input.
4055 rm -f conftest.err conftest.
$ac_ext
4057 # OK, works on sane cases. Now check whether nonexistent headers
4058 # can be detected and how.
4059 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4060 /* end confdefs.h. */
4061 #include <ac_nonexistent.h>
4063 if ac_fn_c_try_cpp
"$LINENO"; then :
4064 # Broken: success on invalid input.
4067 # Passes both tests.
4071 rm -f conftest.err conftest.
$ac_ext
4074 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4075 rm -f conftest.err conftest.
$ac_ext
4076 if $ac_preproc_ok; then :
4079 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4080 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4081 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
4082 See \`config.log' for more details." "$LINENO" 5; }
4086 ac_cpp
='$CPP $CPPFLAGS'
4087 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4088 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4089 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4093 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4094 if test "${ac_cv_path_GREP+set}" = set; then :
4095 $as_echo_n "(cached) " >&6
4097 if test -z "$GREP"; then
4098 ac_path_GREP_found
=false
4099 # Loop through the user's path and test for each of PROGNAME-LIST
4100 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4101 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4104 test -z "$as_dir" && as_dir
=.
4105 for ac_prog
in grep ggrep
; do
4106 for ac_exec_ext
in '' $ac_executable_extensions; do
4107 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4108 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4109 # Check for GNU ac_path_GREP and select it if it is found.
4110 # Check for GNU $ac_path_GREP
4111 case `"$ac_path_GREP" --version 2>&1` in
4113 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4116 $as_echo_n 0123456789 >"conftest.in"
4119 cat "conftest.in" "conftest.in" >"conftest.tmp"
4120 mv "conftest.tmp" "conftest.in"
4121 cp "conftest.in" "conftest.nl"
4122 $as_echo 'GREP' >> "conftest.nl"
4123 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4124 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4125 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4126 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4127 # Best one so far, save it but keep looking for a better one
4128 ac_cv_path_GREP
="$ac_path_GREP"
4129 ac_path_GREP_max
=$ac_count
4131 # 10*(2^10) chars as input seems more than enough
4132 test $ac_count -gt 10 && break
4134 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4137 $ac_path_GREP_found && break 3
4142 if test -z "$ac_cv_path_GREP"; then
4143 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4146 ac_cv_path_GREP
=$GREP
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4151 $as_echo "$ac_cv_path_GREP" >&6; }
4152 GREP
="$ac_cv_path_GREP"
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4156 $as_echo_n "checking for egrep... " >&6; }
4157 if test "${ac_cv_path_EGREP+set}" = set; then :
4158 $as_echo_n "(cached) " >&6
4160 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4161 then ac_cv_path_EGREP
="$GREP -E"
4163 if test -z "$EGREP"; then
4164 ac_path_EGREP_found
=false
4165 # Loop through the user's path and test for each of PROGNAME-LIST
4166 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4167 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4170 test -z "$as_dir" && as_dir
=.
4171 for ac_prog
in egrep; do
4172 for ac_exec_ext
in '' $ac_executable_extensions; do
4173 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4174 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4175 # Check for GNU ac_path_EGREP and select it if it is found.
4176 # Check for GNU $ac_path_EGREP
4177 case `"$ac_path_EGREP" --version 2>&1` in
4179 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4182 $as_echo_n 0123456789 >"conftest.in"
4185 cat "conftest.in" "conftest.in" >"conftest.tmp"
4186 mv "conftest.tmp" "conftest.in"
4187 cp "conftest.in" "conftest.nl"
4188 $as_echo 'EGREP' >> "conftest.nl"
4189 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4190 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4191 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4192 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4193 # Best one so far, save it but keep looking for a better one
4194 ac_cv_path_EGREP
="$ac_path_EGREP"
4195 ac_path_EGREP_max
=$ac_count
4197 # 10*(2^10) chars as input seems more than enough
4198 test $ac_count -gt 10 && break
4200 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4203 $ac_path_EGREP_found && break 3
4208 if test -z "$ac_cv_path_EGREP"; then
4209 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4212 ac_cv_path_EGREP
=$EGREP
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4218 $as_echo "$ac_cv_path_EGREP" >&6; }
4219 EGREP
="$ac_cv_path_EGREP"
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4223 $as_echo_n "checking for ANSI C header files... " >&6; }
4224 if test "${ac_cv_header_stdc+set}" = set; then :
4225 $as_echo_n "(cached) " >&6
4227 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4228 /* end confdefs.h. */
4242 if ac_fn_c_try_compile
"$LINENO"; then :
4243 ac_cv_header_stdc
=yes
4245 ac_cv_header_stdc
=no
4247 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4249 if test $ac_cv_header_stdc = yes; then
4250 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4251 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4252 /* end confdefs.h. */
4256 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4257 $EGREP "memchr" >/dev
/null
2>&1; then :
4260 ac_cv_header_stdc
=no
4266 if test $ac_cv_header_stdc = yes; then
4267 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4268 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4269 /* end confdefs.h. */
4273 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4274 $EGREP "free" >/dev
/null
2>&1; then :
4277 ac_cv_header_stdc
=no
4283 if test $ac_cv_header_stdc = yes; then
4284 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4285 if test "$cross_compiling" = yes; then :
4288 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4289 /* end confdefs.h. */
4292 #if ((' ' & 0x0FF) == 0x020)
4293 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4294 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4296 # define ISLOWER(c) \
4297 (('a' <= (c) && (c) <= 'i') \
4298 || ('j' <= (c) && (c) <= 'r') \
4299 || ('s' <= (c) && (c) <= 'z'))
4300 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4303 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4308 for (i = 0; i < 256; i++)
4309 if (XOR (islower (i), ISLOWER (i))
4310 || toupper (i) != TOUPPER (i))
4315 if ac_fn_c_try_run
"$LINENO"; then :
4318 ac_cv_header_stdc
=no
4320 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4321 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4327 $as_echo "$ac_cv_header_stdc" >&6; }
4328 if test $ac_cv_header_stdc = yes; then
4330 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4334 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4335 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4336 inttypes.h stdint.h unistd.h
4338 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4339 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4341 eval as_val
=\$
$as_ac_Header
4342 if test "x$as_val" = x
""yes; then :
4343 cat >>confdefs.h
<<_ACEOF
4344 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4353 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4354 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
4361 if test "$MINIX" = yes; then
4363 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4366 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4369 $as_echo "#define _MINIX 1" >>confdefs.h
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4375 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4376 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4377 $as_echo_n "(cached) " >&6
4379 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4380 /* end confdefs.h. */
4382 # define __EXTENSIONS__ 1
4383 $ac_includes_default
4392 if ac_fn_c_try_compile
"$LINENO"; then :
4393 ac_cv_safe_to_define___extensions__
=yes
4395 ac_cv_safe_to_define___extensions__
=no
4397 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4400 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4401 test $ac_cv_safe_to_define___extensions__ = yes &&
4402 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4404 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4406 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4408 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4410 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
4417 $as_echo_n "checking whether NLS is requested... " >&6; }
4418 # Check whether --enable-nls was given.
4419 if test "${enable_nls+set}" = set; then :
4420 enableval
=$enable_nls; USE_NLS
=$enableval
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
4426 $as_echo "$USE_NLS" >&6; }
4431 GETTEXT_MACRO_VERSION
=0.17
4436 # Prepare PATH_SEPARATOR.
4437 # The user is always right.
4438 if test "${PATH_SEPARATOR+set}" != set; then
4439 echo "#! /bin/sh" >conf$$.sh
4440 echo "exit 0" >>conf$$.sh
4442 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
4450 # Find out how to test for executable files. Don't use a zero-byte file,
4451 # as systems may use methods other than mode bits to determine executability.
4452 cat >conf$$.
file <<_ASEOF
4456 chmod +x conf$$.
file
4457 if test -x conf$$.
file >/dev
/null
2>&1; then
4458 ac_executable_p
="test -x"
4460 ac_executable_p
="test -f"
4464 # Extract the first word of "msgfmt", so it can be a program name with args.
4465 set dummy msgfmt
; ac_word
=$2
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4467 $as_echo_n "checking for $ac_word... " >&6; }
4468 if test "${ac_cv_path_MSGFMT+set}" = set; then :
4469 $as_echo_n "(cached) " >&6
4473 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
4476 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
4477 for ac_dir
in $PATH; do
4479 test -z "$ac_dir" && ac_dir
=.
4480 for ac_exec_ext
in '' $ac_executable_extensions; do
4481 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4482 echo "$as_me: trying $ac_dir/$ac_word..." >&5
4483 if $ac_dir/$ac_word --statistics /dev
/null
>&5 2>&1 &&
4484 (if $ac_dir/$ac_word --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
4485 ac_cv_path_MSGFMT
="$ac_dir/$ac_word$ac_exec_ext"
4492 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
4496 MSGFMT
="$ac_cv_path_MSGFMT"
4497 if test "$MSGFMT" != ":"; then
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
4499 $as_echo "$MSGFMT" >&6; }
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4502 $as_echo "no" >&6; }
4505 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4506 set dummy gmsgfmt
; ac_word
=$2
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4508 $as_echo_n "checking for $ac_word... " >&6; }
4509 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
4510 $as_echo_n "(cached) " >&6
4514 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
4517 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4521 test -z "$as_dir" && as_dir
=.
4522 for ac_exec_ext
in '' $ac_executable_extensions; do
4523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4524 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
4525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4532 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
4536 GMSGFMT
=$ac_cv_path_GMSGFMT
4537 if test -n "$GMSGFMT"; then
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
4539 $as_echo "$GMSGFMT" >&6; }
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4542 $as_echo "no" >&6; }
4547 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4548 '' |
0.
[0-9] |
0.
[0-9].
* |
0.1[0-4] |
0.1[0-4].
*) MSGFMT_015
=: ;;
4549 *) MSGFMT_015
=$MSGFMT ;;
4552 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4553 '' |
0.
[0-9] |
0.
[0-9].
* |
0.1[0-4] |
0.1[0-4].
*) GMSGFMT_015
=: ;;
4554 *) GMSGFMT_015
=$GMSGFMT ;;
4559 # Prepare PATH_SEPARATOR.
4560 # The user is always right.
4561 if test "${PATH_SEPARATOR+set}" != set; then
4562 echo "#! /bin/sh" >conf$$.sh
4563 echo "exit 0" >>conf$$.sh
4565 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
4573 # Find out how to test for executable files. Don't use a zero-byte file,
4574 # as systems may use methods other than mode bits to determine executability.
4575 cat >conf$$.
file <<_ASEOF
4579 chmod +x conf$$.
file
4580 if test -x conf$$.
file >/dev
/null
2>&1; then
4581 ac_executable_p
="test -x"
4583 ac_executable_p
="test -f"
4587 # Extract the first word of "xgettext", so it can be a program name with args.
4588 set dummy xgettext
; ac_word
=$2
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4590 $as_echo_n "checking for $ac_word... " >&6; }
4591 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
4592 $as_echo_n "(cached) " >&6
4596 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
4599 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
4600 for ac_dir
in $PATH; do
4602 test -z "$ac_dir" && ac_dir
=.
4603 for ac_exec_ext
in '' $ac_executable_extensions; do
4604 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4605 echo "$as_me: trying $ac_dir/$ac_word..." >&5
4606 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev
/null
>&5 2>&1 &&
4607 (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
4608 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word$ac_exec_ext"
4615 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
4619 XGETTEXT
="$ac_cv_path_XGETTEXT"
4620 if test "$XGETTEXT" != ":"; then
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
4622 $as_echo "$XGETTEXT" >&6; }
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4625 $as_echo "no" >&6; }
4630 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4631 '' |
0.
[0-9] |
0.
[0-9].
* |
0.1[0-4] |
0.1[0-4].
*) XGETTEXT_015
=: ;;
4632 *) XGETTEXT_015
=$XGETTEXT ;;
4637 # Prepare PATH_SEPARATOR.
4638 # The user is always right.
4639 if test "${PATH_SEPARATOR+set}" != set; then
4640 echo "#! /bin/sh" >conf$$.sh
4641 echo "exit 0" >>conf$$.sh
4643 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
4651 # Find out how to test for executable files. Don't use a zero-byte file,
4652 # as systems may use methods other than mode bits to determine executability.
4653 cat >conf$$.
file <<_ASEOF
4657 chmod +x conf$$.
file
4658 if test -x conf$$.
file >/dev
/null
2>&1; then
4659 ac_executable_p
="test -x"
4661 ac_executable_p
="test -f"
4665 # Extract the first word of "msgmerge", so it can be a program name with args.
4666 set dummy msgmerge
; ac_word
=$2
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4668 $as_echo_n "checking for $ac_word... " >&6; }
4669 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
4670 $as_echo_n "(cached) " >&6
4674 ac_cv_path_MSGMERGE
="$MSGMERGE" # Let the user override the test with a path.
4677 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
4678 for ac_dir
in $PATH; do
4680 test -z "$ac_dir" && ac_dir
=.
4681 for ac_exec_ext
in '' $ac_executable_extensions; do
4682 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4683 echo "$as_me: trying $ac_dir/$ac_word..." >&5
4684 if $ac_dir/$ac_word --update -q /dev
/null
/dev
/null
>&5 2>&1; then
4685 ac_cv_path_MSGMERGE
="$ac_dir/$ac_word$ac_exec_ext"
4692 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE
=":"
4696 MSGMERGE
="$ac_cv_path_MSGMERGE"
4697 if test "$MSGMERGE" != ":"; then
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
4699 $as_echo "$MSGMERGE" >&6; }
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4702 $as_echo "no" >&6; }
4706 test -n "$localedir" || localedir
='${datadir}/locale'
4709 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS
=
4712 ac_config_commands
="$ac_config_commands po-directories"
4715 # Make sure we can run config.sub.
4716 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4717 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4720 $as_echo_n "checking build system type... " >&6; }
4721 if test "${ac_cv_build+set}" = set; then :
4722 $as_echo_n "(cached) " >&6
4724 ac_build_alias
=$build_alias
4725 test "x$ac_build_alias" = x
&&
4726 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4727 test "x$ac_build_alias" = x
&&
4728 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
4729 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4730 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4734 $as_echo "$ac_cv_build" >&6; }
4735 case $ac_cv_build in
4737 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
4740 ac_save_IFS
=$IFS; IFS
='-'
4746 # Remember, the first character of IFS is used to create $*,
4747 # except with old shells:
4750 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4754 $as_echo_n "checking host system type... " >&6; }
4755 if test "${ac_cv_host+set}" = set; then :
4756 $as_echo_n "(cached) " >&6
4758 if test "x$host_alias" = x
; then
4759 ac_cv_host
=$ac_cv_build
4761 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4762 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4767 $as_echo "$ac_cv_host" >&6; }
4770 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
4773 ac_save_IFS
=$IFS; IFS
='-'
4779 # Remember, the first character of IFS is used to create $*,
4780 # except with old shells:
4783 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
4788 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
4789 if test "${ac_cv_gnu_library_2+set}" = set; then :
4790 $as_echo_n "(cached) " >&6
4792 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4793 /* end confdefs.h. */
4795 #include <features.h>
4796 #ifdef __GNU_LIBRARY__
4797 #if (__GLIBC__ >= 2)
4803 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4804 $EGREP "Lucky GNU user" >/dev
/null
2>&1; then :
4805 ac_cv_gnu_library_2
=yes
4807 ac_cv_gnu_library_2
=no
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
4815 $as_echo "$ac_cv_gnu_library_2" >&6; }
4817 GLIBC2
="$ac_cv_gnu_library_2"
4820 if test -n "$ac_tool_prefix"; then
4821 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4822 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4824 $as_echo_n "checking for $ac_word... " >&6; }
4825 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4826 $as_echo_n "(cached) " >&6
4828 if test -n "$RANLIB"; then
4829 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4831 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4835 test -z "$as_dir" && as_dir
=.
4836 for ac_exec_ext
in '' $ac_executable_extensions; do
4837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4838 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4848 RANLIB
=$ac_cv_prog_RANLIB
4849 if test -n "$RANLIB"; then
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4851 $as_echo "$RANLIB" >&6; }
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4854 $as_echo "no" >&6; }
4859 if test -z "$ac_cv_prog_RANLIB"; then
4860 ac_ct_RANLIB
=$RANLIB
4861 # Extract the first word of "ranlib", so it can be a program name with args.
4862 set dummy ranlib
; ac_word
=$2
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4864 $as_echo_n "checking for $ac_word... " >&6; }
4865 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4866 $as_echo_n "(cached) " >&6
4868 if test -n "$ac_ct_RANLIB"; then
4869 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4871 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4875 test -z "$as_dir" && as_dir
=.
4876 for ac_exec_ext
in '' $ac_executable_extensions; do
4877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4878 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4888 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4889 if test -n "$ac_ct_RANLIB"; then
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4891 $as_echo "$ac_ct_RANLIB" >&6; }
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4894 $as_echo "no" >&6; }
4897 if test "x$ac_ct_RANLIB" = x
; then
4900 case $cross_compiling:$ac_tool_warned in
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4903 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4904 ac_tool_warned
=yes ;;
4906 RANLIB
=$ac_ct_RANLIB
4909 RANLIB
="$ac_cv_prog_RANLIB"
4916 if test -n "$GCC"; then
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
4918 $as_echo_n "checking for simple visibility declarations... " >&6; }
4919 if test "${gl_cv_cc_visibility+set}" = set; then :
4920 $as_echo_n "(cached) " >&6
4923 gl_save_CFLAGS
="$CFLAGS"
4924 CFLAGS
="$CFLAGS -fvisibility=hidden"
4925 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4926 /* end confdefs.h. */
4927 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
4928 extern __attribute__((__visibility__("default"))) int exportedvar;
4929 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
4930 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
4939 if ac_fn_c_try_compile
"$LINENO"; then :
4940 gl_cv_cc_visibility
=yes
4942 gl_cv_cc_visibility
=no
4944 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4945 CFLAGS
="$gl_save_CFLAGS"
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
4949 $as_echo "$gl_cv_cc_visibility" >&6; }
4950 if test $gl_cv_cc_visibility = yes; then
4951 CFLAG_VISIBILITY
="-fvisibility=hidden"
4958 cat >>confdefs.h
<<_ACEOF
4959 #define HAVE_VISIBILITY $HAVE_VISIBILITY
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4964 $as_echo_n "checking for inline... " >&6; }
4965 if test "${ac_cv_c_inline+set}" = set; then :
4966 $as_echo_n "(cached) " >&6
4969 for ac_kw
in inline __inline__ __inline
; do
4970 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4971 /* end confdefs.h. */
4974 static $ac_kw foo_t static_foo () {return 0; }
4975 $ac_kw foo_t foo () {return 0; }
4979 if ac_fn_c_try_compile
"$LINENO"; then :
4980 ac_cv_c_inline
=$ac_kw
4982 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4983 test "$ac_cv_c_inline" != no
&& break
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4988 $as_echo "$ac_cv_c_inline" >&6; }
4990 case $ac_cv_c_inline in
4993 case $ac_cv_c_inline in
4995 *) ac_val
=$ac_cv_c_inline;;
4997 cat >>confdefs.h
<<_ACEOF
4999 #define inline $ac_val
5005 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5006 if test "x$ac_cv_type_size_t" = x
""yes; then :
5010 cat >>confdefs.h
<<_ACEOF
5011 #define size_t unsigned int
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
5018 $as_echo_n "checking for stdint.h... " >&6; }
5019 if test "${gl_cv_header_stdint_h+set}" = set; then :
5020 $as_echo_n "(cached) " >&6
5022 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5023 /* end confdefs.h. */
5024 #include <sys/types.h>
5029 uintmax_t i = (uintmax_t) -1; return !i;
5034 if ac_fn_c_try_compile
"$LINENO"; then :
5035 gl_cv_header_stdint_h
=yes
5037 gl_cv_header_stdint_h
=no
5039 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
5042 $as_echo "$gl_cv_header_stdint_h" >&6; }
5043 if test $gl_cv_header_stdint_h = yes; then
5045 cat >>confdefs.h
<<_ACEOF
5046 #define HAVE_STDINT_H_WITH_UINTMAX 1
5051 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5052 # for constant arguments. Useless!
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5054 $as_echo_n "checking for working alloca.h... " >&6; }
5055 if test "${ac_cv_working_alloca_h+set}" = set; then :
5056 $as_echo_n "(cached) " >&6
5058 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5059 /* end confdefs.h. */
5064 char *p = (char *) alloca (2 * sizeof (int));
5070 if ac_fn_c_try_link
"$LINENO"; then :
5071 ac_cv_working_alloca_h
=yes
5073 ac_cv_working_alloca_h
=no
5075 rm -f core conftest.err conftest.
$ac_objext \
5076 conftest
$ac_exeext conftest.
$ac_ext
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5079 $as_echo "$ac_cv_working_alloca_h" >&6; }
5080 if test $ac_cv_working_alloca_h = yes; then
5082 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5087 $as_echo_n "checking for alloca... " >&6; }
5088 if test "${ac_cv_func_alloca_works+set}" = set; then :
5089 $as_echo_n "(cached) " >&6
5091 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5092 /* end confdefs.h. */
5094 # define alloca __builtin_alloca
5097 # include <malloc.h>
5098 # define alloca _alloca
5100 # ifdef HAVE_ALLOCA_H
5101 # include <alloca.h>
5106 # ifndef alloca /* predefined by HP cc +Olibcalls */
5117 char *p = (char *) alloca (1);
5123 if ac_fn_c_try_link
"$LINENO"; then :
5124 ac_cv_func_alloca_works
=yes
5126 ac_cv_func_alloca_works
=no
5128 rm -f core conftest.err conftest.
$ac_objext \
5129 conftest
$ac_exeext conftest.
$ac_ext
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5132 $as_echo "$ac_cv_func_alloca_works" >&6; }
5134 if test $ac_cv_func_alloca_works = yes; then
5136 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
5139 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5140 # that cause trouble. Some versions do not even contain alloca or
5141 # contain a buggy version. If you still want to use their alloca,
5142 # use ar to extract alloca.o from them instead of compiling alloca.c.
5144 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
5146 $as_echo "#define C_ALLOCA 1" >>confdefs.h
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
5150 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
5151 if test "${ac_cv_os_cray+set}" = set; then :
5152 $as_echo_n "(cached) " >&6
5154 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5155 /* end confdefs.h. */
5156 #if defined CRAY && ! defined CRAY2
5163 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5164 $EGREP "webecray" >/dev
/null
2>&1; then :
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5173 $as_echo "$ac_cv_os_cray" >&6; }
5174 if test $ac_cv_os_cray = yes; then
5175 for ac_func
in _getb67 GETB67 getb67
; do
5176 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5177 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
5178 eval as_val
=\$
$as_ac_var
5179 if test "x$as_val" = x
""yes; then :
5181 cat >>confdefs.h
<<_ACEOF
5182 #define CRAY_STACKSEG_END $ac_func
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5192 $as_echo_n "checking stack direction for C alloca... " >&6; }
5193 if test "${ac_cv_c_stack_direction+set}" = set; then :
5194 $as_echo_n "(cached) " >&6
5196 if test "$cross_compiling" = yes; then :
5197 ac_cv_c_stack_direction
=0
5199 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5200 /* end confdefs.h. */
5201 $ac_includes_default
5203 find_stack_direction ()
5205 static char *addr = 0;
5210 return find_stack_direction ();
5213 return (&dummy > addr) ? 1 : -1;
5219 return find_stack_direction () < 0;
5222 if ac_fn_c_try_run
"$LINENO"; then :
5223 ac_cv_c_stack_direction
=1
5225 ac_cv_c_stack_direction
=-1
5227 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5228 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5233 $as_echo "$ac_cv_c_stack_direction" >&6; }
5234 cat >>confdefs.h
<<_ACEOF
5235 #define STACK_DIRECTION $ac_cv_c_stack_direction
5244 for ac_header
in $ac_header_list
5246 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5247 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5249 eval as_val
=\$
$as_ac_Header
5250 if test "x$as_val" = x
""yes; then :
5251 cat >>confdefs.h
<<_ACEOF
5252 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5266 for ac_func
in getpagesize
5268 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
5269 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
5270 cat >>confdefs.h
<<_ACEOF
5271 #define HAVE_GETPAGESIZE 1
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
5278 $as_echo_n "checking for working mmap... " >&6; }
5279 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
5280 $as_echo_n "(cached) " >&6
5282 if test "$cross_compiling" = yes; then :
5283 ac_cv_func_mmap_fixed_mapped
=no
5285 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5286 /* end confdefs.h. */
5287 $ac_includes_default
5288 /* malloc might have been renamed as rpl_malloc. */
5291 /* Thanks to Mike Haertel and Jim Avera for this test.
5292 Here is a matrix of mmap possibilities:
5293 mmap private not fixed
5294 mmap private fixed at somewhere currently unmapped
5295 mmap private fixed at somewhere already mapped
5296 mmap shared not fixed
5297 mmap shared fixed at somewhere currently unmapped
5298 mmap shared fixed at somewhere already mapped
5299 For private mappings, we should verify that changes cannot be read()
5300 back from the file, nor mmap's back from the file at a different
5301 address. (There have been systems where private was not correctly
5302 implemented like the infamous i386 svr4.0, and systems where the
5303 VM page cache was not coherent with the file system buffer cache
5304 like early versions of FreeBSD and possibly contemporary NetBSD.)
5305 For shared mappings, we should conversely verify that changes get
5306 propagated back to all the places they're supposed to be.
5308 Grep wants private fixed already mapped.
5309 The main things grep needs to know about mmap are:
5310 * does it exist and is it safe to write into the mmap'd area
5311 * how to use it (BSD variants) */
5314 #include <sys/mman.h>
5316 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
5320 /* This mess was copied from the GNU getpagesize.h. */
5321 #ifndef HAVE_GETPAGESIZE
5322 # ifdef _SC_PAGESIZE
5323 # define getpagesize() sysconf(_SC_PAGESIZE)
5324 # else /* no _SC_PAGESIZE */
5325 # ifdef HAVE_SYS_PARAM_H
5326 # include <sys/param.h>
5327 # ifdef EXEC_PAGESIZE
5328 # define getpagesize() EXEC_PAGESIZE
5329 # else /* no EXEC_PAGESIZE */
5331 # define getpagesize() NBPG * CLSIZE
5334 # endif /* no CLSIZE */
5335 # else /* no NBPG */
5337 # define getpagesize() NBPC
5338 # else /* no NBPC */
5340 # define getpagesize() PAGESIZE
5341 # endif /* PAGESIZE */
5342 # endif /* no NBPC */
5343 # endif /* no NBPG */
5344 # endif /* no EXEC_PAGESIZE */
5345 # else /* no HAVE_SYS_PARAM_H */
5346 # define getpagesize() 8192 /* punt totally */
5347 # endif /* no HAVE_SYS_PARAM_H */
5348 # endif /* no _SC_PAGESIZE */
5350 #endif /* no HAVE_GETPAGESIZE */
5355 char *data, *data2, *data3;
5359 pagesize = getpagesize ();
5361 /* First, make a file with some known garbage in it. */
5362 data = (char *) malloc (pagesize);
5365 for (i = 0; i < pagesize; ++i)
5366 *(data + i) = rand ();
5368 fd = creat ("conftest.mmap", 0600);
5371 if (write (fd, data, pagesize) != pagesize)
5375 /* Next, check that the tail of a page is zero-filled. File must have
5376 non-zero length, otherwise we risk SIGBUS for entire page. */
5377 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
5381 if (write (fd2, data2, 1) != 1)
5383 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
5384 if (data2 == MAP_FAILED)
5386 for (i = 0; i < pagesize; ++i)
5390 if (munmap (data2, pagesize))
5393 /* Next, try to mmap the file at a fixed address which already has
5394 something else allocated at it. If we can, also make sure that
5395 we see the same garbage. */
5396 fd = open ("conftest.mmap", O_RDWR);
5399 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
5400 MAP_PRIVATE | MAP_FIXED, fd, 0L))
5402 for (i = 0; i < pagesize; ++i)
5403 if (*(data + i) != *(data2 + i))
5406 /* Finally, make sure that changes to the mapped area do not
5407 percolate back to the file as seen by read(). (This is a bug on
5408 some variants of i386 svr4.0.) */
5409 for (i = 0; i < pagesize; ++i)
5410 *(data2 + i) = *(data2 + i) + 1;
5411 data3 = (char *) malloc (pagesize);
5414 if (read (fd, data3, pagesize) != pagesize)
5416 for (i = 0; i < pagesize; ++i)
5417 if (*(data + i) != *(data3 + i))
5423 if ac_fn_c_try_run
"$LINENO"; then :
5424 ac_cv_func_mmap_fixed_mapped
=yes
5426 ac_cv_func_mmap_fixed_mapped
=no
5428 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5429 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
5434 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
5435 if test $ac_cv_func_mmap_fixed_mapped = yes; then
5437 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
5440 rm -f conftest.mmap conftest.txt
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
5445 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
5446 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then :
5447 $as_echo_n "(cached) " >&6
5450 gt_cv_int_divbyzero_sigfpe
=
5452 macos
* | darwin
[6-9]* | darwin
[1-9][0-9]*)
5453 # On MacOS X 10.2 or newer, just assume the same as when cross-
5454 # compiling. If we were to perform the real test, 1 Crash Report
5455 # dialog window would pop up.
5457 i
[34567]86 | x86_64
)
5458 gt_cv_int_divbyzero_sigfpe
="guessing yes" ;;
5462 if test -z "$gt_cv_int_divbyzero_sigfpe"; then
5463 if test "$cross_compiling" = yes; then :
5465 # Guess based on the CPU.
5467 alpha
* | i
[34567]86 | x86_64 | m68k | s390
*)
5468 gt_cv_int_divbyzero_sigfpe
="guessing yes";;
5470 gt_cv_int_divbyzero_sigfpe
="guessing no";;
5474 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5475 /* end confdefs.h. */
5481 sigfpe_handler (int sig)
5483 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
5484 exit (sig != SIGFPE);
5494 signal (SIGFPE, sigfpe_handler);
5495 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
5496 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
5497 signal (SIGTRAP, sigfpe_handler);
5499 /* Linux/SPARC yields signal SIGILL. */
5500 #if defined (__sparc__) && defined (__linux__)
5501 signal (SIGILL, sigfpe_handler);
5510 if ac_fn_c_try_run
"$LINENO"; then :
5511 gt_cv_int_divbyzero_sigfpe
=yes
5513 gt_cv_int_divbyzero_sigfpe
=no
5515 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5516 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
5523 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
5524 case "$gt_cv_int_divbyzero_sigfpe" in
5529 cat >>confdefs.h
<<_ACEOF
5530 #define INTDIV0_RAISES_SIGFPE $value
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
5536 $as_echo_n "checking for inttypes.h... " >&6; }
5537 if test "${gl_cv_header_inttypes_h+set}" = set; then :
5538 $as_echo_n "(cached) " >&6
5540 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5541 /* end confdefs.h. */
5542 #include <sys/types.h>
5543 #include <inttypes.h>
5547 uintmax_t i = (uintmax_t) -1; return !i;
5552 if ac_fn_c_try_compile
"$LINENO"; then :
5553 gl_cv_header_inttypes_h
=yes
5555 gl_cv_header_inttypes_h
=no
5557 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
5560 $as_echo "$gl_cv_header_inttypes_h" >&6; }
5561 if test $gl_cv_header_inttypes_h = yes; then
5563 cat >>confdefs.h
<<_ACEOF
5564 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
5571 $as_echo_n "checking for unsigned long long int... " >&6; }
5572 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
5573 $as_echo_n "(cached) " >&6
5575 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5576 /* end confdefs.h. */
5578 /* Test preprocessor. */
5579 #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5580 error in preprocessor;
5582 #if ! (18446744073709551615ULL <= -1ull)
5583 error in preprocessor;
5585 /* Test literals. */
5586 long long int ll = 9223372036854775807ll;
5587 long long int nll = -9223372036854775807LL;
5588 unsigned long long int ull = 18446744073709551615ULL;
5589 /* Test constant expressions. */
5590 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5592 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5598 /* Test availability of runtime routines for shift and division. */
5599 long long int llmax = 9223372036854775807ll;
5600 unsigned long long int ullmax = 18446744073709551615ull;
5601 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5602 | (llmax / ll) | (llmax % ll)
5603 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5604 | (ullmax / ull) | (ullmax % ull));
5610 if ac_fn_c_try_link
"$LINENO"; then :
5611 ac_cv_type_unsigned_long_long_int
=yes
5613 ac_cv_type_unsigned_long_long_int
=no
5615 rm -f core conftest.err conftest.
$ac_objext \
5616 conftest
$ac_exeext conftest.
$ac_ext
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
5619 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
5620 if test $ac_cv_type_unsigned_long_long_int = yes; then
5622 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
5629 if test $gl_cv_header_inttypes_h = no
&& test $gl_cv_header_stdint_h = no
; then
5631 test $ac_cv_type_unsigned_long_long_int = yes \
5632 && ac_type
='unsigned long long' \
5633 || ac_type
='unsigned long'
5635 cat >>confdefs.h
<<_ACEOF
5636 #define uintmax_t $ac_type
5641 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
5646 for ac_header
in inttypes.h
5648 ac_fn_c_check_header_mongrel
"$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
5649 if test "x$ac_cv_header_inttypes_h" = x
""yes; then :
5650 cat >>confdefs.h
<<_ACEOF
5651 #define HAVE_INTTYPES_H 1
5658 if test $ac_cv_header_inttypes_h = yes; then
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
5660 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
5661 if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
5662 $as_echo_n "(cached) " >&6
5665 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5666 /* end confdefs.h. */
5667 #include <inttypes.h>
5680 if ac_fn_c_try_compile
"$LINENO"; then :
5681 gt_cv_inttypes_pri_broken
=no
5683 gt_cv_inttypes_pri_broken
=yes
5685 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
5689 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
5691 if test "$gt_cv_inttypes_pri_broken" = yes; then
5693 cat >>confdefs.h
<<_ACEOF
5694 #define PRI_MACROS_BROKEN 1
5707 # Check whether --enable-threads was given.
5708 if test "${enable_threads+set}" = set; then :
5709 enableval
=$enable_threads; gl_use_threads
=$enableval
5712 osf
*) gl_use_threads
=no
;;
5713 *) gl_use_threads
=yes ;;
5718 if test "$gl_use_threads" = yes ||
test "$gl_use_threads" = posix
; then
5719 # For using <pthread.h>:
5722 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
5723 # groks <pthread.h>. cc also understands the flag -pthread, but
5724 # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
5725 # 2. putting a flag into CPPFLAGS that has an effect on the linker
5726 # causes the AC_TRY_LINK test below to succeed unexpectedly,
5727 # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
5728 CPPFLAGS
="$CPPFLAGS -D_REENTRANT"
5731 # Some systems optimize for single-threaded programs by default, and
5732 # need special flags to disable these optimizations. For example, the
5733 # definition of 'errno' in <errno.h>.
5735 aix
* | freebsd
*) CPPFLAGS
="$CPPFLAGS -D_THREAD_SAFE" ;;
5736 solaris
*) CPPFLAGS
="$CPPFLAGS -D_REENTRANT" ;;
5744 if test "X$prefix" = "XNONE"; then
5745 acl_final_prefix
="$ac_default_prefix"
5747 acl_final_prefix
="$prefix"
5749 if test "X$exec_prefix" = "XNONE"; then
5750 acl_final_exec_prefix
='${prefix}'
5752 acl_final_exec_prefix
="$exec_prefix"
5754 acl_save_prefix
="$prefix"
5755 prefix
="$acl_final_prefix"
5756 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
5757 prefix
="$acl_save_prefix"
5760 # Check whether --with-gnu-ld was given.
5761 if test "${with_gnu_ld+set}" = set; then :
5762 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
5767 # Prepare PATH_SEPARATOR.
5768 # The user is always right.
5769 if test "${PATH_SEPARATOR+set}" != set; then
5770 echo "#! /bin/sh" >conf$$.sh
5771 echo "exit 0" >>conf$$.sh
5773 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
5781 if test "$GCC" = yes; then
5782 # Check if gcc -print-prog-name=ld gives a path.
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
5784 $as_echo_n "checking for ld used by GCC... " >&6; }
5787 # gcc leaves a trailing carriage return which upsets mingw
5788 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5790 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
5793 # Accept absolute paths.
5794 [\\/]* |
[A-Za-z
]:[\\/]*)
5795 re_direlt
='/[^/][^/]*/\.\./'
5796 # Canonicalize the path of ld
5797 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
5798 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
5799 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
5801 test -z "$LD" && LD
="$ac_prog"
5804 # If it fails, then pretend we aren't using GCC.
5808 # If it is relative, then search for the first ld in PATH.
5812 elif test "$with_gnu_ld" = yes; then
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5814 $as_echo_n "checking for GNU ld... " >&6; }
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5817 $as_echo_n "checking for non-GNU ld... " >&6; }
5819 if test "${acl_cv_path_LD+set}" = set; then :
5820 $as_echo_n "(cached) " >&6
5822 if test -z "$LD"; then
5823 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5824 for ac_dir
in $PATH; do
5825 test -z "$ac_dir" && ac_dir
=.
5826 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
5827 acl_cv_path_LD
="$ac_dir/$ac_prog"
5828 # Check to see if the program is GNU ld. I'd rather use --version,
5829 # but apparently some GNU ld's only accept -v.
5830 # Break only if it was the GNU/non-GNU ld that we prefer.
5831 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
5832 *GNU
* |
*'with BFD'*)
5833 test "$with_gnu_ld" != no
&& break ;;
5835 test "$with_gnu_ld" != yes && break ;;
5841 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
5845 LD
="$acl_cv_path_LD"
5846 if test -n "$LD"; then
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5848 $as_echo "$LD" >&6; }
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5851 $as_echo "no" >&6; }
5853 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5855 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5856 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
5857 $as_echo_n "(cached) " >&6
5859 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5860 case `$LD -v 2>&1 </dev/null` in
5861 *GNU
* |
*'with BFD'*)
5862 acl_cv_prog_gnu_ld
=yes ;;
5864 acl_cv_prog_gnu_ld
=no
;;
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
5868 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
5869 with_gnu_ld
=$acl_cv_prog_gnu_ld
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
5875 $as_echo_n "checking for shared library run path origin... " >&6; }
5876 if test "${acl_cv_rpath+set}" = set; then :
5877 $as_echo_n "(cached) " >&6
5880 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
5881 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
5888 $as_echo "$acl_cv_rpath" >&6; }
5890 acl_libext
="$acl_cv_libext"
5891 acl_shlibext
="$acl_cv_shlibext"
5892 acl_libname_spec
="$acl_cv_libname_spec"
5893 acl_library_names_spec
="$acl_cv_library_names_spec"
5894 acl_hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
5895 acl_hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
5896 acl_hardcode_direct
="$acl_cv_hardcode_direct"
5897 acl_hardcode_minus_L
="$acl_cv_hardcode_minus_L"
5898 # Check whether --enable-rpath was given.
5899 if test "${enable_rpath+set}" = set; then :
5900 enableval
=$enable_rpath; :
5908 searchpath
=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
5909 if test -n "$searchpath"; then
5910 acl_save_IFS
="${IFS= }"; IFS
=":"
5911 for searchdir
in $searchpath; do
5912 if test -d "$searchdir"; then
5913 case "$searchdir" in
5914 */lib64
/ |
*/lib64
) acl_libdirstem
=lib64
;;
5915 *) searchdir
=`cd "$searchdir" && pwd`
5916 case "$searchdir" in
5917 */lib64
) acl_libdirstem
=lib64
;;
5932 if test "$gl_use_threads" != no
; then
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
5934 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
5936 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5937 /* end confdefs.h. */
5938 extern void xyzzy ();
5948 if ac_fn_c_try_link
"$LINENO"; then :
5951 rm -f core conftest.err conftest.
$ac_objext \
5952 conftest
$ac_exeext conftest.
$ac_ext
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_weak" >&5
5954 $as_echo "$gl_have_weak" >&6; }
5955 if test "$gl_use_threads" = yes ||
test "$gl_use_threads" = posix
; then
5956 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
5957 # it groks <pthread.h>. It's added above, in gl_LOCK_EARLY_BODY.
5958 ac_fn_c_check_header_mongrel
"$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
5959 if test "x$ac_cv_header_pthread_h" = x
""yes; then :
5960 gl_have_pthread_h
=yes
5962 gl_have_pthread_h
=no
5966 if test "$gl_have_pthread_h" = yes; then
5967 # Other possible tests:
5968 # -lpthreads (FSU threads, PCthreads)
5971 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
5972 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
5973 # the second one only in libpthread, and lock.c needs it.
5974 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5975 /* end confdefs.h. */
5976 #include <pthread.h>
5980 pthread_mutex_lock((pthread_mutex_t*)0);
5981 pthread_mutexattr_init((pthread_mutexattr_t*)0);
5986 if ac_fn_c_try_link
"$LINENO"; then :
5989 rm -f core conftest.err conftest.
$ac_objext \
5990 conftest
$ac_exeext conftest.
$ac_ext
5991 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
5992 # since it is defined as a macro on OSF/1.)
5993 if test -n "$gl_have_pthread"; then
5994 # The program links fine without libpthread. But it may actually
5995 # need to link with libpthread in order to create multiple threads.
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
5997 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
5998 if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then :
5999 $as_echo_n "(cached) " >&6
6001 ac_check_lib_save_LIBS
=$LIBS
6002 LIBS
="-lpthread $LIBS"
6003 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6004 /* end confdefs.h. */
6006 /* Override any GCC internal prototype to avoid an error.
6007 Use char because int might match the return type of a GCC
6008 builtin and then its argument prototype would still apply. */
6012 char pthread_kill ();
6016 return pthread_kill ();
6021 if ac_fn_c_try_link
"$LINENO"; then :
6022 ac_cv_lib_pthread_pthread_kill
=yes
6024 ac_cv_lib_pthread_pthread_kill
=no
6026 rm -f core conftest.err conftest.
$ac_objext \
6027 conftest
$ac_exeext conftest.
$ac_ext
6028 LIBS
=$ac_check_lib_save_LIBS
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
6031 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
6032 if test "x$ac_cv_lib_pthread_pthread_kill" = x
""yes; then :
6033 LIBMULTITHREAD
=-lpthread LTLIBMULTITHREAD
=-lpthread
6034 # On Solaris and HP-UX, most pthread functions exist also in libc.
6035 # Therefore pthread_in_use() needs to actually try to create a
6036 # thread: pthread_create from libc will fail, whereas
6037 # pthread_create will actually create a thread.
6041 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
6048 # Some library is needed. Try libpthread and libc_r.
6049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
6050 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
6051 if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then :
6052 $as_echo_n "(cached) " >&6
6054 ac_check_lib_save_LIBS
=$LIBS
6055 LIBS
="-lpthread $LIBS"
6056 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6057 /* end confdefs.h. */
6059 /* Override any GCC internal prototype to avoid an error.
6060 Use char because int might match the return type of a GCC
6061 builtin and then its argument prototype would still apply. */
6065 char pthread_kill ();
6069 return pthread_kill ();
6074 if ac_fn_c_try_link
"$LINENO"; then :
6075 ac_cv_lib_pthread_pthread_kill
=yes
6077 ac_cv_lib_pthread_pthread_kill
=no
6079 rm -f core conftest.err conftest.
$ac_objext \
6080 conftest
$ac_exeext conftest.
$ac_ext
6081 LIBS
=$ac_check_lib_save_LIBS
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
6084 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
6085 if test "x$ac_cv_lib_pthread_pthread_kill" = x
""yes; then :
6087 LIBTHREAD
=-lpthread LTLIBTHREAD
=-lpthread
6088 LIBMULTITHREAD
=-lpthread LTLIBMULTITHREAD
=-lpthread
6091 if test -z "$gl_have_pthread"; then
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
6094 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
6095 if test "${ac_cv_lib_c_r_pthread_kill+set}" = set; then :
6096 $as_echo_n "(cached) " >&6
6098 ac_check_lib_save_LIBS
=$LIBS
6100 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6101 /* end confdefs.h. */
6103 /* Override any GCC internal prototype to avoid an error.
6104 Use char because int might match the return type of a GCC
6105 builtin and then its argument prototype would still apply. */
6109 char pthread_kill ();
6113 return pthread_kill ();
6118 if ac_fn_c_try_link
"$LINENO"; then :
6119 ac_cv_lib_c_r_pthread_kill
=yes
6121 ac_cv_lib_c_r_pthread_kill
=no
6123 rm -f core conftest.err conftest.
$ac_objext \
6124 conftest
$ac_exeext conftest.
$ac_ext
6125 LIBS
=$ac_check_lib_save_LIBS
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
6128 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
6129 if test "x$ac_cv_lib_c_r_pthread_kill" = x
""yes; then :
6131 LIBTHREAD
=-lc_r LTLIBTHREAD
=-lc_r
6132 LIBMULTITHREAD
=-lc_r LTLIBMULTITHREAD
=-lc_r
6137 if test -n "$gl_have_pthread"; then
6138 gl_threads_api
=posix
6140 $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
6142 if test -n "$LIBMULTITHREAD" ||
test -n "$LTLIBMULTITHREAD"; then
6143 if test $gl_have_weak = yes; then
6145 $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
6151 # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
6152 # pthread_rwlock_* functions.
6153 ac_fn_c_check_type
"$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
6155 if test "x$ac_cv_type_pthread_rwlock_t" = x
""yes; then :
6157 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
6161 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
6162 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6163 /* end confdefs.h. */
6164 #include <pthread.h>
6168 #if __FreeBSD__ == 4
6169 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
6171 int x = (int)PTHREAD_MUTEX_RECURSIVE;
6178 if ac_fn_c_try_compile
"$LINENO"; then :
6180 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
6183 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6187 if test -z "$gl_have_pthread"; then
6188 if test "$gl_use_threads" = yes ||
test "$gl_use_threads" = solaris
; then
6189 gl_have_solaristhread
=
6190 gl_save_LIBS
="$LIBS"
6191 LIBS
="$LIBS -lthread"
6192 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6193 /* end confdefs.h. */
6204 if ac_fn_c_try_link
"$LINENO"; then :
6205 gl_have_solaristhread
=yes
6207 rm -f core conftest.err conftest.
$ac_objext \
6208 conftest
$ac_exeext conftest.
$ac_ext
6209 LIBS
="$gl_save_LIBS"
6210 if test -n "$gl_have_solaristhread"; then
6211 gl_threads_api
=solaris
6213 LTLIBTHREAD
=-lthread
6214 LIBMULTITHREAD
="$LIBTHREAD"
6215 LTLIBMULTITHREAD
="$LTLIBTHREAD"
6217 $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
6219 if test $gl_have_weak = yes; then
6221 $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
6229 if test "$gl_use_threads" = pth
; then
6230 gl_save_CPPFLAGS
="$CPPFLAGS"
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
6237 $as_echo_n "checking how to link with libpth... " >&6; }
6238 if test "${ac_cv_libpth_libs+set}" = set; then :
6239 $as_echo_n "(cached) " >&6
6248 acl_save_prefix
="$prefix"
6249 prefix
="$acl_final_prefix"
6250 acl_save_exec_prefix
="$exec_prefix"
6251 exec_prefix
="$acl_final_exec_prefix"
6253 eval additional_includedir
=\"$includedir\"
6254 eval additional_libdir
=\"$libdir\"
6256 exec_prefix
="$acl_save_exec_prefix"
6257 prefix
="$acl_save_prefix"
6260 # Check whether --with-libpth-prefix was given.
6261 if test "${with_libpth_prefix+set}" = set; then :
6262 withval
=$with_libpth_prefix;
6263 if test "X$withval" = "Xno"; then
6266 if test "X$withval" = "X"; then
6268 acl_save_prefix
="$prefix"
6269 prefix
="$acl_final_prefix"
6270 acl_save_exec_prefix
="$exec_prefix"
6271 exec_prefix
="$acl_final_exec_prefix"
6273 eval additional_includedir
=\"$includedir\"
6274 eval additional_libdir
=\"$libdir\"
6276 exec_prefix
="$acl_save_exec_prefix"
6277 prefix
="$acl_save_prefix"
6280 additional_includedir
="$withval/include"
6281 additional_libdir
="$withval/$acl_libdirstem"
6293 names_already_handled
=
6294 names_next_round
='pth '
6295 while test -n "$names_next_round"; do
6296 names_this_round
="$names_next_round"
6298 for name
in $names_this_round; do
6300 for n
in $names_already_handled; do
6301 if test "$n" = "$name"; then
6306 if test -z "$already_handled"; then
6307 names_already_handled
="$names_already_handled $name"
6308 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6309 eval value
=\"\
$HAVE_LIB$uppername\"
6310 if test -n "$value"; then
6311 if test "$value" = yes; then
6312 eval value
=\"\
$LIB$uppername\"
6313 test -z "$value" || LIBPTH
="${LIBPTH}${LIBPTH:+ }$value"
6314 eval value
=\"\
$LTLIB$uppername\"
6315 test -z "$value" || LTLIBPTH
="${LTLIBPTH}${LTLIBPTH:+ }$value"
6324 eval libname
=\"$acl_libname_spec\" # typically: libname=lib$name
6325 if test -n "$acl_shlibext"; then
6326 shrext
=".$acl_shlibext" # typically: shrext=.so
6330 if test $use_additional = yes; then
6331 dir
="$additional_libdir"
6332 if test -n "$acl_shlibext"; then
6333 if test -f "$dir/$libname$shrext"; then
6335 found_so
="$dir/$libname$shrext"
6337 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6338 ver
=`(cd "$dir" && \
6339 for f in "$libname$shrext".*; do echo "$f"; done \
6340 | sed -e "s,^$libname$shrext\\\\.,," \
6341 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6342 | sed 1q ) 2>/dev/null`
6343 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6345 found_so
="$dir/$libname$shrext.$ver"
6348 eval library_names
=\"$acl_library_names_spec\"
6349 for f
in $library_names; do
6350 if test -f "$dir/$f"; then
6359 if test "X$found_dir" = "X"; then
6360 if test -f "$dir/$libname.$acl_libext"; then
6362 found_a
="$dir/$libname.$acl_libext"
6365 if test "X$found_dir" != "X"; then
6366 if test -f "$dir/$libname.la"; then
6367 found_la
="$dir/$libname.la"
6371 if test "X$found_dir" = "X"; then
6372 for x
in $LDFLAGS $LTLIBPTH; do
6374 acl_save_prefix
="$prefix"
6375 prefix
="$acl_final_prefix"
6376 acl_save_exec_prefix
="$exec_prefix"
6377 exec_prefix
="$acl_final_exec_prefix"
6379 exec_prefix
="$acl_save_exec_prefix"
6380 prefix
="$acl_save_prefix"
6384 dir
=`echo "X$x" | sed -e 's/^X-L//'`
6385 if test -n "$acl_shlibext"; then
6386 if test -f "$dir/$libname$shrext"; then
6388 found_so
="$dir/$libname$shrext"
6390 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6391 ver
=`(cd "$dir" && \
6392 for f in "$libname$shrext".*; do echo "$f"; done \
6393 | sed -e "s,^$libname$shrext\\\\.,," \
6394 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6395 | sed 1q ) 2>/dev/null`
6396 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6398 found_so
="$dir/$libname$shrext.$ver"
6401 eval library_names
=\"$acl_library_names_spec\"
6402 for f
in $library_names; do
6403 if test -f "$dir/$f"; then
6412 if test "X$found_dir" = "X"; then
6413 if test -f "$dir/$libname.$acl_libext"; then
6415 found_a
="$dir/$libname.$acl_libext"
6418 if test "X$found_dir" != "X"; then
6419 if test -f "$dir/$libname.la"; then
6420 found_la
="$dir/$libname.la"
6425 if test "X$found_dir" != "X"; then
6430 if test "X$found_dir" != "X"; then
6431 LTLIBPTH
="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
6432 if test "X$found_so" != "X"; then
6433 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/$acl_libdirstem"; then
6434 LIBPTH
="${LIBPTH}${LIBPTH:+ }$found_so"
6437 for x
in $ltrpathdirs; do
6438 if test "X$x" = "X$found_dir"; then
6443 if test -z "$haveit"; then
6444 ltrpathdirs
="$ltrpathdirs $found_dir"
6446 if test "$acl_hardcode_direct" = yes; then
6447 LIBPTH
="${LIBPTH}${LIBPTH:+ }$found_so"
6449 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no
; then
6450 LIBPTH
="${LIBPTH}${LIBPTH:+ }$found_so"
6452 for x
in $rpathdirs; do
6453 if test "X$x" = "X$found_dir"; then
6458 if test -z "$haveit"; then
6459 rpathdirs
="$rpathdirs $found_dir"
6463 for x
in $LDFLAGS $LIBPTH; do
6465 acl_save_prefix
="$prefix"
6466 prefix
="$acl_final_prefix"
6467 acl_save_exec_prefix
="$exec_prefix"
6468 exec_prefix
="$acl_final_exec_prefix"
6470 exec_prefix
="$acl_save_exec_prefix"
6471 prefix
="$acl_save_prefix"
6473 if test "X$x" = "X-L$found_dir"; then
6478 if test -z "$haveit"; then
6479 LIBPTH
="${LIBPTH}${LIBPTH:+ }-L$found_dir"
6481 if test "$acl_hardcode_minus_L" != no
; then
6482 LIBPTH
="${LIBPTH}${LIBPTH:+ }$found_so"
6484 LIBPTH
="${LIBPTH}${LIBPTH:+ }-l$name"
6490 if test "X$found_a" != "X"; then
6491 LIBPTH
="${LIBPTH}${LIBPTH:+ }$found_a"
6493 LIBPTH
="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
6496 additional_includedir
=
6497 case "$found_dir" in
6498 */$acl_libdirstem |
*/$acl_libdirstem/)
6499 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
6500 LIBPTH_PREFIX
="$basedir"
6501 additional_includedir
="$basedir/include"
6504 if test "X$additional_includedir" != "X"; then
6505 if test "X$additional_includedir" != "X/usr/include"; then
6507 if test "X$additional_includedir" = "X/usr/local/include"; then
6508 if test -n "$GCC"; then
6510 linux
* | gnu
* | k
*bsd
*-gnu) haveit
=yes;;
6514 if test -z "$haveit"; then
6515 for x
in $CPPFLAGS $INCPTH; do
6517 acl_save_prefix
="$prefix"
6518 prefix
="$acl_final_prefix"
6519 acl_save_exec_prefix
="$exec_prefix"
6520 exec_prefix
="$acl_final_exec_prefix"
6522 exec_prefix
="$acl_save_exec_prefix"
6523 prefix
="$acl_save_prefix"
6525 if test "X$x" = "X-I$additional_includedir"; then
6530 if test -z "$haveit"; then
6531 if test -d "$additional_includedir"; then
6532 INCPTH
="${INCPTH}${INCPTH:+ }-I$additional_includedir"
6538 if test -n "$found_la"; then
6539 save_libdir
="$libdir"
6541 */* |
*\\*) .
"$found_la" ;;
6542 *) .
"./$found_la" ;;
6544 libdir
="$save_libdir"
6545 for dep
in $dependency_libs; do
6548 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
6549 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
6551 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
6552 if test -n "$GCC"; then
6554 linux
* | gnu
* | k
*bsd
*-gnu) haveit
=yes;;
6558 if test -z "$haveit"; then
6560 for x
in $LDFLAGS $LIBPTH; do
6562 acl_save_prefix
="$prefix"
6563 prefix
="$acl_final_prefix"
6564 acl_save_exec_prefix
="$exec_prefix"
6565 exec_prefix
="$acl_final_exec_prefix"
6567 exec_prefix
="$acl_save_exec_prefix"
6568 prefix
="$acl_save_prefix"
6570 if test "X$x" = "X-L$additional_libdir"; then
6575 if test -z "$haveit"; then
6576 if test -d "$additional_libdir"; then
6577 LIBPTH
="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
6581 for x
in $LDFLAGS $LTLIBPTH; do
6583 acl_save_prefix
="$prefix"
6584 prefix
="$acl_final_prefix"
6585 acl_save_exec_prefix
="$exec_prefix"
6586 exec_prefix
="$acl_final_exec_prefix"
6588 exec_prefix
="$acl_save_exec_prefix"
6589 prefix
="$acl_save_prefix"
6591 if test "X$x" = "X-L$additional_libdir"; then
6596 if test -z "$haveit"; then
6597 if test -d "$additional_libdir"; then
6598 LTLIBPTH
="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
6605 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
6606 if test "$enable_rpath" != no
; then
6608 for x
in $rpathdirs; do
6609 if test "X$x" = "X$dir"; then
6614 if test -z "$haveit"; then
6615 rpathdirs
="$rpathdirs $dir"
6618 for x
in $ltrpathdirs; do
6619 if test "X$x" = "X$dir"; then
6624 if test -z "$haveit"; then
6625 ltrpathdirs
="$ltrpathdirs $dir"
6630 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6633 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6636 LIBPTH
="${LIBPTH}${LIBPTH:+ }$dep"
6637 LTLIBPTH
="${LTLIBPTH}${LTLIBPTH:+ }$dep"
6643 LIBPTH
="${LIBPTH}${LIBPTH:+ }-l$name"
6644 LTLIBPTH
="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
6650 if test "X$rpathdirs" != "X"; then
6651 if test -n "$acl_hardcode_libdir_separator"; then
6653 for found_dir
in $rpathdirs; do
6654 alldirs
="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
6656 acl_save_libdir
="$libdir"
6658 eval flag
=\"$acl_hardcode_libdir_flag_spec\"
6659 libdir
="$acl_save_libdir"
6660 LIBPTH
="${LIBPTH}${LIBPTH:+ }$flag"
6662 for found_dir
in $rpathdirs; do
6663 acl_save_libdir
="$libdir"
6665 eval flag
=\"$acl_hardcode_libdir_flag_spec\"
6666 libdir
="$acl_save_libdir"
6667 LIBPTH
="${LIBPTH}${LIBPTH:+ }$flag"
6671 if test "X$ltrpathdirs" != "X"; then
6672 for found_dir
in $ltrpathdirs; do
6673 LTLIBPTH
="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
6677 ac_cv_libpth_libs
="$LIBPTH"
6678 ac_cv_libpth_ltlibs
="$LTLIBPTH"
6679 ac_cv_libpth_cppflags
="$INCPTH"
6680 ac_cv_libpth_prefix
="$LIBPTH_PREFIX"
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
6684 $as_echo "$ac_cv_libpth_libs" >&6; }
6685 LIBPTH
="$ac_cv_libpth_libs"
6686 LTLIBPTH
="$ac_cv_libpth_ltlibs"
6687 INCPTH
="$ac_cv_libpth_cppflags"
6688 LIBPTH_PREFIX
="$ac_cv_libpth_prefix"
6690 for element
in $INCPTH; do
6692 for x
in $CPPFLAGS; do
6694 acl_save_prefix
="$prefix"
6695 prefix
="$acl_final_prefix"
6696 acl_save_exec_prefix
="$exec_prefix"
6697 exec_prefix
="$acl_final_exec_prefix"
6699 exec_prefix
="$acl_save_exec_prefix"
6700 prefix
="$acl_save_prefix"
6702 if test "X$x" = "X$element"; then
6707 if test -z "$haveit"; then
6708 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
6720 gl_save_LIBS
="$LIBS"
6722 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6723 /* end confdefs.h. */
6733 if ac_fn_c_try_link
"$LINENO"; then :
6736 rm -f core conftest.err conftest.
$ac_objext \
6737 conftest
$ac_exeext conftest.
$ac_ext
6738 LIBS
="$gl_save_LIBS"
6739 if test -n "$gl_have_pth"; then
6742 LTLIBTHREAD
="$LTLIBPTH"
6743 LIBMULTITHREAD
="$LIBTHREAD"
6744 LTLIBMULTITHREAD
="$LTLIBTHREAD"
6746 $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
6748 if test -n "$LIBMULTITHREAD" ||
test -n "$LTLIBMULTITHREAD"; then
6749 if test $gl_have_weak = yes; then
6751 $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
6758 CPPFLAGS
="$gl_save_CPPFLAGS"
6761 if test -z "$gl_have_pthread"; then
6762 if test "$gl_use_threads" = yes ||
test "$gl_use_threads" = win32
; then
6763 if { case "$host_os" in
6768 gl_threads_api
=win32
6770 $as_echo "#define USE_WIN32_THREADS 1" >>confdefs.h
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
6777 $as_echo_n "checking for multithread API to use... " >&6; }
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
6779 $as_echo "$gl_threads_api" >&6; }
6802 acl_save_prefix
="$prefix"
6803 prefix
="$acl_final_prefix"
6804 acl_save_exec_prefix
="$exec_prefix"
6805 exec_prefix
="$acl_final_exec_prefix"
6807 eval additional_includedir
=\"$includedir\"
6808 eval additional_libdir
=\"$libdir\"
6810 exec_prefix
="$acl_save_exec_prefix"
6811 prefix
="$acl_save_prefix"
6814 # Check whether --with-libiconv-prefix was given.
6815 if test "${with_libiconv_prefix+set}" = set; then :
6816 withval
=$with_libiconv_prefix;
6817 if test "X$withval" = "Xno"; then
6820 if test "X$withval" = "X"; then
6822 acl_save_prefix
="$prefix"
6823 prefix
="$acl_final_prefix"
6824 acl_save_exec_prefix
="$exec_prefix"
6825 exec_prefix
="$acl_final_exec_prefix"
6827 eval additional_includedir
=\"$includedir\"
6828 eval additional_libdir
=\"$libdir\"
6830 exec_prefix
="$acl_save_exec_prefix"
6831 prefix
="$acl_save_prefix"
6834 additional_includedir
="$withval/include"
6835 additional_libdir
="$withval/$acl_libdirstem"
6847 names_already_handled
=
6848 names_next_round
='iconv '
6849 while test -n "$names_next_round"; do
6850 names_this_round
="$names_next_round"
6852 for name
in $names_this_round; do
6854 for n
in $names_already_handled; do
6855 if test "$n" = "$name"; then
6860 if test -z "$already_handled"; then
6861 names_already_handled
="$names_already_handled $name"
6862 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6863 eval value
=\"\
$HAVE_LIB$uppername\"
6864 if test -n "$value"; then
6865 if test "$value" = yes; then
6866 eval value
=\"\
$LIB$uppername\"
6867 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
6868 eval value
=\"\
$LTLIB$uppername\"
6869 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
6878 eval libname
=\"$acl_libname_spec\" # typically: libname=lib$name
6879 if test -n "$acl_shlibext"; then
6880 shrext
=".$acl_shlibext" # typically: shrext=.so
6884 if test $use_additional = yes; then
6885 dir
="$additional_libdir"
6886 if test -n "$acl_shlibext"; then
6887 if test -f "$dir/$libname$shrext"; then
6889 found_so
="$dir/$libname$shrext"
6891 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6892 ver
=`(cd "$dir" && \
6893 for f in "$libname$shrext".*; do echo "$f"; done \
6894 | sed -e "s,^$libname$shrext\\\\.,," \
6895 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6896 | sed 1q ) 2>/dev/null`
6897 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6899 found_so
="$dir/$libname$shrext.$ver"
6902 eval library_names
=\"$acl_library_names_spec\"
6903 for f
in $library_names; do
6904 if test -f "$dir/$f"; then
6913 if test "X$found_dir" = "X"; then
6914 if test -f "$dir/$libname.$acl_libext"; then
6916 found_a
="$dir/$libname.$acl_libext"
6919 if test "X$found_dir" != "X"; then
6920 if test -f "$dir/$libname.la"; then
6921 found_la
="$dir/$libname.la"
6925 if test "X$found_dir" = "X"; then
6926 for x
in $LDFLAGS $LTLIBICONV; do
6928 acl_save_prefix
="$prefix"
6929 prefix
="$acl_final_prefix"
6930 acl_save_exec_prefix
="$exec_prefix"
6931 exec_prefix
="$acl_final_exec_prefix"
6933 exec_prefix
="$acl_save_exec_prefix"
6934 prefix
="$acl_save_prefix"
6938 dir
=`echo "X$x" | sed -e 's/^X-L//'`
6939 if test -n "$acl_shlibext"; then
6940 if test -f "$dir/$libname$shrext"; then
6942 found_so
="$dir/$libname$shrext"
6944 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6945 ver
=`(cd "$dir" && \
6946 for f in "$libname$shrext".*; do echo "$f"; done \
6947 | sed -e "s,^$libname$shrext\\\\.,," \
6948 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6949 | sed 1q ) 2>/dev/null`
6950 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6952 found_so
="$dir/$libname$shrext.$ver"
6955 eval library_names
=\"$acl_library_names_spec\"
6956 for f
in $library_names; do
6957 if test -f "$dir/$f"; then
6966 if test "X$found_dir" = "X"; then
6967 if test -f "$dir/$libname.$acl_libext"; then
6969 found_a
="$dir/$libname.$acl_libext"
6972 if test "X$found_dir" != "X"; then
6973 if test -f "$dir/$libname.la"; then
6974 found_la
="$dir/$libname.la"
6979 if test "X$found_dir" != "X"; then
6984 if test "X$found_dir" != "X"; then
6985 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6986 if test "X$found_so" != "X"; then
6987 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/$acl_libdirstem"; then
6988 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
6991 for x
in $ltrpathdirs; do
6992 if test "X$x" = "X$found_dir"; then
6997 if test -z "$haveit"; then
6998 ltrpathdirs
="$ltrpathdirs $found_dir"
7000 if test "$acl_hardcode_direct" = yes; then
7001 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
7003 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no
; then
7004 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
7006 for x
in $rpathdirs; do
7007 if test "X$x" = "X$found_dir"; then
7012 if test -z "$haveit"; then
7013 rpathdirs
="$rpathdirs $found_dir"
7017 for x
in $LDFLAGS $LIBICONV; do
7019 acl_save_prefix
="$prefix"
7020 prefix
="$acl_final_prefix"
7021 acl_save_exec_prefix
="$exec_prefix"
7022 exec_prefix
="$acl_final_exec_prefix"
7024 exec_prefix
="$acl_save_exec_prefix"
7025 prefix
="$acl_save_prefix"
7027 if test "X$x" = "X-L$found_dir"; then
7032 if test -z "$haveit"; then
7033 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7035 if test "$acl_hardcode_minus_L" != no
; then
7036 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
7038 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
7044 if test "X$found_a" != "X"; then
7045 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
7047 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7050 additional_includedir
=
7051 case "$found_dir" in
7052 */$acl_libdirstem |
*/$acl_libdirstem/)
7053 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
7054 LIBICONV_PREFIX
="$basedir"
7055 additional_includedir
="$basedir/include"
7058 if test "X$additional_includedir" != "X"; then
7059 if test "X$additional_includedir" != "X/usr/include"; then
7061 if test "X$additional_includedir" = "X/usr/local/include"; then
7062 if test -n "$GCC"; then
7064 linux
* | gnu
* | k
*bsd
*-gnu) haveit
=yes;;
7068 if test -z "$haveit"; then
7069 for x
in $CPPFLAGS $INCICONV; do
7071 acl_save_prefix
="$prefix"
7072 prefix
="$acl_final_prefix"
7073 acl_save_exec_prefix
="$exec_prefix"
7074 exec_prefix
="$acl_final_exec_prefix"
7076 exec_prefix
="$acl_save_exec_prefix"
7077 prefix
="$acl_save_prefix"
7079 if test "X$x" = "X-I$additional_includedir"; then
7084 if test -z "$haveit"; then
7085 if test -d "$additional_includedir"; then
7086 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7092 if test -n "$found_la"; then
7093 save_libdir
="$libdir"
7095 */* |
*\\*) .
"$found_la" ;;
7096 *) .
"./$found_la" ;;
7098 libdir
="$save_libdir"
7099 for dep
in $dependency_libs; do
7102 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
7103 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
7105 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
7106 if test -n "$GCC"; then
7108 linux
* | gnu
* | k
*bsd
*-gnu) haveit
=yes;;
7112 if test -z "$haveit"; then
7114 for x
in $LDFLAGS $LIBICONV; do
7116 acl_save_prefix
="$prefix"
7117 prefix
="$acl_final_prefix"
7118 acl_save_exec_prefix
="$exec_prefix"
7119 exec_prefix
="$acl_final_exec_prefix"
7121 exec_prefix
="$acl_save_exec_prefix"
7122 prefix
="$acl_save_prefix"
7124 if test "X$x" = "X-L$additional_libdir"; then
7129 if test -z "$haveit"; then
7130 if test -d "$additional_libdir"; then
7131 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7135 for x
in $LDFLAGS $LTLIBICONV; do
7137 acl_save_prefix
="$prefix"
7138 prefix
="$acl_final_prefix"
7139 acl_save_exec_prefix
="$exec_prefix"
7140 exec_prefix
="$acl_final_exec_prefix"
7142 exec_prefix
="$acl_save_exec_prefix"
7143 prefix
="$acl_save_prefix"
7145 if test "X$x" = "X-L$additional_libdir"; then
7150 if test -z "$haveit"; then
7151 if test -d "$additional_libdir"; then
7152 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7159 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
7160 if test "$enable_rpath" != no
; then
7162 for x
in $rpathdirs; do
7163 if test "X$x" = "X$dir"; then
7168 if test -z "$haveit"; then
7169 rpathdirs
="$rpathdirs $dir"
7172 for x
in $ltrpathdirs; do
7173 if test "X$x" = "X$dir"; then
7178 if test -z "$haveit"; then
7179 ltrpathdirs
="$ltrpathdirs $dir"
7184 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7187 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7190 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
7191 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
7197 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
7198 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
7204 if test "X$rpathdirs" != "X"; then
7205 if test -n "$acl_hardcode_libdir_separator"; then
7207 for found_dir
in $rpathdirs; do
7208 alldirs
="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
7210 acl_save_libdir
="$libdir"
7212 eval flag
=\"$acl_hardcode_libdir_flag_spec\"
7213 libdir
="$acl_save_libdir"
7214 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
7216 for found_dir
in $rpathdirs; do
7217 acl_save_libdir
="$libdir"
7219 eval flag
=\"$acl_hardcode_libdir_flag_spec\"
7220 libdir
="$acl_save_libdir"
7221 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
7225 if test "X$ltrpathdirs" != "X"; then
7226 for found_dir
in $ltrpathdirs; do
7227 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
7235 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7236 /* end confdefs.h. */
7237 int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
7246 if ac_fn_c_try_link
"$LINENO"; then :
7248 $as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
7251 rm -f core conftest.err conftest.
$ac_objext \
7252 conftest
$ac_exeext conftest.
$ac_ext
7254 for ac_header
in argz.h inttypes.h limits.h unistd.h sys
/param.h
7256 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7257 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7258 eval as_val
=\$
$as_ac_Header
7259 if test "x$as_val" = x
""yes; then :
7260 cat >>confdefs.h
<<_ACEOF
7261 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7268 for ac_func
in getcwd getegid geteuid getgid getuid mempcpy munmap \
7269 stpcpy strcasecmp strdup strtoul tsearch argz_count argz_stringify \
7270 argz_next __fsetlocking
7272 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7273 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
7274 eval as_val
=\$
$as_ac_var
7275 if test "x$as_val" = x
""yes; then :
7276 cat >>confdefs.h
<<_ACEOF
7277 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
7286 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
7287 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then :
7288 $as_echo_n "(cached) " >&6
7290 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7291 /* end confdefs.h. */
7297 #ifndef feof_unlocked
7298 char *p = (char *) feof_unlocked;
7305 if ac_fn_c_try_compile
"$LINENO"; then :
7306 ac_cv_have_decl_feof_unlocked
=yes
7308 ac_cv_have_decl_feof_unlocked
=no
7310 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
7313 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
7314 if test $ac_cv_have_decl_feof_unlocked = yes; then
7320 cat >>confdefs.h
<<_ACEOF
7321 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
7327 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
7328 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then :
7329 $as_echo_n "(cached) " >&6
7331 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7332 /* end confdefs.h. */
7338 #ifndef fgets_unlocked
7339 char *p = (char *) fgets_unlocked;
7346 if ac_fn_c_try_compile
"$LINENO"; then :
7347 ac_cv_have_decl_fgets_unlocked
=yes
7349 ac_cv_have_decl_fgets_unlocked
=no
7351 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
7354 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
7355 if test $ac_cv_have_decl_fgets_unlocked = yes; then
7361 cat >>confdefs.h
<<_ACEOF
7362 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
7372 am_save_CPPFLAGS
="$CPPFLAGS"
7374 for element
in $INCICONV; do
7376 for x
in $CPPFLAGS; do
7378 acl_save_prefix
="$prefix"
7379 prefix
="$acl_final_prefix"
7380 acl_save_exec_prefix
="$exec_prefix"
7381 exec_prefix
="$acl_final_exec_prefix"
7383 exec_prefix
="$acl_save_exec_prefix"
7384 prefix
="$acl_save_prefix"
7386 if test "X$x" = "X$element"; then
7391 if test -z "$haveit"; then
7392 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
7398 $as_echo_n "checking for iconv... " >&6; }
7399 if test "${am_cv_func_iconv+set}" = set; then :
7400 $as_echo_n "(cached) " >&6
7403 am_cv_func_iconv
="no, consider installing GNU libiconv"
7405 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7406 /* end confdefs.h. */
7412 iconv_t cd = iconv_open("","");
7413 iconv(cd,NULL,NULL,NULL,NULL);
7419 if ac_fn_c_try_link
"$LINENO"; then :
7420 am_cv_func_iconv
=yes
7422 rm -f core conftest.err conftest.
$ac_objext \
7423 conftest
$ac_exeext conftest.
$ac_ext
7424 if test "$am_cv_func_iconv" != yes; then
7425 am_save_LIBS
="$LIBS"
7426 LIBS
="$LIBS $LIBICONV"
7427 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7428 /* end confdefs.h. */
7434 iconv_t cd = iconv_open("","");
7435 iconv(cd,NULL,NULL,NULL,NULL);
7441 if ac_fn_c_try_link
"$LINENO"; then :
7443 am_cv_func_iconv
=yes
7445 rm -f core conftest.err conftest.
$ac_objext \
7446 conftest
$ac_exeext conftest.
$ac_ext
7447 LIBS
="$am_save_LIBS"
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
7452 $as_echo "$am_cv_func_iconv" >&6; }
7453 if test "$am_cv_func_iconv" = yes; then
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
7455 $as_echo_n "checking for working iconv... " >&6; }
7456 if test "${am_cv_func_iconv_works+set}" = set; then :
7457 $as_echo_n "(cached) " >&6
7460 am_save_LIBS
="$LIBS"
7461 if test $am_cv_lib_iconv = yes; then
7462 LIBS
="$LIBS $LIBICONV"
7464 if test "$cross_compiling" = yes; then :
7466 aix
* | hpux
*) am_cv_func_iconv_works
="guessing no" ;;
7467 *) am_cv_func_iconv_works
="guessing yes" ;;
7470 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7471 /* end confdefs.h. */
7477 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
7480 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
7481 if (cd_utf8_to_88591 != (iconv_t)(-1))
7483 static const char input[] = "\342\202\254"; /* EURO SIGN */
7485 const char *inptr = input;
7486 size_t inbytesleft = strlen (input);
7488 size_t outbytesleft = sizeof (buf);
7489 size_t res = iconv (cd_utf8_to_88591,
7490 (char **) &inptr, &inbytesleft,
7491 &outptr, &outbytesleft);
7496 #if 0 /* This bug could be worked around by the caller. */
7497 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
7499 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
7500 if (cd_88591_to_utf8 != (iconv_t)(-1))
7502 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
7504 const char *inptr = input;
7505 size_t inbytesleft = strlen (input);
7507 size_t outbytesleft = sizeof (buf);
7508 size_t res = iconv (cd_88591_to_utf8,
7509 (char **) &inptr, &inbytesleft,
7510 &outptr, &outbytesleft);
7516 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
7518 if (/* Try standardized names. */
7519 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
7520 /* Try IRIX, OSF/1 names. */
7521 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
7522 /* Try AIX names. */
7523 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
7524 /* Try HP-UX names. */
7525 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
7530 if ac_fn_c_try_run
"$LINENO"; then :
7531 am_cv_func_iconv_works
=yes
7533 am_cv_func_iconv_works
=no
7535 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7536 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7539 LIBS
="$am_save_LIBS"
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
7543 $as_echo "$am_cv_func_iconv_works" >&6; }
7544 case "$am_cv_func_iconv_works" in
7545 *no
) am_func_iconv
=no am_cv_lib_iconv
=no
;;
7546 *) am_func_iconv
=yes ;;
7549 am_func_iconv
=no am_cv_lib_iconv
=no
7551 if test "$am_func_iconv" = yes; then
7553 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
7556 if test "$am_cv_lib_iconv" = yes; then
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
7558 $as_echo_n "checking how to link with libiconv... " >&6; }
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
7560 $as_echo "$LIBICONV" >&6; }
7562 CPPFLAGS
="$am_save_CPPFLAGS"
7569 if test "$am_cv_func_iconv" = yes; then
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
7571 $as_echo_n "checking for iconv declaration... " >&6; }
7572 if test "${am_cv_proto_iconv+set}" = set; then :
7573 $as_echo_n "(cached) " >&6
7576 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7577 /* end confdefs.h. */
7585 #if defined(__STDC__) || defined(__cplusplus)
7586 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
7599 if ac_fn_c_try_compile
"$LINENO"; then :
7600 am_cv_proto_iconv_arg1
=""
7602 am_cv_proto_iconv_arg1
="const"
7604 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7605 am_cv_proto_iconv
="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
7608 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
7610 }$am_cv_proto_iconv" >&5
7612 }$am_cv_proto_iconv" >&6; }
7614 cat >>confdefs.h
<<_ACEOF
7615 #define ICONV_CONST $am_cv_proto_iconv_arg1
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NL_LOCALE_NAME macro" >&5
7622 $as_echo_n "checking for NL_LOCALE_NAME macro... " >&6; }
7623 if test "${gt_cv_nl_locale_name+set}" = set; then :
7624 $as_echo_n "(cached) " >&6
7626 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7627 /* end confdefs.h. */
7628 #include <langinfo.h>
7633 char* cs = nl_langinfo(_NL_LOCALE_NAME(LC_MESSAGES));
7640 if ac_fn_c_try_link
"$LINENO"; then :
7641 gt_cv_nl_locale_name
=yes
7643 gt_cv_nl_locale_name
=no
7645 rm -f core conftest.err conftest.
$ac_objext \
7646 conftest
$ac_exeext conftest.
$ac_ext
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_nl_locale_name" >&5
7650 $as_echo "$gt_cv_nl_locale_name" >&6; }
7651 if test $gt_cv_nl_locale_name = yes; then
7653 $as_echo "#define HAVE_NL_LOCALE_NAME 1" >>confdefs.h
7657 for ac_prog
in bison
7659 # Extract the first word of "$ac_prog", so it can be a program name with args.
7660 set dummy
$ac_prog; ac_word
=$2
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7662 $as_echo_n "checking for $ac_word... " >&6; }
7663 if test "${ac_cv_prog_INTLBISON+set}" = set; then :
7664 $as_echo_n "(cached) " >&6
7666 if test -n "$INTLBISON"; then
7667 ac_cv_prog_INTLBISON
="$INTLBISON" # Let the user override the test.
7669 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7673 test -z "$as_dir" && as_dir
=.
7674 for ac_exec_ext
in '' $ac_executable_extensions; do
7675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7676 ac_cv_prog_INTLBISON
="$ac_prog"
7677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7686 INTLBISON
=$ac_cv_prog_INTLBISON
7687 if test -n "$INTLBISON"; then
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
7689 $as_echo "$INTLBISON" >&6; }
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7692 $as_echo "no" >&6; }
7696 test -n "$INTLBISON" && break
7699 if test -z "$INTLBISON"; then
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
7703 $as_echo_n "checking version of bison... " >&6; }
7704 ac_prog_version
=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
7705 case $ac_prog_version in
7706 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
7707 1.2[6-9]* |
1.
[3-9][0-9]* |
[2-9].
*)
7708 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
7709 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
7712 $as_echo "$ac_prog_version" >&6; }
7714 if test $ac_verc_fail = yes; then
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
7720 $as_echo_n "checking for long long int... " >&6; }
7721 if test "${ac_cv_type_long_long_int+set}" = set; then :
7722 $as_echo_n "(cached) " >&6
7724 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7725 /* end confdefs.h. */
7727 /* Test preprocessor. */
7728 #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
7729 error in preprocessor;
7731 #if ! (18446744073709551615ULL <= -1ull)
7732 error in preprocessor;
7734 /* Test literals. */
7735 long long int ll = 9223372036854775807ll;
7736 long long int nll = -9223372036854775807LL;
7737 unsigned long long int ull = 18446744073709551615ULL;
7738 /* Test constant expressions. */
7739 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
7741 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
7747 /* Test availability of runtime routines for shift and division. */
7748 long long int llmax = 9223372036854775807ll;
7749 unsigned long long int ullmax = 18446744073709551615ull;
7750 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
7751 | (llmax / ll) | (llmax % ll)
7752 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
7753 | (ullmax / ull) | (ullmax % ull));
7759 if ac_fn_c_try_link
"$LINENO"; then :
7760 if test "$cross_compiling" = yes; then :
7761 ac_cv_type_long_long_int
=yes
7763 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7764 /* end confdefs.h. */
7768 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
7769 # define LLONG_MAX (HALF - 1 + HALF)
7774 long long int n = 1;
7778 long long int m = n << i;
7781 if (LLONG_MAX / 2 < m)
7789 if ac_fn_c_try_run
"$LINENO"; then :
7790 ac_cv_type_long_long_int
=yes
7792 ac_cv_type_long_long_int
=no
7794 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7795 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7799 ac_cv_type_long_long_int
=no
7801 rm -f core conftest.err conftest.
$ac_objext \
7802 conftest
$ac_exeext conftest.
$ac_ext
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
7805 $as_echo "$ac_cv_type_long_long_int" >&6; }
7806 if test $ac_cv_type_long_long_int = yes; then
7808 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
7814 $as_echo_n "checking for wchar_t... " >&6; }
7815 if test "${gt_cv_c_wchar_t+set}" = set; then :
7816 $as_echo_n "(cached) " >&6
7818 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7819 /* end confdefs.h. */
7821 wchar_t foo = (wchar_t)'\0';
7830 if ac_fn_c_try_compile
"$LINENO"; then :
7835 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
7838 $as_echo "$gt_cv_c_wchar_t" >&6; }
7839 if test $gt_cv_c_wchar_t = yes; then
7841 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
7847 $as_echo_n "checking for wint_t... " >&6; }
7848 if test "${gt_cv_c_wint_t+set}" = set; then :
7849 $as_echo_n "(cached) " >&6
7851 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7852 /* end confdefs.h. */
7854 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
7856 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
7857 before <wchar.h>. */
7862 wint_t foo = (wchar_t)'\0';
7871 if ac_fn_c_try_compile
"$LINENO"; then :
7876 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
7879 $as_echo "$gt_cv_c_wint_t" >&6; }
7880 if test $gt_cv_c_wint_t = yes; then
7882 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
7890 $as_echo_n "checking for intmax_t... " >&6; }
7891 if test "${gt_cv_c_intmax_t+set}" = set; then :
7892 $as_echo_n "(cached) " >&6
7894 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7895 /* end confdefs.h. */
7899 #if HAVE_STDINT_H_WITH_UINTMAX
7902 #if HAVE_INTTYPES_H_WITH_UINTMAX
7903 #include <inttypes.h>
7915 if ac_fn_c_try_compile
"$LINENO"; then :
7916 gt_cv_c_intmax_t
=yes
7920 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
7923 $as_echo "$gt_cv_c_intmax_t" >&6; }
7924 if test $gt_cv_c_intmax_t = yes; then
7926 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
7933 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
7934 if test "${gt_cv_func_printf_posix+set}" = set; then :
7935 $as_echo_n "(cached) " >&6
7938 if test "$cross_compiling" = yes; then :
7940 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7941 /* end confdefs.h. */
7943 #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
7948 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7949 $EGREP "notposix" >/dev
/null
2>&1; then :
7950 gt_cv_func_printf_posix
="guessing no"
7952 gt_cv_func_printf_posix
="guessing yes"
7958 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7959 /* end confdefs.h. */
7963 /* The string "%2$d %1$d", with dollar characters protected from the shell's
7964 dollar expansion (possibly an autoconf bug). */
7965 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
7966 static char buf[100];
7969 sprintf (buf, format, 33, 55);
7970 return (strcmp (buf, "55 33") != 0);
7973 if ac_fn_c_try_run
"$LINENO"; then :
7974 gt_cv_func_printf_posix
=yes
7976 gt_cv_func_printf_posix
=no
7978 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7979 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
7985 $as_echo "$gt_cv_func_printf_posix" >&6; }
7986 case $gt_cv_func_printf_posix in
7989 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
7996 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
7997 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
7998 $as_echo_n "(cached) " >&6
8000 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8001 /* end confdefs.h. */
8003 #include <features.h>
8004 #ifdef __GNU_LIBRARY__
8005 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
8011 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8012 $EGREP "Lucky GNU user" >/dev
/null
2>&1; then :
8013 ac_cv_gnu_library_2_1
=yes
8015 ac_cv_gnu_library_2_1
=no
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
8023 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
8025 GLIBC21
="$ac_cv_gnu_library_2_1"
8029 for ac_header
in stdint.h
8031 ac_fn_c_check_header_mongrel
"$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
8032 if test "x$ac_cv_header_stdint_h" = x
""yes; then :
8033 cat >>confdefs.h
<<_ACEOF
8034 #define HAVE_STDINT_H 1
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
8042 $as_echo_n "checking for SIZE_MAX... " >&6; }
8043 if test "${gl_cv_size_max+set}" = set; then :
8044 $as_echo_n "(cached) " >&6
8048 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8049 /* end confdefs.h. */
8060 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8061 $EGREP "Found it" >/dev
/null
2>&1; then :
8066 if test -z "$gl_cv_size_max"; then
8067 if ac_fn_c_compute_int
"$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
8068 #include <limits.h>"; then :
8071 size_t_bits_minus_1
=
8074 if ac_fn_c_compute_int
"$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
8080 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
8081 if test $fits_in_uint = 1; then
8082 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8083 /* end confdefs.h. */
8086 extern unsigned long foo;
8096 if ac_fn_c_try_compile
"$LINENO"; then :
8099 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8101 if test $fits_in_uint = 1; then
8102 gl_cv_size_max
="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
8104 gl_cv_size_max
="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
8107 gl_cv_size_max
='((size_t)~(size_t)0)'
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
8114 $as_echo "$gl_cv_size_max" >&6; }
8115 if test "$gl_cv_size_max" != yes; then
8117 cat >>confdefs.h
<<_ACEOF
8118 #define SIZE_MAX $gl_cv_size_max
8126 for ac_header
in stdint.h
8128 ac_fn_c_check_header_mongrel
"$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
8129 if test "x$ac_cv_header_stdint_h" = x
""yes; then :
8130 cat >>confdefs.h
<<_ACEOF
8131 #define HAVE_STDINT_H 1
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
8141 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
8142 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
8143 $as_echo_n "(cached) " >&6
8145 gt_save_LIBS
="$LIBS"
8146 LIBS
="$LIBS -Wl,-framework -Wl,CoreFoundation"
8147 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8148 /* end confdefs.h. */
8149 #include <CoreFoundation/CFPreferences.h>
8153 CFPreferencesCopyAppValue(NULL, NULL)
8158 if ac_fn_c_try_link
"$LINENO"; then :
8159 gt_cv_func_CFPreferencesCopyAppValue
=yes
8161 gt_cv_func_CFPreferencesCopyAppValue
=no
8163 rm -f core conftest.err conftest.
$ac_objext \
8164 conftest
$ac_exeext conftest.
$ac_ext
8165 LIBS
="$gt_save_LIBS"
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
8168 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
8169 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
8171 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
8175 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
8176 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
8177 $as_echo_n "(cached) " >&6
8179 gt_save_LIBS
="$LIBS"
8180 LIBS
="$LIBS -Wl,-framework -Wl,CoreFoundation"
8181 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8182 /* end confdefs.h. */
8183 #include <CoreFoundation/CFLocale.h>
8187 CFLocaleCopyCurrent();
8192 if ac_fn_c_try_link
"$LINENO"; then :
8193 gt_cv_func_CFLocaleCopyCurrent
=yes
8195 gt_cv_func_CFLocaleCopyCurrent
=no
8197 rm -f core conftest.err conftest.
$ac_objext \
8198 conftest
$ac_exeext conftest.
$ac_ext
8199 LIBS
="$gt_save_LIBS"
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
8202 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
8203 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
8205 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
8209 if test $gt_cv_func_CFPreferencesCopyAppValue = yes ||
test $gt_cv_func_CFLocaleCopyCurrent = yes; then
8210 INTL_MACOSX_LIBS
="-Wl,-framework -Wl,CoreFoundation"
8219 ac_fn_c_check_type
"$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
8220 if test "x$ac_cv_type_ptrdiff_t" = x
""yes; then :
8224 $as_echo "#define ptrdiff_t long" >>confdefs.h
8229 for ac_header
in stddef.h stdlib.h string.h
8231 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8232 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8233 eval as_val
=\$
$as_ac_Header
8234 if test "x$as_val" = x
""yes; then :
8235 cat >>confdefs.h
<<_ACEOF
8236 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8243 for ac_func
in asprintf fwprintf putenv setenv setlocale snprintf wcslen
8245 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8246 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
8247 eval as_val
=\$
$as_ac_var
8248 if test "x$as_val" = x
""yes; then :
8249 cat >>confdefs.h
<<_ACEOF
8250 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
8259 $as_echo_n "checking whether _snprintf is declared... " >&6; }
8260 if test "${ac_cv_have_decl__snprintf+set}" = set; then :
8261 $as_echo_n "(cached) " >&6
8263 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8264 /* end confdefs.h. */
8271 char *p = (char *) _snprintf;
8278 if ac_fn_c_try_compile
"$LINENO"; then :
8279 ac_cv_have_decl__snprintf
=yes
8281 ac_cv_have_decl__snprintf
=no
8283 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
8286 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
8287 if test $ac_cv_have_decl__snprintf = yes; then
8293 cat >>confdefs.h
<<_ACEOF
8294 #define HAVE_DECL__SNPRINTF $gt_value
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
8300 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
8301 if test "${ac_cv_have_decl__snwprintf+set}" = set; then :
8302 $as_echo_n "(cached) " >&6
8304 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8305 /* end confdefs.h. */
8312 char *p = (char *) _snwprintf;
8319 if ac_fn_c_try_compile
"$LINENO"; then :
8320 ac_cv_have_decl__snwprintf
=yes
8322 ac_cv_have_decl__snwprintf
=no
8324 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
8327 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
8328 if test $ac_cv_have_decl__snwprintf = yes; then
8334 cat >>confdefs.h
<<_ACEOF
8335 #define HAVE_DECL__SNWPRINTF $gt_value
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
8342 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
8343 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then :
8344 $as_echo_n "(cached) " >&6
8346 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8347 /* end confdefs.h. */
8353 #ifndef getc_unlocked
8354 char *p = (char *) getc_unlocked;
8361 if ac_fn_c_try_compile
"$LINENO"; then :
8362 ac_cv_have_decl_getc_unlocked
=yes
8364 ac_cv_have_decl_getc_unlocked
=no
8366 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
8369 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
8370 if test $ac_cv_have_decl_getc_unlocked = yes; then
8376 cat >>confdefs.h
<<_ACEOF
8377 #define HAVE_DECL_GETC_UNLOCKED $gt_value
8382 case $gt_cv_func_printf_posix in
8383 *yes) HAVE_POSIX_PRINTF
=1 ;;
8384 *) HAVE_POSIX_PRINTF
=0 ;;
8387 if test "$ac_cv_func_asprintf" = yes; then
8393 if test "$ac_cv_func_snprintf" = yes; then
8399 if test "$ac_cv_func_wprintf" = yes; then
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
8408 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
8409 if test "${am_cv_langinfo_codeset+set}" = set; then :
8410 $as_echo_n "(cached) " >&6
8412 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8413 /* end confdefs.h. */
8414 #include <langinfo.h>
8418 char* cs = nl_langinfo(CODESET); return !cs;
8423 if ac_fn_c_try_link
"$LINENO"; then :
8424 am_cv_langinfo_codeset
=yes
8426 am_cv_langinfo_codeset
=no
8428 rm -f core conftest.err conftest.
$ac_objext \
8429 conftest
$ac_exeext conftest.
$ac_ext
8432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
8433 $as_echo "$am_cv_langinfo_codeset" >&6; }
8434 if test $am_cv_langinfo_codeset = yes; then
8436 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
8442 $as_echo_n "checking for LC_MESSAGES... " >&6; }
8443 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then :
8444 $as_echo_n "(cached) " >&6
8446 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8447 /* end confdefs.h. */
8457 if ac_fn_c_try_link
"$LINENO"; then :
8458 gt_cv_val_LC_MESSAGES
=yes
8460 gt_cv_val_LC_MESSAGES
=no
8462 rm -f core conftest.err conftest.
$ac_objext \
8463 conftest
$ac_exeext conftest.
$ac_ext
8465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
8466 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
8467 if test $gt_cv_val_LC_MESSAGES = yes; then
8469 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
8474 if test "$enable_shared" = yes; then
8476 mingw
* | cygwin
*) is_woe32dll
=yes ;;
8477 *) is_woe32dll
=no
;;
8482 WOE32DLL
=$is_woe32dll
8486 mingw
* | cygwin
*) is_woe32
=yes ;;
8491 if test $WOE32 = yes; then
8492 if test -n "$ac_tool_prefix"; then
8493 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
8494 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
8495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8496 $as_echo_n "checking for $ac_word... " >&6; }
8497 if test "${ac_cv_prog_WINDRES+set}" = set; then :
8498 $as_echo_n "(cached) " >&6
8500 if test -n "$WINDRES"; then
8501 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
8503 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8507 test -z "$as_dir" && as_dir
=.
8508 for ac_exec_ext
in '' $ac_executable_extensions; do
8509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8510 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
8511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8520 WINDRES
=$ac_cv_prog_WINDRES
8521 if test -n "$WINDRES"; then
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8523 $as_echo "$WINDRES" >&6; }
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8526 $as_echo "no" >&6; }
8531 if test -z "$ac_cv_prog_WINDRES"; then
8532 ac_ct_WINDRES
=$WINDRES
8533 # Extract the first word of "windres", so it can be a program name with args.
8534 set dummy windres
; ac_word
=$2
8535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8536 $as_echo_n "checking for $ac_word... " >&6; }
8537 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
8538 $as_echo_n "(cached) " >&6
8540 if test -n "$ac_ct_WINDRES"; then
8541 ac_cv_prog_ac_ct_WINDRES
="$ac_ct_WINDRES" # Let the user override the test.
8543 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8547 test -z "$as_dir" && as_dir
=.
8548 for ac_exec_ext
in '' $ac_executable_extensions; do
8549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8550 ac_cv_prog_ac_ct_WINDRES
="windres"
8551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8560 ac_ct_WINDRES
=$ac_cv_prog_ac_ct_WINDRES
8561 if test -n "$ac_ct_WINDRES"; then
8562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
8563 $as_echo "$ac_ct_WINDRES" >&6; }
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8566 $as_echo "no" >&6; }
8569 if test "x$ac_ct_WINDRES" = x
; then
8572 case $cross_compiling:$ac_tool_warned in
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8575 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8576 ac_tool_warned
=yes ;;
8578 WINDRES
=$ac_ct_WINDRES
8581 WINDRES
="$ac_cv_prog_WINDRES"
8616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
8617 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
8618 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
8619 $as_echo_n "(cached) " >&6
8621 gt_save_LIBS
="$LIBS"
8622 LIBS
="$LIBS -Wl,-framework -Wl,CoreFoundation"
8623 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8624 /* end confdefs.h. */
8625 #include <CoreFoundation/CFPreferences.h>
8629 CFPreferencesCopyAppValue(NULL, NULL)
8634 if ac_fn_c_try_link
"$LINENO"; then :
8635 gt_cv_func_CFPreferencesCopyAppValue
=yes
8637 gt_cv_func_CFPreferencesCopyAppValue
=no
8639 rm -f core conftest.err conftest.
$ac_objext \
8640 conftest
$ac_exeext conftest.
$ac_ext
8641 LIBS
="$gt_save_LIBS"
8643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
8644 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
8645 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
8647 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
8651 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
8652 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
8653 $as_echo_n "(cached) " >&6
8655 gt_save_LIBS
="$LIBS"
8656 LIBS
="$LIBS -Wl,-framework -Wl,CoreFoundation"
8657 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8658 /* end confdefs.h. */
8659 #include <CoreFoundation/CFLocale.h>
8663 CFLocaleCopyCurrent();
8668 if ac_fn_c_try_link
"$LINENO"; then :
8669 gt_cv_func_CFLocaleCopyCurrent
=yes
8671 gt_cv_func_CFLocaleCopyCurrent
=no
8673 rm -f core conftest.err conftest.
$ac_objext \
8674 conftest
$ac_exeext conftest.
$ac_ext
8675 LIBS
="$gt_save_LIBS"
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
8678 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
8679 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
8681 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
8685 if test $gt_cv_func_CFPreferencesCopyAppValue = yes ||
test $gt_cv_func_CFLocaleCopyCurrent = yes; then
8686 INTL_MACOSX_LIBS
="-Wl,-framework -Wl,CoreFoundation"
8694 BUILD_INCLUDED_LIBINTL
=no
8695 USE_INCLUDED_LIBINTL
=no
8701 case " $gt_needs " in
8702 *" need-formatstring-macros "*) gt_api_version
=3 ;;
8703 *" need-ngettext "*) gt_api_version
=2 ;;
8704 *) gt_api_version
=1 ;;
8706 gt_func_gnugettext_libc
="gt_cv_func_gnugettext${gt_api_version}_libc"
8707 gt_func_gnugettext_libintl
="gt_cv_func_gnugettext${gt_api_version}_libintl"
8709 if test "$USE_NLS" = "yes"; then
8710 gt_use_preinstalled_gnugettext
=no
8712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
8713 $as_echo_n "checking whether included gettext is requested... " >&6; }
8715 # Check whether --with-included-gettext was given.
8716 if test "${with_included_gettext+set}" = set; then :
8717 withval
=$with_included_gettext; nls_cv_force_use_gnu_gettext
=$withval
8719 nls_cv_force_use_gnu_gettext
=no
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
8723 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
8725 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
8726 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
8729 if test $gt_api_version -ge 3; then
8730 gt_revision_test_code
='
8731 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
8732 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
8734 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
8737 gt_revision_test_code
=
8739 if test $gt_api_version -ge 2; then
8740 gt_expression_test_code
=' + * ngettext ("", "", 0)'
8742 gt_expression_test_code
=
8745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
8746 $as_echo_n "checking for GNU gettext in libc... " >&6; }
8747 if { as_var
=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then :
8748 $as_echo_n "(cached) " >&6
8750 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8751 /* end confdefs.h. */
8752 #include <libintl.h>
8753 $gt_revision_test_code
8754 extern int _nl_msg_cat_cntr;
8755 extern int *_nl_domain_bindings;
8759 bindtextdomain ("", "");
8760 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
8765 if ac_fn_c_try_link
"$LINENO"; then :
8766 eval "$gt_func_gnugettext_libc=yes"
8768 eval "$gt_func_gnugettext_libc=no"
8770 rm -f core conftest.err conftest.
$ac_objext \
8771 conftest
$ac_exeext conftest.
$ac_ext
8773 eval ac_res
=\$
$gt_func_gnugettext_libc
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8775 $as_echo "$ac_res" >&6; }
8777 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
8785 acl_save_prefix
="$prefix"
8786 prefix
="$acl_final_prefix"
8787 acl_save_exec_prefix
="$exec_prefix"
8788 exec_prefix
="$acl_final_exec_prefix"
8790 eval additional_includedir
=\"$includedir\"
8791 eval additional_libdir
=\"$libdir\"
8793 exec_prefix
="$acl_save_exec_prefix"
8794 prefix
="$acl_save_prefix"
8797 # Check whether --with-libintl-prefix was given.
8798 if test "${with_libintl_prefix+set}" = set; then :
8799 withval
=$with_libintl_prefix;
8800 if test "X$withval" = "Xno"; then
8803 if test "X$withval" = "X"; then
8805 acl_save_prefix
="$prefix"
8806 prefix
="$acl_final_prefix"
8807 acl_save_exec_prefix
="$exec_prefix"
8808 exec_prefix
="$acl_final_exec_prefix"
8810 eval additional_includedir
=\"$includedir\"
8811 eval additional_libdir
=\"$libdir\"
8813 exec_prefix
="$acl_save_exec_prefix"
8814 prefix
="$acl_save_prefix"
8817 additional_includedir
="$withval/include"
8818 additional_libdir
="$withval/$acl_libdirstem"
8830 names_already_handled
=
8831 names_next_round
='intl '
8832 while test -n "$names_next_round"; do
8833 names_this_round
="$names_next_round"
8835 for name
in $names_this_round; do
8837 for n
in $names_already_handled; do
8838 if test "$n" = "$name"; then
8843 if test -z "$already_handled"; then
8844 names_already_handled
="$names_already_handled $name"
8845 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8846 eval value
=\"\
$HAVE_LIB$uppername\"
8847 if test -n "$value"; then
8848 if test "$value" = yes; then
8849 eval value
=\"\
$LIB$uppername\"
8850 test -z "$value" || LIBINTL
="${LIBINTL}${LIBINTL:+ }$value"
8851 eval value
=\"\
$LTLIB$uppername\"
8852 test -z "$value" || LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }$value"
8861 eval libname
=\"$acl_libname_spec\" # typically: libname=lib$name
8862 if test -n "$acl_shlibext"; then
8863 shrext
=".$acl_shlibext" # typically: shrext=.so
8867 if test $use_additional = yes; then
8868 dir
="$additional_libdir"
8869 if test -n "$acl_shlibext"; then
8870 if test -f "$dir/$libname$shrext"; then
8872 found_so
="$dir/$libname$shrext"
8874 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8875 ver
=`(cd "$dir" && \
8876 for f in "$libname$shrext".*; do echo "$f"; done \
8877 | sed -e "s,^$libname$shrext\\\\.,," \
8878 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8879 | sed 1q ) 2>/dev/null`
8880 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8882 found_so
="$dir/$libname$shrext.$ver"
8885 eval library_names
=\"$acl_library_names_spec\"
8886 for f
in $library_names; do
8887 if test -f "$dir/$f"; then
8896 if test "X$found_dir" = "X"; then
8897 if test -f "$dir/$libname.$acl_libext"; then
8899 found_a
="$dir/$libname.$acl_libext"
8902 if test "X$found_dir" != "X"; then
8903 if test -f "$dir/$libname.la"; then
8904 found_la
="$dir/$libname.la"
8908 if test "X$found_dir" = "X"; then
8909 for x
in $LDFLAGS $LTLIBINTL; do
8911 acl_save_prefix
="$prefix"
8912 prefix
="$acl_final_prefix"
8913 acl_save_exec_prefix
="$exec_prefix"
8914 exec_prefix
="$acl_final_exec_prefix"
8916 exec_prefix
="$acl_save_exec_prefix"
8917 prefix
="$acl_save_prefix"
8921 dir
=`echo "X$x" | sed -e 's/^X-L//'`
8922 if test -n "$acl_shlibext"; then
8923 if test -f "$dir/$libname$shrext"; then
8925 found_so
="$dir/$libname$shrext"
8927 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8928 ver
=`(cd "$dir" && \
8929 for f in "$libname$shrext".*; do echo "$f"; done \
8930 | sed -e "s,^$libname$shrext\\\\.,," \
8931 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8932 | sed 1q ) 2>/dev/null`
8933 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8935 found_so
="$dir/$libname$shrext.$ver"
8938 eval library_names
=\"$acl_library_names_spec\"
8939 for f
in $library_names; do
8940 if test -f "$dir/$f"; then
8949 if test "X$found_dir" = "X"; then
8950 if test -f "$dir/$libname.$acl_libext"; then
8952 found_a
="$dir/$libname.$acl_libext"
8955 if test "X$found_dir" != "X"; then
8956 if test -f "$dir/$libname.la"; then
8957 found_la
="$dir/$libname.la"
8962 if test "X$found_dir" != "X"; then
8967 if test "X$found_dir" != "X"; then
8968 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
8969 if test "X$found_so" != "X"; then
8970 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/$acl_libdirstem"; then
8971 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
8974 for x
in $ltrpathdirs; do
8975 if test "X$x" = "X$found_dir"; then
8980 if test -z "$haveit"; then
8981 ltrpathdirs
="$ltrpathdirs $found_dir"
8983 if test "$acl_hardcode_direct" = yes; then
8984 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
8986 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no
; then
8987 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
8989 for x
in $rpathdirs; do
8990 if test "X$x" = "X$found_dir"; then
8995 if test -z "$haveit"; then
8996 rpathdirs
="$rpathdirs $found_dir"
9000 for x
in $LDFLAGS $LIBINTL; do
9002 acl_save_prefix
="$prefix"
9003 prefix
="$acl_final_prefix"
9004 acl_save_exec_prefix
="$exec_prefix"
9005 exec_prefix
="$acl_final_exec_prefix"
9007 exec_prefix
="$acl_save_exec_prefix"
9008 prefix
="$acl_save_prefix"
9010 if test "X$x" = "X-L$found_dir"; then
9015 if test -z "$haveit"; then
9016 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$found_dir"
9018 if test "$acl_hardcode_minus_L" != no
; then
9019 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
9021 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
9027 if test "X$found_a" != "X"; then
9028 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_a"
9030 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
9033 additional_includedir
=
9034 case "$found_dir" in
9035 */$acl_libdirstem |
*/$acl_libdirstem/)
9036 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9037 LIBINTL_PREFIX
="$basedir"
9038 additional_includedir
="$basedir/include"
9041 if test "X$additional_includedir" != "X"; then
9042 if test "X$additional_includedir" != "X/usr/include"; then
9044 if test "X$additional_includedir" = "X/usr/local/include"; then
9045 if test -n "$GCC"; then
9047 linux
* | gnu
* | k
*bsd
*-gnu) haveit
=yes;;
9051 if test -z "$haveit"; then
9052 for x
in $CPPFLAGS $INCINTL; do
9054 acl_save_prefix
="$prefix"
9055 prefix
="$acl_final_prefix"
9056 acl_save_exec_prefix
="$exec_prefix"
9057 exec_prefix
="$acl_final_exec_prefix"
9059 exec_prefix
="$acl_save_exec_prefix"
9060 prefix
="$acl_save_prefix"
9062 if test "X$x" = "X-I$additional_includedir"; then
9067 if test -z "$haveit"; then
9068 if test -d "$additional_includedir"; then
9069 INCINTL
="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9075 if test -n "$found_la"; then
9076 save_libdir
="$libdir"
9078 */* |
*\\*) .
"$found_la" ;;
9079 *) .
"./$found_la" ;;
9081 libdir
="$save_libdir"
9082 for dep
in $dependency_libs; do
9085 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
9086 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
9088 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
9089 if test -n "$GCC"; then
9091 linux
* | gnu
* | k
*bsd
*-gnu) haveit
=yes;;
9095 if test -z "$haveit"; then
9097 for x
in $LDFLAGS $LIBINTL; do
9099 acl_save_prefix
="$prefix"
9100 prefix
="$acl_final_prefix"
9101 acl_save_exec_prefix
="$exec_prefix"
9102 exec_prefix
="$acl_final_exec_prefix"
9104 exec_prefix
="$acl_save_exec_prefix"
9105 prefix
="$acl_save_prefix"
9107 if test "X$x" = "X-L$additional_libdir"; then
9112 if test -z "$haveit"; then
9113 if test -d "$additional_libdir"; then
9114 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
9118 for x
in $LDFLAGS $LTLIBINTL; do
9120 acl_save_prefix
="$prefix"
9121 prefix
="$acl_final_prefix"
9122 acl_save_exec_prefix
="$exec_prefix"
9123 exec_prefix
="$acl_final_exec_prefix"
9125 exec_prefix
="$acl_save_exec_prefix"
9126 prefix
="$acl_save_prefix"
9128 if test "X$x" = "X-L$additional_libdir"; then
9133 if test -z "$haveit"; then
9134 if test -d "$additional_libdir"; then
9135 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
9142 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
9143 if test "$enable_rpath" != no
; then
9145 for x
in $rpathdirs; do
9146 if test "X$x" = "X$dir"; then
9151 if test -z "$haveit"; then
9152 rpathdirs
="$rpathdirs $dir"
9155 for x
in $ltrpathdirs; do
9156 if test "X$x" = "X$dir"; then
9161 if test -z "$haveit"; then
9162 ltrpathdirs
="$ltrpathdirs $dir"
9167 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9170 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9173 LIBINTL
="${LIBINTL}${LIBINTL:+ }$dep"
9174 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }$dep"
9180 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
9181 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
9187 if test "X$rpathdirs" != "X"; then
9188 if test -n "$acl_hardcode_libdir_separator"; then
9190 for found_dir
in $rpathdirs; do
9191 alldirs
="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
9193 acl_save_libdir
="$libdir"
9195 eval flag
=\"$acl_hardcode_libdir_flag_spec\"
9196 libdir
="$acl_save_libdir"
9197 LIBINTL
="${LIBINTL}${LIBINTL:+ }$flag"
9199 for found_dir
in $rpathdirs; do
9200 acl_save_libdir
="$libdir"
9202 eval flag
=\"$acl_hardcode_libdir_flag_spec\"
9203 libdir
="$acl_save_libdir"
9204 LIBINTL
="${LIBINTL}${LIBINTL:+ }$flag"
9208 if test "X$ltrpathdirs" != "X"; then
9209 for found_dir
in $ltrpathdirs; do
9210 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
9215 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
9216 if { as_var
=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then :
9217 $as_echo_n "(cached) " >&6
9219 gt_save_CPPFLAGS
="$CPPFLAGS"
9220 CPPFLAGS
="$CPPFLAGS $INCINTL"
9221 gt_save_LIBS
="$LIBS"
9222 LIBS
="$LIBS $LIBINTL"
9223 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9224 /* end confdefs.h. */
9225 #include <libintl.h>
9226 $gt_revision_test_code
9227 extern int _nl_msg_cat_cntr;
9232 const char *_nl_expand_alias (const char *);
9236 bindtextdomain ("", "");
9237 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
9242 if ac_fn_c_try_link
"$LINENO"; then :
9243 eval "$gt_func_gnugettext_libintl=yes"
9245 eval "$gt_func_gnugettext_libintl=no"
9247 rm -f core conftest.err conftest.
$ac_objext \
9248 conftest
$ac_exeext conftest.
$ac_ext
9249 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
9250 LIBS
="$LIBS $LIBICONV"
9251 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9252 /* end confdefs.h. */
9253 #include <libintl.h>
9254 $gt_revision_test_code
9255 extern int _nl_msg_cat_cntr;
9260 const char *_nl_expand_alias (const char *);
9264 bindtextdomain ("", "");
9265 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
9270 if ac_fn_c_try_link
"$LINENO"; then :
9271 LIBINTL
="$LIBINTL $LIBICONV"
9272 LTLIBINTL
="$LTLIBINTL $LTLIBICONV"
9273 eval "$gt_func_gnugettext_libintl=yes"
9276 rm -f core conftest.err conftest.
$ac_objext \
9277 conftest
$ac_exeext conftest.
$ac_ext
9279 CPPFLAGS
="$gt_save_CPPFLAGS"
9280 LIBS
="$gt_save_LIBS"
9282 eval ac_res
=\$
$gt_func_gnugettext_libintl
9283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9284 $as_echo "$ac_res" >&6; }
9287 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
9288 ||
{ { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
9289 && test "$PACKAGE" != gettext-runtime \
9290 && test "$PACKAGE" != gettext-tools
; }; then
9291 gt_use_preinstalled_gnugettext
=yes
9299 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
9300 nls_cv_use_gnu_gettext
=yes
9304 if test "$nls_cv_use_gnu_gettext" = "yes"; then
9305 BUILD_INCLUDED_LIBINTL
=yes
9306 USE_INCLUDED_LIBINTL
=yes
9307 LIBINTL
="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
9308 LTLIBINTL
="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
9309 LIBS
=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
9313 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9314 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
9319 if test -n "$INTL_MACOSX_LIBS"; then
9320 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9321 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
9322 LIBINTL
="$LIBINTL $INTL_MACOSX_LIBS"
9323 LTLIBINTL
="$LTLIBINTL $INTL_MACOSX_LIBS"
9327 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9328 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
9330 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
9337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
9338 $as_echo_n "checking whether to use NLS... " >&6; }
9339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
9340 $as_echo "$USE_NLS" >&6; }
9341 if test "$USE_NLS" = "yes"; then
9342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
9343 $as_echo_n "checking where the gettext function comes from... " >&6; }
9344 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9345 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
9346 gt_source
="external libintl"
9351 gt_source
="included intl directory"
9353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
9354 $as_echo "$gt_source" >&6; }
9357 if test "$USE_NLS" = "yes"; then
9359 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9360 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
9361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
9362 $as_echo_n "checking how to link with libintl... " >&6; }
9363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
9364 $as_echo "$LIBINTL" >&6; }
9366 for element
in $INCINTL; do
9368 for x
in $CPPFLAGS; do
9370 acl_save_prefix
="$prefix"
9371 prefix
="$acl_final_prefix"
9372 acl_save_exec_prefix
="$exec_prefix"
9373 exec_prefix
="$acl_final_exec_prefix"
9375 exec_prefix
="$acl_save_exec_prefix"
9376 prefix
="$acl_save_prefix"
9378 if test "X$x" = "X$element"; then
9383 if test -z "$haveit"; then
9384 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
9391 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
9394 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
9402 if test "$PACKAGE" = gettext-runtime ||
test "$PACKAGE" = gettext-tools
; then
9403 BUILD_INCLUDED_LIBINTL
=yes
9411 nls_cv_header_libgt
=
9423 if test "$USE_INCLUDED_LIBINTL" = yes; then
9424 INTLOBJS
="\$(GETTOBJS)"
9428 INTL_LIBTOOL_SUFFIX_PREFIX
=
9444 abook_localedir
="$datadir/locale"
9445 abook_localedir
=`( test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9446 eval tmp_abook_prefix=\""$abook_localedir"\"
9447 eval echo $tmp_abook_prefix
9450 localedir
="\$(datadir)/locale"
9453 # Check whether --with-localedir was given.
9454 if test "${with_localedir+set}" = set; then :
9455 withval
=$with_localedir;
9458 if test "x$with_localedir" != "x"; then
9459 abook_localedir
="$with_localedir"
9460 localedir
="$with_localedir"
9464 cat >>confdefs.h
<<_ACEOF
9465 #define LOCALEDIR "$abook_localedir"
9470 if test x
$USE_INCLUDED_LIBINTL = xyes
; then
9471 USE_INCLUDED_INTL_H_TRUE
=
9472 USE_INCLUDED_INTL_H_FALSE
='#'
9474 USE_INCLUDED_INTL_H_TRUE
='#'
9475 USE_INCLUDED_INTL_H_FALSE
=
9481 ac_cpp
='$CPP $CPPFLAGS'
9482 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9483 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9484 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
9485 if test -n "$ac_tool_prefix"; then
9486 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
9487 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
9488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9489 $as_echo_n "checking for $ac_word... " >&6; }
9490 if test "${ac_cv_prog_CC+set}" = set; then :
9491 $as_echo_n "(cached) " >&6
9493 if test -n "$CC"; then
9494 ac_cv_prog_CC
="$CC" # Let the user override the test.
9496 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9500 test -z "$as_dir" && as_dir
=.
9501 for ac_exec_ext
in '' $ac_executable_extensions; do
9502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9503 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
9504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9514 if test -n "$CC"; then
9515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
9516 $as_echo "$CC" >&6; }
9518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9519 $as_echo "no" >&6; }
9524 if test -z "$ac_cv_prog_CC"; then
9526 # Extract the first word of "gcc", so it can be a program name with args.
9527 set dummy gcc
; ac_word
=$2
9528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9529 $as_echo_n "checking for $ac_word... " >&6; }
9530 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
9531 $as_echo_n "(cached) " >&6
9533 if test -n "$ac_ct_CC"; then
9534 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
9536 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9540 test -z "$as_dir" && as_dir
=.
9541 for ac_exec_ext
in '' $ac_executable_extensions; do
9542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9543 ac_cv_prog_ac_ct_CC
="gcc"
9544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9553 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
9554 if test -n "$ac_ct_CC"; then
9555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
9556 $as_echo "$ac_ct_CC" >&6; }
9558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9559 $as_echo "no" >&6; }
9562 if test "x$ac_ct_CC" = x
; then
9565 case $cross_compiling:$ac_tool_warned in
9567 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9568 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9569 ac_tool_warned
=yes ;;
9577 if test -z "$CC"; then
9578 if test -n "$ac_tool_prefix"; then
9579 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
9580 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
9581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9582 $as_echo_n "checking for $ac_word... " >&6; }
9583 if test "${ac_cv_prog_CC+set}" = set; then :
9584 $as_echo_n "(cached) " >&6
9586 if test -n "$CC"; then
9587 ac_cv_prog_CC
="$CC" # Let the user override the test.
9589 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9593 test -z "$as_dir" && as_dir
=.
9594 for ac_exec_ext
in '' $ac_executable_extensions; do
9595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9596 ac_cv_prog_CC
="${ac_tool_prefix}cc"
9597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9607 if test -n "$CC"; then
9608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
9609 $as_echo "$CC" >&6; }
9611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9612 $as_echo "no" >&6; }
9618 if test -z "$CC"; then
9619 # Extract the first word of "cc", so it can be a program name with args.
9620 set dummy cc
; ac_word
=$2
9621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9622 $as_echo_n "checking for $ac_word... " >&6; }
9623 if test "${ac_cv_prog_CC+set}" = set; then :
9624 $as_echo_n "(cached) " >&6
9626 if test -n "$CC"; then
9627 ac_cv_prog_CC
="$CC" # Let the user override the test.
9630 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9634 test -z "$as_dir" && as_dir
=.
9635 for ac_exec_ext
in '' $ac_executable_extensions; do
9636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9637 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
9638 ac_prog_rejected
=yes
9642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9649 if test $ac_prog_rejected = yes; then
9650 # We found a bogon in the path, so make sure we never use it.
9651 set dummy
$ac_cv_prog_CC
9653 if test $# != 0; then
9654 # We chose a different compiler from the bogus one.
9655 # However, it has the same basename, so the bogon will be chosen
9656 # first if we set CC to just the basename; use the full file name.
9658 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
9664 if test -n "$CC"; then
9665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
9666 $as_echo "$CC" >&6; }
9668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9669 $as_echo "no" >&6; }
9674 if test -z "$CC"; then
9675 if test -n "$ac_tool_prefix"; then
9676 for ac_prog
in cl.exe
9678 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9679 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
9680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9681 $as_echo_n "checking for $ac_word... " >&6; }
9682 if test "${ac_cv_prog_CC+set}" = set; then :
9683 $as_echo_n "(cached) " >&6
9685 if test -n "$CC"; then
9686 ac_cv_prog_CC
="$CC" # Let the user override the test.
9688 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9692 test -z "$as_dir" && as_dir
=.
9693 for ac_exec_ext
in '' $ac_executable_extensions; do
9694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9695 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
9696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9706 if test -n "$CC"; then
9707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
9708 $as_echo "$CC" >&6; }
9710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9711 $as_echo "no" >&6; }
9715 test -n "$CC" && break
9718 if test -z "$CC"; then
9720 for ac_prog
in cl.exe
9722 # Extract the first word of "$ac_prog", so it can be a program name with args.
9723 set dummy
$ac_prog; ac_word
=$2
9724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9725 $as_echo_n "checking for $ac_word... " >&6; }
9726 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
9727 $as_echo_n "(cached) " >&6
9729 if test -n "$ac_ct_CC"; then
9730 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
9732 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9736 test -z "$as_dir" && as_dir
=.
9737 for ac_exec_ext
in '' $ac_executable_extensions; do
9738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9739 ac_cv_prog_ac_ct_CC
="$ac_prog"
9740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9749 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
9750 if test -n "$ac_ct_CC"; then
9751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
9752 $as_echo "$ac_ct_CC" >&6; }
9754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9755 $as_echo "no" >&6; }
9759 test -n "$ac_ct_CC" && break
9762 if test "x$ac_ct_CC" = x
; then
9765 case $cross_compiling:$ac_tool_warned in
9767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9768 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9769 ac_tool_warned
=yes ;;
9778 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9779 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9780 as_fn_error
"no acceptable C compiler found in \$PATH
9781 See \`config.log' for more details." "$LINENO" 5; }
9783 # Provide some information about the compiler.
9784 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
9787 for ac_option
in --version -v -V -qversion; do
9788 { { ac_try
="$ac_compiler $ac_option >&5"
9790 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9791 *) ac_try_echo=$ac_try;;
9793 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
9794 $as_echo "$ac_try_echo"; } >&5
9795 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
9797 if test -s conftest.err; then
9799 ... rest of stderr output deleted ...
9800 10q' conftest.err >conftest.er1
9801 cat conftest.er1 >&5
9803 rm -f conftest.er1 conftest.err
9804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9805 test $ac_status = 0; }
9808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
9809 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
9810 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
9811 $as_echo_n "(cached) " >&6
9813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9814 /* end confdefs.h. */
9827 if ac_fn_c_try_compile "$LINENO"; then :
9832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9833 ac_cv_c_compiler_gnu=$ac_compiler_gnu
9836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
9837 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
9838 if test $ac_compiler_gnu = yes; then
9843 ac_test_CFLAGS=${CFLAGS+set}
9844 ac_save_CFLAGS=$CFLAGS
9845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
9846 $as_echo_n "checking whether $CC accepts -g... " >&6; }
9847 if test "${ac_cv_prog_cc_g+set}" = set; then :
9848 $as_echo_n "(cached) " >&6
9850 ac_save_c_werror_flag=$ac_c_werror_flag
9851 ac_c_werror_flag=yes
9854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9855 /* end confdefs.h. */
9865 if ac_fn_c_try_compile "$LINENO"; then :
9869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9870 /* end confdefs.h. */
9880 if ac_fn_c_try_compile "$LINENO"; then :
9883 ac_c_werror_flag=$ac_save_c_werror_flag
9885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9886 /* end confdefs.h. */
9896 if ac_fn_c_try_compile "$LINENO"; then :
9899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9904 ac_c_werror_flag=$ac_save_c_werror_flag
9906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
9907 $as_echo "$ac_cv_prog_cc_g" >&6; }
9908 if test "$ac_test_CFLAGS" = set; then
9909 CFLAGS=$ac_save_CFLAGS
9910 elif test $ac_cv_prog_cc_g = yes; then
9911 if test "$GCC" = yes; then
9917 if test "$GCC" = yes; then
9923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
9924 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
9925 if test "${ac_cv_prog_cc_c89+set}" = set; then :
9926 $as_echo_n "(cached) " >&6
9928 ac_cv_prog_cc_c89=no
9930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9931 /* end confdefs.h. */
9934 #include <sys/types.h>
9935 #include <sys/stat.h>
9936 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
9937 struct buf { int x; };
9938 FILE * (*rcsopen) (struct buf *, struct stat *, int);
9939 static char *e (p, i)
9945 static char *f (char * (*g) (char **, int), char **p, ...)
9950 s = g (p, va_arg (v,int));
9955 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
9956 function prototypes and stuff, but not '\xHH' hex character constants.
9957 These don't provoke an error unfortunately, instead are silently treated
9958 as 'x'. The following induces an error, until -std is added to get
9959 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
9960 array size at least. It's necessary to write '\x00'==0 to get something
9961 that's true only with -std. */
9962 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
9964 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
9965 inside strings and character constants. */
9967 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
9969 int test (int i, double x);
9970 struct s1 {int (*f) (int a);};
9971 struct s2 {int (*f) (double a);};
9972 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
9978 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
9983 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
9984 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
9986 CC="$ac_save_CC $ac_arg"
9987 if ac_fn_c_try_compile "$LINENO"; then :
9988 ac_cv_prog_cc_c89=$ac_arg
9990 rm -f core conftest.err conftest.$ac_objext
9991 test "x$ac_cv_prog_cc_c89" != "xno" && break
9993 rm -f conftest.$ac_ext
9998 case "x$ac_cv_prog_cc_c89" in
10000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
10001 $as_echo "none needed" >&6; } ;;
10003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
10004 $as_echo "unsupported" >&6; } ;;
10006 CC="$CC $ac_cv_prog_cc_c89"
10007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
10008 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
10010 if test "x$ac_cv_prog_cc_c89" != xno; then :
10015 ac_cpp='$CPP $CPPFLAGS'
10016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10020 depcc="$CC" am_compiler_list=
10022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
10023 $as_echo_n "checking dependency style of $depcc... " >&6; }
10024 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
10025 $as_echo_n "(cached) " >&6
10027 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
10028 # We make a subdir and do the tests there. Otherwise we can end up
10029 # making bogus files that we don't know about and never remove. For
10030 # instance it was reported that on HP-UX the gcc test will end up
10031 # making a dummy file named `D
' -- because `-MD' means
`put the output
10034 # Copy depcomp to subdir because otherwise we won't find it if we're
10035 # using a relative directory.
10036 cp "$am_depcomp" conftest.dir
10038 # We will build objects and dependencies in a subdirectory because
10039 # it helps to detect inapplicable dependency modes. For instance
10040 # both Tru64's cc and ICC support -MD to output dependencies as a
10041 # side effect of compilation, but ICC will put the dependencies in
10042 # the current directory while Tru64 will put them in the object
10046 am_cv_CC_dependencies_compiler_type=none
10047 if test "$am_compiler_list" = ""; then
10048 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
10050 am__universal=false
10051 case " $depcc " in #(
10052 *\ -arch\ *\ -arch\ *) am__universal=true ;;
10055 for depmode in $am_compiler_list; do
10056 # Setup a source with many dependencies, because some compilers
10057 # like to wrap large dependency lists on column 80 (with \), and
10058 # we should not choose a depcomp mode which is confused by this.
10060 # We need to recreate these files for each test, as the compiler may
10061 # overwrite some of them when testing with obscure command lines.
10062 # This happens at least with the AIX C compiler.
10064 for i in 1 2 3 4 5 6; do
10065 echo '#include "conftst'$i'.h"' >> sub/conftest.c
10066 # Using `: > sub
/conftst
$i.h
' creates only sub/conftst1.h with
10067 # Solaris 8's
{/usr
,}/bin
/sh.
10068 touch sub
/conftst
$i.h
10070 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
10072 # We check with `-c' and `-o' for the sake of the "dashmstdout"
10073 # mode. It turns out that the SunPro C++ compiler does not properly
10074 # handle `-M -o', and we need to detect this. Also, some Intel
10075 # versions had trouble with output in subdirs
10076 am__obj
=sub
/conftest.
${OBJEXT-o}
10077 am__minus_obj
="-o $am__obj"
10080 # This depmode causes a compiler race in universal mode.
10081 test "$am__universal" = false ||
continue
10084 # after this tag, mechanisms are not by side-effect, so they'll
10085 # only be used when explicitly requested
10086 if test "x$enable_dependency_tracking" = xyes
; then
10092 msvisualcpp | msvcmsys
)
10093 # This compiler won't grok `-c -o', but also, the minuso test has
10094 # not run yet. These depmodes are late enough in the game, and
10095 # so weak that their functioning should not be impacted.
10096 am__obj
=conftest.
${OBJEXT-o}
10101 if depmode
=$depmode \
10102 source=sub
/conftest.c object
=$am__obj \
10103 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
10104 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
10105 >/dev
/null
2>conftest.err
&&
10106 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
10107 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
10108 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
10109 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
10110 # icc doesn't choke on unknown options, it will just issue warnings
10111 # or remarks (even with -Werror). So we grep stderr for any message
10112 # that says an option was ignored or not supported.
10113 # When given -MP, icc 7.0 and 7.1 complain thusly:
10114 # icc: Command line warning: ignoring option '-M'; no argument required
10115 # The diagnosis changed in icc 8.0:
10116 # icc: Command line remark: option '-MP' not supported
10117 if (grep 'ignoring option' conftest.err ||
10118 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
10119 am_cv_CC_dependencies_compiler_type
=$depmode
10126 rm -rf conftest.dir
10128 am_cv_CC_dependencies_compiler_type
=none
10132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
10133 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
10134 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
10137 test "x$enable_dependency_tracking" != xno \
10138 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
10139 am__fastdepCC_TRUE
=
10140 am__fastdepCC_FALSE
='#'
10142 am__fastdepCC_TRUE
='#'
10143 am__fastdepCC_FALSE
=
10147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
10148 $as_echo_n "checking for library containing strerror... " >&6; }
10149 if test "${ac_cv_search_strerror+set}" = set; then :
10150 $as_echo_n "(cached) " >&6
10152 ac_func_search_save_LIBS
=$LIBS
10153 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10154 /* end confdefs.h. */
10156 /* Override any GCC internal prototype to avoid an error.
10157 Use char because int might match the return type of a GCC
10158 builtin and then its argument prototype would still apply. */
10166 return strerror ();
10171 for ac_lib
in '' cposix
; do
10172 if test -z "$ac_lib"; then
10173 ac_res
="none required"
10176 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10178 if ac_fn_c_try_link
"$LINENO"; then :
10179 ac_cv_search_strerror
=$ac_res
10181 rm -f core conftest.err conftest.
$ac_objext \
10183 if test "${ac_cv_search_strerror+set}" = set; then :
10187 if test "${ac_cv_search_strerror+set}" = set; then :
10190 ac_cv_search_strerror
=no
10192 rm conftest.
$ac_ext
10193 LIBS
=$ac_func_search_save_LIBS
10195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
10196 $as_echo "$ac_cv_search_strerror" >&6; }
10197 ac_res
=$ac_cv_search_strerror
10198 if test "$ac_res" != no
; then :
10199 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
10204 $as_echo_n "checking for function prototypes... " >&6; }
10205 if test "$ac_cv_prog_cc_c89" != no
; then
10206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10207 $as_echo "yes" >&6; }
10209 $as_echo "#define PROTOTYPES 1" >>confdefs.h
10212 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
10215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10216 $as_echo "no" >&6; }
10220 if test "$ac_cv_prog_cc_stdc" != no
; then
10223 U
=_ ANSI2KNR
=.
/ansi2knr
10225 # Ensure some checks needed by ansi2knr itself.
10227 for ac_header
in string.h
10229 ac_fn_c_check_header_mongrel
"$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
10230 if test "x$ac_cv_header_string_h" = x
""yes; then :
10231 cat >>confdefs.h
<<_ACEOF
10232 #define HAVE_STRING_H 1
10240 if test "x$U" != "x"; then
10241 as_fn_error
"Compiler not ANSI compliant" "$LINENO" 5
10243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
10244 $as_echo_n "checking for inline... " >&6; }
10245 if test "${ac_cv_c_inline+set}" = set; then :
10246 $as_echo_n "(cached) " >&6
10249 for ac_kw
in inline __inline__ __inline
; do
10250 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10251 /* end confdefs.h. */
10252 #ifndef __cplusplus
10254 static $ac_kw foo_t static_foo () {return 0; }
10255 $ac_kw foo_t foo () {return 0; }
10259 if ac_fn_c_try_compile
"$LINENO"; then :
10260 ac_cv_c_inline
=$ac_kw
10262 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10263 test "$ac_cv_c_inline" != no
&& break
10267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
10268 $as_echo "$ac_cv_c_inline" >&6; }
10270 case $ac_cv_c_inline in
10273 case $ac_cv_c_inline in
10275 *) ac_val
=$ac_cv_c_inline;;
10277 cat >>confdefs.h
<<_ACEOF
10278 #ifndef __cplusplus
10279 #define inline $ac_val
10286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10287 $as_echo_n "checking for ANSI C header files... " >&6; }
10288 if test "${ac_cv_header_stdc+set}" = set; then :
10289 $as_echo_n "(cached) " >&6
10291 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10292 /* end confdefs.h. */
10293 #include <stdlib.h>
10294 #include <stdarg.h>
10295 #include <string.h>
10306 if ac_fn_c_try_compile
"$LINENO"; then :
10307 ac_cv_header_stdc
=yes
10309 ac_cv_header_stdc
=no
10311 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10313 if test $ac_cv_header_stdc = yes; then
10314 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10315 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10316 /* end confdefs.h. */
10317 #include <string.h>
10320 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10321 $EGREP "memchr" >/dev
/null
2>&1; then :
10324 ac_cv_header_stdc
=no
10330 if test $ac_cv_header_stdc = yes; then
10331 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10332 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10333 /* end confdefs.h. */
10334 #include <stdlib.h>
10337 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10338 $EGREP "free" >/dev
/null
2>&1; then :
10341 ac_cv_header_stdc
=no
10347 if test $ac_cv_header_stdc = yes; then
10348 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10349 if test "$cross_compiling" = yes; then :
10352 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10353 /* end confdefs.h. */
10355 #include <stdlib.h>
10356 #if ((' ' & 0x0FF) == 0x020)
10357 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10358 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10360 # define ISLOWER(c) \
10361 (('a' <= (c) && (c) <= 'i') \
10362 || ('j' <= (c) && (c) <= 'r') \
10363 || ('s' <= (c) && (c) <= 'z'))
10364 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10367 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10372 for (i = 0; i < 256; i++)
10373 if (XOR (islower (i), ISLOWER (i))
10374 || toupper (i) != TOUPPER (i))
10379 if ac_fn_c_try_run
"$LINENO"; then :
10382 ac_cv_header_stdc
=no
10384 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10385 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
10391 $as_echo "$ac_cv_header_stdc" >&6; }
10392 if test $ac_cv_header_stdc = yes; then
10394 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
10398 for ac_header
in unistd.h locale.h sys
/ioctl.h
iconv.h
10400 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10401 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10402 eval as_val
=\$
$as_ac_Header
10403 if test "x$as_val" = x
""yes; then :
10404 cat >>confdefs.h
<<_ACEOF
10405 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10412 ac_fn_c_check_header_mongrel
"$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
10413 if test "x$ac_cv_header_stdarg_h" = x
""yes; then :
10415 $as_echo "#define HAVE_STDARG_H 1" >>confdefs.h
10418 as_fn_error
"*** stdarg.h is missing on your system ***" "$LINENO" 5
10422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
10423 $as_echo_n "checking for working strcoll... " >&6; }
10424 if test "${ac_cv_func_strcoll_works+set}" = set; then :
10425 $as_echo_n "(cached) " >&6
10427 if test "$cross_compiling" = yes; then :
10428 ac_cv_func_strcoll_works
=no
10430 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10431 /* end confdefs.h. */
10432 $ac_includes_default
10436 return (strcoll ("abc", "def") >= 0 ||
10437 strcoll ("ABC", "DEF") >= 0 ||
10438 strcoll ("123", "456") >= 0)
10443 if ac_fn_c_try_run
"$LINENO"; then :
10444 ac_cv_func_strcoll_works
=yes
10446 ac_cv_func_strcoll_works
=no
10448 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10449 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
10454 $as_echo "$ac_cv_func_strcoll_works" >&6; }
10455 if test $ac_cv_func_strcoll_works = yes; then
10457 $as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
10461 for ac_func
in setlocale
10463 ac_fn_c_check_func
"$LINENO" "setlocale" "ac_cv_func_setlocale"
10464 if test "x$ac_cv_func_setlocale" = x
""yes; then :
10465 cat >>confdefs.h
<<_ACEOF
10466 #define HAVE_SETLOCALE 1
10474 ac_fn_c_check_header_mongrel
"$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
10475 if test "x$ac_cv_header_wchar_h" = x
""yes; then :
10477 ac_have_wchar_h
=yes
10479 $as_echo "#define HAVE_WCHAR_H 1" >>confdefs.h
10486 for ac_func
in mbtowc wcwidth mbrtowc mbsinit
10488 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10489 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10490 eval as_val
=\$
$as_ac_var
10491 if test "x$as_val" = x
""yes; then :
10492 cat >>confdefs.h
<<_ACEOF
10493 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10501 ac_fn_c_check_decl
"$LINENO" "wcwidth" "ac_cv_have_decl_wcwidth" "$ac_includes_default"
10502 if test "x$ac_cv_have_decl_wcwidth" = x
""yes; then :
10508 cat >>confdefs.h
<<_ACEOF
10509 #define HAVE_DECL_WCWIDTH $ac_have_decl
10512 ac_fn_c_check_type
"$LINENO" "wchar_t" "ac_cv_type_wchar_t" "$ac_includes_default"
10513 if test "x$ac_cv_type_wchar_t" = x
""yes; then :
10520 if test x
$ac_widec_funcs = xyes
-a x
$ac_have_wchar_h = xyes
; then
10521 ac_widec_possible
=yes
10523 ac_widec_possible
=no
10527 abook_cv_curses
=/usr
10529 # Check whether --with-curses was given.
10530 if test "${with_curses+set}" = set; then :
10531 withval
=$with_curses; if test $withval != yes; then
10532 abook_cv_curses
=$withval
10534 if test x
$abook_cv_curses != x
/usr
; then
10535 LDFLAGS
="-L${abook_cv_curses}/lib $LDFLAGS"
10536 CPPFLAGS
="$CPPFLAGS -I${abook_cv_curses}/include"
10541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncursesw" >&5
10542 $as_echo_n "checking for initscr in -lncursesw... " >&6; }
10543 if test "${ac_cv_lib_ncursesw_initscr+set}" = set; then :
10544 $as_echo_n "(cached) " >&6
10546 ac_check_lib_save_LIBS
=$LIBS
10547 LIBS
="-lncursesw $LIBS"
10548 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10549 /* end confdefs.h. */
10551 /* Override any GCC internal prototype to avoid an error.
10552 Use char because int might match the return type of a GCC
10553 builtin and then its argument prototype would still apply. */
10566 if ac_fn_c_try_link
"$LINENO"; then :
10567 ac_cv_lib_ncursesw_initscr
=yes
10569 ac_cv_lib_ncursesw_initscr
=no
10571 rm -f core conftest.err conftest.
$ac_objext \
10572 conftest
$ac_exeext conftest.
$ac_ext
10573 LIBS
=$ac_check_lib_save_LIBS
10575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncursesw_initscr" >&5
10576 $as_echo "$ac_cv_lib_ncursesw_initscr" >&6; }
10577 if test "x$ac_cv_lib_ncursesw_initscr" = x
""yes; then :
10578 LIBS
="$LIBS -lncursesw"
10579 if test x
$abook_cv_curses = x
/usr
-a -d /usr
/include
/ncursesw
; then
10580 CPPFLAGS
="$CPPFLAGS -I/usr/include/ncursesw"
10582 for ac_header
in ncurses.h
10584 ac_fn_c_check_header_mongrel
"$LINENO" "ncurses.h" "ac_cv_header_ncurses_h" "$ac_includes_default"
10585 if test "x$ac_cv_header_ncurses_h" = x
""yes; then :
10586 cat >>confdefs.h
<<_ACEOF
10587 #define HAVE_NCURSES_H 1
10596 ac_widec_possible
=no
10597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncurses" >&5
10598 $as_echo_n "checking for initscr in -lncurses... " >&6; }
10599 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then :
10600 $as_echo_n "(cached) " >&6
10602 ac_check_lib_save_LIBS
=$LIBS
10603 LIBS
="-lncurses $LIBS"
10604 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10605 /* end confdefs.h. */
10607 /* Override any GCC internal prototype to avoid an error.
10608 Use char because int might match the return type of a GCC
10609 builtin and then its argument prototype would still apply. */
10622 if ac_fn_c_try_link
"$LINENO"; then :
10623 ac_cv_lib_ncurses_initscr
=yes
10625 ac_cv_lib_ncurses_initscr
=no
10627 rm -f core conftest.err conftest.
$ac_objext \
10628 conftest
$ac_exeext conftest.
$ac_ext
10629 LIBS
=$ac_check_lib_save_LIBS
10631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_initscr" >&5
10632 $as_echo "$ac_cv_lib_ncurses_initscr" >&6; }
10633 if test "x$ac_cv_lib_ncurses_initscr" = x
""yes; then :
10634 LIBS
="$LIBS -lncurses"
10635 if test x
$abook_cv_curses = x
/usr
-a -d /usr
/include
/ncurses
; then
10636 CPPFLAGS
="$CPPFLAGS -I/usr/include/ncurses"
10638 for ac_header
in ncurses.h
10640 ac_fn_c_check_header_mongrel
"$LINENO" "ncurses.h" "ac_cv_header_ncurses_h" "$ac_includes_default"
10641 if test "x$ac_cv_header_ncurses_h" = x
""yes; then :
10642 cat >>confdefs.h
<<_ACEOF
10643 #define HAVE_NCURSES_H 1
10652 ac_fn_c_check_func
"$LINENO" "initscr" "ac_cv_func_initscr"
10653 if test "x$ac_cv_func_initscr" = x
""yes; then :
10657 case $host_os in #(vi
10659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgoto in -lmytinfo" >&5
10660 $as_echo_n "checking for tgoto in -lmytinfo... " >&6; }
10661 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then :
10662 $as_echo_n "(cached) " >&6
10664 ac_check_lib_save_LIBS
=$LIBS
10665 LIBS
="-lmytinfo $LIBS"
10666 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10667 /* end confdefs.h. */
10669 /* Override any GCC internal prototype to avoid an error.
10670 Use char because int might match the return type of a GCC
10671 builtin and then its argument prototype would still apply. */
10684 if ac_fn_c_try_link
"$LINENO"; then :
10685 ac_cv_lib_mytinfo_tgoto
=yes
10687 ac_cv_lib_mytinfo_tgoto
=no
10689 rm -f core conftest.err conftest.
$ac_objext \
10690 conftest
$ac_exeext conftest.
$ac_ext
10691 LIBS
=$ac_check_lib_save_LIBS
10693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mytinfo_tgoto" >&5
10694 $as_echo "$ac_cv_lib_mytinfo_tgoto" >&6; }
10695 if test "x$ac_cv_lib_mytinfo_tgoto" = x
""yes; then :
10696 LIBS
="-lmytinfo $LIBS"
10701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lcur_colr" >&5
10702 $as_echo_n "checking for initscr in -lcur_colr... " >&6; }
10703 if test "${ac_cv_lib_cur_colr_initscr+set}" = set; then :
10704 $as_echo_n "(cached) " >&6
10706 ac_check_lib_save_LIBS
=$LIBS
10707 LIBS
="-lcur_colr $LIBS"
10708 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10709 /* end confdefs.h. */
10711 /* Override any GCC internal prototype to avoid an error.
10712 Use char because int might match the return type of a GCC
10713 builtin and then its argument prototype would still apply. */
10726 if ac_fn_c_try_link
"$LINENO"; then :
10727 ac_cv_lib_cur_colr_initscr
=yes
10729 ac_cv_lib_cur_colr_initscr
=no
10731 rm -f core conftest.err conftest.
$ac_objext \
10732 conftest
$ac_exeext conftest.
$ac_ext
10733 LIBS
=$ac_check_lib_save_LIBS
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cur_colr_initscr" >&5
10736 $as_echo "$ac_cv_lib_cur_colr_initscr" >&6; }
10737 if test "x$ac_cv_lib_cur_colr_initscr" = x
""yes; then :
10739 LIBS
="-lcur_colr $LIBS"
10740 CFLAGS
="-I/usr/include/curses_colr $CFLAGS"
10741 ac_cv_func_initscr
=yes
10745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lHcurses" >&5
10746 $as_echo_n "checking for initscr in -lHcurses... " >&6; }
10747 if test "${ac_cv_lib_Hcurses_initscr+set}" = set; then :
10748 $as_echo_n "(cached) " >&6
10750 ac_check_lib_save_LIBS
=$LIBS
10751 LIBS
="-lHcurses $LIBS"
10752 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10753 /* end confdefs.h. */
10755 /* Override any GCC internal prototype to avoid an error.
10756 Use char because int might match the return type of a GCC
10757 builtin and then its argument prototype would still apply. */
10770 if ac_fn_c_try_link
"$LINENO"; then :
10771 ac_cv_lib_Hcurses_initscr
=yes
10773 ac_cv_lib_Hcurses_initscr
=no
10775 rm -f core conftest.err conftest.
$ac_objext \
10776 conftest
$ac_exeext conftest.
$ac_ext
10777 LIBS
=$ac_check_lib_save_LIBS
10779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Hcurses_initscr" >&5
10780 $as_echo "$ac_cv_lib_Hcurses_initscr" >&6; }
10781 if test "x$ac_cv_lib_Hcurses_initscr" = x
""yes; then :
10783 # HP's header uses __HP_CURSES, but user claims _HP_CURSES.
10784 LIBS
="-lHcurses $LIBS"
10785 CFLAGS
="-D__HP_CURSES -D_HP_CURSES $CFLAGS"
10786 ac_cv_func_initscr
=yes
10793 linux
*) # Suse Linux does not follow /usr/lib convention
10794 LIBS
="$LIBS -L/lib"
10798 if test ".$With5lib" != ".no" ; then
10799 if test -d /usr
/5lib
; then
10801 CPPFLAGS
="$CPPFLAGS -I/usr/5include"
10802 LIBS
="$LIBS -L/usr/5lib"
10806 if test ".$ac_cv_func_initscr" != .
yes ; then
10807 cf_save_LIBS
="$LIBS"
10811 # Check for library containing tgoto. Do this before curses library
10812 # because it may be needed to link the test-case for initscr.
10813 ac_fn_c_check_func
"$LINENO" "tgoto" "ac_cv_func_tgoto"
10814 if test "x$ac_cv_func_tgoto" = x
""yes; then :
10815 cf_term_lib
=predefined
10818 for cf_term_lib
in termcap termlib unknown
10820 as_ac_Lib
=`$as_echo "ac_cv_lib_$cf_term_lib''_tgoto" | $as_tr_sh`
10821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgoto in -l$cf_term_lib" >&5
10822 $as_echo_n "checking for tgoto in -l$cf_term_lib... " >&6; }
10823 if { as_var
=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
10824 $as_echo_n "(cached) " >&6
10826 ac_check_lib_save_LIBS
=$LIBS
10827 LIBS
="-l$cf_term_lib $LIBS"
10828 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10829 /* end confdefs.h. */
10831 /* Override any GCC internal prototype to avoid an error.
10832 Use char because int might match the return type of a GCC
10833 builtin and then its argument prototype would still apply. */
10846 if ac_fn_c_try_link
"$LINENO"; then :
10847 eval "$as_ac_Lib=yes"
10849 eval "$as_ac_Lib=no"
10851 rm -f core conftest.err conftest.
$ac_objext \
10852 conftest
$ac_exeext conftest.
$ac_ext
10853 LIBS
=$ac_check_lib_save_LIBS
10855 eval ac_res
=\$
$as_ac_Lib
10856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10857 $as_echo "$ac_res" >&6; }
10858 eval as_val
=\$
$as_ac_Lib
10859 if test "x$as_val" = x
""yes; then :
10868 # Check for library containing initscr
10869 test "$cf_term_lib" != predefined
&& test "$cf_term_lib" != unknown
&& LIBS
="-l$cf_term_lib $cf_save_LIBS"
10870 for cf_curs_lib
in cursesX curses ncurses xcurses jcurses unknown
10872 as_ac_Lib
=`$as_echo "ac_cv_lib_$cf_curs_lib''_initscr" | $as_tr_sh`
10873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -l$cf_curs_lib" >&5
10874 $as_echo_n "checking for initscr in -l$cf_curs_lib... " >&6; }
10875 if { as_var
=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
10876 $as_echo_n "(cached) " >&6
10878 ac_check_lib_save_LIBS
=$LIBS
10879 LIBS
="-l$cf_curs_lib $LIBS"
10880 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10881 /* end confdefs.h. */
10883 /* Override any GCC internal prototype to avoid an error.
10884 Use char because int might match the return type of a GCC
10885 builtin and then its argument prototype would still apply. */
10898 if ac_fn_c_try_link
"$LINENO"; then :
10899 eval "$as_ac_Lib=yes"
10901 eval "$as_ac_Lib=no"
10903 rm -f core conftest.err conftest.
$ac_objext \
10904 conftest
$ac_exeext conftest.
$ac_ext
10905 LIBS
=$ac_check_lib_save_LIBS
10907 eval ac_res
=\$
$as_ac_Lib
10908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10909 $as_echo "$ac_res" >&6; }
10910 eval as_val
=\$
$as_ac_Lib
10911 if test "x$as_val" = x
""yes; then :
10916 test $cf_curs_lib = unknown
&& as_fn_error
"no curses library found" "$LINENO" 5
10918 LIBS
="-l$cf_curs_lib $cf_save_LIBS"
10919 if test "$cf_term_lib" = unknown
; then
10920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can link with $cf_curs_lib library" >&5
10921 $as_echo_n "checking if we can link with $cf_curs_lib library... " >&6; }
10922 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10923 /* end confdefs.h. */
10924 #include <${cf_cv_ncurses_header-curses.h}>
10933 if ac_fn_c_try_link
"$LINENO"; then :
10938 rm -f core conftest.err conftest.
$ac_objext \
10939 conftest
$ac_exeext conftest.
$ac_ext
10940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_result" >&5
10941 $as_echo "$cf_result" >&6; }
10942 test $cf_result = no
&& as_fn_error
"Cannot link curses library" "$LINENO" 5
10943 elif test "$cf_term_lib" != predefined
; then
10944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need both $cf_curs_lib and $cf_term_lib libraries" >&5
10945 $as_echo_n "checking if we need both $cf_curs_lib and $cf_term_lib libraries... " >&6; }
10946 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10947 /* end confdefs.h. */
10948 #include <${cf_cv_ncurses_header-curses.h}>
10952 initscr(); tgoto((char *)0, 0, 0);
10957 if ac_fn_c_try_link
"$LINENO"; then :
10961 LIBS
="-l$cf_curs_lib -l$cf_term_lib $cf_save_LIBS"
10962 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10963 /* end confdefs.h. */
10964 #include <${cf_cv_ncurses_header-curses.h}>
10973 if ac_fn_c_try_link
"$LINENO"; then :
10978 rm -f core conftest.err conftest.
$ac_objext \
10979 conftest
$ac_exeext conftest.
$ac_ext
10982 rm -f core conftest.err conftest.
$ac_objext \
10983 conftest
$ac_exeext conftest.
$ac_ext
10984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_result" >&5
10985 $as_echo "$cf_result" >&6; }
11000 abook_cv_readline
=/usr
11002 # Check whether --with-readline was given.
11003 if test "${with_readline+set}" = set; then :
11004 withval
=$with_readline; if test $withval != yes; then
11005 abook_cv_readline
=$withval
11007 if test x
$abook_cv_readline != x
/usr
; then
11008 LDFLAGS
="-L${abook_cv_readline}/lib $LDFLAGS"
11009 CPPFLAGS
="$CPPFLAGS -I${abook_cv_readline}/include"
11015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
11016 $as_echo_n "checking for a readline compatible library... " >&6; }
11017 if test "${ac_cv_lib_readline+set}" = set; then :
11018 $as_echo_n "(cached) " >&6
11022 for readline_lib
in readline edit editline
; do
11023 for termcap_lib
in "" termcap curses ncurses
; do
11024 if test -z "$termcap_lib"; then
11025 TRY_LIB
="-l$readline_lib"
11027 TRY_LIB
="-l$readline_lib -l$termcap_lib"
11029 LIBS
="$ORIG_LIBS $TRY_LIB"
11030 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11031 /* end confdefs.h. */
11033 /* Override any GCC internal prototype to avoid an error.
11034 Use char because int might match the return type of a GCC
11035 builtin and then its argument prototype would still apply. */
11043 return readline ();
11048 if ac_fn_c_try_link
"$LINENO"; then :
11049 ac_cv_lib_readline
="$TRY_LIB"
11051 rm -f core conftest.err conftest.
$ac_objext \
11052 conftest
$ac_exeext conftest.
$ac_ext
11053 if test -n "$ac_cv_lib_readline"; then
11057 if test -n "$ac_cv_lib_readline"; then
11061 if test -z "$ac_cv_lib_readline"; then
11062 ac_cv_lib_readline
="no"
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline" >&5
11068 $as_echo "$ac_cv_lib_readline" >&6; }
11070 if test "$ac_cv_lib_readline" != "no"; then
11071 LIBS
="$LIBS $ac_cv_lib_readline"
11073 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
11075 for ac_header
in readline.h readline
/readline.h
11077 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11078 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11079 eval as_val
=\$
$as_ac_Header
11080 if test "x$as_val" = x
""yes; then :
11081 cat >>confdefs.h
<<_ACEOF
11082 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
11090 $as_echo_n "checking whether readline supports history... " >&6; }
11091 if test "${ac_cv_lib_readline_history+set}" = set; then :
11092 $as_echo_n "(cached) " >&6
11095 ac_cv_lib_readline_history
="no"
11096 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11097 /* end confdefs.h. */
11099 /* Override any GCC internal prototype to avoid an error.
11100 Use char because int might match the return type of a GCC
11101 builtin and then its argument prototype would still apply. */
11105 char add_history ();
11109 return add_history ();
11114 if ac_fn_c_try_link
"$LINENO"; then :
11115 ac_cv_lib_readline_history
="yes"
11117 rm -f core conftest.err conftest.
$ac_objext \
11118 conftest
$ac_exeext conftest.
$ac_ext
11121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_history" >&5
11122 $as_echo "$ac_cv_lib_readline_history" >&6; }
11123 if test "$ac_cv_lib_readline_history" = "yes"; then
11125 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
11127 for ac_header
in history.h readline
/history.h
11129 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11130 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11131 eval as_val
=\$
$as_ac_Header
11132 if test "x$as_val" = x
""yes; then :
11133 cat >>confdefs.h
<<_ACEOF
11134 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11146 if test x
$ac_cv_lib_readline = xno
-o x
$ac_cv_lib_readline_history = xno
; then
11147 as_fn_error
"*** readline library not found or it doesn't support history ***" "$LINENO" 5
11151 if test x
$ac_widec_possible = xyes
; then
11153 $as_echo "#define HANDLE_MULTIBYTE 1" >>confdefs.h
11157 for ac_func
in resizeterm
11159 ac_fn_c_check_func
"$LINENO" "resizeterm" "ac_cv_func_resizeterm"
11160 if test "x$ac_cv_func_resizeterm" = x
""yes; then :
11161 cat >>confdefs.h
<<_ACEOF
11162 #define HAVE_RESIZETERM 1
11169 for ac_func
in snprintf vsnprintf
11171 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11172 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11173 eval as_val
=\$
$as_ac_var
11174 if test "x$as_val" = x
""yes; then :
11175 cat >>confdefs.h
<<_ACEOF
11176 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11183 # Check whether --enable-debug was given.
11184 if test "${enable_debug+set}" = set; then :
11185 enableval
=$enable_debug; case "${enableval}" in
11188 *) as_fn_error
"bad value ${enableval} for --enable-debug" "$LINENO" 5 ;;
11195 if test x
$debug = xtrue
; then
11196 CPPFLAGS
="-DDEBUG=1 $CPPFLAGS"
11197 CFLAGS
="-g $CFLAGS"
11200 if test x
$GCC = xyes
; then
11201 CFLAGS
="-Wall $CFLAGS"
11204 ac_config_files
="$ac_config_files Makefile abook.spec intl/Makefile po/Makefile.in"
11206 cat >confcache
<<\_ACEOF
11207 # This file is a shell script that caches the results of configure
11208 # tests run on this system so they can be shared between configure
11209 # scripts and configure runs, see configure's option --config-cache.
11210 # It is not useful on other systems. If it contains results you don't
11211 # want to keep, you may remove or edit it.
11213 # config.status only pays attention to the cache file if you give it
11214 # the --recheck option to rerun configure.
11216 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11217 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11218 # following values.
11222 # The following way of writing the cache mishandles newlines in values,
11223 # but we know of no workaround that is simple, portable, and efficient.
11224 # So, we kill variables containing newlines.
11225 # Ultrix sh set writes to stderr and can't be redirected directly,
11226 # and sets the high bit in the cache file unless we assign to the vars.
11228 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11229 eval ac_val
=\$
$ac_var
11233 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11234 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11237 _ | IFS | as_nl
) ;; #(
11238 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
11239 *) { eval $ac_var=; unset $ac_var;} ;;
11245 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11246 *${as_nl}ac_space
=\
*)
11247 # `set' does not quote correctly, so add quotes: double-quote
11248 # substitution turns \\\\ into \\, and sed turns \\ into \.
11251 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11254 # `set' quotes correctly as required by POSIX, so do not add quotes.
11255 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11264 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11266 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11268 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
11269 if test -w "$cache_file"; then
11270 test "x$cache_file" != "x/dev/null" &&
11271 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11272 $as_echo "$as_me: updating cache $cache_file" >&6;}
11273 cat confcache
>$cache_file
11275 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11276 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11281 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
11282 # Let make expand exec_prefix.
11283 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
11285 DEFS
=-DHAVE_CONFIG_H
11289 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
11290 # 1. Remove the extension, and $U if already installed.
11291 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
11292 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
11293 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11294 # will be set to the directory where LIBOBJS objects are built.
11295 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11296 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
11298 LIBOBJS
=$ac_libobjs
11300 LTLIBOBJS
=$ac_ltlibobjs
11303 if test -n "$EXEEXT"; then
11305 am__EXEEXT_FALSE
='#'
11307 am__EXEEXT_TRUE
='#'
11311 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11312 as_fn_error
"conditional \"AMDEP\" was never defined.
11313 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11315 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11316 as_fn_error
"conditional \"am__fastdepCC\" was never defined.
11317 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11319 if test -z "${USE_INCLUDED_INTL_H_TRUE}" && test -z "${USE_INCLUDED_INTL_H_FALSE}"; then
11320 as_fn_error
"conditional \"USE_INCLUDED_INTL_H\" was never defined.
11321 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11323 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11324 as_fn_error
"conditional \"am__fastdepCC\" was never defined.
11325 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11328 : ${CONFIG_STATUS=./config.status}
11330 ac_clean_files_save
=$ac_clean_files
11331 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
11332 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11333 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11335 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11337 # Generated by $as_me.
11338 # Run this file to recreate the current configuration.
11339 # Compiler output produced by configure, useful for debugging
11340 # configure, is in config.log if it exists.
11343 ac_cs_recheck=false
11346 SHELL=\${CONFIG_SHELL-$SHELL}
11349 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
11350 ## -------------------- ##
11351 ## M4sh Initialization. ##
11352 ## -------------------- ##
11354 # Be more Bourne compatible
11355 DUALCASE
=1; export DUALCASE
# for MKS sh
11356 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
11359 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11360 # is contrary to our usage. Disable this feature.
11361 alias -g '${1+"$@"}'='"$@"'
11362 setopt NO_GLOB_SUBST
11364 case `(set -o) 2>/dev/null` in #(
11376 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11377 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11378 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11379 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11380 # Prefer a ksh shell builtin over an external printf program on Solaris,
11381 # but without wasting forks for bash or zsh.
11382 if test -z "$BASH_VERSION$ZSH_VERSION" \
11383 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11384 as_echo='print
-r --'
11385 as_echo_n='print
-rn --'
11386 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11387 as_echo='printf %s
\n'
11388 as_echo_n='printf %s
'
11390 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11391 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
11392 as_echo_n='/usr
/ucb
/echo -n'
11394 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11395 as_echo_n_body='eval
11399 expr "X$arg" : "X\\(.*\\)$as_nl";
11400 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11402 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
11404 export as_echo_n_body
11405 as_echo_n='sh
-c $as_echo_n_body as_echo
'
11407 export as_echo_body
11408 as_echo='sh
-c $as_echo_body as_echo
'
11411 # The user is always right.
11412 if test "${PATH_SEPARATOR+set}" != set; then
11414 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11415 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11422 # We need space, tab and new line, in precisely that order. Quoting is
11423 # there to prevent editors from complaining about space-tab.
11424 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11425 # splitting by setting IFS to empty value.)
11428 # Find who we are. Look in the path if we contain no directory separator.
11430 *[\\/]* ) as_myself=$0 ;;
11431 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11432 for as_dir in $PATH
11435 test -z "$as_dir" && as_dir=.
11436 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11442 # We did not find ourselves, most probably we were run as `sh COMMAND'
11443 # in which case we are not to be found in the path.
11444 if test "x$as_myself" = x
; then
11447 if test ! -f "$as_myself"; then
11448 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11452 # Unset variables that we do not need and which cause bugs (e.g. in
11453 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11454 # suppresses any "Segmentation fault" message there. '((' could
11455 # trigger a bug in pdksh 5.2.14.
11456 for as_var
in BASH_ENV ENV MAIL MAILPATH
11457 do eval test x\
${$as_var+set} = xset \
11458 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
11471 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
11474 # as_fn_error ERROR [LINENO LOG_FD]
11475 # ---------------------------------
11476 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11477 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11478 # script with status $?, using 1 if that was 0.
11481 as_status
=$?
; test $as_status -eq 0 && as_status
=1
11483 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
11484 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
11486 $as_echo "$as_me: error: $1" >&2
11487 as_fn_exit
$as_status
11491 # as_fn_set_status STATUS
11492 # -----------------------
11493 # Set $? to STATUS, without forking.
11494 as_fn_set_status
()
11497 } # as_fn_set_status
11499 # as_fn_exit STATUS
11500 # -----------------
11501 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11505 as_fn_set_status
$1
11511 # Portably unset VAR.
11514 { eval $1=; unset $1;}
11516 as_unset
=as_fn_unset
11517 # as_fn_append VAR VALUE
11518 # ----------------------
11519 # Append the text in VALUE to the end of the definition contained in VAR. Take
11520 # advantage of any shell optimizations that allow amortized linear growth over
11521 # repeated appends, instead of the typical quadratic growth present in naive
11523 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
11524 eval 'as_fn_append ()
11535 # as_fn_arith ARG...
11536 # ------------------
11537 # Perform arithmetic evaluation on the ARGs, and store the result in the
11538 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11539 # must be portable across $(()) and expr.
11540 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
11541 eval 'as_fn_arith ()
11548 as_val
=`expr "$@" || test $? -eq 1`
11553 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
11554 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
11560 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11561 as_basename
=basename
11566 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
11572 as_me
=`$as_basename -- "$0" ||
11573 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11574 X"$0" : 'X\(//\)$' \| \
11575 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11577 sed '/^.*\/\([^/][^/]*\)\/*$/{
11591 # Avoid depending upon Character Ranges.
11592 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
11593 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11594 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
11595 as_cr_digits
='0123456789'
11596 as_cr_alnum
=$as_cr_Letters$as_cr_digits
11598 ECHO_C
= ECHO_N
= ECHO_T
=
11599 case `echo -n x` in #(((((
11601 case `echo 'xy\c'` in
11602 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
11604 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
11611 rm -f conf$$ conf$$.exe conf$$.
file
11612 if test -d conf$$.dir
; then
11613 rm -f conf$$.dir
/conf$$.
file
11616 mkdir conf$$.dir
2>/dev
/null
11618 if (echo >conf$$.
file) 2>/dev
/null
; then
11619 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
11621 # ... but there are two gotchas:
11622 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11623 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11624 # In both cases, we have to default to `cp -p'.
11625 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
11627 elif ln conf$$.
file conf$$
2>/dev
/null
; then
11635 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
11636 rmdir conf$$.dir
2>/dev
/null
11641 # Create "$as_dir" as a directory, including parents if necessary.
11646 -*) as_dir
=.
/$as_dir;;
11648 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
11652 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11653 *) as_qdir
=$as_dir;;
11655 as_dirs
="'$as_qdir' $as_dirs"
11656 as_dir
=`$as_dirname -- "$as_dir" ||
11657 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11658 X"$as_dir" : 'X\(//\)[^/]' \| \
11659 X"$as_dir" : 'X\(//\)$' \| \
11660 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11661 $as_echo X"$as_dir" |
11662 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11666 /^X\(\/\/\)[^/].*/{
11679 test -d "$as_dir" && break
11681 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
11682 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
11686 if mkdir
-p .
2>/dev
/null
; then
11687 as_mkdir_p
='mkdir -p "$as_dir"'
11689 test -d .
/-p && rmdir .
/-p
11693 if test -x / >/dev
/null
2>&1; then
11694 as_test_x
='test -x'
11696 if ls -dL / >/dev
/null
2>&1; then
11703 if test -d "$1"; then
11709 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11710 ???[sx]*):;;*)false;;esac;fi
11714 as_executable_p
=$as_test_x
11716 # Sed expression to map a string onto a valid CPP name.
11717 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11719 # Sed expression to map a string onto a valid variable name.
11720 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11724 ## ----------------------------------- ##
11725 ## Main body of $CONFIG_STATUS script. ##
11726 ## ----------------------------------- ##
11728 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
11730 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11731 # Save the log message, to keep $0 and so on meaningful, and to
11732 # report actual input values of CONFIG_FILES etc. instead of their
11733 # values after options handling.
11735 This file was extended by $as_me, which was
11736 generated by GNU Autoconf 2.65. Invocation command line was
11738 CONFIG_FILES = $CONFIG_FILES
11739 CONFIG_HEADERS = $CONFIG_HEADERS
11740 CONFIG_LINKS = $CONFIG_LINKS
11741 CONFIG_COMMANDS = $CONFIG_COMMANDS
11744 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11749 case $ac_config_files in *"
11750 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
11753 case $ac_config_headers in *"
11754 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
11758 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11759 # Files that config.status was made for.
11760 config_files="$ac_config_files"
11761 config_headers="$ac_config_headers"
11762 config_commands="$ac_config_commands"
11766 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11768 \`$as_me' instantiates files and other configuration actions
11769 from templates according to the current configuration. Unless the files
11770 and actions are specified as TAGs, all are instantiated by default.
11772 Usage: $0 [OPTION]... [TAG]...
11774 -h, --help print this help, then exit
11775 -V, --version print version number and configuration settings, then exit
11776 --config print configuration, then exit
11777 -q, --quiet, --silent
11778 do not print progress messages
11779 -d, --debug don't remove temporary files
11780 --recheck update $as_me by reconfiguring in the same conditions
11781 --file=FILE[:TEMPLATE]
11782 instantiate the configuration file FILE
11783 --header=FILE[:TEMPLATE]
11784 instantiate the configuration header FILE
11786 Configuration files:
11789 Configuration headers:
11792 Configuration commands:
11795 Report bugs to the package provider."
11798 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11799 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11802 configured by $0, generated by GNU Autoconf 2.65,
11803 with options \\"\$ac_cs_config\\"
11805 Copyright (C) 2009 Free Software Foundation, Inc.
11806 This config.status script is free software; the Free Software Foundation
11807 gives unlimited permission to copy, distribute and modify it."
11814 test -n "\$AWK" || AWK=awk
11817 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11818 # The default lists apply if the user does not specify any file.
11824 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
11825 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
11836 # Handling of the options.
11837 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
11839 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
11840 $as_echo "$ac_cs_version"; exit ;;
11841 --config |
--confi |
--conf |
--con |
--co |
--c )
11842 $as_echo "$ac_cs_config"; exit ;;
11843 --debug |
--debu |
--deb |
--de |
--d |
-d )
11845 --file |
--fil |
--fi |
--f )
11848 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11850 as_fn_append CONFIG_FILES
" '$ac_optarg'"
11851 ac_need_defaults
=false
;;
11852 --header |
--heade |
--head |
--hea )
11855 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11857 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
11858 ac_need_defaults
=false
;;
11860 # Conflict between --help and --header
11861 as_fn_error
"ambiguous option: \`$1'
11862 Try \`$0 --help' for more information.";;
11863 --help |
--hel |
-h )
11864 $as_echo "$ac_cs_usage"; exit ;;
11865 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
11866 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
11869 # This is an error.
11870 -*) as_fn_error
"unrecognized option: \`$1'
11871 Try \`$0 --help' for more information." ;;
11873 *) as_fn_append ac_config_targets
" $1"
11874 ac_need_defaults
=false
;;
11880 ac_configure_extra_args
=
11882 if $ac_cs_silent; then
11884 ac_configure_extra_args
="$ac_configure_extra_args --silent"
11888 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11889 if \$ac_cs_recheck; then
11890 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11892 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11893 CONFIG_SHELL='$SHELL'
11894 export CONFIG_SHELL
11899 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11903 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11904 ## Running $as_me. ##
11910 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11914 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11915 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
11916 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
11917 # from automake < 1.5.
11918 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
11919 # Capture the value of LINGUAS because we need it to compute CATALOGS.
11920 LINGUAS="${LINGUAS-%UNSET%}"
11925 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11927 # Handling of arguments.
11928 for ac_config_target
in $ac_config_targets
11930 case $ac_config_target in
11931 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
11932 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
11933 "po-directories") CONFIG_COMMANDS
="$CONFIG_COMMANDS po-directories" ;;
11934 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
11935 "abook.spec") CONFIG_FILES
="$CONFIG_FILES abook.spec" ;;
11936 "intl/Makefile") CONFIG_FILES
="$CONFIG_FILES intl/Makefile" ;;
11937 "po/Makefile.in") CONFIG_FILES
="$CONFIG_FILES po/Makefile.in" ;;
11939 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11944 # If the user did not use the arguments to specify the items to instantiate,
11945 # then the envvar interface is used. Set only those that are not.
11946 # We use the long form for the default assignment because of an extremely
11947 # bizarre bug on SunOS 4.1.3.
11948 if $ac_need_defaults; then
11949 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
11950 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
11951 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
11954 # Have a temporary directory for convenience. Make it in the build tree
11955 # simply because there is no reason against having it here, and in addition,
11956 # creating and moving files from /tmp can sometimes cause problems.
11957 # Hook for its removal unless debugging.
11958 # Note that there is a small window in which the directory will not be cleaned:
11959 # after its creation but before its name has been assigned to `$tmp'.
11963 trap 'exit_status=$?
11964 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11966 trap 'as_fn_exit 1' 1 2 13 15
11968 # Create a (secure) tmp directory for tmp files.
11971 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11972 test -n "$tmp" && test -d "$tmp"
11975 tmp
=.
/conf$$
-$RANDOM
11976 (umask 077 && mkdir
"$tmp")
11977 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
11979 # Set up the scripts for CONFIG_FILES section.
11980 # No need to generate them if there are no CONFIG_FILES.
11981 # This happens for instance with `./config.status config.h'.
11982 if test -n "$CONFIG_FILES"; then
11985 ac_cr
=`echo X | tr X '\015'`
11986 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11987 # But we know of no other shell where ac_cr would be empty at this
11988 # point, so we can use a bashism as a fallback.
11989 if test "x$ac_cr" = x
; then
11990 eval ac_cr
=\$
\'\\r
\'
11992 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11993 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11996 ac_cs_awk_cr
=$ac_cr
11999 echo 'BEGIN {' >"$tmp/subs1.awk" &&
12004 echo "cat >conf$$subs.awk <<_ACEOF" &&
12005 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12007 } >conf$$subs.sh ||
12008 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
12009 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
12011 for ac_last_try in false false false false false :; do
12012 . ./conf$$subs.sh ||
12013 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
12015 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
12016 if test $ac_delim_n = $ac_delim_num; then
12018 elif $ac_last_try; then
12019 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
12021 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
12024 rm -f conf$$subs.sh
12026 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12027 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
12031 s/^/S["/; s
/!.
*/"]=/
12041 s/\(.\{148\}\)..*/\1/
12043 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
12048 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
12055 s/\(.\{148\}\)..*/\1/
12057 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
12061 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
12066 ' <conf$$subs.awk | sed '
12071 ' >>$CONFIG_STATUS || ac_write_fail=1
12072 rm -f conf$$subs.awk
12073 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12075 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
12076 for (key in S) S_is_set[key] = 1
12082 nfields = split(line, field, "@
")
12084 len = length(field[1])
12085 for (i = 2; i < nfields; i++) {
12087 keylen = length(key)
12088 if (S_is_set[key]) {
12090 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12091 len += length(value) + length(field[++i])
12102 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12103 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12104 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
12107 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
12108 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
12111 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12112 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
12113 # trailing colons and then remove the whole line if VPATH becomes empty
12114 # (actually we leave an empty line to preserve line numbers).
12115 if test "x
$srcdir" = x.; then
12116 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12117 s/:*\$(srcdir):*/:/
12118 s/:*\${srcdir}:*/:/
12120 s/^\([^=]*=[ ]*\):*/\1/
12126 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12127 fi # test -n "$CONFIG_FILES"
12129 # Set up the scripts for CONFIG_HEADERS section.
12130 # No need to generate them if there are no CONFIG_HEADERS.
12131 # This happens for instance with `./config.status Makefile'.
12132 if test -n "$CONFIG_HEADERS"; then
12133 cat >"$tmp/defines.
awk" <<\_ACAWK ||
12137 # Transform confdefs.h into an awk script `defines.awk', embedded as
12138 # here-document in config.status, that substitutes the proper values into
12139 # config.h.in to produce config.h.
12141 # Create a delimiter string that does not exist in confdefs.h, to ease
12142 # handling of long lines.
12144 for ac_last_try in false false :; do
12145 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
12146 if test -z "$ac_t"; then
12148 elif $ac_last_try; then
12149 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
12151 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
12155 # For the awk script, D is an array of macro values keyed by name,
12156 # likewise P contains macro parameters if any. Preserve backslash
12157 # newline sequences.
12159 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12161 s/.\{148\}/&'"$ac_delim"'/g
12164 s/^[ ]*#[ ]*define[ ][ ]*/ /
12171 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
12173 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
12177 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
12178 D["\
1"]=" \
3\\\\\\n
"\\/p
12180 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
12185 s/.\{148\}/&'"$ac_delim"'/g
12190 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
12193 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
12195 ' <confdefs.h | sed '
12196 s/'"$ac_delim"'/"\\\
12197 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12199 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12200 for (key in D) D_is_set[key] = 1
12203 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12205 split(line, arg, " ")
12206 if (arg[1] == "#") {
12210 defundef
= substr
(arg
[1], 2)
12213 split(mac1
, mac2
, "(") #)
12215 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
12216 if (D_is_set
[macro
]) {
12217 # Preserve the white space surrounding the "#".
12218 print prefix
"define", macro P
[macro
] D
[macro
]
12221 # Replace #undef with comments. This is necessary, for example,
12222 # in the case of _POSIX_SOURCE, which is predefined and required
12223 # on some systems where configure will not decide to define it.
12224 if (defundef
== "undef") {
12225 print
"/*", prefix defundef
, macro
, "*/"
12233 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
12234 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
12235 fi # test -n "$CONFIG_HEADERS"
12238 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12243 :[FHLC
]) ac_mode
=$ac_tag; continue;;
12245 case $ac_mode$ac_tag in
12247 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
12248 :[FH
]-) ac_tag
=-:-;;
12249 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
12266 -) ac_f
="$tmp/stdin";;
12267 *) # Look for the file first in the build tree, then in the source tree
12268 # (if the path is not absolute). The absolute path cannot be DOS-style,
12269 # because $ac_f cannot contain `:'.
12273 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
12275 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
12277 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12278 as_fn_append ac_file_inputs
" '$ac_f'"
12281 # Let's still pretend it is `configure' which instantiates (i.e., don't
12282 # use $as_me), people would be surprised to read:
12283 # /* config.h. Generated by config.status. */
12284 configure_input
='Generated from '`
12285 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12287 if test x
"$ac_file" != x-
; then
12288 configure_input
="$ac_file. $configure_input"
12289 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12290 $as_echo "$as_me: creating $ac_file" >&6;}
12292 # Neutralize special characters interpreted by sed in replacement strings.
12293 case $configure_input in #(
12294 *\
&* |
*\|
* |
*\\* )
12295 ac_sed_conf_input
=`$as_echo "$configure_input" |
12296 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12297 *) ac_sed_conf_input
=$configure_input;;
12301 *:-:* |
*:-) cat >"$tmp/stdin" \
12302 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
12307 ac_dir
=`$as_dirname -- "$ac_file" ||
12308 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12309 X"$ac_file" : 'X\(//\)[^/]' \| \
12310 X"$ac_file" : 'X\(//\)$' \| \
12311 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12312 $as_echo X"$ac_file" |
12313 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12317 /^X\(\/\/\)[^/].*/{
12330 as_dir
="$ac_dir"; as_fn_mkdir_p
12334 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
12336 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12337 # A ".." for each directory in $ac_dir_suffix.
12338 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12339 case $ac_top_builddir_sub in
12340 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
12341 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
12344 ac_abs_top_builddir
=$ac_pwd
12345 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
12346 # for backward compatibility:
12347 ac_top_builddir
=$ac_top_build_prefix
12350 .
) # We are building in place.
12352 ac_top_srcdir
=$ac_top_builddir_sub
12353 ac_abs_top_srcdir
=$ac_pwd ;;
12354 [\\/]* | ?
:[\\/]* ) # Absolute name.
12355 ac_srcdir
=$srcdir$ac_dir_suffix;
12356 ac_top_srcdir
=$srcdir
12357 ac_abs_top_srcdir
=$srcdir ;;
12358 *) # Relative name.
12359 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
12360 ac_top_srcdir
=$ac_top_build_prefix$srcdir
12361 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
12363 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
12373 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
12374 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
12376 ac_MKDIR_P
=$MKDIR_P
12378 [\\/$
]* | ?
:[\\/]* ) ;;
12379 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
12383 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
12384 # If the template does not know about datarootdir, expand it.
12385 # FIXME: This hack should be removed a few years after 2.60.
12386 ac_datarootdir_hack
=; ac_datarootdir_seen
=
12397 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12398 *datarootdir
*) ac_datarootdir_seen
=yes;;
12399 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12401 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12403 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12404 ac_datarootdir_hack='
12405 s&@datadir@&$datadir&g
12406 s&@docdir@&$docdir&g
12407 s&@infodir@&$infodir&g
12408 s&@localedir@&$localedir&g
12409 s&@mandir@&$mandir&g
12410 s&\\\${datarootdir}&$datarootdir&g' ;;
12414 # Neutralize VPATH when `$srcdir' = `.'.
12415 # Shell code in configure.ac might set extrasub.
12416 # FIXME: do we really want to maintain this feature?
12417 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12418 ac_sed_extra="$ac_vpsub
12421 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
12423 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
12424 s|@configure_input@|
$ac_sed_conf_input|
;t t
12425 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
12426 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
12427 s
&@srcdir@
&$ac_srcdir&;t t
12428 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
12429 s
&@top_srcdir@
&$ac_top_srcdir&;t t
12430 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
12431 s
&@builddir@
&$ac_builddir&;t t
12432 s
&@abs_builddir@
&$ac_abs_builddir&;t t
12433 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
12434 s
&@INSTALL@
&$ac_INSTALL&;t t
12435 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
12436 $ac_datarootdir_hack
12438 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
12439 || as_fn_error "could not create
$ac_file" "$LINENO" 5
12441 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12442 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
12443 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
12444 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
12445 which seems to be undefined. Please make sure it is defined." >&5
12446 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
12447 which seems to be undefined. Please make sure it is defined." >&2;}
12451 -) cat "$tmp/out" && rm -f "$tmp/out";;
12452 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12454 || as_fn_error "could not create $ac_file" "$LINENO" 5
12460 if test x"$ac_file" != x-; then
12462 $as_echo "/* $configure_input */" \
12463 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
12464 } >"$tmp/config.h" \
12465 || as_fn_error "could not create $ac_file" "$LINENO" 5
12466 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12468 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12471 mv "$tmp/config.h" "$ac_file" \
12472 || as_fn_error "could not create $ac_file" "$LINENO" 5
12475 $as_echo "/* $configure_input */" \
12476 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
12477 || as_fn_error "could not create -" "$LINENO" 5
12479 # Compute "$ac_file"'s index
in $config_headers.
12482 for _am_header
in $config_headers :; do
12483 case $_am_header in
12484 $_am_arg |
$_am_arg:* )
12487 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
12490 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12491 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12492 X"$_am_arg" : 'X\(//\)[^/]' \| \
12493 X"$_am_arg" : 'X\(//\)$' \| \
12494 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12495 $as_echo X"$_am_arg" |
12496 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12500 /^X\(\/\/\)[^/].*/{
12512 s/.*/./; q'`/stamp-h
$_am_stamp_count
12515 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12516 $as_echo "$as_me: executing $ac_file commands" >&6;}
12521 case $ac_file$ac_mode in
12522 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
12523 # Autoconf 2.62 quotes --file arguments for eval, but not when files
12524 # are listed without --file. Let's play safe and only enable the eval
12525 # if we detect the quoting.
12526 case $CONFIG_FILES in
12527 *\'*) eval set x
"$CONFIG_FILES" ;;
12528 *) set x
$CONFIG_FILES ;;
12533 # Strip MF so we end up with the name of the file.
12534 mf
=`echo "$mf" | sed -e 's/:.*$//'`
12535 # Check whether this is an Automake generated Makefile or not.
12536 # We used to match only the files named `Makefile.in', but
12537 # some people rename them; so instead we look at the file content.
12538 # Grep'ing the first line is not enough: some people post-process
12539 # each Makefile.in and add a new line on top of each file to say so.
12540 # Grep'ing the whole file is not good either: AIX grep has a line
12541 # limit of 2048, but all sed's we know have understand at least 4000.
12542 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
12543 dirpart
=`$as_dirname -- "$mf" ||
12544 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12545 X"$mf" : 'X\(//\)[^/]' \| \
12546 X"$mf" : 'X\(//\)$' \| \
12547 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12549 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12553 /^X\(\/\/\)[^/].*/{
12569 # Extract the definition of DEPDIR, am__include, and am__quote
12570 # from the Makefile without running `make'.
12571 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
12572 test -z "$DEPDIR" && continue
12573 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
12574 test -z "am__include" && continue
12575 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
12576 # When using ansi2knr, U may be empty or an underscore; expand it
12577 U
=`sed -n 's/^U = //p' < "$mf"`
12578 # Find all dependency output files, they are included files with
12579 # $(DEPDIR) in their names. We invoke sed twice because it is the
12580 # simplest approach to changing $(DEPDIR) to its actual value in the
12582 for file in `sed -n "
12583 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12584 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12585 # Make sure the directory exists.
12586 test -f "$dirpart/$file" && continue
12587 fdir
=`$as_dirname -- "$file" ||
12588 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12589 X"$file" : 'X\(//\)[^/]' \| \
12590 X"$file" : 'X\(//\)$' \| \
12591 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12592 $as_echo X"$file" |
12593 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12597 /^X\(\/\/\)[^/].*/{
12610 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
12611 # echo "creating $dirpart/$file"
12612 echo '# dummy' > "$dirpart/$file"
12617 "po-directories":C
)
12618 for ac_file
in $CONFIG_FILES; do
12619 # Support "outfile[:infile[:infile...]]"
12621 *:*) ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
12623 # PO directories have a Makefile.in generated from Makefile.in.in.
12624 case "$ac_file" in */Makefile.
in)
12625 # Adjust a relative srcdir.
12626 ac_dir
=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
12627 ac_dir_suffix
="/`echo "$ac_dir"|sed 's%^\./%%'`"
12628 ac_dots
=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
12629 # In autoconf-2.13 it is called $ac_given_srcdir.
12630 # In autoconf-2.50 it is called $srcdir.
12631 test -n "$ac_given_srcdir" || ac_given_srcdir
="$srcdir"
12632 case "$ac_given_srcdir" in
12633 .
) top_srcdir
=`echo $ac_dots|sed 's%/$%%'` ;;
12634 /*) top_srcdir
="$ac_given_srcdir" ;;
12635 *) top_srcdir
="$ac_dots$ac_given_srcdir" ;;
12637 # Treat a directory as a PO directory if and only if it has a
12638 # POTFILES.in file. This allows packages to have multiple PO
12639 # directories under different names or in different locations.
12640 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
12641 rm -f "$ac_dir/POTFILES"
12642 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" ||
echo "creating $ac_dir/POTFILES"
12643 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" |
sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," |
sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
12644 POMAKEFILEDEPS
="POTFILES.in"
12645 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
12646 # on $ac_dir but don't depend on user-specified configuration
12648 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
12649 # The LINGUAS file contains the set of available languages.
12650 if test -n "$OBSOLETE_ALL_LINGUAS"; then
12651 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" ||
echo "setting ALL_LINGUAS in configure.in is obsolete"
12653 ALL_LINGUAS_
=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
12654 # Hide the ALL_LINGUAS assigment from automake < 1.5.
12655 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
12656 POMAKEFILEDEPS
="$POMAKEFILEDEPS LINGUAS"
12658 # The set of available languages was given in configure.in.
12659 # Hide the ALL_LINGUAS assigment from automake < 1.5.
12660 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
12663 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
12664 # Compute UPDATEPOFILES
12665 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
12666 # Compute DUMMYPOFILES
12667 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
12669 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
12670 case "$ac_given_srcdir" in
12672 *) srcdirpre
='$(srcdir)/' ;;
12678 for lang
in $ALL_LINGUAS; do
12679 POFILES
="$POFILES $srcdirpre$lang.po"
12680 UPDATEPOFILES
="$UPDATEPOFILES $lang.po-update"
12681 DUMMYPOFILES
="$DUMMYPOFILES $lang.nop"
12682 GMOFILES
="$GMOFILES $srcdirpre$lang.gmo"
12684 # CATALOGS depends on both $ac_dir and the user's LINGUAS
12685 # environment variable.
12687 if test -n "$ALL_LINGUAS"; then
12688 for presentlang
in $ALL_LINGUAS; do
12690 if test "%UNSET%" != "$LINGUAS"; then
12691 desiredlanguages
="$LINGUAS"
12693 desiredlanguages
="$ALL_LINGUAS"
12695 for desiredlang
in $desiredlanguages; do
12696 # Use the presentlang catalog if desiredlang is
12697 # a. equal to presentlang, or
12698 # b. a variant of presentlang (because in this case,
12699 # presentlang can be used as a fallback for messages
12700 # which are not translated in the desiredlang catalog).
12701 case "$desiredlang" in
12702 "$presentlang"*) useit
=yes;;
12705 if test $useit = yes; then
12706 INST_LINGUAS
="$INST_LINGUAS $presentlang"
12711 if test -n "$INST_LINGUAS"; then
12712 for lang
in $INST_LINGUAS; do
12713 CATALOGS
="$CATALOGS $lang.gmo"
12716 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" ||
echo "creating $ac_dir/Makefile"
12717 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"
12718 for f
in "$ac_given_srcdir/$ac_dir"/Rules-
*; do
12719 if test -f "$f"; then
12721 *.orig |
*.bak |
*~
) ;;
12722 *) cat "$f" >> "$ac_dir/Makefile" ;;
12737 ac_clean_files
=$ac_clean_files_save
12739 test $ac_write_fail = 0 ||
12740 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
12743 # configure is writing to config.log, and then calls config.status.
12744 # config.status does its own redirection, appending to config.log.
12745 # Unfortunately, on DOS this fails, as config.log is still kept open
12746 # by configure, so config.status won't be able to write to it; its
12747 # output is simply discarded. So we exec the FD to /dev/null,
12748 # effectively closing config.log, so it can be properly (re)opened and
12749 # appended to by config.status. When coming back to configure, we
12750 # need to make the FD available again.
12751 if test "$no_create" != yes; then
12753 ac_config_status_args
=
12754 test "$silent" = yes &&
12755 ac_config_status_args
="$ac_config_status_args --quiet"
12757 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
12759 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12760 # would make configure fail if this is the last instruction.
12761 $ac_cs_success || as_fn_exit $?
12763 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
12764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12765 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}