2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
147 *v*x* | *x*v* ) as_opts=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 test -z "$as_dir" && as_dir=.
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
238 if test "x$CONFIG_SHELL" != x; then :
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
248 *v*x* | *x*v* ) as_opts=-vx ;;
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
276 SHELL=${CONFIG_SHELL-/bin/sh}
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
287 # Portably unset VAR.
290 { eval $1=; unset $1;}
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
314 # Create "$as_dir" as a directory, including parents if necessary.
319 -*) as_dir=./$as_dir;;
321 test -d "$as_dir" || eval $as_mkdir_p || {
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
352 test -d "$as_dir" && break
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
398 as_val=`expr "$@" || test $? -eq 1`
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
410 as_status=$1; test $as_status -eq 0 && as_status=1
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
496 # Exit status is that of the last command.
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
518 mkdir conf$$.dir 2>/dev/null
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
529 elif ln conf$$.file conf$$ 2>/dev/null; then
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
543 test -d ./-p && rmdir ./-p
548 as_executable_p=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" || exec 7<&0 </dev/null
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
568 ac_default_prefix=/usr/local
570 ac_config_libobj_dir=.
577 # Identity of this package.
585 ac_unique_file="version.h"
586 # Factoring default headers for most tests.
587 ac_includes_default="\
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
599 # ifdef HAVE_STDLIB_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
624 gl_use_threads_default=
626 ac_subst_vars='LTLIBOBJS
679 INTL_LIBTOOL_SUFFIX_PREFIX
686 BUILD_INCLUDED_LIBINTL
696 INTL_DEFAULT_VERBOSITY
715 XGETTEXT_EXTRA_OPTIONS
723 GETTEXT_MACRO_VERSION
829 program_transform_name
840 ac_subst_files='MCONFIG
846 PUBLIC_CONFIG_HEADER'
848 enable_option_checking
854 enable_maintainer_mode
855 enable_symlink_install
856 enable_relative_symlinks
857 enable_symlink_relative_symlinks
859 enable_verbose_makecmds
876 enable_e2initrd_helper
881 enable_bmap_stats_ops
888 with_included_gettext
893 ac_precious_vars='build_alias
907 # Initialize some variables set by options.
909 ac_init_version=false
910 ac_unrecognized_opts=
912 # The variables have the same names as the options, with
913 # dashes changed to underlines.
921 program_transform_name=s,x,x,
929 # Installation directory options.
930 # These are left unexpanded so users can "make install exec_prefix=/foo"
931 # and all the variables that are supposed to be based on exec_prefix
932 # by default will actually change.
933 # Use braces instead of parens because sh, perl, etc. also accept them.
934 # (The list follows the same order as the GNU Coding Standards.)
935 bindir='${exec_prefix}/bin'
936 sbindir='${exec_prefix}/sbin'
937 libexecdir='${exec_prefix}/libexec'
938 datarootdir='${prefix}/share'
939 datadir='${datarootdir}'
940 sysconfdir='${prefix}/etc'
941 sharedstatedir='${prefix}/com'
942 localstatedir='${prefix}/var'
943 runstatedir='${localstatedir}/run'
944 includedir='${prefix}/include'
945 oldincludedir='/usr/include'
946 docdir='${datarootdir}/doc/${PACKAGE}'
947 infodir='${datarootdir}/info'
952 libdir='${exec_prefix}/lib'
953 localedir='${datarootdir}/locale'
954 mandir='${datarootdir}/man'
960 # If the previous option needs an argument, assign it.
961 if test -n "$ac_prev"; then
962 eval $ac_prev=\$ac_option
968 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
973 # Accept the important Cygnus configure options, so we can diagnose typos.
975 case $ac_dashdash$ac_option in
979 -bindir | --bindir | --bindi | --bind | --bin | --bi)
981 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
984 -build | --build | --buil | --bui | --bu)
985 ac_prev=build_alias ;;
986 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
987 build_alias=$ac_optarg ;;
989 -cache-file | --cache-file | --cache-fil | --cache-fi \
990 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
991 ac_prev=cache_file ;;
992 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
993 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
994 cache_file=$ac_optarg ;;
997 cache_file=config.cache ;;
999 -datadir | --datadir | --datadi | --datad)
1001 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1002 datadir=$ac_optarg ;;
1004 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1005 | --dataroo | --dataro | --datar)
1006 ac_prev=datarootdir ;;
1007 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1008 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1009 datarootdir=$ac_optarg ;;
1011 -disable-* | --disable-*)
1012 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1013 # Reject names that are not valid shell variable names.
1014 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1015 as_fn_error $? "invalid feature name: $ac_useropt"
1016 ac_useropt_orig=$ac_useropt
1017 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1018 case $ac_user_opts in
1020 "enable_$ac_useropt"
1022 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1023 ac_unrecognized_sep=', ';;
1025 eval enable_$ac_useropt=no ;;
1027 -docdir | --docdir | --docdi | --doc | --do)
1029 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1030 docdir=$ac_optarg ;;
1032 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1034 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1035 dvidir=$ac_optarg ;;
1037 -enable-* | --enable-*)
1038 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1039 # Reject names that are not valid shell variable names.
1040 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1041 as_fn_error $? "invalid feature name: $ac_useropt"
1042 ac_useropt_orig=$ac_useropt
1043 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1044 case $ac_user_opts in
1046 "enable_$ac_useropt"
1048 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1049 ac_unrecognized_sep=', ';;
1051 eval enable_$ac_useropt=\$ac_optarg ;;
1053 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1054 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1055 | --exec | --exe | --ex)
1056 ac_prev=exec_prefix ;;
1057 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1058 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1059 | --exec=* | --exe=* | --ex=*)
1060 exec_prefix=$ac_optarg ;;
1062 -gas | --gas | --ga | --g)
1063 # Obsolete; use --with-gas.
1066 -help | --help | --hel | --he | -h)
1067 ac_init_help=long ;;
1068 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1069 ac_init_help=recursive ;;
1070 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1071 ac_init_help=short ;;
1073 -host | --host | --hos | --ho)
1074 ac_prev=host_alias ;;
1075 -host=* | --host=* | --hos=* | --ho=*)
1076 host_alias=$ac_optarg ;;
1078 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1080 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1082 htmldir=$ac_optarg ;;
1084 -includedir | --includedir | --includedi | --included | --include \
1085 | --includ | --inclu | --incl | --inc)
1086 ac_prev=includedir ;;
1087 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1088 | --includ=* | --inclu=* | --incl=* | --inc=*)
1089 includedir=$ac_optarg ;;
1091 -infodir | --infodir | --infodi | --infod | --info | --inf)
1093 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1094 infodir=$ac_optarg ;;
1096 -libdir | --libdir | --libdi | --libd)
1098 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1099 libdir=$ac_optarg ;;
1101 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1102 | --libexe | --libex | --libe)
1103 ac_prev=libexecdir ;;
1104 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1105 | --libexe=* | --libex=* | --libe=*)
1106 libexecdir=$ac_optarg ;;
1108 -localedir | --localedir | --localedi | --localed | --locale)
1109 ac_prev=localedir ;;
1110 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1111 localedir=$ac_optarg ;;
1113 -localstatedir | --localstatedir | --localstatedi | --localstated \
1114 | --localstate | --localstat | --localsta | --localst | --locals)
1115 ac_prev=localstatedir ;;
1116 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1117 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1118 localstatedir=$ac_optarg ;;
1120 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1122 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1123 mandir=$ac_optarg ;;
1125 -nfp | --nfp | --nf)
1126 # Obsolete; use --without-fp.
1129 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1130 | --no-cr | --no-c | -n)
1133 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1134 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1137 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1138 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1139 | --oldin | --oldi | --old | --ol | --o)
1140 ac_prev=oldincludedir ;;
1141 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1142 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1143 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1144 oldincludedir=$ac_optarg ;;
1146 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1148 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1149 prefix=$ac_optarg ;;
1151 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1152 | --program-pre | --program-pr | --program-p)
1153 ac_prev=program_prefix ;;
1154 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1155 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1156 program_prefix=$ac_optarg ;;
1158 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1159 | --program-suf | --program-su | --program-s)
1160 ac_prev=program_suffix ;;
1161 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1162 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1163 program_suffix=$ac_optarg ;;
1165 -program-transform-name | --program-transform-name \
1166 | --program-transform-nam | --program-transform-na \
1167 | --program-transform-n | --program-transform- \
1168 | --program-transform | --program-transfor \
1169 | --program-transfo | --program-transf \
1170 | --program-trans | --program-tran \
1171 | --progr-tra | --program-tr | --program-t)
1172 ac_prev=program_transform_name ;;
1173 -program-transform-name=* | --program-transform-name=* \
1174 | --program-transform-nam=* | --program-transform-na=* \
1175 | --program-transform-n=* | --program-transform-=* \
1176 | --program-transform=* | --program-transfor=* \
1177 | --program-transfo=* | --program-transf=* \
1178 | --program-trans=* | --program-tran=* \
1179 | --progr-tra=* | --program-tr=* | --program-t=*)
1180 program_transform_name=$ac_optarg ;;
1182 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1184 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1185 pdfdir=$ac_optarg ;;
1187 -psdir | --psdir | --psdi | --psd | --ps)
1189 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1192 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1193 | -silent | --silent | --silen | --sile | --sil)
1196 -runstatedir | --runstatedir | --runstatedi | --runstated \
1197 | --runstate | --runstat | --runsta | --runst | --runs \
1198 | --run | --ru | --r)
1199 ac_prev=runstatedir ;;
1200 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1201 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1202 | --run=* | --ru=* | --r=*)
1203 runstatedir=$ac_optarg ;;
1205 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1207 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1209 sbindir=$ac_optarg ;;
1211 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1212 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1213 | --sharedst | --shareds | --shared | --share | --shar \
1215 ac_prev=sharedstatedir ;;
1216 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1217 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1218 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1220 sharedstatedir=$ac_optarg ;;
1222 -site | --site | --sit)
1224 -site=* | --site=* | --sit=*)
1227 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1229 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1230 srcdir=$ac_optarg ;;
1232 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1233 | --syscon | --sysco | --sysc | --sys | --sy)
1234 ac_prev=sysconfdir ;;
1235 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1236 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1237 sysconfdir=$ac_optarg ;;
1239 -target | --target | --targe | --targ | --tar | --ta | --t)
1240 ac_prev=target_alias ;;
1241 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1242 target_alias=$ac_optarg ;;
1244 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1247 -version | --version | --versio | --versi | --vers | -V)
1248 ac_init_version=: ;;
1251 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1252 # Reject names that are not valid shell variable names.
1253 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1254 as_fn_error $? "invalid package name: $ac_useropt"
1255 ac_useropt_orig=$ac_useropt
1256 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1257 case $ac_user_opts in
1261 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1262 ac_unrecognized_sep=', ';;
1264 eval with_$ac_useropt=\$ac_optarg ;;
1266 -without-* | --without-*)
1267 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1268 # Reject names that are not valid shell variable names.
1269 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1270 as_fn_error $? "invalid package name: $ac_useropt"
1271 ac_useropt_orig=$ac_useropt
1272 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1273 case $ac_user_opts in
1277 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1278 ac_unrecognized_sep=', ';;
1280 eval with_$ac_useropt=no ;;
1283 # Obsolete; use --with-x.
1286 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1287 | --x-incl | --x-inc | --x-in | --x-i)
1288 ac_prev=x_includes ;;
1289 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1290 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1291 x_includes=$ac_optarg ;;
1293 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1294 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1295 ac_prev=x_libraries ;;
1296 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1297 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1298 x_libraries=$ac_optarg ;;
1300 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1301 Try \`$0 --help' for more information"
1305 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1306 # Reject names that are not valid shell variable names.
1307 case $ac_envvar in #(
1308 '' | [0-9]* | *[!_$as_cr_alnum]* )
1309 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1311 eval $ac_envvar=\$ac_optarg
1312 export $ac_envvar ;;
1315 # FIXME: should be removed in autoconf 3.0.
1316 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1317 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1318 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1319 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1325 if test -n "$ac_prev"; then
1326 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1327 as_fn_error $? "missing argument to $ac_option"
1330 if test -n "$ac_unrecognized_opts"; then
1331 case $enable_option_checking in
1333 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1334 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1338 # Check all directory arguments for consistency.
1339 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1340 datadir sysconfdir sharedstatedir localstatedir includedir \
1341 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1342 libdir localedir mandir runstatedir
1344 eval ac_val=\$$ac_var
1345 # Remove trailing slashes.
1348 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1349 eval $ac_var=\$ac_val;;
1351 # Be sure to have absolute directory names.
1353 [\\/$]* | ?:[\\/]* ) continue;;
1354 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1356 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1359 # There might be people who depend on the old broken behavior: `$host'
1360 # used to hold the argument of --host etc.
1361 # FIXME: To remove some day.
1364 target=$target_alias
1366 # FIXME: To remove some day.
1367 if test "x$host_alias" != x; then
1368 if test "x$build_alias" = x; then
1369 cross_compiling=maybe
1370 elif test "x$build_alias" != "x$host_alias"; then
1376 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1378 test "$silent" = yes && exec 6>/dev/null
1381 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1382 ac_ls_di=`ls -di .` &&
1383 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1384 as_fn_error $? "working directory cannot be determined"
1385 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1386 as_fn_error $? "pwd does not report name of working directory"
1389 # Find the source files, if location was not specified.
1390 if test -z "$srcdir"; then
1391 ac_srcdir_defaulted=yes
1392 # Try the directory containing this script, then the parent directory.
1393 ac_confdir=`$as_dirname -- "$as_myself" ||
1394 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1395 X"$as_myself" : 'X\(//\)[^/]' \| \
1396 X"$as_myself" : 'X\(//\)$' \| \
1397 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1398 $as_echo X"$as_myself" |
1399 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1417 if test ! -r "$srcdir/$ac_unique_file"; then
1421 ac_srcdir_defaulted=no
1423 if test ! -r "$srcdir/$ac_unique_file"; then
1424 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1425 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1427 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1429 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1431 # When building in place, set srcdir=.
1432 if test "$ac_abs_confdir" = "$ac_pwd"; then
1435 # Remove unnecessary trailing slashes from srcdir.
1436 # Double slashes in file names in object file debugging info
1437 # mess up M-x gdb in Emacs.
1439 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1441 for ac_var in $ac_precious_vars; do
1442 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1443 eval ac_env_${ac_var}_value=\$${ac_var}
1444 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1445 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1449 # Report the --help message.
1451 if test "$ac_init_help" = "long"; then
1452 # Omit some internal or obsolete options to make the list less imposing.
1453 # This message is too long to be a string in the A/UX 3.1 sh.
1455 \`configure' configures this package to adapt to many kinds of systems.
1457 Usage: $0 [OPTION]... [VAR=VALUE]...
1459 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1460 VAR=VALUE. See below for descriptions of some of the useful variables.
1462 Defaults for the options are specified in brackets.
1465 -h, --help display this help and exit
1466 --help=short display options specific to this package
1467 --help=recursive display the short help of all the included packages
1468 -V, --version display version information and exit
1469 -q, --quiet, --silent do not print \`checking ...' messages
1470 --cache-file=FILE cache test results in FILE [disabled]
1471 -C, --config-cache alias for \`--cache-file=config.cache'
1472 -n, --no-create do not create output files
1473 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1475 Installation directories:
1476 --prefix=PREFIX install architecture-independent files in PREFIX
1477 [$ac_default_prefix]
1478 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1481 By default, \`make install' will install all the files in
1482 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1483 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1484 for instance \`--prefix=\$HOME'.
1486 For better control, use the options below.
1488 Fine tuning of the installation directories:
1489 --bindir=DIR user executables [EPREFIX/bin]
1490 --sbindir=DIR system admin executables [EPREFIX/sbin]
1491 --libexecdir=DIR program executables [EPREFIX/libexec]
1492 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1493 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1494 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1495 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1496 --libdir=DIR object code libraries [EPREFIX/lib]
1497 --includedir=DIR C header files [PREFIX/include]
1498 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1499 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1500 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1501 --infodir=DIR info documentation [DATAROOTDIR/info]
1502 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1503 --mandir=DIR man documentation [DATAROOTDIR/man]
1504 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1505 --htmldir=DIR html documentation [DOCDIR]
1506 --dvidir=DIR dvi documentation [DOCDIR]
1507 --pdfdir=DIR pdf documentation [DOCDIR]
1508 --psdir=DIR ps documentation [DOCDIR]
1514 --build=BUILD configure for building on BUILD [guessed]
1515 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1519 if test -n "$ac_init_help"; then
1524 --disable-option-checking ignore unrecognized --enable/--with options
1525 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1526 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1527 --enable-maintainer-mode enable makefile rules useful for maintainers
1528 --enable-symlink-install use symlinks when installing instead of hard links
1529 --enable-relative-symlinks use relative symlinks when installing
1531 --enable-symlink-build use symlinks while building instead of hard links
1532 --enable-verbose-makecmds enable verbose make command output
1533 --enable-elf-shlibs select ELF shared libraries
1534 --enable-bsd-shlibs select BSD shared libraries
1535 --enable-profile build profiling libraries
1536 --enable-gcov build for coverage testing using gcov
1537 --enable-hardening build for coverage testing using gcov
1538 --enable-jbd-debug enable journal debugging
1539 --enable-blkid-debug enable blkid debugging
1540 --disable-testio-debug disable the use of the test I/O manager for debugging
1541 --enable-libuuid build and use private uuid library
1542 --enable-libblkid build and use private blkid library
1543 --disable-backtrace disable use backtrace
1544 --disable-debugfs disable support of debugfs program
1545 --disable-imager disable support of e2image program
1546 --disable-resizer disable support of e2resize program
1547 --disable-defrag disable support of e4defrag program
1548 --enable-fsck build fsck wrapper program
1549 --enable-e2initrd-helper build e2initrd-helper program
1550 --disable-tls disable use of thread local support
1551 --disable-uuidd disable building the uuid daemon
1552 --disable-mmp disable support mmp, Multi Mount Protection
1553 --disable-bmap-stats disable collection of bitmap stats.
1554 --enable-bmap-stats-ops enable collection of additional bitmap stats
1555 --disable-nls do not use Native Language Support
1556 --enable-threads={posix|solaris|pth|windows}
1557 specify multithreading API
1558 --disable-threads build without multithread safety
1559 --disable-rpath do not hardcode runtime library paths
1560 --disable-fuse2fs do not build fuse2fs
1563 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1564 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1565 --with-diet-libc use diet libc
1566 --with-cc no longer supported, use CC= instead
1567 --with-ccopts no longer supported, use CFLAGS= instead
1568 --with-ldopts no longer supported, use LDFLAGS= instead
1569 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1570 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1571 --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
1572 --without-libpth-prefix don't search for libpth in includedir and libdir
1573 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1574 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1575 --with-included-gettext use the GNU gettext library included here
1576 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1577 --without-libintl-prefix don't search for libintl in includedir and libdir
1578 --with-multiarch=ARCH specify the multiarch triplet
1580 Some influential environment variables:
1581 CC C compiler command
1582 CFLAGS C compiler flags
1583 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1584 nonstandard directory <lib dir>
1585 LIBS libraries to pass to the linker, e.g. -l<library>
1586 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1587 you have headers in a nonstandard directory <include dir>
1589 PKG_CONFIG path to pkg-config utility
1591 directories to add to pkg-config's search path
1593 path overriding pkg-config's built-in search path
1595 Use these variables to override the choices made by `configure' or to help
1596 it to find libraries and programs with nonstandard names/locations.
1598 Report bugs to the package provider.
1603 if test "$ac_init_help" = "recursive"; then
1604 # If there are subdirs, report their specific --help.
1605 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1606 test -d "$ac_dir" ||
1607 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1612 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1614 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1615 # A ".." for each directory in $ac_dir_suffix.
1616 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1617 case $ac_top_builddir_sub in
1618 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1619 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1622 ac_abs_top_builddir=$ac_pwd
1623 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1624 # for backward compatibility:
1625 ac_top_builddir=$ac_top_build_prefix
1628 .) # We are building in place.
1630 ac_top_srcdir=$ac_top_builddir_sub
1631 ac_abs_top_srcdir=$ac_pwd ;;
1632 [\\/]* | ?:[\\/]* ) # Absolute name.
1633 ac_srcdir=$srcdir$ac_dir_suffix;
1634 ac_top_srcdir=$srcdir
1635 ac_abs_top_srcdir=$srcdir ;;
1637 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1638 ac_top_srcdir=$ac_top_build_prefix$srcdir
1639 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1641 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1643 cd "$ac_dir" || { ac_status=$?; continue; }
1644 # Check for guested configure.
1645 if test -f "$ac_srcdir/configure.gnu"; then
1647 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1648 elif test -f "$ac_srcdir/configure"; then
1650 $SHELL "$ac_srcdir/configure" --help=recursive
1652 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1654 cd "$ac_pwd" || { ac_status=$?; break; }
1658 test -n "$ac_init_help" && exit $ac_status
1659 if $ac_init_version; then
1662 generated by GNU Autoconf 2.69
1664 Copyright (C) 2012 Free Software Foundation, Inc.
1665 This configure script is free software; the Free Software Foundation
1666 gives unlimited permission to copy, distribute and modify it.
1671 ## ------------------------ ##
1672 ## Autoconf initialization. ##
1673 ## ------------------------ ##
1675 # ac_fn_c_try_compile LINENO
1676 # --------------------------
1677 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1678 ac_fn_c_try_compile ()
1680 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1681 rm -f conftest.$ac_objext
1682 if { { ac_try="$ac_compile"
1684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1685 *) ac_try_echo=$ac_try;;
1687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1688 $as_echo "$ac_try_echo"; } >&5
1689 (eval "$ac_compile") 2>conftest.err
1691 if test -s conftest.err; then
1692 grep -v '^ *+' conftest.err >conftest.er1
1693 cat conftest.er1 >&5
1694 mv -f conftest.er1 conftest.err
1696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1697 test $ac_status = 0; } && {
1698 test -z "$ac_c_werror_flag" ||
1699 test ! -s conftest.err
1700 } && test -s conftest.$ac_objext; then :
1703 $as_echo "$as_me: failed program was:" >&5
1704 sed 's/^/| /' conftest.$ac_ext >&5
1708 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1709 as_fn_set_status $ac_retval
1711 } # ac_fn_c_try_compile
1713 # ac_fn_c_try_link LINENO
1714 # -----------------------
1715 # Try to link conftest.$ac_ext, and return whether this succeeded.
1718 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719 rm -f conftest.$ac_objext conftest$ac_exeext
1720 if { { ac_try="$ac_link"
1722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1723 *) ac_try_echo=$ac_try;;
1725 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1726 $as_echo "$ac_try_echo"; } >&5
1727 (eval "$ac_link") 2>conftest.err
1729 if test -s conftest.err; then
1730 grep -v '^ *+' conftest.err >conftest.er1
1731 cat conftest.er1 >&5
1732 mv -f conftest.er1 conftest.err
1734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1735 test $ac_status = 0; } && {
1736 test -z "$ac_c_werror_flag" ||
1737 test ! -s conftest.err
1738 } && test -s conftest$ac_exeext && {
1739 test "$cross_compiling" = yes ||
1740 test -x conftest$ac_exeext
1744 $as_echo "$as_me: failed program was:" >&5
1745 sed 's/^/| /' conftest.$ac_ext >&5
1749 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1750 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1751 # interfere with the next link command; also delete a directory that is
1752 # left behind by Apple's compiler. We do this before executing the actions.
1753 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1754 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1755 as_fn_set_status $ac_retval
1757 } # ac_fn_c_try_link
1759 # ac_fn_c_try_cpp LINENO
1760 # ----------------------
1761 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1764 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1765 if { { ac_try="$ac_cpp conftest.$ac_ext"
1767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1768 *) ac_try_echo=$ac_try;;
1770 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1771 $as_echo "$ac_try_echo"; } >&5
1772 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1774 if test -s conftest.err; then
1775 grep -v '^ *+' conftest.err >conftest.er1
1776 cat conftest.er1 >&5
1777 mv -f conftest.er1 conftest.err
1779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1780 test $ac_status = 0; } > conftest.i && {
1781 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1782 test ! -s conftest.err
1786 $as_echo "$as_me: failed program was:" >&5
1787 sed 's/^/| /' conftest.$ac_ext >&5
1791 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1792 as_fn_set_status $ac_retval
1796 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1797 # -------------------------------------------------------
1798 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1799 # the include files in INCLUDES and setting the cache variable VAR
1801 ac_fn_c_check_header_mongrel ()
1803 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1804 if eval \${$3+:} false; then :
1805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1806 $as_echo_n "checking for $2... " >&6; }
1807 if eval \${$3+:} false; then :
1808 $as_echo_n "(cached) " >&6
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1812 $as_echo "$ac_res" >&6; }
1814 # Is the header compilable?
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1816 $as_echo_n "checking $2 usability... " >&6; }
1817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1818 /* end confdefs.h. */
1822 if ac_fn_c_try_compile "$LINENO"; then :
1823 ac_header_compiler=yes
1825 ac_header_compiler=no
1827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1829 $as_echo "$ac_header_compiler" >&6; }
1831 # Is the header present?
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1833 $as_echo_n "checking $2 presence... " >&6; }
1834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1835 /* end confdefs.h. */
1838 if ac_fn_c_try_cpp "$LINENO"; then :
1839 ac_header_preproc=yes
1841 ac_header_preproc=no
1843 rm -f conftest.err conftest.i conftest.$ac_ext
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1845 $as_echo "$ac_header_preproc" >&6; }
1847 # So? What about this header?
1848 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1851 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1853 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1857 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1859 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1861 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1863 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1865 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1869 $as_echo_n "checking for $2... " >&6; }
1870 if eval \${$3+:} false; then :
1871 $as_echo_n "(cached) " >&6
1873 eval "$3=\$ac_header_compiler"
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1877 $as_echo "$ac_res" >&6; }
1879 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1881 } # ac_fn_c_check_header_mongrel
1883 # ac_fn_c_try_run LINENO
1884 # ----------------------
1885 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1886 # that executables *can* be run.
1889 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1890 if { { ac_try="$ac_link"
1892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1893 *) ac_try_echo=$ac_try;;
1895 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1896 $as_echo "$ac_try_echo"; } >&5
1897 (eval "$ac_link") 2>&5
1899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1900 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1901 { { case "(($ac_try" in
1902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1903 *) ac_try_echo=$ac_try;;
1905 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1906 $as_echo "$ac_try_echo"; } >&5
1907 (eval "$ac_try") 2>&5
1909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1910 test $ac_status = 0; }; }; then :
1913 $as_echo "$as_me: program exited with status $ac_status" >&5
1914 $as_echo "$as_me: failed program was:" >&5
1915 sed 's/^/| /' conftest.$ac_ext >&5
1917 ac_retval=$ac_status
1919 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1920 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1921 as_fn_set_status $ac_retval
1925 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1926 # -------------------------------------------------------
1927 # Tests whether HEADER exists and can be compiled using the include files in
1928 # INCLUDES, setting the cache variable VAR accordingly.
1929 ac_fn_c_check_header_compile ()
1931 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1933 $as_echo_n "checking for $2... " >&6; }
1934 if eval \${$3+:} false; then :
1935 $as_echo_n "(cached) " >&6
1937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1938 /* end confdefs.h. */
1942 if ac_fn_c_try_compile "$LINENO"; then :
1947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1951 $as_echo "$ac_res" >&6; }
1952 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1954 } # ac_fn_c_check_header_compile
1956 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1957 # -------------------------------------------
1958 # Tests whether TYPE exists after having included INCLUDES, setting cache
1959 # variable VAR accordingly.
1960 ac_fn_c_check_type ()
1962 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1964 $as_echo_n "checking for $2... " >&6; }
1965 if eval \${$3+:} false; then :
1966 $as_echo_n "(cached) " >&6
1969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1970 /* end confdefs.h. */
1981 if ac_fn_c_try_compile "$LINENO"; then :
1982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1983 /* end confdefs.h. */
1994 if ac_fn_c_try_compile "$LINENO"; then :
1999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2005 $as_echo "$ac_res" >&6; }
2006 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2008 } # ac_fn_c_check_type
2010 # ac_fn_c_check_func LINENO FUNC VAR
2011 # ----------------------------------
2012 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2013 ac_fn_c_check_func ()
2015 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2017 $as_echo_n "checking for $2... " >&6; }
2018 if eval \${$3+:} false; then :
2019 $as_echo_n "(cached) " >&6
2021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2022 /* end confdefs.h. */
2023 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2024 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2025 #define $2 innocuous_$2
2027 /* System header to define __stub macros and hopefully few prototypes,
2028 which can conflict with char $2 (); below.
2029 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2030 <limits.h> exists even on freestanding compilers. */
2033 # include <limits.h>
2035 # include <assert.h>
2040 /* Override any GCC internal prototype to avoid an error.
2041 Use char because int might match the return type of a GCC
2042 builtin and then its argument prototype would still apply. */
2047 /* The GNU C library defines this for functions which it implements
2048 to always fail with ENOSYS. Some functions are actually named
2049 something starting with __ and the normal name is an alias. */
2050 #if defined __stub_$2 || defined __stub___$2
2062 if ac_fn_c_try_link "$LINENO"; then :
2067 rm -f core conftest.err conftest.$ac_objext \
2068 conftest$ac_exeext conftest.$ac_ext
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2072 $as_echo "$ac_res" >&6; }
2073 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2075 } # ac_fn_c_check_func
2077 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2078 # ---------------------------------------------
2079 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2081 ac_fn_c_check_decl ()
2083 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2084 as_decl_name=`echo $2|sed 's/ *(.*//'`
2085 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2087 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2088 if eval \${$3+:} false; then :
2089 $as_echo_n "(cached) " >&6
2091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2092 /* end confdefs.h. */
2097 #ifndef $as_decl_name
2099 (void) $as_decl_use;
2101 (void) $as_decl_name;
2109 if ac_fn_c_try_compile "$LINENO"; then :
2114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2118 $as_echo "$ac_res" >&6; }
2119 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2121 } # ac_fn_c_check_decl
2123 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2124 # --------------------------------------------
2125 # Tries to find the compile-time value of EXPR in a program that includes
2126 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2128 ac_fn_c_compute_int ()
2130 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2131 if test "$cross_compiling" = yes; then
2132 # Depending upon the size, compute the lo and hi bounds.
2133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2134 /* end confdefs.h. */
2139 static int test_array [1 - 2 * !(($2) >= 0)];
2141 return test_array [0];
2147 if ac_fn_c_try_compile "$LINENO"; then :
2150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2151 /* end confdefs.h. */
2156 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2158 return test_array [0];
2164 if ac_fn_c_try_compile "$LINENO"; then :
2165 ac_hi=$ac_mid; break
2167 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2168 if test $ac_lo -le $ac_mid; then
2172 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2178 /* end confdefs.h. */
2183 static int test_array [1 - 2 * !(($2) < 0)];
2185 return test_array [0];
2191 if ac_fn_c_try_compile "$LINENO"; then :
2194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2195 /* end confdefs.h. */
2200 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2202 return test_array [0];
2208 if ac_fn_c_try_compile "$LINENO"; then :
2209 ac_lo=$ac_mid; break
2211 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2212 if test $ac_mid -le $ac_hi; then
2216 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2226 # Binary search between lo and hi bounds.
2227 while test "x$ac_lo" != "x$ac_hi"; do
2228 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2230 /* end confdefs.h. */
2235 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2237 return test_array [0];
2243 if ac_fn_c_try_compile "$LINENO"; then :
2246 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2251 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2256 /* end confdefs.h. */
2258 static long int longval () { return $2; }
2259 static unsigned long int ulongval () { return $2; }
2266 FILE *f = fopen ("conftest.val", "w");
2271 long int i = longval ();
2274 fprintf (f, "%ld", i);
2278 unsigned long int i = ulongval ();
2281 fprintf (f, "%lu", i);
2283 /* Do not output a trailing newline, as this causes \r\n confusion
2284 on some platforms. */
2285 return ferror (f) || fclose (f) != 0;
2291 if ac_fn_c_try_run "$LINENO"; then :
2292 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2296 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2297 conftest.$ac_objext conftest.beam conftest.$ac_ext
2301 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2302 as_fn_set_status $ac_retval
2304 } # ac_fn_c_compute_int
2306 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2307 # ----------------------------------------------------
2308 # Tries to find if the field MEMBER exists in type AGGR, after including
2309 # INCLUDES, setting cache variable VAR accordingly.
2310 ac_fn_c_check_member ()
2312 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2314 $as_echo_n "checking for $2.$3... " >&6; }
2315 if eval \${$4+:} false; then :
2316 $as_echo_n "(cached) " >&6
2318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2319 /* end confdefs.h. */
2331 if ac_fn_c_try_compile "$LINENO"; then :
2334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2335 /* end confdefs.h. */
2341 if (sizeof ac_aggr.$3)
2347 if ac_fn_c_try_compile "$LINENO"; then :
2352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2358 $as_echo "$ac_res" >&6; }
2359 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2361 } # ac_fn_c_check_member
2362 cat >config.log <<_ACEOF
2363 This file contains any messages produced by compilers while
2364 running configure, to aid debugging if configure makes a mistake.
2366 It was created by $as_me, which was
2367 generated by GNU Autoconf 2.69. Invocation command line was
2379 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2380 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2381 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2382 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2383 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2385 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2386 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2388 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2389 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2390 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2391 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2392 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2393 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2394 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2402 test -z "$as_dir" && as_dir=.
2403 $as_echo "PATH: $as_dir"
2419 # Keep a trace of the command line.
2420 # Strip out --no-create and --no-recursion so they do not pile up.
2421 # Strip out --silent because we don't want to record it for future runs.
2422 # Also quote any args containing shell meta-characters.
2423 # Make two passes to allow for proper duplicate-argument suppression.
2427 ac_must_keep_next=false
2433 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2434 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2435 | -silent | --silent | --silen | --sile | --sil)
2438 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2441 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2443 as_fn_append ac_configure_args1 " '$ac_arg'"
2444 if test $ac_must_keep_next = true; then
2445 ac_must_keep_next=false # Got value, back to normal.
2448 *=* | --config-cache | -C | -disable-* | --disable-* \
2449 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2450 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2451 | -with-* | --with-* | -without-* | --without-* | --x)
2452 case "$ac_configure_args0 " in
2453 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2456 -* ) ac_must_keep_next=true ;;
2459 as_fn_append ac_configure_args " '$ac_arg'"
2464 { ac_configure_args0=; unset ac_configure_args0;}
2465 { ac_configure_args1=; unset ac_configure_args1;}
2467 # When interrupted or exit'd, cleanup temporary files, and complete
2468 # config.log. We remove comments because anyway the quotes in there
2469 # would cause problems or look ugly.
2470 # WARNING: Use '\'' to represent an apostrophe within the trap.
2471 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2472 trap 'exit_status=$?
2473 # Save into config.log some information that might help in debugging.
2477 $as_echo "## ---------------- ##
2478 ## Cache variables. ##
2479 ## ---------------- ##"
2481 # The following way of writing the cache mishandles newlines in values,
2483 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2484 eval ac_val=\$$ac_var
2488 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2489 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2492 _ | IFS | as_nl) ;; #(
2493 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2494 *) { eval $ac_var=; unset $ac_var;} ;;
2499 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2500 *${as_nl}ac_space=\ *)
2502 "s/'\''/'\''\\\\'\'''\''/g;
2503 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2506 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2513 $as_echo "## ----------------- ##
2514 ## Output variables. ##
2515 ## ----------------- ##"
2517 for ac_var in $ac_subst_vars
2519 eval ac_val=\$$ac_var
2521 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2523 $as_echo "$ac_var='\''$ac_val'\''"
2527 if test -n "$ac_subst_files"; then
2528 $as_echo "## ------------------- ##
2529 ## File substitutions. ##
2530 ## ------------------- ##"
2532 for ac_var in $ac_subst_files
2534 eval ac_val=\$$ac_var
2536 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2538 $as_echo "$ac_var='\''$ac_val'\''"
2543 if test -s confdefs.h; then
2544 $as_echo "## ----------- ##
2551 test "$ac_signal" != 0 &&
2552 $as_echo "$as_me: caught signal $ac_signal"
2553 $as_echo "$as_me: exit $exit_status"
2555 rm -f core *.core core.conftest.* &&
2556 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2559 for ac_signal in 1 2 13 15; do
2560 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2564 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2565 rm -f -r conftest* confdefs.h
2567 $as_echo "/* confdefs.h */" > confdefs.h
2569 # Predefined preprocessor variables.
2571 cat >>confdefs.h <<_ACEOF
2572 #define PACKAGE_NAME "$PACKAGE_NAME"
2575 cat >>confdefs.h <<_ACEOF
2576 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2579 cat >>confdefs.h <<_ACEOF
2580 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2583 cat >>confdefs.h <<_ACEOF
2584 #define PACKAGE_STRING "$PACKAGE_STRING"
2587 cat >>confdefs.h <<_ACEOF
2588 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2591 cat >>confdefs.h <<_ACEOF
2592 #define PACKAGE_URL "$PACKAGE_URL"
2596 # Let the site file select an alternate cache file if it wants to.
2597 # Prefer an explicitly selected file to automatically selected ones.
2600 if test -n "$CONFIG_SITE"; then
2601 # We do not want a PATH search for config.site.
2602 case $CONFIG_SITE in #((
2603 -*) ac_site_file1=./$CONFIG_SITE;;
2604 */*) ac_site_file1=$CONFIG_SITE;;
2605 *) ac_site_file1=./$CONFIG_SITE;;
2607 elif test "x$prefix" != xNONE; then
2608 ac_site_file1=$prefix/share/config.site
2609 ac_site_file2=$prefix/etc/config.site
2611 ac_site_file1=$ac_default_prefix/share/config.site
2612 ac_site_file2=$ac_default_prefix/etc/config.site
2614 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2616 test "x$ac_site_file" = xNONE && continue
2617 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2619 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2620 sed 's/^/| /' "$ac_site_file" >&5
2622 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2623 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2624 as_fn_error $? "failed to load site script $ac_site_file
2625 See \`config.log' for more details" "$LINENO" 5; }
2629 if test -r "$cache_file"; then
2630 # Some versions of bash will fail to source /dev/null (special files
2631 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2632 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2634 $as_echo "$as_me: loading cache $cache_file" >&6;}
2636 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2637 *) . "./$cache_file";;
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2642 $as_echo "$as_me: creating cache $cache_file" >&6;}
2646 gt_needs="$gt_needs "
2647 as_fn_append ac_header_list " stdlib.h"
2648 as_fn_append ac_header_list " unistd.h"
2649 as_fn_append ac_header_list " sys/param.h"
2650 as_fn_append ac_func_list " symlink"
2651 # Check that the precious variables saved in the cache have kept the same
2653 ac_cache_corrupted=false
2654 for ac_var in $ac_precious_vars; do
2655 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2656 eval ac_new_set=\$ac_env_${ac_var}_set
2657 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2658 eval ac_new_val=\$ac_env_${ac_var}_value
2659 case $ac_old_set,$ac_new_set in
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2662 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2663 ac_cache_corrupted=: ;;
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2666 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2667 ac_cache_corrupted=: ;;
2670 if test "x$ac_old_val" != "x$ac_new_val"; then
2671 # differences in whitespace do not lead to failure.
2672 ac_old_val_w=`echo x $ac_old_val`
2673 ac_new_val_w=`echo x $ac_new_val`
2674 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2676 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2677 ac_cache_corrupted=:
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2680 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2681 eval $ac_var=\$ac_old_val
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2684 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2686 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2689 # Pass precious variables to config.status.
2690 if test "$ac_new_set" = set; then
2692 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2693 *) ac_arg=$ac_var=$ac_new_val ;;
2695 case " $ac_configure_args " in
2696 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2697 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2701 if $ac_cache_corrupted; then
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2703 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2705 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2706 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2708 ## -------------------- ##
2709 ## Main body of script. ##
2710 ## -------------------- ##
2713 ac_cpp='$CPP $CPPFLAGS'
2714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2721 for ac_dir in config "$srcdir"/config; do
2722 if test -f "$ac_dir/install-sh"; then
2724 ac_install_sh="$ac_aux_dir/install-sh -c"
2726 elif test -f "$ac_dir/install.sh"; then
2728 ac_install_sh="$ac_aux_dir/install.sh -c"
2730 elif test -f "$ac_dir/shtool"; then
2732 ac_install_sh="$ac_aux_dir/shtool install -c"
2736 if test -z "$ac_aux_dir"; then
2737 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2740 # These three variables are undocumented and unsupported,
2741 # and are intended to be withdrawn in a future Autoconf release.
2742 # They can cause serious problems if a builder's source tree is in a directory
2743 # whose full name contains unusual characters.
2744 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2745 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2746 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2749 ac_config_headers="$ac_config_headers lib/config.h"
2755 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
2756 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2757 DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2759 E2FSPROGS_DAY=$(echo $DATE | awk -F- '{print $1}' | sed -e '/^[1-9]$/s/^/0/')
2760 MONTH=`echo $DATE | awk -F- '{print $2}'`
2761 YEAR=`echo $DATE | awk -F- '{print $3}'`
2763 if expr $YEAR ">" 1900 > /dev/null ; then
2764 E2FSPROGS_YEAR=$YEAR
2765 elif expr $YEAR ">" 90 >/dev/null ; then
2766 E2FSPROGS_YEAR=19$YEAR
2768 E2FSPROGS_YEAR=20$YEAR
2772 Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2773 Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2774 Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2775 Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2776 May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2777 Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2778 Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2779 Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2780 Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2781 Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2782 Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2783 Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
2784 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
2785 $as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
2788 base_ver=`echo $E2FSPROGS_VERSION | \
2789 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
2791 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2793 case $E2FSPROGS_VERSION in
2795 E2FSPROGS_PKGVER="$base_ver~WIP.$date_spec"
2798 E2FSPROGS_PKGVER="$base_ver"
2802 unset DATE MONTH YEAR base_ver pre_vers date_spec
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
2804 $as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
2806 $as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
2814 # Check whether --with-diet-libc was given.
2815 if test "${with_diet_libc+set}" = set; then :
2816 withval=$with_diet_libc; CC="diet cc -nostdinc"
2822 LIBS="$LIBS -lcompat"
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
2825 $as_echo "CC=$CC" >&6; }
2827 # Make sure we can run config.sub.
2828 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2829 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2832 $as_echo_n "checking build system type... " >&6; }
2833 if ${ac_cv_build+:} false; then :
2834 $as_echo_n "(cached) " >&6
2836 ac_build_alias=$build_alias
2837 test "x$ac_build_alias" = x &&
2838 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2839 test "x$ac_build_alias" = x &&
2840 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2841 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2842 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2846 $as_echo "$ac_cv_build" >&6; }
2847 case $ac_cv_build in
2849 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2852 ac_save_IFS=$IFS; IFS='-'
2858 # Remember, the first character of IFS is used to create $*,
2859 # except with old shells:
2862 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2866 $as_echo_n "checking host system type... " >&6; }
2867 if ${ac_cv_host+:} false; then :
2868 $as_echo_n "(cached) " >&6
2870 if test "x$host_alias" = x; then
2871 ac_cv_host=$ac_cv_build
2873 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2874 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2879 $as_echo "$ac_cv_host" >&6; }
2882 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2885 ac_save_IFS=$IFS; IFS='-'
2891 # Remember, the first character of IFS is used to create $*,
2892 # except with old shells:
2895 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2900 ac_cpp='$CPP $CPPFLAGS'
2901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2904 if test -n "$ac_tool_prefix"; then
2905 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2906 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2908 $as_echo_n "checking for $ac_word... " >&6; }
2909 if ${ac_cv_prog_CC+:} false; then :
2910 $as_echo_n "(cached) " >&6
2912 if test -n "$CC"; then
2913 ac_cv_prog_CC="$CC" # Let the user override the test.
2915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2919 test -z "$as_dir" && as_dir=.
2920 for ac_exec_ext in '' $ac_executable_extensions; do
2921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2922 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2933 if test -n "$CC"; then
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2935 $as_echo "$CC" >&6; }
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2938 $as_echo "no" >&6; }
2943 if test -z "$ac_cv_prog_CC"; then
2945 # Extract the first word of "gcc", so it can be a program name with args.
2946 set dummy gcc; ac_word=$2
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2948 $as_echo_n "checking for $ac_word... " >&6; }
2949 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2950 $as_echo_n "(cached) " >&6
2952 if test -n "$ac_ct_CC"; then
2953 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2959 test -z "$as_dir" && as_dir=.
2960 for ac_exec_ext in '' $ac_executable_extensions; do
2961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2962 ac_cv_prog_ac_ct_CC="gcc"
2963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2972 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2973 if test -n "$ac_ct_CC"; then
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2975 $as_echo "$ac_ct_CC" >&6; }
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2978 $as_echo "no" >&6; }
2981 if test "x$ac_ct_CC" = x; then
2984 case $cross_compiling:$ac_tool_warned in
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2987 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2988 ac_tool_warned=yes ;;
2996 if test -z "$CC"; then
2997 if test -n "$ac_tool_prefix"; then
2998 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2999 set dummy ${ac_tool_prefix}cc; ac_word=$2
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3001 $as_echo_n "checking for $ac_word... " >&6; }
3002 if ${ac_cv_prog_CC+:} false; then :
3003 $as_echo_n "(cached) " >&6
3005 if test -n "$CC"; then
3006 ac_cv_prog_CC="$CC" # Let the user override the test.
3008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3012 test -z "$as_dir" && as_dir=.
3013 for ac_exec_ext in '' $ac_executable_extensions; do
3014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3015 ac_cv_prog_CC="${ac_tool_prefix}cc"
3016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3026 if test -n "$CC"; then
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3028 $as_echo "$CC" >&6; }
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3031 $as_echo "no" >&6; }
3037 if test -z "$CC"; then
3038 # Extract the first word of "cc", so it can be a program name with args.
3039 set dummy cc; ac_word=$2
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3041 $as_echo_n "checking for $ac_word... " >&6; }
3042 if ${ac_cv_prog_CC+:} false; then :
3043 $as_echo_n "(cached) " >&6
3045 if test -n "$CC"; then
3046 ac_cv_prog_CC="$CC" # Let the user override the test.
3049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3053 test -z "$as_dir" && as_dir=.
3054 for ac_exec_ext in '' $ac_executable_extensions; do
3055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3056 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3057 ac_prog_rejected=yes
3061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3068 if test $ac_prog_rejected = yes; then
3069 # We found a bogon in the path, so make sure we never use it.
3070 set dummy $ac_cv_prog_CC
3072 if test $# != 0; then
3073 # We chose a different compiler from the bogus one.
3074 # However, it has the same basename, so the bogon will be chosen
3075 # first if we set CC to just the basename; use the full file name.
3077 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3083 if test -n "$CC"; then
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3085 $as_echo "$CC" >&6; }
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3088 $as_echo "no" >&6; }
3093 if test -z "$CC"; then
3094 if test -n "$ac_tool_prefix"; then
3095 for ac_prog in cl.exe
3097 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3098 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3100 $as_echo_n "checking for $ac_word... " >&6; }
3101 if ${ac_cv_prog_CC+:} false; then :
3102 $as_echo_n "(cached) " >&6
3104 if test -n "$CC"; then
3105 ac_cv_prog_CC="$CC" # Let the user override the test.
3107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3111 test -z "$as_dir" && as_dir=.
3112 for ac_exec_ext in '' $ac_executable_extensions; do
3113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3114 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3125 if test -n "$CC"; then
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3127 $as_echo "$CC" >&6; }
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3130 $as_echo "no" >&6; }
3134 test -n "$CC" && break
3137 if test -z "$CC"; then
3139 for ac_prog in cl.exe
3141 # Extract the first word of "$ac_prog", so it can be a program name with args.
3142 set dummy $ac_prog; ac_word=$2
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3144 $as_echo_n "checking for $ac_word... " >&6; }
3145 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3146 $as_echo_n "(cached) " >&6
3148 if test -n "$ac_ct_CC"; then
3149 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3155 test -z "$as_dir" && as_dir=.
3156 for ac_exec_ext in '' $ac_executable_extensions; do
3157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3158 ac_cv_prog_ac_ct_CC="$ac_prog"
3159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3168 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3169 if test -n "$ac_ct_CC"; then
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3171 $as_echo "$ac_ct_CC" >&6; }
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3174 $as_echo "no" >&6; }
3178 test -n "$ac_ct_CC" && break
3181 if test "x$ac_ct_CC" = x; then
3184 case $cross_compiling:$ac_tool_warned in
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3187 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3188 ac_tool_warned=yes ;;
3197 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3198 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3199 as_fn_error $? "no acceptable C compiler found in \$PATH
3200 See \`config.log' for more details" "$LINENO" 5; }
3202 # Provide some information about the compiler.
3203 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3206 for ac_option in --version -v -V -qversion; do
3207 { { ac_try="$ac_compiler $ac_option >&5"
3209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3210 *) ac_try_echo=$ac_try;;
3212 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3213 $as_echo "$ac_try_echo"; } >&5
3214 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3216 if test -s conftest.err; then
3218 ... rest of stderr output deleted ...
3219 10q' conftest.err >conftest.er1
3220 cat conftest.er1 >&5
3222 rm -f conftest.er1 conftest.err
3223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3224 test $ac_status = 0; }
3227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3228 /* end confdefs.h. */
3238 ac_clean_files_save=$ac_clean_files
3239 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3240 # Try to create an executable without -o first, disregard a.out.
3241 # It will help us diagnose broken compilers, and finding out an intuition
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3244 $as_echo_n "checking whether the C compiler works... " >&6; }
3245 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3247 # The possible output files:
3248 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3251 for ac_file in $ac_files
3254 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3255 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3260 if { { ac_try="$ac_link_default"
3262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3263 *) ac_try_echo=$ac_try;;
3265 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3266 $as_echo "$ac_try_echo"; } >&5
3267 (eval "$ac_link_default") 2>&5
3269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3270 test $ac_status = 0; }; then :
3271 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3272 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3273 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3274 # so that the user can short-circuit this test for compilers unknown to
3276 for ac_file in $ac_files ''
3278 test -f "$ac_file" || continue
3280 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3283 # We found the default executable, but exeext='' is most
3287 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3289 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3291 # We set ac_cv_exeext here because the later test for it is not
3292 # safe: cross compilers may not add the suffix if given an `-o'
3293 # argument, so we may need to know it at that point already.
3294 # Even if this section looks crufty: it has the advantage of
3301 test "$ac_cv_exeext" = no && ac_cv_exeext=
3306 if test -z "$ac_file"; then :
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3308 $as_echo "no" >&6; }
3309 $as_echo "$as_me: failed program was:" >&5
3310 sed 's/^/| /' conftest.$ac_ext >&5
3312 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3313 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3314 as_fn_error 77 "C compiler cannot create executables
3315 See \`config.log' for more details" "$LINENO" 5; }
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3318 $as_echo "yes" >&6; }
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3321 $as_echo_n "checking for C compiler default output file name... " >&6; }
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3323 $as_echo "$ac_file" >&6; }
3324 ac_exeext=$ac_cv_exeext
3326 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3327 ac_clean_files=$ac_clean_files_save
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3329 $as_echo_n "checking for suffix of executables... " >&6; }
3330 if { { ac_try="$ac_link"
3332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3333 *) ac_try_echo=$ac_try;;
3335 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3336 $as_echo "$ac_try_echo"; } >&5
3337 (eval "$ac_link") 2>&5
3339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3340 test $ac_status = 0; }; then :
3341 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3342 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3343 # work properly (i.e., refer to `conftest.exe'), while it won't with
3345 for ac_file in conftest.exe conftest conftest.*; do
3346 test -f "$ac_file" || continue
3348 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3349 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3355 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3356 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3357 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3358 See \`config.log' for more details" "$LINENO" 5; }
3360 rm -f conftest conftest$ac_cv_exeext
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3362 $as_echo "$ac_cv_exeext" >&6; }
3364 rm -f conftest.$ac_ext
3365 EXEEXT=$ac_cv_exeext
3367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3368 /* end confdefs.h. */
3373 FILE *f = fopen ("conftest.out", "w");
3374 return ferror (f) || fclose (f) != 0;
3380 ac_clean_files="$ac_clean_files conftest.out"
3381 # Check that the compiler produces executables we can run. If not, either
3382 # the compiler is broken, or we cross compile.
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3384 $as_echo_n "checking whether we are cross compiling... " >&6; }
3385 if test "$cross_compiling" != yes; then
3386 { { ac_try="$ac_link"
3388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3389 *) ac_try_echo=$ac_try;;
3391 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3392 $as_echo "$ac_try_echo"; } >&5
3393 (eval "$ac_link") 2>&5
3395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3396 test $ac_status = 0; }
3397 if { ac_try='./conftest$ac_cv_exeext'
3398 { { case "(($ac_try" in
3399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3400 *) ac_try_echo=$ac_try;;
3402 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3403 $as_echo "$ac_try_echo"; } >&5
3404 (eval "$ac_try") 2>&5
3406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3407 test $ac_status = 0; }; }; then
3410 if test "$cross_compiling" = maybe; then
3413 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3414 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3415 as_fn_error $? "cannot run C compiled programs.
3416 If you meant to cross compile, use \`--host'.
3417 See \`config.log' for more details" "$LINENO" 5; }
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3422 $as_echo "$cross_compiling" >&6; }
3424 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3425 ac_clean_files=$ac_clean_files_save
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3427 $as_echo_n "checking for suffix of object files... " >&6; }
3428 if ${ac_cv_objext+:} false; then :
3429 $as_echo_n "(cached) " >&6
3431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3432 /* end confdefs.h. */
3442 rm -f conftest.o conftest.obj
3443 if { { ac_try="$ac_compile"
3445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3446 *) ac_try_echo=$ac_try;;
3448 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3449 $as_echo "$ac_try_echo"; } >&5
3450 (eval "$ac_compile") 2>&5
3452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3453 test $ac_status = 0; }; then :
3454 for ac_file in conftest.o conftest.obj conftest.*; do
3455 test -f "$ac_file" || continue;
3457 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3458 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3463 $as_echo "$as_me: failed program was:" >&5
3464 sed 's/^/| /' conftest.$ac_ext >&5
3466 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3467 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3468 as_fn_error $? "cannot compute suffix of object files: cannot compile
3469 See \`config.log' for more details" "$LINENO" 5; }
3471 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3474 $as_echo "$ac_cv_objext" >&6; }
3475 OBJEXT=$ac_cv_objext
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3478 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3479 if ${ac_cv_c_compiler_gnu+:} false; then :
3480 $as_echo_n "(cached) " >&6
3482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3483 /* end confdefs.h. */
3496 if ac_fn_c_try_compile "$LINENO"; then :
3501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3502 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3506 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3507 if test $ac_compiler_gnu = yes; then
3512 ac_test_CFLAGS=${CFLAGS+set}
3513 ac_save_CFLAGS=$CFLAGS
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3515 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3516 if ${ac_cv_prog_cc_g+:} false; then :
3517 $as_echo_n "(cached) " >&6
3519 ac_save_c_werror_flag=$ac_c_werror_flag
3520 ac_c_werror_flag=yes
3523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3524 /* end confdefs.h. */
3534 if ac_fn_c_try_compile "$LINENO"; then :
3538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3539 /* end confdefs.h. */
3549 if ac_fn_c_try_compile "$LINENO"; then :
3552 ac_c_werror_flag=$ac_save_c_werror_flag
3554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3555 /* end confdefs.h. */
3565 if ac_fn_c_try_compile "$LINENO"; then :
3568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3573 ac_c_werror_flag=$ac_save_c_werror_flag
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3576 $as_echo "$ac_cv_prog_cc_g" >&6; }
3577 if test "$ac_test_CFLAGS" = set; then
3578 CFLAGS=$ac_save_CFLAGS
3579 elif test $ac_cv_prog_cc_g = yes; then
3580 if test "$GCC" = yes; then
3586 if test "$GCC" = yes; then
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3593 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3594 if ${ac_cv_prog_cc_c89+:} false; then :
3595 $as_echo_n "(cached) " >&6
3597 ac_cv_prog_cc_c89=no
3599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3600 /* end confdefs.h. */
3604 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3605 struct buf { int x; };
3606 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3607 static char *e (p, i)
3613 static char *f (char * (*g) (char **, int), char **p, ...)
3618 s = g (p, va_arg (v,int));
3623 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3624 function prototypes and stuff, but not '\xHH' hex character constants.
3625 These don't provoke an error unfortunately, instead are silently treated
3626 as 'x'. The following induces an error, until -std is added to get
3627 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3628 array size at least. It's necessary to write '\x00'==0 to get something
3629 that's true only with -std. */
3630 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3632 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3633 inside strings and character constants. */
3635 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3637 int test (int i, double x);
3638 struct s1 {int (*f) (int a);};
3639 struct s2 {int (*f) (double a);};
3640 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3646 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3651 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3652 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3654 CC="$ac_save_CC $ac_arg"
3655 if ac_fn_c_try_compile "$LINENO"; then :
3656 ac_cv_prog_cc_c89=$ac_arg
3658 rm -f core conftest.err conftest.$ac_objext
3659 test "x$ac_cv_prog_cc_c89" != "xno" && break
3661 rm -f conftest.$ac_ext
3666 case "x$ac_cv_prog_cc_c89" in
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3669 $as_echo "none needed" >&6; } ;;
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3672 $as_echo "unsupported" >&6; } ;;
3674 CC="$CC $ac_cv_prog_cc_c89"
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3676 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3678 if test "x$ac_cv_prog_cc_c89" != xno; then :
3683 ac_cpp='$CPP $CPPFLAGS'
3684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3690 $as_echo_n "checking for dlopen in -ldl... " >&6; }
3691 if ${ac_cv_lib_dl_dlopen+:} false; then :
3692 $as_echo_n "(cached) " >&6
3694 ac_check_lib_save_LIBS=$LIBS
3696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3697 /* end confdefs.h. */
3699 /* Override any GCC internal prototype to avoid an error.
3700 Use char because int might match the return type of a GCC
3701 builtin and then its argument prototype would still apply. */
3714 if ac_fn_c_try_link "$LINENO"; then :
3715 ac_cv_lib_dl_dlopen=yes
3717 ac_cv_lib_dl_dlopen=no
3719 rm -f core conftest.err conftest.$ac_objext \
3720 conftest$ac_exeext conftest.$ac_ext
3721 LIBS=$ac_check_lib_save_LIBS
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3724 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
3725 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
3728 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
3734 # Check whether --with-cc was given.
3735 if test "${with_cc+set}" = set; then :
3736 withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5
3740 # Check whether --with-ccopts was given.
3741 if test "${with_ccopts+set}" = set; then :
3742 withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
3746 # Check whether --with-ldopts was given.
3747 if test "${with_ldopts+set}" = set; then :
3748 withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
3752 ac_cpp='$CPP $CPPFLAGS'
3753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3755 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3756 if test -n "$ac_tool_prefix"; then
3757 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3758 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3760 $as_echo_n "checking for $ac_word... " >&6; }
3761 if ${ac_cv_prog_CC+:} false; then :
3762 $as_echo_n "(cached) " >&6
3764 if test -n "$CC"; then
3765 ac_cv_prog_CC="$CC" # Let the user override the test.
3767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3771 test -z "$as_dir" && as_dir=.
3772 for ac_exec_ext in '' $ac_executable_extensions; do
3773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3774 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3785 if test -n "$CC"; then
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3787 $as_echo "$CC" >&6; }
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3790 $as_echo "no" >&6; }
3795 if test -z "$ac_cv_prog_CC"; then
3797 # Extract the first word of "gcc", so it can be a program name with args.
3798 set dummy gcc; ac_word=$2
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3800 $as_echo_n "checking for $ac_word... " >&6; }
3801 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3802 $as_echo_n "(cached) " >&6
3804 if test -n "$ac_ct_CC"; then
3805 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3811 test -z "$as_dir" && as_dir=.
3812 for ac_exec_ext in '' $ac_executable_extensions; do
3813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3814 ac_cv_prog_ac_ct_CC="gcc"
3815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3824 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3825 if test -n "$ac_ct_CC"; then
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3827 $as_echo "$ac_ct_CC" >&6; }
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3830 $as_echo "no" >&6; }
3833 if test "x$ac_ct_CC" = x; then
3836 case $cross_compiling:$ac_tool_warned in
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3839 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3840 ac_tool_warned=yes ;;
3848 if test -z "$CC"; then
3849 if test -n "$ac_tool_prefix"; then
3850 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3851 set dummy ${ac_tool_prefix}cc; ac_word=$2
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3853 $as_echo_n "checking for $ac_word... " >&6; }
3854 if ${ac_cv_prog_CC+:} false; then :
3855 $as_echo_n "(cached) " >&6
3857 if test -n "$CC"; then
3858 ac_cv_prog_CC="$CC" # Let the user override the test.
3860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3864 test -z "$as_dir" && as_dir=.
3865 for ac_exec_ext in '' $ac_executable_extensions; do
3866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3867 ac_cv_prog_CC="${ac_tool_prefix}cc"
3868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3878 if test -n "$CC"; then
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3880 $as_echo "$CC" >&6; }
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3883 $as_echo "no" >&6; }
3889 if test -z "$CC"; then
3890 # Extract the first word of "cc", so it can be a program name with args.
3891 set dummy cc; ac_word=$2
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3893 $as_echo_n "checking for $ac_word... " >&6; }
3894 if ${ac_cv_prog_CC+:} false; then :
3895 $as_echo_n "(cached) " >&6
3897 if test -n "$CC"; then
3898 ac_cv_prog_CC="$CC" # Let the user override the test.
3901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3905 test -z "$as_dir" && as_dir=.
3906 for ac_exec_ext in '' $ac_executable_extensions; do
3907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3908 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3909 ac_prog_rejected=yes
3913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3920 if test $ac_prog_rejected = yes; then
3921 # We found a bogon in the path, so make sure we never use it.
3922 set dummy $ac_cv_prog_CC
3924 if test $# != 0; then
3925 # We chose a different compiler from the bogus one.
3926 # However, it has the same basename, so the bogon will be chosen
3927 # first if we set CC to just the basename; use the full file name.
3929 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3935 if test -n "$CC"; then
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3937 $as_echo "$CC" >&6; }
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3940 $as_echo "no" >&6; }
3945 if test -z "$CC"; then
3946 if test -n "$ac_tool_prefix"; then
3947 for ac_prog in cl.exe
3949 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3950 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3952 $as_echo_n "checking for $ac_word... " >&6; }
3953 if ${ac_cv_prog_CC+:} false; then :
3954 $as_echo_n "(cached) " >&6
3956 if test -n "$CC"; then
3957 ac_cv_prog_CC="$CC" # Let the user override the test.
3959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3963 test -z "$as_dir" && as_dir=.
3964 for ac_exec_ext in '' $ac_executable_extensions; do
3965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3966 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3977 if test -n "$CC"; then
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3979 $as_echo "$CC" >&6; }
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3982 $as_echo "no" >&6; }
3986 test -n "$CC" && break
3989 if test -z "$CC"; then
3991 for ac_prog in cl.exe
3993 # Extract the first word of "$ac_prog", so it can be a program name with args.
3994 set dummy $ac_prog; ac_word=$2
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3996 $as_echo_n "checking for $ac_word... " >&6; }
3997 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3998 $as_echo_n "(cached) " >&6
4000 if test -n "$ac_ct_CC"; then
4001 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4007 test -z "$as_dir" && as_dir=.
4008 for ac_exec_ext in '' $ac_executable_extensions; do
4009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4010 ac_cv_prog_ac_ct_CC="$ac_prog"
4011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4020 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4021 if test -n "$ac_ct_CC"; then
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4023 $as_echo "$ac_ct_CC" >&6; }
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4026 $as_echo "no" >&6; }
4030 test -n "$ac_ct_CC" && break
4033 if test "x$ac_ct_CC" = x; then
4036 case $cross_compiling:$ac_tool_warned in
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4039 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4040 ac_tool_warned=yes ;;
4049 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4050 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4051 as_fn_error $? "no acceptable C compiler found in \$PATH
4052 See \`config.log' for more details" "$LINENO" 5; }
4054 # Provide some information about the compiler.
4055 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4058 for ac_option in --version -v -V -qversion; do
4059 { { ac_try="$ac_compiler $ac_option >&5"
4061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4062 *) ac_try_echo=$ac_try;;
4064 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4065 $as_echo "$ac_try_echo"; } >&5
4066 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4068 if test -s conftest.err; then
4070 ... rest of stderr output deleted ...
4071 10q' conftest.err >conftest.er1
4072 cat conftest.er1 >&5
4074 rm -f conftest.er1 conftest.err
4075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4076 test $ac_status = 0; }
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4080 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4081 if ${ac_cv_c_compiler_gnu+:} false; then :
4082 $as_echo_n "(cached) " >&6
4084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4085 /* end confdefs.h. */
4098 if ac_fn_c_try_compile "$LINENO"; then :
4103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4104 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4108 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4109 if test $ac_compiler_gnu = yes; then
4114 ac_test_CFLAGS=${CFLAGS+set}
4115 ac_save_CFLAGS=$CFLAGS
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4117 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4118 if ${ac_cv_prog_cc_g+:} false; then :
4119 $as_echo_n "(cached) " >&6
4121 ac_save_c_werror_flag=$ac_c_werror_flag
4122 ac_c_werror_flag=yes
4125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4126 /* end confdefs.h. */
4136 if ac_fn_c_try_compile "$LINENO"; then :
4140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4141 /* end confdefs.h. */
4151 if ac_fn_c_try_compile "$LINENO"; then :
4154 ac_c_werror_flag=$ac_save_c_werror_flag
4156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4157 /* end confdefs.h. */
4167 if ac_fn_c_try_compile "$LINENO"; then :
4170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4175 ac_c_werror_flag=$ac_save_c_werror_flag
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4178 $as_echo "$ac_cv_prog_cc_g" >&6; }
4179 if test "$ac_test_CFLAGS" = set; then
4180 CFLAGS=$ac_save_CFLAGS
4181 elif test $ac_cv_prog_cc_g = yes; then
4182 if test "$GCC" = yes; then
4188 if test "$GCC" = yes; then
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4195 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4196 if ${ac_cv_prog_cc_c89+:} false; then :
4197 $as_echo_n "(cached) " >&6
4199 ac_cv_prog_cc_c89=no
4201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4202 /* end confdefs.h. */
4206 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4207 struct buf { int x; };
4208 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4209 static char *e (p, i)
4215 static char *f (char * (*g) (char **, int), char **p, ...)
4220 s = g (p, va_arg (v,int));
4225 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4226 function prototypes and stuff, but not '\xHH' hex character constants.
4227 These don't provoke an error unfortunately, instead are silently treated
4228 as 'x'. The following induces an error, until -std is added to get
4229 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4230 array size at least. It's necessary to write '\x00'==0 to get something
4231 that's true only with -std. */
4232 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4234 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4235 inside strings and character constants. */
4237 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4239 int test (int i, double x);
4240 struct s1 {int (*f) (int a);};
4241 struct s2 {int (*f) (double a);};
4242 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4248 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4253 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4254 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4256 CC="$ac_save_CC $ac_arg"
4257 if ac_fn_c_try_compile "$LINENO"; then :
4258 ac_cv_prog_cc_c89=$ac_arg
4260 rm -f core conftest.err conftest.$ac_objext
4261 test "x$ac_cv_prog_cc_c89" != "xno" && break
4263 rm -f conftest.$ac_ext
4268 case "x$ac_cv_prog_cc_c89" in
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4271 $as_echo "none needed" >&6; } ;;
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4274 $as_echo "unsupported" >&6; } ;;
4276 CC="$CC $ac_cv_prog_cc_c89"
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4278 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4280 if test "x$ac_cv_prog_cc_c89" != xno; then :
4285 ac_cpp='$CPP $CPPFLAGS'
4286 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4287 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4290 if test "$GCC" = yes; then
4291 RDYNAMIC="-rdynamic"
4295 ac_cpp='$CPP $CPPFLAGS'
4296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4300 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4301 # On Suns, sometimes $CPP names a directory.
4302 if test -n "$CPP" && test -d "$CPP"; then
4305 if test -z "$CPP"; then
4306 if ${ac_cv_prog_CPP+:} false; then :
4307 $as_echo_n "(cached) " >&6
4309 # Double quotes because CPP needs to be expanded
4310 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4313 for ac_c_preproc_warn_flag in '' yes
4315 # Use a header file that comes with gcc, so configuring glibc
4316 # with a fresh cross-compiler works.
4317 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4318 # <limits.h> exists even on freestanding compilers.
4319 # On the NeXT, cc -E runs the code through the compiler's parser,
4320 # not just through cpp. "Syntax error" is here to catch this case.
4321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4322 /* end confdefs.h. */
4324 # include <limits.h>
4326 # include <assert.h>
4330 if ac_fn_c_try_cpp "$LINENO"; then :
4333 # Broken: fails on valid input.
4336 rm -f conftest.err conftest.i conftest.$ac_ext
4338 # OK, works on sane cases. Now check whether nonexistent headers
4339 # can be detected and how.
4340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4341 /* end confdefs.h. */
4342 #include <ac_nonexistent.h>
4344 if ac_fn_c_try_cpp "$LINENO"; then :
4345 # Broken: success on invalid input.
4348 # Passes both tests.
4352 rm -f conftest.err conftest.i conftest.$ac_ext
4355 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4356 rm -f conftest.i conftest.err conftest.$ac_ext
4357 if $ac_preproc_ok; then :
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4370 $as_echo "$CPP" >&6; }
4372 for ac_c_preproc_warn_flag in '' yes
4374 # Use a header file that comes with gcc, so configuring glibc
4375 # with a fresh cross-compiler works.
4376 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4377 # <limits.h> exists even on freestanding compilers.
4378 # On the NeXT, cc -E runs the code through the compiler's parser,
4379 # not just through cpp. "Syntax error" is here to catch this case.
4380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4381 /* end confdefs.h. */
4383 # include <limits.h>
4385 # include <assert.h>
4389 if ac_fn_c_try_cpp "$LINENO"; then :
4392 # Broken: fails on valid input.
4395 rm -f conftest.err conftest.i conftest.$ac_ext
4397 # OK, works on sane cases. Now check whether nonexistent headers
4398 # can be detected and how.
4399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4400 /* end confdefs.h. */
4401 #include <ac_nonexistent.h>
4403 if ac_fn_c_try_cpp "$LINENO"; then :
4404 # Broken: success on invalid input.
4407 # Passes both tests.
4411 rm -f conftest.err conftest.i conftest.$ac_ext
4414 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4415 rm -f conftest.i conftest.err conftest.$ac_ext
4416 if $ac_preproc_ok; then :
4419 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4420 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4421 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4422 See \`config.log' for more details" "$LINENO" 5; }
4426 ac_cpp='$CPP $CPPFLAGS'
4427 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4428 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4429 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
4432 $as_echo_n "checking for additional special compiler flags... " >&6; }
4433 if test "$GCC" = yes
4436 alpha) addcflags="-mieee" ;;
4439 if test "x$addcflags" != x
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
4442 $as_echo "$addcflags" >&6; }
4443 CFLAGS="$addcflags $CFLAGS"
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
4446 $as_echo "(none)" >&6; }
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4450 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4451 if ${ac_cv_path_GREP+:} false; then :
4452 $as_echo_n "(cached) " >&6
4454 if test -z "$GREP"; then
4455 ac_path_GREP_found=false
4456 # Loop through the user's path and test for each of PROGNAME-LIST
4457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4458 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4461 test -z "$as_dir" && as_dir=.
4462 for ac_prog in grep ggrep; do
4463 for ac_exec_ext in '' $ac_executable_extensions; do
4464 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4465 as_fn_executable_p "$ac_path_GREP" || continue
4466 # Check for GNU ac_path_GREP and select it if it is found.
4467 # Check for GNU $ac_path_GREP
4468 case `"$ac_path_GREP" --version 2>&1` in
4470 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4473 $as_echo_n 0123456789 >"conftest.in"
4476 cat "conftest.in" "conftest.in" >"conftest.tmp"
4477 mv "conftest.tmp" "conftest.in"
4478 cp "conftest.in" "conftest.nl"
4479 $as_echo 'GREP' >> "conftest.nl"
4480 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4481 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4482 as_fn_arith $ac_count + 1 && ac_count=$as_val
4483 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4484 # Best one so far, save it but keep looking for a better one
4485 ac_cv_path_GREP="$ac_path_GREP"
4486 ac_path_GREP_max=$ac_count
4488 # 10*(2^10) chars as input seems more than enough
4489 test $ac_count -gt 10 && break
4491 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4494 $ac_path_GREP_found && break 3
4499 if test -z "$ac_cv_path_GREP"; then
4500 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4503 ac_cv_path_GREP=$GREP
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4508 $as_echo "$ac_cv_path_GREP" >&6; }
4509 GREP="$ac_cv_path_GREP"
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4513 $as_echo_n "checking for egrep... " >&6; }
4514 if ${ac_cv_path_EGREP+:} false; then :
4515 $as_echo_n "(cached) " >&6
4517 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4518 then ac_cv_path_EGREP="$GREP -E"
4520 if test -z "$EGREP"; then
4521 ac_path_EGREP_found=false
4522 # Loop through the user's path and test for each of PROGNAME-LIST
4523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4524 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4527 test -z "$as_dir" && as_dir=.
4528 for ac_prog in egrep; do
4529 for ac_exec_ext in '' $ac_executable_extensions; do
4530 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4531 as_fn_executable_p "$ac_path_EGREP" || continue
4532 # Check for GNU ac_path_EGREP and select it if it is found.
4533 # Check for GNU $ac_path_EGREP
4534 case `"$ac_path_EGREP" --version 2>&1` in
4536 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4539 $as_echo_n 0123456789 >"conftest.in"
4542 cat "conftest.in" "conftest.in" >"conftest.tmp"
4543 mv "conftest.tmp" "conftest.in"
4544 cp "conftest.in" "conftest.nl"
4545 $as_echo 'EGREP' >> "conftest.nl"
4546 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4547 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4548 as_fn_arith $ac_count + 1 && ac_count=$as_val
4549 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4550 # Best one so far, save it but keep looking for a better one
4551 ac_cv_path_EGREP="$ac_path_EGREP"
4552 ac_path_EGREP_max=$ac_count
4554 # 10*(2^10) chars as input seems more than enough
4555 test $ac_count -gt 10 && break
4557 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4560 $ac_path_EGREP_found && break 3
4565 if test -z "$ac_cv_path_EGREP"; then
4566 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4569 ac_cv_path_EGREP=$EGREP
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4575 $as_echo "$ac_cv_path_EGREP" >&6; }
4576 EGREP="$ac_cv_path_EGREP"
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4580 $as_echo_n "checking for ANSI C header files... " >&6; }
4581 if ${ac_cv_header_stdc+:} false; then :
4582 $as_echo_n "(cached) " >&6
4584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4585 /* end confdefs.h. */
4599 if ac_fn_c_try_compile "$LINENO"; then :
4600 ac_cv_header_stdc=yes
4602 ac_cv_header_stdc=no
4604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4606 if test $ac_cv_header_stdc = yes; then
4607 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4609 /* end confdefs.h. */
4613 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4614 $EGREP "memchr" >/dev/null 2>&1; then :
4617 ac_cv_header_stdc=no
4623 if test $ac_cv_header_stdc = yes; then
4624 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4626 /* end confdefs.h. */
4630 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4631 $EGREP "free" >/dev/null 2>&1; then :
4634 ac_cv_header_stdc=no
4640 if test $ac_cv_header_stdc = yes; then
4641 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4642 if test "$cross_compiling" = yes; then :
4645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4646 /* end confdefs.h. */
4649 #if ((' ' & 0x0FF) == 0x020)
4650 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4651 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4653 # define ISLOWER(c) \
4654 (('a' <= (c) && (c) <= 'i') \
4655 || ('j' <= (c) && (c) <= 'r') \
4656 || ('s' <= (c) && (c) <= 'z'))
4657 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4660 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4665 for (i = 0; i < 256; i++)
4666 if (XOR (islower (i), ISLOWER (i))
4667 || toupper (i) != TOUPPER (i))
4672 if ac_fn_c_try_run "$LINENO"; then :
4675 ac_cv_header_stdc=no
4677 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4678 conftest.$ac_objext conftest.beam conftest.$ac_ext
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4684 $as_echo "$ac_cv_header_stdc" >&6; }
4685 if test $ac_cv_header_stdc = yes; then
4687 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4691 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4692 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4693 inttypes.h stdint.h unistd.h
4695 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4696 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4698 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4699 cat >>confdefs.h <<_ACEOF
4700 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4709 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4710 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4717 if test "$MINIX" = yes; then
4719 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4722 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4725 $as_echo "#define _MINIX 1" >>confdefs.h
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4731 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4732 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4733 $as_echo_n "(cached) " >&6
4735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4736 /* end confdefs.h. */
4738 # define __EXTENSIONS__ 1
4739 $ac_includes_default
4748 if ac_fn_c_try_compile "$LINENO"; then :
4749 ac_cv_safe_to_define___extensions__=yes
4751 ac_cv_safe_to_define___extensions__=no
4753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4756 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4757 test $ac_cv_safe_to_define___extensions__ = yes &&
4758 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4760 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4762 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4764 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4766 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4773 # Check whether --with-root-prefix was given.
4774 if test "${with_root_prefix+set}" = set; then :
4775 withval=$with_root_prefix; root_prefix=$withval
4779 # Check whether --enable-maintainer-mode was given.
4780 if test "${enable_maintainer_mode+set}" = set; then :
4781 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
4785 $as_echo "Disabling maintainer mode" >&6; }
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
4789 $as_echo "Enabling maintainer mode" >&6; }
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
4795 $as_echo "Disabling maintainer mode by default" >&6; }
4800 # Check whether --enable-symlink-install was given.
4801 if test "${enable_symlink_install+set}" = set; then :
4802 enableval=$enable_symlink_install; if test "$enableval" = "no"
4804 LINK_INSTALL_FLAGS=-f
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4806 $as_echo "Disabling symlinks for install" >&6; }
4808 LINK_INSTALL_FLAGS=-sf
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4810 $as_echo "Enabling symlinks for install" >&6; }
4814 LINK_INSTALL_FLAGS=-f
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
4816 $as_echo "Disabling symlinks for install by default" >&6; }
4821 relative_symlink_defined=
4822 # Check whether --enable-relative-symlinks was given.
4823 if test "${enable_relative_symlinks+set}" = set; then :
4824 enableval=$enable_relative_symlinks; if test "$enableval" = "no"
4827 relative_symlink_defined=yes
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4829 $as_echo "Disabling relative symlinks for install" >&6; }
4831 SYMLINK_RELATIVE=--relative
4832 relative_symlink_defined=yes
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4834 $as_echo "Enabling relative symlinks for install" >&6; }
4838 # Check whether --enable-symlink-relative-symlinks was given.
4839 if test "${enable_symlink_relative_symlinks+set}" = set; then :
4840 enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
4842 SYMLINK_RELATIVE=yes
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4844 $as_echo "Disabling relative symlinks for install" >&6; }
4846 SYMLINK_RELATIVE=--relative
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4848 $as_echo "Enabling relative symlinks for install" >&6; }
4852 if test -z "$relative_symlink_defined"
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
4856 $as_echo "Disabling relative symlinks for install by default" >&6; }
4862 # Check whether --enable-symlink-build was given.
4863 if test "${enable_symlink_build+set}" = set; then :
4864 enableval=$enable_symlink_build; if test "$enableval" = "no"
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4868 $as_echo "Disabling symlinks for build" >&6; }
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4872 $as_echo "Enabling symlinks for build" >&6; }
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
4878 $as_echo "Disabling symlinks for build by default" >&6; }
4883 # Check whether --enable-verbose-makecmds was given.
4884 if test "${enable_verbose_makecmds+set}" = set; then :
4885 enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4888 $as_echo "Disabling verbose make commands" >&6; }
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
4894 $as_echo "Enabling verbose make commands" >&6; }
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4902 $as_echo "Disabling verbose make commands" >&6; }
4912 E2_PKG_CONFIG_STATIC=--static
4915 # Check whether --enable-elf-shlibs was given.
4916 if test "${enable_elf_shlibs+set}" = set; then :
4917 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
4920 MAKEFILE_ELF=/dev/null
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
4922 $as_echo "Disabling ELF shared libraries" >&6; }
4924 E2_PKG_CONFIG_STATIC=
4926 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
4929 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4935 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
4937 $as_echo "Enabling ELF shared libraries" >&6; }
4941 MAKEFILE_ELF=/dev/null
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
4944 $as_echo "Disabling ELF shared libraries by default" >&6; }
4950 # Check whether --enable-bsd-shlibs was given.
4951 if test "${enable_bsd_shlibs+set}" = set; then :
4952 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
4955 MAKEFILE_BSDLIB=/dev/null
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
4957 $as_echo "Disabling BSD shared libraries" >&6; }
4959 E2_PKG_CONFIG_STATIC=
4961 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
4965 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
4970 $as_echo "Enabling BSD shared libraries" >&6; }
4974 MAKEFILE_BSDLIB=/dev/null
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
4977 $as_echo "Disabling BSD shared libraries by default" >&6; }
4983 # Check whether --enable-profile was given.
4984 if test "${enable_profile+set}" = set; then :
4985 enableval=$enable_profile; if test "$enableval" = "no"
4988 MAKEFILE_PROFILE=/dev/null
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
4990 $as_echo "Disabling profiling libraries" >&6; }
4993 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
4994 PROFILED_LIB_EXT=_p.a
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
4996 $as_echo "Building profiling libraries" >&6; }
5001 MAKEFILE_PROFILE=/dev/null
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
5003 $as_echo "Disabling profiling libraries by default" >&6; }
5009 # Check whether --enable-gcov was given.
5010 if test "${enable_gcov+set}" = set; then :
5011 enableval=$enable_gcov; if test "$enableval" = "yes"
5013 CFLAGS="-g -fprofile-arcs -ftest-coverage"
5014 LDFLAGS="-fprofile-arcs -ftest-coverage"
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling gcov support" >&5
5016 $as_echo "Enabling gcov support" >&6; }
5021 CFLAGS_SHLIB="${CFLAGS_SHLIB:-$CFLAGS}"
5022 CFLAGS_STLIB="${CFLAGS_STLIB:-$CFLAGS}"
5023 LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
5024 LDFLAGS_STATIC=${LDFLAGS_STATIC:-$LDFLAGS}
5025 # Check whether --enable-hardening was given.
5026 if test "${enable_hardening+set}" = set; then :
5027 enableval=$enable_hardening; if test "$enableval" = "yes"
5029 HARDEN_CFLAGS="-D_FORTIFY_SOURCE=2 -fstack-protector-strong"
5030 HARDEN_LDFLAGS="-Wl,-z,relro -Wl,-z,now"
5031 CFLAGS="$CFLAGS $HARDEN_CFLAGS -fPIE"
5032 CFLAGS_SHLIB="$CFLAGS_SHLIB $HARDEN_CFLAGS"
5033 CFLAGS_STLIB="$CFLAGS_STLIB $HARDEN_CFLAGS -fPIE"
5034 LDFLAGS="$LDFLAGS $HARDEN_LDFLAGS -fPIE -pie"
5035 LDFLAGS_STATIC="$LDFLAGS_STATIC $HARDEN_LDFLAGS"
5036 LDFLAGS_SHLIB="$LDFLAGS_SHLIB $HARDEN_LDFLAGS"
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling hardening support" >&5
5038 $as_echo "Enabling hardening support" >&6; }
5048 # Check whether --enable-jbd-debug was given.
5049 if test "${enable_jbd_debug+set}" = set; then :
5050 enableval=$enable_jbd_debug; if test "$enableval" = "no"
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
5053 $as_echo "Disabling journal debugging" >&6; }
5056 $as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
5059 $as_echo "Enabling journal debugging" >&6; }
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
5064 $as_echo "Disabling journal debugging by default" >&6; }
5068 # Check whether --enable-blkid-debug was given.
5069 if test "${enable_blkid_debug+set}" = set; then :
5070 enableval=$enable_blkid_debug; if test "$enableval" = "no"
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
5073 $as_echo "Disabling blkid debugging" >&6; }
5076 $as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
5079 $as_echo "Enabling blkid debugging" >&6; }
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
5084 $as_echo "Disabling blkid debugging by default" >&6; }
5088 # Check whether --enable-testio-debug was given.
5089 if test "${enable_testio_debug+set}" = set; then :
5090 enableval=$enable_testio_debug;
5091 if test "$enableval" = "no"
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
5094 $as_echo "Disabling testio debugging" >&6; }
5098 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
5101 $as_echo "Enabling testio debugging" >&6; }
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
5106 $as_echo "Enabling testio debugging by default" >&6; }
5107 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
5121 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5122 if test -n "$ac_tool_prefix"; then
5123 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5124 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5126 $as_echo_n "checking for $ac_word... " >&6; }
5127 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5128 $as_echo_n "(cached) " >&6
5132 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5139 test -z "$as_dir" && as_dir=.
5140 for ac_exec_ext in '' $ac_executable_extensions; do
5141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5142 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5153 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5154 if test -n "$PKG_CONFIG"; then
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5156 $as_echo "$PKG_CONFIG" >&6; }
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5159 $as_echo "no" >&6; }
5164 if test -z "$ac_cv_path_PKG_CONFIG"; then
5165 ac_pt_PKG_CONFIG=$PKG_CONFIG
5166 # Extract the first word of "pkg-config", so it can be a program name with args.
5167 set dummy pkg-config; ac_word=$2
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5169 $as_echo_n "checking for $ac_word... " >&6; }
5170 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5171 $as_echo_n "(cached) " >&6
5173 case $ac_pt_PKG_CONFIG in
5175 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5182 test -z "$as_dir" && as_dir=.
5183 for ac_exec_ext in '' $ac_executable_extensions; do
5184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5185 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5196 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5197 if test -n "$ac_pt_PKG_CONFIG"; then
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5199 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5202 $as_echo "no" >&6; }
5205 if test "x$ac_pt_PKG_CONFIG" = x; then
5208 case $cross_compiling:$ac_tool_warned in
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5211 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5212 ac_tool_warned=yes ;;
5214 PKG_CONFIG=$ac_pt_PKG_CONFIG
5217 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5221 if test -n "$PKG_CONFIG"; then
5222 _pkg_min_version=0.9.0
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5224 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5225 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5227 $as_echo "yes" >&6; }
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5230 $as_echo "no" >&6; }
5239 DEPPROFILED_LIBUUID=
5241 # Check whether --enable-libuuid was given.
5242 if test "${enable_libuuid+set}" = set; then :
5243 enableval=$enable_libuuid; if test "$enableval" = "no"
5245 if test -z "$PKG_CONFIG"; then
5246 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
5250 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
5251 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
5252 $as_echo_n "(cached) " >&6
5254 ac_check_lib_save_LIBS=$LIBS
5256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5257 /* end confdefs.h. */
5259 /* Override any GCC internal prototype to avoid an error.
5260 Use char because int might match the return type of a GCC
5261 builtin and then its argument prototype would still apply. */
5265 char uuid_generate ();
5269 return uuid_generate ();
5274 if ac_fn_c_try_link "$LINENO"; then :
5275 ac_cv_lib_uuid_uuid_generate=yes
5277 ac_cv_lib_uuid_uuid_generate=no
5279 rm -f core conftest.err conftest.$ac_objext \
5280 conftest$ac_exeext conftest.$ac_ext
5281 LIBS=$ac_check_lib_save_LIBS
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
5284 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
5285 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
5286 LIBUUID=`$PKG_CONFIG --libs uuid`;
5287 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5289 as_fn_error $? "external uuid library not found" "$LINENO" 5
5292 PROFILED_LIBUUID=$LIBUUID
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
5295 $as_echo "Disabling private uuid library" >&6; }
5297 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5299 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5300 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5301 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5302 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
5304 $as_echo "Enabling private uuid library" >&6; }
5308 if test -n "$PKG_CONFIG"; then
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
5310 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
5311 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
5312 $as_echo_n "(cached) " >&6
5314 ac_check_lib_save_LIBS=$LIBS
5316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5317 /* end confdefs.h. */
5319 /* Override any GCC internal prototype to avoid an error.
5320 Use char because int might match the return type of a GCC
5321 builtin and then its argument prototype would still apply. */
5325 char uuid_generate ();
5329 return uuid_generate ();
5334 if ac_fn_c_try_link "$LINENO"; then :
5335 ac_cv_lib_uuid_uuid_generate=yes
5337 ac_cv_lib_uuid_uuid_generate=no
5339 rm -f core conftest.err conftest.$ac_objext \
5340 conftest$ac_exeext conftest.$ac_ext
5341 LIBS=$ac_check_lib_save_LIBS
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
5344 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
5345 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
5346 LIBUUID=`$PKG_CONFIG --libs uuid`;
5347 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5351 if test -n "$LIBUUID"; then
5352 PROFILED_LIBUUID=$LIBUUID
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system uuid by default" >&5
5355 $as_echo "Using system uuid by default" >&6; }
5357 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5359 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5360 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5361 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5362 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
5364 $as_echo "Enabling private uuid library by default" >&6; }
5383 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5384 if test -n "$ac_tool_prefix"; then
5385 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5386 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5388 $as_echo_n "checking for $ac_word... " >&6; }
5389 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5390 $as_echo_n "(cached) " >&6
5394 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5401 test -z "$as_dir" && as_dir=.
5402 for ac_exec_ext in '' $ac_executable_extensions; do
5403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5404 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5415 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5416 if test -n "$PKG_CONFIG"; then
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5418 $as_echo "$PKG_CONFIG" >&6; }
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5421 $as_echo "no" >&6; }
5426 if test -z "$ac_cv_path_PKG_CONFIG"; then
5427 ac_pt_PKG_CONFIG=$PKG_CONFIG
5428 # Extract the first word of "pkg-config", so it can be a program name with args.
5429 set dummy pkg-config; ac_word=$2
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5431 $as_echo_n "checking for $ac_word... " >&6; }
5432 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5433 $as_echo_n "(cached) " >&6
5435 case $ac_pt_PKG_CONFIG in
5437 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5444 test -z "$as_dir" && as_dir=.
5445 for ac_exec_ext in '' $ac_executable_extensions; do
5446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5447 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5458 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5459 if test -n "$ac_pt_PKG_CONFIG"; then
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5461 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5464 $as_echo "no" >&6; }
5467 if test "x$ac_pt_PKG_CONFIG" = x; then
5470 case $cross_compiling:$ac_tool_warned in
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5473 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5474 ac_tool_warned=yes ;;
5476 PKG_CONFIG=$ac_pt_PKG_CONFIG
5479 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5483 if test -n "$PKG_CONFIG"; then
5484 _pkg_min_version=0.9.0
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5486 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5487 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5489 $as_echo "yes" >&6; }
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5492 $as_echo "no" >&6; }
5501 DEPPROFILED_LIBBLKID=
5504 # Check whether --enable-libblkid was given.
5505 if test "${enable_libblkid+set}" = set; then :
5506 enableval=$enable_libblkid; if test "$enableval" = "no"
5508 if test -z "$PKG_CONFIG"; then
5509 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5513 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5514 if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
5515 $as_echo_n "(cached) " >&6
5517 ac_check_lib_save_LIBS=$LIBS
5518 LIBS="-lblkid -luuid $LIBS"
5519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5520 /* end confdefs.h. */
5522 /* Override any GCC internal prototype to avoid an error.
5523 Use char because int might match the return type of a GCC
5524 builtin and then its argument prototype would still apply. */
5528 char blkid_get_cache ();
5532 return blkid_get_cache ();
5537 if ac_fn_c_try_link "$LINENO"; then :
5538 ac_cv_lib_blkid_blkid_get_cache=yes
5540 ac_cv_lib_blkid_blkid_get_cache=no
5542 rm -f core conftest.err conftest.$ac_objext \
5543 conftest$ac_exeext conftest.$ac_ext
5544 LIBS=$ac_check_lib_save_LIBS
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5547 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5548 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
5549 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5550 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5552 as_fn_error $? "external blkid library not found" "$LINENO" 5
5556 PROFILED_LIBBLKID=$LIBBLKID
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
5558 $as_echo "Disabling private blkid library" >&6; }
5560 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5561 DEPLIBBLKID=$LIBBLKID
5562 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5563 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5564 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5565 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5566 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
5569 $as_echo "Enabling private blkid library" >&6; }
5573 if test -n "$PKG_CONFIG"; then
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5575 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5576 if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
5577 $as_echo_n "(cached) " >&6
5579 ac_check_lib_save_LIBS=$LIBS
5580 LIBS="-lblkid $LIBS"
5581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5582 /* end confdefs.h. */
5584 /* Override any GCC internal prototype to avoid an error.
5585 Use char because int might match the return type of a GCC
5586 builtin and then its argument prototype would still apply. */
5590 char blkid_get_cache ();
5594 return blkid_get_cache ();
5599 if ac_fn_c_try_link "$LINENO"; then :
5600 ac_cv_lib_blkid_blkid_get_cache=yes
5602 ac_cv_lib_blkid_blkid_get_cache=no
5604 rm -f core conftest.err conftest.$ac_objext \
5605 conftest$ac_exeext conftest.$ac_ext
5606 LIBS=$ac_check_lib_save_LIBS
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5609 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5610 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
5611 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5612 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5616 if test -n "$LIBBLKID"; then
5618 PROFILED_LIBBLKID=$LIBBLKID
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system blkid library by default" >&5
5620 $as_echo "Using system blkid library by default" >&6; }
5622 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5623 DEPLIBBLKID=$LIBBLKID
5624 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5625 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5626 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5627 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5628 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
5631 $as_echo "Enabling private blkid library by default" >&6; }
5644 # Check whether --enable-backtrace was given.
5645 if test "${enable_backtrace+set}" = set; then :
5646 enableval=$enable_backtrace; if test "$enableval" = "no"
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5
5649 $as_echo "Disabling use of backtrace" >&6; }
5650 $as_echo "#define DISABLE_BACKTRACE 1" >>confdefs.h
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5
5654 $as_echo "Enabling use of backtrace" >&6; }
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5
5659 $as_echo "Enabling use of backtrace by default" >&6; }
5663 # Check whether --enable-debugfs was given.
5664 if test "${enable_debugfs+set}" = set; then :
5665 enableval=$enable_debugfs; if test "$enableval" = "no"
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
5668 $as_echo "Disabling debugfs support" >&6; }
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
5673 $as_echo "Enabling debugfs support" >&6; }
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
5678 $as_echo "Enabling debugfs support by default" >&6; }
5684 # Check whether --enable-imager was given.
5685 if test "${enable_imager+set}" = set; then :
5686 enableval=$enable_imager; if test "$enableval" = "no"
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
5689 $as_echo "Disabling e2image support" >&6; }
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
5694 $as_echo "Enabling e2image support" >&6; }
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
5699 $as_echo "Enabling e2image support by default" >&6; }
5705 # Check whether --enable-resizer was given.
5706 if test "${enable_resizer+set}" = set; then :
5707 enableval=$enable_resizer; if test "$enableval" = "no"
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
5710 $as_echo "Disabling e2resize support" >&6; }
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
5715 $as_echo "Enabling e2resize support" >&6; }
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
5720 $as_echo "Enabling e2resize support by default" >&6; }
5726 # Check whether --enable-defrag was given.
5727 if test "${enable_defrag+set}" = set; then :
5728 enableval=$enable_defrag; if test "$enableval" = "no"
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5731 $as_echo "Disabling e4defrag support" >&6; }
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5736 $as_echo "Enabling e4defrag support" >&6; }
5740 if test -z "$WITH_DIET_LIBC"
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
5743 $as_echo "Enabling e4defrag support by default" >&6; }
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support by default" >&5
5747 $as_echo "Disabling e4defrag support by default" >&6; }
5754 # Check whether --enable-fsck was given.
5755 if test "${enable_fsck+set}" = set; then :
5756 enableval=$enable_fsck; if test "$enableval" = "no"
5758 FSCK_PROG='' FSCK_MAN=''
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
5760 $as_echo "Not building fsck wrapper" >&6; }
5762 FSCK_PROG=fsck FSCK_MAN=fsck.8
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
5764 $as_echo "Building fsck wrapper" >&6; }
5770 FSCK_PROG='' FSCK_MAN=''
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
5772 $as_echo "Not building fsck wrapper by default" >&6; }
5775 FSCK_PROG=fsck FSCK_MAN=fsck.8
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
5777 $as_echo "Building fsck wrapper by default" >&6; }
5784 # Check whether --enable-e2initrd-helper was given.
5785 if test "${enable_e2initrd_helper+set}" = set; then :
5786 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
5788 E2INITRD_PROG='' E2INITRD_MAN=''
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
5790 $as_echo "Not building e2initrd helper" >&6; }
5792 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
5794 $as_echo "Building e2initrd helper" >&6; }
5798 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
5800 $as_echo "Building e2initrd helper by default" >&6; }
5806 # Check whether --enable-tls was given.
5807 if test "${enable_tls+set}" = set; then :
5808 enableval=$enable_tls; if test "$enableval" = "no"
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
5812 $as_echo "Disabling thread local support" >&6; }
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
5816 $as_echo "Enabling thread local support" >&6; }
5820 if test -n "$WITH_DIET_LIBC"
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5
5824 $as_echo "Diet libc does not support thread local support" >&6; }
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
5828 $as_echo "Try using thread local support by default" >&6; }
5833 if test "$try_tls" = "yes"
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
5837 $as_echo_n "checking for thread local storage (TLS) class... " >&6; }
5838 if ${ac_cv_tls+:} false; then :
5839 $as_echo_n "(cached) " >&6
5842 ax_tls_keywords="__thread __declspec(thread) none"
5843 for ax_tls_keyword in $ax_tls_keywords; do
5844 case $ax_tls_keyword in
5845 none) ac_cv_tls=none ; break ;;
5847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5848 /* end confdefs.h. */
5852 static $ax_tls_keyword int bar;
5863 if ac_fn_c_try_compile "$LINENO"; then :
5864 ac_cv_tls=$ax_tls_keyword ; break
5869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5876 if test "$ac_cv_tls" != "none"; then
5878 cat >>confdefs.h <<_ACEOF
5879 #define TLS $ac_cv_tls
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
5884 $as_echo "$ac_cv_tls" >&6; }
5888 # Check whether --enable-uuidd was given.
5889 if test "${enable_uuidd+set}" = set; then :
5890 enableval=$enable_uuidd; if test "$enableval" = "no"
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
5893 $as_echo "Not building uuidd" >&6; }
5896 $as_echo "#define USE_UUIDD 1" >>confdefs.h
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
5900 $as_echo "Building uuidd" >&6; }
5904 $as_echo "#define USE_UUIDD 1" >>confdefs.h
5906 if test -z "$UUID_CMT"
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
5910 $as_echo "Building uuidd by default" >&6; }
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling uuidd by default" >&5
5914 $as_echo "Disabling uuidd by default" >&6; }
5921 # Check whether --enable-mmp was given.
5922 if test "${enable_mmp+set}" = set; then :
5923 enableval=$enable_mmp; if test "$enableval" = "no"
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling mmp support" >&5
5926 $as_echo "Disabling mmp support" >&6; }
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support" >&5
5929 $as_echo "Enabling mmp support" >&6; }
5930 $as_echo "#define CONFIG_MMP 1" >>confdefs.h
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
5936 $as_echo "Enabling mmp support by default" >&6; }
5937 $as_echo "#define CONFIG_MMP 1" >>confdefs.h
5943 # Check whether --enable-bmap-stats was given.
5944 if test "${enable_bmap_stats+set}" = set; then :
5945 enableval=$enable_bmap_stats; if test "$enableval" = "no"
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling bitmap statistics support" >&5
5948 $as_echo "Disabling bitmap statistics support" >&6; }
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support" >&5
5951 $as_echo "Enabling bitmap statistics support" >&6; }
5952 $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support by default" >&5
5958 $as_echo "Enabling bitmap statistics support by default" >&6; }
5959 $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
5965 # Check whether --enable-bmap-stats-ops was given.
5966 if test "${enable_bmap_stats_ops+set}" = set; then :
5967 enableval=$enable_bmap_stats_ops; if test "$enableval" = "no"
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics" >&5
5970 $as_echo "Disabling additional bitmap statistics" >&6; }
5972 if test "x${enable_bmap_stats}" = "xno"; then :
5973 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5974 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5975 as_fn_error $? "Error --enable-bmap-stats-ops requires bmap-stats
5976 See \`config.log' for more details" "$LINENO" 5; }
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling additional bitmap statistics" >&5
5980 $as_echo "Enabling additional bitmap statistics" >&6; }
5981 $as_echo "#define ENABLE_BMAP_STATS_OPS 1" >>confdefs.h
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics by default" >&5
5987 $as_echo "Disabling additional bitmap statistics by default" >&6; }
5991 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
5993 GETTEXT_PACKAGE=e2fsprogs
5995 VERSION="$E2FSPROGS_VERSION"
5998 cat >>confdefs.h <<_ACEOF
5999 #define PACKAGE "$PACKAGE"
6003 cat >>confdefs.h <<_ACEOF
6004 #define VERSION "$VERSION"
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6012 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6014 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6015 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6016 $as_echo_n "(cached) " >&6
6018 cat >conftest.make <<\_ACEOF
6021 @echo '@@@%%%=$(MAKE)=@@@%%%'
6023 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6024 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6026 eval ac_cv_prog_make_${ac_make}_set=yes;;
6028 eval ac_cv_prog_make_${ac_make}_set=no;;
6032 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6034 $as_echo "yes" >&6; }
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6038 $as_echo "no" >&6; }
6039 SET_MAKE="MAKE=${MAKE-make}"
6042 # Find a good install program. We prefer a C program (faster),
6043 # so one script is as good as another. But avoid the broken or
6044 # incompatible versions:
6045 # SysV /etc/install, /usr/sbin/install
6046 # SunOS /usr/etc/install
6047 # IRIX /sbin/install
6049 # AmigaOS /C/install, which installs bootblocks on floppy discs
6050 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6051 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6052 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6053 # OS/2's system install, which has a completely different semantic
6054 # ./install, which can be erroneously created by make from ./install.sh.
6055 # Reject install programs that cannot install multiple files.
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
6057 $as_echo_n "checking for a BSD-compatible install... " >&6; }
6058 if test -z "$INSTALL"; then
6059 if ${ac_cv_path_install+:} false; then :
6060 $as_echo_n "(cached) " >&6
6062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6066 test -z "$as_dir" && as_dir=.
6067 # Account for people who put trailing slashes in PATH elements.
6068 case $as_dir/ in #((
6069 ./ | .// | /[cC]/* | \
6070 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6071 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
6074 # OSF1 and SCO ODT 3.0 have their own names for install.
6075 # Don't use installbsd from OSF since it installs stuff as root
6077 for ac_prog in ginstall scoinst install; do
6078 for ac_exec_ext in '' $ac_executable_extensions; do
6079 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6080 if test $ac_prog = install &&
6081 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6082 # AIX install. It has an incompatible calling convention.
6084 elif test $ac_prog = install &&
6085 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6086 # program-specific install script used by HP pwplus--don't use.
6089 rm -rf conftest.one conftest.two conftest.dir
6090 echo one > conftest.one
6091 echo two > conftest.two
6093 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6094 test -s conftest.one && test -s conftest.two &&
6095 test -s conftest.dir/conftest.one &&
6096 test -s conftest.dir/conftest.two
6098 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6111 rm -rf conftest.one conftest.two conftest.dir
6114 if test "${ac_cv_path_install+set}" = set; then
6115 INSTALL=$ac_cv_path_install
6117 # As a last resort, use the slow shell script. Don't cache a
6118 # value for INSTALL within a source directory, because that will
6119 # break other packages using the cache if that directory is
6120 # removed, or if the value is a relative name.
6121 INSTALL=$ac_install_sh
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
6125 $as_echo "$INSTALL" >&6; }
6127 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6128 # It thinks the first close brace ends the variable substitution.
6129 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6131 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6133 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
6136 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6137 if test -z "$MKDIR_P"; then
6138 if ${ac_cv_path_mkdir+:} false; then :
6139 $as_echo_n "(cached) " >&6
6141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6142 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6145 test -z "$as_dir" && as_dir=.
6146 for ac_prog in mkdir gmkdir; do
6147 for ac_exec_ext in '' $ac_executable_extensions; do
6148 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
6149 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6150 'mkdir (GNU coreutils) '* | \
6151 'mkdir (coreutils) '* | \
6152 'mkdir (fileutils) '4.1*)
6153 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6163 test -d ./--version && rmdir ./--version
6164 if test "${ac_cv_path_mkdir+set}" = set; then
6165 MKDIR_P="$ac_cv_path_mkdir -p"
6167 # As a last resort, use the slow shell script. Don't cache a
6168 # value for MKDIR_P within a source directory, because that will
6169 # break other packages using the cache if that directory is
6170 # removed, or if the value is a relative name.
6171 MKDIR_P="$ac_install_sh -d"
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
6175 $as_echo "$MKDIR_P" >&6; }
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6178 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6179 if ${ac_cv_path_SED+:} false; then :
6180 $as_echo_n "(cached) " >&6
6182 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6183 for ac_i in 1 2 3 4 5 6 7; do
6184 ac_script="$ac_script$as_nl$ac_script"
6186 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6187 { ac_script=; unset ac_script;}
6188 if test -z "$SED"; then
6189 ac_path_SED_found=false
6190 # Loop through the user's path and test for each of PROGNAME-LIST
6191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6195 test -z "$as_dir" && as_dir=.
6196 for ac_prog in sed gsed; do
6197 for ac_exec_ext in '' $ac_executable_extensions; do
6198 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6199 as_fn_executable_p "$ac_path_SED" || continue
6200 # Check for GNU ac_path_SED and select it if it is found.
6201 # Check for GNU $ac_path_SED
6202 case `"$ac_path_SED" --version 2>&1` in
6204 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6207 $as_echo_n 0123456789 >"conftest.in"
6210 cat "conftest.in" "conftest.in" >"conftest.tmp"
6211 mv "conftest.tmp" "conftest.in"
6212 cp "conftest.in" "conftest.nl"
6213 $as_echo '' >> "conftest.nl"
6214 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6215 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6216 as_fn_arith $ac_count + 1 && ac_count=$as_val
6217 if test $ac_count -gt ${ac_path_SED_max-0}; then
6218 # Best one so far, save it but keep looking for a better one
6219 ac_cv_path_SED="$ac_path_SED"
6220 ac_path_SED_max=$ac_count
6222 # 10*(2^10) chars as input seems more than enough
6223 test $ac_count -gt 10 && break
6225 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6228 $ac_path_SED_found && break 3
6233 if test -z "$ac_cv_path_SED"; then
6234 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6242 $as_echo "$ac_cv_path_SED" >&6; }
6243 SED="$ac_cv_path_SED"
6247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6248 $as_echo_n "checking whether NLS is requested... " >&6; }
6249 # Check whether --enable-nls was given.
6250 if test "${enable_nls+set}" = set; then :
6251 enableval=$enable_nls; USE_NLS=$enableval
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6257 $as_echo "$USE_NLS" >&6; }
6262 GETTEXT_MACRO_VERSION=0.18
6267 # Prepare PATH_SEPARATOR.
6268 # The user is always right.
6269 if test "${PATH_SEPARATOR+set}" != set; then
6270 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6271 # contains only /bin. Note that ksh looks also at the FPATH variable,
6272 # so we have to set that as well for the test.
6274 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6275 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6276 || PATH_SEPARATOR=';'
6280 # Find out how to test for executable files. Don't use a zero-byte file,
6281 # as systems may use methods other than mode bits to determine executability.
6282 cat >conf$$.file <<_ASEOF
6286 chmod +x conf$$.file
6287 if test -x conf$$.file >/dev/null 2>&1; then
6288 ac_executable_p="test -x"
6290 ac_executable_p="test -f"
6294 # Extract the first word of "msgfmt", so it can be a program name with args.
6295 set dummy msgfmt; ac_word=$2
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6297 $as_echo_n "checking for $ac_word... " >&6; }
6298 if ${ac_cv_path_MSGFMT+:} false; then :
6299 $as_echo_n "(cached) " >&6
6303 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6306 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6307 for ac_dir in $PATH; do
6309 test -z "$ac_dir" && ac_dir=.
6310 for ac_exec_ext in '' $ac_executable_extensions; do
6311 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6312 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6313 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
6314 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6315 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
6322 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
6326 MSGFMT="$ac_cv_path_MSGFMT"
6327 if test "$MSGFMT" != ":"; then
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
6329 $as_echo "$MSGFMT" >&6; }
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6332 $as_echo "no" >&6; }
6335 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6336 set dummy gmsgfmt; ac_word=$2
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6338 $as_echo_n "checking for $ac_word... " >&6; }
6339 if ${ac_cv_path_GMSGFMT+:} false; then :
6340 $as_echo_n "(cached) " >&6
6344 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6351 test -z "$as_dir" && as_dir=.
6352 for ac_exec_ext in '' $ac_executable_extensions; do
6353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6354 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
6355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6362 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6366 GMSGFMT=$ac_cv_path_GMSGFMT
6367 if test -n "$GMSGFMT"; then
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
6369 $as_echo "$GMSGFMT" >&6; }
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6372 $as_echo "no" >&6; }
6377 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6378 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
6379 *) MSGFMT_015=$MSGFMT ;;
6382 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6383 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
6384 *) GMSGFMT_015=$GMSGFMT ;;
6389 # Prepare PATH_SEPARATOR.
6390 # The user is always right.
6391 if test "${PATH_SEPARATOR+set}" != set; then
6392 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6393 # contains only /bin. Note that ksh looks also at the FPATH variable,
6394 # so we have to set that as well for the test.
6396 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6397 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6398 || PATH_SEPARATOR=';'
6402 # Find out how to test for executable files. Don't use a zero-byte file,
6403 # as systems may use methods other than mode bits to determine executability.
6404 cat >conf$$.file <<_ASEOF
6408 chmod +x conf$$.file
6409 if test -x conf$$.file >/dev/null 2>&1; then
6410 ac_executable_p="test -x"
6412 ac_executable_p="test -f"
6416 # Extract the first word of "xgettext", so it can be a program name with args.
6417 set dummy xgettext; ac_word=$2
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6419 $as_echo_n "checking for $ac_word... " >&6; }
6420 if ${ac_cv_path_XGETTEXT+:} false; then :
6421 $as_echo_n "(cached) " >&6
6425 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6428 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6429 for ac_dir in $PATH; do
6431 test -z "$ac_dir" && ac_dir=.
6432 for ac_exec_ext in '' $ac_executable_extensions; do
6433 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6434 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6435 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
6436 (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
6437 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6444 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6448 XGETTEXT="$ac_cv_path_XGETTEXT"
6449 if test "$XGETTEXT" != ":"; then
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
6451 $as_echo "$XGETTEXT" >&6; }
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6454 $as_echo "no" >&6; }
6459 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6460 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
6461 *) XGETTEXT_015=$XGETTEXT ;;
6466 # Prepare PATH_SEPARATOR.
6467 # The user is always right.
6468 if test "${PATH_SEPARATOR+set}" != set; then
6469 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6470 # contains only /bin. Note that ksh looks also at the FPATH variable,
6471 # so we have to set that as well for the test.
6473 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6474 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6475 || PATH_SEPARATOR=';'
6479 # Find out how to test for executable files. Don't use a zero-byte file,
6480 # as systems may use methods other than mode bits to determine executability.
6481 cat >conf$$.file <<_ASEOF
6485 chmod +x conf$$.file
6486 if test -x conf$$.file >/dev/null 2>&1; then
6487 ac_executable_p="test -x"
6489 ac_executable_p="test -f"
6493 # Extract the first word of "msgmerge", so it can be a program name with args.
6494 set dummy msgmerge; ac_word=$2
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6496 $as_echo_n "checking for $ac_word... " >&6; }
6497 if ${ac_cv_path_MSGMERGE+:} false; then :
6498 $as_echo_n "(cached) " >&6
6502 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6505 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6506 for ac_dir in $PATH; do
6508 test -z "$ac_dir" && ac_dir=.
6509 for ac_exec_ext in '' $ac_executable_extensions; do
6510 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6511 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6512 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
6513 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6520 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6524 MSGMERGE="$ac_cv_path_MSGMERGE"
6525 if test "$MSGMERGE" != ":"; then
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
6527 $as_echo "$MSGMERGE" >&6; }
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6530 $as_echo "no" >&6; }
6534 test -n "$localedir" || localedir='${datadir}/locale'
6537 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
6540 ac_config_commands="$ac_config_commands po-directories"
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
6545 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
6546 if ${ac_cv_gnu_library_2+:} false; then :
6547 $as_echo_n "(cached) " >&6
6549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6550 /* end confdefs.h. */
6552 #include <features.h>
6553 #ifdef __GNU_LIBRARY__
6554 #if (__GLIBC__ >= 2) && !defined __UCLIBC__
6560 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6561 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
6562 ac_cv_gnu_library_2=yes
6564 ac_cv_gnu_library_2=no
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
6572 $as_echo "$ac_cv_gnu_library_2" >&6; }
6574 GLIBC2="$ac_cv_gnu_library_2"
6577 if test -n "$ac_tool_prefix"; then
6578 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6579 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6581 $as_echo_n "checking for $ac_word... " >&6; }
6582 if ${ac_cv_prog_RANLIB+:} false; then :
6583 $as_echo_n "(cached) " >&6
6585 if test -n "$RANLIB"; then
6586 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6592 test -z "$as_dir" && as_dir=.
6593 for ac_exec_ext in '' $ac_executable_extensions; do
6594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6595 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6605 RANLIB=$ac_cv_prog_RANLIB
6606 if test -n "$RANLIB"; then
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6608 $as_echo "$RANLIB" >&6; }
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6611 $as_echo "no" >&6; }
6616 if test -z "$ac_cv_prog_RANLIB"; then
6617 ac_ct_RANLIB=$RANLIB
6618 # Extract the first word of "ranlib", so it can be a program name with args.
6619 set dummy ranlib; ac_word=$2
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6621 $as_echo_n "checking for $ac_word... " >&6; }
6622 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6623 $as_echo_n "(cached) " >&6
6625 if test -n "$ac_ct_RANLIB"; then
6626 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6632 test -z "$as_dir" && as_dir=.
6633 for ac_exec_ext in '' $ac_executable_extensions; do
6634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6635 ac_cv_prog_ac_ct_RANLIB="ranlib"
6636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6645 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6646 if test -n "$ac_ct_RANLIB"; then
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6648 $as_echo "$ac_ct_RANLIB" >&6; }
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6651 $as_echo "no" >&6; }
6654 if test "x$ac_ct_RANLIB" = x; then
6657 case $cross_compiling:$ac_tool_warned in
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6660 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6661 ac_tool_warned=yes ;;
6663 RANLIB=$ac_ct_RANLIB
6666 RANLIB="$ac_cv_prog_RANLIB"
6673 if test -n "$GCC"; then
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
6675 $as_echo_n "checking whether the -Werror option is usable... " >&6; }
6676 if ${gl_cv_cc_vis_werror+:} false; then :
6677 $as_echo_n "(cached) " >&6
6680 gl_save_CFLAGS="$CFLAGS"
6681 CFLAGS="$CFLAGS -Werror"
6682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6683 /* end confdefs.h. */
6693 if ac_fn_c_try_compile "$LINENO"; then :
6694 gl_cv_cc_vis_werror=yes
6696 gl_cv_cc_vis_werror=no
6698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6699 CFLAGS="$gl_save_CFLAGS"
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
6703 $as_echo "$gl_cv_cc_vis_werror" >&6; }
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
6705 $as_echo_n "checking for simple visibility declarations... " >&6; }
6706 if ${gl_cv_cc_visibility+:} false; then :
6707 $as_echo_n "(cached) " >&6
6710 gl_save_CFLAGS="$CFLAGS"
6711 CFLAGS="$CFLAGS -fvisibility=hidden"
6712 if test $gl_cv_cc_vis_werror = yes; then
6713 CFLAGS="$CFLAGS -Werror"
6715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6716 /* end confdefs.h. */
6717 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
6718 extern __attribute__((__visibility__("default"))) int exportedvar;
6719 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
6720 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
6721 void dummyfunc (void) {}
6731 if ac_fn_c_try_compile "$LINENO"; then :
6732 gl_cv_cc_visibility=yes
6734 gl_cv_cc_visibility=no
6736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6737 CFLAGS="$gl_save_CFLAGS"
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
6741 $as_echo "$gl_cv_cc_visibility" >&6; }
6742 if test $gl_cv_cc_visibility = yes; then
6743 CFLAG_VISIBILITY="-fvisibility=hidden"
6750 cat >>confdefs.h <<_ACEOF
6751 #define HAVE_VISIBILITY $HAVE_VISIBILITY
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6756 $as_echo_n "checking for inline... " >&6; }
6757 if ${ac_cv_c_inline+:} false; then :
6758 $as_echo_n "(cached) " >&6
6761 for ac_kw in inline __inline__ __inline; do
6762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6763 /* end confdefs.h. */
6766 static $ac_kw foo_t static_foo () {return 0; }
6767 $ac_kw foo_t foo () {return 0; }
6771 if ac_fn_c_try_compile "$LINENO"; then :
6772 ac_cv_c_inline=$ac_kw
6774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6775 test "$ac_cv_c_inline" != no && break
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6780 $as_echo "$ac_cv_c_inline" >&6; }
6782 case $ac_cv_c_inline in
6785 case $ac_cv_c_inline in
6787 *) ac_val=$ac_cv_c_inline;;
6789 cat >>confdefs.h <<_ACEOF
6791 #define inline $ac_val
6797 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6798 if test "x$ac_cv_type_size_t" = xyes; then :
6802 cat >>confdefs.h <<_ACEOF
6803 #define size_t unsigned int
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
6810 $as_echo_n "checking for stdint.h... " >&6; }
6811 if ${gl_cv_header_stdint_h+:} false; then :
6812 $as_echo_n "(cached) " >&6
6814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6815 /* end confdefs.h. */
6816 #include <sys/types.h>
6821 uintmax_t i = (uintmax_t) -1; return !i;
6826 if ac_fn_c_try_compile "$LINENO"; then :
6827 gl_cv_header_stdint_h=yes
6829 gl_cv_header_stdint_h=no
6831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
6834 $as_echo "$gl_cv_header_stdint_h" >&6; }
6835 if test $gl_cv_header_stdint_h = yes; then
6837 cat >>confdefs.h <<_ACEOF
6838 #define HAVE_STDINT_H_WITH_UINTMAX 1
6843 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6844 # for constant arguments. Useless!
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6846 $as_echo_n "checking for working alloca.h... " >&6; }
6847 if ${ac_cv_working_alloca_h+:} false; then :
6848 $as_echo_n "(cached) " >&6
6850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6851 /* end confdefs.h. */
6856 char *p = (char *) alloca (2 * sizeof (int));
6862 if ac_fn_c_try_link "$LINENO"; then :
6863 ac_cv_working_alloca_h=yes
6865 ac_cv_working_alloca_h=no
6867 rm -f core conftest.err conftest.$ac_objext \
6868 conftest$ac_exeext conftest.$ac_ext
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6871 $as_echo "$ac_cv_working_alloca_h" >&6; }
6872 if test $ac_cv_working_alloca_h = yes; then
6874 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6879 $as_echo_n "checking for alloca... " >&6; }
6880 if ${ac_cv_func_alloca_works+:} false; then :
6881 $as_echo_n "(cached) " >&6
6883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6884 /* end confdefs.h. */
6886 # define alloca __builtin_alloca
6889 # include <malloc.h>
6890 # define alloca _alloca
6892 # ifdef HAVE_ALLOCA_H
6893 # include <alloca.h>
6898 # ifndef alloca /* predefined by HP cc +Olibcalls */
6899 void *alloca (size_t);
6909 char *p = (char *) alloca (1);
6915 if ac_fn_c_try_link "$LINENO"; then :
6916 ac_cv_func_alloca_works=yes
6918 ac_cv_func_alloca_works=no
6920 rm -f core conftest.err conftest.$ac_objext \
6921 conftest$ac_exeext conftest.$ac_ext
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6924 $as_echo "$ac_cv_func_alloca_works" >&6; }
6926 if test $ac_cv_func_alloca_works = yes; then
6928 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6931 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6932 # that cause trouble. Some versions do not even contain alloca or
6933 # contain a buggy version. If you still want to use their alloca,
6934 # use ar to extract alloca.o from them instead of compiling alloca.c.
6936 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6938 $as_echo "#define C_ALLOCA 1" >>confdefs.h
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6942 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6943 if ${ac_cv_os_cray+:} false; then :
6944 $as_echo_n "(cached) " >&6
6946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6947 /* end confdefs.h. */
6948 #if defined CRAY && ! defined CRAY2
6955 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6956 $EGREP "webecray" >/dev/null 2>&1; then :
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6965 $as_echo "$ac_cv_os_cray" >&6; }
6966 if test $ac_cv_os_cray = yes; then
6967 for ac_func in _getb67 GETB67 getb67; do
6968 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6969 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6970 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6972 cat >>confdefs.h <<_ACEOF
6973 #define CRAY_STACKSEG_END $ac_func
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6983 $as_echo_n "checking stack direction for C alloca... " >&6; }
6984 if ${ac_cv_c_stack_direction+:} false; then :
6985 $as_echo_n "(cached) " >&6
6987 if test "$cross_compiling" = yes; then :
6988 ac_cv_c_stack_direction=0
6990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6991 /* end confdefs.h. */
6992 $ac_includes_default
6994 find_stack_direction (int *addr, int depth)
6999 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7000 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7005 main (int argc, char **argv)
7007 return find_stack_direction (0, argc + !argv + 20) < 0;
7010 if ac_fn_c_try_run "$LINENO"; then :
7011 ac_cv_c_stack_direction=1
7013 ac_cv_c_stack_direction=-1
7015 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7016 conftest.$ac_objext conftest.beam conftest.$ac_ext
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7021 $as_echo "$ac_cv_c_stack_direction" >&6; }
7022 cat >>confdefs.h <<_ACEOF
7023 #define STACK_DIRECTION $ac_cv_c_stack_direction
7032 for ac_header in $ac_header_list
7034 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7035 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7037 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7038 cat >>confdefs.h <<_ACEOF
7039 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7053 for ac_func in getpagesize
7055 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7056 if test "x$ac_cv_func_getpagesize" = xyes; then :
7057 cat >>confdefs.h <<_ACEOF
7058 #define HAVE_GETPAGESIZE 1
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7065 $as_echo_n "checking for working mmap... " >&6; }
7066 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
7067 $as_echo_n "(cached) " >&6
7069 if test "$cross_compiling" = yes; then :
7070 ac_cv_func_mmap_fixed_mapped=no
7072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7073 /* end confdefs.h. */
7074 $ac_includes_default
7075 /* malloc might have been renamed as rpl_malloc. */
7078 /* Thanks to Mike Haertel and Jim Avera for this test.
7079 Here is a matrix of mmap possibilities:
7080 mmap private not fixed
7081 mmap private fixed at somewhere currently unmapped
7082 mmap private fixed at somewhere already mapped
7083 mmap shared not fixed
7084 mmap shared fixed at somewhere currently unmapped
7085 mmap shared fixed at somewhere already mapped
7086 For private mappings, we should verify that changes cannot be read()
7087 back from the file, nor mmap's back from the file at a different
7088 address. (There have been systems where private was not correctly
7089 implemented like the infamous i386 svr4.0, and systems where the
7090 VM page cache was not coherent with the file system buffer cache
7091 like early versions of FreeBSD and possibly contemporary NetBSD.)
7092 For shared mappings, we should conversely verify that changes get
7093 propagated back to all the places they're supposed to be.
7095 Grep wants private fixed already mapped.
7096 The main things grep needs to know about mmap are:
7097 * does it exist and is it safe to write into the mmap'd area
7098 * how to use it (BSD variants) */
7101 #include <sys/mman.h>
7103 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7107 /* This mess was copied from the GNU getpagesize.h. */
7108 #ifndef HAVE_GETPAGESIZE
7109 # ifdef _SC_PAGESIZE
7110 # define getpagesize() sysconf(_SC_PAGESIZE)
7111 # else /* no _SC_PAGESIZE */
7112 # ifdef HAVE_SYS_PARAM_H
7113 # include <sys/param.h>
7114 # ifdef EXEC_PAGESIZE
7115 # define getpagesize() EXEC_PAGESIZE
7116 # else /* no EXEC_PAGESIZE */
7118 # define getpagesize() NBPG * CLSIZE
7121 # endif /* no CLSIZE */
7122 # else /* no NBPG */
7124 # define getpagesize() NBPC
7125 # else /* no NBPC */
7127 # define getpagesize() PAGESIZE
7128 # endif /* PAGESIZE */
7129 # endif /* no NBPC */
7130 # endif /* no NBPG */
7131 # endif /* no EXEC_PAGESIZE */
7132 # else /* no HAVE_SYS_PARAM_H */
7133 # define getpagesize() 8192 /* punt totally */
7134 # endif /* no HAVE_SYS_PARAM_H */
7135 # endif /* no _SC_PAGESIZE */
7137 #endif /* no HAVE_GETPAGESIZE */
7142 char *data, *data2, *data3;
7147 pagesize = getpagesize ();
7149 /* First, make a file with some known garbage in it. */
7150 data = (char *) malloc (pagesize);
7153 for (i = 0; i < pagesize; ++i)
7154 *(data + i) = rand ();
7156 fd = creat ("conftest.mmap", 0600);
7159 if (write (fd, data, pagesize) != pagesize)
7163 /* Next, check that the tail of a page is zero-filled. File must have
7164 non-zero length, otherwise we risk SIGBUS for entire page. */
7165 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7169 if (write (fd2, cdata2, 1) != 1)
7171 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7172 if (data2 == MAP_FAILED)
7174 for (i = 0; i < pagesize; ++i)
7178 if (munmap (data2, pagesize))
7181 /* Next, try to mmap the file at a fixed address which already has
7182 something else allocated at it. If we can, also make sure that
7183 we see the same garbage. */
7184 fd = open ("conftest.mmap", O_RDWR);
7187 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7188 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7190 for (i = 0; i < pagesize; ++i)
7191 if (*(data + i) != *(data2 + i))
7194 /* Finally, make sure that changes to the mapped area do not
7195 percolate back to the file as seen by read(). (This is a bug on
7196 some variants of i386 svr4.0.) */
7197 for (i = 0; i < pagesize; ++i)
7198 *(data2 + i) = *(data2 + i) + 1;
7199 data3 = (char *) malloc (pagesize);
7202 if (read (fd, data3, pagesize) != pagesize)
7204 for (i = 0; i < pagesize; ++i)
7205 if (*(data + i) != *(data3 + i))
7211 if ac_fn_c_try_run "$LINENO"; then :
7212 ac_cv_func_mmap_fixed_mapped=yes
7214 ac_cv_func_mmap_fixed_mapped=no
7216 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7217 conftest.$ac_objext conftest.beam conftest.$ac_ext
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7222 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7223 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7225 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7228 rm -f conftest.mmap conftest.txt
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
7233 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
7234 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
7235 $as_echo_n "(cached) " >&6
7238 gt_cv_int_divbyzero_sigfpe=
7240 macos* | darwin[6-9]* | darwin[1-9][0-9]*)
7241 # On Mac OS X 10.2 or newer, just assume the same as when cross-
7242 # compiling. If we were to perform the real test, 1 Crash Report
7243 # dialog window would pop up.
7245 i[34567]86 | x86_64)
7246 gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
7250 if test -z "$gt_cv_int_divbyzero_sigfpe"; then
7251 if test "$cross_compiling" = yes; then :
7253 # Guess based on the CPU.
7255 alpha* | i[34567]86 | x86_64 | m68k | s390*)
7256 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7258 gt_cv_int_divbyzero_sigfpe="guessing no";;
7262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7263 /* end confdefs.h. */
7269 sigfpe_handler (int sig)
7271 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
7272 exit (sig != SIGFPE);
7282 signal (SIGFPE, sigfpe_handler);
7283 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
7284 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7285 signal (SIGTRAP, sigfpe_handler);
7287 /* Linux/SPARC yields signal SIGILL. */
7288 #if defined (__sparc__) && defined (__linux__)
7289 signal (SIGILL, sigfpe_handler);
7298 if ac_fn_c_try_run "$LINENO"; then :
7299 gt_cv_int_divbyzero_sigfpe=yes
7301 gt_cv_int_divbyzero_sigfpe=no
7303 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7304 conftest.$ac_objext conftest.beam conftest.$ac_ext
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
7311 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
7312 case "$gt_cv_int_divbyzero_sigfpe" in
7317 cat >>confdefs.h <<_ACEOF
7318 #define INTDIV0_RAISES_SIGFPE $value
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7324 $as_echo_n "checking for inttypes.h... " >&6; }
7325 if ${gl_cv_header_inttypes_h+:} false; then :
7326 $as_echo_n "(cached) " >&6
7328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7329 /* end confdefs.h. */
7331 #include <sys/types.h>
7332 #include <inttypes.h>
7337 uintmax_t i = (uintmax_t) -1; return !i;
7342 if ac_fn_c_try_compile "$LINENO"; then :
7343 gl_cv_header_inttypes_h=yes
7345 gl_cv_header_inttypes_h=no
7347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
7350 $as_echo "$gl_cv_header_inttypes_h" >&6; }
7351 if test $gl_cv_header_inttypes_h = yes; then
7353 cat >>confdefs.h <<_ACEOF
7354 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
7360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
7361 $as_echo_n "checking for unsigned long long int... " >&6; }
7362 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
7363 $as_echo_n "(cached) " >&6
7365 ac_cv_type_unsigned_long_long_int=yes
7366 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
7367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7368 /* end confdefs.h. */
7370 /* For now, do not test the preprocessor; as of 2007 there are too many
7371 implementations with broken preprocessors. Perhaps this can
7372 be revisited in 2012. In the meantime, code should not expect
7373 #if to work with literals wider than 32 bits. */
7374 /* Test literals. */
7375 long long int ll = 9223372036854775807ll;
7376 long long int nll = -9223372036854775807LL;
7377 unsigned long long int ull = 18446744073709551615ULL;
7378 /* Test constant expressions. */
7379 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
7381 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
7387 /* Test availability of runtime routines for shift and division. */
7388 long long int llmax = 9223372036854775807ll;
7389 unsigned long long int ullmax = 18446744073709551615ull;
7390 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
7391 | (llmax / ll) | (llmax % ll)
7392 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
7393 | (ullmax / ull) | (ullmax % ull));
7399 if ac_fn_c_try_link "$LINENO"; then :
7402 ac_cv_type_unsigned_long_long_int=no
7404 rm -f core conftest.err conftest.$ac_objext \
7405 conftest$ac_exeext conftest.$ac_ext
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
7409 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
7410 if test $ac_cv_type_unsigned_long_long_int = yes; then
7412 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
7419 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
7421 test $ac_cv_type_unsigned_long_long_int = yes \
7422 && ac_type='unsigned long long' \
7423 || ac_type='unsigned long'
7425 cat >>confdefs.h <<_ACEOF
7426 #define uintmax_t $ac_type
7431 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
7436 for ac_header in inttypes.h
7438 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
7439 if test "x$ac_cv_header_inttypes_h" = xyes; then :
7440 cat >>confdefs.h <<_ACEOF
7441 #define HAVE_INTTYPES_H 1
7448 if test $ac_cv_header_inttypes_h = yes; then
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
7450 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7451 if ${gt_cv_inttypes_pri_broken+:} false; then :
7452 $as_echo_n "(cached) " >&6
7455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7456 /* end confdefs.h. */
7458 #include <inttypes.h>
7471 if ac_fn_c_try_compile "$LINENO"; then :
7472 gt_cv_inttypes_pri_broken=no
7474 gt_cv_inttypes_pri_broken=yes
7476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
7480 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7482 if test "$gt_cv_inttypes_pri_broken" = yes; then
7484 cat >>confdefs.h <<_ACEOF
7485 #define PRI_MACROS_BROKEN 1
7499 # Check whether --enable-threads was given.
7500 if test "${enable_threads+set}" = set; then :
7501 enableval=$enable_threads; gl_use_threads=$enableval
7503 if test -n "$gl_use_threads_default"; then
7504 gl_use_threads="$gl_use_threads_default"
7507 osf*) gl_use_threads=no ;;
7510 1.[0-5].*) gl_use_threads=no ;;
7511 *) gl_use_threads=yes ;;
7514 *) gl_use_threads=yes ;;
7520 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7521 # For using <pthread.h>:
7524 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
7525 # groks <pthread.h>. cc also understands the flag -pthread, but
7526 # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
7527 # 2. putting a flag into CPPFLAGS that has an effect on the linker
7528 # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
7529 # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
7530 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
7533 # Some systems optimize for single-threaded programs by default, and
7534 # need special flags to disable these optimizations. For example, the
7535 # definition of 'errno' in <errno.h>.
7537 aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
7538 solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
7546 if test "X$prefix" = "XNONE"; then
7547 acl_final_prefix="$ac_default_prefix"
7549 acl_final_prefix="$prefix"
7551 if test "X$exec_prefix" = "XNONE"; then
7552 acl_final_exec_prefix='${prefix}'
7554 acl_final_exec_prefix="$exec_prefix"
7556 acl_save_prefix="$prefix"
7557 prefix="$acl_final_prefix"
7558 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7559 prefix="$acl_save_prefix"
7563 # Check whether --with-gnu-ld was given.
7564 if test "${with_gnu_ld+set}" = set; then :
7565 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7570 # Prepare PATH_SEPARATOR.
7571 # The user is always right.
7572 if test "${PATH_SEPARATOR+set}" != set; then
7573 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7574 # contains only /bin. Note that ksh looks also at the FPATH variable,
7575 # so we have to set that as well for the test.
7577 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7578 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7579 || PATH_SEPARATOR=';'
7584 if test "$GCC" = yes; then
7585 # Check if gcc -print-prog-name=ld gives a path.
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7587 $as_echo_n "checking for ld used by $CC... " >&6; }
7590 # gcc leaves a trailing carriage return which upsets mingw
7591 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7593 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7596 # Accept absolute paths.
7598 re_direlt='/[^/][^/]*/\.\./'
7599 # Canonicalize the pathname of ld
7600 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
7601 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
7602 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7604 test -z "$LD" && LD="$ac_prog"
7607 # If it fails, then pretend we aren't using GCC.
7611 # If it is relative, then search for the first ld in PATH.
7615 elif test "$with_gnu_ld" = yes; then
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7617 $as_echo_n "checking for GNU ld... " >&6; }
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7620 $as_echo_n "checking for non-GNU ld... " >&6; }
7622 if ${acl_cv_path_LD+:} false; then :
7623 $as_echo_n "(cached) " >&6
7625 if test -z "$LD"; then
7626 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7627 for ac_dir in $PATH; do
7629 test -z "$ac_dir" && ac_dir=.
7630 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7631 acl_cv_path_LD="$ac_dir/$ac_prog"
7632 # Check to see if the program is GNU ld. I'd rather use --version,
7633 # but apparently some variants of GNU ld only accept -v.
7634 # Break only if it was the GNU/non-GNU ld that we prefer.
7635 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
7636 *GNU* | *'with BFD'*)
7637 test "$with_gnu_ld" != no && break
7640 test "$with_gnu_ld" != yes && break
7647 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7651 LD="$acl_cv_path_LD"
7652 if test -n "$LD"; then
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7654 $as_echo "$LD" >&6; }
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7657 $as_echo "no" >&6; }
7659 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7661 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7662 if ${acl_cv_prog_gnu_ld+:} false; then :
7663 $as_echo_n "(cached) " >&6
7665 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7666 case `$LD -v 2>&1 </dev/null` in
7667 *GNU* | *'with BFD'*)
7668 acl_cv_prog_gnu_ld=yes
7671 acl_cv_prog_gnu_ld=no
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7676 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7677 with_gnu_ld=$acl_cv_prog_gnu_ld
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7683 $as_echo_n "checking for shared library run path origin... " >&6; }
7684 if ${acl_cv_rpath+:} false; then :
7685 $as_echo_n "(cached) " >&6
7688 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7689 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7696 $as_echo "$acl_cv_rpath" >&6; }
7698 acl_libext="$acl_cv_libext"
7699 acl_shlibext="$acl_cv_shlibext"
7700 acl_libname_spec="$acl_cv_libname_spec"
7701 acl_library_names_spec="$acl_cv_library_names_spec"
7702 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7703 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7704 acl_hardcode_direct="$acl_cv_hardcode_direct"
7705 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
7706 # Check whether --enable-rpath was given.
7707 if test "${enable_rpath+set}" = set; then :
7708 enableval=$enable_rpath; :
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
7721 $as_echo_n "checking for 64-bit host... " >&6; }
7722 if ${gl_cv_solaris_64bit+:} false; then :
7723 $as_echo_n "(cached) " >&6
7725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7726 /* end confdefs.h. */
7733 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7734 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
7735 gl_cv_solaris_64bit=yes
7737 gl_cv_solaris_64bit=no
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
7744 $as_echo "$gl_cv_solaris_64bit" >&6; }
7745 if test $gl_cv_solaris_64bit = yes; then
7746 acl_libdirstem=lib/64
7748 sparc*) acl_libdirstem2=lib/sparcv9 ;;
7749 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
7754 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
7755 if test -n "$searchpath"; then
7756 acl_save_IFS="${IFS= }"; IFS=":"
7757 for searchdir in $searchpath; do
7758 if test -d "$searchdir"; then
7759 case "$searchdir" in
7760 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
7762 # Better ignore directories of this form. They are misleading.
7764 *) searchdir=`cd "$searchdir" && pwd`
7765 case "$searchdir" in
7766 */lib64 ) acl_libdirstem=lib64 ;;
7775 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
7784 if test "$gl_use_threads" != no; then
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
7786 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
7787 if ${gl_cv_have_weak+:} false; then :
7788 $as_echo_n "(cached) " >&6
7791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7792 /* end confdefs.h. */
7793 extern void xyzzy ();
7803 if ac_fn_c_try_link "$LINENO"; then :
7804 gl_cv_have_weak=maybe
7806 rm -f core conftest.err conftest.$ac_objext \
7807 conftest$ac_exeext conftest.$ac_ext
7808 if test $gl_cv_have_weak = maybe; then
7809 if test "$cross_compiling" = yes; then :
7810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7811 /* end confdefs.h. */
7813 Extensible Linking Format
7817 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7818 $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
7819 gl_cv_have_weak="guessing yes"
7821 gl_cv_have_weak="guessing no"
7827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7828 /* end confdefs.h. */
7834 return (fputs == NULL);
7837 if ac_fn_c_try_run "$LINENO"; then :
7842 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7843 conftest.$ac_objext conftest.beam conftest.$ac_ext
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
7850 $as_echo "$gl_cv_have_weak" >&6; }
7851 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7852 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
7853 # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
7854 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
7855 if test "x$ac_cv_header_pthread_h" = xyes; then :
7856 gl_have_pthread_h=yes
7858 gl_have_pthread_h=no
7862 if test "$gl_have_pthread_h" = yes; then
7863 # Other possible tests:
7864 # -lpthreads (FSU threads, PCthreads)
7867 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
7868 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
7869 # the second one only in libpthread, and lock.c needs it.
7870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7871 /* end confdefs.h. */
7872 #include <pthread.h>
7876 pthread_mutex_lock((pthread_mutex_t*)0);
7877 pthread_mutexattr_init((pthread_mutexattr_t*)0);
7882 if ac_fn_c_try_link "$LINENO"; then :
7885 rm -f core conftest.err conftest.$ac_objext \
7886 conftest$ac_exeext conftest.$ac_ext
7887 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
7888 # since it is defined as a macro on OSF/1.)
7889 if test -n "$gl_have_pthread"; then
7890 # The program links fine without libpthread. But it may actually
7891 # need to link with libpthread in order to create multiple threads.
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
7893 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
7894 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
7895 $as_echo_n "(cached) " >&6
7897 ac_check_lib_save_LIBS=$LIBS
7898 LIBS="-lpthread $LIBS"
7899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7900 /* end confdefs.h. */
7902 /* Override any GCC internal prototype to avoid an error.
7903 Use char because int might match the return type of a GCC
7904 builtin and then its argument prototype would still apply. */
7908 char pthread_kill ();
7912 return pthread_kill ();
7917 if ac_fn_c_try_link "$LINENO"; then :
7918 ac_cv_lib_pthread_pthread_kill=yes
7920 ac_cv_lib_pthread_pthread_kill=no
7922 rm -f core conftest.err conftest.$ac_objext \
7923 conftest$ac_exeext conftest.$ac_ext
7924 LIBS=$ac_check_lib_save_LIBS
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
7927 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
7928 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
7929 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
7930 # On Solaris and HP-UX, most pthread functions exist also in libc.
7931 # Therefore pthread_in_use() needs to actually try to create a
7932 # thread: pthread_create from libc will fail, whereas
7933 # pthread_create will actually create a thread.
7937 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
7944 # Some library is needed. Try libpthread and libc_r.
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
7946 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
7947 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
7948 $as_echo_n "(cached) " >&6
7950 ac_check_lib_save_LIBS=$LIBS
7951 LIBS="-lpthread $LIBS"
7952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7953 /* end confdefs.h. */
7955 /* Override any GCC internal prototype to avoid an error.
7956 Use char because int might match the return type of a GCC
7957 builtin and then its argument prototype would still apply. */
7961 char pthread_kill ();
7965 return pthread_kill ();
7970 if ac_fn_c_try_link "$LINENO"; then :
7971 ac_cv_lib_pthread_pthread_kill=yes
7973 ac_cv_lib_pthread_pthread_kill=no
7975 rm -f core conftest.err conftest.$ac_objext \
7976 conftest$ac_exeext conftest.$ac_ext
7977 LIBS=$ac_check_lib_save_LIBS
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
7980 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
7981 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
7983 LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
7984 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
7987 if test -z "$gl_have_pthread"; then
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
7990 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
7991 if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
7992 $as_echo_n "(cached) " >&6
7994 ac_check_lib_save_LIBS=$LIBS
7996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7997 /* end confdefs.h. */
7999 /* Override any GCC internal prototype to avoid an error.
8000 Use char because int might match the return type of a GCC
8001 builtin and then its argument prototype would still apply. */
8005 char pthread_kill ();
8009 return pthread_kill ();
8014 if ac_fn_c_try_link "$LINENO"; then :
8015 ac_cv_lib_c_r_pthread_kill=yes
8017 ac_cv_lib_c_r_pthread_kill=no
8019 rm -f core conftest.err conftest.$ac_objext \
8020 conftest$ac_exeext conftest.$ac_ext
8021 LIBS=$ac_check_lib_save_LIBS
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
8024 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
8025 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
8027 LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
8028 LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
8033 if test -n "$gl_have_pthread"; then
8034 gl_threads_api=posix
8036 $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
8038 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8039 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8041 $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
8050 if test -z "$gl_have_pthread"; then
8051 if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
8052 gl_have_solaristhread=
8053 gl_save_LIBS="$LIBS"
8054 LIBS="$LIBS -lthread"
8055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8056 /* end confdefs.h. */
8069 if ac_fn_c_try_link "$LINENO"; then :
8070 gl_have_solaristhread=yes
8072 rm -f core conftest.err conftest.$ac_objext \
8073 conftest$ac_exeext conftest.$ac_ext
8074 LIBS="$gl_save_LIBS"
8075 if test -n "$gl_have_solaristhread"; then
8076 gl_threads_api=solaris
8078 LTLIBTHREAD=-lthread
8079 LIBMULTITHREAD="$LIBTHREAD"
8080 LTLIBMULTITHREAD="$LTLIBTHREAD"
8082 $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
8084 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8086 $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
8094 if test "$gl_use_threads" = pth; then
8095 gl_save_CPPFLAGS="$CPPFLAGS"
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
8102 $as_echo_n "checking how to link with libpth... " >&6; }
8103 if ${ac_cv_libpth_libs+:} false; then :
8104 $as_echo_n "(cached) " >&6
8116 acl_save_prefix="$prefix"
8117 prefix="$acl_final_prefix"
8118 acl_save_exec_prefix="$exec_prefix"
8119 exec_prefix="$acl_final_exec_prefix"
8121 eval additional_includedir=\"$includedir\"
8122 eval additional_libdir=\"$libdir\"
8124 exec_prefix="$acl_save_exec_prefix"
8125 prefix="$acl_save_prefix"
8128 # Check whether --with-libpth-prefix was given.
8129 if test "${with_libpth_prefix+set}" = set; then :
8130 withval=$with_libpth_prefix;
8131 if test "X$withval" = "Xno"; then
8134 if test "X$withval" = "X"; then
8136 acl_save_prefix="$prefix"
8137 prefix="$acl_final_prefix"
8138 acl_save_exec_prefix="$exec_prefix"
8139 exec_prefix="$acl_final_exec_prefix"
8141 eval additional_includedir=\"$includedir\"
8142 eval additional_libdir=\"$libdir\"
8144 exec_prefix="$acl_save_exec_prefix"
8145 prefix="$acl_save_prefix"
8148 additional_includedir="$withval/include"
8149 additional_libdir="$withval/$acl_libdirstem"
8150 if test "$acl_libdirstem2" != "$acl_libdirstem" \
8151 && ! test -d "$withval/$acl_libdirstem"; then
8152 additional_libdir="$withval/$acl_libdirstem2"
8166 names_already_handled=
8167 names_next_round='pth '
8168 while test -n "$names_next_round"; do
8169 names_this_round="$names_next_round"
8171 for name in $names_this_round; do
8173 for n in $names_already_handled; do
8174 if test "$n" = "$name"; then
8179 if test -z "$already_handled"; then
8180 names_already_handled="$names_already_handled $name"
8181 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8182 eval value=\"\$HAVE_LIB$uppername\"
8183 if test -n "$value"; then
8184 if test "$value" = yes; then
8185 eval value=\"\$LIB$uppername\"
8186 test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
8187 eval value=\"\$LTLIB$uppername\"
8188 test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
8197 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8198 if test -n "$acl_shlibext"; then
8199 shrext=".$acl_shlibext" # typically: shrext=.so
8203 if test $use_additional = yes; then
8204 dir="$additional_libdir"
8205 if test -n "$acl_shlibext"; then
8206 if test -f "$dir/$libname$shrext"; then
8208 found_so="$dir/$libname$shrext"
8210 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8211 ver=`(cd "$dir" && \
8212 for f in "$libname$shrext".*; do echo "$f"; done \
8213 | sed -e "s,^$libname$shrext\\\\.,," \
8214 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8215 | sed 1q ) 2>/dev/null`
8216 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8218 found_so="$dir/$libname$shrext.$ver"
8221 eval library_names=\"$acl_library_names_spec\"
8222 for f in $library_names; do
8223 if test -f "$dir/$f"; then
8232 if test "X$found_dir" = "X"; then
8233 if test -f "$dir/$libname.$acl_libext"; then
8235 found_a="$dir/$libname.$acl_libext"
8238 if test "X$found_dir" != "X"; then
8239 if test -f "$dir/$libname.la"; then
8240 found_la="$dir/$libname.la"
8244 if test "X$found_dir" = "X"; then
8245 for x in $LDFLAGS $LTLIBPTH; do
8247 acl_save_prefix="$prefix"
8248 prefix="$acl_final_prefix"
8249 acl_save_exec_prefix="$exec_prefix"
8250 exec_prefix="$acl_final_exec_prefix"
8252 exec_prefix="$acl_save_exec_prefix"
8253 prefix="$acl_save_prefix"
8257 dir=`echo "X$x" | sed -e 's/^X-L//'`
8258 if test -n "$acl_shlibext"; then
8259 if test -f "$dir/$libname$shrext"; then
8261 found_so="$dir/$libname$shrext"
8263 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8264 ver=`(cd "$dir" && \
8265 for f in "$libname$shrext".*; do echo "$f"; done \
8266 | sed -e "s,^$libname$shrext\\\\.,," \
8267 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8268 | sed 1q ) 2>/dev/null`
8269 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8271 found_so="$dir/$libname$shrext.$ver"
8274 eval library_names=\"$acl_library_names_spec\"
8275 for f in $library_names; do
8276 if test -f "$dir/$f"; then
8285 if test "X$found_dir" = "X"; then
8286 if test -f "$dir/$libname.$acl_libext"; then
8288 found_a="$dir/$libname.$acl_libext"
8291 if test "X$found_dir" != "X"; then
8292 if test -f "$dir/$libname.la"; then
8293 found_la="$dir/$libname.la"
8298 if test "X$found_dir" != "X"; then
8303 if test "X$found_dir" != "X"; then
8304 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
8305 if test "X$found_so" != "X"; then
8306 if test "$enable_rpath" = no \
8307 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8308 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
8309 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8312 for x in $ltrpathdirs; do
8313 if test "X$x" = "X$found_dir"; then
8318 if test -z "$haveit"; then
8319 ltrpathdirs="$ltrpathdirs $found_dir"
8321 if test "$acl_hardcode_direct" = yes; then
8322 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8324 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8325 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8327 for x in $rpathdirs; do
8328 if test "X$x" = "X$found_dir"; then
8333 if test -z "$haveit"; then
8334 rpathdirs="$rpathdirs $found_dir"
8338 for x in $LDFLAGS $LIBPTH; do
8340 acl_save_prefix="$prefix"
8341 prefix="$acl_final_prefix"
8342 acl_save_exec_prefix="$exec_prefix"
8343 exec_prefix="$acl_final_exec_prefix"
8345 exec_prefix="$acl_save_exec_prefix"
8346 prefix="$acl_save_prefix"
8348 if test "X$x" = "X-L$found_dir"; then
8353 if test -z "$haveit"; then
8354 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
8356 if test "$acl_hardcode_minus_L" != no; then
8357 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8359 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8365 if test "X$found_a" != "X"; then
8366 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
8368 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
8371 additional_includedir=
8372 case "$found_dir" in
8373 */$acl_libdirstem | */$acl_libdirstem/)
8374 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8375 if test "$name" = 'pth'; then
8376 LIBPTH_PREFIX="$basedir"
8378 additional_includedir="$basedir/include"
8380 */$acl_libdirstem2 | */$acl_libdirstem2/)
8381 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
8382 if test "$name" = 'pth'; then
8383 LIBPTH_PREFIX="$basedir"
8385 additional_includedir="$basedir/include"
8388 if test "X$additional_includedir" != "X"; then
8389 if test "X$additional_includedir" != "X/usr/include"; then
8391 if test "X$additional_includedir" = "X/usr/local/include"; then
8392 if test -n "$GCC"; then
8394 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8398 if test -z "$haveit"; then
8399 for x in $CPPFLAGS $INCPTH; do
8401 acl_save_prefix="$prefix"
8402 prefix="$acl_final_prefix"
8403 acl_save_exec_prefix="$exec_prefix"
8404 exec_prefix="$acl_final_exec_prefix"
8406 exec_prefix="$acl_save_exec_prefix"
8407 prefix="$acl_save_prefix"
8409 if test "X$x" = "X-I$additional_includedir"; then
8414 if test -z "$haveit"; then
8415 if test -d "$additional_includedir"; then
8416 INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
8422 if test -n "$found_la"; then
8423 save_libdir="$libdir"
8425 */* | *\\*) . "$found_la" ;;
8426 *) . "./$found_la" ;;
8428 libdir="$save_libdir"
8429 for dep in $dependency_libs; do
8432 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8433 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
8434 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
8436 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
8437 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
8438 if test -n "$GCC"; then
8440 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8444 if test -z "$haveit"; then
8446 for x in $LDFLAGS $LIBPTH; do
8448 acl_save_prefix="$prefix"
8449 prefix="$acl_final_prefix"
8450 acl_save_exec_prefix="$exec_prefix"
8451 exec_prefix="$acl_final_exec_prefix"
8453 exec_prefix="$acl_save_exec_prefix"
8454 prefix="$acl_save_prefix"
8456 if test "X$x" = "X-L$additional_libdir"; then
8461 if test -z "$haveit"; then
8462 if test -d "$additional_libdir"; then
8463 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
8467 for x in $LDFLAGS $LTLIBPTH; do
8469 acl_save_prefix="$prefix"
8470 prefix="$acl_final_prefix"
8471 acl_save_exec_prefix="$exec_prefix"
8472 exec_prefix="$acl_final_exec_prefix"
8474 exec_prefix="$acl_save_exec_prefix"
8475 prefix="$acl_save_prefix"
8477 if test "X$x" = "X-L$additional_libdir"; then
8482 if test -z "$haveit"; then
8483 if test -d "$additional_libdir"; then
8484 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
8491 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8492 if test "$enable_rpath" != no; then
8494 for x in $rpathdirs; do
8495 if test "X$x" = "X$dir"; then
8500 if test -z "$haveit"; then
8501 rpathdirs="$rpathdirs $dir"
8504 for x in $ltrpathdirs; do
8505 if test "X$x" = "X$dir"; then
8510 if test -z "$haveit"; then
8511 ltrpathdirs="$ltrpathdirs $dir"
8516 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8519 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8522 LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
8523 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
8529 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8530 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
8536 if test "X$rpathdirs" != "X"; then
8537 if test -n "$acl_hardcode_libdir_separator"; then
8539 for found_dir in $rpathdirs; do
8540 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
8542 acl_save_libdir="$libdir"
8544 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8545 libdir="$acl_save_libdir"
8546 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
8548 for found_dir in $rpathdirs; do
8549 acl_save_libdir="$libdir"
8551 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8552 libdir="$acl_save_libdir"
8553 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
8557 if test "X$ltrpathdirs" != "X"; then
8558 for found_dir in $ltrpathdirs; do
8559 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
8568 ac_cv_libpth_libs="$LIBPTH"
8569 ac_cv_libpth_ltlibs="$LTLIBPTH"
8570 ac_cv_libpth_cppflags="$INCPTH"
8571 ac_cv_libpth_prefix="$LIBPTH_PREFIX"
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
8575 $as_echo "$ac_cv_libpth_libs" >&6; }
8576 LIBPTH="$ac_cv_libpth_libs"
8577 LTLIBPTH="$ac_cv_libpth_ltlibs"
8578 INCPTH="$ac_cv_libpth_cppflags"
8579 LIBPTH_PREFIX="$ac_cv_libpth_prefix"
8581 for element in $INCPTH; do
8583 for x in $CPPFLAGS; do
8585 acl_save_prefix="$prefix"
8586 prefix="$acl_final_prefix"
8587 acl_save_exec_prefix="$exec_prefix"
8588 exec_prefix="$acl_final_exec_prefix"
8590 exec_prefix="$acl_save_exec_prefix"
8591 prefix="$acl_save_prefix"
8593 if test "X$x" = "X$element"; then
8598 if test -z "$haveit"; then
8599 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8611 gl_save_LIBS="$LIBS"
8612 LIBS="$LIBS $LIBPTH"
8613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8614 /* end confdefs.h. */
8624 if ac_fn_c_try_link "$LINENO"; then :
8627 rm -f core conftest.err conftest.$ac_objext \
8628 conftest$ac_exeext conftest.$ac_ext
8629 LIBS="$gl_save_LIBS"
8630 if test -n "$gl_have_pth"; then
8633 LTLIBTHREAD="$LTLIBPTH"
8634 LIBMULTITHREAD="$LIBTHREAD"
8635 LTLIBMULTITHREAD="$LTLIBTHREAD"
8637 $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
8639 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8640 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8642 $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
8649 CPPFLAGS="$gl_save_CPPFLAGS"
8652 if test -z "$gl_have_pthread"; then
8653 case "$gl_use_threads" in
8654 yes | windows | win32) # The 'win32' is for backward compatibility.
8655 if { case "$host_os" in
8660 gl_threads_api=windows
8662 $as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h
8669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
8670 $as_echo_n "checking for multithread API to use... " >&6; }
8671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
8672 $as_echo "$gl_threads_api" >&6; }
8684 if test "$gl_threads_api" = posix; then
8685 # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
8686 # pthread_rwlock_* functions.
8687 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
8689 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
8691 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
8695 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
8696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8697 /* end confdefs.h. */
8699 #include <pthread.h>
8704 #if __FreeBSD__ == 4
8705 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
8706 #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
8707 && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
8708 error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
8710 int x = (int)PTHREAD_MUTEX_RECURSIVE;
8718 if ac_fn_c_try_compile "$LINENO"; then :
8720 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
8723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8740 acl_save_prefix="$prefix"
8741 prefix="$acl_final_prefix"
8742 acl_save_exec_prefix="$exec_prefix"
8743 exec_prefix="$acl_final_exec_prefix"
8745 eval additional_includedir=\"$includedir\"
8746 eval additional_libdir=\"$libdir\"
8748 exec_prefix="$acl_save_exec_prefix"
8749 prefix="$acl_save_prefix"
8752 # Check whether --with-libiconv-prefix was given.
8753 if test "${with_libiconv_prefix+set}" = set; then :
8754 withval=$with_libiconv_prefix;
8755 if test "X$withval" = "Xno"; then
8758 if test "X$withval" = "X"; then
8760 acl_save_prefix="$prefix"
8761 prefix="$acl_final_prefix"
8762 acl_save_exec_prefix="$exec_prefix"
8763 exec_prefix="$acl_final_exec_prefix"
8765 eval additional_includedir=\"$includedir\"
8766 eval additional_libdir=\"$libdir\"
8768 exec_prefix="$acl_save_exec_prefix"
8769 prefix="$acl_save_prefix"
8772 additional_includedir="$withval/include"
8773 additional_libdir="$withval/$acl_libdirstem"
8774 if test "$acl_libdirstem2" != "$acl_libdirstem" \
8775 && ! test -d "$withval/$acl_libdirstem"; then
8776 additional_libdir="$withval/$acl_libdirstem2"
8790 names_already_handled=
8791 names_next_round='iconv '
8792 while test -n "$names_next_round"; do
8793 names_this_round="$names_next_round"
8795 for name in $names_this_round; do
8797 for n in $names_already_handled; do
8798 if test "$n" = "$name"; then
8803 if test -z "$already_handled"; then
8804 names_already_handled="$names_already_handled $name"
8805 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8806 eval value=\"\$HAVE_LIB$uppername\"
8807 if test -n "$value"; then
8808 if test "$value" = yes; then
8809 eval value=\"\$LIB$uppername\"
8810 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8811 eval value=\"\$LTLIB$uppername\"
8812 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8821 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8822 if test -n "$acl_shlibext"; then
8823 shrext=".$acl_shlibext" # typically: shrext=.so
8827 if test $use_additional = yes; then
8828 dir="$additional_libdir"
8829 if test -n "$acl_shlibext"; then
8830 if test -f "$dir/$libname$shrext"; then
8832 found_so="$dir/$libname$shrext"
8834 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8835 ver=`(cd "$dir" && \
8836 for f in "$libname$shrext".*; do echo "$f"; done \
8837 | sed -e "s,^$libname$shrext\\\\.,," \
8838 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8839 | sed 1q ) 2>/dev/null`
8840 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8842 found_so="$dir/$libname$shrext.$ver"
8845 eval library_names=\"$acl_library_names_spec\"
8846 for f in $library_names; do
8847 if test -f "$dir/$f"; then
8856 if test "X$found_dir" = "X"; then
8857 if test -f "$dir/$libname.$acl_libext"; then
8859 found_a="$dir/$libname.$acl_libext"
8862 if test "X$found_dir" != "X"; then
8863 if test -f "$dir/$libname.la"; then
8864 found_la="$dir/$libname.la"
8868 if test "X$found_dir" = "X"; then
8869 for x in $LDFLAGS $LTLIBICONV; do
8871 acl_save_prefix="$prefix"
8872 prefix="$acl_final_prefix"
8873 acl_save_exec_prefix="$exec_prefix"
8874 exec_prefix="$acl_final_exec_prefix"
8876 exec_prefix="$acl_save_exec_prefix"
8877 prefix="$acl_save_prefix"
8881 dir=`echo "X$x" | sed -e 's/^X-L//'`
8882 if test -n "$acl_shlibext"; then
8883 if test -f "$dir/$libname$shrext"; then
8885 found_so="$dir/$libname$shrext"
8887 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8888 ver=`(cd "$dir" && \
8889 for f in "$libname$shrext".*; do echo "$f"; done \
8890 | sed -e "s,^$libname$shrext\\\\.,," \
8891 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8892 | sed 1q ) 2>/dev/null`
8893 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8895 found_so="$dir/$libname$shrext.$ver"
8898 eval library_names=\"$acl_library_names_spec\"
8899 for f in $library_names; do
8900 if test -f "$dir/$f"; then
8909 if test "X$found_dir" = "X"; then
8910 if test -f "$dir/$libname.$acl_libext"; then
8912 found_a="$dir/$libname.$acl_libext"
8915 if test "X$found_dir" != "X"; then
8916 if test -f "$dir/$libname.la"; then
8917 found_la="$dir/$libname.la"
8922 if test "X$found_dir" != "X"; then
8927 if test "X$found_dir" != "X"; then
8928 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8929 if test "X$found_so" != "X"; then
8930 if test "$enable_rpath" = no \
8931 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8932 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
8933 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8936 for x in $ltrpathdirs; do
8937 if test "X$x" = "X$found_dir"; then
8942 if test -z "$haveit"; then
8943 ltrpathdirs="$ltrpathdirs $found_dir"
8945 if test "$acl_hardcode_direct" = yes; then
8946 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8948 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8949 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8951 for x in $rpathdirs; do
8952 if test "X$x" = "X$found_dir"; then
8957 if test -z "$haveit"; then
8958 rpathdirs="$rpathdirs $found_dir"
8962 for x in $LDFLAGS $LIBICONV; do
8964 acl_save_prefix="$prefix"
8965 prefix="$acl_final_prefix"
8966 acl_save_exec_prefix="$exec_prefix"
8967 exec_prefix="$acl_final_exec_prefix"
8969 exec_prefix="$acl_save_exec_prefix"
8970 prefix="$acl_save_prefix"
8972 if test "X$x" = "X-L$found_dir"; then
8977 if test -z "$haveit"; then
8978 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8980 if test "$acl_hardcode_minus_L" != no; then
8981 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8983 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8989 if test "X$found_a" != "X"; then
8990 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8992 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8995 additional_includedir=
8996 case "$found_dir" in
8997 */$acl_libdirstem | */$acl_libdirstem/)
8998 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8999 if test "$name" = 'iconv'; then
9000 LIBICONV_PREFIX="$basedir"
9002 additional_includedir="$basedir/include"
9004 */$acl_libdirstem2 | */$acl_libdirstem2/)
9005 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
9006 if test "$name" = 'iconv'; then
9007 LIBICONV_PREFIX="$basedir"
9009 additional_includedir="$basedir/include"
9012 if test "X$additional_includedir" != "X"; then
9013 if test "X$additional_includedir" != "X/usr/include"; then
9015 if test "X$additional_includedir" = "X/usr/local/include"; then
9016 if test -n "$GCC"; then
9018 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9022 if test -z "$haveit"; then
9023 for x in $CPPFLAGS $INCICONV; do
9025 acl_save_prefix="$prefix"
9026 prefix="$acl_final_prefix"
9027 acl_save_exec_prefix="$exec_prefix"
9028 exec_prefix="$acl_final_exec_prefix"
9030 exec_prefix="$acl_save_exec_prefix"
9031 prefix="$acl_save_prefix"
9033 if test "X$x" = "X-I$additional_includedir"; then
9038 if test -z "$haveit"; then
9039 if test -d "$additional_includedir"; then
9040 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9046 if test -n "$found_la"; then
9047 save_libdir="$libdir"
9049 */* | *\\*) . "$found_la" ;;
9050 *) . "./$found_la" ;;
9052 libdir="$save_libdir"
9053 for dep in $dependency_libs; do
9056 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9057 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
9058 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
9060 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
9061 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
9062 if test -n "$GCC"; then
9064 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9068 if test -z "$haveit"; then
9070 for x in $LDFLAGS $LIBICONV; do
9072 acl_save_prefix="$prefix"
9073 prefix="$acl_final_prefix"
9074 acl_save_exec_prefix="$exec_prefix"
9075 exec_prefix="$acl_final_exec_prefix"
9077 exec_prefix="$acl_save_exec_prefix"
9078 prefix="$acl_save_prefix"
9080 if test "X$x" = "X-L$additional_libdir"; then
9085 if test -z "$haveit"; then
9086 if test -d "$additional_libdir"; then
9087 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9091 for x in $LDFLAGS $LTLIBICONV; do
9093 acl_save_prefix="$prefix"
9094 prefix="$acl_final_prefix"
9095 acl_save_exec_prefix="$exec_prefix"
9096 exec_prefix="$acl_final_exec_prefix"
9098 exec_prefix="$acl_save_exec_prefix"
9099 prefix="$acl_save_prefix"
9101 if test "X$x" = "X-L$additional_libdir"; then
9106 if test -z "$haveit"; then
9107 if test -d "$additional_libdir"; then
9108 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9115 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9116 if test "$enable_rpath" != no; then
9118 for x in $rpathdirs; do
9119 if test "X$x" = "X$dir"; then
9124 if test -z "$haveit"; then
9125 rpathdirs="$rpathdirs $dir"
9128 for x in $ltrpathdirs; do
9129 if test "X$x" = "X$dir"; then
9134 if test -z "$haveit"; then
9135 ltrpathdirs="$ltrpathdirs $dir"
9140 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9143 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9146 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9147 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9153 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9154 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9160 if test "X$rpathdirs" != "X"; then
9161 if test -n "$acl_hardcode_libdir_separator"; then
9163 for found_dir in $rpathdirs; do
9164 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
9166 acl_save_libdir="$libdir"
9168 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9169 libdir="$acl_save_libdir"
9170 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9172 for found_dir in $rpathdirs; do
9173 acl_save_libdir="$libdir"
9175 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9176 libdir="$acl_save_libdir"
9177 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9181 if test "X$ltrpathdirs" != "X"; then
9182 for found_dir in $ltrpathdirs; do
9183 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9198 am_save_CPPFLAGS="$CPPFLAGS"
9200 for element in $INCICONV; do
9202 for x in $CPPFLAGS; do
9204 acl_save_prefix="$prefix"
9205 prefix="$acl_final_prefix"
9206 acl_save_exec_prefix="$exec_prefix"
9207 exec_prefix="$acl_final_exec_prefix"
9209 exec_prefix="$acl_save_exec_prefix"
9210 prefix="$acl_save_prefix"
9212 if test "X$x" = "X$element"; then
9217 if test -z "$haveit"; then
9218 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9224 $as_echo_n "checking for iconv... " >&6; }
9225 if ${am_cv_func_iconv+:} false; then :
9226 $as_echo_n "(cached) " >&6
9229 am_cv_func_iconv="no, consider installing GNU libiconv"
9231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9232 /* end confdefs.h. */
9240 iconv_t cd = iconv_open("","");
9241 iconv(cd,NULL,NULL,NULL,NULL);
9247 if ac_fn_c_try_link "$LINENO"; then :
9248 am_cv_func_iconv=yes
9250 rm -f core conftest.err conftest.$ac_objext \
9251 conftest$ac_exeext conftest.$ac_ext
9252 if test "$am_cv_func_iconv" != yes; then
9253 am_save_LIBS="$LIBS"
9254 LIBS="$LIBS $LIBICONV"
9255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9256 /* end confdefs.h. */
9264 iconv_t cd = iconv_open("","");
9265 iconv(cd,NULL,NULL,NULL,NULL);
9271 if ac_fn_c_try_link "$LINENO"; then :
9273 am_cv_func_iconv=yes
9275 rm -f core conftest.err conftest.$ac_objext \
9276 conftest$ac_exeext conftest.$ac_ext
9277 LIBS="$am_save_LIBS"
9281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9282 $as_echo "$am_cv_func_iconv" >&6; }
9283 if test "$am_cv_func_iconv" = yes; then
9284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
9285 $as_echo_n "checking for working iconv... " >&6; }
9286 if ${am_cv_func_iconv_works+:} false; then :
9287 $as_echo_n "(cached) " >&6
9290 am_save_LIBS="$LIBS"
9291 if test $am_cv_lib_iconv = yes; then
9292 LIBS="$LIBS $LIBICONV"
9294 if test "$cross_compiling" = yes; then :
9297 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
9298 *) am_cv_func_iconv_works="guessing yes" ;;
9302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9303 /* end confdefs.h. */
9310 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
9313 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
9314 if (cd_utf8_to_88591 != (iconv_t)(-1))
9316 static const char input[] = "\342\202\254"; /* EURO SIGN */
9318 const char *inptr = input;
9319 size_t inbytesleft = strlen (input);
9321 size_t outbytesleft = sizeof (buf);
9322 size_t res = iconv (cd_utf8_to_88591,
9323 (char **) &inptr, &inbytesleft,
9324 &outptr, &outbytesleft);
9327 iconv_close (cd_utf8_to_88591);
9330 /* Test against Solaris 10 bug: Failures are not distinguishable from
9331 successful returns. */
9333 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
9334 if (cd_ascii_to_88591 != (iconv_t)(-1))
9336 static const char input[] = "\263";
9338 const char *inptr = input;
9339 size_t inbytesleft = strlen (input);
9341 size_t outbytesleft = sizeof (buf);
9342 size_t res = iconv (cd_ascii_to_88591,
9343 (char **) &inptr, &inbytesleft,
9344 &outptr, &outbytesleft);
9347 iconv_close (cd_ascii_to_88591);
9350 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
9352 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
9353 if (cd_88591_to_utf8 != (iconv_t)(-1))
9355 static const char input[] = "\304";
9356 static char buf[2] = { (char)0xDE, (char)0xAD };
9357 const char *inptr = input;
9358 size_t inbytesleft = 1;
9360 size_t outbytesleft = 1;
9361 size_t res = iconv (cd_88591_to_utf8,
9362 (char **) &inptr, &inbytesleft,
9363 &outptr, &outbytesleft);
9364 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
9366 iconv_close (cd_88591_to_utf8);
9369 #if 0 /* This bug could be worked around by the caller. */
9370 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
9372 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
9373 if (cd_88591_to_utf8 != (iconv_t)(-1))
9375 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
9377 const char *inptr = input;
9378 size_t inbytesleft = strlen (input);
9380 size_t outbytesleft = sizeof (buf);
9381 size_t res = iconv (cd_88591_to_utf8,
9382 (char **) &inptr, &inbytesleft,
9383 &outptr, &outbytesleft);
9386 iconv_close (cd_88591_to_utf8);
9390 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
9392 if (/* Try standardized names. */
9393 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
9394 /* Try IRIX, OSF/1 names. */
9395 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
9396 /* Try AIX names. */
9397 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
9398 /* Try HP-UX names. */
9399 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
9404 if ac_fn_c_try_run "$LINENO"; then :
9405 am_cv_func_iconv_works=yes
9407 am_cv_func_iconv_works=no
9409 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9410 conftest.$ac_objext conftest.beam conftest.$ac_ext
9413 LIBS="$am_save_LIBS"
9416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
9417 $as_echo "$am_cv_func_iconv_works" >&6; }
9418 case "$am_cv_func_iconv_works" in
9419 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
9420 *) am_func_iconv=yes ;;
9423 am_func_iconv=no am_cv_lib_iconv=no
9425 if test "$am_func_iconv" = yes; then
9427 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9430 if test "$am_cv_lib_iconv" = yes; then
9431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9432 $as_echo_n "checking how to link with libiconv... " >&6; }
9433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9434 $as_echo "$LIBICONV" >&6; }
9436 CPPFLAGS="$am_save_CPPFLAGS"
9443 if test "$am_cv_func_iconv" = yes; then
9444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9445 $as_echo_n "checking for iconv declaration... " >&6; }
9446 if ${am_cv_proto_iconv+:} false; then :
9447 $as_echo_n "(cached) " >&6
9450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9451 /* end confdefs.h. */
9459 #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
9460 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9473 if ac_fn_c_try_compile "$LINENO"; then :
9474 am_cv_proto_iconv_arg1=""
9476 am_cv_proto_iconv_arg1="const"
9478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9479 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);"
9482 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9483 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
9484 $am_cv_proto_iconv" >&5
9486 $am_cv_proto_iconv" >&6; }
9488 cat >>confdefs.h <<_ACEOF
9489 #define ICONV_CONST $am_cv_proto_iconv_arg1
9498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9499 /* end confdefs.h. */
9500 int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
9509 if ac_fn_c_try_link "$LINENO"; then :
9511 $as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
9514 rm -f core conftest.err conftest.$ac_objext \
9515 conftest$ac_exeext conftest.$ac_ext
9517 for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
9519 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9520 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9521 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9522 cat >>confdefs.h <<_ACEOF
9523 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9530 for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
9531 stpcpy strcasecmp strdup strtoul tsearch uselocale argz_count \
9532 argz_stringify argz_next __fsetlocking
9534 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9535 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9536 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9537 cat >>confdefs.h <<_ACEOF
9538 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9545 ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "#include <stdio.h>
9547 if test "x$ac_cv_have_decl_feof_unlocked" = xyes; then :
9553 cat >>confdefs.h <<_ACEOF
9554 #define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
9556 ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "#include <stdio.h>
9558 if test "x$ac_cv_have_decl_fgets_unlocked" = xyes; then :
9564 cat >>confdefs.h <<_ACEOF
9565 #define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
9571 for ac_prog in bison
9573 # Extract the first word of "$ac_prog", so it can be a program name with args.
9574 set dummy $ac_prog; ac_word=$2
9575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9576 $as_echo_n "checking for $ac_word... " >&6; }
9577 if ${ac_cv_prog_INTLBISON+:} false; then :
9578 $as_echo_n "(cached) " >&6
9580 if test -n "$INTLBISON"; then
9581 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
9583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9587 test -z "$as_dir" && as_dir=.
9588 for ac_exec_ext in '' $ac_executable_extensions; do
9589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9590 ac_cv_prog_INTLBISON="$ac_prog"
9591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9600 INTLBISON=$ac_cv_prog_INTLBISON
9601 if test -n "$INTLBISON"; then
9602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
9603 $as_echo "$INTLBISON" >&6; }
9605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9606 $as_echo "no" >&6; }
9610 test -n "$INTLBISON" && break
9613 if test -z "$INTLBISON"; then
9616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
9617 $as_echo_n "checking version of bison... " >&6; }
9618 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
9619 case $ac_prog_version in
9620 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
9621 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
9622 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
9623 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
9625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
9626 $as_echo "$ac_prog_version" >&6; }
9628 if test $ac_verc_fail = yes; then
9634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
9635 $as_echo_n "checking for long long int... " >&6; }
9636 if ${ac_cv_type_long_long_int+:} false; then :
9637 $as_echo_n "(cached) " >&6
9639 ac_cv_type_long_long_int=yes
9640 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
9641 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
9642 if test $ac_cv_type_long_long_int = yes; then
9643 if test "$cross_compiling" = yes; then :
9646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9647 /* end confdefs.h. */
9651 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
9652 # define LLONG_MAX (HALF - 1 + HALF)
9657 long long int n = 1;
9661 long long int m = n << i;
9664 if (LLONG_MAX / 2 < m)
9672 if ac_fn_c_try_run "$LINENO"; then :
9675 ac_cv_type_long_long_int=no
9677 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9678 conftest.$ac_objext conftest.beam conftest.$ac_ext
9684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
9685 $as_echo "$ac_cv_type_long_long_int" >&6; }
9686 if test $ac_cv_type_long_long_int = yes; then
9688 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
9694 $as_echo_n "checking for wchar_t... " >&6; }
9695 if ${gt_cv_c_wchar_t+:} false; then :
9696 $as_echo_n "(cached) " >&6
9698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9699 /* end confdefs.h. */
9701 wchar_t foo = (wchar_t)'\0';
9710 if ac_fn_c_try_compile "$LINENO"; then :
9715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
9718 $as_echo "$gt_cv_c_wchar_t" >&6; }
9719 if test $gt_cv_c_wchar_t = yes; then
9721 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
9726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
9727 $as_echo_n "checking for wint_t... " >&6; }
9728 if ${gt_cv_c_wint_t+:} false; then :
9729 $as_echo_n "(cached) " >&6
9731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9732 /* end confdefs.h. */
9734 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9736 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
9737 before <wchar.h>. */
9742 wint_t foo = (wchar_t)'\0';
9751 if ac_fn_c_try_compile "$LINENO"; then :
9756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
9759 $as_echo "$gt_cv_c_wint_t" >&6; }
9760 if test $gt_cv_c_wint_t = yes; then
9762 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
9769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
9770 $as_echo_n "checking for intmax_t... " >&6; }
9771 if ${gt_cv_c_intmax_t+:} false; then :
9772 $as_echo_n "(cached) " >&6
9774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9775 /* end confdefs.h. */
9779 #if HAVE_STDINT_H_WITH_UINTMAX
9782 #if HAVE_INTTYPES_H_WITH_UINTMAX
9783 #include <inttypes.h>
9795 if ac_fn_c_try_compile "$LINENO"; then :
9796 gt_cv_c_intmax_t=yes
9800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
9803 $as_echo "$gt_cv_c_intmax_t" >&6; }
9804 if test $gt_cv_c_intmax_t = yes; then
9806 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
9812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
9813 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
9814 if ${gt_cv_func_printf_posix+:} false; then :
9815 $as_echo_n "(cached) " >&6
9818 if test "$cross_compiling" = yes; then :
9820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9821 /* end confdefs.h. */
9823 #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
9828 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9829 $EGREP "notposix" >/dev/null 2>&1; then :
9830 gt_cv_func_printf_posix="guessing no"
9832 gt_cv_func_printf_posix="guessing yes"
9838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9839 /* end confdefs.h. */
9843 /* The string "%2$d %1$d", with dollar characters protected from the shell's
9844 dollar expansion (possibly an autoconf bug). */
9845 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
9846 static char buf[100];
9849 sprintf (buf, format, 33, 55);
9850 return (strcmp (buf, "55 33") != 0);
9853 if ac_fn_c_try_run "$LINENO"; then :
9854 gt_cv_func_printf_posix=yes
9856 gt_cv_func_printf_posix=no
9858 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9859 conftest.$ac_objext conftest.beam conftest.$ac_ext
9864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
9865 $as_echo "$gt_cv_func_printf_posix" >&6; }
9866 case $gt_cv_func_printf_posix in
9869 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
9875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
9876 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
9877 if ${ac_cv_gnu_library_2_1+:} false; then :
9878 $as_echo_n "(cached) " >&6
9880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9881 /* end confdefs.h. */
9883 #include <features.h>
9884 #ifdef __GNU_LIBRARY__
9885 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9894 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9895 $EGREP "Lucky" >/dev/null 2>&1; then :
9896 ac_cv_gnu_library_2_1=yes
9898 ac_cv_gnu_library_2_1=no
9905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
9906 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
9908 GLIBC21="$ac_cv_gnu_library_2_1"
9912 for ac_header in stdint.h
9914 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
9915 if test "x$ac_cv_header_stdint_h" = xyes; then :
9916 cat >>confdefs.h <<_ACEOF
9917 #define HAVE_STDINT_H 1
9924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
9925 $as_echo_n "checking for SIZE_MAX... " >&6; }
9926 if ${gl_cv_size_max+:} false; then :
9927 $as_echo_n "(cached) " >&6
9931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9932 /* end confdefs.h. */
9943 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9944 $EGREP "Found it" >/dev/null 2>&1; then :
9949 if test -z "$gl_cv_size_max"; then
9950 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
9951 #include <limits.h>"; then :
9954 size_t_bits_minus_1=
9957 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
9963 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
9964 if test $fits_in_uint = 1; then
9965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9966 /* end confdefs.h. */
9969 extern unsigned long foo;
9979 if ac_fn_c_try_compile "$LINENO"; then :
9982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9984 if test $fits_in_uint = 1; then
9985 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
9987 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
9990 gl_cv_size_max='((size_t)~(size_t)0)'
9995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
9996 $as_echo "$gl_cv_size_max" >&6; }
9997 if test "$gl_cv_size_max" != yes; then
9999 cat >>confdefs.h <<_ACEOF
10000 #define SIZE_MAX $gl_cv_size_max
10008 for ac_header in stdint.h
10010 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
10011 if test "x$ac_cv_header_stdint_h" = xyes; then :
10012 cat >>confdefs.h <<_ACEOF
10013 #define HAVE_STDINT_H 1
10024 for ac_func in $ac_func_list
10026 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10027 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10028 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10029 cat >>confdefs.h <<_ACEOF
10030 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
10044 $as_echo_n "checking for working fcntl.h... " >&6; }
10045 if ${gl_cv_header_working_fcntl_h+:} false; then :
10046 $as_echo_n "(cached) " >&6
10048 if test "$cross_compiling" = yes; then :
10049 gl_cv_header_working_fcntl_h=cross-compiling
10051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10052 /* end confdefs.h. */
10053 #include <sys/types.h>
10054 #include <sys/stat.h>
10056 # include <unistd.h>
10057 #else /* on Windows with MSVC */
10059 # include <stdlib.h>
10060 # defined sleep(n) _sleep ((n) * 1000)
10064 #define O_NOATIME 0
10067 #define O_NOFOLLOW 0
10069 static int const constants[] =
10071 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
10072 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
10079 int result = !constants;
10082 static char const sym[] = "conftest.sym";
10083 if (symlink ("/dev/null", sym) != 0)
10087 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
10094 if (unlink (sym) != 0 || symlink (".", sym) != 0)
10098 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
10109 static char const file[] = "confdefs.h";
10110 int fd = open (file, O_RDONLY | O_NOATIME);
10116 if (fstat (fd, &st0) != 0)
10122 if (read (fd, &c, 1) != 1)
10126 if (close (fd) != 0)
10131 if (stat (file, &st1) != 0)
10134 if (st0.st_atime != st1.st_atime)
10146 if ac_fn_c_try_run "$LINENO"; then :
10147 gl_cv_header_working_fcntl_h=yes
10150 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
10151 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
10152 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
10153 *) gl_cv_header_working_fcntl_h='no';;
10156 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10157 conftest.$ac_objext conftest.beam conftest.$ac_ext
10161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
10162 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
10164 case $gl_cv_header_working_fcntl_h in #(
10165 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
10169 cat >>confdefs.h <<_ACEOF
10170 #define HAVE_WORKING_O_NOATIME $ac_val
10174 case $gl_cv_header_working_fcntl_h in #(
10175 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
10179 cat >>confdefs.h <<_ACEOF
10180 #define HAVE_WORKING_O_NOFOLLOW $ac_val
10185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10186 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10187 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
10188 $as_echo_n "(cached) " >&6
10190 gt_save_LIBS="$LIBS"
10191 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10193 /* end confdefs.h. */
10194 #include <CoreFoundation/CFPreferences.h>
10198 CFPreferencesCopyAppValue(NULL, NULL)
10203 if ac_fn_c_try_link "$LINENO"; then :
10204 gt_cv_func_CFPreferencesCopyAppValue=yes
10206 gt_cv_func_CFPreferencesCopyAppValue=no
10208 rm -f core conftest.err conftest.$ac_objext \
10209 conftest$ac_exeext conftest.$ac_ext
10210 LIBS="$gt_save_LIBS"
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10213 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10214 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10216 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10220 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10221 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10222 $as_echo_n "(cached) " >&6
10224 gt_save_LIBS="$LIBS"
10225 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10227 /* end confdefs.h. */
10228 #include <CoreFoundation/CFLocale.h>
10232 CFLocaleCopyCurrent();
10237 if ac_fn_c_try_link "$LINENO"; then :
10238 gt_cv_func_CFLocaleCopyCurrent=yes
10240 gt_cv_func_CFLocaleCopyCurrent=no
10242 rm -f core conftest.err conftest.$ac_objext \
10243 conftest$ac_exeext conftest.$ac_ext
10244 LIBS="$gt_save_LIBS"
10246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10247 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10248 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10250 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10254 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10255 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10267 case "$enable_silent_rules" in
10268 yes) INTL_DEFAULT_VERBOSITY=0;;
10269 no) INTL_DEFAULT_VERBOSITY=1;;
10270 *) INTL_DEFAULT_VERBOSITY=1;;
10274 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
10275 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
10279 $as_echo "#define ptrdiff_t long" >>confdefs.h
10284 for ac_header in features.h stddef.h stdlib.h string.h
10286 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10287 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10288 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10289 cat >>confdefs.h <<_ACEOF
10290 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10297 for ac_func in asprintf fwprintf newlocale putenv setenv setlocale \
10298 snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
10300 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10301 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10302 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10303 cat >>confdefs.h <<_ACEOF
10304 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10311 ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
10313 if test "x$ac_cv_have_decl__snprintf" = xyes; then :
10319 cat >>confdefs.h <<_ACEOF
10320 #define HAVE_DECL__SNPRINTF $ac_have_decl
10322 ac_fn_c_check_decl "$LINENO" "_snwprintf" "ac_cv_have_decl__snwprintf" "#include <stdio.h>
10324 if test "x$ac_cv_have_decl__snwprintf" = xyes; then :
10330 cat >>confdefs.h <<_ACEOF
10331 #define HAVE_DECL__SNWPRINTF $ac_have_decl
10335 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "#include <stdio.h>
10337 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
10343 cat >>confdefs.h <<_ACEOF
10344 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
10348 case $gt_cv_func_printf_posix in
10349 *yes) HAVE_POSIX_PRINTF=1 ;;
10350 *) HAVE_POSIX_PRINTF=0 ;;
10353 if test "$ac_cv_func_asprintf" = yes; then
10359 if test "$ac_cv_func_snprintf" = yes; then
10365 if test "$ac_cv_func_newlocale" = yes; then
10371 if test "$ac_cv_func_wprintf" = yes; then
10379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10380 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10381 if ${am_cv_langinfo_codeset+:} false; then :
10382 $as_echo_n "(cached) " >&6
10384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10385 /* end confdefs.h. */
10386 #include <langinfo.h>
10390 char* cs = nl_langinfo(CODESET); return !cs;
10395 if ac_fn_c_try_link "$LINENO"; then :
10396 am_cv_langinfo_codeset=yes
10398 am_cv_langinfo_codeset=no
10400 rm -f core conftest.err conftest.$ac_objext \
10401 conftest$ac_exeext conftest.$ac_ext
10404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10405 $as_echo "$am_cv_langinfo_codeset" >&6; }
10406 if test $am_cv_langinfo_codeset = yes; then
10408 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10414 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10415 if ${gt_cv_val_LC_MESSAGES+:} false; then :
10416 $as_echo_n "(cached) " >&6
10418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10419 /* end confdefs.h. */
10420 #include <locale.h>
10429 if ac_fn_c_try_link "$LINENO"; then :
10430 gt_cv_val_LC_MESSAGES=yes
10432 gt_cv_val_LC_MESSAGES=no
10434 rm -f core conftest.err conftest.$ac_objext \
10435 conftest$ac_exeext conftest.$ac_ext
10437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
10438 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
10439 if test $gt_cv_val_LC_MESSAGES = yes; then
10441 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10446 if test "$enable_shared" = yes; then
10448 mingw* | cygwin*) is_woe32dll=yes ;;
10449 *) is_woe32dll=no ;;
10454 WOE32DLL=$is_woe32dll
10458 mingw* | cygwin*) is_woe32=yes ;;
10463 if test $WOE32 = yes; then
10464 if test -n "$ac_tool_prefix"; then
10465 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
10466 set dummy ${ac_tool_prefix}windres; ac_word=$2
10467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10468 $as_echo_n "checking for $ac_word... " >&6; }
10469 if ${ac_cv_prog_WINDRES+:} false; then :
10470 $as_echo_n "(cached) " >&6
10472 if test -n "$WINDRES"; then
10473 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
10475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10476 for as_dir in $PATH
10479 test -z "$as_dir" && as_dir=.
10480 for ac_exec_ext in '' $ac_executable_extensions; do
10481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10482 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
10483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10492 WINDRES=$ac_cv_prog_WINDRES
10493 if test -n "$WINDRES"; then
10494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
10495 $as_echo "$WINDRES" >&6; }
10497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10498 $as_echo "no" >&6; }
10503 if test -z "$ac_cv_prog_WINDRES"; then
10504 ac_ct_WINDRES=$WINDRES
10505 # Extract the first word of "windres", so it can be a program name with args.
10506 set dummy windres; ac_word=$2
10507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10508 $as_echo_n "checking for $ac_word... " >&6; }
10509 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
10510 $as_echo_n "(cached) " >&6
10512 if test -n "$ac_ct_WINDRES"; then
10513 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
10515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10516 for as_dir in $PATH
10519 test -z "$as_dir" && as_dir=.
10520 for ac_exec_ext in '' $ac_executable_extensions; do
10521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10522 ac_cv_prog_ac_ct_WINDRES="windres"
10523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10532 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
10533 if test -n "$ac_ct_WINDRES"; then
10534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
10535 $as_echo "$ac_ct_WINDRES" >&6; }
10537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10538 $as_echo "no" >&6; }
10541 if test "x$ac_ct_WINDRES" = x; then
10544 case $cross_compiling:$ac_tool_warned in
10546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10547 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10548 ac_tool_warned=yes ;;
10550 WINDRES=$ac_ct_WINDRES
10553 WINDRES="$ac_cv_prog_WINDRES"
10559 hpux*) LTLIBC="" ;;
10589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10590 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10591 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
10592 $as_echo_n "(cached) " >&6
10594 gt_save_LIBS="$LIBS"
10595 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10597 /* end confdefs.h. */
10598 #include <CoreFoundation/CFPreferences.h>
10602 CFPreferencesCopyAppValue(NULL, NULL)
10607 if ac_fn_c_try_link "$LINENO"; then :
10608 gt_cv_func_CFPreferencesCopyAppValue=yes
10610 gt_cv_func_CFPreferencesCopyAppValue=no
10612 rm -f core conftest.err conftest.$ac_objext \
10613 conftest$ac_exeext conftest.$ac_ext
10614 LIBS="$gt_save_LIBS"
10616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10617 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10618 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10620 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10624 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10625 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10626 $as_echo_n "(cached) " >&6
10628 gt_save_LIBS="$LIBS"
10629 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10631 /* end confdefs.h. */
10632 #include <CoreFoundation/CFLocale.h>
10636 CFLocaleCopyCurrent();
10641 if ac_fn_c_try_link "$LINENO"; then :
10642 gt_cv_func_CFLocaleCopyCurrent=yes
10644 gt_cv_func_CFLocaleCopyCurrent=no
10646 rm -f core conftest.err conftest.$ac_objext \
10647 conftest$ac_exeext conftest.$ac_ext
10648 LIBS="$gt_save_LIBS"
10650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10651 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10652 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10654 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10658 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10659 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10667 BUILD_INCLUDED_LIBINTL=no
10668 USE_INCLUDED_LIBINTL=no
10674 case " $gt_needs " in
10675 *" need-formatstring-macros "*) gt_api_version=3 ;;
10676 *" need-ngettext "*) gt_api_version=2 ;;
10677 *) gt_api_version=1 ;;
10679 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
10680 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
10682 if test "$USE_NLS" = "yes"; then
10683 gt_use_preinstalled_gnugettext=no
10685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
10686 $as_echo_n "checking whether included gettext is requested... " >&6; }
10688 # Check whether --with-included-gettext was given.
10689 if test "${with_included_gettext+set}" = set; then :
10690 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
10692 nls_cv_force_use_gnu_gettext=no
10695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
10696 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
10698 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10699 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
10702 if test $gt_api_version -ge 3; then
10703 gt_revision_test_code='
10704 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
10705 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
10707 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
10710 gt_revision_test_code=
10712 if test $gt_api_version -ge 2; then
10713 gt_expression_test_code=' + * ngettext ("", "", 0)'
10715 gt_expression_test_code=
10718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
10719 $as_echo_n "checking for GNU gettext in libc... " >&6; }
10720 if eval \${$gt_func_gnugettext_libc+:} false; then :
10721 $as_echo_n "(cached) " >&6
10723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10724 /* end confdefs.h. */
10726 #include <libintl.h>
10727 $gt_revision_test_code
10728 extern int _nl_msg_cat_cntr;
10729 extern int *_nl_domain_bindings;
10735 bindtextdomain ("", "");
10736 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
10742 if ac_fn_c_try_link "$LINENO"; then :
10743 eval "$gt_func_gnugettext_libc=yes"
10745 eval "$gt_func_gnugettext_libc=no"
10747 rm -f core conftest.err conftest.$ac_objext \
10748 conftest$ac_exeext conftest.$ac_ext
10750 eval ac_res=\$$gt_func_gnugettext_libc
10751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10752 $as_echo "$ac_res" >&6; }
10754 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
10765 acl_save_prefix="$prefix"
10766 prefix="$acl_final_prefix"
10767 acl_save_exec_prefix="$exec_prefix"
10768 exec_prefix="$acl_final_exec_prefix"
10770 eval additional_includedir=\"$includedir\"
10771 eval additional_libdir=\"$libdir\"
10773 exec_prefix="$acl_save_exec_prefix"
10774 prefix="$acl_save_prefix"
10777 # Check whether --with-libintl-prefix was given.
10778 if test "${with_libintl_prefix+set}" = set; then :
10779 withval=$with_libintl_prefix;
10780 if test "X$withval" = "Xno"; then
10783 if test "X$withval" = "X"; then
10785 acl_save_prefix="$prefix"
10786 prefix="$acl_final_prefix"
10787 acl_save_exec_prefix="$exec_prefix"
10788 exec_prefix="$acl_final_exec_prefix"
10790 eval additional_includedir=\"$includedir\"
10791 eval additional_libdir=\"$libdir\"
10793 exec_prefix="$acl_save_exec_prefix"
10794 prefix="$acl_save_prefix"
10797 additional_includedir="$withval/include"
10798 additional_libdir="$withval/$acl_libdirstem"
10799 if test "$acl_libdirstem2" != "$acl_libdirstem" \
10800 && ! test -d "$withval/$acl_libdirstem"; then
10801 additional_libdir="$withval/$acl_libdirstem2"
10815 names_already_handled=
10816 names_next_round='intl '
10817 while test -n "$names_next_round"; do
10818 names_this_round="$names_next_round"
10820 for name in $names_this_round; do
10822 for n in $names_already_handled; do
10823 if test "$n" = "$name"; then
10824 already_handled=yes
10828 if test -z "$already_handled"; then
10829 names_already_handled="$names_already_handled $name"
10830 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
10831 eval value=\"\$HAVE_LIB$uppername\"
10832 if test -n "$value"; then
10833 if test "$value" = yes; then
10834 eval value=\"\$LIB$uppername\"
10835 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10836 eval value=\"\$LTLIB$uppername\"
10837 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10846 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
10847 if test -n "$acl_shlibext"; then
10848 shrext=".$acl_shlibext" # typically: shrext=.so
10852 if test $use_additional = yes; then
10853 dir="$additional_libdir"
10854 if test -n "$acl_shlibext"; then
10855 if test -f "$dir/$libname$shrext"; then
10857 found_so="$dir/$libname$shrext"
10859 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10860 ver=`(cd "$dir" && \
10861 for f in "$libname$shrext".*; do echo "$f"; done \
10862 | sed -e "s,^$libname$shrext\\\\.,," \
10863 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10864 | sed 1q ) 2>/dev/null`
10865 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10867 found_so="$dir/$libname$shrext.$ver"
10870 eval library_names=\"$acl_library_names_spec\"
10871 for f in $library_names; do
10872 if test -f "$dir/$f"; then
10881 if test "X$found_dir" = "X"; then
10882 if test -f "$dir/$libname.$acl_libext"; then
10884 found_a="$dir/$libname.$acl_libext"
10887 if test "X$found_dir" != "X"; then
10888 if test -f "$dir/$libname.la"; then
10889 found_la="$dir/$libname.la"
10893 if test "X$found_dir" = "X"; then
10894 for x in $LDFLAGS $LTLIBINTL; do
10896 acl_save_prefix="$prefix"
10897 prefix="$acl_final_prefix"
10898 acl_save_exec_prefix="$exec_prefix"
10899 exec_prefix="$acl_final_exec_prefix"
10901 exec_prefix="$acl_save_exec_prefix"
10902 prefix="$acl_save_prefix"
10906 dir=`echo "X$x" | sed -e 's/^X-L//'`
10907 if test -n "$acl_shlibext"; then
10908 if test -f "$dir/$libname$shrext"; then
10910 found_so="$dir/$libname$shrext"
10912 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10913 ver=`(cd "$dir" && \
10914 for f in "$libname$shrext".*; do echo "$f"; done \
10915 | sed -e "s,^$libname$shrext\\\\.,," \
10916 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10917 | sed 1q ) 2>/dev/null`
10918 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10920 found_so="$dir/$libname$shrext.$ver"
10923 eval library_names=\"$acl_library_names_spec\"
10924 for f in $library_names; do
10925 if test -f "$dir/$f"; then
10934 if test "X$found_dir" = "X"; then
10935 if test -f "$dir/$libname.$acl_libext"; then
10937 found_a="$dir/$libname.$acl_libext"
10940 if test "X$found_dir" != "X"; then
10941 if test -f "$dir/$libname.la"; then
10942 found_la="$dir/$libname.la"
10947 if test "X$found_dir" != "X"; then
10952 if test "X$found_dir" != "X"; then
10953 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
10954 if test "X$found_so" != "X"; then
10955 if test "$enable_rpath" = no \
10956 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
10957 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
10958 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10961 for x in $ltrpathdirs; do
10962 if test "X$x" = "X$found_dir"; then
10967 if test -z "$haveit"; then
10968 ltrpathdirs="$ltrpathdirs $found_dir"
10970 if test "$acl_hardcode_direct" = yes; then
10971 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10973 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
10974 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10976 for x in $rpathdirs; do
10977 if test "X$x" = "X$found_dir"; then
10982 if test -z "$haveit"; then
10983 rpathdirs="$rpathdirs $found_dir"
10987 for x in $LDFLAGS $LIBINTL; do
10989 acl_save_prefix="$prefix"
10990 prefix="$acl_final_prefix"
10991 acl_save_exec_prefix="$exec_prefix"
10992 exec_prefix="$acl_final_exec_prefix"
10994 exec_prefix="$acl_save_exec_prefix"
10995 prefix="$acl_save_prefix"
10997 if test "X$x" = "X-L$found_dir"; then
11002 if test -z "$haveit"; then
11003 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
11005 if test "$acl_hardcode_minus_L" != no; then
11006 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11008 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11014 if test "X$found_a" != "X"; then
11015 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
11017 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
11020 additional_includedir=
11021 case "$found_dir" in
11022 */$acl_libdirstem | */$acl_libdirstem/)
11023 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
11024 if test "$name" = 'intl'; then
11025 LIBINTL_PREFIX="$basedir"
11027 additional_includedir="$basedir/include"
11029 */$acl_libdirstem2 | */$acl_libdirstem2/)
11030 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
11031 if test "$name" = 'intl'; then
11032 LIBINTL_PREFIX="$basedir"
11034 additional_includedir="$basedir/include"
11037 if test "X$additional_includedir" != "X"; then
11038 if test "X$additional_includedir" != "X/usr/include"; then
11040 if test "X$additional_includedir" = "X/usr/local/include"; then
11041 if test -n "$GCC"; then
11043 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11047 if test -z "$haveit"; then
11048 for x in $CPPFLAGS $INCINTL; do
11050 acl_save_prefix="$prefix"
11051 prefix="$acl_final_prefix"
11052 acl_save_exec_prefix="$exec_prefix"
11053 exec_prefix="$acl_final_exec_prefix"
11055 exec_prefix="$acl_save_exec_prefix"
11056 prefix="$acl_save_prefix"
11058 if test "X$x" = "X-I$additional_includedir"; then
11063 if test -z "$haveit"; then
11064 if test -d "$additional_includedir"; then
11065 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
11071 if test -n "$found_la"; then
11072 save_libdir="$libdir"
11073 case "$found_la" in
11074 */* | *\\*) . "$found_la" ;;
11075 *) . "./$found_la" ;;
11077 libdir="$save_libdir"
11078 for dep in $dependency_libs; do
11081 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11082 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
11083 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
11085 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
11086 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
11087 if test -n "$GCC"; then
11089 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11093 if test -z "$haveit"; then
11095 for x in $LDFLAGS $LIBINTL; do
11097 acl_save_prefix="$prefix"
11098 prefix="$acl_final_prefix"
11099 acl_save_exec_prefix="$exec_prefix"
11100 exec_prefix="$acl_final_exec_prefix"
11102 exec_prefix="$acl_save_exec_prefix"
11103 prefix="$acl_save_prefix"
11105 if test "X$x" = "X-L$additional_libdir"; then
11110 if test -z "$haveit"; then
11111 if test -d "$additional_libdir"; then
11112 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
11116 for x in $LDFLAGS $LTLIBINTL; do
11118 acl_save_prefix="$prefix"
11119 prefix="$acl_final_prefix"
11120 acl_save_exec_prefix="$exec_prefix"
11121 exec_prefix="$acl_final_exec_prefix"
11123 exec_prefix="$acl_save_exec_prefix"
11124 prefix="$acl_save_prefix"
11126 if test "X$x" = "X-L$additional_libdir"; then
11131 if test -z "$haveit"; then
11132 if test -d "$additional_libdir"; then
11133 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
11140 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11141 if test "$enable_rpath" != no; then
11143 for x in $rpathdirs; do
11144 if test "X$x" = "X$dir"; then
11149 if test -z "$haveit"; then
11150 rpathdirs="$rpathdirs $dir"
11153 for x in $ltrpathdirs; do
11154 if test "X$x" = "X$dir"; then
11159 if test -z "$haveit"; then
11160 ltrpathdirs="$ltrpathdirs $dir"
11165 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11168 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11171 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
11172 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
11178 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11179 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
11185 if test "X$rpathdirs" != "X"; then
11186 if test -n "$acl_hardcode_libdir_separator"; then
11188 for found_dir in $rpathdirs; do
11189 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
11191 acl_save_libdir="$libdir"
11193 eval flag=\"$acl_hardcode_libdir_flag_spec\"
11194 libdir="$acl_save_libdir"
11195 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11197 for found_dir in $rpathdirs; do
11198 acl_save_libdir="$libdir"
11199 libdir="$found_dir"
11200 eval flag=\"$acl_hardcode_libdir_flag_spec\"
11201 libdir="$acl_save_libdir"
11202 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11206 if test "X$ltrpathdirs" != "X"; then
11207 for found_dir in $ltrpathdirs; do
11208 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
11217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
11218 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
11219 if eval \${$gt_func_gnugettext_libintl+:} false; then :
11220 $as_echo_n "(cached) " >&6
11222 gt_save_CPPFLAGS="$CPPFLAGS"
11223 CPPFLAGS="$CPPFLAGS $INCINTL"
11224 gt_save_LIBS="$LIBS"
11225 LIBS="$LIBS $LIBINTL"
11226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11227 /* end confdefs.h. */
11229 #include <libintl.h>
11230 $gt_revision_test_code
11231 extern int _nl_msg_cat_cntr;
11236 const char *_nl_expand_alias (const char *);
11242 bindtextdomain ("", "");
11243 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11249 if ac_fn_c_try_link "$LINENO"; then :
11250 eval "$gt_func_gnugettext_libintl=yes"
11252 eval "$gt_func_gnugettext_libintl=no"
11254 rm -f core conftest.err conftest.$ac_objext \
11255 conftest$ac_exeext conftest.$ac_ext
11256 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
11257 LIBS="$LIBS $LIBICONV"
11258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11259 /* end confdefs.h. */
11261 #include <libintl.h>
11262 $gt_revision_test_code
11263 extern int _nl_msg_cat_cntr;
11268 const char *_nl_expand_alias (const char *);
11274 bindtextdomain ("", "");
11275 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11281 if ac_fn_c_try_link "$LINENO"; then :
11282 LIBINTL="$LIBINTL $LIBICONV"
11283 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
11284 eval "$gt_func_gnugettext_libintl=yes"
11287 rm -f core conftest.err conftest.$ac_objext \
11288 conftest$ac_exeext conftest.$ac_ext
11290 CPPFLAGS="$gt_save_CPPFLAGS"
11291 LIBS="$gt_save_LIBS"
11293 eval ac_res=\$$gt_func_gnugettext_libintl
11294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11295 $as_echo "$ac_res" >&6; }
11298 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
11299 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
11300 && test "$PACKAGE" != gettext-runtime \
11301 && test "$PACKAGE" != gettext-tools; }; then
11302 gt_use_preinstalled_gnugettext=yes
11310 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
11311 nls_cv_use_gnu_gettext=yes
11315 if test "$nls_cv_use_gnu_gettext" = "yes"; then
11316 BUILD_INCLUDED_LIBINTL=yes
11317 USE_INCLUDED_LIBINTL=yes
11318 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
11319 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
11320 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
11324 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11325 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11330 if test -n "$INTL_MACOSX_LIBS"; then
11331 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11332 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11333 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
11334 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
11338 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11339 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11341 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
11349 $as_echo_n "checking whether to use NLS... " >&6; }
11350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
11351 $as_echo "$USE_NLS" >&6; }
11352 if test "$USE_NLS" = "yes"; then
11353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
11354 $as_echo_n "checking where the gettext function comes from... " >&6; }
11355 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11356 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
11357 gt_source="external libintl"
11362 gt_source="included intl directory"
11364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
11365 $as_echo "$gt_source" >&6; }
11368 if test "$USE_NLS" = "yes"; then
11370 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11371 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
11372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
11373 $as_echo_n "checking how to link with libintl... " >&6; }
11374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
11375 $as_echo "$LIBINTL" >&6; }
11377 for element in $INCINTL; do
11379 for x in $CPPFLAGS; do
11381 acl_save_prefix="$prefix"
11382 prefix="$acl_final_prefix"
11383 acl_save_exec_prefix="$exec_prefix"
11384 exec_prefix="$acl_final_exec_prefix"
11386 exec_prefix="$acl_save_exec_prefix"
11387 prefix="$acl_save_prefix"
11389 if test "X$x" = "X$element"; then
11394 if test -z "$haveit"; then
11395 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11402 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
11405 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
11413 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
11414 BUILD_INCLUDED_LIBINTL=yes
11421 nls_cv_header_intl=
11422 nls_cv_header_libgt=
11434 if test "$USE_INCLUDED_LIBINTL" = yes; then
11435 INTLOBJS="\$(GETTOBJS)"
11439 INTL_LIBTOOL_SUFFIX_PREFIX=
11443 INTLLIBS="$LIBINTL"
11451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11452 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11454 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11455 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
11456 $as_echo_n "(cached) " >&6
11458 cat >conftest.make <<\_ACEOF
11461 @echo '@@@%%%=$(MAKE)=@@@%%%'
11463 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
11464 case `${MAKE-make} -f conftest.make 2>/dev/null` in
11465 *@@@%%%=?*=@@@%%%*)
11466 eval ac_cv_prog_make_${ac_make}_set=yes;;
11468 eval ac_cv_prog_make_${ac_make}_set=no;;
11470 rm -f conftest.make
11472 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11474 $as_echo "yes" >&6; }
11477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11478 $as_echo "no" >&6; }
11479 SET_MAKE="MAKE=${MAKE-make}"
11482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
11483 $as_echo_n "checking for GNU make... " >&6; }
11484 if ${_cv_gnu_make_command+:} false; then :
11485 $as_echo_n "(cached) " >&6
11487 _cv_gnu_make_command='' ;
11488 for a in "$MAKE" make gmake gnumake ; do
11489 if test -z "$a" ; then continue ; fi ;
11490 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
11491 _cv_gnu_make_command=$a ;
11497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
11498 $as_echo "$_cv_gnu_make_command" >&6; } ;
11499 if test "x$_cv_gnu_make_command" != "x" ; then
11505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
11506 $as_echo "\"Not found\"" >&6; };
11511 # Extract the first word of "ln", so it can be a program name with args.
11512 set dummy ln; ac_word=$2
11513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11514 $as_echo_n "checking for $ac_word... " >&6; }
11515 if ${ac_cv_path_LN+:} false; then :
11516 $as_echo_n "(cached) " >&6
11520 ac_cv_path_LN="$LN" # Let the user override the test with a path.
11523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11524 for as_dir in $PATH
11527 test -z "$as_dir" && as_dir=.
11528 for ac_exec_ext in '' $ac_executable_extensions; do
11529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11530 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
11531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11538 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
11543 if test -n "$LN"; then
11544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
11545 $as_echo "$LN" >&6; }
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11548 $as_echo "no" >&6; }
11552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11553 $as_echo_n "checking whether ln -s works... " >&6; }
11555 if test "$LN_S" = "ln -s"; then
11556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11557 $as_echo "yes" >&6; }
11559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11560 $as_echo "no, using $LN_S" >&6; }
11563 # Extract the first word of "mv", so it can be a program name with args.
11564 set dummy mv; ac_word=$2
11565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11566 $as_echo_n "checking for $ac_word... " >&6; }
11567 if ${ac_cv_path_MV+:} false; then :
11568 $as_echo_n "(cached) " >&6
11572 ac_cv_path_MV="$MV" # Let the user override the test with a path.
11575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11576 for as_dir in $PATH
11579 test -z "$as_dir" && as_dir=.
11580 for ac_exec_ext in '' $ac_executable_extensions; do
11581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11582 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
11583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11590 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
11595 if test -n "$MV"; then
11596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
11597 $as_echo "$MV" >&6; }
11599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11600 $as_echo "no" >&6; }
11604 # Extract the first word of "cp", so it can be a program name with args.
11605 set dummy cp; ac_word=$2
11606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11607 $as_echo_n "checking for $ac_word... " >&6; }
11608 if ${ac_cv_path_CP+:} false; then :
11609 $as_echo_n "(cached) " >&6
11613 ac_cv_path_CP="$CP" # Let the user override the test with a path.
11616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11617 for as_dir in $PATH
11620 test -z "$as_dir" && as_dir=.
11621 for ac_exec_ext in '' $ac_executable_extensions; do
11622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11623 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
11624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11631 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
11636 if test -n "$CP"; then
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
11638 $as_echo "$CP" >&6; }
11640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11641 $as_echo "no" >&6; }
11645 # Extract the first word of "rm", so it can be a program name with args.
11646 set dummy rm; ac_word=$2
11647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11648 $as_echo_n "checking for $ac_word... " >&6; }
11649 if ${ac_cv_path_RM+:} false; then :
11650 $as_echo_n "(cached) " >&6
11654 ac_cv_path_RM="$RM" # Let the user override the test with a path.
11657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11658 for as_dir in $PATH
11661 test -z "$as_dir" && as_dir=.
11662 for ac_exec_ext in '' $ac_executable_extensions; do
11663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11664 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
11665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11672 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11677 if test -n "$RM"; then
11678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
11679 $as_echo "$RM" >&6; }
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11682 $as_echo "no" >&6; }
11686 # Extract the first word of "chmod", so it can be a program name with args.
11687 set dummy chmod; ac_word=$2
11688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11689 $as_echo_n "checking for $ac_word... " >&6; }
11690 if ${ac_cv_path_CHMOD+:} false; then :
11691 $as_echo_n "(cached) " >&6
11695 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11699 for as_dir in $PATH
11702 test -z "$as_dir" && as_dir=.
11703 for ac_exec_ext in '' $ac_executable_extensions; do
11704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11705 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
11706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11713 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11717 CHMOD=$ac_cv_path_CHMOD
11718 if test -n "$CHMOD"; then
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
11720 $as_echo "$CHMOD" >&6; }
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11723 $as_echo "no" >&6; }
11727 for ac_prog in gawk mawk nawk awk
11729 # Extract the first word of "$ac_prog", so it can be a program name with args.
11730 set dummy $ac_prog; ac_word=$2
11731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11732 $as_echo_n "checking for $ac_word... " >&6; }
11733 if ${ac_cv_prog_AWK+:} false; then :
11734 $as_echo_n "(cached) " >&6
11736 if test -n "$AWK"; then
11737 ac_cv_prog_AWK="$AWK" # Let the user override the test.
11739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11740 for as_dir in $PATH
11743 test -z "$as_dir" && as_dir=.
11744 for ac_exec_ext in '' $ac_executable_extensions; do
11745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11746 ac_cv_prog_AWK="$ac_prog"
11747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11756 AWK=$ac_cv_prog_AWK
11757 if test -n "$AWK"; then
11758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11759 $as_echo "$AWK" >&6; }
11761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11762 $as_echo "no" >&6; }
11766 test -n "$AWK" && break
11769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11770 $as_echo_n "checking for egrep... " >&6; }
11771 if ${ac_cv_path_EGREP+:} false; then :
11772 $as_echo_n "(cached) " >&6
11774 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11775 then ac_cv_path_EGREP="$GREP -E"
11777 if test -z "$EGREP"; then
11778 ac_path_EGREP_found=false
11779 # Loop through the user's path and test for each of PROGNAME-LIST
11780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11781 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11784 test -z "$as_dir" && as_dir=.
11785 for ac_prog in egrep; do
11786 for ac_exec_ext in '' $ac_executable_extensions; do
11787 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11788 as_fn_executable_p "$ac_path_EGREP" || continue
11789 # Check for GNU ac_path_EGREP and select it if it is found.
11790 # Check for GNU $ac_path_EGREP
11791 case `"$ac_path_EGREP" --version 2>&1` in
11793 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11796 $as_echo_n 0123456789 >"conftest.in"
11799 cat "conftest.in" "conftest.in" >"conftest.tmp"
11800 mv "conftest.tmp" "conftest.in"
11801 cp "conftest.in" "conftest.nl"
11802 $as_echo 'EGREP' >> "conftest.nl"
11803 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11804 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11805 as_fn_arith $ac_count + 1 && ac_count=$as_val
11806 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11807 # Best one so far, save it but keep looking for a better one
11808 ac_cv_path_EGREP="$ac_path_EGREP"
11809 ac_path_EGREP_max=$ac_count
11811 # 10*(2^10) chars as input seems more than enough
11812 test $ac_count -gt 10 && break
11814 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11817 $ac_path_EGREP_found && break 3
11822 if test -z "$ac_cv_path_EGREP"; then
11823 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11826 ac_cv_path_EGREP=$EGREP
11831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11832 $as_echo "$ac_cv_path_EGREP" >&6; }
11833 EGREP="$ac_cv_path_EGREP"
11836 # Extract the first word of "sed", so it can be a program name with args.
11837 set dummy sed; ac_word=$2
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11839 $as_echo_n "checking for $ac_word... " >&6; }
11840 if ${ac_cv_path_SED+:} false; then :
11841 $as_echo_n "(cached) " >&6
11845 ac_cv_path_SED="$SED" # Let the user override the test with a path.
11848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11849 for as_dir in $PATH
11852 test -z "$as_dir" && as_dir=.
11853 for ac_exec_ext in '' $ac_executable_extensions; do
11854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11855 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
11856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11863 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11867 SED=$ac_cv_path_SED
11868 if test -n "$SED"; then
11869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
11870 $as_echo "$SED" >&6; }
11872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11873 $as_echo "no" >&6; }
11877 # Extract the first word of "perl", so it can be a program name with args.
11878 set dummy perl; ac_word=$2
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11880 $as_echo_n "checking for $ac_word... " >&6; }
11881 if ${ac_cv_path_PERL+:} false; then :
11882 $as_echo_n "(cached) " >&6
11886 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11890 for as_dir in $PATH
11893 test -z "$as_dir" && as_dir=.
11894 for ac_exec_ext in '' $ac_executable_extensions; do
11895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11896 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
11897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11904 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
11908 PERL=$ac_cv_path_PERL
11909 if test -n "$PERL"; then
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
11911 $as_echo "$PERL" >&6; }
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11914 $as_echo "no" >&6; }
11918 # Extract the first word of "ldconfig", so it can be a program name with args.
11919 set dummy ldconfig; ac_word=$2
11920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11921 $as_echo_n "checking for $ac_word... " >&6; }
11922 if ${ac_cv_path_LDCONFIG+:} false; then :
11923 $as_echo_n "(cached) " >&6
11927 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
11930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11931 for as_dir in $PATH
11934 test -z "$as_dir" && as_dir=.
11935 for ac_exec_ext in '' $ac_executable_extensions; do
11936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11937 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
11938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11945 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
11949 LDCONFIG=$ac_cv_path_LDCONFIG
11950 if test -n "$LDCONFIG"; then
11951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
11952 $as_echo "$LDCONFIG" >&6; }
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11955 $as_echo "no" >&6; }
11959 if test -n "$ac_tool_prefix"; then
11960 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11961 set dummy ${ac_tool_prefix}ar; ac_word=$2
11962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11963 $as_echo_n "checking for $ac_word... " >&6; }
11964 if ${ac_cv_prog_AR+:} false; then :
11965 $as_echo_n "(cached) " >&6
11967 if test -n "$AR"; then
11968 ac_cv_prog_AR="$AR" # Let the user override the test.
11970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11971 for as_dir in $PATH
11974 test -z "$as_dir" && as_dir=.
11975 for ac_exec_ext in '' $ac_executable_extensions; do
11976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11977 ac_cv_prog_AR="${ac_tool_prefix}ar"
11978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11988 if test -n "$AR"; then
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11990 $as_echo "$AR" >&6; }
11992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11993 $as_echo "no" >&6; }
11998 if test -z "$ac_cv_prog_AR"; then
12000 # Extract the first word of "ar", so it can be a program name with args.
12001 set dummy ar; ac_word=$2
12002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12003 $as_echo_n "checking for $ac_word... " >&6; }
12004 if ${ac_cv_prog_ac_ct_AR+:} false; then :
12005 $as_echo_n "(cached) " >&6
12007 if test -n "$ac_ct_AR"; then
12008 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12011 for as_dir in $PATH
12014 test -z "$as_dir" && as_dir=.
12015 for ac_exec_ext in '' $ac_executable_extensions; do
12016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12017 ac_cv_prog_ac_ct_AR="ar"
12018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12027 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12028 if test -n "$ac_ct_AR"; then
12029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12030 $as_echo "$ac_ct_AR" >&6; }
12032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12033 $as_echo "no" >&6; }
12036 if test "x$ac_ct_AR" = x; then
12039 case $cross_compiling:$ac_tool_warned in
12041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12042 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12043 ac_tool_warned=yes ;;
12048 AR="$ac_cv_prog_AR"
12051 if test -n "$ac_tool_prefix"; then
12052 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12053 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12055 $as_echo_n "checking for $ac_word... " >&6; }
12056 if ${ac_cv_prog_RANLIB+:} false; then :
12057 $as_echo_n "(cached) " >&6
12059 if test -n "$RANLIB"; then
12060 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12063 for as_dir in $PATH
12066 test -z "$as_dir" && as_dir=.
12067 for ac_exec_ext in '' $ac_executable_extensions; do
12068 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12069 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12079 RANLIB=$ac_cv_prog_RANLIB
12080 if test -n "$RANLIB"; then
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12082 $as_echo "$RANLIB" >&6; }
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12085 $as_echo "no" >&6; }
12090 if test -z "$ac_cv_prog_RANLIB"; then
12091 ac_ct_RANLIB=$RANLIB
12092 # Extract the first word of "ranlib", so it can be a program name with args.
12093 set dummy ranlib; ac_word=$2
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12095 $as_echo_n "checking for $ac_word... " >&6; }
12096 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12097 $as_echo_n "(cached) " >&6
12099 if test -n "$ac_ct_RANLIB"; then
12100 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12103 for as_dir in $PATH
12106 test -z "$as_dir" && as_dir=.
12107 for ac_exec_ext in '' $ac_executable_extensions; do
12108 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12109 ac_cv_prog_ac_ct_RANLIB="ranlib"
12110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12119 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12120 if test -n "$ac_ct_RANLIB"; then
12121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12122 $as_echo "$ac_ct_RANLIB" >&6; }
12124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12125 $as_echo "no" >&6; }
12128 if test "x$ac_ct_RANLIB" = x; then
12131 case $cross_compiling:$ac_tool_warned in
12133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12134 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12135 ac_tool_warned=yes ;;
12137 RANLIB=$ac_ct_RANLIB
12140 RANLIB="$ac_cv_prog_RANLIB"
12143 if test -n "$ac_tool_prefix"; then
12144 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12145 set dummy ${ac_tool_prefix}strip; ac_word=$2
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12147 $as_echo_n "checking for $ac_word... " >&6; }
12148 if ${ac_cv_prog_STRIP+:} false; then :
12149 $as_echo_n "(cached) " >&6
12151 if test -n "$STRIP"; then
12152 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12155 for as_dir in $PATH
12158 test -z "$as_dir" && as_dir=.
12159 for ac_exec_ext in '' $ac_executable_extensions; do
12160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12161 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12171 STRIP=$ac_cv_prog_STRIP
12172 if test -n "$STRIP"; then
12173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12174 $as_echo "$STRIP" >&6; }
12176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12177 $as_echo "no" >&6; }
12182 if test -z "$ac_cv_prog_STRIP"; then
12184 # Extract the first word of "strip", so it can be a program name with args.
12185 set dummy strip; ac_word=$2
12186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12187 $as_echo_n "checking for $ac_word... " >&6; }
12188 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12189 $as_echo_n "(cached) " >&6
12191 if test -n "$ac_ct_STRIP"; then
12192 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12195 for as_dir in $PATH
12198 test -z "$as_dir" && as_dir=.
12199 for ac_exec_ext in '' $ac_executable_extensions; do
12200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12201 ac_cv_prog_ac_ct_STRIP="strip"
12202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12211 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12212 if test -n "$ac_ct_STRIP"; then
12213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12214 $as_echo "$ac_ct_STRIP" >&6; }
12216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12217 $as_echo "no" >&6; }
12220 if test "x$ac_ct_STRIP" = x; then
12223 case $cross_compiling:$ac_tool_warned in
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12226 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12227 ac_tool_warned=yes ;;
12232 STRIP="$ac_cv_prog_STRIP"
12235 # Extract the first word of "makeinfo", so it can be a program name with args.
12236 set dummy makeinfo; ac_word=$2
12237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12238 $as_echo_n "checking for $ac_word... " >&6; }
12239 if ${ac_cv_prog_MAKEINFO+:} false; then :
12240 $as_echo_n "(cached) " >&6
12242 if test -n "$MAKEINFO"; then
12243 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
12245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12246 for as_dir in $PATH
12249 test -z "$as_dir" && as_dir=.
12250 for ac_exec_ext in '' $ac_executable_extensions; do
12251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12252 ac_cv_prog_MAKEINFO="makeinfo"
12253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12262 MAKEINFO=$ac_cv_prog_MAKEINFO
12263 if test -n "$MAKEINFO"; then
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
12265 $as_echo "$MAKEINFO" >&6; }
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12268 $as_echo "no" >&6; }
12272 if test "_$MAKEINFO" = "_"; then
12273 MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
12275 case "$MAKEINFO" in
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
12278 *** Makeinfo is missing. Info documentation will not be built." >&5
12279 $as_echo "$as_me: WARNING:
12280 *** Makeinfo is missing. Info documentation will not be built." >&2;}
12288 # See if we need a separate native compiler.
12289 if test $cross_compiling = no; then
12293 for ac_prog in gcc cc
12295 # Extract the first word of "$ac_prog", so it can be a program name with args.
12296 set dummy $ac_prog; ac_word=$2
12297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12298 $as_echo_n "checking for $ac_word... " >&6; }
12299 if ${ac_cv_prog_BUILD_CC+:} false; then :
12300 $as_echo_n "(cached) " >&6
12302 if test -n "$BUILD_CC"; then
12303 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
12305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12306 for as_dir in $PATH
12309 test -z "$as_dir" && as_dir=.
12310 for ac_exec_ext in '' $ac_executable_extensions; do
12311 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12312 ac_cv_prog_BUILD_CC="$ac_prog"
12313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12322 BUILD_CC=$ac_cv_prog_BUILD_CC
12323 if test -n "$BUILD_CC"; then
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
12325 $as_echo "$BUILD_CC" >&6; }
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12328 $as_echo "no" >&6; }
12332 test -n "$BUILD_CC" && break
12336 for ac_header in dirent.h errno.h execinfo.h getopt.h malloc.h mntent.h paths.h semaphore.h setjmp.h signal.h stdarg.h stdint.h stdlib.h termios.h termio.h unistd.h utime.h attr/xattr.h linux/falloc.h linux/fd.h linux/major.h linux/loop.h net/if_dl.h netinet/in.h sys/acl.h sys/disklabel.h sys/disk.h sys/file.h sys/ioctl.h sys/key.h sys/mkdev.h sys/mman.h sys/mount.h sys/prctl.h sys/resource.h sys/select.h sys/socket.h sys/sockio.h sys/stat.h sys/syscall.h sys/sysctl.h sys/sysmacros.h sys/time.h sys/types.h sys/un.h sys/wait.h
12338 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12339 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12340 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12341 cat >>confdefs.h <<_ACEOF
12342 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12349 for ac_header in net/if.h
12351 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
12352 #if HAVE_SYS_TYPES_H
12353 #include <sys/types.h>
12355 #if HAVE_SYS_SOCKET
12356 #include <sys/socket.h>
12360 if test "x$ac_cv_header_net_if_h" = xyes; then :
12361 cat >>confdefs.h <<_ACEOF
12362 #define HAVE_NET_IF_H 1
12369 for ac_func in vprintf
12371 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
12372 if test "x$ac_cv_func_vprintf" = xyes; then :
12373 cat >>confdefs.h <<_ACEOF
12374 #define HAVE_VPRINTF 1
12377 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
12378 if test "x$ac_cv_func__doprnt" = xyes; then :
12380 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
12388 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
12390 if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
12392 $as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
12396 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
12397 if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
12399 cat >>confdefs.h <<_ACEOF
12400 #define HAVE_STRUCT_STAT_ST_ATIM 1
12406 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
12408 if test "x$ac_cv_type_ssize_t" = xyes; then :
12410 $as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
12414 ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
12416 if test "x$ac_cv_have_decl_llseek" = xyes; then :
12418 $as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
12422 ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
12423 #define _LARGEFILE64_SOURCE
12424 #include <unistd.h>
12426 if test "x$ac_cv_have_decl_lseek64" = xyes; then :
12428 $as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
12432 # The cast to long int works around a bug in the HP C Compiler
12433 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12434 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12435 # This bug is HP SR number 8606223364.
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
12437 $as_echo_n "checking size of short... " >&6; }
12438 if ${ac_cv_sizeof_short+:} false; then :
12439 $as_echo_n "(cached) " >&6
12441 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
12444 if test "$ac_cv_type_short" = yes; then
12445 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12446 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12447 as_fn_error 77 "cannot compute sizeof (short)
12448 See \`config.log' for more details" "$LINENO" 5; }
12450 ac_cv_sizeof_short=0
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
12456 $as_echo "$ac_cv_sizeof_short" >&6; }
12460 cat >>confdefs.h <<_ACEOF
12461 #define SIZEOF_SHORT $ac_cv_sizeof_short
12465 # The cast to long int works around a bug in the HP C Compiler
12466 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12467 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12468 # This bug is HP SR number 8606223364.
12469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12470 $as_echo_n "checking size of int... " >&6; }
12471 if ${ac_cv_sizeof_int+:} false; then :
12472 $as_echo_n "(cached) " >&6
12474 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
12477 if test "$ac_cv_type_int" = yes; then
12478 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12479 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12480 as_fn_error 77 "cannot compute sizeof (int)
12481 See \`config.log' for more details" "$LINENO" 5; }
12488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12489 $as_echo "$ac_cv_sizeof_int" >&6; }
12493 cat >>confdefs.h <<_ACEOF
12494 #define SIZEOF_INT $ac_cv_sizeof_int
12498 # The cast to long int works around a bug in the HP C Compiler
12499 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12500 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12501 # This bug is HP SR number 8606223364.
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12503 $as_echo_n "checking size of long... " >&6; }
12504 if ${ac_cv_sizeof_long+:} false; then :
12505 $as_echo_n "(cached) " >&6
12507 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
12510 if test "$ac_cv_type_long" = yes; then
12511 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12512 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12513 as_fn_error 77 "cannot compute sizeof (long)
12514 See \`config.log' for more details" "$LINENO" 5; }
12516 ac_cv_sizeof_long=0
12521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12522 $as_echo "$ac_cv_sizeof_long" >&6; }
12526 cat >>confdefs.h <<_ACEOF
12527 #define SIZEOF_LONG $ac_cv_sizeof_long
12531 # The cast to long int works around a bug in the HP C Compiler
12532 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12533 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12534 # This bug is HP SR number 8606223364.
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12536 $as_echo_n "checking size of long long... " >&6; }
12537 if ${ac_cv_sizeof_long_long+:} false; then :
12538 $as_echo_n "(cached) " >&6
12540 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
12543 if test "$ac_cv_type_long_long" = yes; then
12544 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12545 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12546 as_fn_error 77 "cannot compute sizeof (long long)
12547 See \`config.log' for more details" "$LINENO" 5; }
12549 ac_cv_sizeof_long_long=0
12554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12555 $as_echo "$ac_cv_sizeof_long_long" >&6; }
12559 cat >>confdefs.h <<_ACEOF
12560 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12564 # The cast to long int works around a bug in the HP C Compiler
12565 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12566 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12567 # This bug is HP SR number 8606223364.
12568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
12569 $as_echo_n "checking size of off_t... " >&6; }
12570 if ${ac_cv_sizeof_off_t+:} false; then :
12571 $as_echo_n "(cached) " >&6
12573 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
12576 if test "$ac_cv_type_off_t" = yes; then
12577 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12578 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12579 as_fn_error 77 "cannot compute sizeof (off_t)
12580 See \`config.log' for more details" "$LINENO" 5; }
12582 ac_cv_sizeof_off_t=0
12587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
12588 $as_echo "$ac_cv_sizeof_off_t" >&6; }
12592 cat >>confdefs.h <<_ACEOF
12593 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
12597 # The cast to long int works around a bug in the HP C Compiler
12598 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12599 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12600 # This bug is HP SR number 8606223364.
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
12602 $as_echo_n "checking size of time_t... " >&6; }
12603 if ${ac_cv_sizeof_time_t+:} false; then :
12604 $as_echo_n "(cached) " >&6
12606 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then :
12609 if test "$ac_cv_type_time_t" = yes; then
12610 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12611 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12612 as_fn_error 77 "cannot compute sizeof (time_t)
12613 See \`config.log' for more details" "$LINENO" 5; }
12615 ac_cv_sizeof_time_t=0
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
12621 $as_echo "$ac_cv_sizeof_time_t" >&6; }
12625 cat >>confdefs.h <<_ACEOF
12626 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
12630 SIZEOF_SHORT=$ac_cv_sizeof_short
12631 SIZEOF_INT=$ac_cv_sizeof_int
12632 SIZEOF_LONG=$ac_cv_sizeof_long
12633 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
12634 SIZEOF_OFF_T=$ac_cv_sizeof_off_t
12635 SIZEOF_TIME_T=$ac_cv_sizeof_time_t
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12643 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12644 if ${ac_cv_c_bigendian+:} false; then :
12645 $as_echo_n "(cached) " >&6
12647 ac_cv_c_bigendian=unknown
12648 # See if we're dealing with a universal compiler.
12649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12650 /* end confdefs.h. */
12651 #ifndef __APPLE_CC__
12652 not a universal capable compiler
12657 if ac_fn_c_try_compile "$LINENO"; then :
12659 # Check for potential -arch flags. It is not universal unless
12660 # there are at least two -arch flags with different values.
12663 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12664 if test -n "$ac_prev"; then
12666 i?86 | x86_64 | ppc | ppc64)
12667 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12670 ac_cv_c_bigendian=universal
12676 elif test "x$ac_word" = "x-arch"; then
12681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12682 if test $ac_cv_c_bigendian = unknown; then
12683 # See if sys/param.h defines the BYTE_ORDER macro.
12684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12685 /* end confdefs.h. */
12686 #include <sys/types.h>
12687 #include <sys/param.h>
12692 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12693 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12695 bogus endian macros
12702 if ac_fn_c_try_compile "$LINENO"; then :
12703 # It does; now see whether it defined to BIG_ENDIAN or not.
12704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12705 /* end confdefs.h. */
12706 #include <sys/types.h>
12707 #include <sys/param.h>
12712 #if BYTE_ORDER != BIG_ENDIAN
12720 if ac_fn_c_try_compile "$LINENO"; then :
12721 ac_cv_c_bigendian=yes
12723 ac_cv_c_bigendian=no
12725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12729 if test $ac_cv_c_bigendian = unknown; then
12730 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12732 /* end confdefs.h. */
12733 #include <limits.h>
12738 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12739 bogus endian macros
12746 if ac_fn_c_try_compile "$LINENO"; then :
12747 # It does; now see whether it defined to _BIG_ENDIAN or not.
12748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12749 /* end confdefs.h. */
12750 #include <limits.h>
12755 #ifndef _BIG_ENDIAN
12763 if ac_fn_c_try_compile "$LINENO"; then :
12764 ac_cv_c_bigendian=yes
12766 ac_cv_c_bigendian=no
12768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12772 if test $ac_cv_c_bigendian = unknown; then
12773 # Compile a test program.
12774 if test "$cross_compiling" = yes; then :
12775 # Try to guess by grepping values from an object file.
12776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12777 /* end confdefs.h. */
12778 short int ascii_mm[] =
12779 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12780 short int ascii_ii[] =
12781 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12782 int use_ascii (int i) {
12783 return ascii_mm[i] + ascii_ii[i];
12785 short int ebcdic_ii[] =
12786 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12787 short int ebcdic_mm[] =
12788 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12789 int use_ebcdic (int i) {
12790 return ebcdic_mm[i] + ebcdic_ii[i];
12797 return use_ascii (foo) == use_ebcdic (foo);
12802 if ac_fn_c_try_compile "$LINENO"; then :
12803 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12804 ac_cv_c_bigendian=yes
12806 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12807 if test "$ac_cv_c_bigendian" = unknown; then
12808 ac_cv_c_bigendian=no
12810 # finding both strings is unlikely to happen, but who knows?
12811 ac_cv_c_bigendian=unknown
12815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12818 /* end confdefs.h. */
12819 $ac_includes_default
12824 /* Are we little or big endian? From Harbison&Steele. */
12828 char c[sizeof (long int)];
12831 return u.c[sizeof (long int) - 1] == 1;
12837 if ac_fn_c_try_run "$LINENO"; then :
12838 ac_cv_c_bigendian=no
12840 ac_cv_c_bigendian=yes
12842 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12843 conftest.$ac_objext conftest.beam conftest.$ac_ext
12848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12849 $as_echo "$ac_cv_c_bigendian" >&6; }
12850 case $ac_cv_c_bigendian in #(
12852 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12858 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12862 as_fn_error $? "unknown endianness
12863 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12866 if test $cross_compiling = no; then
12867 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12869 CROSS_COMPILE="1" BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12871 ASM_TYPES_HEADER=./asm_types.h
12873 echo "/* These defines are needed for the public ext2fs.h header file */" \
12875 if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
12876 uniq tmp_config.$$ >> public_config.h
12878 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
12880 if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
12881 uniq tmp_config.$$ >> public_config.h
12883 echo "#undef WORDS_BIGENDIAN" >> public_config.h
12885 rm -f tmp_config.$$
12886 PUBLIC_CONFIG_HEADER=./public_config.h
12888 for ac_header in inttypes.h
12890 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
12891 if test "x$ac_cv_header_inttypes_h" = xyes; then :
12892 cat >>confdefs.h <<_ACEOF
12893 #define HAVE_INTTYPES_H 1
12900 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
12901 if test "x$ac_cv_type_intptr_t" = xyes; then :
12903 cat >>confdefs.h <<_ACEOF
12904 #define HAVE_INTPTR_T 1
12910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5
12911 $as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
12912 if ${e2fsprogs_cv_struct_st_flags+:} false; then :
12913 $as_echo_n "(cached) " >&6
12915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12916 /* end confdefs.h. */
12917 #include <sys/stat.h>
12921 struct stat stat; stat.st_flags = 0;
12926 if ac_fn_c_try_compile "$LINENO"; then :
12927 e2fsprogs_cv_struct_st_flags=yes
12929 e2fsprogs_cv_struct_st_flags=no
12931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
12935 $as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
12936 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
12937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
12938 $as_echo_n "checking whether st_flags field is useful... " >&6; }
12939 if ${e2fsprogs_cv_struct_st_flags_immut+:} false; then :
12940 $as_echo_n "(cached) " >&6
12942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12943 /* end confdefs.h. */
12944 #include <sys/stat.h>
12948 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
12953 if ac_fn_c_try_compile "$LINENO"; then :
12954 e2fsprogs_cv_struct_st_flags_immut=yes
12956 e2fsprogs_cv_struct_st_flags_immut=no
12958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
12962 $as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
12963 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
12965 $as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
12969 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
12970 #include <sys/socket.h>
12972 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
12974 cat >>confdefs.h <<_ACEOF
12975 #define HAVE_SA_LEN 1
12980 if test -n "$BLKID_CMT"; then
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5
12982 $as_echo_n "checking for library containing blkid_probe_all... " >&6; }
12983 if ${ac_cv_search_blkid_probe_all+:} false; then :
12984 $as_echo_n "(cached) " >&6
12986 ac_func_search_save_LIBS=$LIBS
12987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12988 /* end confdefs.h. */
12990 /* Override any GCC internal prototype to avoid an error.
12991 Use char because int might match the return type of a GCC
12992 builtin and then its argument prototype would still apply. */
12996 char blkid_probe_all ();
13000 return blkid_probe_all ();
13005 for ac_lib in '' blkid; do
13006 if test -z "$ac_lib"; then
13007 ac_res="none required"
13010 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13012 if ac_fn_c_try_link "$LINENO"; then :
13013 ac_cv_search_blkid_probe_all=$ac_res
13015 rm -f core conftest.err conftest.$ac_objext \
13017 if ${ac_cv_search_blkid_probe_all+:} false; then :
13021 if ${ac_cv_search_blkid_probe_all+:} false; then :
13024 ac_cv_search_blkid_probe_all=no
13026 rm conftest.$ac_ext
13027 LIBS=$ac_func_search_save_LIBS
13029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5
13030 $as_echo "$ac_cv_search_blkid_probe_all" >&6; }
13031 ac_res=$ac_cv_search_blkid_probe_all
13032 if test "$ac_res" != no; then :
13033 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13038 for ac_func in __secure_getenv add_key backtrace blkid_probe_get_topology blkid_probe_enable_partitions chflags fadvise64 fallocate fallocate64 fchown fdatasync fstat64 ftruncate64 futimes getcwd getdtablesize getmntinfo getpwuid_r getrlimit getrusage jrand48 keyctl llistxattr llseek lseek64 mallinfo mbstowcs memalign mempcpy mmap msync nanosleep open64 pathconf posix_fadvise posix_fadvise64 posix_memalign prctl pread pwrite pread64 pwrite64 secure_getenv setmntent setresgid setresuid snprintf srandom stpcpy strcasecmp strdup strnlen strptime strtoull sync_file_range sysconf usleep utime utimes valloc
13040 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13041 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13042 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13043 cat >>confdefs.h <<_ACEOF
13044 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
13052 $as_echo_n "checking for socket in -lsocket... " >&6; }
13053 if ${ac_cv_lib_socket_socket+:} false; then :
13054 $as_echo_n "(cached) " >&6
13056 ac_check_lib_save_LIBS=$LIBS
13057 LIBS="-lsocket $LIBS"
13058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13059 /* end confdefs.h. */
13061 /* Override any GCC internal prototype to avoid an error.
13062 Use char because int might match the return type of a GCC
13063 builtin and then its argument prototype would still apply. */
13076 if ac_fn_c_try_link "$LINENO"; then :
13077 ac_cv_lib_socket_socket=yes
13079 ac_cv_lib_socket_socket=no
13081 rm -f core conftest.err conftest.$ac_objext \
13082 conftest$ac_exeext conftest.$ac_ext
13083 LIBS=$ac_check_lib_save_LIBS
13085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
13086 $as_echo "$ac_cv_lib_socket_socket" >&6; }
13087 if test "x$ac_cv_lib_socket_socket" = xyes; then :
13088 SOCKET_LIB=-lsocket
13092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_file in -lmagic" >&5
13093 $as_echo_n "checking for magic_file in -lmagic... " >&6; }
13094 if ${ac_cv_lib_magic_magic_file+:} false; then :
13095 $as_echo_n "(cached) " >&6
13097 ac_check_lib_save_LIBS=$LIBS
13098 LIBS="-lmagic $LIBS"
13099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13100 /* end confdefs.h. */
13102 /* Override any GCC internal prototype to avoid an error.
13103 Use char because int might match the return type of a GCC
13104 builtin and then its argument prototype would still apply. */
13108 char magic_file ();
13112 return magic_file ();
13117 if ac_fn_c_try_link "$LINENO"; then :
13118 ac_cv_lib_magic_magic_file=yes
13120 ac_cv_lib_magic_magic_file=no
13122 rm -f core conftest.err conftest.$ac_objext \
13123 conftest$ac_exeext conftest.$ac_ext
13124 LIBS=$ac_check_lib_save_LIBS
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_file" >&5
13127 $as_echo "$ac_cv_lib_magic_magic_file" >&6; }
13128 if test "x$ac_cv_lib_magic_magic_file" = xyes; then :
13130 for ac_header in magic.h
13132 ac_fn_c_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default"
13133 if test "x$ac_cv_header_magic_h" = xyes; then :
13134 cat >>confdefs.h <<_ACEOF
13135 #define HAVE_MAGIC_H 1
13144 if test "$ac_cv_lib_dl_dlopen" = yes ; then
13145 MAGIC_LIB=$DLOPEN_LIB
13150 # Check whether --enable-fuse2fs was given.
13151 if test "${enable_fuse2fs+set}" = set; then :
13152 enableval=$enable_fuse2fs; if test "$enableval" = "no"
13155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling fuse2fs" >&5
13156 $as_echo "Disabling fuse2fs" >&6; }
13158 for ac_header in pthread.h fuse.h
13160 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13161 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
13162 #define FUSE_USE_VERSION 29
13164 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13165 cat >>confdefs.h <<_ACEOF
13166 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13170 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13171 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13172 as_fn_error $? "Cannot find fuse2fs headers.
13173 See \`config.log' for more details" "$LINENO" 5; }
13179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13180 /* end confdefs.h. */
13181 #define FUSE_USE_VERSION 29
13183 #include <linux/fs.h>
13184 #include <linux/falloc.h>
13185 #include <linux/xattr.h>
13196 if ac_fn_c_try_cpp "$LINENO"; then :
13199 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13200 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13201 as_fn_error $? "Cannot find fuse2fs Linux headers.
13202 See \`config.log' for more details" "$LINENO" 5; }
13204 rm -f conftest.err conftest.i conftest.$ac_ext
13206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
13207 $as_echo_n "checking for fuse_main in -losxfuse... " >&6; }
13208 if ${ac_cv_lib_osxfuse_fuse_main+:} false; then :
13209 $as_echo_n "(cached) " >&6
13211 ac_check_lib_save_LIBS=$LIBS
13212 LIBS="-losxfuse $LIBS"
13213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13214 /* end confdefs.h. */
13216 /* Override any GCC internal prototype to avoid an error.
13217 Use char because int might match the return type of a GCC
13218 builtin and then its argument prototype would still apply. */
13226 return fuse_main ();
13231 if ac_fn_c_try_link "$LINENO"; then :
13232 ac_cv_lib_osxfuse_fuse_main=yes
13234 ac_cv_lib_osxfuse_fuse_main=no
13236 rm -f core conftest.err conftest.$ac_objext \
13237 conftest$ac_exeext conftest.$ac_ext
13238 LIBS=$ac_check_lib_save_LIBS
13240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
13241 $as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; }
13242 if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then :
13245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
13246 $as_echo_n "checking for fuse_main in -lfuse... " >&6; }
13247 if ${ac_cv_lib_fuse_fuse_main+:} false; then :
13248 $as_echo_n "(cached) " >&6
13250 ac_check_lib_save_LIBS=$LIBS
13251 LIBS="-lfuse $LIBS"
13252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13253 /* end confdefs.h. */
13255 /* Override any GCC internal prototype to avoid an error.
13256 Use char because int might match the return type of a GCC
13257 builtin and then its argument prototype would still apply. */
13265 return fuse_main ();
13270 if ac_fn_c_try_link "$LINENO"; then :
13271 ac_cv_lib_fuse_fuse_main=yes
13273 ac_cv_lib_fuse_fuse_main=no
13275 rm -f core conftest.err conftest.$ac_objext \
13276 conftest$ac_exeext conftest.$ac_ext
13277 LIBS=$ac_check_lib_save_LIBS
13279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
13280 $as_echo "$ac_cv_lib_fuse_fuse_main" >&6; }
13281 if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then :
13284 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13285 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13286 as_fn_error $? "Cannot find fuse library.
13287 See \`config.log' for more details" "$LINENO" 5; }
13292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs" >&5
13293 $as_echo "Enabling fuse2fs" >&6; }
13297 for ac_header in pthread.h fuse.h
13299 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13300 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
13301 #define FUSE_USE_VERSION 29
13303 # include <linux/fs.h>
13304 # include <linux/falloc.h>
13305 # include <linux/xattr.h>
13308 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13309 cat >>confdefs.h <<_ACEOF
13310 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13319 if test -z "$FUSE_CMT"
13321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
13322 $as_echo_n "checking for fuse_main in -losxfuse... " >&6; }
13323 if ${ac_cv_lib_osxfuse_fuse_main+:} false; then :
13324 $as_echo_n "(cached) " >&6
13326 ac_check_lib_save_LIBS=$LIBS
13327 LIBS="-losxfuse $LIBS"
13328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13329 /* end confdefs.h. */
13331 /* Override any GCC internal prototype to avoid an error.
13332 Use char because int might match the return type of a GCC
13333 builtin and then its argument prototype would still apply. */
13341 return fuse_main ();
13346 if ac_fn_c_try_link "$LINENO"; then :
13347 ac_cv_lib_osxfuse_fuse_main=yes
13349 ac_cv_lib_osxfuse_fuse_main=no
13351 rm -f core conftest.err conftest.$ac_objext \
13352 conftest$ac_exeext conftest.$ac_ext
13353 LIBS=$ac_check_lib_save_LIBS
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
13356 $as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; }
13357 if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then :
13360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
13361 $as_echo_n "checking for fuse_main in -lfuse... " >&6; }
13362 if ${ac_cv_lib_fuse_fuse_main+:} false; then :
13363 $as_echo_n "(cached) " >&6
13365 ac_check_lib_save_LIBS=$LIBS
13366 LIBS="-lfuse $LIBS"
13367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13368 /* end confdefs.h. */
13370 /* Override any GCC internal prototype to avoid an error.
13371 Use char because int might match the return type of a GCC
13372 builtin and then its argument prototype would still apply. */
13380 return fuse_main ();
13385 if ac_fn_c_try_link "$LINENO"; then :
13386 ac_cv_lib_fuse_fuse_main=yes
13388 ac_cv_lib_fuse_fuse_main=no
13390 rm -f core conftest.err conftest.$ac_objext \
13391 conftest$ac_exeext conftest.$ac_ext
13392 LIBS=$ac_check_lib_save_LIBS
13394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
13395 $as_echo "$ac_cv_lib_fuse_fuse_main" >&6; }
13396 if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then :
13405 if test -z "$FUSE_CMT"
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs by default." >&5
13408 $as_echo "Enabling fuse2fs by default." >&6; }
13415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
13416 $as_echo_n "checking for optreset... " >&6; }
13417 if ${ac_cv_have_optreset+:} false; then :
13418 $as_echo_n "(cached) " >&6
13420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13421 /* end confdefs.h. */
13422 #include <unistd.h>
13425 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13426 $EGREP "optreset" >/dev/null 2>&1; then :
13427 ac_cv_have_optreset=yes
13429 ac_cv_have_optreset=no
13434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
13435 $as_echo "$ac_cv_have_optreset" >&6; }
13436 if test $ac_cv_have_optreset = yes; then
13438 $as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
13443 ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
13444 if test "x$ac_cv_func_sem_init" = xyes; then :
13447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
13448 $as_echo_n "checking for sem_init in -lpthread... " >&6; }
13449 if ${ac_cv_lib_pthread_sem_init+:} false; then :
13450 $as_echo_n "(cached) " >&6
13452 ac_check_lib_save_LIBS=$LIBS
13453 LIBS="-lpthread $LIBS"
13454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13455 /* end confdefs.h. */
13457 /* Override any GCC internal prototype to avoid an error.
13458 Use char because int might match the return type of a GCC
13459 builtin and then its argument prototype would still apply. */
13467 return sem_init ();
13472 if ac_fn_c_try_link "$LINENO"; then :
13473 ac_cv_lib_pthread_sem_init=yes
13475 ac_cv_lib_pthread_sem_init=no
13477 rm -f core conftest.err conftest.$ac_objext \
13478 conftest$ac_exeext conftest.$ac_ext
13479 LIBS=$ac_check_lib_save_LIBS
13481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
13482 $as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
13483 if test "x$ac_cv_lib_pthread_sem_init" = xyes; then :
13484 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
13486 SEM_INIT_LIB=-lpthread
13488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
13489 $as_echo_n "checking for sem_init in -lrt... " >&6; }
13490 if ${ac_cv_lib_rt_sem_init+:} false; then :
13491 $as_echo_n "(cached) " >&6
13493 ac_check_lib_save_LIBS=$LIBS
13495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13496 /* end confdefs.h. */
13498 /* Override any GCC internal prototype to avoid an error.
13499 Use char because int might match the return type of a GCC
13500 builtin and then its argument prototype would still apply. */
13508 return sem_init ();
13513 if ac_fn_c_try_link "$LINENO"; then :
13514 ac_cv_lib_rt_sem_init=yes
13516 ac_cv_lib_rt_sem_init=no
13518 rm -f core conftest.err conftest.$ac_objext \
13519 conftest$ac_exeext conftest.$ac_ext
13520 LIBS=$ac_check_lib_save_LIBS
13522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
13523 $as_echo "$ac_cv_lib_rt_sem_init" >&6; }
13524 if test "x$ac_cv_lib_rt_sem_init" = xyes; then :
13525 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
13529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
13530 $as_echo_n "checking for sem_init in -lposix4... " >&6; }
13531 if ${ac_cv_lib_posix4_sem_init+:} false; then :
13532 $as_echo_n "(cached) " >&6
13534 ac_check_lib_save_LIBS=$LIBS
13535 LIBS="-lposix4 $LIBS"
13536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13537 /* end confdefs.h. */
13539 /* Override any GCC internal prototype to avoid an error.
13540 Use char because int might match the return type of a GCC
13541 builtin and then its argument prototype would still apply. */
13549 return sem_init ();
13554 if ac_fn_c_try_link "$LINENO"; then :
13555 ac_cv_lib_posix4_sem_init=yes
13557 ac_cv_lib_posix4_sem_init=no
13559 rm -f core conftest.err conftest.$ac_objext \
13560 conftest$ac_exeext conftest.$ac_ext
13561 LIBS=$ac_check_lib_save_LIBS
13563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
13564 $as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
13565 if test "x$ac_cv_lib_posix4_sem_init" = xyes; then :
13566 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
13568 SEM_INIT_LIB=-lposix4
13577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
13578 $as_echo_n "checking for unified diff option... " >&6; }
13579 if diff -u $0 $0 > /dev/null 2>&1 ; then
13584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
13585 $as_echo "$UNI_DIFF_OPTS" >&6; }
13590 $as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
13610 linux* | gnu* | k*bsd*-gnu)
13611 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
13613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5
13614 $as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
13619 linux* | gnu* | k*bsd*-gnu)
13620 if test "$prefix" = NONE ; then
13622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5
13623 $as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
13624 if test "$mandir" = '${prefix}/man' ; then
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
13626 $as_echo "...and mandir defaults to /usr/share/man" >&6; }
13627 mandir=/usr/share/man
13632 if test "$root_prefix" = NONE ; then
13633 if test "$prefix" = NONE ; then
13634 root_prefix="$ac_default_prefix"
13636 root_prefix="$prefix"
13638 root_bindir=$bindir
13639 root_sbindir=$sbindir
13640 root_libdir=$libdir
13641 root_sysconfdir=$sysconfdir
13643 root_bindir='${root_prefix}/bin'
13644 root_sbindir='${root_prefix}/sbin'
13645 root_libdir='${root_prefix}/lib'
13646 root_sysconfdir='${root_prefix}/etc'
13648 if test "$bindir" != '${exec_prefix}/bin'; then
13649 root_bindir=$bindir
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
13651 $as_echo "Setting root_bindir to $root_bindir" >&6; }
13653 if test "$sbindir" != '${exec_prefix}/sbin'; then
13654 root_sbindir=$sbindir
13655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
13656 $as_echo "Setting root_sbindir to $root_sbindir" >&6; }
13658 if test "$libdir" != '${exec_prefix}/lib'; then
13659 root_libdir=$libdir
13660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
13661 $as_echo "Setting root_libdir to $root_libdir" >&6; }
13663 if test "$sysconfdir" != '${prefix}/etc'; then
13664 root_sysconfdir=$sysconfdir
13665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
13666 $as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
13674 # Check whether --with-multiarch was given.
13675 if test "${with_multiarch+set}" = set; then :
13676 withval=$with_multiarch; if test "$withval" = "lib64"; then
13680 libdir=$libdir/$withval
13681 root_libdir=$root_libdir/$withval
13685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5
13686 $as_echo_n "checking whether we can link with -static... " >&6; }
13687 if ${ac_cv_e2fsprogs_use_static+:} false; then :
13688 $as_echo_n "(cached) " >&6
13690 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS_STATIC -static"
13691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13692 /* end confdefs.h. */
13702 if ac_fn_c_try_link "$LINENO"; then :
13703 ac_cv_e2fsprogs_use_static=yes
13705 ac_cv_e2fsprogs_use_static=no
13707 rm -f core conftest.err conftest.$ac_objext \
13708 conftest$ac_exeext conftest.$ac_ext
13709 LDFLAGS=$SAVE_LDFLAGS
13714 ac_cv_e2fsprogs_use_static=no
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
13718 $as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
13719 if test $ac_cv_e2fsprogs_use_static = yes; then
13720 LDFLAGS_STATIC="$LDFLAGS_STATIC -static"
13725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
13726 $as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
13728 $as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
13732 SS_DIR=`cd ${srcdir}/lib/ss; pwd`
13733 ET_DIR=`cd ${srcdir}/lib/et; pwd`
13736 if test "$cross_compiling" = yes ; then
13739 DO_TEST_SUITE=check
13742 INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
13743 if test -n "$CPPFLAGS" ; then
13744 INCLUDES="$INCLUDES $CPPFLAGS"
13746 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
13747 INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
13749 if test -n "$WITH_DIET_LIBC" ; then
13750 INCLUDES="$INCLUDES -D_REENTRANT"
13755 if test -n "$ac_aux_dir"; then
13756 case "$ac_aux_dir" in
13757 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
13758 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
13761 if test -z "$MKINSTALLDIRS"; then
13762 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
13766 if test $cross_compiling = no; then
13767 BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H"
13768 BUILD_LDFLAGS="$LDFLAGS"
13772 CFLAGS_SHLIB=${CFLAGS_SHLIB:-$CFLAGS}
13773 CFLAGS_STLIB=${CFLAGS_STLIB:-$CFLAGS}
13774 LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
13778 test -d lib || mkdir lib
13779 test -d include || mkdir include
13780 test -d include/linux || mkdir include/linux
13781 test -d include/asm || mkdir include/asm
13782 if test -z "$UUID_CMT" ; then
13783 uuid_out_list="lib/uuid/Makefile lib/uuid/uuid.pc \
13784 lib/uuid/uuid_types.h"
13786 if test -z "$BLKID_CMT" ; then
13787 blkid_out_list="lib/blkid/Makefile lib/blkid/blkid.pc \
13788 lib/blkid/blkid_types.h"
13790 for i in MCONFIG Makefile e2fsprogs.spec \
13791 util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
13792 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
13793 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
13794 $uuid_out_list $blkid_out_list lib/support/Makefile \
13795 lib/ss/ss.pc lib/et/com_err.pc lib/e2p/e2p.pc lib/ext2fs/ext2fs.pc \
13796 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
13797 debugfs/Makefile tests/Makefile tests/progs/Makefile \
13798 resize/Makefile doc/Makefile intl/Makefile \
13799 intl/libgnuintl.h po/Makefile.in ; do
13800 if test -d `dirname ${srcdir}/$i` ; then
13801 outlist="$outlist $i"
13804 ac_config_files="$ac_config_files $outlist"
13806 cat >confcache <<\_ACEOF
13807 # This file is a shell script that caches the results of configure
13808 # tests run on this system so they can be shared between configure
13809 # scripts and configure runs, see configure's option --config-cache.
13810 # It is not useful on other systems. If it contains results you don't
13811 # want to keep, you may remove or edit it.
13813 # config.status only pays attention to the cache file if you give it
13814 # the --recheck option to rerun configure.
13816 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13817 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13818 # following values.
13822 # The following way of writing the cache mishandles newlines in values,
13823 # but we know of no workaround that is simple, portable, and efficient.
13824 # So, we kill variables containing newlines.
13825 # Ultrix sh set writes to stderr and can't be redirected directly,
13826 # and sets the high bit in the cache file unless we assign to the vars.
13828 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13829 eval ac_val=\$$ac_var
13833 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13834 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13837 _ | IFS | as_nl) ;; #(
13838 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13839 *) { eval $ac_var=; unset $ac_var;} ;;
13845 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13846 *${as_nl}ac_space=\ *)
13847 # `set' does not quote correctly, so add quotes: double-quote
13848 # substitution turns \\\\ into \\, and sed turns \\ into \.
13851 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13854 # `set' quotes correctly as required by POSIX, so do not add quotes.
13855 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13864 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13866 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13868 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13869 if test -w "$cache_file"; then
13870 if test "x$cache_file" != "x/dev/null"; then
13871 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13872 $as_echo "$as_me: updating cache $cache_file" >&6;}
13873 if test ! -f "$cache_file" || test -h "$cache_file"; then
13874 cat confcache >"$cache_file"
13876 case $cache_file in #(
13878 mv -f confcache "$cache_file"$$ &&
13879 mv -f "$cache_file"$$ "$cache_file" ;; #(
13881 mv -f confcache "$cache_file" ;;
13886 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13887 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13892 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13893 # Let make expand exec_prefix.
13894 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13896 DEFS=-DHAVE_CONFIG_H
13901 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13902 # 1. Remove the extension, and $U if already installed.
13903 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13904 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13905 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13906 # will be set to the directory where LIBOBJS objects are built.
13907 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13908 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13910 LIBOBJS=$ac_libobjs
13912 LTLIBOBJS=$ac_ltlibobjs
13917 : "${CONFIG_STATUS=./config.status}"
13919 ac_clean_files_save=$ac_clean_files
13920 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13921 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13922 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13924 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13926 # Generated by $as_me.
13927 # Run this file to recreate the current configuration.
13928 # Compiler output produced by configure, useful for debugging
13929 # configure, is in config.log if it exists.
13932 ac_cs_recheck=false
13935 SHELL=\${CONFIG_SHELL-$SHELL}
13938 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13939 ## -------------------- ##
13940 ## M4sh Initialization. ##
13941 ## -------------------- ##
13943 # Be more Bourne compatible
13944 DUALCASE=1; export DUALCASE # for MKS sh
13945 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13948 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13949 # is contrary to our usage. Disable this feature.
13950 alias -g '${1+"$@"}'='"$@"'
13951 setopt NO_GLOB_SUBST
13953 case `(set -o) 2>/dev/null` in #(
13965 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13966 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13967 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13968 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13969 # Prefer a ksh shell builtin over an external printf program on Solaris,
13970 # but without wasting forks for bash or zsh.
13971 if test -z "$BASH_VERSION$ZSH_VERSION" \
13972 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13973 as_echo='print -r --'
13974 as_echo_n='print -rn --'
13975 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13976 as_echo='printf %s\n'
13977 as_echo_n='printf %s'
13979 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13980 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13981 as_echo_n='/usr/ucb/echo -n'
13983 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13984 as_echo_n_body='eval
13988 expr "X$arg" : "X\\(.*\\)$as_nl";
13989 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13991 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13993 export as_echo_n_body
13994 as_echo_n='sh -c $as_echo_n_body as_echo'
13996 export as_echo_body
13997 as_echo='sh -c $as_echo_body as_echo'
14000 # The user is always right.
14001 if test "${PATH_SEPARATOR+set}" != set; then
14003 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14004 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14011 # We need space, tab and new line, in precisely that order. Quoting is
14012 # there to prevent editors from complaining about space-tab.
14013 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14014 # splitting by setting IFS to empty value.)
14017 # Find who we are. Look in the path if we contain no directory separator.
14020 *[\\/]* ) as_myself=$0 ;;
14021 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14022 for as_dir in $PATH
14025 test -z "$as_dir" && as_dir=.
14026 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14032 # We did not find ourselves, most probably we were run as `sh COMMAND'
14033 # in which case we are not to be found in the path.
14034 if test "x$as_myself" = x; then
14037 if test ! -f "$as_myself"; then
14038 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14042 # Unset variables that we do not need and which cause bugs (e.g. in
14043 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14044 # suppresses any "Segmentation fault" message there. '((' could
14045 # trigger a bug in pdksh 5.2.14.
14046 for as_var in BASH_ENV ENV MAIL MAILPATH
14047 do eval test x\${$as_var+set} = xset \
14048 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14061 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14064 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14065 # ----------------------------------------
14066 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14067 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14068 # script with STATUS, using 1 if that was 0.
14071 as_status=$1; test $as_status -eq 0 && as_status=1
14073 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14074 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14076 $as_echo "$as_me: error: $2" >&2
14077 as_fn_exit $as_status
14081 # as_fn_set_status STATUS
14082 # -----------------------
14083 # Set $? to STATUS, without forking.
14084 as_fn_set_status ()
14087 } # as_fn_set_status
14089 # as_fn_exit STATUS
14090 # -----------------
14091 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14095 as_fn_set_status $1
14101 # Portably unset VAR.
14104 { eval $1=; unset $1;}
14106 as_unset=as_fn_unset
14107 # as_fn_append VAR VALUE
14108 # ----------------------
14109 # Append the text in VALUE to the end of the definition contained in VAR. Take
14110 # advantage of any shell optimizations that allow amortized linear growth over
14111 # repeated appends, instead of the typical quadratic growth present in naive
14113 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14114 eval 'as_fn_append ()
14125 # as_fn_arith ARG...
14126 # ------------------
14127 # Perform arithmetic evaluation on the ARGs, and store the result in the
14128 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14129 # must be portable across $(()) and expr.
14130 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14131 eval 'as_fn_arith ()
14138 as_val=`expr "$@" || test $? -eq 1`
14143 if expr a : '\(a\)' >/dev/null 2>&1 &&
14144 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14150 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14151 as_basename=basename
14156 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14162 as_me=`$as_basename -- "$0" ||
14163 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14164 X"$0" : 'X\(//\)$' \| \
14165 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14167 sed '/^.*\/\([^/][^/]*\)\/*$/{
14181 # Avoid depending upon Character Ranges.
14182 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14183 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14184 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14185 as_cr_digits='0123456789'
14186 as_cr_alnum=$as_cr_Letters$as_cr_digits
14188 ECHO_C= ECHO_N= ECHO_T=
14189 case `echo -n x` in #(((((
14191 case `echo 'xy\c'` in
14192 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14194 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14201 rm -f conf$$ conf$$.exe conf$$.file
14202 if test -d conf$$.dir; then
14203 rm -f conf$$.dir/conf$$.file
14206 mkdir conf$$.dir 2>/dev/null
14208 if (echo >conf$$.file) 2>/dev/null; then
14209 if ln -s conf$$.file conf$$ 2>/dev/null; then
14211 # ... but there are two gotchas:
14212 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14213 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14214 # In both cases, we have to default to `cp -pR'.
14215 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14217 elif ln conf$$.file conf$$ 2>/dev/null; then
14225 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14226 rmdir conf$$.dir 2>/dev/null
14231 # Create "$as_dir" as a directory, including parents if necessary.
14236 -*) as_dir=./$as_dir;;
14238 test -d "$as_dir" || eval $as_mkdir_p || {
14242 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14243 *) as_qdir=$as_dir;;
14245 as_dirs="'$as_qdir' $as_dirs"
14246 as_dir=`$as_dirname -- "$as_dir" ||
14247 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14248 X"$as_dir" : 'X\(//\)[^/]' \| \
14249 X"$as_dir" : 'X\(//\)$' \| \
14250 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14251 $as_echo X"$as_dir" |
14252 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14256 /^X\(\/\/\)[^/].*/{
14269 test -d "$as_dir" && break
14271 test -z "$as_dirs" || eval "mkdir $as_dirs"
14272 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14276 if mkdir -p . 2>/dev/null; then
14277 as_mkdir_p='mkdir -p "$as_dir"'
14279 test -d ./-p && rmdir ./-p
14284 # as_fn_executable_p FILE
14285 # -----------------------
14286 # Test if FILE is an executable regular file.
14287 as_fn_executable_p ()
14289 test -f "$1" && test -x "$1"
14290 } # as_fn_executable_p
14291 as_test_x='test -x'
14292 as_executable_p=as_fn_executable_p
14294 # Sed expression to map a string onto a valid CPP name.
14295 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14297 # Sed expression to map a string onto a valid variable name.
14298 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14302 ## ----------------------------------- ##
14303 ## Main body of $CONFIG_STATUS script. ##
14304 ## ----------------------------------- ##
14306 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14308 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14309 # Save the log message, to keep $0 and so on meaningful, and to
14310 # report actual input values of CONFIG_FILES etc. instead of their
14311 # values after options handling.
14313 This file was extended by $as_me, which was
14314 generated by GNU Autoconf 2.69. Invocation command line was
14316 CONFIG_FILES = $CONFIG_FILES
14317 CONFIG_HEADERS = $CONFIG_HEADERS
14318 CONFIG_LINKS = $CONFIG_LINKS
14319 CONFIG_COMMANDS = $CONFIG_COMMANDS
14322 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14327 case $ac_config_files in *"
14328 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14331 case $ac_config_headers in *"
14332 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14336 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14337 # Files that config.status was made for.
14338 config_files="$ac_config_files"
14339 config_headers="$ac_config_headers"
14340 config_commands="$ac_config_commands"
14344 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14346 \`$as_me' instantiates files and other configuration actions
14347 from templates according to the current configuration. Unless the files
14348 and actions are specified as TAGs, all are instantiated by default.
14350 Usage: $0 [OPTION]... [TAG]...
14352 -h, --help print this help, then exit
14353 -V, --version print version number and configuration settings, then exit
14354 --config print configuration, then exit
14355 -q, --quiet, --silent
14356 do not print progress messages
14357 -d, --debug don't remove temporary files
14358 --recheck update $as_me by reconfiguring in the same conditions
14359 --file=FILE[:TEMPLATE]
14360 instantiate the configuration file FILE
14361 --header=FILE[:TEMPLATE]
14362 instantiate the configuration header FILE
14364 Configuration files:
14367 Configuration headers:
14370 Configuration commands:
14373 Report bugs to the package provider."
14376 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14377 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14380 configured by $0, generated by GNU Autoconf 2.69,
14381 with options \\"\$ac_cs_config\\"
14383 Copyright (C) 2012 Free Software Foundation, Inc.
14384 This config.status script is free software; the Free Software Foundation
14385 gives unlimited permission to copy, distribute and modify it."
14392 test -n "\$AWK" || AWK=awk
14395 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14396 # The default lists apply if the user does not specify any file.
14402 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14403 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14407 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14419 # Handling of the options.
14420 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14422 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14423 $as_echo "$ac_cs_version"; exit ;;
14424 --config | --confi | --conf | --con | --co | --c )
14425 $as_echo "$ac_cs_config"; exit ;;
14426 --debug | --debu | --deb | --de | --d | -d )
14428 --file | --fil | --fi | --f )
14431 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14432 '') as_fn_error $? "missing file argument" ;;
14434 as_fn_append CONFIG_FILES " '$ac_optarg'"
14435 ac_need_defaults=false;;
14436 --header | --heade | --head | --hea )
14439 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14441 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14442 ac_need_defaults=false;;
14444 # Conflict between --help and --header
14445 as_fn_error $? "ambiguous option: \`$1'
14446 Try \`$0 --help' for more information.";;
14447 --help | --hel | -h )
14448 $as_echo "$ac_cs_usage"; exit ;;
14449 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14450 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14453 # This is an error.
14454 -*) as_fn_error $? "unrecognized option: \`$1'
14455 Try \`$0 --help' for more information." ;;
14457 *) as_fn_append ac_config_targets " $1"
14458 ac_need_defaults=false ;;
14464 ac_configure_extra_args=
14466 if $ac_cs_silent; then
14468 ac_configure_extra_args="$ac_configure_extra_args --silent"
14472 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14473 if \$ac_cs_recheck; then
14474 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14476 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14477 CONFIG_SHELL='$SHELL'
14478 export CONFIG_SHELL
14483 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14487 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14488 ## Running $as_me. ##
14494 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14498 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
14499 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
14500 # from automake < 1.5.
14501 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
14502 # Capture the value of LINGUAS because we need it to compute CATALOGS.
14503 LINGUAS="${LINGUAS-%UNSET%}"
14508 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14510 # Handling of arguments.
14511 for ac_config_target in $ac_config_targets
14513 case $ac_config_target in
14514 "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
14515 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
14516 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
14518 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14523 # If the user did not use the arguments to specify the items to instantiate,
14524 # then the envvar interface is used. Set only those that are not.
14525 # We use the long form for the default assignment because of an extremely
14526 # bizarre bug on SunOS 4.1.3.
14527 if $ac_need_defaults; then
14528 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14529 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14530 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14533 # Have a temporary directory for convenience. Make it in the build tree
14534 # simply because there is no reason against having it here, and in addition,
14535 # creating and moving files from /tmp can sometimes cause problems.
14536 # Hook for its removal unless debugging.
14537 # Note that there is a small window in which the directory will not be cleaned:
14538 # after its creation but before its name has been assigned to `$tmp'.
14542 trap 'exit_status=$?
14543 : "${ac_tmp:=$tmp}"
14544 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14546 trap 'as_fn_exit 1' 1 2 13 15
14548 # Create a (secure) tmp directory for tmp files.
14551 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14555 tmp=./conf$$-$RANDOM
14556 (umask 077 && mkdir "$tmp")
14557 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14560 # Set up the scripts for CONFIG_FILES section.
14561 # No need to generate them if there are no CONFIG_FILES.
14562 # This happens for instance with `./config.status config.h'.
14563 if test -n "$CONFIG_FILES"; then
14565 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
14566 ac_cs_awk_getline=:
14567 ac_cs_awk_pipe_init=
14568 ac_cs_awk_read_file='
14569 while ((getline aline < (F[key])) > 0)
14572 ac_cs_awk_pipe_fini=
14574 ac_cs_awk_getline=false
14575 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
14576 ac_cs_awk_read_file='
14578 print "cat " F[key] " &&"
14579 '$ac_cs_awk_pipe_init
14580 # The final `:' finishes the AND list.
14581 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
14583 ac_cr=`echo X | tr X '\015'`
14584 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14585 # But we know of no other shell where ac_cr would be empty at this
14586 # point, so we can use a bashism as a fallback.
14587 if test "x$ac_cr" = x; then
14588 eval ac_cr=\$\'\\r\'
14590 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14591 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14594 ac_cs_awk_cr=$ac_cr
14597 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14600 # Create commands to substitute file output variables.
14602 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
14603 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
14604 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
14607 } >conf$$files.sh &&
14608 . ./conf$$files.sh ||
14609 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14610 rm -f conf$$files.sh
14613 echo "cat >conf$$subs.awk <<_ACEOF" &&
14614 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14616 } >conf$$subs.sh ||
14617 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14618 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14620 for ac_last_try in false false false false false :; do
14621 . ./conf$$subs.sh ||
14622 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14624 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14625 if test $ac_delim_n = $ac_delim_num; then
14627 elif $ac_last_try; then
14628 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14630 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14633 rm -f conf$$subs.sh
14635 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14636 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14640 s/^/S["/; s/!.*/"]=/
14650 s/\(.\{148\}\)..*/\1/
14652 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14657 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14664 s/\(.\{148\}\)..*/\1/
14666 s/["\\]/\\&/g; s/^/"/; s/$/"/
14670 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14675 ' <conf$$subs.awk | sed '
14680 ' >>$CONFIG_STATUS || ac_write_fail=1
14681 rm -f conf$$subs.awk
14682 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14684 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14685 for (key in S) S_is_set[key] = 1
14687 \$ac_cs_awk_pipe_init
14691 nfields = split(line, field, "@")
14693 len = length(field[1])
14694 for (i = 2; i < nfields; i++) {
14696 keylen = length(key)
14697 if (S_is_set[key]) {
14699 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14700 len += length(value) + length(field[++i])
14705 if (nfields == 3 && !substed) {
14707 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
14708 \$ac_cs_awk_read_file
14714 \$ac_cs_awk_pipe_fini
14717 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14718 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14719 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14722 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14723 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14726 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14727 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14728 # trailing colons and then remove the whole line if VPATH becomes empty
14729 # (actually we leave an empty line to preserve line numbers).
14730 if test "x$srcdir" = x.; then
14731 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14749 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14750 fi # test -n "$CONFIG_FILES"
14752 # Set up the scripts for CONFIG_HEADERS section.
14753 # No need to generate them if there are no CONFIG_HEADERS.
14754 # This happens for instance with `./config.status Makefile'.
14755 if test -n "$CONFIG_HEADERS"; then
14756 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14760 # Transform confdefs.h into an awk script `defines.awk', embedded as
14761 # here-document in config.status, that substitutes the proper values into
14762 # config.h.in to produce config.h.
14764 # Create a delimiter string that does not exist in confdefs.h, to ease
14765 # handling of long lines.
14767 for ac_last_try in false false :; do
14768 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14769 if test -z "$ac_tt"; then
14771 elif $ac_last_try; then
14772 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14774 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14778 # For the awk script, D is an array of macro values keyed by name,
14779 # likewise P contains macro parameters if any. Preserve backslash
14780 # newline sequences.
14782 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14784 s/.\{148\}/&'"$ac_delim"'/g
14787 s/^[ ]*#[ ]*define[ ][ ]*/ /
14794 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14796 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14800 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14801 D["\1"]=" \3\\\\\\n"\\/p
14803 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14808 s/.\{148\}/&'"$ac_delim"'/g
14813 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14816 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14818 ' <confdefs.h | sed '
14819 s/'"$ac_delim"'/"\\\
14820 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14822 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14823 for (key in D) D_is_set[key] = 1
14826 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14828 split(line, arg, " ")
14829 if (arg[1] == "#") {
14833 defundef = substr(arg[1], 2)
14836 split(mac1, mac2, "(") #)
14838 prefix = substr(line, 1, index(line, defundef) - 1)
14839 if (D_is_set[macro]) {
14840 # Preserve the white space surrounding the "#".
14841 print prefix "define", macro P[macro] D[macro]
14844 # Replace #undef with comments. This is necessary, for example,
14845 # in the case of _POSIX_SOURCE, which is predefined and required
14846 # on some systems where configure will not decide to define it.
14847 if (defundef == "undef") {
14848 print "/*", prefix defundef, macro, "*/"
14856 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14857 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14858 fi # test -n "$CONFIG_HEADERS"
14861 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14866 :[FHLC]) ac_mode=$ac_tag; continue;;
14868 case $ac_mode$ac_tag in
14870 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14871 :[FH]-) ac_tag=-:-;;
14872 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14889 -) ac_f="$ac_tmp/stdin";;
14890 *) # Look for the file first in the build tree, then in the source tree
14891 # (if the path is not absolute). The absolute path cannot be DOS-style,
14892 # because $ac_f cannot contain `:'.
14896 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14898 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14900 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14901 as_fn_append ac_file_inputs " '$ac_f'"
14904 # Let's still pretend it is `configure' which instantiates (i.e., don't
14905 # use $as_me), people would be surprised to read:
14906 # /* config.h. Generated by config.status. */
14907 configure_input='Generated from '`
14908 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14910 if test x"$ac_file" != x-; then
14911 configure_input="$ac_file. $configure_input"
14912 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14913 $as_echo "$as_me: creating $ac_file" >&6;}
14915 # Neutralize special characters interpreted by sed in replacement strings.
14916 case $configure_input in #(
14917 *\&* | *\|* | *\\* )
14918 ac_sed_conf_input=`$as_echo "$configure_input" |
14919 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14920 *) ac_sed_conf_input=$configure_input;;
14924 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14925 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14930 ac_dir=`$as_dirname -- "$ac_file" ||
14931 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14932 X"$ac_file" : 'X\(//\)[^/]' \| \
14933 X"$ac_file" : 'X\(//\)$' \| \
14934 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14935 $as_echo X"$ac_file" |
14936 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14940 /^X\(\/\/\)[^/].*/{
14953 as_dir="$ac_dir"; as_fn_mkdir_p
14957 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14959 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14960 # A ".." for each directory in $ac_dir_suffix.
14961 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14962 case $ac_top_builddir_sub in
14963 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14964 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14967 ac_abs_top_builddir=$ac_pwd
14968 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14969 # for backward compatibility:
14970 ac_top_builddir=$ac_top_build_prefix
14973 .) # We are building in place.
14975 ac_top_srcdir=$ac_top_builddir_sub
14976 ac_abs_top_srcdir=$ac_pwd ;;
14977 [\\/]* | ?:[\\/]* ) # Absolute name.
14978 ac_srcdir=$srcdir$ac_dir_suffix;
14979 ac_top_srcdir=$srcdir
14980 ac_abs_top_srcdir=$srcdir ;;
14981 *) # Relative name.
14982 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14983 ac_top_srcdir=$ac_top_build_prefix$srcdir
14984 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14986 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14996 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14997 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14999 ac_MKDIR_P=$MKDIR_P
15001 [\\/$]* | ?:[\\/]* ) ;;
15002 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15006 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15007 # If the template does not know about datarootdir, expand it.
15008 # FIXME: This hack should be removed a few years after 2.60.
15009 ac_datarootdir_hack=; ac_datarootdir_seen=
15020 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15021 *datarootdir*) ac_datarootdir_seen=yes;;
15022 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15024 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15026 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15027 ac_datarootdir_hack='
15028 s&@datadir@&$datadir&g
15029 s&@docdir@&$docdir&g
15030 s&@infodir@&$infodir&g
15031 s&@localedir@&$localedir&g
15032 s&@mandir@&$mandir&g
15033 s&\\\${datarootdir}&$datarootdir&g' ;;
15037 # Neutralize VPATH when `$srcdir' = `.'.
15038 # Shell code in configure.ac might set extrasub.
15039 # FIXME: do we really want to maintain this feature?
15040 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15041 ac_sed_extra="$ac_vpsub
15044 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15046 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15047 s|@configure_input@|$ac_sed_conf_input|;t t
15048 s&@top_builddir@&$ac_top_builddir_sub&;t t
15049 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15050 s&@srcdir@&$ac_srcdir&;t t
15051 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15052 s&@top_srcdir@&$ac_top_srcdir&;t t
15053 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15054 s&@builddir@&$ac_builddir&;t t
15055 s&@abs_builddir@&$ac_abs_builddir&;t t
15056 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15057 s&@INSTALL@&$ac_INSTALL&;t t
15058 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15059 $ac_datarootdir_hack
15061 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15062 if $ac_cs_awk_getline; then
15063 $AWK -f "$ac_tmp/subs.awk"
15065 $AWK -f "$ac_tmp/subs.awk" | $SHELL
15067 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15069 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15070 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15071 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15072 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15074 which seems to be undefined. Please make sure it is defined" >&5
15075 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15076 which seems to be undefined. Please make sure it is defined" >&2;}
15078 rm -f "$ac_tmp/stdin"
15080 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15081 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15083 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15089 if test x"$ac_file" != x-; then
15091 $as_echo "/* $configure_input */" \
15092 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15093 } >"$ac_tmp/config.h" \
15094 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15095 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15096 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15097 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15100 mv "$ac_tmp/config.h" "$ac_file" \
15101 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15104 $as_echo "/* $configure_input */" \
15105 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15106 || as_fn_error $? "could not create -" "$LINENO" 5
15110 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15111 $as_echo "$as_me: executing $ac_file commands" >&6;}
15116 case $ac_file$ac_mode in
15117 "po-directories":C)
15118 for ac_file in $CONFIG_FILES; do
15119 # Support "outfile[:infile[:infile...]]"
15121 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15123 # PO directories have a Makefile.in generated from Makefile.in.in.
15124 case "$ac_file" in */Makefile.in)
15125 # Adjust a relative srcdir.
15126 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
15127 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
15128 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
15129 # In autoconf-2.13 it is called $ac_given_srcdir.
15130 # In autoconf-2.50 it is called $srcdir.
15131 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
15132 case "$ac_given_srcdir" in
15133 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
15134 /*) top_srcdir="$ac_given_srcdir" ;;
15135 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
15137 # Treat a directory as a PO directory if and only if it has a
15138 # POTFILES.in file. This allows packages to have multiple PO
15139 # directories under different names or in different locations.
15140 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15141 rm -f "$ac_dir/POTFILES"
15142 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
15143 gt_tab=`printf '\t'`
15144 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
15145 POMAKEFILEDEPS="POTFILES.in"
15146 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
15147 # on $ac_dir but don't depend on user-specified configuration
15149 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15150 # The LINGUAS file contains the set of available languages.
15151 if test -n "$OBSOLETE_ALL_LINGUAS"; then
15152 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
15154 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15155 # Hide the ALL_LINGUAS assignment from automake < 1.5.
15156 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
15157 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
15159 # The set of available languages was given in configure.in.
15160 # Hide the ALL_LINGUAS assignment from automake < 1.5.
15161 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
15164 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
15165 # Compute UPDATEPOFILES
15166 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
15167 # Compute DUMMYPOFILES
15168 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
15170 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
15171 case "$ac_given_srcdir" in
15173 *) srcdirpre='$(srcdir)/' ;;
15179 for lang in $ALL_LINGUAS; do
15180 POFILES="$POFILES $srcdirpre$lang.po"
15181 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
15182 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
15183 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
15185 # CATALOGS depends on both $ac_dir and the user's LINGUAS
15186 # environment variable.
15188 if test -n "$ALL_LINGUAS"; then
15189 for presentlang in $ALL_LINGUAS; do
15191 if test "%UNSET%" != "$LINGUAS"; then
15192 desiredlanguages="$LINGUAS"
15194 desiredlanguages="$ALL_LINGUAS"
15196 for desiredlang in $desiredlanguages; do
15197 # Use the presentlang catalog if desiredlang is
15198 # a. equal to presentlang, or
15199 # b. a variant of presentlang (because in this case,
15200 # presentlang can be used as a fallback for messages
15201 # which are not translated in the desiredlang catalog).
15202 case "$desiredlang" in
15203 "$presentlang"*) useit=yes;;
15206 if test $useit = yes; then
15207 INST_LINGUAS="$INST_LINGUAS $presentlang"
15212 if test -n "$INST_LINGUAS"; then
15213 for lang in $INST_LINGUAS; do
15214 CATALOGS="$CATALOGS $lang.gmo"
15217 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
15218 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
15219 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
15220 if test -f "$f"; then
15222 *.orig | *.bak | *~) ;;
15223 *) cat "$f" >> "$ac_dir/Makefile" ;;
15238 ac_clean_files=$ac_clean_files_save
15240 test $ac_write_fail = 0 ||
15241 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15244 # configure is writing to config.log, and then calls config.status.
15245 # config.status does its own redirection, appending to config.log.
15246 # Unfortunately, on DOS this fails, as config.log is still kept open
15247 # by configure, so config.status won't be able to write to it; its
15248 # output is simply discarded. So we exec the FD to /dev/null,
15249 # effectively closing config.log, so it can be properly (re)opened and
15250 # appended to by config.status. When coming back to configure, we
15251 # need to make the FD available again.
15252 if test "$no_create" != yes; then
15254 ac_config_status_args=
15255 test "$silent" = yes &&
15256 ac_config_status_args="$ac_config_status_args --quiet"
15258 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15260 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15261 # would make configure fail if this is the last instruction.
15262 $ac_cs_success || as_fn_exit 1
15264 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15266 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15269 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi