2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE
=1; export DUALCASE
# for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print
-rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x
; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var
in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\
${$as_var+set} = xset \
120 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
133 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
138 _as_can_reexec
=no
; export _as_can_reexec
;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
147 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec
=; unset _as_can_reexec
;}
160 if test "x$CONFIG_SHELL" = x
; then
161 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required
="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev
/null
; then :
205 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
208 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
210 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
213 test -z "$as_dir" && as_dir
=.
217 for as_base
in sh bash ksh sh5
; do
218 # Try only shells that exist, to save several forks.
219 as_shell
=$as_dir/$as_base
220 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
222 CONFIG_SHELL
=$as_shell as_have_required
=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
231 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
233 CONFIG_SHELL
=$SHELL as_have_required
=yes
238 if test "x$CONFIG_SHELL" != x
; then :
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
246 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
248 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
260 if test x
$as_have_required = xno
; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x
${ZSH_VERSION+set} = xset
; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
276 SHELL
=${CONFIG_SHELL-/bin/sh}
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE
= GREP_OPTIONS
=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
287 # Portably unset VAR.
290 { eval $1=; unset $1;}
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
314 # Create "$as_dir" as a directory, including parents if necessary.
319 -*) as_dir
=.
/$as_dir;;
321 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
325 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
328 as_dirs
="'$as_qdir' $as_dirs"
329 as_dir
=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
352 test -d "$as_dir" && break
354 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
355 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p
()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
374 eval 'as_fn_append ()
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
398 as_val
=`expr "$@" || test $? -eq 1`
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
410 as_status
=$1; test $as_status -eq 0 && as_status
=1
412 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit
$as_status
419 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
426 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
432 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
438 as_me
=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
457 # Avoid depending upon Character Ranges.
458 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits
='0123456789'
462 as_cr_alnum
=$as_cr_Letters$as_cr_digits
465 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
466 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 chmod +x
"$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec
=no
; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
496 # Exit status is that of the last command.
500 ECHO_C
= ECHO_N
= ECHO_T
=
501 case `echo -n x` in #(((((
503 case `echo 'xy\c'` in
504 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
513 rm -f conf$$ conf$$.exe conf$$.
file
514 if test -d conf$$.dir
; then
515 rm -f conf$$.dir
/conf$$.
file
518 mkdir conf$$.dir
2>/dev
/null
520 if (echo >conf$$.
file) 2>/dev
/null
; then
521 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
529 elif ln conf$$.
file conf$$
2>/dev
/null
; then
537 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
538 rmdir conf$$.dir
2>/dev
/null
540 if mkdir
-p .
2>/dev
/null
; then
541 as_mkdir_p
='mkdir -p "$as_dir"'
543 test -d .
/-p && rmdir .
/-p
548 as_executable_p
=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
568 ac_default_prefix
=/usr
/local
570 ac_config_libobj_dir
=.
577 # Identity of this package.
585 # Factoring default headers for most tests.
586 ac_includes_default
="\
588 #ifdef HAVE_SYS_TYPES_H
589 # include <sys/types.h>
591 #ifdef HAVE_SYS_STAT_H
592 # include <sys/stat.h>
598 # ifdef HAVE_STDLIB_H
603 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608 #ifdef HAVE_STRINGS_H
609 # include <strings.h>
611 #ifdef HAVE_INTTYPES_H
612 # include <inttypes.h>
621 ac_unique_file
="gettext.c"
623 ac_subst_vars
='LTLIBOBJS
638 INTL_LIBTOOL_SUFFIX_PREFIX
645 BUILD_INCLUDED_LIBINTL
707 program_transform_name
720 enable_option_checking
726 with_included_gettext
729 enable_maintainer_mode
731 ac_precious_vars
='build_alias
742 # Initialize some variables set by options.
744 ac_init_version
=false
745 ac_unrecognized_opts
=
747 # The variables have the same names as the options, with
748 # dashes changed to underlines.
756 program_transform_name
=s
,x
,x
,
764 # Installation directory options.
765 # These are left unexpanded so users can "make install exec_prefix=/foo"
766 # and all the variables that are supposed to be based on exec_prefix
767 # by default will actually change.
768 # Use braces instead of parens because sh, perl, etc. also accept them.
769 # (The list follows the same order as the GNU Coding Standards.)
770 bindir
='${exec_prefix}/bin'
771 sbindir
='${exec_prefix}/sbin'
772 libexecdir
='${exec_prefix}/libexec'
773 datarootdir
='${prefix}/share'
774 datadir
='${datarootdir}'
775 sysconfdir
='${prefix}/etc'
776 sharedstatedir
='${prefix}/com'
777 localstatedir
='${prefix}/var'
778 includedir
='${prefix}/include'
779 oldincludedir
='/usr/include'
780 docdir
='${datarootdir}/doc/${PACKAGE}'
781 infodir
='${datarootdir}/info'
786 libdir
='${exec_prefix}/lib'
787 localedir
='${datarootdir}/locale'
788 mandir
='${datarootdir}/man'
794 # If the previous option needs an argument, assign it.
795 if test -n "$ac_prev"; then
796 eval $ac_prev=\
$ac_option
802 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
807 # Accept the important Cygnus configure options, so we can diagnose typos.
809 case $ac_dashdash$ac_option in
813 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
815 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
818 -build |
--build |
--buil |
--bui |
--bu)
819 ac_prev
=build_alias
;;
820 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
821 build_alias
=$ac_optarg ;;
823 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
824 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
825 ac_prev
=cache_file
;;
826 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
827 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
828 cache_file
=$ac_optarg ;;
831 cache_file
=config.cache
;;
833 -datadir |
--datadir |
--datadi |
--datad)
835 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
836 datadir
=$ac_optarg ;;
838 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
839 |
--dataroo |
--dataro |
--datar)
840 ac_prev
=datarootdir
;;
841 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
842 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
843 datarootdir
=$ac_optarg ;;
845 -disable-* |
--disable-*)
846 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
847 # Reject names that are not valid shell variable names.
848 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
849 as_fn_error $?
"invalid feature name: $ac_useropt"
850 ac_useropt_orig
=$ac_useropt
851 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
852 case $ac_user_opts in
856 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
857 ac_unrecognized_sep
=', ';;
859 eval enable_
$ac_useropt=no
;;
861 -docdir |
--docdir |
--docdi |
--doc |
--do)
863 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
866 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
868 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
871 -enable-* |
--enable-*)
872 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
873 # Reject names that are not valid shell variable names.
874 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
875 as_fn_error $?
"invalid feature name: $ac_useropt"
876 ac_useropt_orig
=$ac_useropt
877 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
878 case $ac_user_opts in
882 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
883 ac_unrecognized_sep
=', ';;
885 eval enable_
$ac_useropt=\
$ac_optarg ;;
887 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
888 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
889 |
--exec |
--exe |
--ex)
890 ac_prev
=exec_prefix
;;
891 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
892 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
893 |
--exec=* |
--exe=* |
--ex=*)
894 exec_prefix
=$ac_optarg ;;
896 -gas |
--gas |
--ga |
--g)
897 # Obsolete; use --with-gas.
900 -help |
--help |
--hel |
--he |
-h)
902 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
903 ac_init_help
=recursive
;;
904 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
905 ac_init_help
=short
;;
907 -host |
--host |
--hos |
--ho)
908 ac_prev
=host_alias
;;
909 -host=* |
--host=* |
--hos=* |
--ho=*)
910 host_alias
=$ac_optarg ;;
912 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
914 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
916 htmldir
=$ac_optarg ;;
918 -includedir |
--includedir |
--includedi |
--included |
--include \
919 |
--includ |
--inclu |
--incl |
--inc)
920 ac_prev
=includedir
;;
921 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
922 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
923 includedir
=$ac_optarg ;;
925 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
927 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
928 infodir
=$ac_optarg ;;
930 -libdir |
--libdir |
--libdi |
--libd)
932 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
935 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
936 |
--libexe |
--libex |
--libe)
937 ac_prev
=libexecdir
;;
938 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
939 |
--libexe=* |
--libex=* |
--libe=*)
940 libexecdir
=$ac_optarg ;;
942 -localedir |
--localedir |
--localedi |
--localed |
--locale)
944 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
945 localedir
=$ac_optarg ;;
947 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
948 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
949 ac_prev
=localstatedir
;;
950 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
951 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
952 localstatedir
=$ac_optarg ;;
954 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
956 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
960 # Obsolete; use --without-fp.
963 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
964 |
--no-cr |
--no-c |
-n)
967 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
968 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
971 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
972 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
973 |
--oldin |
--oldi |
--old |
--ol |
--o)
974 ac_prev
=oldincludedir
;;
975 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
976 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
977 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
978 oldincludedir
=$ac_optarg ;;
980 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
982 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
985 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
986 |
--program-pre |
--program-pr |
--program-p)
987 ac_prev
=program_prefix
;;
988 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
989 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
990 program_prefix
=$ac_optarg ;;
992 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
993 |
--program-suf |
--program-su |
--program-s)
994 ac_prev
=program_suffix
;;
995 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
996 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
997 program_suffix
=$ac_optarg ;;
999 -program-transform-name |
--program-transform-name \
1000 |
--program-transform-nam |
--program-transform-na \
1001 |
--program-transform-n |
--program-transform- \
1002 |
--program-transform |
--program-transfor \
1003 |
--program-transfo |
--program-transf \
1004 |
--program-trans |
--program-tran \
1005 |
--progr-tra |
--program-tr |
--program-t)
1006 ac_prev
=program_transform_name
;;
1007 -program-transform-name=* |
--program-transform-name=* \
1008 |
--program-transform-nam=* |
--program-transform-na=* \
1009 |
--program-transform-n=* |
--program-transform-=* \
1010 |
--program-transform=* |
--program-transfor=* \
1011 |
--program-transfo=* |
--program-transf=* \
1012 |
--program-trans=* |
--program-tran=* \
1013 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1014 program_transform_name
=$ac_optarg ;;
1016 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1018 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1019 pdfdir
=$ac_optarg ;;
1021 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1023 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1026 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1027 |
-silent |
--silent |
--silen |
--sile |
--sil)
1030 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1032 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1034 sbindir
=$ac_optarg ;;
1036 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1037 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1038 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1040 ac_prev
=sharedstatedir
;;
1041 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1042 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1043 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1045 sharedstatedir
=$ac_optarg ;;
1047 -site |
--site |
--sit)
1049 -site=* |
--site=* |
--sit=*)
1052 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1054 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1055 srcdir
=$ac_optarg ;;
1057 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1058 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1059 ac_prev
=sysconfdir
;;
1060 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1061 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1062 sysconfdir
=$ac_optarg ;;
1064 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1065 ac_prev
=target_alias
;;
1066 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1067 target_alias
=$ac_optarg ;;
1069 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1072 -version |
--version |
--versio |
--versi |
--vers |
-V)
1073 ac_init_version
=: ;;
1076 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1077 # Reject names that are not valid shell variable names.
1078 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1079 as_fn_error $?
"invalid package name: $ac_useropt"
1080 ac_useropt_orig
=$ac_useropt
1081 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1082 case $ac_user_opts in
1086 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1087 ac_unrecognized_sep
=', ';;
1089 eval with_
$ac_useropt=\
$ac_optarg ;;
1091 -without-* |
--without-*)
1092 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1093 # Reject names that are not valid shell variable names.
1094 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1095 as_fn_error $?
"invalid package name: $ac_useropt"
1096 ac_useropt_orig
=$ac_useropt
1097 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1098 case $ac_user_opts in
1102 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1103 ac_unrecognized_sep
=', ';;
1105 eval with_
$ac_useropt=no
;;
1108 # Obsolete; use --with-x.
1111 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1112 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1113 ac_prev
=x_includes
;;
1114 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1115 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1116 x_includes
=$ac_optarg ;;
1118 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1119 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1120 ac_prev
=x_libraries
;;
1121 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1122 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1123 x_libraries
=$ac_optarg ;;
1125 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1126 Try \`$0 --help' for more information"
1130 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1131 # Reject names that are not valid shell variable names.
1132 case $ac_envvar in #(
1133 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1134 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1136 eval $ac_envvar=\
$ac_optarg
1137 export $ac_envvar ;;
1140 # FIXME: should be removed in autoconf 3.0.
1141 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1142 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1143 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1144 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1150 if test -n "$ac_prev"; then
1151 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1152 as_fn_error $?
"missing argument to $ac_option"
1155 if test -n "$ac_unrecognized_opts"; then
1156 case $enable_option_checking in
1158 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1159 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1163 # Check all directory arguments for consistency.
1164 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1165 datadir sysconfdir sharedstatedir localstatedir includedir \
1166 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1167 libdir localedir mandir
1169 eval ac_val
=\$
$ac_var
1170 # Remove trailing slashes.
1173 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1174 eval $ac_var=\
$ac_val;;
1176 # Be sure to have absolute directory names.
1178 [\\/$
]* | ?
:[\\/]* ) continue;;
1179 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1181 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1184 # There might be people who depend on the old broken behavior: `$host'
1185 # used to hold the argument of --host etc.
1186 # FIXME: To remove some day.
1189 target
=$target_alias
1191 # FIXME: To remove some day.
1192 if test "x$host_alias" != x
; then
1193 if test "x$build_alias" = x
; then
1194 cross_compiling
=maybe
1195 elif test "x$build_alias" != "x$host_alias"; then
1201 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1203 test "$silent" = yes && exec 6>/dev
/null
1206 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1207 ac_ls_di
=`ls -di .` &&
1208 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1209 as_fn_error $?
"working directory cannot be determined"
1210 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1211 as_fn_error $?
"pwd does not report name of working directory"
1214 # Find the source files, if location was not specified.
1215 if test -z "$srcdir"; then
1216 ac_srcdir_defaulted
=yes
1217 # Try the directory containing this script, then the parent directory.
1218 ac_confdir
=`$as_dirname -- "$as_myself" ||
1219 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1220 X"$as_myself" : 'X\(//\)[^/]' \| \
1221 X"$as_myself" : 'X\(//\)$' \| \
1222 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1223 $as_echo X"$as_myself" |
1224 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1242 if test ! -r "$srcdir/$ac_unique_file"; then
1246 ac_srcdir_defaulted
=no
1248 if test ! -r "$srcdir/$ac_unique_file"; then
1249 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1250 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1252 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1254 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1256 # When building in place, set srcdir=.
1257 if test "$ac_abs_confdir" = "$ac_pwd"; then
1260 # Remove unnecessary trailing slashes from srcdir.
1261 # Double slashes in file names in object file debugging info
1262 # mess up M-x gdb in Emacs.
1264 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1266 for ac_var
in $ac_precious_vars; do
1267 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1268 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1269 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1270 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1274 # Report the --help message.
1276 if test "$ac_init_help" = "long"; then
1277 # Omit some internal or obsolete options to make the list less imposing.
1278 # This message is too long to be a string in the A/UX 3.1 sh.
1280 \`configure' configures this package to adapt to many kinds of systems.
1282 Usage: $0 [OPTION]... [VAR=VALUE]...
1284 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1285 VAR=VALUE. See below for descriptions of some of the useful variables.
1287 Defaults for the options are specified in brackets.
1290 -h, --help display this help and exit
1291 --help=short display options specific to this package
1292 --help=recursive display the short help of all the included packages
1293 -V, --version display version information and exit
1294 -q, --quiet, --silent do not print \`checking ...' messages
1295 --cache-file=FILE cache test results in FILE [disabled]
1296 -C, --config-cache alias for \`--cache-file=config.cache'
1297 -n, --no-create do not create output files
1298 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1300 Installation directories:
1301 --prefix=PREFIX install architecture-independent files in PREFIX
1302 [$ac_default_prefix]
1303 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1306 By default, \`make install' will install all the files in
1307 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1308 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1309 for instance \`--prefix=\$HOME'.
1311 For better control, use the options below.
1313 Fine tuning of the installation directories:
1314 --bindir=DIR user executables [EPREFIX/bin]
1315 --sbindir=DIR system admin executables [EPREFIX/sbin]
1316 --libexecdir=DIR program executables [EPREFIX/libexec]
1317 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1318 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1319 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1320 --libdir=DIR object code libraries [EPREFIX/lib]
1321 --includedir=DIR C header files [PREFIX/include]
1322 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1323 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1324 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1325 --infodir=DIR info documentation [DATAROOTDIR/info]
1326 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1327 --mandir=DIR man documentation [DATAROOTDIR/man]
1328 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1329 --htmldir=DIR html documentation [DOCDIR]
1330 --dvidir=DIR dvi documentation [DOCDIR]
1331 --pdfdir=DIR pdf documentation [DOCDIR]
1332 --psdir=DIR ps documentation [DOCDIR]
1338 --build=BUILD configure
for building on BUILD
[guessed
]
1339 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1343 if test -n "$ac_init_help"; then
1348 --disable-option-checking ignore unrecognized
--enable/--with options
1349 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1350 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1351 --disable-nls do not use Native Language Support
1352 --disable-rpath do not hardcode runtime library paths
1353 --enable-maintainer-mode enable rules only needed by maintainers
1356 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1357 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1358 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1359 --with-libiconv-prefix[=DIR
] search
for libiconv
in DIR
/include and DIR
/lib
1360 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
1361 --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
1362 --with-included-gettext use the GNU gettext library included here
1363 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1364 --without-libintl-prefix don't search
for libintl
in includedir and libdir
1365 --with-libintl-type=TYPE
type of library to search
for (auto
/static
/shared
)
1367 Some influential environment variables
:
1368 CC C compiler
command
1369 CFLAGS C compiler flags
1370 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1371 nonstandard directory
<lib dir
>
1372 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1373 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1374 you have headers
in a nonstandard directory
<include dir
>
1377 Use these variables to override the choices made by
`configure' or to help
1378 it to find libraries and programs with nonstandard names/locations.
1380 Report bugs to the package provider.
1385 if test "$ac_init_help" = "recursive"; then
1386 # If there are subdirs, report their specific --help.
1387 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1388 test -d "$ac_dir" ||
1389 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1394 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1396 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1397 # A ".." for each directory in $ac_dir_suffix.
1398 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1399 case $ac_top_builddir_sub in
1400 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1401 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1404 ac_abs_top_builddir=$ac_pwd
1405 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1406 # for backward compatibility:
1407 ac_top_builddir=$ac_top_build_prefix
1410 .) # We are building in place.
1412 ac_top_srcdir=$ac_top_builddir_sub
1413 ac_abs_top_srcdir=$ac_pwd ;;
1414 [\\/]* | ?:[\\/]* ) # Absolute name.
1415 ac_srcdir=$srcdir$ac_dir_suffix;
1416 ac_top_srcdir=$srcdir
1417 ac_abs_top_srcdir=$srcdir ;;
1419 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1420 ac_top_srcdir=$ac_top_build_prefix$srcdir
1421 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1423 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1425 cd "$ac_dir" || { ac_status=$?; continue; }
1426 # Check for guested configure.
1427 if test -f "$ac_srcdir/configure.gnu"; then
1429 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1430 elif test -f "$ac_srcdir/configure"; then
1432 $SHELL "$ac_srcdir/configure" --help=recursive
1434 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1436 cd "$ac_pwd" || { ac_status=$?; break; }
1440 test -n "$ac_init_help" && exit $ac_status
1441 if $ac_init_version; then
1444 generated by GNU Autoconf 2.69
1446 Copyright (C) 2012 Free Software Foundation, Inc.
1447 This configure script is free software; the Free Software Foundation
1448 gives unlimited permission to copy, distribute and modify it.
1453 ## ------------------------ ##
1454 ## Autoconf initialization. ##
1455 ## ------------------------ ##
1457 # ac_fn_c_try_compile LINENO
1458 # --------------------------
1459 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1460 ac_fn_c_try_compile ()
1462 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1463 rm -f conftest.$ac_objext
1464 if { { ac_try="$ac_compile"
1466 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1467 *) ac_try_echo
=$ac_try;;
1469 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1470 $as_echo "$ac_try_echo"; } >&5
1471 (eval "$ac_compile") 2>conftest.err
1473 if test -s conftest.err
; then
1474 grep -v '^ *+' conftest.err
>conftest.er1
1475 cat conftest.er1
>&5
1476 mv -f conftest.er1 conftest.err
1478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1479 test $ac_status = 0; } && {
1480 test -z "$ac_c_werror_flag" ||
1481 test ! -s conftest.err
1482 } && test -s conftest.
$ac_objext; then :
1485 $as_echo "$as_me: failed program was:" >&5
1486 sed 's/^/| /' conftest.
$ac_ext >&5
1490 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1491 as_fn_set_status
$ac_retval
1493 } # ac_fn_c_try_compile
1495 # ac_fn_c_try_cpp LINENO
1496 # ----------------------
1497 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1500 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1501 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1503 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1504 *) ac_try_echo=$ac_try;;
1506 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1507 $as_echo "$ac_try_echo"; } >&5
1508 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1510 if test -s conftest.err; then
1511 grep -v '^ *+' conftest.err >conftest.er1
1512 cat conftest.er1 >&5
1513 mv -f conftest.er1 conftest.err
1515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1516 test $ac_status = 0; } > conftest.i && {
1517 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1518 test ! -s conftest.err
1522 $as_echo "$as_me: failed program was:" >&5
1523 sed 's/^/| /' conftest.$ac_ext >&5
1527 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1528 as_fn_set_status $ac_retval
1532 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1533 # -------------------------------------------------------
1534 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1535 # the include files in INCLUDES and setting the cache variable VAR
1537 ac_fn_c_check_header_mongrel ()
1539 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1540 if eval \${$3+:} false; then :
1541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1542 $as_echo_n "checking for $2... " >&6; }
1543 if eval \${$3+:} false; then :
1544 $as_echo_n "(cached) " >&6
1547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1548 $as_echo "$ac_res" >&6; }
1550 # Is the header compilable?
1551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1552 $as_echo_n "checking $2 usability... " >&6; }
1553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1554 /* end confdefs.h. */
1558 if ac_fn_c_try_compile "$LINENO"; then :
1559 ac_header_compiler=yes
1561 ac_header_compiler=no
1563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1565 $as_echo "$ac_header_compiler" >&6; }
1567 # Is the header present?
1568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1569 $as_echo_n "checking $2 presence... " >&6; }
1570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1571 /* end confdefs.h. */
1574 if ac_fn_c_try_cpp "$LINENO"; then :
1575 ac_header_preproc=yes
1577 ac_header_preproc=no
1579 rm -f conftest.err conftest.i conftest.$ac_ext
1580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1581 $as_echo "$ac_header_preproc" >&6; }
1583 # So? What about this header?
1584 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1587 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1588 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1589 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1593 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1595 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1597 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1598 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1599 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1601 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1605 $as_echo_n "checking for $2... " >&6; }
1606 if eval \${$3+:} false; then :
1607 $as_echo_n "(cached) " >&6
1609 eval "$3=\$ac_header_compiler"
1612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1613 $as_echo "$ac_res" >&6; }
1615 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1617 } # ac_fn_c_check_header_mongrel
1619 # ac_fn_c_try_run LINENO
1620 # ----------------------
1621 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1622 # that executables *can* be run.
1625 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1626 if { { ac_try="$ac_link"
1628 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1629 *) ac_try_echo
=$ac_try;;
1631 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1632 $as_echo "$ac_try_echo"; } >&5
1633 (eval "$ac_link") 2>&5
1635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1636 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1637 { { case "(($ac_try" in
1638 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1639 *) ac_try_echo=$ac_try;;
1641 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1642 $as_echo "$ac_try_echo"; } >&5
1643 (eval "$ac_try") 2>&5
1645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1646 test $ac_status = 0; }; }; then :
1649 $as_echo "$as_me: program exited with status $ac_status" >&5
1650 $as_echo "$as_me: failed program was:" >&5
1651 sed 's/^/| /' conftest.$ac_ext >&5
1653 ac_retval=$ac_status
1655 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1656 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1657 as_fn_set_status $ac_retval
1661 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1662 # -------------------------------------------------------
1663 # Tests whether HEADER exists and can be compiled using the include files in
1664 # INCLUDES, setting the cache variable VAR accordingly.
1665 ac_fn_c_check_header_compile ()
1667 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1669 $as_echo_n "checking for $2... " >&6; }
1670 if eval \${$3+:} false; then :
1671 $as_echo_n "(cached) " >&6
1673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1674 /* end confdefs.h. */
1678 if ac_fn_c_try_compile "$LINENO"; then :
1683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1687 $as_echo "$ac_res" >&6; }
1688 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1690 } # ac_fn_c_check_header_compile
1692 # ac_fn_c_try_link LINENO
1693 # -----------------------
1694 # Try to link conftest.$ac_ext, and return whether this succeeded.
1697 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1698 rm -f conftest.$ac_objext conftest$ac_exeext
1699 if { { ac_try="$ac_link"
1701 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1702 *) ac_try_echo
=$ac_try;;
1704 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1705 $as_echo "$ac_try_echo"; } >&5
1706 (eval "$ac_link") 2>conftest.err
1708 if test -s conftest.err
; then
1709 grep -v '^ *+' conftest.err
>conftest.er1
1710 cat conftest.er1
>&5
1711 mv -f conftest.er1 conftest.err
1713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1714 test $ac_status = 0; } && {
1715 test -z "$ac_c_werror_flag" ||
1716 test ! -s conftest.err
1717 } && test -s conftest
$ac_exeext && {
1718 test "$cross_compiling" = yes ||
1719 test -x conftest
$ac_exeext
1723 $as_echo "$as_me: failed program was:" >&5
1724 sed 's/^/| /' conftest.
$ac_ext >&5
1728 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1729 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1730 # interfere with the next link command; also delete a directory that is
1731 # left behind by Apple's compiler. We do this before executing the actions.
1732 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1733 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1734 as_fn_set_status
$ac_retval
1736 } # ac_fn_c_try_link
1738 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1739 # -------------------------------------------
1740 # Tests whether TYPE exists after having included INCLUDES, setting cache
1741 # variable VAR accordingly.
1742 ac_fn_c_check_type
()
1744 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1746 $as_echo_n "checking for $2... " >&6; }
1747 if eval \
${$3+:} false
; then :
1748 $as_echo_n "(cached) " >&6
1751 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1752 /* end confdefs.h. */
1763 if ac_fn_c_try_compile
"$LINENO"; then :
1764 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1765 /* end confdefs.h. */
1776 if ac_fn_c_try_compile
"$LINENO"; then :
1781 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1783 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1787 $as_echo "$ac_res" >&6; }
1788 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1790 } # ac_fn_c_check_type
1792 # ac_fn_c_check_func LINENO FUNC VAR
1793 # ----------------------------------
1794 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1795 ac_fn_c_check_func
()
1797 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1799 $as_echo_n "checking for $2... " >&6; }
1800 if eval \
${$3+:} false
; then :
1801 $as_echo_n "(cached) " >&6
1803 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1804 /* end confdefs.h. */
1805 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1806 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1807 #define $2 innocuous_$2
1809 /* System header to define __stub macros and hopefully few prototypes,
1810 which can conflict with char $2 (); below.
1811 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1812 <limits.h> exists even on freestanding compilers. */
1815 # include <limits.h>
1817 # include <assert.h>
1822 /* Override any GCC internal prototype to avoid an error.
1823 Use char because int might match the return type of a GCC
1824 builtin and then its argument prototype would still apply. */
1829 /* The GNU C library defines this for functions which it implements
1830 to always fail with ENOSYS. Some functions are actually named
1831 something starting with __ and the normal name is an alias. */
1832 #if defined __stub_$2 || defined __stub___$2
1844 if ac_fn_c_try_link
"$LINENO"; then :
1849 rm -f core conftest.err conftest.
$ac_objext \
1850 conftest
$ac_exeext conftest.
$ac_ext
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1854 $as_echo "$ac_res" >&6; }
1855 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1857 } # ac_fn_c_check_func
1858 cat >config.log
<<_ACEOF
1859 This file contains any messages produced by compilers while
1860 running configure, to aid debugging if configure makes a mistake.
1862 It was created by $as_me, which was
1863 generated by GNU Autoconf 2.69. Invocation command line was
1875 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1876 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1877 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1878 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1879 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1881 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1882 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1884 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1885 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1886 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1887 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1888 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1889 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1890 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1894 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1898 test -z "$as_dir" && as_dir
=.
1899 $as_echo "PATH: $as_dir"
1915 # Keep a trace of the command line.
1916 # Strip out --no-create and --no-recursion so they do not pile up.
1917 # Strip out --silent because we don't want to record it for future runs.
1918 # Also quote any args containing shell meta-characters.
1919 # Make two passes to allow for proper duplicate-argument suppression.
1923 ac_must_keep_next
=false
1929 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1930 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1931 |
-silent |
--silent |
--silen |
--sile |
--sil)
1934 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1937 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
1939 as_fn_append ac_configure_args1
" '$ac_arg'"
1940 if test $ac_must_keep_next = true
; then
1941 ac_must_keep_next
=false
# Got value, back to normal.
1944 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1945 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1946 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1947 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1948 case "$ac_configure_args0 " in
1949 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1952 -* ) ac_must_keep_next
=true
;;
1955 as_fn_append ac_configure_args
" '$ac_arg'"
1960 { ac_configure_args0
=; unset ac_configure_args0
;}
1961 { ac_configure_args1
=; unset ac_configure_args1
;}
1963 # When interrupted or exit'd, cleanup temporary files, and complete
1964 # config.log. We remove comments because anyway the quotes in there
1965 # would cause problems or look ugly.
1966 # WARNING: Use '\'' to represent an apostrophe within the trap.
1967 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1968 trap 'exit_status=$?
1969 # Save into config.log some information that might help in debugging.
1973 $as_echo "## ---------------- ##
1974 ## Cache variables. ##
1975 ## ---------------- ##"
1977 # The following way of writing the cache mishandles newlines in values,
1979 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1980 eval ac_val=\$$ac_var
1984 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1985 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1988 _ | IFS | as_nl) ;; #(
1989 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1990 *) { eval $ac_var=; unset $ac_var;} ;;
1995 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1996 *${as_nl}ac_space=\ *)
1998 "s/'\''/'\''\\\\'\'''\''/g;
1999 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2002 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2009 $as_echo "## ----------------- ##
2010 ## Output variables. ##
2011 ## ----------------- ##"
2013 for ac_var in $ac_subst_vars
2015 eval ac_val=\$$ac_var
2017 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2019 $as_echo "$ac_var='\''$ac_val'\''"
2023 if test -n "$ac_subst_files"; then
2024 $as_echo "## ------------------- ##
2025 ## File substitutions. ##
2026 ## ------------------- ##"
2028 for ac_var
in $ac_subst_files
2030 eval ac_val
=\$
$ac_var
2032 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2034 $as_echo "$ac_var='\''$ac_val'\''"
2039 if test -s confdefs.h; then
2040 $as_echo "## ----------- ##
2047 test "$ac_signal" != 0 &&
2048 $as_echo "$as_me: caught signal $ac_signal"
2049 $as_echo "$as_me: exit $exit_status"
2051 rm -f core *.core core.conftest.* &&
2052 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2055 for ac_signal
in 1 2 13 15; do
2056 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2060 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2061 rm -f -r conftest
* confdefs.h
2063 $as_echo "/* confdefs.h */" > confdefs.h
2065 # Predefined preprocessor variables.
2067 cat >>confdefs.h
<<_ACEOF
2068 #define PACKAGE_NAME "$PACKAGE_NAME"
2071 cat >>confdefs.h
<<_ACEOF
2072 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2075 cat >>confdefs.h
<<_ACEOF
2076 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2079 cat >>confdefs.h
<<_ACEOF
2080 #define PACKAGE_STRING "$PACKAGE_STRING"
2083 cat >>confdefs.h
<<_ACEOF
2084 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2087 cat >>confdefs.h
<<_ACEOF
2088 #define PACKAGE_URL "$PACKAGE_URL"
2092 # Let the site file select an alternate cache file if it wants to.
2093 # Prefer an explicitly selected file to automatically selected ones.
2096 if test -n "$CONFIG_SITE"; then
2097 # We do not want a PATH search for config.site.
2098 case $CONFIG_SITE in #((
2099 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2100 */*) ac_site_file1
=$CONFIG_SITE;;
2101 *) ac_site_file1
=.
/$CONFIG_SITE;;
2103 elif test "x$prefix" != xNONE
; then
2104 ac_site_file1
=$prefix/share
/config.site
2105 ac_site_file2
=$prefix/etc
/config.site
2107 ac_site_file1
=$ac_default_prefix/share
/config.site
2108 ac_site_file2
=$ac_default_prefix/etc
/config.site
2110 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2112 test "x$ac_site_file" = xNONE
&& continue
2113 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2114 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2115 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2116 sed 's/^/| /' "$ac_site_file" >&5
2118 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2119 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2120 as_fn_error $?
"failed to load site script $ac_site_file
2121 See \`config.log' for more details" "$LINENO" 5; }
2125 if test -r "$cache_file"; then
2126 # Some versions of bash will fail to source /dev/null (special files
2127 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2128 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2130 $as_echo "$as_me: loading cache $cache_file" >&6;}
2132 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2133 *) .
"./$cache_file";;
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2138 $as_echo "$as_me: creating cache $cache_file" >&6;}
2142 as_fn_append ac_header_list
" stdlib.h"
2143 as_fn_append ac_header_list
" unistd.h"
2144 as_fn_append ac_header_list
" sys/param.h"
2145 # Check that the precious variables saved in the cache have kept the same
2147 ac_cache_corrupted
=false
2148 for ac_var
in $ac_precious_vars; do
2149 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2150 eval ac_new_set
=\
$ac_env_${ac_var}_set
2151 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2152 eval ac_new_val
=\
$ac_env_${ac_var}_value
2153 case $ac_old_set,$ac_new_set in
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2156 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2157 ac_cache_corrupted
=: ;;
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2160 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2161 ac_cache_corrupted
=: ;;
2164 if test "x$ac_old_val" != "x$ac_new_val"; then
2165 # differences in whitespace do not lead to failure.
2166 ac_old_val_w
=`echo x $ac_old_val`
2167 ac_new_val_w
=`echo x $ac_new_val`
2168 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2170 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2171 ac_cache_corrupted
=:
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2174 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2175 eval $ac_var=\
$ac_old_val
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2178 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2180 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2183 # Pass precious variables to config.status.
2184 if test "$ac_new_set" = set; then
2186 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2187 *) ac_arg
=$ac_var=$ac_new_val ;;
2189 case " $ac_configure_args " in
2190 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2191 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2195 if $ac_cache_corrupted; then
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2197 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2199 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2200 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2202 ## -------------------- ##
2203 ## Main body of script. ##
2204 ## -------------------- ##
2207 ac_cpp
='$CPP $CPPFLAGS'
2208 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2209 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2210 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2217 ac_cpp
='$CPP $CPPFLAGS'
2218 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2219 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2220 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2221 if test -n "$ac_tool_prefix"; then
2222 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2223 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2225 $as_echo_n "checking for $ac_word... " >&6; }
2226 if ${ac_cv_prog_CC+:} false
; then :
2227 $as_echo_n "(cached) " >&6
2229 if test -n "$CC"; then
2230 ac_cv_prog_CC
="$CC" # Let the user override the test.
2232 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2236 test -z "$as_dir" && as_dir
=.
2237 for ac_exec_ext
in '' $ac_executable_extensions; do
2238 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2239 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2250 if test -n "$CC"; then
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2252 $as_echo "$CC" >&6; }
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2255 $as_echo "no" >&6; }
2260 if test -z "$ac_cv_prog_CC"; then
2262 # Extract the first word of "gcc", so it can be a program name with args.
2263 set dummy gcc
; ac_word
=$2
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2265 $as_echo_n "checking for $ac_word... " >&6; }
2266 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
2267 $as_echo_n "(cached) " >&6
2269 if test -n "$ac_ct_CC"; then
2270 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2272 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2276 test -z "$as_dir" && as_dir
=.
2277 for ac_exec_ext
in '' $ac_executable_extensions; do
2278 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2279 ac_cv_prog_ac_ct_CC
="gcc"
2280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2289 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2290 if test -n "$ac_ct_CC"; then
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2292 $as_echo "$ac_ct_CC" >&6; }
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2295 $as_echo "no" >&6; }
2298 if test "x$ac_ct_CC" = x
; then
2301 case $cross_compiling:$ac_tool_warned in
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2304 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2305 ac_tool_warned
=yes ;;
2313 if test -z "$CC"; then
2314 if test -n "$ac_tool_prefix"; then
2315 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2316 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2318 $as_echo_n "checking for $ac_word... " >&6; }
2319 if ${ac_cv_prog_CC+:} false
; then :
2320 $as_echo_n "(cached) " >&6
2322 if test -n "$CC"; then
2323 ac_cv_prog_CC
="$CC" # Let the user override the test.
2325 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2329 test -z "$as_dir" && as_dir
=.
2330 for ac_exec_ext
in '' $ac_executable_extensions; do
2331 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2332 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2343 if test -n "$CC"; then
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2345 $as_echo "$CC" >&6; }
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2348 $as_echo "no" >&6; }
2354 if test -z "$CC"; then
2355 # Extract the first word of "cc", so it can be a program name with args.
2356 set dummy cc
; ac_word
=$2
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2358 $as_echo_n "checking for $ac_word... " >&6; }
2359 if ${ac_cv_prog_CC+:} false
; then :
2360 $as_echo_n "(cached) " >&6
2362 if test -n "$CC"; then
2363 ac_cv_prog_CC
="$CC" # Let the user override the test.
2366 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2370 test -z "$as_dir" && as_dir
=.
2371 for ac_exec_ext
in '' $ac_executable_extensions; do
2372 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2373 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2374 ac_prog_rejected
=yes
2378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2385 if test $ac_prog_rejected = yes; then
2386 # We found a bogon in the path, so make sure we never use it.
2387 set dummy
$ac_cv_prog_CC
2389 if test $# != 0; then
2390 # We chose a different compiler from the bogus one.
2391 # However, it has the same basename, so the bogon will be chosen
2392 # first if we set CC to just the basename; use the full file name.
2394 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2400 if test -n "$CC"; then
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2402 $as_echo "$CC" >&6; }
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2405 $as_echo "no" >&6; }
2410 if test -z "$CC"; then
2411 if test -n "$ac_tool_prefix"; then
2412 for ac_prog
in cl.exe
2414 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2415 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2417 $as_echo_n "checking for $ac_word... " >&6; }
2418 if ${ac_cv_prog_CC+:} false
; then :
2419 $as_echo_n "(cached) " >&6
2421 if test -n "$CC"; then
2422 ac_cv_prog_CC
="$CC" # Let the user override the test.
2424 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2428 test -z "$as_dir" && as_dir
=.
2429 for ac_exec_ext
in '' $ac_executable_extensions; do
2430 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2431 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2442 if test -n "$CC"; then
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2444 $as_echo "$CC" >&6; }
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2447 $as_echo "no" >&6; }
2451 test -n "$CC" && break
2454 if test -z "$CC"; then
2456 for ac_prog
in cl.exe
2458 # Extract the first word of "$ac_prog", so it can be a program name with args.
2459 set dummy
$ac_prog; ac_word
=$2
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2461 $as_echo_n "checking for $ac_word... " >&6; }
2462 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
2463 $as_echo_n "(cached) " >&6
2465 if test -n "$ac_ct_CC"; then
2466 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2468 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2472 test -z "$as_dir" && as_dir
=.
2473 for ac_exec_ext
in '' $ac_executable_extensions; do
2474 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2475 ac_cv_prog_ac_ct_CC
="$ac_prog"
2476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2485 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2486 if test -n "$ac_ct_CC"; then
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2488 $as_echo "$ac_ct_CC" >&6; }
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2491 $as_echo "no" >&6; }
2495 test -n "$ac_ct_CC" && break
2498 if test "x$ac_ct_CC" = x
; then
2501 case $cross_compiling:$ac_tool_warned in
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2504 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2505 ac_tool_warned
=yes ;;
2514 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2515 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2516 as_fn_error $?
"no acceptable C compiler found in \$PATH
2517 See \`config.log' for more details" "$LINENO" 5; }
2519 # Provide some information about the compiler.
2520 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2523 for ac_option
in --version -v -V -qversion; do
2524 { { ac_try
="$ac_compiler $ac_option >&5"
2526 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2527 *) ac_try_echo=$ac_try;;
2529 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2530 $as_echo "$ac_try_echo"; } >&5
2531 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2533 if test -s conftest.err; then
2535 ... rest of stderr output deleted ...
2536 10q' conftest.err >conftest.er1
2537 cat conftest.er1 >&5
2539 rm -f conftest.er1 conftest.err
2540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2541 test $ac_status = 0; }
2544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2545 /* end confdefs.h. */
2555 ac_clean_files_save=$ac_clean_files
2556 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2557 # Try to create an executable without -o first, disregard a.out.
2558 # It will help us diagnose broken compilers, and finding out an intuition
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2561 $as_echo_n "checking whether the C compiler works... " >&6; }
2562 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
2564 # The possible output files:
2565 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2568 for ac_file in $ac_files
2571 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2572 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2577 if { { ac_try="$ac_link_default"
2579 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2580 *) ac_try_echo
=$ac_try;;
2582 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2583 $as_echo "$ac_try_echo"; } >&5
2584 (eval "$ac_link_default") 2>&5
2586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2587 test $ac_status = 0; }; then :
2588 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2589 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2590 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2591 # so that the user can short-circuit this test for compilers unknown to
2593 for ac_file
in $ac_files ''
2595 test -f "$ac_file" ||
continue
2597 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
2600 # We found the default executable, but exeext='' is most
2604 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
2606 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2608 # We set ac_cv_exeext here because the later test for it is not
2609 # safe: cross compilers may not add the suffix if given an `-o'
2610 # argument, so we may need to know it at that point already.
2611 # Even if this section looks crufty: it has the advantage of
2618 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
2623 if test -z "$ac_file"; then :
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2625 $as_echo "no" >&6; }
2626 $as_echo "$as_me: failed program was:" >&5
2627 sed 's/^/| /' conftest.
$ac_ext >&5
2629 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2630 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2631 as_fn_error
77 "C compiler cannot create executables
2632 See \`config.log' for more details" "$LINENO" 5; }
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2635 $as_echo "yes" >&6; }
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2638 $as_echo_n "checking for C compiler default output file name... " >&6; }
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2640 $as_echo "$ac_file" >&6; }
2641 ac_exeext
=$ac_cv_exeext
2643 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
2644 ac_clean_files
=$ac_clean_files_save
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2646 $as_echo_n "checking for suffix of executables... " >&6; }
2647 if { { ac_try
="$ac_link"
2649 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2650 *) ac_try_echo=$ac_try;;
2652 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2653 $as_echo "$ac_try_echo"; } >&5
2654 (eval "$ac_link") 2>&5
2656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2657 test $ac_status = 0; }; then :
2658 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
2659 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
2660 # work properly (i.e., refer to `conftest.exe'), while it won't with
2662 for ac_file
in conftest.exe conftest conftest.
*; do
2663 test -f "$ac_file" ||
continue
2665 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2666 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2672 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2673 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2674 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
2675 See \`config.log' for more details" "$LINENO" 5; }
2677 rm -f conftest conftest
$ac_cv_exeext
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2679 $as_echo "$ac_cv_exeext" >&6; }
2681 rm -f conftest.
$ac_ext
2682 EXEEXT
=$ac_cv_exeext
2684 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2685 /* end confdefs.h. */
2690 FILE *f = fopen ("conftest.out", "w");
2691 return ferror (f) || fclose (f) != 0;
2697 ac_clean_files
="$ac_clean_files conftest.out"
2698 # Check that the compiler produces executables we can run. If not, either
2699 # the compiler is broken, or we cross compile.
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2701 $as_echo_n "checking whether we are cross compiling... " >&6; }
2702 if test "$cross_compiling" != yes; then
2703 { { ac_try
="$ac_link"
2705 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2706 *) ac_try_echo=$ac_try;;
2708 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2709 $as_echo "$ac_try_echo"; } >&5
2710 (eval "$ac_link") 2>&5
2712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2713 test $ac_status = 0; }
2714 if { ac_try='./conftest$ac_cv_exeext'
2715 { { case "(($ac_try" in
2716 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2717 *) ac_try_echo
=$ac_try;;
2719 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2720 $as_echo "$ac_try_echo"; } >&5
2721 (eval "$ac_try") 2>&5
2723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2724 test $ac_status = 0; }; }; then
2727 if test "$cross_compiling" = maybe
; then
2730 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2731 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2732 as_fn_error $?
"cannot run C compiled programs.
2733 If you meant to cross compile, use \`--host'.
2734 See \`config.log' for more details" "$LINENO" 5; }
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2739 $as_echo "$cross_compiling" >&6; }
2741 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
2742 ac_clean_files
=$ac_clean_files_save
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2744 $as_echo_n "checking for suffix of object files... " >&6; }
2745 if ${ac_cv_objext+:} false
; then :
2746 $as_echo_n "(cached) " >&6
2748 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2749 /* end confdefs.h. */
2759 rm -f conftest.o conftest.obj
2760 if { { ac_try
="$ac_compile"
2762 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2763 *) ac_try_echo=$ac_try;;
2765 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2766 $as_echo "$ac_try_echo"; } >&5
2767 (eval "$ac_compile") 2>&5
2769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2770 test $ac_status = 0; }; then :
2771 for ac_file in conftest.o conftest.obj conftest.*; do
2772 test -f "$ac_file" || continue;
2774 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2775 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2780 $as_echo "$as_me: failed program was:" >&5
2781 sed 's/^/| /' conftest.$ac_ext >&5
2783 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2784 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2785 as_fn_error $? "cannot compute suffix of object files
: cannot compile
2786 See \
`config.log' for more details" "$LINENO" 5; }
2788 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2791 $as_echo "$ac_cv_objext" >&6; }
2792 OBJEXT=$ac_cv_objext
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2795 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2796 if ${ac_cv_c_compiler_gnu+:} false; then :
2797 $as_echo_n "(cached) " >&6
2799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2800 /* end confdefs.h. */
2813 if ac_fn_c_try_compile "$LINENO"; then :
2818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2819 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2823 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2824 if test $ac_compiler_gnu = yes; then
2829 ac_test_CFLAGS=${CFLAGS+set}
2830 ac_save_CFLAGS=$CFLAGS
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2832 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2833 if ${ac_cv_prog_cc_g+:} false; then :
2834 $as_echo_n "(cached) " >&6
2836 ac_save_c_werror_flag=$ac_c_werror_flag
2837 ac_c_werror_flag=yes
2840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2841 /* end confdefs.h. */
2851 if ac_fn_c_try_compile "$LINENO"; then :
2855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2856 /* end confdefs.h. */
2866 if ac_fn_c_try_compile "$LINENO"; then :
2869 ac_c_werror_flag=$ac_save_c_werror_flag
2871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2872 /* end confdefs.h. */
2882 if ac_fn_c_try_compile "$LINENO"; then :
2885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2890 ac_c_werror_flag=$ac_save_c_werror_flag
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2893 $as_echo "$ac_cv_prog_cc_g" >&6; }
2894 if test "$ac_test_CFLAGS" = set; then
2895 CFLAGS=$ac_save_CFLAGS
2896 elif test $ac_cv_prog_cc_g = yes; then
2897 if test "$GCC" = yes; then
2903 if test "$GCC" = yes; then
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2910 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2911 if ${ac_cv_prog_cc_c89+:} false; then :
2912 $as_echo_n "(cached) " >&6
2914 ac_cv_prog_cc_c89=no
2916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2917 /* end confdefs.h. */
2921 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2922 struct buf { int x; };
2923 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2924 static char *e (p, i)
2930 static char *f (char * (*g) (char **, int), char **p, ...)
2935 s = g (p, va_arg (v,int));
2940 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2941 function prototypes and stuff, but not '\xHH' hex character constants.
2942 These don't provoke an error unfortunately, instead are silently treated
2943 as 'x'. The following induces an error, until -std is added to get
2944 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2945 array size at least. It's necessary to write '\x00'==0 to get something
2946 that's true only with -std. */
2947 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2949 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2950 inside strings and character constants. */
2952 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2954 int test (int i, double x);
2955 struct s1 {int (*f) (int a);};
2956 struct s2 {int (*f) (double a);};
2957 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2963 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2968 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2969 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2971 CC="$ac_save_CC $ac_arg"
2972 if ac_fn_c_try_compile "$LINENO"; then :
2973 ac_cv_prog_cc_c89=$ac_arg
2975 rm -f core conftest.err conftest.$ac_objext
2976 test "x$ac_cv_prog_cc_c89" != "xno" && break
2978 rm -f conftest.$ac_ext
2983 case "x$ac_cv_prog_cc_c89" in
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2986 $as_echo "none needed" >&6; } ;;
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2989 $as_echo "unsupported" >&6; } ;;
2991 CC="$CC $ac_cv_prog_cc_c89"
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2993 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2995 if test "x$ac_cv_prog_cc_c89" != xno; then :
3000 ac_cpp='$CPP $CPPFLAGS'
3001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3003 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3007 ac_cpp='$CPP $CPPFLAGS'
3008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3012 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3013 # On Suns, sometimes $CPP names a directory.
3014 if test -n "$CPP" && test -d "$CPP"; then
3017 if test -z "$CPP"; then
3018 if ${ac_cv_prog_CPP+:} false; then :
3019 $as_echo_n "(cached) " >&6
3021 # Double quotes because CPP needs to be expanded
3022 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3025 for ac_c_preproc_warn_flag in '' yes
3027 # Use a header file that comes with gcc, so configuring glibc
3028 # with a fresh cross-compiler works.
3029 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3030 # <limits.h> exists even on freestanding compilers.
3031 # On the NeXT, cc -E runs the code through the compiler's parser,
3032 # not just through cpp. "Syntax error" is here to catch this case.
3033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3034 /* end confdefs.h. */
3036 # include <limits.h>
3038 # include <assert.h>
3042 if ac_fn_c_try_cpp "$LINENO"; then :
3045 # Broken: fails on valid input.
3048 rm -f conftest.err conftest.i conftest.$ac_ext
3050 # OK, works on sane cases. Now check whether nonexistent headers
3051 # can be detected and how.
3052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3053 /* end confdefs.h. */
3054 #include <ac_nonexistent.h>
3056 if ac_fn_c_try_cpp "$LINENO"; then :
3057 # Broken: success on invalid input.
3060 # Passes both tests.
3064 rm -f conftest.err conftest.i conftest.$ac_ext
3067 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3068 rm -f conftest.i conftest.err conftest.
$ac_ext
3069 if $ac_preproc_ok; then :
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3082 $as_echo "$CPP" >&6; }
3084 for ac_c_preproc_warn_flag
in '' yes
3086 # Use a header file that comes with gcc, so configuring glibc
3087 # with a fresh cross-compiler works.
3088 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3089 # <limits.h> exists even on freestanding compilers.
3090 # On the NeXT, cc -E runs the code through the compiler's parser,
3091 # not just through cpp. "Syntax error" is here to catch this case.
3092 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3093 /* end confdefs.h. */
3095 # include <limits.h>
3097 # include <assert.h>
3101 if ac_fn_c_try_cpp
"$LINENO"; then :
3104 # Broken: fails on valid input.
3107 rm -f conftest.err conftest.i conftest.
$ac_ext
3109 # OK, works on sane cases. Now check whether nonexistent headers
3110 # can be detected and how.
3111 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3112 /* end confdefs.h. */
3113 #include <ac_nonexistent.h>
3115 if ac_fn_c_try_cpp
"$LINENO"; then :
3116 # Broken: success on invalid input.
3119 # Passes both tests.
3123 rm -f conftest.err conftest.i conftest.
$ac_ext
3126 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3127 rm -f conftest.i conftest.err conftest.
$ac_ext
3128 if $ac_preproc_ok; then :
3131 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3132 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3133 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
3134 See \`config.log' for more details" "$LINENO" 5; }
3138 ac_cpp
='$CPP $CPPFLAGS'
3139 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3140 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3141 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3145 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3146 if ${ac_cv_path_GREP+:} false
; then :
3147 $as_echo_n "(cached) " >&6
3149 if test -z "$GREP"; then
3150 ac_path_GREP_found
=false
3151 # Loop through the user's path and test for each of PROGNAME-LIST
3152 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3153 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3156 test -z "$as_dir" && as_dir
=.
3157 for ac_prog
in grep ggrep
; do
3158 for ac_exec_ext
in '' $ac_executable_extensions; do
3159 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3160 as_fn_executable_p
"$ac_path_GREP" ||
continue
3161 # Check for GNU ac_path_GREP and select it if it is found.
3162 # Check for GNU $ac_path_GREP
3163 case `"$ac_path_GREP" --version 2>&1` in
3165 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3168 $as_echo_n 0123456789 >"conftest.in"
3171 cat "conftest.in" "conftest.in" >"conftest.tmp"
3172 mv "conftest.tmp" "conftest.in"
3173 cp "conftest.in" "conftest.nl"
3174 $as_echo 'GREP' >> "conftest.nl"
3175 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3176 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3177 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3178 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3179 # Best one so far, save it but keep looking for a better one
3180 ac_cv_path_GREP
="$ac_path_GREP"
3181 ac_path_GREP_max
=$ac_count
3183 # 10*(2^10) chars as input seems more than enough
3184 test $ac_count -gt 10 && break
3186 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3189 $ac_path_GREP_found && break 3
3194 if test -z "$ac_cv_path_GREP"; then
3195 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3198 ac_cv_path_GREP
=$GREP
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3203 $as_echo "$ac_cv_path_GREP" >&6; }
3204 GREP
="$ac_cv_path_GREP"
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3208 $as_echo_n "checking for egrep... " >&6; }
3209 if ${ac_cv_path_EGREP+:} false
; then :
3210 $as_echo_n "(cached) " >&6
3212 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3213 then ac_cv_path_EGREP
="$GREP -E"
3215 if test -z "$EGREP"; then
3216 ac_path_EGREP_found
=false
3217 # Loop through the user's path and test for each of PROGNAME-LIST
3218 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3219 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3222 test -z "$as_dir" && as_dir
=.
3223 for ac_prog
in egrep; do
3224 for ac_exec_ext
in '' $ac_executable_extensions; do
3225 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3226 as_fn_executable_p
"$ac_path_EGREP" ||
continue
3227 # Check for GNU ac_path_EGREP and select it if it is found.
3228 # Check for GNU $ac_path_EGREP
3229 case `"$ac_path_EGREP" --version 2>&1` in
3231 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3234 $as_echo_n 0123456789 >"conftest.in"
3237 cat "conftest.in" "conftest.in" >"conftest.tmp"
3238 mv "conftest.tmp" "conftest.in"
3239 cp "conftest.in" "conftest.nl"
3240 $as_echo 'EGREP' >> "conftest.nl"
3241 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3242 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3243 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3244 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3245 # Best one so far, save it but keep looking for a better one
3246 ac_cv_path_EGREP
="$ac_path_EGREP"
3247 ac_path_EGREP_max
=$ac_count
3249 # 10*(2^10) chars as input seems more than enough
3250 test $ac_count -gt 10 && break
3252 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3255 $ac_path_EGREP_found && break 3
3260 if test -z "$ac_cv_path_EGREP"; then
3261 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3264 ac_cv_path_EGREP
=$EGREP
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3270 $as_echo "$ac_cv_path_EGREP" >&6; }
3271 EGREP
="$ac_cv_path_EGREP"
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3275 $as_echo_n "checking for ANSI C header files... " >&6; }
3276 if ${ac_cv_header_stdc+:} false
; then :
3277 $as_echo_n "(cached) " >&6
3279 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3280 /* end confdefs.h. */
3294 if ac_fn_c_try_compile
"$LINENO"; then :
3295 ac_cv_header_stdc
=yes
3297 ac_cv_header_stdc
=no
3299 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3301 if test $ac_cv_header_stdc = yes; then
3302 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3303 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3304 /* end confdefs.h. */
3308 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3309 $EGREP "memchr" >/dev
/null
2>&1; then :
3312 ac_cv_header_stdc
=no
3318 if test $ac_cv_header_stdc = yes; then
3319 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3320 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3321 /* end confdefs.h. */
3325 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3326 $EGREP "free" >/dev
/null
2>&1; then :
3329 ac_cv_header_stdc
=no
3335 if test $ac_cv_header_stdc = yes; then
3336 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3337 if test "$cross_compiling" = yes; then :
3340 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3341 /* end confdefs.h. */
3344 #if ((' ' & 0x0FF) == 0x020)
3345 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3346 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3348 # define ISLOWER(c) \
3349 (('a' <= (c) && (c) <= 'i') \
3350 || ('j' <= (c) && (c) <= 'r') \
3351 || ('s' <= (c) && (c) <= 'z'))
3352 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3355 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3360 for (i = 0; i < 256; i++)
3361 if (XOR (islower (i), ISLOWER (i))
3362 || toupper (i) != TOUPPER (i))
3367 if ac_fn_c_try_run
"$LINENO"; then :
3370 ac_cv_header_stdc
=no
3372 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
3373 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3379 $as_echo "$ac_cv_header_stdc" >&6; }
3380 if test $ac_cv_header_stdc = yes; then
3382 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3386 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3387 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3388 inttypes.h stdint.h unistd.h
3390 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3391 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3393 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
3394 cat >>confdefs.h
<<_ACEOF
3395 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3404 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3405 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
3412 if test "$MINIX" = yes; then
3414 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3417 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3420 $as_echo "#define _MINIX 1" >>confdefs.h
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3426 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3427 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
3428 $as_echo_n "(cached) " >&6
3430 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3431 /* end confdefs.h. */
3433 # define __EXTENSIONS__ 1
3434 $ac_includes_default
3443 if ac_fn_c_try_compile
"$LINENO"; then :
3444 ac_cv_safe_to_define___extensions__
=yes
3446 ac_cv_safe_to_define___extensions__
=no
3448 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3451 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3452 test $ac_cv_safe_to_define___extensions__ = yes &&
3453 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3455 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3457 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3459 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3461 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3465 ac_config_headers
="$ac_config_headers config.h"
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3470 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3472 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3473 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
3474 $as_echo_n "(cached) " >&6
3476 cat >conftest.
make <<\_ACEOF
3479 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3481 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3482 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3484 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3486 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3490 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3492 $as_echo "yes" >&6; }
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3496 $as_echo "no" >&6; }
3497 SET_MAKE
="MAKE=${MAKE-make}"
3501 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3502 if test -f "$ac_dir/install-sh"; then
3504 ac_install_sh
="$ac_aux_dir/install-sh -c"
3506 elif test -f "$ac_dir/install.sh"; then
3508 ac_install_sh
="$ac_aux_dir/install.sh -c"
3510 elif test -f "$ac_dir/shtool"; then
3512 ac_install_sh
="$ac_aux_dir/shtool install -c"
3516 if test -z "$ac_aux_dir"; then
3517 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3520 # These three variables are undocumented and unsupported,
3521 # and are intended to be withdrawn in a future Autoconf release.
3522 # They can cause serious problems if a builder's source tree is in a directory
3523 # whose full name contains unusual characters.
3524 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3525 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3526 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3529 # Find a good install program. We prefer a C program (faster),
3530 # so one script is as good as another. But avoid the broken or
3531 # incompatible versions:
3532 # SysV /etc/install, /usr/sbin/install
3533 # SunOS /usr/etc/install
3534 # IRIX /sbin/install
3536 # AmigaOS /C/install, which installs bootblocks on floppy discs
3537 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3538 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3539 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3540 # OS/2's system install, which has a completely different semantic
3541 # ./install, which can be erroneously created by make from ./install.sh.
3542 # Reject install programs that cannot install multiple files.
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3544 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3545 if test -z "$INSTALL"; then
3546 if ${ac_cv_path_install+:} false
; then :
3547 $as_echo_n "(cached) " >&6
3549 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3553 test -z "$as_dir" && as_dir
=.
3554 # Account for people who put trailing slashes in PATH elements.
3555 case $as_dir/ in #((
3556 .
/ | .
// |
/[cC
]/* | \
3557 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3558 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
3561 # OSF1 and SCO ODT 3.0 have their own names for install.
3562 # Don't use installbsd from OSF since it installs stuff as root
3564 for ac_prog
in ginstall scoinst
install; do
3565 for ac_exec_ext
in '' $ac_executable_extensions; do
3566 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
3567 if test $ac_prog = install &&
3568 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3569 # AIX install. It has an incompatible calling convention.
3571 elif test $ac_prog = install &&
3572 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3573 # program-specific install script used by HP pwplus--don't use.
3576 rm -rf conftest.one conftest.two conftest.dir
3577 echo one
> conftest.one
3578 echo two
> conftest.two
3580 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
3581 test -s conftest.one
&& test -s conftest.two
&&
3582 test -s conftest.dir
/conftest.one
&&
3583 test -s conftest.dir
/conftest.two
3585 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3598 rm -rf conftest.one conftest.two conftest.dir
3601 if test "${ac_cv_path_install+set}" = set; then
3602 INSTALL
=$ac_cv_path_install
3604 # As a last resort, use the slow shell script. Don't cache a
3605 # value for INSTALL within a source directory, because that will
3606 # break other packages using the cache if that directory is
3607 # removed, or if the value is a relative name.
3608 INSTALL
=$ac_install_sh
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3612 $as_echo "$INSTALL" >&6; }
3614 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3615 # It thinks the first close brace ends the variable substitution.
3616 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3618 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3620 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3624 if test -n "$ac_aux_dir"; then
3625 case "$ac_aux_dir" in
3626 /*) MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs" ;;
3627 *) MKINSTALLDIRS
="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
3630 if test -z "$MKINSTALLDIRS"; then
3631 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
3637 $as_echo_n "checking whether NLS is requested... " >&6; }
3638 # Check whether --enable-nls was given.
3639 if test "${enable_nls+set}" = set; then :
3640 enableval
=$enable_nls; USE_NLS
=$enableval
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
3646 $as_echo "$USE_NLS" >&6; }
3653 # Prepare PATH_SEPARATOR.
3654 # The user is always right.
3655 if test "${PATH_SEPARATOR+set}" != set; then
3656 echo "#! /bin/sh" >conf$$.sh
3657 echo "exit 0" >>conf$$.sh
3659 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
3667 # Find out how to test for executable files. Don't use a zero-byte file,
3668 # as systems may use methods other than mode bits to determine executability.
3669 cat >conf$$.
file <<_ASEOF
3673 chmod +x conf$$.
file
3674 if test -x conf$$.
file >/dev
/null
2>&1; then
3675 ac_executable_p
="test -x"
3677 ac_executable_p
="test -f"
3681 # Extract the first word of "msgfmt", so it can be a program name with args.
3682 set dummy msgfmt
; ac_word
=$2
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3684 $as_echo_n "checking for $ac_word... " >&6; }
3685 if ${ac_cv_path_MSGFMT+:} false
; then :
3686 $as_echo_n "(cached) " >&6
3690 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
3693 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
3694 for ac_dir
in $PATH; do
3696 test -z "$ac_dir" && ac_dir
=.
3697 for ac_exec_ext
in '' $ac_executable_extensions; do
3698 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3699 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1 &&
3700 (if $ac_dir/$ac_word --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
3701 ac_cv_path_MSGFMT
="$ac_dir/$ac_word$ac_exec_ext"
3708 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
3712 MSGFMT
="$ac_cv_path_MSGFMT"
3713 if test "$MSGFMT" != ":"; then
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
3715 $as_echo "$MSGFMT" >&6; }
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3718 $as_echo "no" >&6; }
3721 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3722 set dummy gmsgfmt
; ac_word
=$2
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3724 $as_echo_n "checking for $ac_word... " >&6; }
3725 if ${ac_cv_path_GMSGFMT+:} false
; then :
3726 $as_echo_n "(cached) " >&6
3730 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
3733 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3737 test -z "$as_dir" && as_dir
=.
3738 for ac_exec_ext
in '' $ac_executable_extensions; do
3739 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3740 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
3741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3748 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
3752 GMSGFMT
=$ac_cv_path_GMSGFMT
3753 if test -n "$GMSGFMT"; then
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
3755 $as_echo "$GMSGFMT" >&6; }
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3758 $as_echo "no" >&6; }
3764 # Prepare PATH_SEPARATOR.
3765 # The user is always right.
3766 if test "${PATH_SEPARATOR+set}" != set; then
3767 echo "#! /bin/sh" >conf$$.sh
3768 echo "exit 0" >>conf$$.sh
3770 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
3778 # Find out how to test for executable files. Don't use a zero-byte file,
3779 # as systems may use methods other than mode bits to determine executability.
3780 cat >conf$$.
file <<_ASEOF
3784 chmod +x conf$$.
file
3785 if test -x conf$$.
file >/dev
/null
2>&1; then
3786 ac_executable_p
="test -x"
3788 ac_executable_p
="test -f"
3792 # Extract the first word of "xgettext", so it can be a program name with args.
3793 set dummy xgettext
; ac_word
=$2
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3795 $as_echo_n "checking for $ac_word... " >&6; }
3796 if ${ac_cv_path_XGETTEXT+:} false
; then :
3797 $as_echo_n "(cached) " >&6
3801 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
3804 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
3805 for ac_dir
in $PATH; do
3807 test -z "$ac_dir" && ac_dir
=.
3808 for ac_exec_ext
in '' $ac_executable_extensions; do
3809 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3810 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev
/null
>/dev
/null
2>&1 &&
3811 (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
3812 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word$ac_exec_ext"
3819 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
3823 XGETTEXT
="$ac_cv_path_XGETTEXT"
3824 if test "$XGETTEXT" != ":"; then
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
3826 $as_echo "$XGETTEXT" >&6; }
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3829 $as_echo "no" >&6; }
3835 # Prepare PATH_SEPARATOR.
3836 # The user is always right.
3837 if test "${PATH_SEPARATOR+set}" != set; then
3838 echo "#! /bin/sh" >conf$$.sh
3839 echo "exit 0" >>conf$$.sh
3841 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
3849 # Find out how to test for executable files. Don't use a zero-byte file,
3850 # as systems may use methods other than mode bits to determine executability.
3851 cat >conf$$.
file <<_ASEOF
3855 chmod +x conf$$.
file
3856 if test -x conf$$.
file >/dev
/null
2>&1; then
3857 ac_executable_p
="test -x"
3859 ac_executable_p
="test -f"
3863 # Extract the first word of "msgmerge", so it can be a program name with args.
3864 set dummy msgmerge
; ac_word
=$2
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3866 $as_echo_n "checking for $ac_word... " >&6; }
3867 if ${ac_cv_path_MSGMERGE+:} false
; then :
3868 $as_echo_n "(cached) " >&6
3872 ac_cv_path_MSGMERGE
="$MSGMERGE" # Let the user override the test with a path.
3875 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
3876 for ac_dir
in $PATH; do
3878 test -z "$ac_dir" && ac_dir
=.
3879 for ac_exec_ext
in '' $ac_executable_extensions; do
3880 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3881 if $ac_dir/$ac_word --update -q /dev
/null
/dev
/null
>/dev
/null
2>&1; then
3882 ac_cv_path_MSGMERGE
="$ac_dir/$ac_word$ac_exec_ext"
3889 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE
=":"
3893 MSGMERGE
="$ac_cv_path_MSGMERGE"
3894 if test "$MSGMERGE" != ":"; then
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
3896 $as_echo "$MSGMERGE" >&6; }
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3899 $as_echo "no" >&6; }
3903 if test "$GMSGFMT" != ":"; then
3904 if $GMSGFMT --statistics /dev
/null
>/dev
/null
2>&1 &&
3905 (if $GMSGFMT --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
3908 GMSGFMT
=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
3910 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
3915 if test "$XGETTEXT" != ":"; then
3916 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev
/null
>/dev
/null
2>&1 &&
3917 (if $XGETTEXT --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
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
3921 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
3927 ac_config_commands
="$ac_config_commands default-1"
3930 # Make sure we can run config.sub.
3931 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
3932 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3935 $as_echo_n "checking build system type... " >&6; }
3936 if ${ac_cv_build+:} false
; then :
3937 $as_echo_n "(cached) " >&6
3939 ac_build_alias
=$build_alias
3940 test "x$ac_build_alias" = x
&&
3941 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
3942 test "x$ac_build_alias" = x
&&
3943 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
3944 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3945 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3949 $as_echo "$ac_cv_build" >&6; }
3950 case $ac_cv_build in
3952 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
3955 ac_save_IFS
=$IFS; IFS
='-'
3961 # Remember, the first character of IFS is used to create $*,
3962 # except with old shells:
3965 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3969 $as_echo_n "checking host system type... " >&6; }
3970 if ${ac_cv_host+:} false
; then :
3971 $as_echo_n "(cached) " >&6
3973 if test "x$host_alias" = x
; then
3974 ac_cv_host
=$ac_cv_build
3976 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3977 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3982 $as_echo "$ac_cv_host" >&6; }
3985 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
3988 ac_save_IFS
=$IFS; IFS
='-'
3994 # Remember, the first character of IFS is used to create $*,
3995 # except with old shells:
3998 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4001 if test -n "$ac_tool_prefix"; then
4002 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4003 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4005 $as_echo_n "checking for $ac_word... " >&6; }
4006 if ${ac_cv_prog_RANLIB+:} false
; then :
4007 $as_echo_n "(cached) " >&6
4009 if test -n "$RANLIB"; then
4010 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4012 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4016 test -z "$as_dir" && as_dir
=.
4017 for ac_exec_ext
in '' $ac_executable_extensions; do
4018 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4019 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4029 RANLIB
=$ac_cv_prog_RANLIB
4030 if test -n "$RANLIB"; then
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4032 $as_echo "$RANLIB" >&6; }
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4035 $as_echo "no" >&6; }
4040 if test -z "$ac_cv_prog_RANLIB"; then
4041 ac_ct_RANLIB
=$RANLIB
4042 # Extract the first word of "ranlib", so it can be a program name with args.
4043 set dummy ranlib
; ac_word
=$2
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4045 $as_echo_n "checking for $ac_word... " >&6; }
4046 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
4047 $as_echo_n "(cached) " >&6
4049 if test -n "$ac_ct_RANLIB"; then
4050 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4052 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4056 test -z "$as_dir" && as_dir
=.
4057 for ac_exec_ext
in '' $ac_executable_extensions; do
4058 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4059 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4069 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4070 if test -n "$ac_ct_RANLIB"; then
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4072 $as_echo "$ac_ct_RANLIB" >&6; }
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4075 $as_echo "no" >&6; }
4078 if test "x$ac_ct_RANLIB" = x
; then
4081 case $cross_compiling:$ac_tool_warned in
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4084 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4085 ac_tool_warned
=yes ;;
4087 RANLIB
=$ac_ct_RANLIB
4090 RANLIB
="$ac_cv_prog_RANLIB"
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
4094 $as_echo_n "checking for library containing strerror... " >&6; }
4095 if ${ac_cv_search_strerror+:} false
; then :
4096 $as_echo_n "(cached) " >&6
4098 ac_func_search_save_LIBS
=$LIBS
4099 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4100 /* end confdefs.h. */
4102 /* Override any GCC internal prototype to avoid an error.
4103 Use char because int might match the return type of a GCC
4104 builtin and then its argument prototype would still apply. */
4117 for ac_lib
in '' cposix
; do
4118 if test -z "$ac_lib"; then
4119 ac_res
="none required"
4122 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4124 if ac_fn_c_try_link
"$LINENO"; then :
4125 ac_cv_search_strerror
=$ac_res
4127 rm -f core conftest.err conftest.
$ac_objext \
4129 if ${ac_cv_search_strerror+:} false
; then :
4133 if ${ac_cv_search_strerror+:} false
; then :
4136 ac_cv_search_strerror
=no
4139 LIBS
=$ac_func_search_save_LIBS
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
4142 $as_echo "$ac_cv_search_strerror" >&6; }
4143 ac_res
=$ac_cv_search_strerror
4144 if test "$ac_res" != no
; then :
4145 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4150 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4151 if ${ac_cv_c_const+:} false
; then :
4152 $as_echo_n "(cached) " >&6
4154 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4155 /* end confdefs.h. */
4162 /* Ultrix mips cc rejects this sort of thing. */
4163 typedef int charset[2];
4164 const charset cs = { 0, 0 };
4165 /* SunOS 4.1.1 cc rejects this. */
4166 char const *const *pcpcc;
4168 /* NEC SVR4.0.2 mips cc rejects this. */
4169 struct point {int x, y;};
4170 static struct point const zero = {0,0};
4171 /* AIX XL C 1.02.0.0 rejects this.
4172 It does not let you subtract one const X* pointer from another in
4173 an arm of an if-expression whose if-part is not a constant
4175 const char *g = "string";
4176 pcpcc = &g + (g ? g-g : 0);
4177 /* HPUX 7.0 cc rejects these. */
4179 ppc = (char**) pcpcc;
4180 pcpcc = (char const *const *) ppc;
4181 { /* SCO 3.2v4 cc rejects this sort of thing. */
4184 char const *s = 0 ? (char *) 0 : (char const *) 0;
4189 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4191 const int *foo = &x[0];
4194 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4195 typedef const int *iptr;
4199 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
4200 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4201 struct s { int j; const int *ap[3]; } bx;
4202 struct s *b = &bx; b->j = 5;
4204 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4208 return !cs[0] && !zero.x;
4215 if ac_fn_c_try_compile
"$LINENO"; then :
4220 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4223 $as_echo "$ac_cv_c_const" >&6; }
4224 if test $ac_cv_c_const = no
; then
4226 $as_echo "#define const /**/" >>confdefs.h
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4231 $as_echo_n "checking for inline... " >&6; }
4232 if ${ac_cv_c_inline+:} false
; then :
4233 $as_echo_n "(cached) " >&6
4236 for ac_kw
in inline __inline__ __inline
; do
4237 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4238 /* end confdefs.h. */
4241 static $ac_kw foo_t static_foo () {return 0; }
4242 $ac_kw foo_t foo () {return 0; }
4246 if ac_fn_c_try_compile
"$LINENO"; then :
4247 ac_cv_c_inline
=$ac_kw
4249 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4250 test "$ac_cv_c_inline" != no
&& break
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4255 $as_echo "$ac_cv_c_inline" >&6; }
4257 case $ac_cv_c_inline in
4260 case $ac_cv_c_inline in
4262 *) ac_val
=$ac_cv_c_inline;;
4264 cat >>confdefs.h
<<_ACEOF
4266 #define inline $ac_val
4272 ac_fn_c_check_type
"$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
4273 if test "x$ac_cv_type_off_t" = xyes
; then :
4277 cat >>confdefs.h
<<_ACEOF
4278 #define off_t long int
4283 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
4284 if test "x$ac_cv_type_size_t" = xyes
; then :
4288 cat >>confdefs.h
<<_ACEOF
4289 #define size_t unsigned int
4294 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4295 # for constant arguments. Useless!
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
4297 $as_echo_n "checking for working alloca.h... " >&6; }
4298 if ${ac_cv_working_alloca_h+:} false
; then :
4299 $as_echo_n "(cached) " >&6
4301 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4302 /* end confdefs.h. */
4307 char *p = (char *) alloca (2 * sizeof (int));
4313 if ac_fn_c_try_link
"$LINENO"; then :
4314 ac_cv_working_alloca_h
=yes
4316 ac_cv_working_alloca_h
=no
4318 rm -f core conftest.err conftest.
$ac_objext \
4319 conftest
$ac_exeext conftest.
$ac_ext
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
4322 $as_echo "$ac_cv_working_alloca_h" >&6; }
4323 if test $ac_cv_working_alloca_h = yes; then
4325 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
4330 $as_echo_n "checking for alloca... " >&6; }
4331 if ${ac_cv_func_alloca_works+:} false
; then :
4332 $as_echo_n "(cached) " >&6
4334 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4335 /* end confdefs.h. */
4337 # define alloca __builtin_alloca
4340 # include <malloc.h>
4341 # define alloca _alloca
4343 # ifdef HAVE_ALLOCA_H
4344 # include <alloca.h>
4349 # ifndef alloca /* predefined by HP cc +Olibcalls */
4350 void *alloca (size_t);
4360 char *p = (char *) alloca (1);
4366 if ac_fn_c_try_link
"$LINENO"; then :
4367 ac_cv_func_alloca_works
=yes
4369 ac_cv_func_alloca_works
=no
4371 rm -f core conftest.err conftest.
$ac_objext \
4372 conftest
$ac_exeext conftest.
$ac_ext
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
4375 $as_echo "$ac_cv_func_alloca_works" >&6; }
4377 if test $ac_cv_func_alloca_works = yes; then
4379 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
4382 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4383 # that cause trouble. Some versions do not even contain alloca or
4384 # contain a buggy version. If you still want to use their alloca,
4385 # use ar to extract alloca.o from them instead of compiling alloca.c.
4387 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
4389 $as_echo "#define C_ALLOCA 1" >>confdefs.h
4392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
4393 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
4394 if ${ac_cv_os_cray+:} false
; then :
4395 $as_echo_n "(cached) " >&6
4397 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4398 /* end confdefs.h. */
4399 #if defined CRAY && ! defined CRAY2
4406 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4407 $EGREP "webecray" >/dev
/null
2>&1; then :
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
4416 $as_echo "$ac_cv_os_cray" >&6; }
4417 if test $ac_cv_os_cray = yes; then
4418 for ac_func
in _getb67 GETB67 getb67
; do
4419 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4420 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
4421 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
4423 cat >>confdefs.h
<<_ACEOF
4424 #define CRAY_STACKSEG_END $ac_func
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
4434 $as_echo_n "checking stack direction for C alloca... " >&6; }
4435 if ${ac_cv_c_stack_direction+:} false
; then :
4436 $as_echo_n "(cached) " >&6
4438 if test "$cross_compiling" = yes; then :
4439 ac_cv_c_stack_direction
=0
4441 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4442 /* end confdefs.h. */
4443 $ac_includes_default
4445 find_stack_direction (int *addr, int depth)
4450 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
4451 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
4456 main (int argc, char **argv)
4458 return find_stack_direction (0, argc + !argv + 20) < 0;
4461 if ac_fn_c_try_run
"$LINENO"; then :
4462 ac_cv_c_stack_direction
=1
4464 ac_cv_c_stack_direction
=-1
4466 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4467 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
4472 $as_echo "$ac_cv_c_stack_direction" >&6; }
4473 cat >>confdefs.h
<<_ACEOF
4474 #define STACK_DIRECTION $ac_cv_c_stack_direction
4483 for ac_header
in $ac_header_list
4485 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4486 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4488 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4489 cat >>confdefs.h
<<_ACEOF
4490 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4504 for ac_func
in getpagesize
4506 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
4507 if test "x$ac_cv_func_getpagesize" = xyes
; then :
4508 cat >>confdefs.h
<<_ACEOF
4509 #define HAVE_GETPAGESIZE 1
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
4516 $as_echo_n "checking for working mmap... " >&6; }
4517 if ${ac_cv_func_mmap_fixed_mapped+:} false
; then :
4518 $as_echo_n "(cached) " >&6
4520 if test "$cross_compiling" = yes; then :
4521 ac_cv_func_mmap_fixed_mapped
=no
4523 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4524 /* end confdefs.h. */
4525 $ac_includes_default
4526 /* malloc might have been renamed as rpl_malloc. */
4529 /* Thanks to Mike Haertel and Jim Avera for this test.
4530 Here is a matrix of mmap possibilities:
4531 mmap private not fixed
4532 mmap private fixed at somewhere currently unmapped
4533 mmap private fixed at somewhere already mapped
4534 mmap shared not fixed
4535 mmap shared fixed at somewhere currently unmapped
4536 mmap shared fixed at somewhere already mapped
4537 For private mappings, we should verify that changes cannot be read()
4538 back from the file, nor mmap's back from the file at a different
4539 address. (There have been systems where private was not correctly
4540 implemented like the infamous i386 svr4.0, and systems where the
4541 VM page cache was not coherent with the file system buffer cache
4542 like early versions of FreeBSD and possibly contemporary NetBSD.)
4543 For shared mappings, we should conversely verify that changes get
4544 propagated back to all the places they're supposed to be.
4546 Grep wants private fixed already mapped.
4547 The main things grep needs to know about mmap are:
4548 * does it exist and is it safe to write into the mmap'd area
4549 * how to use it (BSD variants) */
4552 #include <sys/mman.h>
4554 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
4558 /* This mess was copied from the GNU getpagesize.h. */
4559 #ifndef HAVE_GETPAGESIZE
4560 # ifdef _SC_PAGESIZE
4561 # define getpagesize() sysconf(_SC_PAGESIZE)
4562 # else /* no _SC_PAGESIZE */
4563 # ifdef HAVE_SYS_PARAM_H
4564 # include <sys/param.h>
4565 # ifdef EXEC_PAGESIZE
4566 # define getpagesize() EXEC_PAGESIZE
4567 # else /* no EXEC_PAGESIZE */
4569 # define getpagesize() NBPG * CLSIZE
4572 # endif /* no CLSIZE */
4573 # else /* no NBPG */
4575 # define getpagesize() NBPC
4576 # else /* no NBPC */
4578 # define getpagesize() PAGESIZE
4579 # endif /* PAGESIZE */
4580 # endif /* no NBPC */
4581 # endif /* no NBPG */
4582 # endif /* no EXEC_PAGESIZE */
4583 # else /* no HAVE_SYS_PARAM_H */
4584 # define getpagesize() 8192 /* punt totally */
4585 # endif /* no HAVE_SYS_PARAM_H */
4586 # endif /* no _SC_PAGESIZE */
4588 #endif /* no HAVE_GETPAGESIZE */
4593 char *data, *data2, *data3;
4598 pagesize = getpagesize ();
4600 /* First, make a file with some known garbage in it. */
4601 data = (char *) malloc (pagesize);
4604 for (i = 0; i < pagesize; ++i)
4605 *(data + i) = rand ();
4607 fd = creat ("conftest.mmap", 0600);
4610 if (write (fd, data, pagesize) != pagesize)
4614 /* Next, check that the tail of a page is zero-filled. File must have
4615 non-zero length, otherwise we risk SIGBUS for entire page. */
4616 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
4620 if (write (fd2, cdata2, 1) != 1)
4622 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
4623 if (data2 == MAP_FAILED)
4625 for (i = 0; i < pagesize; ++i)
4629 if (munmap (data2, pagesize))
4632 /* Next, try to mmap the file at a fixed address which already has
4633 something else allocated at it. If we can, also make sure that
4634 we see the same garbage. */
4635 fd = open ("conftest.mmap", O_RDWR);
4638 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
4639 MAP_PRIVATE | MAP_FIXED, fd, 0L))
4641 for (i = 0; i < pagesize; ++i)
4642 if (*(data + i) != *(data2 + i))
4645 /* Finally, make sure that changes to the mapped area do not
4646 percolate back to the file as seen by read(). (This is a bug on
4647 some variants of i386 svr4.0.) */
4648 for (i = 0; i < pagesize; ++i)
4649 *(data2 + i) = *(data2 + i) + 1;
4650 data3 = (char *) malloc (pagesize);
4653 if (read (fd, data3, pagesize) != pagesize)
4655 for (i = 0; i < pagesize; ++i)
4656 if (*(data + i) != *(data3 + i))
4662 if ac_fn_c_try_run
"$LINENO"; then :
4663 ac_cv_func_mmap_fixed_mapped
=yes
4665 ac_cv_func_mmap_fixed_mapped
=no
4667 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4668 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
4673 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
4674 if test $ac_cv_func_mmap_fixed_mapped = yes; then
4676 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
4679 rm -f conftest.mmap conftest.txt
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
4683 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
4684 if ${ac_cv_gnu_library_2_1+:} false
; then :
4685 $as_echo_n "(cached) " >&6
4687 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4688 /* end confdefs.h. */
4690 #include <features.h>
4691 #ifdef __GNU_LIBRARY__
4692 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
4698 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4699 $EGREP "Lucky GNU user" >/dev
/null
2>&1; then :
4700 ac_cv_gnu_library_2_1
=yes
4702 ac_cv_gnu_library_2_1
=no
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
4710 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
4712 GLIBC21
="$ac_cv_gnu_library_2_1"
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
4718 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
4719 if ${gt_cv_int_divbyzero_sigfpe+:} false
; then :
4720 $as_echo_n "(cached) " >&6
4723 if test "$cross_compiling" = yes; then :
4725 # Guess based on the CPU.
4727 alpha
* | i3456786 | m68k | s390
*)
4728 gt_cv_int_divbyzero_sigfpe
="guessing yes";;
4730 gt_cv_int_divbyzero_sigfpe
="guessing no";;
4734 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4735 /* end confdefs.h. */
4742 sigfpe_handler (int sig)
4744 sigfpe_handler (sig) int sig;
4747 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
4748 exit (sig != SIGFPE);
4758 signal (SIGFPE, sigfpe_handler);
4759 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
4760 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
4761 signal (SIGTRAP, sigfpe_handler);
4763 /* Linux/SPARC yields signal SIGILL. */
4764 #if defined (__sparc__) && defined (__linux__)
4765 signal (SIGILL, sigfpe_handler);
4774 if ac_fn_c_try_run
"$LINENO"; then :
4775 gt_cv_int_divbyzero_sigfpe
=yes
4777 gt_cv_int_divbyzero_sigfpe
=no
4779 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4780 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
4786 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
4787 case "$gt_cv_int_divbyzero_sigfpe" in
4792 cat >>confdefs.h
<<_ACEOF
4793 #define INTDIV0_RAISES_SIGFPE $value
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
4799 $as_echo_n "checking for inttypes.h... " >&6; }
4800 if ${jm_ac_cv_header_inttypes_h+:} false
; then :
4801 $as_echo_n "(cached) " >&6
4803 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4804 /* end confdefs.h. */
4805 #include <sys/types.h>
4806 #include <inttypes.h>
4810 uintmax_t i = (uintmax_t) -1;
4815 if ac_fn_c_try_compile
"$LINENO"; then :
4816 jm_ac_cv_header_inttypes_h
=yes
4818 jm_ac_cv_header_inttypes_h
=no
4820 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
4823 $as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
4824 if test $jm_ac_cv_header_inttypes_h = yes; then
4826 cat >>confdefs.h
<<_ACEOF
4827 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
4834 $as_echo_n "checking for stdint.h... " >&6; }
4835 if ${jm_ac_cv_header_stdint_h+:} false
; then :
4836 $as_echo_n "(cached) " >&6
4838 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4839 /* end confdefs.h. */
4840 #include <sys/types.h>
4845 uintmax_t i = (uintmax_t) -1;
4850 if ac_fn_c_try_compile
"$LINENO"; then :
4851 jm_ac_cv_header_stdint_h
=yes
4853 jm_ac_cv_header_stdint_h
=no
4855 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
4858 $as_echo "$jm_ac_cv_header_stdint_h" >&6; }
4859 if test $jm_ac_cv_header_stdint_h = yes; then
4861 cat >>confdefs.h
<<_ACEOF
4862 #define HAVE_STDINT_H_WITH_UINTMAX 1
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
4869 $as_echo_n "checking for unsigned long long... " >&6; }
4870 if ${ac_cv_type_unsigned_long_long+:} false
; then :
4871 $as_echo_n "(cached) " >&6
4873 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4874 /* end confdefs.h. */
4875 unsigned long long ull = 1; int i = 63;
4879 unsigned long long ullmax = (unsigned long long) -1;
4880 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
4885 if ac_fn_c_try_link
"$LINENO"; then :
4886 ac_cv_type_unsigned_long_long
=yes
4888 ac_cv_type_unsigned_long_long
=no
4890 rm -f core conftest.err conftest.
$ac_objext \
4891 conftest
$ac_exeext conftest.
$ac_ext
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
4894 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
4895 if test $ac_cv_type_unsigned_long_long = yes; then
4897 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
4904 if test $jm_ac_cv_header_inttypes_h = no
&& test $jm_ac_cv_header_stdint_h = no
; then
4906 test $ac_cv_type_unsigned_long_long = yes \
4907 && ac_type
='unsigned long long' \
4908 || ac_type
='unsigned long'
4910 cat >>confdefs.h
<<_ACEOF
4911 #define uintmax_t $ac_type
4916 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
4922 $as_echo_n "checking for inttypes.h... " >&6; }
4923 if ${gt_cv_header_inttypes_h+:} false
; then :
4924 $as_echo_n "(cached) " >&6
4927 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4928 /* end confdefs.h. */
4929 #include <sys/types.h>
4930 #include <inttypes.h>
4939 if ac_fn_c_try_compile
"$LINENO"; then :
4940 gt_cv_header_inttypes_h
=yes
4942 gt_cv_header_inttypes_h
=no
4944 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
4948 $as_echo "$gt_cv_header_inttypes_h" >&6; }
4949 if test $gt_cv_header_inttypes_h = yes; then
4951 cat >>confdefs.h
<<_ACEOF
4952 #define HAVE_INTTYPES_H 1
4959 if test $gt_cv_header_inttypes_h = yes; then
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
4961 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
4962 if ${gt_cv_inttypes_pri_broken+:} false
; then :
4963 $as_echo_n "(cached) " >&6
4966 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4967 /* end confdefs.h. */
4968 #include <inttypes.h>
4981 if ac_fn_c_try_compile
"$LINENO"; then :
4982 gt_cv_inttypes_pri_broken
=no
4984 gt_cv_inttypes_pri_broken
=yes
4986 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
4990 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
4992 if test "$gt_cv_inttypes_pri_broken" = yes; then
4994 cat >>confdefs.h
<<_ACEOF
4995 #define PRI_MACROS_BROKEN 1
5001 if test "X$prefix" = "XNONE"; then
5002 acl_final_prefix
="$ac_default_prefix"
5004 acl_final_prefix
="$prefix"
5006 if test "X$exec_prefix" = "XNONE"; then
5007 acl_final_exec_prefix
='${prefix}'
5009 acl_final_exec_prefix
="$exec_prefix"
5011 acl_save_prefix
="$prefix"
5012 prefix
="$acl_final_prefix"
5013 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
5014 prefix
="$acl_save_prefix"
5017 # Check whether --with-gnu-ld was given.
5018 if test "${with_gnu_ld+set}" = set; then :
5019 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
5024 # Prepare PATH_SEPARATOR.
5025 # The user is always right.
5026 if test "${PATH_SEPARATOR+set}" != set; then
5027 echo "#! /bin/sh" >conf$$.sh
5028 echo "exit 0" >>conf$$.sh
5030 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
5038 if test "$GCC" = yes; then
5039 # Check if gcc -print-prog-name=ld gives a path.
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
5041 $as_echo_n "checking for ld used by GCC... " >&6; }
5044 # gcc leaves a trailing carriage return which upsets mingw
5045 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5047 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
5050 # Accept absolute paths.
5051 [\\/]* |
[A-Za-z
]:[\\/]*)
5052 re_direlt
='/[^/][^/]*/\.\./'
5053 # Canonicalize the path of ld
5054 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
5055 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
5056 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
5058 test -z "$LD" && LD
="$ac_prog"
5061 # If it fails, then pretend we aren't using GCC.
5065 # If it is relative, then search for the first ld in PATH.
5069 elif test "$with_gnu_ld" = yes; then
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5071 $as_echo_n "checking for GNU ld... " >&6; }
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5074 $as_echo_n "checking for non-GNU ld... " >&6; }
5076 if ${acl_cv_path_LD+:} false
; then :
5077 $as_echo_n "(cached) " >&6
5079 if test -z "$LD"; then
5080 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5081 for ac_dir
in $PATH; do
5082 test -z "$ac_dir" && ac_dir
=.
5083 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
5084 acl_cv_path_LD
="$ac_dir/$ac_prog"
5085 # Check to see if the program is GNU ld. I'd rather use --version,
5086 # but apparently some GNU ld's only accept -v.
5087 # Break only if it was the GNU/non-GNU ld that we prefer.
5088 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
$EGREP '(GNU|with BFD)' > /dev
/null
; then
5089 test "$with_gnu_ld" != no
&& break
5091 test "$with_gnu_ld" != yes && break
5097 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
5101 LD
="$acl_cv_path_LD"
5102 if test -n "$LD"; then
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5104 $as_echo "$LD" >&6; }
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5107 $as_echo "no" >&6; }
5109 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5111 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5112 if ${acl_cv_prog_gnu_ld+:} false
; then :
5113 $as_echo_n "(cached) " >&6
5115 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5116 if $LD -v 2>&1 </dev
/null |
$EGREP '(GNU|with BFD)' 1>&5; then
5117 acl_cv_prog_gnu_ld
=yes
5119 acl_cv_prog_gnu_ld
=no
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
5123 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
5124 with_gnu_ld
=$acl_cv_prog_gnu_ld
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
5129 $as_echo_n "checking for shared library run path origin... " >&6; }
5130 if ${acl_cv_rpath+:} false
; then :
5131 $as_echo_n "(cached) " >&6
5134 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
5135 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
5142 $as_echo "$acl_cv_rpath" >&6; }
5144 libext
="$acl_cv_libext"
5145 shlibext
="$acl_cv_shlibext"
5146 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
5147 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
5148 hardcode_direct
="$acl_cv_hardcode_direct"
5149 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
5150 # Check whether --enable-rpath was given.
5151 if test "${enable_rpath+set}" = set; then :
5152 enableval
=$enable_rpath; :
5166 acl_save_prefix
="$prefix"
5167 prefix
="$acl_final_prefix"
5168 acl_save_exec_prefix
="$exec_prefix"
5169 exec_prefix
="$acl_final_exec_prefix"
5171 eval additional_includedir
=\"$includedir\"
5172 eval additional_libdir
=\"$libdir\"
5174 exec_prefix
="$acl_save_exec_prefix"
5175 prefix
="$acl_save_prefix"
5178 # Check whether --with-libiconv-prefix was given.
5179 if test "${with_libiconv_prefix+set}" = set; then :
5180 withval
=$with_libiconv_prefix;
5181 if test "X$withval" = "Xno"; then
5184 if test "X$withval" = "X"; then
5186 acl_save_prefix
="$prefix"
5187 prefix
="$acl_final_prefix"
5188 acl_save_exec_prefix
="$exec_prefix"
5189 exec_prefix
="$acl_final_exec_prefix"
5191 eval additional_includedir
=\"$includedir\"
5192 eval additional_libdir
=\"$libdir\"
5194 exec_prefix
="$acl_save_exec_prefix"
5195 prefix
="$acl_save_prefix"
5198 additional_includedir
="$withval/include"
5199 additional_libdir
="$withval/lib"
5206 # Check whether --with-libiconv-type was given.
5207 if test "${with_libiconv_type+set}" = set; then :
5208 withval
=$with_libiconv_type; with_libiconv_type
=$withval
5210 with_libiconv_type
=auto
5213 lib_type
=`eval echo \$with_libiconv_type`
5220 names_already_handled
=
5221 names_next_round
='iconv '
5222 while test -n "$names_next_round"; do
5223 names_this_round
="$names_next_round"
5225 for name
in $names_this_round; do
5227 for n
in $names_already_handled; do
5228 if test "$n" = "$name"; then
5233 if test -z "$already_handled"; then
5234 names_already_handled
="$names_already_handled $name"
5235 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5236 eval value
=\"\
$HAVE_LIB$uppername\"
5237 if test -n "$value"; then
5238 if test "$value" = yes; then
5239 eval value
=\"\
$LIB$uppername\"
5240 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
5241 eval value
=\"\
$LTLIB$uppername\"
5242 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
5251 if test $use_additional = yes; then
5252 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
5253 found_dir
="$additional_libdir"
5254 found_so
="$additional_libdir/lib$name.$shlibext"
5255 if test -f "$additional_libdir/lib$name.la"; then
5256 found_la
="$additional_libdir/lib$name.la"
5258 elif test x
$lib_type != xshared
; then
5259 if test -f "$additional_libdir/lib$name.$libext"; then
5260 found_dir
="$additional_libdir"
5261 found_a
="$additional_libdir/lib$name.$libext"
5262 if test -f "$additional_libdir/lib$name.la"; then
5263 found_la
="$additional_libdir/lib$name.la"
5268 if test "X$found_dir" = "X"; then
5269 for x
in $LDFLAGS $LTLIBICONV; do
5271 acl_save_prefix
="$prefix"
5272 prefix
="$acl_final_prefix"
5273 acl_save_exec_prefix
="$exec_prefix"
5274 exec_prefix
="$acl_final_exec_prefix"
5276 exec_prefix
="$acl_save_exec_prefix"
5277 prefix
="$acl_save_prefix"
5281 dir
=`echo "X$x" | sed -e 's/^X-L//'`
5282 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
5284 found_so
="$dir/lib$name.$shlibext"
5285 if test -f "$dir/lib$name.la"; then
5286 found_la
="$dir/lib$name.la"
5288 elif test x
$lib_type != xshared
; then
5289 if test -f "$dir/lib$name.$libext"; then
5291 found_a
="$dir/lib$name.$libext"
5292 if test -f "$dir/lib$name.la"; then
5293 found_la
="$dir/lib$name.la"
5299 if test "X$found_dir" != "X"; then
5304 if test "X$found_dir" != "X"; then
5305 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
5306 if test "X$found_so" != "X"; then
5307 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
5308 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
5311 for x
in $ltrpathdirs; do
5312 if test "X$x" = "X$found_dir"; then
5317 if test -z "$haveit"; then
5318 ltrpathdirs
="$ltrpathdirs $found_dir"
5320 if test "$hardcode_direct" = yes; then
5321 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
5323 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
5324 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
5326 for x
in $rpathdirs; do
5327 if test "X$x" = "X$found_dir"; then
5332 if test -z "$haveit"; then
5333 rpathdirs
="$rpathdirs $found_dir"
5337 for x
in $LDFLAGS $LIBICONV; do
5339 acl_save_prefix
="$prefix"
5340 prefix
="$acl_final_prefix"
5341 acl_save_exec_prefix
="$exec_prefix"
5342 exec_prefix
="$acl_final_exec_prefix"
5344 exec_prefix
="$acl_save_exec_prefix"
5345 prefix
="$acl_save_prefix"
5347 if test "X$x" = "X-L$found_dir"; then
5352 if test -z "$haveit"; then
5353 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
5355 if test "$hardcode_minus_L" != no
; then
5356 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
5358 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
5364 if test "X$found_a" != "X"; then
5365 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
5367 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
5370 additional_includedir
=
5371 case "$found_dir" in
5373 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
5374 additional_includedir
="$basedir/include"
5377 if test "X$additional_includedir" != "X"; then
5378 if test "X$additional_includedir" != "X/usr/include"; then
5380 if test "X$additional_includedir" = "X/usr/local/include"; then
5381 if test -n "$GCC"; then
5383 linux
*) haveit
=yes;;
5387 if test -z "$haveit"; then
5388 for x
in $CPPFLAGS $INCICONV; do
5390 acl_save_prefix
="$prefix"
5391 prefix
="$acl_final_prefix"
5392 acl_save_exec_prefix
="$exec_prefix"
5393 exec_prefix
="$acl_final_exec_prefix"
5395 exec_prefix
="$acl_save_exec_prefix"
5396 prefix
="$acl_save_prefix"
5398 if test "X$x" = "X-I$additional_includedir"; then
5403 if test -z "$haveit"; then
5404 if test -d "$additional_includedir"; then
5405 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5411 if test -n "$found_la"; then
5412 save_libdir
="$libdir"
5414 */* |
*\\*) .
"$found_la" ;;
5415 *) .
"./$found_la" ;;
5417 libdir
="$save_libdir"
5418 for dep
in $dependency_libs; do
5421 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
5422 if test "X$additional_libdir" != "X/usr/lib"; then
5424 if test "X$additional_libdir" = "X/usr/local/lib"; then
5425 if test -n "$GCC"; then
5427 linux
*) haveit
=yes;;
5431 if test -z "$haveit"; then
5433 for x
in $LDFLAGS $LIBICONV; do
5435 acl_save_prefix
="$prefix"
5436 prefix
="$acl_final_prefix"
5437 acl_save_exec_prefix
="$exec_prefix"
5438 exec_prefix
="$acl_final_exec_prefix"
5440 exec_prefix
="$acl_save_exec_prefix"
5441 prefix
="$acl_save_prefix"
5443 if test "X$x" = "X-L$additional_libdir"; then
5448 if test -z "$haveit"; then
5449 if test -d "$additional_libdir"; then
5450 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
5454 for x
in $LDFLAGS $LTLIBICONV; do
5456 acl_save_prefix
="$prefix"
5457 prefix
="$acl_final_prefix"
5458 acl_save_exec_prefix
="$exec_prefix"
5459 exec_prefix
="$acl_final_exec_prefix"
5461 exec_prefix
="$acl_save_exec_prefix"
5462 prefix
="$acl_save_prefix"
5464 if test "X$x" = "X-L$additional_libdir"; then
5469 if test -z "$haveit"; then
5470 if test -d "$additional_libdir"; then
5471 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
5478 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
5479 if test "$enable_rpath" != no
; then
5481 for x
in $rpathdirs; do
5482 if test "X$x" = "X$dir"; then
5487 if test -z "$haveit"; then
5488 rpathdirs
="$rpathdirs $dir"
5491 for x
in $ltrpathdirs; do
5492 if test "X$x" = "X$dir"; then
5497 if test -z "$haveit"; then
5498 ltrpathdirs
="$ltrpathdirs $dir"
5503 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5506 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5509 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
5510 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
5516 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
5517 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
5518 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
5520 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
5521 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
5528 if test "X$rpathdirs" != "X"; then
5529 if test -n "$hardcode_libdir_separator"; then
5531 for found_dir
in $rpathdirs; do
5532 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
5534 acl_save_libdir
="$libdir"
5536 eval flag
=\"$hardcode_libdir_flag_spec\"
5537 libdir
="$acl_save_libdir"
5538 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
5540 for found_dir
in $rpathdirs; do
5541 acl_save_libdir
="$libdir"
5543 eval flag
=\"$hardcode_libdir_flag_spec\"
5544 libdir
="$acl_save_libdir"
5545 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
5549 if test "X$ltrpathdirs" != "X"; then
5550 for found_dir
in $ltrpathdirs; do
5551 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
5558 for ac_header
in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
5559 stdlib.h string.h unistd.h sys
/param.h
5561 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5562 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5563 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5564 cat >>confdefs.h
<<_ACEOF
5565 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5572 for ac_func
in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
5573 geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
5574 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next \
5577 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5578 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
5579 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
5580 cat >>confdefs.h
<<_ACEOF
5581 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
5594 $as_echo_n "checking for iconv... " >&6; }
5595 if ${am_cv_func_iconv+:} false
; then :
5596 $as_echo_n "(cached) " >&6
5599 am_cv_func_iconv
="no, consider installing GNU libiconv"
5601 am_save_CPPFLAGS
="$CPPFLAGS"
5602 CPPFLAGS
="$CPPFLAGS $INCICONV"
5603 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5604 /* end confdefs.h. */
5610 iconv_t cd = iconv_open("","");
5611 iconv(cd,NULL,NULL,NULL,NULL);
5617 if ac_fn_c_try_link
"$LINENO"; then :
5618 am_cv_func_iconv
=yes
5620 rm -f core conftest.err conftest.
$ac_objext \
5621 conftest
$ac_exeext conftest.
$ac_ext
5622 CPPFLAGS
="$am_save_CPPFLAGS"
5624 if test "$am_cv_func_iconv" != yes && test -d ..
/libiconv
; then
5625 for _libs
in .libs _libs
; do
5626 am_save_CPPFLAGS
="$CPPFLAGS"
5627 am_save_LIBS
="$LIBS"
5628 CPPFLAGS
="$CPPFLAGS -I../libiconv/include"
5629 LIBS
="$LIBS ../libiconv/lib/$_libs/libiconv.a"
5630 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5631 /* end confdefs.h. */
5637 iconv_t cd = iconv_open("","");
5638 iconv(cd,NULL,NULL,NULL,NULL);
5644 if ac_fn_c_try_link
"$LINENO"; then :
5645 INCICONV
="-I../libiconv/include"
5646 LIBICONV
='${top_builddir}'/..
/libiconv
/lib
/$_libs/libiconv.a
5647 LTLIBICONV
='${top_builddir}'/..
/libiconv
/lib
/libiconv.la
5649 am_cv_func_iconv
=yes
5651 rm -f core conftest.err conftest.
$ac_objext \
5652 conftest
$ac_exeext conftest.
$ac_ext
5653 CPPFLAGS
="$am_save_CPPFLAGS"
5654 LIBS
="$am_save_LIBS"
5655 if test "$am_cv_func_iconv" = "yes"; then
5661 if test "$am_cv_func_iconv" != yes; then
5662 am_save_CPPFLAGS
="$CPPFLAGS"
5663 am_save_LIBS
="$LIBS"
5664 CPPFLAGS
="$CPPFLAGS $INCICONV"
5665 LIBS
="$LIBS $LIBICONV"
5666 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5667 /* end confdefs.h. */
5673 iconv_t cd = iconv_open("","");
5674 iconv(cd,NULL,NULL,NULL,NULL);
5680 if ac_fn_c_try_link
"$LINENO"; then :
5682 am_cv_func_iconv
=yes
5684 rm -f core conftest.err conftest.
$ac_objext \
5685 conftest
$ac_exeext conftest.
$ac_ext
5686 CPPFLAGS
="$am_save_CPPFLAGS"
5687 LIBS
="$am_save_LIBS"
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
5692 $as_echo "$am_cv_func_iconv" >&6; }
5693 if test "$am_cv_func_iconv" = yes; then
5695 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
5698 if test "$am_cv_lib_iconv" = yes; then
5700 for element
in $INCICONV; do
5702 for x
in $CPPFLAGS; do
5704 acl_save_prefix
="$prefix"
5705 prefix
="$acl_final_prefix"
5706 acl_save_exec_prefix
="$exec_prefix"
5707 exec_prefix
="$acl_final_exec_prefix"
5709 exec_prefix
="$acl_save_exec_prefix"
5710 prefix
="$acl_save_prefix"
5712 if test "X$x" = "X$element"; then
5717 if test -z "$haveit"; then
5718 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
5723 $as_echo_n "checking how to link with libiconv... " >&6; }
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
5725 $as_echo "$LIBICONV" >&6; }
5733 if test "$am_cv_func_iconv" = yes; then
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
5735 $as_echo_n "checking for iconv declaration... " >&6; }
5736 if ${am_cv_proto_iconv+:} false
; then :
5737 $as_echo_n "(cached) " >&6
5740 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5741 /* end confdefs.h. */
5749 #if defined(__STDC__) || defined(__cplusplus)
5750 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
5763 if ac_fn_c_try_compile
"$LINENO"; then :
5764 am_cv_proto_iconv_arg1
=""
5766 am_cv_proto_iconv_arg1
="const"
5768 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5769 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);"
5772 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
5774 }$am_cv_proto_iconv" >&5
5776 }$am_cv_proto_iconv" >&6; }
5778 cat >>confdefs.h
<<_ACEOF
5779 #define ICONV_CONST $am_cv_proto_iconv_arg1
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
5786 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
5787 if ${am_cv_langinfo_codeset+:} false
; then :
5788 $as_echo_n "(cached) " >&6
5790 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5791 /* end confdefs.h. */
5792 #include <langinfo.h>
5796 char* cs = nl_langinfo(CODESET);
5801 if ac_fn_c_try_link
"$LINENO"; then :
5802 am_cv_langinfo_codeset
=yes
5804 am_cv_langinfo_codeset
=no
5806 rm -f core conftest.err conftest.
$ac_objext \
5807 conftest
$ac_exeext conftest.
$ac_ext
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
5811 $as_echo "$am_cv_langinfo_codeset" >&6; }
5812 if test $am_cv_langinfo_codeset = yes; then
5814 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
5818 if test $ac_cv_header_locale_h = yes; then
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
5821 $as_echo_n "checking for LC_MESSAGES... " >&6; }
5822 if ${am_cv_val_LC_MESSAGES+:} false
; then :
5823 $as_echo_n "(cached) " >&6
5825 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5826 /* end confdefs.h. */
5836 if ac_fn_c_try_link
"$LINENO"; then :
5837 am_cv_val_LC_MESSAGES
=yes
5839 am_cv_val_LC_MESSAGES
=no
5841 rm -f core conftest.err conftest.
$ac_objext \
5842 conftest
$ac_exeext conftest.
$ac_ext
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
5845 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
5846 if test $am_cv_val_LC_MESSAGES = yes; then
5848 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
5854 for ac_prog
in bison
5856 # Extract the first word of "$ac_prog", so it can be a program name with args.
5857 set dummy
$ac_prog; ac_word
=$2
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5859 $as_echo_n "checking for $ac_word... " >&6; }
5860 if ${ac_cv_prog_INTLBISON+:} false
; then :
5861 $as_echo_n "(cached) " >&6
5863 if test -n "$INTLBISON"; then
5864 ac_cv_prog_INTLBISON
="$INTLBISON" # Let the user override the test.
5866 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5870 test -z "$as_dir" && as_dir
=.
5871 for ac_exec_ext
in '' $ac_executable_extensions; do
5872 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5873 ac_cv_prog_INTLBISON
="$ac_prog"
5874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5883 INTLBISON
=$ac_cv_prog_INTLBISON
5884 if test -n "$INTLBISON"; then
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
5886 $as_echo "$INTLBISON" >&6; }
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5889 $as_echo "no" >&6; }
5893 test -n "$INTLBISON" && break
5896 if test -z "$INTLBISON"; then
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
5900 $as_echo_n "checking version of bison... " >&6; }
5901 ac_prog_version
=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
5902 case $ac_prog_version in
5903 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
5904 1.2[6-9]* |
1.
[3-9][0-9]* |
[2-9].
*)
5905 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
5906 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5909 $as_echo "$ac_prog_version" >&6; }
5911 if test $ac_verc_fail = yes; then
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5931 $as_echo_n "checking whether NLS is requested... " >&6; }
5932 # Check whether --enable-nls was given.
5933 if test "${enable_nls+set}" = set; then :
5934 enableval
=$enable_nls; USE_NLS
=$enableval
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5940 $as_echo "$USE_NLS" >&6; }
5945 BUILD_INCLUDED_LIBINTL
=no
5946 USE_INCLUDED_LIBINTL
=no
5952 if test "$USE_NLS" = "yes"; then
5953 gt_use_preinstalled_gnugettext
=no
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
5956 $as_echo_n "checking whether included gettext is requested... " >&6; }
5958 # Check whether --with-included-gettext was given.
5959 if test "${with_included_gettext+set}" = set; then :
5960 withval
=$with_included_gettext; nls_cv_force_use_gnu_gettext
=$withval
5962 nls_cv_force_use_gnu_gettext
=no
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
5966 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
5968 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
5969 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
5977 $as_echo_n "checking for GNU gettext in libc... " >&6; }
5978 if ${gt_cv_func_gnugettext2_libc+:} false
; then :
5979 $as_echo_n "(cached) " >&6
5981 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5982 /* end confdefs.h. */
5983 #include <libintl.h>
5984 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
5985 extern int _nl_msg_cat_cntr;
5986 extern int *_nl_domain_bindings;
5987 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
5989 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
5995 bindtextdomain ("", "");
5996 return (int) gettext ("") + (int) ngettext ("", "", 0) + __GNU_GETTEXT_SYMBOL_EXPRESSION
6001 if ac_fn_c_try_link
"$LINENO"; then :
6002 gt_cv_func_gnugettext2_libc
=yes
6004 gt_cv_func_gnugettext2_libc
=no
6006 rm -f core conftest.err conftest.
$ac_objext \
6007 conftest
$ac_exeext conftest.
$ac_ext
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext2_libc" >&5
6010 $as_echo "$gt_cv_func_gnugettext2_libc" >&6; }
6012 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
6018 acl_save_prefix
="$prefix"
6019 prefix
="$acl_final_prefix"
6020 acl_save_exec_prefix
="$exec_prefix"
6021 exec_prefix
="$acl_final_exec_prefix"
6023 eval additional_includedir
=\"$includedir\"
6024 eval additional_libdir
=\"$libdir\"
6026 exec_prefix
="$acl_save_exec_prefix"
6027 prefix
="$acl_save_prefix"
6030 # Check whether --with-libintl-prefix was given.
6031 if test "${with_libintl_prefix+set}" = set; then :
6032 withval
=$with_libintl_prefix;
6033 if test "X$withval" = "Xno"; then
6036 if test "X$withval" = "X"; then
6038 acl_save_prefix
="$prefix"
6039 prefix
="$acl_final_prefix"
6040 acl_save_exec_prefix
="$exec_prefix"
6041 exec_prefix
="$acl_final_exec_prefix"
6043 eval additional_includedir
=\"$includedir\"
6044 eval additional_libdir
=\"$libdir\"
6046 exec_prefix
="$acl_save_exec_prefix"
6047 prefix
="$acl_save_prefix"
6050 additional_includedir
="$withval/include"
6051 additional_libdir
="$withval/lib"
6058 # Check whether --with-libintl-type was given.
6059 if test "${with_libintl_type+set}" = set; then :
6060 withval
=$with_libintl_type; with_libintl_type
=$withval
6062 with_libintl_type
=auto
6065 lib_type
=`eval echo \$with_libintl_type`
6072 names_already_handled
=
6073 names_next_round
='intl '
6074 while test -n "$names_next_round"; do
6075 names_this_round
="$names_next_round"
6077 for name
in $names_this_round; do
6079 for n
in $names_already_handled; do
6080 if test "$n" = "$name"; then
6085 if test -z "$already_handled"; then
6086 names_already_handled
="$names_already_handled $name"
6087 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6088 eval value
=\"\
$HAVE_LIB$uppername\"
6089 if test -n "$value"; then
6090 if test "$value" = yes; then
6091 eval value
=\"\
$LIB$uppername\"
6092 test -z "$value" || LIBINTL
="${LIBINTL}${LIBINTL:+ }$value"
6093 eval value
=\"\
$LTLIB$uppername\"
6094 test -z "$value" || LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }$value"
6103 if test $use_additional = yes; then
6104 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
6105 found_dir
="$additional_libdir"
6106 found_so
="$additional_libdir/lib$name.$shlibext"
6107 if test -f "$additional_libdir/lib$name.la"; then
6108 found_la
="$additional_libdir/lib$name.la"
6110 elif test x
$lib_type != xshared
; then
6111 if test -f "$additional_libdir/lib$name.$libext"; then
6112 found_dir
="$additional_libdir"
6113 found_a
="$additional_libdir/lib$name.$libext"
6114 if test -f "$additional_libdir/lib$name.la"; then
6115 found_la
="$additional_libdir/lib$name.la"
6120 if test "X$found_dir" = "X"; then
6121 for x
in $LDFLAGS $LTLIBINTL; do
6123 acl_save_prefix
="$prefix"
6124 prefix
="$acl_final_prefix"
6125 acl_save_exec_prefix
="$exec_prefix"
6126 exec_prefix
="$acl_final_exec_prefix"
6128 exec_prefix
="$acl_save_exec_prefix"
6129 prefix
="$acl_save_prefix"
6133 dir
=`echo "X$x" | sed -e 's/^X-L//'`
6134 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
6136 found_so
="$dir/lib$name.$shlibext"
6137 if test -f "$dir/lib$name.la"; then
6138 found_la
="$dir/lib$name.la"
6140 elif test x
$lib_type != xshared
; then
6141 if test -f "$dir/lib$name.$libext"; then
6143 found_a
="$dir/lib$name.$libext"
6144 if test -f "$dir/lib$name.la"; then
6145 found_la
="$dir/lib$name.la"
6151 if test "X$found_dir" != "X"; then
6156 if test "X$found_dir" != "X"; then
6157 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
6158 if test "X$found_so" != "X"; then
6159 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
6160 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
6163 for x
in $ltrpathdirs; do
6164 if test "X$x" = "X$found_dir"; then
6169 if test -z "$haveit"; then
6170 ltrpathdirs
="$ltrpathdirs $found_dir"
6172 if test "$hardcode_direct" = yes; then
6173 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
6175 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
6176 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
6178 for x
in $rpathdirs; do
6179 if test "X$x" = "X$found_dir"; then
6184 if test -z "$haveit"; then
6185 rpathdirs
="$rpathdirs $found_dir"
6189 for x
in $LDFLAGS $LIBINTL; do
6191 acl_save_prefix
="$prefix"
6192 prefix
="$acl_final_prefix"
6193 acl_save_exec_prefix
="$exec_prefix"
6194 exec_prefix
="$acl_final_exec_prefix"
6196 exec_prefix
="$acl_save_exec_prefix"
6197 prefix
="$acl_save_prefix"
6199 if test "X$x" = "X-L$found_dir"; then
6204 if test -z "$haveit"; then
6205 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$found_dir"
6207 if test "$hardcode_minus_L" != no
; then
6208 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
6210 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
6216 if test "X$found_a" != "X"; then
6217 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_a"
6219 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
6222 additional_includedir
=
6223 case "$found_dir" in
6225 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6226 additional_includedir
="$basedir/include"
6229 if test "X$additional_includedir" != "X"; then
6230 if test "X$additional_includedir" != "X/usr/include"; then
6232 if test "X$additional_includedir" = "X/usr/local/include"; then
6233 if test -n "$GCC"; then
6235 linux
*) haveit
=yes;;
6239 if test -z "$haveit"; then
6240 for x
in $CPPFLAGS $INCINTL; do
6242 acl_save_prefix
="$prefix"
6243 prefix
="$acl_final_prefix"
6244 acl_save_exec_prefix
="$exec_prefix"
6245 exec_prefix
="$acl_final_exec_prefix"
6247 exec_prefix
="$acl_save_exec_prefix"
6248 prefix
="$acl_save_prefix"
6250 if test "X$x" = "X-I$additional_includedir"; then
6255 if test -z "$haveit"; then
6256 if test -d "$additional_includedir"; then
6257 INCINTL
="${INCINTL}${INCINTL:+ }-I$additional_includedir"
6263 if test -n "$found_la"; then
6264 save_libdir
="$libdir"
6266 */* |
*\\*) .
"$found_la" ;;
6267 *) .
"./$found_la" ;;
6269 libdir
="$save_libdir"
6270 for dep
in $dependency_libs; do
6273 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
6274 if test "X$additional_libdir" != "X/usr/lib"; then
6276 if test "X$additional_libdir" = "X/usr/local/lib"; then
6277 if test -n "$GCC"; then
6279 linux
*) haveit
=yes;;
6283 if test -z "$haveit"; then
6285 for x
in $LDFLAGS $LIBINTL; do
6287 acl_save_prefix
="$prefix"
6288 prefix
="$acl_final_prefix"
6289 acl_save_exec_prefix
="$exec_prefix"
6290 exec_prefix
="$acl_final_exec_prefix"
6292 exec_prefix
="$acl_save_exec_prefix"
6293 prefix
="$acl_save_prefix"
6295 if test "X$x" = "X-L$additional_libdir"; then
6300 if test -z "$haveit"; then
6301 if test -d "$additional_libdir"; then
6302 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
6306 for x
in $LDFLAGS $LTLIBINTL; do
6308 acl_save_prefix
="$prefix"
6309 prefix
="$acl_final_prefix"
6310 acl_save_exec_prefix
="$exec_prefix"
6311 exec_prefix
="$acl_final_exec_prefix"
6313 exec_prefix
="$acl_save_exec_prefix"
6314 prefix
="$acl_save_prefix"
6316 if test "X$x" = "X-L$additional_libdir"; then
6321 if test -z "$haveit"; then
6322 if test -d "$additional_libdir"; then
6323 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
6330 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
6331 if test "$enable_rpath" != no
; then
6333 for x
in $rpathdirs; do
6334 if test "X$x" = "X$dir"; then
6339 if test -z "$haveit"; then
6340 rpathdirs
="$rpathdirs $dir"
6343 for x
in $ltrpathdirs; do
6344 if test "X$x" = "X$dir"; then
6349 if test -z "$haveit"; then
6350 ltrpathdirs
="$ltrpathdirs $dir"
6355 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6358 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6361 LIBINTL
="${LIBINTL}${LIBINTL:+ }$dep"
6362 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }$dep"
6368 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
6369 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
6370 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
6372 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l:lib$name.$libext"
6373 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-l:lib$name.$libext"
6380 if test "X$rpathdirs" != "X"; then
6381 if test -n "$hardcode_libdir_separator"; then
6383 for found_dir
in $rpathdirs; do
6384 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6386 acl_save_libdir
="$libdir"
6388 eval flag
=\"$hardcode_libdir_flag_spec\"
6389 libdir
="$acl_save_libdir"
6390 LIBINTL
="${LIBINTL}${LIBINTL:+ }$flag"
6392 for found_dir
in $rpathdirs; do
6393 acl_save_libdir
="$libdir"
6395 eval flag
=\"$hardcode_libdir_flag_spec\"
6396 libdir
="$acl_save_libdir"
6397 LIBINTL
="${LIBINTL}${LIBINTL:+ }$flag"
6401 if test "X$ltrpathdirs" != "X"; then
6402 for found_dir
in $ltrpathdirs; do
6403 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
6408 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
6409 if ${gt_cv_func_gnugettext2_libintl+:} false
; then :
6410 $as_echo_n "(cached) " >&6
6412 gt_save_CPPFLAGS
="$CPPFLAGS"
6413 CPPFLAGS
="$CPPFLAGS $INCINTL"
6414 gt_save_LIBS
="$LIBS"
6415 LIBS
="$LIBS $LIBINTL"
6416 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6417 /* end confdefs.h. */
6418 #include <libintl.h>
6419 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
6420 extern int _nl_msg_cat_cntr;
6425 const char *_nl_expand_alias ();
6426 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (0))
6428 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
6434 bindtextdomain ("", "");
6435 return (int) gettext ("") + (int) ngettext ("", "", 0) + __GNU_GETTEXT_SYMBOL_EXPRESSION
6440 if ac_fn_c_try_link
"$LINENO"; then :
6441 gt_cv_func_gnugettext2_libintl
=yes
6443 gt_cv_func_gnugettext2_libintl
=no
6445 rm -f core conftest.err conftest.
$ac_objext \
6446 conftest
$ac_exeext conftest.
$ac_ext
6447 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
6448 LIBS
="$LIBS $LIBICONV"
6449 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6450 /* end confdefs.h. */
6451 #include <libintl.h>
6452 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
6453 extern int _nl_msg_cat_cntr;
6458 const char *_nl_expand_alias ();
6459 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (0))
6461 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
6467 bindtextdomain ("", "");
6468 return (int) gettext ("") + (int) ngettext ("", "", 0) + __GNU_GETTEXT_SYMBOL_EXPRESSION
6473 if ac_fn_c_try_link
"$LINENO"; then :
6474 LIBINTL
="$LIBINTL $LIBICONV"
6475 LTLIBINTL
="$LTLIBINTL $LTLIBICONV"
6476 gt_cv_func_gnugettext2_libintl
=yes
6479 rm -f core conftest.err conftest.
$ac_objext \
6480 conftest
$ac_exeext conftest.
$ac_ext
6482 CPPFLAGS
="$gt_save_CPPFLAGS"
6483 LIBS
="$gt_save_LIBS"
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext2_libintl" >&5
6486 $as_echo "$gt_cv_func_gnugettext2_libintl" >&6; }
6489 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
6490 ||
{ test "$gt_cv_func_gnugettext2_libintl" = "yes" \
6491 && test "$PACKAGE" != gettext-runtime \
6492 && test "$PACKAGE" != gettext-tools
; }; then
6493 gt_use_preinstalled_gnugettext
=yes
6501 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
6502 nls_cv_use_gnu_gettext
=yes
6506 if test "$nls_cv_use_gnu_gettext" = "yes"; then
6507 BUILD_INCLUDED_LIBINTL
=yes
6508 USE_INCLUDED_LIBINTL
=yes
6509 LIBINTL
="\${top_builddir}/intl/libintl.a $LIBICONV"
6510 LTLIBINTL
="\${top_builddir}/intl/libintl.a $LTLIBICONV"
6511 LIBS
=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
6514 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6515 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
6520 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6521 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
6523 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
6531 $as_echo_n "checking whether to use NLS... " >&6; }
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6533 $as_echo "$USE_NLS" >&6; }
6534 if test "$USE_NLS" = "yes"; then
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
6536 $as_echo_n "checking where the gettext function comes from... " >&6; }
6537 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6538 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
6539 gt_source
="external libintl"
6544 gt_source
="included intl directory"
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
6547 $as_echo "$gt_source" >&6; }
6550 if test "$USE_NLS" = "yes"; then
6552 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6553 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
6555 $as_echo_n "checking how to link with libintl... " >&6; }
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
6557 $as_echo "$LIBINTL" >&6; }
6559 for element
in $INCINTL; do
6561 for x
in $CPPFLAGS; do
6563 acl_save_prefix
="$prefix"
6564 prefix
="$acl_final_prefix"
6565 acl_save_exec_prefix
="$exec_prefix"
6566 exec_prefix
="$acl_final_exec_prefix"
6568 exec_prefix
="$acl_save_exec_prefix"
6569 prefix
="$acl_save_prefix"
6571 if test "X$x" = "X$element"; then
6576 if test -z "$haveit"; then
6577 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
6584 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
6587 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
6595 if test "$PACKAGE" = gettext-runtime ||
test "$PACKAGE" = gettext-tools
; then
6596 BUILD_INCLUDED_LIBINTL
=yes
6604 nls_cv_header_libgt
=
6615 if test "$USE_INCLUDED_LIBINTL" = yes; then
6616 INTLOBJS
="\$(GETTOBJS)"
6620 INTL_LIBTOOL_SUFFIX_PREFIX
=
6632 # This replaces the extensive use of DEFS in the original Makefile.in.
6634 $as_echo "#define IN_LIBINTL 1" >>confdefs.h
6637 $as_echo "#define IN_LIBRARY 1" >>confdefs.h
6640 $as_echo "#define DEPENDS_ON_LIBICONV 1" >>confdefs.h
6643 $as_echo "#define ENABLE_RELOCATABLE 1" >>confdefs.h
6646 $as_echo "#define NO_XMALLOC 1" >>confdefs.h
6649 $as_echo "#define set_relocation_prefix libintl_set_relocation_prefix" >>confdefs.h
6652 $as_echo "#define relocate libintl_relocate" >>confdefs.h
6655 MISSING
=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
6656 for ac_prog
in aclocal
6658 # Extract the first word of "$ac_prog", so it can be a program name with args.
6659 set dummy
$ac_prog; ac_word
=$2
6660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6661 $as_echo_n "checking for $ac_word... " >&6; }
6662 if ${ac_cv_prog_ACLOCAL+:} false
; then :
6663 $as_echo_n "(cached) " >&6
6665 if test -n "$ACLOCAL"; then
6666 ac_cv_prog_ACLOCAL
="$ACLOCAL" # Let the user override the test.
6668 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6672 test -z "$as_dir" && as_dir
=.
6673 for ac_exec_ext
in '' $ac_executable_extensions; do
6674 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6675 ac_cv_prog_ACLOCAL
="$ac_prog"
6676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6685 ACLOCAL
=$ac_cv_prog_ACLOCAL
6686 if test -n "$ACLOCAL"; then
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ACLOCAL" >&5
6688 $as_echo "$ACLOCAL" >&6; }
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6691 $as_echo "no" >&6; }
6695 test -n "$ACLOCAL" && break
6697 test -n "$ACLOCAL" || ACLOCAL
="$MISSING aclocal"
6699 for ac_prog
in autoconf
6701 # Extract the first word of "$ac_prog", so it can be a program name with args.
6702 set dummy
$ac_prog; ac_word
=$2
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6704 $as_echo_n "checking for $ac_word... " >&6; }
6705 if ${ac_cv_prog_AUTOCONF+:} false
; then :
6706 $as_echo_n "(cached) " >&6
6708 if test -n "$AUTOCONF"; then
6709 ac_cv_prog_AUTOCONF
="$AUTOCONF" # Let the user override the test.
6711 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6715 test -z "$as_dir" && as_dir
=.
6716 for ac_exec_ext
in '' $ac_executable_extensions; do
6717 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6718 ac_cv_prog_AUTOCONF
="$ac_prog"
6719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6728 AUTOCONF
=$ac_cv_prog_AUTOCONF
6729 if test -n "$AUTOCONF"; then
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
6731 $as_echo "$AUTOCONF" >&6; }
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6734 $as_echo "no" >&6; }
6738 test -n "$AUTOCONF" && break
6740 test -n "$AUTOCONF" || AUTOCONF
="$MISSING autoconf"
6742 for ac_prog
in autoheader
6744 # Extract the first word of "$ac_prog", so it can be a program name with args.
6745 set dummy
$ac_prog; ac_word
=$2
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6747 $as_echo_n "checking for $ac_word... " >&6; }
6748 if ${ac_cv_prog_AUTOHEADER+:} false
; then :
6749 $as_echo_n "(cached) " >&6
6751 if test -n "$AUTOHEADER"; then
6752 ac_cv_prog_AUTOHEADER
="$AUTOHEADER" # Let the user override the test.
6754 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6758 test -z "$as_dir" && as_dir
=.
6759 for ac_exec_ext
in '' $ac_executable_extensions; do
6760 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6761 ac_cv_prog_AUTOHEADER
="$ac_prog"
6762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6771 AUTOHEADER
=$ac_cv_prog_AUTOHEADER
6772 if test -n "$AUTOHEADER"; then
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOHEADER" >&5
6774 $as_echo "$AUTOHEADER" >&6; }
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6777 $as_echo "no" >&6; }
6781 test -n "$AUTOHEADER" && break
6783 test -n "$AUTOHEADER" || AUTOHEADER
="$MISSING autoheader"
6786 # Check whether --enable-maintainer-mode was given.
6787 if test "${enable_maintainer_mode+set}" = set; then :
6788 enableval
=$enable_maintainer_mode;
6790 enable_maintainer_mode
=no
6793 if test "x$enable_maintainer_mode" = xno
; then
6800 # Additional info for config.intl.
6806 case $USE_INCLUDED_LIBINTL in
6808 LIBINTL
=`echo $LIBINTL | sed 's,${top_builddir},-L&/..,; s,\.\./intl/libintl\.a,../intl -lintl,' `
6809 LIBINTL_DEP
='${top_builddir}/../intl/libintl.a'
6810 INCINTL
='-I${top_builddir}/../intl'
6814 # intl is sometimes linked into shared libraries even without --enable-shared
6815 # (e.g. gdbsupport's inprocess agent): so always PICify, just in case.
6821 # PIC is the default on some targets or must not be used.
6823 # For darwin, common symbols are not allowed in MH_DYLIB files
6825 # If we are using a compiler supporting mdynamic-no-pic
6826 # and the option has been tested as safe to add, then cancel
6827 # it here, since the code generated is incompatible with shared
6829 *-mdynamic-no-pic*) PICFLAG
='-fno-common -mno-dynamic-no-pic' ;;
6830 *) PICFLAG
=-fno-common ;;
6834 # PIC is the default.
6837 # PIC is the default for 64-bit PA HP-UX.
6839 i
[34567]86-*-cygwin* | x86_64-
*-cygwin*)
6841 i
[34567]86-*-mingw* | x86_64-
*-mingw*)
6843 i
[34567]86-*-interix[3-9]*)
6844 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6845 # Instead, we relocate shared libraries at runtime.
6847 i
[34567]86-*-nto-qnx*)
6848 # QNX uses GNU C++, but need to define -shared option too, otherwise
6850 PICFLAG
='-fPIC -shared'
6852 i
[34567]86-pc-msdosdjgpp*)
6853 # DJGPP does not support shared libraries at all.
6856 # On IA64 HP-UX, PIC is the default but the pic flag
6857 # sets the default TLS model and affects inlining.
6861 # PIC is the default.
6863 rs6000-ibm-aix
* | powerpc-ibm-aix
*)
6864 # All AIX code is PIC.
6867 # Some targets support both -fPIC and -fpic, but prefer the latter.
6869 i
[34567]86-*-* | x86_64-
*-*)
6872 # FIXME: Override -fPIC default in libgcc only?
6873 sh-
*-linux* | sh
[2346lbe
]*-*-linux*)
6879 # Default to -fPIC unless specified otherwise.
6885 # If the user explicitly uses -fpic/-fPIC, keep that.
6899 if test "$INTLBISON" != :; then
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking bison 3 or later" >&5
6902 $as_echo_n "checking bison 3 or later... " >&6; }
6903 ac_prog_version
=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
6904 case $ac_prog_version in
6906 ac_prog_version
="$ac_prog_version, bison3"; ac_bison3
=yes;;
6907 *) ac_prog_version
="$ac_prog_version, old";;
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
6910 $as_echo "$ac_prog_version" >&6; }
6911 if test $ac_bison3 = yes; then
6919 ac_config_files
="$ac_config_files Makefile config.intl"
6921 cat >confcache
<<\_ACEOF
6922 # This file is a shell script that caches the results of configure
6923 # tests run on this system so they can be shared between configure
6924 # scripts and configure runs, see configure's option --config-cache.
6925 # It is not useful on other systems. If it contains results you don't
6926 # want to keep, you may remove or edit it.
6928 # config.status only pays attention to the cache file if you give it
6929 # the --recheck option to rerun configure.
6931 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6932 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6937 # The following way of writing the cache mishandles newlines in values,
6938 # but we know of no workaround that is simple, portable, and efficient.
6939 # So, we kill variables containing newlines.
6940 # Ultrix sh set writes to stderr and can't be redirected directly,
6941 # and sets the high bit in the cache file unless we assign to the vars.
6943 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6944 eval ac_val
=\$
$ac_var
6948 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6949 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6952 _ | IFS | as_nl
) ;; #(
6953 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
6954 *) { eval $ac_var=; unset $ac_var;} ;;
6960 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6961 *${as_nl}ac_space
=\
*)
6962 # `set' does not quote correctly, so add quotes: double-quote
6963 # substitution turns \\\\ into \\, and sed turns \\ into \.
6966 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6969 # `set' quotes correctly as required by POSIX, so do not add quotes.
6970 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6979 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6981 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6983 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
6984 if test -w "$cache_file"; then
6985 if test "x$cache_file" != "x/dev/null"; then
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6987 $as_echo "$as_me: updating cache $cache_file" >&6;}
6988 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
6989 cat confcache
>"$cache_file"
6991 case $cache_file in #(
6993 mv -f confcache
"$cache_file"$$
&&
6994 mv -f "$cache_file"$$
"$cache_file" ;; #(
6996 mv -f confcache
"$cache_file" ;;
7001 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7002 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7007 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
7008 # Let make expand exec_prefix.
7009 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7011 DEFS
=-DHAVE_CONFIG_H
7016 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
7017 # 1. Remove the extension, and $U if already installed.
7018 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
7019 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
7020 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7021 # will be set to the directory where LIBOBJS objects are built.
7022 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7023 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
7027 LTLIBOBJS
=$ac_ltlibobjs
7031 : "${CONFIG_STATUS=./config.status}"
7033 ac_clean_files_save
=$ac_clean_files
7034 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7036 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7038 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7040 # Generated by $as_me.
7041 # Run this file to recreate the current configuration.
7042 # Compiler output produced by configure, useful for debugging
7043 # configure, is in config.log if it exists.
7049 SHELL=\${CONFIG_SHELL-$SHELL}
7052 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
7053 ## -------------------- ##
7054 ## M4sh Initialization. ##
7055 ## -------------------- ##
7057 # Be more Bourne compatible
7058 DUALCASE
=1; export DUALCASE
# for MKS sh
7059 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
7062 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7063 # is contrary to our usage. Disable this feature.
7064 alias -g '${1+"$@"}'='"$@"'
7065 setopt NO_GLOB_SUBST
7067 case `(set -o) 2>/dev/null` in #(
7079 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7080 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7081 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7082 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7083 # Prefer a ksh shell builtin over an external printf program on Solaris,
7084 # but without wasting forks for bash or zsh.
7085 if test -z "$BASH_VERSION$ZSH_VERSION" \
7086 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7087 as_echo='print
-r --'
7088 as_echo_n='print
-rn --'
7089 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7090 as_echo='printf %s
\n'
7091 as_echo_n='printf %s
'
7093 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7094 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
7095 as_echo_n='/usr
/ucb
/echo -n'
7097 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7098 as_echo_n_body='eval
7102 expr "X$arg" : "X\\(.*\\)$as_nl";
7103 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7105 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
7107 export as_echo_n_body
7108 as_echo_n='sh
-c $as_echo_n_body as_echo
'
7111 as_echo='sh
-c $as_echo_body as_echo
'
7114 # The user is always right.
7115 if test "${PATH_SEPARATOR+set}" != set; then
7117 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7118 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7125 # We need space, tab and new line, in precisely that order. Quoting is
7126 # there to prevent editors from complaining about space-tab.
7127 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7128 # splitting by setting IFS to empty value.)
7131 # Find who we are. Look in the path if we contain no directory separator.
7134 *[\\/]* ) as_myself=$0 ;;
7135 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7139 test -z "$as_dir" && as_dir=.
7140 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7146 # We did not find ourselves, most probably we were run as `sh COMMAND'
7147 # in which case we are not to be found in the path.
7148 if test "x$as_myself" = x
; then
7151 if test ! -f "$as_myself"; then
7152 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7156 # Unset variables that we do not need and which cause bugs (e.g. in
7157 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7158 # suppresses any "Segmentation fault" message there. '((' could
7159 # trigger a bug in pdksh 5.2.14.
7160 for as_var
in BASH_ENV ENV MAIL MAILPATH
7161 do eval test x\
${$as_var+set} = xset \
7162 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
7175 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
7178 # as_fn_error STATUS ERROR [LINENO LOG_FD]
7179 # ----------------------------------------
7180 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7181 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7182 # script with STATUS, using 1 if that was 0.
7185 as_status
=$1; test $as_status -eq 0 && as_status
=1
7187 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
7188 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7190 $as_echo "$as_me: error: $2" >&2
7191 as_fn_exit
$as_status
7195 # as_fn_set_status STATUS
7196 # -----------------------
7197 # Set $? to STATUS, without forking.
7201 } # as_fn_set_status
7205 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7215 # Portably unset VAR.
7218 { eval $1=; unset $1;}
7220 as_unset
=as_fn_unset
7221 # as_fn_append VAR VALUE
7222 # ----------------------
7223 # Append the text in VALUE to the end of the definition contained in VAR. Take
7224 # advantage of any shell optimizations that allow amortized linear growth over
7225 # repeated appends, instead of the typical quadratic growth present in naive
7227 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
7228 eval 'as_fn_append ()
7239 # as_fn_arith ARG...
7240 # ------------------
7241 # Perform arithmetic evaluation on the ARGs, and store the result in the
7242 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7243 # must be portable across $(()) and expr.
7244 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
7245 eval 'as_fn_arith ()
7252 as_val
=`expr "$@" || test $? -eq 1`
7257 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
7258 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
7264 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7265 as_basename
=basename
7270 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
7276 as_me
=`$as_basename -- "$0" ||
7277 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7278 X"$0" : 'X\(//\)$' \| \
7279 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7281 sed '/^.*\/\([^/][^/]*\)\/*$/{
7295 # Avoid depending upon Character Ranges.
7296 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
7297 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7298 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
7299 as_cr_digits
='0123456789'
7300 as_cr_alnum
=$as_cr_Letters$as_cr_digits
7302 ECHO_C
= ECHO_N
= ECHO_T
=
7303 case `echo -n x` in #(((((
7305 case `echo 'xy\c'` in
7306 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
7308 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
7315 rm -f conf$$ conf$$.exe conf$$.
file
7316 if test -d conf$$.dir
; then
7317 rm -f conf$$.dir
/conf$$.
file
7320 mkdir conf$$.dir
2>/dev
/null
7322 if (echo >conf$$.
file) 2>/dev
/null
; then
7323 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
7325 # ... but there are two gotchas:
7326 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7327 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7328 # In both cases, we have to default to `cp -pR'.
7329 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
7331 elif ln conf$$.
file conf$$
2>/dev
/null
; then
7339 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
7340 rmdir conf$$.dir
2>/dev
/null
7345 # Create "$as_dir" as a directory, including parents if necessary.
7350 -*) as_dir
=.
/$as_dir;;
7352 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
7356 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7357 *) as_qdir
=$as_dir;;
7359 as_dirs
="'$as_qdir' $as_dirs"
7360 as_dir
=`$as_dirname -- "$as_dir" ||
7361 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7362 X"$as_dir" : 'X\(//\)[^/]' \| \
7363 X"$as_dir" : 'X\(//\)$' \| \
7364 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7365 $as_echo X"$as_dir" |
7366 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7383 test -d "$as_dir" && break
7385 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
7386 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
7390 if mkdir
-p .
2>/dev
/null
; then
7391 as_mkdir_p
='mkdir -p "$as_dir"'
7393 test -d .
/-p && rmdir .
/-p
7398 # as_fn_executable_p FILE
7399 # -----------------------
7400 # Test if FILE is an executable regular file.
7401 as_fn_executable_p
()
7403 test -f "$1" && test -x "$1"
7404 } # as_fn_executable_p
7406 as_executable_p
=as_fn_executable_p
7408 # Sed expression to map a string onto a valid CPP name.
7409 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7411 # Sed expression to map a string onto a valid variable name.
7412 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7416 ## ----------------------------------- ##
7417 ## Main body of $CONFIG_STATUS script. ##
7418 ## ----------------------------------- ##
7420 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
7422 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7423 # Save the log message, to keep $0 and so on meaningful, and to
7424 # report actual input values of CONFIG_FILES etc. instead of their
7425 # values after options handling.
7427 This file was extended by $as_me, which was
7428 generated by GNU Autoconf 2.69. Invocation command line was
7430 CONFIG_FILES = $CONFIG_FILES
7431 CONFIG_HEADERS = $CONFIG_HEADERS
7432 CONFIG_LINKS = $CONFIG_LINKS
7433 CONFIG_COMMANDS = $CONFIG_COMMANDS
7436 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7441 case $ac_config_files in *"
7442 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
7445 case $ac_config_headers in *"
7446 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
7450 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7451 # Files that config.status was made for.
7452 config_files="$ac_config_files"
7453 config_headers="$ac_config_headers"
7454 config_commands="$ac_config_commands"
7458 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7460 \`$as_me' instantiates files and other configuration actions
7461 from templates according to the current configuration. Unless the files
7462 and actions are specified as TAGs, all are instantiated by default.
7464 Usage: $0 [OPTION]... [TAG]...
7466 -h, --help print this help, then exit
7467 -V, --version print version number and configuration settings, then exit
7468 --config print configuration, then exit
7469 -q, --quiet, --silent
7470 do not print progress messages
7471 -d, --debug don't remove temporary files
7472 --recheck update $as_me by reconfiguring in the same conditions
7473 --file=FILE[:TEMPLATE]
7474 instantiate the configuration file FILE
7475 --header=FILE[:TEMPLATE]
7476 instantiate the configuration header FILE
7478 Configuration files:
7481 Configuration headers:
7484 Configuration commands:
7487 Report bugs to the package provider."
7490 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7491 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7494 configured by $0, generated by GNU Autoconf 2.69,
7495 with options \\"\$ac_cs_config\\"
7497 Copyright (C) 2012 Free Software Foundation, Inc.
7498 This config.status script is free software; the Free Software Foundation
7499 gives unlimited permission to copy, distribute and modify it."
7504 test -n "\$AWK" || AWK=awk
7507 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7508 # The default lists apply if the user does not specify any file.
7514 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
7515 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
7519 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
7531 # Handling of the options.
7532 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
7534 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
7535 $as_echo "$ac_cs_version"; exit ;;
7536 --config |
--confi |
--conf |
--con |
--co |
--c )
7537 $as_echo "$ac_cs_config"; exit ;;
7538 --debug |
--debu |
--deb |
--de |
--d |
-d )
7540 --file |
--fil |
--fi |
--f )
7543 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7544 '') as_fn_error $?
"missing file argument" ;;
7546 as_fn_append CONFIG_FILES
" '$ac_optarg'"
7547 ac_need_defaults
=false
;;
7548 --header |
--heade |
--head |
--hea )
7551 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7553 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
7554 ac_need_defaults
=false
;;
7556 # Conflict between --help and --header
7557 as_fn_error $?
"ambiguous option: \`$1'
7558 Try \`$0 --help' for more information.";;
7559 --help |
--hel |
-h )
7560 $as_echo "$ac_cs_usage"; exit ;;
7561 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
7562 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
7566 -*) as_fn_error $?
"unrecognized option: \`$1'
7567 Try \`$0 --help' for more information." ;;
7569 *) as_fn_append ac_config_targets
" $1"
7570 ac_need_defaults
=false
;;
7576 ac_configure_extra_args
=
7578 if $ac_cs_silent; then
7580 ac_configure_extra_args
="$ac_configure_extra_args --silent"
7584 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7585 if \$ac_cs_recheck; then
7586 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7588 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7589 CONFIG_SHELL='$SHELL'
7595 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7599 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7600 ## Running $as_me. ##
7606 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7610 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
7611 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
7613 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
7614 # Capture the value of LINGUAS because we need it to compute CATALOGS.
7615 LINGUAS="${LINGUAS-%UNSET%}"
7620 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7622 # Handling of arguments.
7623 for ac_config_target
in $ac_config_targets
7625 case $ac_config_target in
7626 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
7627 "default-1") CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
7628 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
7629 "config.intl") CONFIG_FILES
="$CONFIG_FILES config.intl" ;;
7631 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7636 # If the user did not use the arguments to specify the items to instantiate,
7637 # then the envvar interface is used. Set only those that are not.
7638 # We use the long form for the default assignment because of an extremely
7639 # bizarre bug on SunOS 4.1.3.
7640 if $ac_need_defaults; then
7641 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
7642 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
7643 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
7646 # Have a temporary directory for convenience. Make it in the build tree
7647 # simply because there is no reason against having it here, and in addition,
7648 # creating and moving files from /tmp can sometimes cause problems.
7649 # Hook for its removal unless debugging.
7650 # Note that there is a small window in which the directory will not be cleaned:
7651 # after its creation but before its name has been assigned to `$tmp'.
7655 trap 'exit_status=$?
7657 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
7659 trap 'as_fn_exit 1' 1 2 13 15
7661 # Create a (secure) tmp directory for tmp files.
7664 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7668 tmp
=.
/conf$$
-$RANDOM
7669 (umask 077 && mkdir
"$tmp")
7670 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
7673 # Set up the scripts for CONFIG_FILES section.
7674 # No need to generate them if there are no CONFIG_FILES.
7675 # This happens for instance with `./config.status config.h'.
7676 if test -n "$CONFIG_FILES"; then
7679 ac_cr
=`echo X | tr X '\015'`
7680 # On cygwin, bash can eat \r inside `` if the user requested igncr.
7681 # But we know of no other shell where ac_cr would be empty at this
7682 # point, so we can use a bashism as a fallback.
7683 if test "x$ac_cr" = x
; then
7684 eval ac_cr
=\$
\'\\r
\'
7686 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7687 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7693 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
7698 echo "cat >conf$$subs.awk <<_ACEOF" &&
7699 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7702 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
7703 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
7705 for ac_last_try in false false false false false :; do
7706 . ./conf$$subs.sh ||
7707 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
7709 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
7710 if test $ac_delim_n = $ac_delim_num; then
7712 elif $ac_last_try; then
7713 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
7715 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
7720 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7721 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
7725 s/^/S["/; s
/!.
*/"]=/
7735 s/\(.\{148\}\)..*/\1/
7737 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
7742 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
7749 s/\(.\{148\}\)..*/\1/
7751 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
7755 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
7760 ' <conf$$subs.awk | sed '
7765 ' >>$CONFIG_STATUS || ac_write_fail=1
7766 rm -f conf$$subs.awk
7767 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7769 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
7770 for (key in S) S_is_set[key] = 1
7776 nfields = split(line, field, "@
")
7778 len = length(field[1])
7779 for (i = 2; i < nfields; i++) {
7781 keylen = length(key)
7782 if (S_is_set[key]) {
7784 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7785 len += length(value) + length(field[++i])
7796 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7797 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7798 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
7801 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
7802 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
7805 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
7806 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
7807 # trailing colons and then remove the whole line if VPATH becomes empty
7808 # (actually we leave an empty line to preserve line numbers).
7809 if test "x
$srcdir" = x.; then
7810 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
7828 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7829 fi # test -n "$CONFIG_FILES"
7831 # Set up the scripts for CONFIG_HEADERS section.
7832 # No need to generate them if there are no CONFIG_HEADERS.
7833 # This happens for instance with `./config.status Makefile'.
7834 if test -n "$CONFIG_HEADERS"; then
7835 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
7839 # Transform confdefs.h into an awk script `defines.awk', embedded as
7840 # here-document in config.status, that substitutes the proper values into
7841 # config.h.in to produce config.h.
7843 # Create a delimiter string that does not exist in confdefs.h, to ease
7844 # handling of long lines.
7846 for ac_last_try in false false :; do
7847 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
7848 if test -z "$ac_tt"; then
7850 elif $ac_last_try; then
7851 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
7853 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
7857 # For the awk script, D is an array of macro values keyed by name,
7858 # likewise P contains macro parameters if any. Preserve backslash
7859 # newline sequences.
7861 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7863 s/.\{148\}/&'"$ac_delim"'/g
7866 s/^[ ]*#[ ]*define[ ][ ]*/ /
7873 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
7875 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
7879 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
7880 D["\
1"]=" \
3\\\\\\n
"\\/p
7882 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
7887 s/.\{148\}/&'"$ac_delim"'/g
7892 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
7895 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
7897 ' <confdefs.h | sed '
7898 s/'"$ac_delim"'/"\\\
7899 "/g' >>$CONFIG_STATUS || ac_write_fail=1
7901 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7902 for (key in D) D_is_set[key] = 1
7905 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7907 split(line, arg, " ")
7908 if (arg[1] == "#") {
7912 defundef
= substr
(arg
[1], 2)
7915 split(mac1
, mac2
, "(") #)
7917 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
7918 if (D_is_set
[macro
]) {
7919 # Preserve the white space surrounding the "#".
7920 print prefix
"define", macro P
[macro
] D
[macro
]
7923 # Replace #undef with comments. This is necessary, for example,
7924 # in the case of _POSIX_SOURCE, which is predefined and required
7925 # on some systems where configure will not decide to define it.
7926 if (defundef
== "undef") {
7927 print
"/*", prefix defundef
, macro
, "*/"
7935 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7936 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
7937 fi # test -n "$CONFIG_HEADERS"
7940 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
7945 :[FHLC
]) ac_mode
=$ac_tag; continue;;
7947 case $ac_mode$ac_tag in
7949 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
7950 :[FH
]-) ac_tag
=-:-;;
7951 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
7968 -) ac_f
="$ac_tmp/stdin";;
7969 *) # Look for the file first in the build tree, then in the source tree
7970 # (if the path is not absolute). The absolute path cannot be DOS-style,
7971 # because $ac_f cannot contain `:'.
7975 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
7977 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7979 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7980 as_fn_append ac_file_inputs
" '$ac_f'"
7983 # Let's still pretend it is `configure' which instantiates (i.e., don't
7984 # use $as_me), people would be surprised to read:
7985 # /* config.h. Generated by config.status. */
7986 configure_input
='Generated from '`
7987 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7989 if test x
"$ac_file" != x-
; then
7990 configure_input
="$ac_file. $configure_input"
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7992 $as_echo "$as_me: creating $ac_file" >&6;}
7994 # Neutralize special characters interpreted by sed in replacement strings.
7995 case $configure_input in #(
7996 *\
&* |
*\|
* |
*\\* )
7997 ac_sed_conf_input
=`$as_echo "$configure_input" |
7998 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7999 *) ac_sed_conf_input
=$configure_input;;
8003 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
8004 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
8009 ac_dir
=`$as_dirname -- "$ac_file" ||
8010 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8011 X"$ac_file" : 'X\(//\)[^/]' \| \
8012 X"$ac_file" : 'X\(//\)$' \| \
8013 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8014 $as_echo X"$ac_file" |
8015 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8032 as_dir
="$ac_dir"; as_fn_mkdir_p
8036 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
8038 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8039 # A ".." for each directory in $ac_dir_suffix.
8040 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8041 case $ac_top_builddir_sub in
8042 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
8043 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
8046 ac_abs_top_builddir
=$ac_pwd
8047 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
8048 # for backward compatibility:
8049 ac_top_builddir
=$ac_top_build_prefix
8052 .
) # We are building in place.
8054 ac_top_srcdir
=$ac_top_builddir_sub
8055 ac_abs_top_srcdir
=$ac_pwd ;;
8056 [\\/]* | ?
:[\\/]* ) # Absolute name.
8057 ac_srcdir
=$srcdir$ac_dir_suffix;
8058 ac_top_srcdir
=$srcdir
8059 ac_abs_top_srcdir
=$srcdir ;;
8061 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
8062 ac_top_srcdir
=$ac_top_build_prefix$srcdir
8063 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
8065 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
8075 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
8076 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
8080 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8081 # If the template does not know about datarootdir, expand it.
8082 # FIXME: This hack should be removed a few years after 2.60.
8083 ac_datarootdir_hack
=; ac_datarootdir_seen
=
8094 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8095 *datarootdir
*) ac_datarootdir_seen
=yes;;
8096 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8098 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8100 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8101 ac_datarootdir_hack='
8102 s&@datadir@&$datadir&g
8103 s&@docdir@&$docdir&g
8104 s&@infodir@&$infodir&g
8105 s&@localedir@&$localedir&g
8106 s&@mandir@&$mandir&g
8107 s&\\\${datarootdir}&$datarootdir&g' ;;
8111 # Neutralize VPATH when `$srcdir' = `.'.
8112 # Shell code in configure.ac might set extrasub.
8113 # FIXME: do we really want to maintain this feature?
8114 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8115 ac_sed_extra="$ac_vpsub
8118 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8120 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
8121 s|@configure_input@|
$ac_sed_conf_input|
;t t
8122 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
8123 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
8124 s
&@srcdir@
&$ac_srcdir&;t t
8125 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
8126 s
&@top_srcdir@
&$ac_top_srcdir&;t t
8127 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
8128 s
&@builddir@
&$ac_builddir&;t t
8129 s
&@abs_builddir@
&$ac_abs_builddir&;t t
8130 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
8131 s
&@INSTALL@
&$ac_INSTALL&;t t
8132 $ac_datarootdir_hack
8134 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
8135 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
8137 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8138 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
8139 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
8140 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
8142 which seems to be undefined. Please make sure it is defined" >&5
8143 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
8144 which seems to be undefined. Please make sure it is defined" >&2;}
8146 rm -f "$ac_tmp/stdin"
8148 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8149 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8151 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8157 if test x"$ac_file" != x-; then
8159 $as_echo "/* $configure_input */" \
8160 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
8161 } >"$ac_tmp/config.h" \
8162 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8163 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
8164 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8165 $as_echo "$as_me: $ac_file is unchanged" >&6;}
8168 mv "$ac_tmp/config.h" "$ac_file" \
8169 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8172 $as_echo "/* $configure_input */" \
8173 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
8174 || as_fn_error $? "could not create -" "$LINENO" 5
8178 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8179 $as_echo "$as_me: executing $ac_file commands" >&6;}
8184 case $ac_file$ac_mode in
8186 for ac_file in $CONFIG_FILES; do
8187 # Support "outfile[:infile[:infile...]]"
8189 *:*) ac_file=`echo "$ac_file"|sed 's
%:.
*%%'` ;;
8191 # PO directories have a Makefile.in generated from Makefile.in.in.
8192 case "$ac_file" in */Makefile.in)
8193 # Adjust a relative srcdir.
8194 ac_dir=`echo "$ac_file"|sed 's
%/[^
/][^
/]*$
%%'`
8195 ac_dir_suffix=/`echo "$ac_dir"|sed 's
%^\.
/%%'`
8196 ac_dots=`echo "$ac_dir_suffix"|sed 's
%/[^
/]*%..
/%g
'`
8197 # In autoconf-2.13 it is called $ac_given_srcdir.
8198 # In autoconf-2.50 it is called $srcdir.
8199 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
8200 case "$ac_given_srcdir" in
8201 .) top_srcdir=`echo $ac_dots|sed 's
%/$
%%'` ;;
8202 /*) top_srcdir="$ac_given_srcdir" ;;
8203 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
8205 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
8206 rm -f "$ac_dir/POTFILES"
8207 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
8208 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
8209 POMAKEFILEDEPS="POTFILES.in"
8210 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
8211 # on $ac_dir but don't depend on user-specified configuration
8213 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
8214 # The LINGUAS file contains the set of available languages.
8215 if test -n "$OBSOLETE_ALL_LINGUAS"; then
8216 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" ||
echo "setting ALL_LINGUAS in configure.ac is obsolete"
8218 ALL_LINGUAS_
=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
8219 # Hide the ALL_LINGUAS assigment from automake.
8220 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
8221 POMAKEFILEDEPS
="$POMAKEFILEDEPS LINGUAS"
8223 # The set of available languages was given in configure.ac.
8224 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
8226 case "$ac_given_srcdir" in
8228 *) srcdirpre
='$(srcdir)/' ;;
8234 for lang
in $ALL_LINGUAS; do
8235 POFILES
="$POFILES $srcdirpre$lang.po"
8236 GMOFILES
="$GMOFILES $srcdirpre$lang.gmo"
8237 UPDATEPOFILES
="$UPDATEPOFILES $lang.po-update"
8238 DUMMYPOFILES
="$DUMMYPOFILES $lang.nop"
8240 # CATALOGS depends on both $ac_dir and the user's LINGUAS
8241 # environment variable.
8243 if test -n "$ALL_LINGUAS"; then
8244 for presentlang
in $ALL_LINGUAS; do
8246 if test "%UNSET%" != "$LINGUAS"; then
8247 desiredlanguages
="$LINGUAS"
8249 desiredlanguages
="$ALL_LINGUAS"
8251 for desiredlang
in $desiredlanguages; do
8252 # Use the presentlang catalog if desiredlang is
8253 # a. equal to presentlang, or
8254 # b. a variant of presentlang (because in this case,
8255 # presentlang can be used as a fallback for messages
8256 # which are not translated in the desiredlang catalog).
8257 case "$desiredlang" in
8258 "$presentlang"*) useit
=yes;;
8261 if test $useit = yes; then
8262 INST_LINGUAS
="$INST_LINGUAS $presentlang"
8267 if test -n "$INST_LINGUAS"; then
8268 for lang
in $INST_LINGUAS; do
8269 CATALOGS
="$CATALOGS $lang.gmo"
8272 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" ||
echo "creating $ac_dir/Makefile"
8273 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
8274 for f
in "$ac_given_srcdir/$ac_dir"/Rules-
*; do
8275 if test -f "$f"; then
8277 *.orig |
*.bak |
*~
) ;;
8278 *) cat "$f" >> "$ac_dir/Makefile" ;;
8293 ac_clean_files
=$ac_clean_files_save
8295 test $ac_write_fail = 0 ||
8296 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
8299 # configure is writing to config.log, and then calls config.status.
8300 # config.status does its own redirection, appending to config.log.
8301 # Unfortunately, on DOS this fails, as config.log is still kept open
8302 # by configure, so config.status won't be able to write to it; its
8303 # output is simply discarded. So we exec the FD to /dev/null,
8304 # effectively closing config.log, so it can be properly (re)opened and
8305 # appended to by config.status. When coming back to configure, we
8306 # need to make the FD available again.
8307 if test "$no_create" != yes; then
8309 ac_config_status_args
=
8310 test "$silent" = yes &&
8311 ac_config_status_args
="$ac_config_status_args --quiet"
8313 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
8315 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8316 # would make configure fail if this is the last instruction.
8317 $ac_cs_success || as_fn_exit
1
8319 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8321 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}