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
628 systemd_system_unit_dir
704 INTL_LIBTOOL_SUFFIX_PREFIX
711 BUILD_INCLUDED_LIBINTL
721 INTL_DEFAULT_VERBOSITY
740 XGETTEXT_EXTRA_OPTIONS
748 GETTEXT_MACRO_VERSION
857 program_transform_name
868 ac_subst_files='MCONFIG
874 PUBLIC_CONFIG_HEADER'
876 enable_option_checking
882 enable_maintainer_mode
883 enable_symlink_install
884 enable_relative_symlinks
885 enable_symlink_relative_symlinks
887 enable_verbose_makecmds
904 enable_e2initrd_helper
910 enable_bmap_stats_ops
917 with_included_gettext
927 with_systemd_unit_dir
929 ac_precious_vars='build_alias
947 # Initialize some variables set by options.
949 ac_init_version=false
950 ac_unrecognized_opts=
952 # The variables have the same names as the options, with
953 # dashes changed to underlines.
961 program_transform_name=s,x,x,
969 # Installation directory options.
970 # These are left unexpanded so users can "make install exec_prefix=/foo"
971 # and all the variables that are supposed to be based on exec_prefix
972 # by default will actually change.
973 # Use braces instead of parens because sh, perl, etc. also accept them.
974 # (The list follows the same order as the GNU Coding Standards.)
975 bindir='${exec_prefix}/bin'
976 sbindir='${exec_prefix}/sbin'
977 libexecdir='${exec_prefix}/libexec'
978 datarootdir='${prefix}/share'
979 datadir='${datarootdir}'
980 sysconfdir='${prefix}/etc'
981 sharedstatedir='${prefix}/com'
982 localstatedir='${prefix}/var'
983 runstatedir='${localstatedir}/run'
984 includedir='${prefix}/include'
985 oldincludedir='/usr/include'
986 docdir='${datarootdir}/doc/${PACKAGE}'
987 infodir='${datarootdir}/info'
992 libdir='${exec_prefix}/lib'
993 localedir='${datarootdir}/locale'
994 mandir='${datarootdir}/man'
1000 # If the previous option needs an argument, assign it.
1001 if test -n "$ac_prev"; then
1002 eval $ac_prev=\$ac_option
1008 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1013 # Accept the important Cygnus configure options, so we can diagnose typos.
1015 case $ac_dashdash$ac_option in
1019 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1021 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1022 bindir=$ac_optarg ;;
1024 -build | --build | --buil | --bui | --bu)
1025 ac_prev=build_alias ;;
1026 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1027 build_alias=$ac_optarg ;;
1029 -cache-file | --cache-file | --cache-fil | --cache-fi \
1030 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1031 ac_prev=cache_file ;;
1032 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1033 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1034 cache_file=$ac_optarg ;;
1036 --config-cache | -C)
1037 cache_file=config.cache ;;
1039 -datadir | --datadir | --datadi | --datad)
1041 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1042 datadir=$ac_optarg ;;
1044 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1045 | --dataroo | --dataro | --datar)
1046 ac_prev=datarootdir ;;
1047 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1048 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1049 datarootdir=$ac_optarg ;;
1051 -disable-* | --disable-*)
1052 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1053 # Reject names that are not valid shell variable names.
1054 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1055 as_fn_error $? "invalid feature name: $ac_useropt"
1056 ac_useropt_orig=$ac_useropt
1057 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1058 case $ac_user_opts in
1060 "enable_$ac_useropt"
1062 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1063 ac_unrecognized_sep=', ';;
1065 eval enable_$ac_useropt=no ;;
1067 -docdir | --docdir | --docdi | --doc | --do)
1069 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1070 docdir=$ac_optarg ;;
1072 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1074 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1075 dvidir=$ac_optarg ;;
1077 -enable-* | --enable-*)
1078 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1079 # Reject names that are not valid shell variable names.
1080 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1081 as_fn_error $? "invalid feature name: $ac_useropt"
1082 ac_useropt_orig=$ac_useropt
1083 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1084 case $ac_user_opts in
1086 "enable_$ac_useropt"
1088 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1089 ac_unrecognized_sep=', ';;
1091 eval enable_$ac_useropt=\$ac_optarg ;;
1093 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1094 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1095 | --exec | --exe | --ex)
1096 ac_prev=exec_prefix ;;
1097 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1098 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1099 | --exec=* | --exe=* | --ex=*)
1100 exec_prefix=$ac_optarg ;;
1102 -gas | --gas | --ga | --g)
1103 # Obsolete; use --with-gas.
1106 -help | --help | --hel | --he | -h)
1107 ac_init_help=long ;;
1108 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1109 ac_init_help=recursive ;;
1110 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1111 ac_init_help=short ;;
1113 -host | --host | --hos | --ho)
1114 ac_prev=host_alias ;;
1115 -host=* | --host=* | --hos=* | --ho=*)
1116 host_alias=$ac_optarg ;;
1118 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1120 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1122 htmldir=$ac_optarg ;;
1124 -includedir | --includedir | --includedi | --included | --include \
1125 | --includ | --inclu | --incl | --inc)
1126 ac_prev=includedir ;;
1127 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1128 | --includ=* | --inclu=* | --incl=* | --inc=*)
1129 includedir=$ac_optarg ;;
1131 -infodir | --infodir | --infodi | --infod | --info | --inf)
1133 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1134 infodir=$ac_optarg ;;
1136 -libdir | --libdir | --libdi | --libd)
1138 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1139 libdir=$ac_optarg ;;
1141 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1142 | --libexe | --libex | --libe)
1143 ac_prev=libexecdir ;;
1144 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1145 | --libexe=* | --libex=* | --libe=*)
1146 libexecdir=$ac_optarg ;;
1148 -localedir | --localedir | --localedi | --localed | --locale)
1149 ac_prev=localedir ;;
1150 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1151 localedir=$ac_optarg ;;
1153 -localstatedir | --localstatedir | --localstatedi | --localstated \
1154 | --localstate | --localstat | --localsta | --localst | --locals)
1155 ac_prev=localstatedir ;;
1156 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1157 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1158 localstatedir=$ac_optarg ;;
1160 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1162 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1163 mandir=$ac_optarg ;;
1165 -nfp | --nfp | --nf)
1166 # Obsolete; use --without-fp.
1169 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1170 | --no-cr | --no-c | -n)
1173 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1174 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1177 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1178 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1179 | --oldin | --oldi | --old | --ol | --o)
1180 ac_prev=oldincludedir ;;
1181 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1182 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1183 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1184 oldincludedir=$ac_optarg ;;
1186 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1188 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1189 prefix=$ac_optarg ;;
1191 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1192 | --program-pre | --program-pr | --program-p)
1193 ac_prev=program_prefix ;;
1194 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1195 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1196 program_prefix=$ac_optarg ;;
1198 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1199 | --program-suf | --program-su | --program-s)
1200 ac_prev=program_suffix ;;
1201 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1202 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1203 program_suffix=$ac_optarg ;;
1205 -program-transform-name | --program-transform-name \
1206 | --program-transform-nam | --program-transform-na \
1207 | --program-transform-n | --program-transform- \
1208 | --program-transform | --program-transfor \
1209 | --program-transfo | --program-transf \
1210 | --program-trans | --program-tran \
1211 | --progr-tra | --program-tr | --program-t)
1212 ac_prev=program_transform_name ;;
1213 -program-transform-name=* | --program-transform-name=* \
1214 | --program-transform-nam=* | --program-transform-na=* \
1215 | --program-transform-n=* | --program-transform-=* \
1216 | --program-transform=* | --program-transfor=* \
1217 | --program-transfo=* | --program-transf=* \
1218 | --program-trans=* | --program-tran=* \
1219 | --progr-tra=* | --program-tr=* | --program-t=*)
1220 program_transform_name=$ac_optarg ;;
1222 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1224 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1225 pdfdir=$ac_optarg ;;
1227 -psdir | --psdir | --psdi | --psd | --ps)
1229 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1232 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1233 | -silent | --silent | --silen | --sile | --sil)
1236 -runstatedir | --runstatedir | --runstatedi | --runstated \
1237 | --runstate | --runstat | --runsta | --runst | --runs \
1238 | --run | --ru | --r)
1239 ac_prev=runstatedir ;;
1240 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1241 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1242 | --run=* | --ru=* | --r=*)
1243 runstatedir=$ac_optarg ;;
1245 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1247 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1249 sbindir=$ac_optarg ;;
1251 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1252 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1253 | --sharedst | --shareds | --shared | --share | --shar \
1255 ac_prev=sharedstatedir ;;
1256 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1257 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1258 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1260 sharedstatedir=$ac_optarg ;;
1262 -site | --site | --sit)
1264 -site=* | --site=* | --sit=*)
1267 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1269 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1270 srcdir=$ac_optarg ;;
1272 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1273 | --syscon | --sysco | --sysc | --sys | --sy)
1274 ac_prev=sysconfdir ;;
1275 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1276 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1277 sysconfdir=$ac_optarg ;;
1279 -target | --target | --targe | --targ | --tar | --ta | --t)
1280 ac_prev=target_alias ;;
1281 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1282 target_alias=$ac_optarg ;;
1284 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1287 -version | --version | --versio | --versi | --vers | -V)
1288 ac_init_version=: ;;
1291 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1292 # Reject names that are not valid shell variable names.
1293 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1294 as_fn_error $? "invalid package name: $ac_useropt"
1295 ac_useropt_orig=$ac_useropt
1296 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1297 case $ac_user_opts in
1301 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1302 ac_unrecognized_sep=', ';;
1304 eval with_$ac_useropt=\$ac_optarg ;;
1306 -without-* | --without-*)
1307 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1308 # Reject names that are not valid shell variable names.
1309 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1310 as_fn_error $? "invalid package name: $ac_useropt"
1311 ac_useropt_orig=$ac_useropt
1312 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1313 case $ac_user_opts in
1317 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1318 ac_unrecognized_sep=', ';;
1320 eval with_$ac_useropt=no ;;
1323 # Obsolete; use --with-x.
1326 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1327 | --x-incl | --x-inc | --x-in | --x-i)
1328 ac_prev=x_includes ;;
1329 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1330 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1331 x_includes=$ac_optarg ;;
1333 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1334 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1335 ac_prev=x_libraries ;;
1336 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1337 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1338 x_libraries=$ac_optarg ;;
1340 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1341 Try \`$0 --help' for more information"
1345 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1346 # Reject names that are not valid shell variable names.
1347 case $ac_envvar in #(
1348 '' | [0-9]* | *[!_$as_cr_alnum]* )
1349 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1351 eval $ac_envvar=\$ac_optarg
1352 export $ac_envvar ;;
1355 # FIXME: should be removed in autoconf 3.0.
1356 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1357 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1358 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1359 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1365 if test -n "$ac_prev"; then
1366 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1367 as_fn_error $? "missing argument to $ac_option"
1370 if test -n "$ac_unrecognized_opts"; then
1371 case $enable_option_checking in
1373 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1374 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1378 # Check all directory arguments for consistency.
1379 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1380 datadir sysconfdir sharedstatedir localstatedir includedir \
1381 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1382 libdir localedir mandir runstatedir
1384 eval ac_val=\$$ac_var
1385 # Remove trailing slashes.
1388 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1389 eval $ac_var=\$ac_val;;
1391 # Be sure to have absolute directory names.
1393 [\\/$]* | ?:[\\/]* ) continue;;
1394 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1396 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1399 # There might be people who depend on the old broken behavior: `$host'
1400 # used to hold the argument of --host etc.
1401 # FIXME: To remove some day.
1404 target=$target_alias
1406 # FIXME: To remove some day.
1407 if test "x$host_alias" != x; then
1408 if test "x$build_alias" = x; then
1409 cross_compiling=maybe
1410 elif test "x$build_alias" != "x$host_alias"; then
1416 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1418 test "$silent" = yes && exec 6>/dev/null
1421 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1422 ac_ls_di=`ls -di .` &&
1423 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1424 as_fn_error $? "working directory cannot be determined"
1425 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1426 as_fn_error $? "pwd does not report name of working directory"
1429 # Find the source files, if location was not specified.
1430 if test -z "$srcdir"; then
1431 ac_srcdir_defaulted=yes
1432 # Try the directory containing this script, then the parent directory.
1433 ac_confdir=`$as_dirname -- "$as_myself" ||
1434 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1435 X"$as_myself" : 'X\(//\)[^/]' \| \
1436 X"$as_myself" : 'X\(//\)$' \| \
1437 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1438 $as_echo X"$as_myself" |
1439 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1457 if test ! -r "$srcdir/$ac_unique_file"; then
1461 ac_srcdir_defaulted=no
1463 if test ! -r "$srcdir/$ac_unique_file"; then
1464 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1465 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1467 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1469 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1471 # When building in place, set srcdir=.
1472 if test "$ac_abs_confdir" = "$ac_pwd"; then
1475 # Remove unnecessary trailing slashes from srcdir.
1476 # Double slashes in file names in object file debugging info
1477 # mess up M-x gdb in Emacs.
1479 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1481 for ac_var in $ac_precious_vars; do
1482 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1483 eval ac_env_${ac_var}_value=\$${ac_var}
1484 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1485 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1489 # Report the --help message.
1491 if test "$ac_init_help" = "long"; then
1492 # Omit some internal or obsolete options to make the list less imposing.
1493 # This message is too long to be a string in the A/UX 3.1 sh.
1495 \`configure' configures this package to adapt to many kinds of systems.
1497 Usage: $0 [OPTION]... [VAR=VALUE]...
1499 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1500 VAR=VALUE. See below for descriptions of some of the useful variables.
1502 Defaults for the options are specified in brackets.
1505 -h, --help display this help and exit
1506 --help=short display options specific to this package
1507 --help=recursive display the short help of all the included packages
1508 -V, --version display version information and exit
1509 -q, --quiet, --silent do not print \`checking ...' messages
1510 --cache-file=FILE cache test results in FILE [disabled]
1511 -C, --config-cache alias for \`--cache-file=config.cache'
1512 -n, --no-create do not create output files
1513 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1515 Installation directories:
1516 --prefix=PREFIX install architecture-independent files in PREFIX
1517 [$ac_default_prefix]
1518 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1521 By default, \`make install' will install all the files in
1522 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1523 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1524 for instance \`--prefix=\$HOME'.
1526 For better control, use the options below.
1528 Fine tuning of the installation directories:
1529 --bindir=DIR user executables [EPREFIX/bin]
1530 --sbindir=DIR system admin executables [EPREFIX/sbin]
1531 --libexecdir=DIR program executables [EPREFIX/libexec]
1532 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1533 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1534 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1535 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1536 --libdir=DIR object code libraries [EPREFIX/lib]
1537 --includedir=DIR C header files [PREFIX/include]
1538 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1539 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1540 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1541 --infodir=DIR info documentation [DATAROOTDIR/info]
1542 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1543 --mandir=DIR man documentation [DATAROOTDIR/man]
1544 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1545 --htmldir=DIR html documentation [DOCDIR]
1546 --dvidir=DIR dvi documentation [DOCDIR]
1547 --pdfdir=DIR pdf documentation [DOCDIR]
1548 --psdir=DIR ps documentation [DOCDIR]
1554 --build=BUILD configure for building on BUILD [guessed]
1555 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1559 if test -n "$ac_init_help"; then
1564 --disable-option-checking ignore unrecognized --enable/--with options
1565 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1566 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1567 --enable-maintainer-mode enable makefile rules useful for maintainers
1568 --enable-symlink-install use symlinks when installing instead of hard links
1569 --enable-relative-symlinks use relative symlinks when installing
1571 --enable-symlink-build use symlinks while building instead of hard links
1572 --enable-verbose-makecmds enable verbose make command output
1573 --enable-elf-shlibs select ELF shared libraries
1574 --enable-bsd-shlibs select BSD shared libraries
1575 --enable-profile build profiling libraries
1576 --enable-gcov build for coverage testing using gcov
1577 --enable-hardening build for coverage testing using gcov
1578 --enable-jbd-debug enable journal debugging
1579 --enable-blkid-debug enable blkid debugging
1580 --disable-testio-debug disable the use of the test I/O manager for debugging
1581 --enable-libuuid build and use private uuid library
1582 --enable-libblkid build and use private blkid library
1583 --disable-backtrace disable use backtrace
1584 --disable-debugfs disable support of debugfs program
1585 --disable-imager disable support of e2image program
1586 --disable-resizer disable support of e2resize program
1587 --disable-defrag disable support of e4defrag program
1588 --enable-fsck build fsck wrapper program
1589 --enable-e2initrd-helper build e2initrd-helper program
1590 --disable-tls disable use of thread local support
1591 --disable-uuidd disable building the uuid daemon
1592 --disable-mmp disable support mmp, Multi Mount Protection
1593 --disable-tdb disable tdb support
1594 --disable-bmap-stats disable collection of bitmap stats.
1595 --enable-bmap-stats-ops enable collection of additional bitmap stats
1596 --disable-nls do not use Native Language Support
1597 --enable-threads={posix|solaris|pth|windows}
1598 specify multithreading API
1599 --disable-threads build without multithread safety
1600 --disable-rpath do not hardcode runtime library paths
1601 --disable-fuse2fs do not build fuse2fs
1602 --enable-lto enable link time optimization
1603 --enable-ubsan enable undefined behavior sanitizer
1604 --enable-addrsan enable address sanitizer
1605 --enable-threadsan enable thread sanitizer
1608 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1609 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1610 --with-diet-libc use diet libc
1611 --with-cc no longer supported, use CC= instead
1612 --with-ccopts no longer supported, use CFLAGS= instead
1613 --with-ldopts no longer supported, use LDFLAGS= instead
1614 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1615 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1616 --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
1617 --without-libpth-prefix don't search for libpth in includedir and libdir
1618 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1619 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1620 --with-included-gettext use the GNU gettext library included here
1621 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1622 --without-libintl-prefix don't search for libintl in includedir and libdir
1623 --with-multiarch=ARCH specify the multiarch triplet
1624 --with-udev-rules-dir[=DIR]
1625 Install udev rules into DIR.
1626 --with-crond-dir[=DIR] Install system crontabs into DIR.
1627 --with-systemd-unit-dir[=DIR]
1628 Install systemd system units into DIR.
1630 Some influential environment variables:
1631 CC C compiler command
1632 CFLAGS C compiler flags
1633 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1634 nonstandard directory <lib dir>
1635 LIBS libraries to pass to the linker, e.g. -l<library>
1636 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1637 you have headers in a nonstandard directory <include dir>
1639 PKG_CONFIG path to pkg-config utility
1641 directories to add to pkg-config's search path
1643 path overriding pkg-config's built-in search path
1644 udev_CFLAGS C compiler flags for udev, overriding pkg-config
1645 udev_LIBS linker flags for udev, overriding pkg-config
1647 C compiler flags for systemd, overriding pkg-config
1649 linker flags for systemd, overriding pkg-config
1651 Use these variables to override the choices made by `configure' or to help
1652 it to find libraries and programs with nonstandard names/locations.
1654 Report bugs to the package provider.
1659 if test "$ac_init_help" = "recursive"; then
1660 # If there are subdirs, report their specific --help.
1661 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1662 test -d "$ac_dir" ||
1663 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1668 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1670 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1671 # A ".." for each directory in $ac_dir_suffix.
1672 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1673 case $ac_top_builddir_sub in
1674 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1675 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1678 ac_abs_top_builddir=$ac_pwd
1679 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1680 # for backward compatibility:
1681 ac_top_builddir=$ac_top_build_prefix
1684 .) # We are building in place.
1686 ac_top_srcdir=$ac_top_builddir_sub
1687 ac_abs_top_srcdir=$ac_pwd ;;
1688 [\\/]* | ?:[\\/]* ) # Absolute name.
1689 ac_srcdir=$srcdir$ac_dir_suffix;
1690 ac_top_srcdir=$srcdir
1691 ac_abs_top_srcdir=$srcdir ;;
1693 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1694 ac_top_srcdir=$ac_top_build_prefix$srcdir
1695 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1697 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1699 cd "$ac_dir" || { ac_status=$?; continue; }
1700 # Check for guested configure.
1701 if test -f "$ac_srcdir/configure.gnu"; then
1703 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1704 elif test -f "$ac_srcdir/configure"; then
1706 $SHELL "$ac_srcdir/configure" --help=recursive
1708 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1710 cd "$ac_pwd" || { ac_status=$?; break; }
1714 test -n "$ac_init_help" && exit $ac_status
1715 if $ac_init_version; then
1718 generated by GNU Autoconf 2.69
1720 Copyright (C) 2012 Free Software Foundation, Inc.
1721 This configure script is free software; the Free Software Foundation
1722 gives unlimited permission to copy, distribute and modify it.
1727 ## ------------------------ ##
1728 ## Autoconf initialization. ##
1729 ## ------------------------ ##
1731 # ac_fn_c_try_compile LINENO
1732 # --------------------------
1733 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1734 ac_fn_c_try_compile ()
1736 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1737 rm -f conftest.$ac_objext
1738 if { { ac_try="$ac_compile"
1740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1741 *) ac_try_echo=$ac_try;;
1743 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1744 $as_echo "$ac_try_echo"; } >&5
1745 (eval "$ac_compile") 2>conftest.err
1747 if test -s conftest.err; then
1748 grep -v '^ *+' conftest.err >conftest.er1
1749 cat conftest.er1 >&5
1750 mv -f conftest.er1 conftest.err
1752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1753 test $ac_status = 0; } && {
1754 test -z "$ac_c_werror_flag" ||
1755 test ! -s conftest.err
1756 } && test -s conftest.$ac_objext; then :
1759 $as_echo "$as_me: failed program was:" >&5
1760 sed 's/^/| /' conftest.$ac_ext >&5
1764 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1765 as_fn_set_status $ac_retval
1767 } # ac_fn_c_try_compile
1769 # ac_fn_c_try_link LINENO
1770 # -----------------------
1771 # Try to link conftest.$ac_ext, and return whether this succeeded.
1774 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1775 rm -f conftest.$ac_objext conftest$ac_exeext
1776 if { { ac_try="$ac_link"
1778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1779 *) ac_try_echo=$ac_try;;
1781 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1782 $as_echo "$ac_try_echo"; } >&5
1783 (eval "$ac_link") 2>conftest.err
1785 if test -s conftest.err; then
1786 grep -v '^ *+' conftest.err >conftest.er1
1787 cat conftest.er1 >&5
1788 mv -f conftest.er1 conftest.err
1790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1791 test $ac_status = 0; } && {
1792 test -z "$ac_c_werror_flag" ||
1793 test ! -s conftest.err
1794 } && test -s conftest$ac_exeext && {
1795 test "$cross_compiling" = yes ||
1796 test -x conftest$ac_exeext
1800 $as_echo "$as_me: failed program was:" >&5
1801 sed 's/^/| /' conftest.$ac_ext >&5
1805 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1806 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1807 # interfere with the next link command; also delete a directory that is
1808 # left behind by Apple's compiler. We do this before executing the actions.
1809 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1810 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1811 as_fn_set_status $ac_retval
1813 } # ac_fn_c_try_link
1815 # ac_fn_c_try_cpp LINENO
1816 # ----------------------
1817 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1820 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1821 if { { ac_try="$ac_cpp conftest.$ac_ext"
1823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1824 *) ac_try_echo=$ac_try;;
1826 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1827 $as_echo "$ac_try_echo"; } >&5
1828 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1830 if test -s conftest.err; then
1831 grep -v '^ *+' conftest.err >conftest.er1
1832 cat conftest.er1 >&5
1833 mv -f conftest.er1 conftest.err
1835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1836 test $ac_status = 0; } > conftest.i && {
1837 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1838 test ! -s conftest.err
1842 $as_echo "$as_me: failed program was:" >&5
1843 sed 's/^/| /' conftest.$ac_ext >&5
1847 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1848 as_fn_set_status $ac_retval
1852 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1853 # -------------------------------------------------------
1854 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1855 # the include files in INCLUDES and setting the cache variable VAR
1857 ac_fn_c_check_header_mongrel ()
1859 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1860 if eval \${$3+:} false; then :
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1862 $as_echo_n "checking for $2... " >&6; }
1863 if eval \${$3+:} false; then :
1864 $as_echo_n "(cached) " >&6
1867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1868 $as_echo "$ac_res" >&6; }
1870 # Is the header compilable?
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1872 $as_echo_n "checking $2 usability... " >&6; }
1873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1874 /* end confdefs.h. */
1878 if ac_fn_c_try_compile "$LINENO"; then :
1879 ac_header_compiler=yes
1881 ac_header_compiler=no
1883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1885 $as_echo "$ac_header_compiler" >&6; }
1887 # Is the header present?
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1889 $as_echo_n "checking $2 presence... " >&6; }
1890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1891 /* end confdefs.h. */
1894 if ac_fn_c_try_cpp "$LINENO"; then :
1895 ac_header_preproc=yes
1897 ac_header_preproc=no
1899 rm -f conftest.err conftest.i conftest.$ac_ext
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1901 $as_echo "$ac_header_preproc" >&6; }
1903 # So? What about this header?
1904 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1907 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1909 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1913 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1915 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1917 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1919 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1921 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1925 $as_echo_n "checking for $2... " >&6; }
1926 if eval \${$3+:} false; then :
1927 $as_echo_n "(cached) " >&6
1929 eval "$3=\$ac_header_compiler"
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1933 $as_echo "$ac_res" >&6; }
1935 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1937 } # ac_fn_c_check_header_mongrel
1939 # ac_fn_c_try_run LINENO
1940 # ----------------------
1941 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1942 # that executables *can* be run.
1945 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1946 if { { ac_try="$ac_link"
1948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1949 *) ac_try_echo=$ac_try;;
1951 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1952 $as_echo "$ac_try_echo"; } >&5
1953 (eval "$ac_link") 2>&5
1955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1956 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1957 { { case "(($ac_try" in
1958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1959 *) ac_try_echo=$ac_try;;
1961 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1962 $as_echo "$ac_try_echo"; } >&5
1963 (eval "$ac_try") 2>&5
1965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1966 test $ac_status = 0; }; }; then :
1969 $as_echo "$as_me: program exited with status $ac_status" >&5
1970 $as_echo "$as_me: failed program was:" >&5
1971 sed 's/^/| /' conftest.$ac_ext >&5
1973 ac_retval=$ac_status
1975 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1976 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1977 as_fn_set_status $ac_retval
1981 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1982 # -------------------------------------------------------
1983 # Tests whether HEADER exists and can be compiled using the include files in
1984 # INCLUDES, setting the cache variable VAR accordingly.
1985 ac_fn_c_check_header_compile ()
1987 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1989 $as_echo_n "checking for $2... " >&6; }
1990 if eval \${$3+:} false; then :
1991 $as_echo_n "(cached) " >&6
1993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1994 /* end confdefs.h. */
1998 if ac_fn_c_try_compile "$LINENO"; then :
2003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2007 $as_echo "$ac_res" >&6; }
2008 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2010 } # ac_fn_c_check_header_compile
2012 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2013 # -------------------------------------------
2014 # Tests whether TYPE exists after having included INCLUDES, setting cache
2015 # variable VAR accordingly.
2016 ac_fn_c_check_type ()
2018 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2020 $as_echo_n "checking for $2... " >&6; }
2021 if eval \${$3+:} false; then :
2022 $as_echo_n "(cached) " >&6
2025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2026 /* end confdefs.h. */
2037 if ac_fn_c_try_compile "$LINENO"; then :
2038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2039 /* end confdefs.h. */
2050 if ac_fn_c_try_compile "$LINENO"; then :
2055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2061 $as_echo "$ac_res" >&6; }
2062 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2064 } # ac_fn_c_check_type
2066 # ac_fn_c_check_func LINENO FUNC VAR
2067 # ----------------------------------
2068 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2069 ac_fn_c_check_func ()
2071 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2073 $as_echo_n "checking for $2... " >&6; }
2074 if eval \${$3+:} false; then :
2075 $as_echo_n "(cached) " >&6
2077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2078 /* end confdefs.h. */
2079 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2080 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2081 #define $2 innocuous_$2
2083 /* System header to define __stub macros and hopefully few prototypes,
2084 which can conflict with char $2 (); below.
2085 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2086 <limits.h> exists even on freestanding compilers. */
2089 # include <limits.h>
2091 # include <assert.h>
2096 /* Override any GCC internal prototype to avoid an error.
2097 Use char because int might match the return type of a GCC
2098 builtin and then its argument prototype would still apply. */
2103 /* The GNU C library defines this for functions which it implements
2104 to always fail with ENOSYS. Some functions are actually named
2105 something starting with __ and the normal name is an alias. */
2106 #if defined __stub_$2 || defined __stub___$2
2118 if ac_fn_c_try_link "$LINENO"; then :
2123 rm -f core conftest.err conftest.$ac_objext \
2124 conftest$ac_exeext conftest.$ac_ext
2127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2128 $as_echo "$ac_res" >&6; }
2129 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2131 } # ac_fn_c_check_func
2133 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2134 # ---------------------------------------------
2135 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2137 ac_fn_c_check_decl ()
2139 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2140 as_decl_name=`echo $2|sed 's/ *(.*//'`
2141 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2143 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2144 if eval \${$3+:} false; then :
2145 $as_echo_n "(cached) " >&6
2147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2148 /* end confdefs.h. */
2153 #ifndef $as_decl_name
2155 (void) $as_decl_use;
2157 (void) $as_decl_name;
2165 if ac_fn_c_try_compile "$LINENO"; then :
2170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2174 $as_echo "$ac_res" >&6; }
2175 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2177 } # ac_fn_c_check_decl
2179 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2180 # --------------------------------------------
2181 # Tries to find the compile-time value of EXPR in a program that includes
2182 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2184 ac_fn_c_compute_int ()
2186 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2187 if test "$cross_compiling" = yes; then
2188 # Depending upon the size, compute the lo and hi bounds.
2189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2190 /* end confdefs.h. */
2195 static int test_array [1 - 2 * !(($2) >= 0)];
2197 return test_array [0];
2203 if ac_fn_c_try_compile "$LINENO"; then :
2206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2207 /* end confdefs.h. */
2212 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2214 return test_array [0];
2220 if ac_fn_c_try_compile "$LINENO"; then :
2221 ac_hi=$ac_mid; break
2223 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2224 if test $ac_lo -le $ac_mid; then
2228 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2234 /* end confdefs.h. */
2239 static int test_array [1 - 2 * !(($2) < 0)];
2241 return test_array [0];
2247 if ac_fn_c_try_compile "$LINENO"; then :
2250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2251 /* end confdefs.h. */
2256 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2258 return test_array [0];
2264 if ac_fn_c_try_compile "$LINENO"; then :
2265 ac_lo=$ac_mid; break
2267 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2268 if test $ac_mid -le $ac_hi; then
2272 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2282 # Binary search between lo and hi bounds.
2283 while test "x$ac_lo" != "x$ac_hi"; do
2284 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2286 /* end confdefs.h. */
2291 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2293 return test_array [0];
2299 if ac_fn_c_try_compile "$LINENO"; then :
2302 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2307 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2312 /* end confdefs.h. */
2314 static long int longval () { return $2; }
2315 static unsigned long int ulongval () { return $2; }
2322 FILE *f = fopen ("conftest.val", "w");
2327 long int i = longval ();
2330 fprintf (f, "%ld", i);
2334 unsigned long int i = ulongval ();
2337 fprintf (f, "%lu", i);
2339 /* Do not output a trailing newline, as this causes \r\n confusion
2340 on some platforms. */
2341 return ferror (f) || fclose (f) != 0;
2347 if ac_fn_c_try_run "$LINENO"; then :
2348 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2352 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2353 conftest.$ac_objext conftest.beam conftest.$ac_ext
2357 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2358 as_fn_set_status $ac_retval
2360 } # ac_fn_c_compute_int
2362 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2363 # ----------------------------------------------------
2364 # Tries to find if the field MEMBER exists in type AGGR, after including
2365 # INCLUDES, setting cache variable VAR accordingly.
2366 ac_fn_c_check_member ()
2368 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2370 $as_echo_n "checking for $2.$3... " >&6; }
2371 if eval \${$4+:} false; then :
2372 $as_echo_n "(cached) " >&6
2374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2375 /* end confdefs.h. */
2387 if ac_fn_c_try_compile "$LINENO"; then :
2390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2391 /* end confdefs.h. */
2397 if (sizeof ac_aggr.$3)
2403 if ac_fn_c_try_compile "$LINENO"; then :
2408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2414 $as_echo "$ac_res" >&6; }
2415 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2417 } # ac_fn_c_check_member
2418 cat >config.log <<_ACEOF
2419 This file contains any messages produced by compilers while
2420 running configure, to aid debugging if configure makes a mistake.
2422 It was created by $as_me, which was
2423 generated by GNU Autoconf 2.69. Invocation command line was
2435 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2436 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2437 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2438 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2439 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2441 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2442 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2444 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2445 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2446 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2447 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2448 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2449 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2450 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2458 test -z "$as_dir" && as_dir=.
2459 $as_echo "PATH: $as_dir"
2475 # Keep a trace of the command line.
2476 # Strip out --no-create and --no-recursion so they do not pile up.
2477 # Strip out --silent because we don't want to record it for future runs.
2478 # Also quote any args containing shell meta-characters.
2479 # Make two passes to allow for proper duplicate-argument suppression.
2483 ac_must_keep_next=false
2489 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2490 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2491 | -silent | --silent | --silen | --sile | --sil)
2494 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2497 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2499 as_fn_append ac_configure_args1 " '$ac_arg'"
2500 if test $ac_must_keep_next = true; then
2501 ac_must_keep_next=false # Got value, back to normal.
2504 *=* | --config-cache | -C | -disable-* | --disable-* \
2505 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2506 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2507 | -with-* | --with-* | -without-* | --without-* | --x)
2508 case "$ac_configure_args0 " in
2509 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2512 -* ) ac_must_keep_next=true ;;
2515 as_fn_append ac_configure_args " '$ac_arg'"
2520 { ac_configure_args0=; unset ac_configure_args0;}
2521 { ac_configure_args1=; unset ac_configure_args1;}
2523 # When interrupted or exit'd, cleanup temporary files, and complete
2524 # config.log. We remove comments because anyway the quotes in there
2525 # would cause problems or look ugly.
2526 # WARNING: Use '\'' to represent an apostrophe within the trap.
2527 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2528 trap 'exit_status=$?
2529 # Save into config.log some information that might help in debugging.
2533 $as_echo "## ---------------- ##
2534 ## Cache variables. ##
2535 ## ---------------- ##"
2537 # The following way of writing the cache mishandles newlines in values,
2539 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2540 eval ac_val=\$$ac_var
2544 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2545 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2548 _ | IFS | as_nl) ;; #(
2549 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2550 *) { eval $ac_var=; unset $ac_var;} ;;
2555 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2556 *${as_nl}ac_space=\ *)
2558 "s/'\''/'\''\\\\'\'''\''/g;
2559 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2562 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2569 $as_echo "## ----------------- ##
2570 ## Output variables. ##
2571 ## ----------------- ##"
2573 for ac_var in $ac_subst_vars
2575 eval ac_val=\$$ac_var
2577 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2579 $as_echo "$ac_var='\''$ac_val'\''"
2583 if test -n "$ac_subst_files"; then
2584 $as_echo "## ------------------- ##
2585 ## File substitutions. ##
2586 ## ------------------- ##"
2588 for ac_var in $ac_subst_files
2590 eval ac_val=\$$ac_var
2592 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2594 $as_echo "$ac_var='\''$ac_val'\''"
2599 if test -s confdefs.h; then
2600 $as_echo "## ----------- ##
2607 test "$ac_signal" != 0 &&
2608 $as_echo "$as_me: caught signal $ac_signal"
2609 $as_echo "$as_me: exit $exit_status"
2611 rm -f core *.core core.conftest.* &&
2612 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2615 for ac_signal in 1 2 13 15; do
2616 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2620 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2621 rm -f -r conftest* confdefs.h
2623 $as_echo "/* confdefs.h */" > confdefs.h
2625 # Predefined preprocessor variables.
2627 cat >>confdefs.h <<_ACEOF
2628 #define PACKAGE_NAME "$PACKAGE_NAME"
2631 cat >>confdefs.h <<_ACEOF
2632 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2635 cat >>confdefs.h <<_ACEOF
2636 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2639 cat >>confdefs.h <<_ACEOF
2640 #define PACKAGE_STRING "$PACKAGE_STRING"
2643 cat >>confdefs.h <<_ACEOF
2644 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2647 cat >>confdefs.h <<_ACEOF
2648 #define PACKAGE_URL "$PACKAGE_URL"
2652 # Let the site file select an alternate cache file if it wants to.
2653 # Prefer an explicitly selected file to automatically selected ones.
2656 if test -n "$CONFIG_SITE"; then
2657 # We do not want a PATH search for config.site.
2658 case $CONFIG_SITE in #((
2659 -*) ac_site_file1=./$CONFIG_SITE;;
2660 */*) ac_site_file1=$CONFIG_SITE;;
2661 *) ac_site_file1=./$CONFIG_SITE;;
2663 elif test "x$prefix" != xNONE; then
2664 ac_site_file1=$prefix/share/config.site
2665 ac_site_file2=$prefix/etc/config.site
2667 ac_site_file1=$ac_default_prefix/share/config.site
2668 ac_site_file2=$ac_default_prefix/etc/config.site
2670 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2672 test "x$ac_site_file" = xNONE && continue
2673 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2675 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2676 sed 's/^/| /' "$ac_site_file" >&5
2678 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2679 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2680 as_fn_error $? "failed to load site script $ac_site_file
2681 See \`config.log' for more details" "$LINENO" 5; }
2685 if test -r "$cache_file"; then
2686 # Some versions of bash will fail to source /dev/null (special files
2687 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2688 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2690 $as_echo "$as_me: loading cache $cache_file" >&6;}
2692 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2693 *) . "./$cache_file";;
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2698 $as_echo "$as_me: creating cache $cache_file" >&6;}
2702 gt_needs="$gt_needs "
2703 as_fn_append ac_header_list " stdlib.h"
2704 as_fn_append ac_header_list " unistd.h"
2705 as_fn_append ac_header_list " sys/param.h"
2706 as_fn_append ac_func_list " symlink"
2707 # Check that the precious variables saved in the cache have kept the same
2709 ac_cache_corrupted=false
2710 for ac_var in $ac_precious_vars; do
2711 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2712 eval ac_new_set=\$ac_env_${ac_var}_set
2713 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2714 eval ac_new_val=\$ac_env_${ac_var}_value
2715 case $ac_old_set,$ac_new_set in
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2718 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2719 ac_cache_corrupted=: ;;
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2722 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2723 ac_cache_corrupted=: ;;
2726 if test "x$ac_old_val" != "x$ac_new_val"; then
2727 # differences in whitespace do not lead to failure.
2728 ac_old_val_w=`echo x $ac_old_val`
2729 ac_new_val_w=`echo x $ac_new_val`
2730 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2732 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2733 ac_cache_corrupted=:
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2736 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2737 eval $ac_var=\$ac_old_val
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2740 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2742 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2745 # Pass precious variables to config.status.
2746 if test "$ac_new_set" = set; then
2748 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2749 *) ac_arg=$ac_var=$ac_new_val ;;
2751 case " $ac_configure_args " in
2752 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2753 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2757 if $ac_cache_corrupted; then
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2759 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2761 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2762 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2764 ## -------------------- ##
2765 ## Main body of script. ##
2766 ## -------------------- ##
2769 ac_cpp='$CPP $CPPFLAGS'
2770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2777 for ac_dir in config "$srcdir"/config; do
2778 if test -f "$ac_dir/install-sh"; then
2780 ac_install_sh="$ac_aux_dir/install-sh -c"
2782 elif test -f "$ac_dir/install.sh"; then
2784 ac_install_sh="$ac_aux_dir/install.sh -c"
2786 elif test -f "$ac_dir/shtool"; then
2788 ac_install_sh="$ac_aux_dir/shtool install -c"
2792 if test -z "$ac_aux_dir"; then
2793 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2796 # These three variables are undocumented and unsupported,
2797 # and are intended to be withdrawn in a future Autoconf release.
2798 # They can cause serious problems if a builder's source tree is in a directory
2799 # whose full name contains unusual characters.
2800 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2801 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2802 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2805 ac_config_headers="$ac_config_headers lib/config.h"
2811 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
2812 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2813 E2FSPROGS_DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2814 | tr \" " " | awk '{print $1}'`
2815 E2FSPROGS_DAY=$(echo $E2FSPROGS_DATE | awk -F- '{print $1}' | sed -e '/^[1-9]$/s/^/0/')
2816 MONTH=`echo $E2FSPROGS_DATE | awk -F- '{print $2}'`
2817 YEAR=`echo $E2FSPROGS_DATE | awk -F- '{print $3}'`
2819 if expr $YEAR ">" 1900 > /dev/null ; then
2820 E2FSPROGS_YEAR=$YEAR
2821 elif expr $YEAR ">" 90 >/dev/null ; then
2822 E2FSPROGS_YEAR=19$YEAR
2824 E2FSPROGS_YEAR=20$YEAR
2828 Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2829 Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2830 Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2831 Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2832 May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2833 Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2834 Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2835 Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2836 Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2837 Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2838 Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2839 Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
2840 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
2841 $as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
2844 base_ver=`echo $E2FSPROGS_VERSION | \
2845 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
2847 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2849 case $E2FSPROGS_VERSION in
2851 E2FSPROGS_PKGVER="$base_ver~WIP.$date_spec"
2854 E2FSPROGS_PKGVER="$base_ver"
2858 unset DATE MONTH YEAR base_ver pre_vers date_spec
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
2860 $as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
2862 $as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
2871 # Check whether --with-diet-libc was given.
2872 if test "${with_diet_libc+set}" = set; then :
2873 withval=$with_diet_libc; CC="diet cc -nostdinc"
2879 LIBS="$LIBS -lcompat"
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
2882 $as_echo "CC=$CC" >&6; }
2884 # Make sure we can run config.sub.
2885 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2886 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2889 $as_echo_n "checking build system type... " >&6; }
2890 if ${ac_cv_build+:} false; then :
2891 $as_echo_n "(cached) " >&6
2893 ac_build_alias=$build_alias
2894 test "x$ac_build_alias" = x &&
2895 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2896 test "x$ac_build_alias" = x &&
2897 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2898 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2899 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2903 $as_echo "$ac_cv_build" >&6; }
2904 case $ac_cv_build in
2906 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2909 ac_save_IFS=$IFS; IFS='-'
2915 # Remember, the first character of IFS is used to create $*,
2916 # except with old shells:
2919 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2923 $as_echo_n "checking host system type... " >&6; }
2924 if ${ac_cv_host+:} false; then :
2925 $as_echo_n "(cached) " >&6
2927 if test "x$host_alias" = x; then
2928 ac_cv_host=$ac_cv_build
2930 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2931 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2936 $as_echo "$ac_cv_host" >&6; }
2939 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2942 ac_save_IFS=$IFS; IFS='-'
2948 # Remember, the first character of IFS is used to create $*,
2949 # except with old shells:
2952 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2957 ac_cpp='$CPP $CPPFLAGS'
2958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2961 if test -n "$ac_tool_prefix"; then
2962 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2963 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2965 $as_echo_n "checking for $ac_word... " >&6; }
2966 if ${ac_cv_prog_CC+:} false; then :
2967 $as_echo_n "(cached) " >&6
2969 if test -n "$CC"; then
2970 ac_cv_prog_CC="$CC" # Let the user override the test.
2972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2976 test -z "$as_dir" && as_dir=.
2977 for ac_exec_ext in '' $ac_executable_extensions; do
2978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2979 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2990 if test -n "$CC"; then
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2992 $as_echo "$CC" >&6; }
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2995 $as_echo "no" >&6; }
3000 if test -z "$ac_cv_prog_CC"; then
3002 # Extract the first word of "gcc", so it can be a program name with args.
3003 set dummy gcc; ac_word=$2
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3005 $as_echo_n "checking for $ac_word... " >&6; }
3006 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3007 $as_echo_n "(cached) " >&6
3009 if test -n "$ac_ct_CC"; then
3010 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3016 test -z "$as_dir" && as_dir=.
3017 for ac_exec_ext in '' $ac_executable_extensions; do
3018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3019 ac_cv_prog_ac_ct_CC="gcc"
3020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3029 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3030 if test -n "$ac_ct_CC"; then
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3032 $as_echo "$ac_ct_CC" >&6; }
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3035 $as_echo "no" >&6; }
3038 if test "x$ac_ct_CC" = x; then
3041 case $cross_compiling:$ac_tool_warned in
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3044 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3045 ac_tool_warned=yes ;;
3053 if test -z "$CC"; then
3054 if test -n "$ac_tool_prefix"; then
3055 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3056 set dummy ${ac_tool_prefix}cc; ac_word=$2
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3058 $as_echo_n "checking for $ac_word... " >&6; }
3059 if ${ac_cv_prog_CC+:} false; then :
3060 $as_echo_n "(cached) " >&6
3062 if test -n "$CC"; then
3063 ac_cv_prog_CC="$CC" # Let the user override the test.
3065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3069 test -z "$as_dir" && as_dir=.
3070 for ac_exec_ext in '' $ac_executable_extensions; do
3071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3072 ac_cv_prog_CC="${ac_tool_prefix}cc"
3073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
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; }
3094 if test -z "$CC"; then
3095 # Extract the first word of "cc", so it can be a program name with args.
3096 set dummy cc; ac_word=$2
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3098 $as_echo_n "checking for $ac_word... " >&6; }
3099 if ${ac_cv_prog_CC+:} false; then :
3100 $as_echo_n "(cached) " >&6
3102 if test -n "$CC"; then
3103 ac_cv_prog_CC="$CC" # Let the user override the test.
3106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3110 test -z "$as_dir" && as_dir=.
3111 for ac_exec_ext in '' $ac_executable_extensions; do
3112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3113 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3114 ac_prog_rejected=yes
3118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3125 if test $ac_prog_rejected = yes; then
3126 # We found a bogon in the path, so make sure we never use it.
3127 set dummy $ac_cv_prog_CC
3129 if test $# != 0; then
3130 # We chose a different compiler from the bogus one.
3131 # However, it has the same basename, so the bogon will be chosen
3132 # first if we set CC to just the basename; use the full file name.
3134 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3140 if test -n "$CC"; then
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3142 $as_echo "$CC" >&6; }
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3145 $as_echo "no" >&6; }
3150 if test -z "$CC"; then
3151 if test -n "$ac_tool_prefix"; then
3152 for ac_prog in cl.exe
3154 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3155 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3157 $as_echo_n "checking for $ac_word... " >&6; }
3158 if ${ac_cv_prog_CC+:} false; then :
3159 $as_echo_n "(cached) " >&6
3161 if test -n "$CC"; then
3162 ac_cv_prog_CC="$CC" # Let the user override the test.
3164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3168 test -z "$as_dir" && as_dir=.
3169 for ac_exec_ext in '' $ac_executable_extensions; do
3170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3171 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3182 if test -n "$CC"; then
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3184 $as_echo "$CC" >&6; }
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3187 $as_echo "no" >&6; }
3191 test -n "$CC" && break
3194 if test -z "$CC"; then
3196 for ac_prog in cl.exe
3198 # Extract the first word of "$ac_prog", so it can be a program name with args.
3199 set dummy $ac_prog; ac_word=$2
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3201 $as_echo_n "checking for $ac_word... " >&6; }
3202 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3203 $as_echo_n "(cached) " >&6
3205 if test -n "$ac_ct_CC"; then
3206 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3212 test -z "$as_dir" && as_dir=.
3213 for ac_exec_ext in '' $ac_executable_extensions; do
3214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3215 ac_cv_prog_ac_ct_CC="$ac_prog"
3216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3225 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3226 if test -n "$ac_ct_CC"; then
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3228 $as_echo "$ac_ct_CC" >&6; }
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3231 $as_echo "no" >&6; }
3235 test -n "$ac_ct_CC" && break
3238 if test "x$ac_ct_CC" = x; then
3241 case $cross_compiling:$ac_tool_warned in
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3244 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3245 ac_tool_warned=yes ;;
3254 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3255 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3256 as_fn_error $? "no acceptable C compiler found in \$PATH
3257 See \`config.log' for more details" "$LINENO" 5; }
3259 # Provide some information about the compiler.
3260 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3263 for ac_option in --version -v -V -qversion; do
3264 { { ac_try="$ac_compiler $ac_option >&5"
3266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3267 *) ac_try_echo=$ac_try;;
3269 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3270 $as_echo "$ac_try_echo"; } >&5
3271 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3273 if test -s conftest.err; then
3275 ... rest of stderr output deleted ...
3276 10q' conftest.err >conftest.er1
3277 cat conftest.er1 >&5
3279 rm -f conftest.er1 conftest.err
3280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3281 test $ac_status = 0; }
3284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3285 /* end confdefs.h. */
3295 ac_clean_files_save=$ac_clean_files
3296 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3297 # Try to create an executable without -o first, disregard a.out.
3298 # It will help us diagnose broken compilers, and finding out an intuition
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3301 $as_echo_n "checking whether the C compiler works... " >&6; }
3302 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3304 # The possible output files:
3305 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3308 for ac_file in $ac_files
3311 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3312 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3317 if { { ac_try="$ac_link_default"
3319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3320 *) ac_try_echo=$ac_try;;
3322 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3323 $as_echo "$ac_try_echo"; } >&5
3324 (eval "$ac_link_default") 2>&5
3326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3327 test $ac_status = 0; }; then :
3328 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3329 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3330 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3331 # so that the user can short-circuit this test for compilers unknown to
3333 for ac_file in $ac_files ''
3335 test -f "$ac_file" || continue
3337 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3340 # We found the default executable, but exeext='' is most
3344 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3346 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3348 # We set ac_cv_exeext here because the later test for it is not
3349 # safe: cross compilers may not add the suffix if given an `-o'
3350 # argument, so we may need to know it at that point already.
3351 # Even if this section looks crufty: it has the advantage of
3358 test "$ac_cv_exeext" = no && ac_cv_exeext=
3363 if test -z "$ac_file"; then :
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3365 $as_echo "no" >&6; }
3366 $as_echo "$as_me: failed program was:" >&5
3367 sed 's/^/| /' conftest.$ac_ext >&5
3369 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3370 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3371 as_fn_error 77 "C compiler cannot create executables
3372 See \`config.log' for more details" "$LINENO" 5; }
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3375 $as_echo "yes" >&6; }
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3378 $as_echo_n "checking for C compiler default output file name... " >&6; }
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3380 $as_echo "$ac_file" >&6; }
3381 ac_exeext=$ac_cv_exeext
3383 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3384 ac_clean_files=$ac_clean_files_save
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3386 $as_echo_n "checking for suffix of executables... " >&6; }
3387 if { { ac_try="$ac_link"
3389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3390 *) ac_try_echo=$ac_try;;
3392 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3393 $as_echo "$ac_try_echo"; } >&5
3394 (eval "$ac_link") 2>&5
3396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3397 test $ac_status = 0; }; then :
3398 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3399 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3400 # work properly (i.e., refer to `conftest.exe'), while it won't with
3402 for ac_file in conftest.exe conftest conftest.*; do
3403 test -f "$ac_file" || continue
3405 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3406 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3412 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3413 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3414 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3415 See \`config.log' for more details" "$LINENO" 5; }
3417 rm -f conftest conftest$ac_cv_exeext
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3419 $as_echo "$ac_cv_exeext" >&6; }
3421 rm -f conftest.$ac_ext
3422 EXEEXT=$ac_cv_exeext
3424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3425 /* end confdefs.h. */
3430 FILE *f = fopen ("conftest.out", "w");
3431 return ferror (f) || fclose (f) != 0;
3437 ac_clean_files="$ac_clean_files conftest.out"
3438 # Check that the compiler produces executables we can run. If not, either
3439 # the compiler is broken, or we cross compile.
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3441 $as_echo_n "checking whether we are cross compiling... " >&6; }
3442 if test "$cross_compiling" != yes; then
3443 { { ac_try="$ac_link"
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_link") 2>&5
3452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3453 test $ac_status = 0; }
3454 if { ac_try='./conftest$ac_cv_exeext'
3455 { { case "(($ac_try" in
3456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3457 *) ac_try_echo=$ac_try;;
3459 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3460 $as_echo "$ac_try_echo"; } >&5
3461 (eval "$ac_try") 2>&5
3463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3464 test $ac_status = 0; }; }; then
3467 if test "$cross_compiling" = maybe; then
3470 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3471 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3472 as_fn_error $? "cannot run C compiled programs.
3473 If you meant to cross compile, use \`--host'.
3474 See \`config.log' for more details" "$LINENO" 5; }
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3479 $as_echo "$cross_compiling" >&6; }
3481 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3482 ac_clean_files=$ac_clean_files_save
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3484 $as_echo_n "checking for suffix of object files... " >&6; }
3485 if ${ac_cv_objext+:} false; then :
3486 $as_echo_n "(cached) " >&6
3488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3489 /* end confdefs.h. */
3499 rm -f conftest.o conftest.obj
3500 if { { ac_try="$ac_compile"
3502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3503 *) ac_try_echo=$ac_try;;
3505 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3506 $as_echo "$ac_try_echo"; } >&5
3507 (eval "$ac_compile") 2>&5
3509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3510 test $ac_status = 0; }; then :
3511 for ac_file in conftest.o conftest.obj conftest.*; do
3512 test -f "$ac_file" || continue;
3514 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3515 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3520 $as_echo "$as_me: failed program was:" >&5
3521 sed 's/^/| /' conftest.$ac_ext >&5
3523 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3524 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3525 as_fn_error $? "cannot compute suffix of object files: cannot compile
3526 See \`config.log' for more details" "$LINENO" 5; }
3528 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3531 $as_echo "$ac_cv_objext" >&6; }
3532 OBJEXT=$ac_cv_objext
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3535 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3536 if ${ac_cv_c_compiler_gnu+:} false; then :
3537 $as_echo_n "(cached) " >&6
3539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3540 /* end confdefs.h. */
3553 if ac_fn_c_try_compile "$LINENO"; then :
3558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3559 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3563 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3564 if test $ac_compiler_gnu = yes; then
3569 ac_test_CFLAGS=${CFLAGS+set}
3570 ac_save_CFLAGS=$CFLAGS
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3572 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3573 if ${ac_cv_prog_cc_g+:} false; then :
3574 $as_echo_n "(cached) " >&6
3576 ac_save_c_werror_flag=$ac_c_werror_flag
3577 ac_c_werror_flag=yes
3580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3581 /* end confdefs.h. */
3591 if ac_fn_c_try_compile "$LINENO"; then :
3595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3596 /* end confdefs.h. */
3606 if ac_fn_c_try_compile "$LINENO"; then :
3609 ac_c_werror_flag=$ac_save_c_werror_flag
3611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3612 /* end confdefs.h. */
3622 if ac_fn_c_try_compile "$LINENO"; then :
3625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3630 ac_c_werror_flag=$ac_save_c_werror_flag
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3633 $as_echo "$ac_cv_prog_cc_g" >&6; }
3634 if test "$ac_test_CFLAGS" = set; then
3635 CFLAGS=$ac_save_CFLAGS
3636 elif test $ac_cv_prog_cc_g = yes; then
3637 if test "$GCC" = yes; then
3643 if test "$GCC" = yes; then
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3650 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3651 if ${ac_cv_prog_cc_c89+:} false; then :
3652 $as_echo_n "(cached) " >&6
3654 ac_cv_prog_cc_c89=no
3656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3657 /* end confdefs.h. */
3661 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3662 struct buf { int x; };
3663 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3664 static char *e (p, i)
3670 static char *f (char * (*g) (char **, int), char **p, ...)
3675 s = g (p, va_arg (v,int));
3680 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3681 function prototypes and stuff, but not '\xHH' hex character constants.
3682 These don't provoke an error unfortunately, instead are silently treated
3683 as 'x'. The following induces an error, until -std is added to get
3684 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3685 array size at least. It's necessary to write '\x00'==0 to get something
3686 that's true only with -std. */
3687 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3689 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3690 inside strings and character constants. */
3692 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3694 int test (int i, double x);
3695 struct s1 {int (*f) (int a);};
3696 struct s2 {int (*f) (double a);};
3697 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3703 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3708 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3709 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3711 CC="$ac_save_CC $ac_arg"
3712 if ac_fn_c_try_compile "$LINENO"; then :
3713 ac_cv_prog_cc_c89=$ac_arg
3715 rm -f core conftest.err conftest.$ac_objext
3716 test "x$ac_cv_prog_cc_c89" != "xno" && break
3718 rm -f conftest.$ac_ext
3723 case "x$ac_cv_prog_cc_c89" in
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3726 $as_echo "none needed" >&6; } ;;
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3729 $as_echo "unsupported" >&6; } ;;
3731 CC="$CC $ac_cv_prog_cc_c89"
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3733 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3735 if test "x$ac_cv_prog_cc_c89" != xno; then :
3740 ac_cpp='$CPP $CPPFLAGS'
3741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3747 $as_echo_n "checking for dlopen in -ldl... " >&6; }
3748 if ${ac_cv_lib_dl_dlopen+:} false; then :
3749 $as_echo_n "(cached) " >&6
3751 ac_check_lib_save_LIBS=$LIBS
3753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3754 /* end confdefs.h. */
3756 /* Override any GCC internal prototype to avoid an error.
3757 Use char because int might match the return type of a GCC
3758 builtin and then its argument prototype would still apply. */
3771 if ac_fn_c_try_link "$LINENO"; then :
3772 ac_cv_lib_dl_dlopen=yes
3774 ac_cv_lib_dl_dlopen=no
3776 rm -f core conftest.err conftest.$ac_objext \
3777 conftest$ac_exeext conftest.$ac_ext
3778 LIBS=$ac_check_lib_save_LIBS
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3781 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
3782 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
3788 # Check whether --with-cc was given.
3789 if test "${with_cc+set}" = set; then :
3790 withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5
3794 # Check whether --with-ccopts was given.
3795 if test "${with_ccopts+set}" = set; then :
3796 withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
3800 # Check whether --with-ldopts was given.
3801 if test "${with_ldopts+set}" = set; then :
3802 withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
3806 ac_cpp='$CPP $CPPFLAGS'
3807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3810 if test -n "$ac_tool_prefix"; then
3811 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3812 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3814 $as_echo_n "checking for $ac_word... " >&6; }
3815 if ${ac_cv_prog_CC+:} false; then :
3816 $as_echo_n "(cached) " >&6
3818 if test -n "$CC"; then
3819 ac_cv_prog_CC="$CC" # Let the user override the test.
3821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3825 test -z "$as_dir" && as_dir=.
3826 for ac_exec_ext in '' $ac_executable_extensions; do
3827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3828 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3839 if test -n "$CC"; then
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3841 $as_echo "$CC" >&6; }
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3844 $as_echo "no" >&6; }
3849 if test -z "$ac_cv_prog_CC"; then
3851 # Extract the first word of "gcc", so it can be a program name with args.
3852 set dummy gcc; ac_word=$2
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3854 $as_echo_n "checking for $ac_word... " >&6; }
3855 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3856 $as_echo_n "(cached) " >&6
3858 if test -n "$ac_ct_CC"; then
3859 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3865 test -z "$as_dir" && as_dir=.
3866 for ac_exec_ext in '' $ac_executable_extensions; do
3867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3868 ac_cv_prog_ac_ct_CC="gcc"
3869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3878 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3879 if test -n "$ac_ct_CC"; then
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3881 $as_echo "$ac_ct_CC" >&6; }
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3884 $as_echo "no" >&6; }
3887 if test "x$ac_ct_CC" = x; then
3890 case $cross_compiling:$ac_tool_warned in
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3893 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3894 ac_tool_warned=yes ;;
3902 if test -z "$CC"; then
3903 if test -n "$ac_tool_prefix"; then
3904 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3905 set dummy ${ac_tool_prefix}cc; ac_word=$2
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3907 $as_echo_n "checking for $ac_word... " >&6; }
3908 if ${ac_cv_prog_CC+:} false; then :
3909 $as_echo_n "(cached) " >&6
3911 if test -n "$CC"; then
3912 ac_cv_prog_CC="$CC" # Let the user override the test.
3914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3918 test -z "$as_dir" && as_dir=.
3919 for ac_exec_ext in '' $ac_executable_extensions; do
3920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3921 ac_cv_prog_CC="${ac_tool_prefix}cc"
3922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3932 if test -n "$CC"; then
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3934 $as_echo "$CC" >&6; }
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3937 $as_echo "no" >&6; }
3943 if test -z "$CC"; then
3944 # Extract the first word of "cc", so it can be a program name with args.
3945 set dummy cc; ac_word=$2
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3947 $as_echo_n "checking for $ac_word... " >&6; }
3948 if ${ac_cv_prog_CC+:} false; then :
3949 $as_echo_n "(cached) " >&6
3951 if test -n "$CC"; then
3952 ac_cv_prog_CC="$CC" # Let the user override the test.
3955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3959 test -z "$as_dir" && as_dir=.
3960 for ac_exec_ext in '' $ac_executable_extensions; do
3961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3962 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3963 ac_prog_rejected=yes
3967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3974 if test $ac_prog_rejected = yes; then
3975 # We found a bogon in the path, so make sure we never use it.
3976 set dummy $ac_cv_prog_CC
3978 if test $# != 0; then
3979 # We chose a different compiler from the bogus one.
3980 # However, it has the same basename, so the bogon will be chosen
3981 # first if we set CC to just the basename; use the full file name.
3983 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3989 if test -n "$CC"; then
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3991 $as_echo "$CC" >&6; }
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3994 $as_echo "no" >&6; }
3999 if test -z "$CC"; then
4000 if test -n "$ac_tool_prefix"; then
4001 for ac_prog in cl.exe
4003 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4004 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4006 $as_echo_n "checking for $ac_word... " >&6; }
4007 if ${ac_cv_prog_CC+:} false; then :
4008 $as_echo_n "(cached) " >&6
4010 if test -n "$CC"; then
4011 ac_cv_prog_CC="$CC" # Let the user override the test.
4013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4017 test -z "$as_dir" && as_dir=.
4018 for ac_exec_ext in '' $ac_executable_extensions; do
4019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4020 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4031 if test -n "$CC"; then
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4033 $as_echo "$CC" >&6; }
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4036 $as_echo "no" >&6; }
4040 test -n "$CC" && break
4043 if test -z "$CC"; then
4045 for ac_prog in cl.exe
4047 # Extract the first word of "$ac_prog", so it can be a program name with args.
4048 set dummy $ac_prog; ac_word=$2
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4050 $as_echo_n "checking for $ac_word... " >&6; }
4051 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4052 $as_echo_n "(cached) " >&6
4054 if test -n "$ac_ct_CC"; then
4055 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4061 test -z "$as_dir" && as_dir=.
4062 for ac_exec_ext in '' $ac_executable_extensions; do
4063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4064 ac_cv_prog_ac_ct_CC="$ac_prog"
4065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4074 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4075 if test -n "$ac_ct_CC"; then
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4077 $as_echo "$ac_ct_CC" >&6; }
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4080 $as_echo "no" >&6; }
4084 test -n "$ac_ct_CC" && break
4087 if test "x$ac_ct_CC" = x; then
4090 case $cross_compiling:$ac_tool_warned in
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4093 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4094 ac_tool_warned=yes ;;
4103 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4104 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4105 as_fn_error $? "no acceptable C compiler found in \$PATH
4106 See \`config.log' for more details" "$LINENO" 5; }
4108 # Provide some information about the compiler.
4109 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4112 for ac_option in --version -v -V -qversion; do
4113 { { ac_try="$ac_compiler $ac_option >&5"
4115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4116 *) ac_try_echo=$ac_try;;
4118 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4119 $as_echo "$ac_try_echo"; } >&5
4120 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4122 if test -s conftest.err; then
4124 ... rest of stderr output deleted ...
4125 10q' conftest.err >conftest.er1
4126 cat conftest.er1 >&5
4128 rm -f conftest.er1 conftest.err
4129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4130 test $ac_status = 0; }
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4134 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4135 if ${ac_cv_c_compiler_gnu+:} false; then :
4136 $as_echo_n "(cached) " >&6
4138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4139 /* end confdefs.h. */
4152 if ac_fn_c_try_compile "$LINENO"; then :
4157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4158 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4162 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4163 if test $ac_compiler_gnu = yes; then
4168 ac_test_CFLAGS=${CFLAGS+set}
4169 ac_save_CFLAGS=$CFLAGS
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4171 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4172 if ${ac_cv_prog_cc_g+:} false; then :
4173 $as_echo_n "(cached) " >&6
4175 ac_save_c_werror_flag=$ac_c_werror_flag
4176 ac_c_werror_flag=yes
4179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4180 /* end confdefs.h. */
4190 if ac_fn_c_try_compile "$LINENO"; then :
4194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4195 /* end confdefs.h. */
4205 if ac_fn_c_try_compile "$LINENO"; then :
4208 ac_c_werror_flag=$ac_save_c_werror_flag
4210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4211 /* end confdefs.h. */
4221 if ac_fn_c_try_compile "$LINENO"; then :
4224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4229 ac_c_werror_flag=$ac_save_c_werror_flag
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4232 $as_echo "$ac_cv_prog_cc_g" >&6; }
4233 if test "$ac_test_CFLAGS" = set; then
4234 CFLAGS=$ac_save_CFLAGS
4235 elif test $ac_cv_prog_cc_g = yes; then
4236 if test "$GCC" = yes; then
4242 if test "$GCC" = yes; then
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4249 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4250 if ${ac_cv_prog_cc_c89+:} false; then :
4251 $as_echo_n "(cached) " >&6
4253 ac_cv_prog_cc_c89=no
4255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4256 /* end confdefs.h. */
4260 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4261 struct buf { int x; };
4262 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4263 static char *e (p, i)
4269 static char *f (char * (*g) (char **, int), char **p, ...)
4274 s = g (p, va_arg (v,int));
4279 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4280 function prototypes and stuff, but not '\xHH' hex character constants.
4281 These don't provoke an error unfortunately, instead are silently treated
4282 as 'x'. The following induces an error, until -std is added to get
4283 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4284 array size at least. It's necessary to write '\x00'==0 to get something
4285 that's true only with -std. */
4286 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4288 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4289 inside strings and character constants. */
4291 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4293 int test (int i, double x);
4294 struct s1 {int (*f) (int a);};
4295 struct s2 {int (*f) (double a);};
4296 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4302 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4307 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4308 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4310 CC="$ac_save_CC $ac_arg"
4311 if ac_fn_c_try_compile "$LINENO"; then :
4312 ac_cv_prog_cc_c89=$ac_arg
4314 rm -f core conftest.err conftest.$ac_objext
4315 test "x$ac_cv_prog_cc_c89" != "xno" && break
4317 rm -f conftest.$ac_ext
4322 case "x$ac_cv_prog_cc_c89" in
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4325 $as_echo "none needed" >&6; } ;;
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4328 $as_echo "unsupported" >&6; } ;;
4330 CC="$CC $ac_cv_prog_cc_c89"
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4332 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4334 if test "x$ac_cv_prog_cc_c89" != xno; then :
4339 ac_cpp='$CPP $CPPFLAGS'
4340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4344 if test "$GCC" = yes; then
4345 RDYNAMIC="-rdynamic"
4349 ac_cpp='$CPP $CPPFLAGS'
4350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4354 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4355 # On Suns, sometimes $CPP names a directory.
4356 if test -n "$CPP" && test -d "$CPP"; then
4359 if test -z "$CPP"; then
4360 if ${ac_cv_prog_CPP+:} false; then :
4361 $as_echo_n "(cached) " >&6
4363 # Double quotes because CPP needs to be expanded
4364 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4367 for ac_c_preproc_warn_flag in '' yes
4369 # Use a header file that comes with gcc, so configuring glibc
4370 # with a fresh cross-compiler works.
4371 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4372 # <limits.h> exists even on freestanding compilers.
4373 # On the NeXT, cc -E runs the code through the compiler's parser,
4374 # not just through cpp. "Syntax error" is here to catch this case.
4375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4376 /* end confdefs.h. */
4378 # include <limits.h>
4380 # include <assert.h>
4384 if ac_fn_c_try_cpp "$LINENO"; then :
4387 # Broken: fails on valid input.
4390 rm -f conftest.err conftest.i conftest.$ac_ext
4392 # OK, works on sane cases. Now check whether nonexistent headers
4393 # can be detected and how.
4394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4395 /* end confdefs.h. */
4396 #include <ac_nonexistent.h>
4398 if ac_fn_c_try_cpp "$LINENO"; then :
4399 # Broken: success on invalid input.
4402 # Passes both tests.
4406 rm -f conftest.err conftest.i conftest.$ac_ext
4409 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4410 rm -f conftest.i conftest.err conftest.$ac_ext
4411 if $ac_preproc_ok; then :
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4424 $as_echo "$CPP" >&6; }
4426 for ac_c_preproc_warn_flag in '' yes
4428 # Use a header file that comes with gcc, so configuring glibc
4429 # with a fresh cross-compiler works.
4430 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4431 # <limits.h> exists even on freestanding compilers.
4432 # On the NeXT, cc -E runs the code through the compiler's parser,
4433 # not just through cpp. "Syntax error" is here to catch this case.
4434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4435 /* end confdefs.h. */
4437 # include <limits.h>
4439 # include <assert.h>
4443 if ac_fn_c_try_cpp "$LINENO"; then :
4446 # Broken: fails on valid input.
4449 rm -f conftest.err conftest.i conftest.$ac_ext
4451 # OK, works on sane cases. Now check whether nonexistent headers
4452 # can be detected and how.
4453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4454 /* end confdefs.h. */
4455 #include <ac_nonexistent.h>
4457 if ac_fn_c_try_cpp "$LINENO"; then :
4458 # Broken: success on invalid input.
4461 # Passes both tests.
4465 rm -f conftest.err conftest.i conftest.$ac_ext
4468 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4469 rm -f conftest.i conftest.err conftest.$ac_ext
4470 if $ac_preproc_ok; then :
4473 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4474 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4475 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4476 See \`config.log' for more details" "$LINENO" 5; }
4480 ac_cpp='$CPP $CPPFLAGS'
4481 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4482 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4483 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
4486 $as_echo_n "checking for additional special compiler flags... " >&6; }
4487 if test "$GCC" = yes
4490 alpha) addcflags="-mieee" ;;
4493 if test "x$addcflags" != x
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
4496 $as_echo "$addcflags" >&6; }
4497 CFLAGS="$addcflags $CFLAGS"
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
4500 $as_echo "(none)" >&6; }
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4504 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4505 if ${ac_cv_path_GREP+:} false; then :
4506 $as_echo_n "(cached) " >&6
4508 if test -z "$GREP"; then
4509 ac_path_GREP_found=false
4510 # Loop through the user's path and test for each of PROGNAME-LIST
4511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4512 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4515 test -z "$as_dir" && as_dir=.
4516 for ac_prog in grep ggrep; do
4517 for ac_exec_ext in '' $ac_executable_extensions; do
4518 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4519 as_fn_executable_p "$ac_path_GREP" || continue
4520 # Check for GNU ac_path_GREP and select it if it is found.
4521 # Check for GNU $ac_path_GREP
4522 case `"$ac_path_GREP" --version 2>&1` in
4524 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4527 $as_echo_n 0123456789 >"conftest.in"
4530 cat "conftest.in" "conftest.in" >"conftest.tmp"
4531 mv "conftest.tmp" "conftest.in"
4532 cp "conftest.in" "conftest.nl"
4533 $as_echo 'GREP' >> "conftest.nl"
4534 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4535 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4536 as_fn_arith $ac_count + 1 && ac_count=$as_val
4537 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4538 # Best one so far, save it but keep looking for a better one
4539 ac_cv_path_GREP="$ac_path_GREP"
4540 ac_path_GREP_max=$ac_count
4542 # 10*(2^10) chars as input seems more than enough
4543 test $ac_count -gt 10 && break
4545 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4548 $ac_path_GREP_found && break 3
4553 if test -z "$ac_cv_path_GREP"; then
4554 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4557 ac_cv_path_GREP=$GREP
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4562 $as_echo "$ac_cv_path_GREP" >&6; }
4563 GREP="$ac_cv_path_GREP"
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4567 $as_echo_n "checking for egrep... " >&6; }
4568 if ${ac_cv_path_EGREP+:} false; then :
4569 $as_echo_n "(cached) " >&6
4571 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4572 then ac_cv_path_EGREP="$GREP -E"
4574 if test -z "$EGREP"; then
4575 ac_path_EGREP_found=false
4576 # Loop through the user's path and test for each of PROGNAME-LIST
4577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4578 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4581 test -z "$as_dir" && as_dir=.
4582 for ac_prog in egrep; do
4583 for ac_exec_ext in '' $ac_executable_extensions; do
4584 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4585 as_fn_executable_p "$ac_path_EGREP" || continue
4586 # Check for GNU ac_path_EGREP and select it if it is found.
4587 # Check for GNU $ac_path_EGREP
4588 case `"$ac_path_EGREP" --version 2>&1` in
4590 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4593 $as_echo_n 0123456789 >"conftest.in"
4596 cat "conftest.in" "conftest.in" >"conftest.tmp"
4597 mv "conftest.tmp" "conftest.in"
4598 cp "conftest.in" "conftest.nl"
4599 $as_echo 'EGREP' >> "conftest.nl"
4600 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4601 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4602 as_fn_arith $ac_count + 1 && ac_count=$as_val
4603 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4604 # Best one so far, save it but keep looking for a better one
4605 ac_cv_path_EGREP="$ac_path_EGREP"
4606 ac_path_EGREP_max=$ac_count
4608 # 10*(2^10) chars as input seems more than enough
4609 test $ac_count -gt 10 && break
4611 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4614 $ac_path_EGREP_found && break 3
4619 if test -z "$ac_cv_path_EGREP"; then
4620 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4623 ac_cv_path_EGREP=$EGREP
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4629 $as_echo "$ac_cv_path_EGREP" >&6; }
4630 EGREP="$ac_cv_path_EGREP"
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4634 $as_echo_n "checking for ANSI C header files... " >&6; }
4635 if ${ac_cv_header_stdc+:} false; then :
4636 $as_echo_n "(cached) " >&6
4638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4639 /* end confdefs.h. */
4653 if ac_fn_c_try_compile "$LINENO"; then :
4654 ac_cv_header_stdc=yes
4656 ac_cv_header_stdc=no
4658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4660 if test $ac_cv_header_stdc = yes; then
4661 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4663 /* end confdefs.h. */
4667 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4668 $EGREP "memchr" >/dev/null 2>&1; then :
4671 ac_cv_header_stdc=no
4677 if test $ac_cv_header_stdc = yes; then
4678 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4680 /* end confdefs.h. */
4684 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4685 $EGREP "free" >/dev/null 2>&1; then :
4688 ac_cv_header_stdc=no
4694 if test $ac_cv_header_stdc = yes; then
4695 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4696 if test "$cross_compiling" = yes; then :
4699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4700 /* end confdefs.h. */
4703 #if ((' ' & 0x0FF) == 0x020)
4704 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4705 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4707 # define ISLOWER(c) \
4708 (('a' <= (c) && (c) <= 'i') \
4709 || ('j' <= (c) && (c) <= 'r') \
4710 || ('s' <= (c) && (c) <= 'z'))
4711 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4714 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4719 for (i = 0; i < 256; i++)
4720 if (XOR (islower (i), ISLOWER (i))
4721 || toupper (i) != TOUPPER (i))
4726 if ac_fn_c_try_run "$LINENO"; then :
4729 ac_cv_header_stdc=no
4731 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4732 conftest.$ac_objext conftest.beam conftest.$ac_ext
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4738 $as_echo "$ac_cv_header_stdc" >&6; }
4739 if test $ac_cv_header_stdc = yes; then
4741 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4745 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4746 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4747 inttypes.h stdint.h unistd.h
4749 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4750 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4752 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4753 cat >>confdefs.h <<_ACEOF
4754 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4763 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4764 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4771 if test "$MINIX" = yes; then
4773 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4776 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4779 $as_echo "#define _MINIX 1" >>confdefs.h
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4785 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4786 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4787 $as_echo_n "(cached) " >&6
4789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4790 /* end confdefs.h. */
4792 # define __EXTENSIONS__ 1
4793 $ac_includes_default
4802 if ac_fn_c_try_compile "$LINENO"; then :
4803 ac_cv_safe_to_define___extensions__=yes
4805 ac_cv_safe_to_define___extensions__=no
4807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4810 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4811 test $ac_cv_safe_to_define___extensions__ = yes &&
4812 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4814 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4816 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4818 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4820 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4827 # Check whether --with-root-prefix was given.
4828 if test "${with_root_prefix+set}" = set; then :
4829 withval=$with_root_prefix; root_prefix=$withval
4833 # Check whether --enable-maintainer-mode was given.
4834 if test "${enable_maintainer_mode+set}" = set; then :
4835 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
4839 $as_echo "Disabling maintainer mode" >&6; }
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
4843 $as_echo "Enabling maintainer mode" >&6; }
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
4849 $as_echo "Disabling maintainer mode by default" >&6; }
4854 # Check whether --enable-symlink-install was given.
4855 if test "${enable_symlink_install+set}" = set; then :
4856 enableval=$enable_symlink_install; if test "$enableval" = "no"
4858 LINK_INSTALL_FLAGS=-f
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4860 $as_echo "Disabling symlinks for install" >&6; }
4862 LINK_INSTALL_FLAGS=-sf
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4864 $as_echo "Enabling symlinks for install" >&6; }
4868 LINK_INSTALL_FLAGS=-f
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
4870 $as_echo "Disabling symlinks for install by default" >&6; }
4875 relative_symlink_defined=
4876 # Check whether --enable-relative-symlinks was given.
4877 if test "${enable_relative_symlinks+set}" = set; then :
4878 enableval=$enable_relative_symlinks; if test "$enableval" = "no"
4881 relative_symlink_defined=yes
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4883 $as_echo "Disabling relative symlinks for install" >&6; }
4885 SYMLINK_RELATIVE=--relative
4886 relative_symlink_defined=yes
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4888 $as_echo "Enabling relative symlinks for install" >&6; }
4892 # Check whether --enable-symlink-relative-symlinks was given.
4893 if test "${enable_symlink_relative_symlinks+set}" = set; then :
4894 enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
4896 SYMLINK_RELATIVE=yes
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4898 $as_echo "Disabling relative symlinks for install" >&6; }
4900 SYMLINK_RELATIVE=--relative
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4902 $as_echo "Enabling relative symlinks for install" >&6; }
4906 if test -z "$relative_symlink_defined"
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
4910 $as_echo "Disabling relative symlinks for install by default" >&6; }
4916 # Check whether --enable-symlink-build was given.
4917 if test "${enable_symlink_build+set}" = set; then :
4918 enableval=$enable_symlink_build; if test "$enableval" = "no"
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4922 $as_echo "Disabling symlinks for build" >&6; }
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4926 $as_echo "Enabling symlinks for build" >&6; }
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
4932 $as_echo "Disabling symlinks for build by default" >&6; }
4937 # Check whether --enable-verbose-makecmds was given.
4938 if test "${enable_verbose_makecmds+set}" = set; then :
4939 enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4942 $as_echo "Disabling verbose make commands" >&6; }
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
4948 $as_echo "Enabling verbose make commands" >&6; }
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4956 $as_echo "Disabling verbose make commands" >&6; }
4966 E2_PKG_CONFIG_STATIC=--static
4969 # Check whether --enable-elf-shlibs was given.
4970 if test "${enable_elf_shlibs+set}" = set; then :
4971 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
4974 MAKEFILE_ELF=/dev/null
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
4976 $as_echo "Disabling ELF shared libraries" >&6; }
4978 E2_PKG_CONFIG_STATIC=
4980 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
4983 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4989 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
4991 $as_echo "Enabling ELF shared libraries" >&6; }
4995 MAKEFILE_ELF=/dev/null
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
4998 $as_echo "Disabling ELF shared libraries by default" >&6; }
5004 # Check whether --enable-bsd-shlibs was given.
5005 if test "${enable_bsd_shlibs+set}" = set; then :
5006 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
5009 MAKEFILE_BSDLIB=/dev/null
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
5011 $as_echo "Disabling BSD shared libraries" >&6; }
5013 E2_PKG_CONFIG_STATIC=
5015 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
5019 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
5024 $as_echo "Enabling BSD shared libraries" >&6; }
5028 MAKEFILE_BSDLIB=/dev/null
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
5031 $as_echo "Disabling BSD shared libraries by default" >&6; }
5037 # Check whether --enable-profile was given.
5038 if test "${enable_profile+set}" = set; then :
5039 enableval=$enable_profile; if test "$enableval" = "no"
5042 MAKEFILE_PROFILE=/dev/null
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
5044 $as_echo "Disabling profiling libraries" >&6; }
5047 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
5048 PROFILED_LIB_EXT=_p.a
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
5050 $as_echo "Building profiling libraries" >&6; }
5055 MAKEFILE_PROFILE=/dev/null
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
5057 $as_echo "Disabling profiling libraries by default" >&6; }
5063 # Check whether --enable-gcov was given.
5064 if test "${enable_gcov+set}" = set; then :
5065 enableval=$enable_gcov; if test "$enableval" = "yes"
5067 CFLAGS="-g -fprofile-arcs -ftest-coverage"
5068 LDFLAGS="-fprofile-arcs -ftest-coverage"
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling gcov support" >&5
5070 $as_echo "Enabling gcov support" >&6; }
5075 CFLAGS_SHLIB="${CFLAGS_SHLIB:-$CFLAGS}"
5076 CFLAGS_STLIB="${CFLAGS_STLIB:-$CFLAGS}"
5077 LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
5078 LDFLAGS_STATIC=${LDFLAGS_STATIC:-$LDFLAGS}
5079 # Check whether --enable-hardening was given.
5080 if test "${enable_hardening+set}" = set; then :
5081 enableval=$enable_hardening; if test "$enableval" = "yes"
5083 HARDEN_CFLAGS="-D_FORTIFY_SOURCE=2 -fstack-protector-strong"
5084 HARDEN_LDFLAGS="-Wl,-z,relro -Wl,-z,now"
5085 CFLAGS="$CFLAGS $HARDEN_CFLAGS -fPIE"
5086 CFLAGS_SHLIB="$CFLAGS_SHLIB $HARDEN_CFLAGS"
5087 CFLAGS_STLIB="$CFLAGS_STLIB $HARDEN_CFLAGS -fPIE"
5088 LDFLAGS="$LDFLAGS $HARDEN_LDFLAGS -fPIE -pie"
5089 LDFLAGS_STATIC="$LDFLAGS_STATIC $HARDEN_LDFLAGS"
5090 LDFLAGS_SHLIB="$LDFLAGS_SHLIB $HARDEN_LDFLAGS"
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling hardening support" >&5
5092 $as_echo "Enabling hardening support" >&6; }
5102 # Check whether --enable-jbd-debug was given.
5103 if test "${enable_jbd_debug+set}" = set; then :
5104 enableval=$enable_jbd_debug; if test "$enableval" = "no"
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
5107 $as_echo "Disabling journal debugging" >&6; }
5110 $as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
5113 $as_echo "Enabling journal debugging" >&6; }
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
5118 $as_echo "Disabling journal debugging by default" >&6; }
5122 # Check whether --enable-blkid-debug was given.
5123 if test "${enable_blkid_debug+set}" = set; then :
5124 enableval=$enable_blkid_debug; if test "$enableval" = "no"
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
5127 $as_echo "Disabling blkid debugging" >&6; }
5130 $as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
5133 $as_echo "Enabling blkid debugging" >&6; }
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
5138 $as_echo "Disabling blkid debugging by default" >&6; }
5142 # Check whether --enable-testio-debug was given.
5143 if test "${enable_testio_debug+set}" = set; then :
5144 enableval=$enable_testio_debug;
5145 if test "$enableval" = "no"
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
5148 $as_echo "Disabling testio debugging" >&6; }
5152 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
5155 $as_echo "Enabling testio debugging" >&6; }
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
5160 $as_echo "Enabling testio debugging by default" >&6; }
5161 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
5175 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5176 if test -n "$ac_tool_prefix"; then
5177 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5178 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5180 $as_echo_n "checking for $ac_word... " >&6; }
5181 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5182 $as_echo_n "(cached) " >&6
5186 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5193 test -z "$as_dir" && as_dir=.
5194 for ac_exec_ext in '' $ac_executable_extensions; do
5195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5196 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5207 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5208 if test -n "$PKG_CONFIG"; then
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5210 $as_echo "$PKG_CONFIG" >&6; }
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5213 $as_echo "no" >&6; }
5218 if test -z "$ac_cv_path_PKG_CONFIG"; then
5219 ac_pt_PKG_CONFIG=$PKG_CONFIG
5220 # Extract the first word of "pkg-config", so it can be a program name with args.
5221 set dummy pkg-config; ac_word=$2
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5223 $as_echo_n "checking for $ac_word... " >&6; }
5224 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5225 $as_echo_n "(cached) " >&6
5227 case $ac_pt_PKG_CONFIG in
5229 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5236 test -z "$as_dir" && as_dir=.
5237 for ac_exec_ext in '' $ac_executable_extensions; do
5238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5239 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5250 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5251 if test -n "$ac_pt_PKG_CONFIG"; then
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5253 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5256 $as_echo "no" >&6; }
5259 if test "x$ac_pt_PKG_CONFIG" = x; then
5262 case $cross_compiling:$ac_tool_warned in
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5265 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5266 ac_tool_warned=yes ;;
5268 PKG_CONFIG=$ac_pt_PKG_CONFIG
5271 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5275 if test -n "$PKG_CONFIG"; then
5276 _pkg_min_version=0.9.0
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5278 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5279 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5281 $as_echo "yes" >&6; }
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5284 $as_echo "no" >&6; }
5293 DEPPROFILED_LIBUUID=
5295 # Check whether --enable-libuuid was given.
5296 if test "${enable_libuuid+set}" = set; then :
5297 enableval=$enable_libuuid; if test "$enableval" = "no"
5299 if test -z "$PKG_CONFIG"; then
5300 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
5304 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
5305 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
5306 $as_echo_n "(cached) " >&6
5308 ac_check_lib_save_LIBS=$LIBS
5310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5311 /* end confdefs.h. */
5313 /* Override any GCC internal prototype to avoid an error.
5314 Use char because int might match the return type of a GCC
5315 builtin and then its argument prototype would still apply. */
5319 char uuid_generate ();
5323 return uuid_generate ();
5328 if ac_fn_c_try_link "$LINENO"; then :
5329 ac_cv_lib_uuid_uuid_generate=yes
5331 ac_cv_lib_uuid_uuid_generate=no
5333 rm -f core conftest.err conftest.$ac_objext \
5334 conftest$ac_exeext conftest.$ac_ext
5335 LIBS=$ac_check_lib_save_LIBS
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
5338 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
5339 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
5340 LIBUUID=`$PKG_CONFIG --libs uuid`;
5341 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5343 as_fn_error $? "external uuid library not found" "$LINENO" 5
5346 PROFILED_LIBUUID=$LIBUUID
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
5349 $as_echo "Disabling private uuid library" >&6; }
5351 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5353 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5354 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5355 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5356 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
5358 $as_echo "Enabling private uuid library" >&6; }
5362 if test -n "$PKG_CONFIG"; then
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
5364 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
5365 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
5366 $as_echo_n "(cached) " >&6
5368 ac_check_lib_save_LIBS=$LIBS
5370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5371 /* end confdefs.h. */
5373 /* Override any GCC internal prototype to avoid an error.
5374 Use char because int might match the return type of a GCC
5375 builtin and then its argument prototype would still apply. */
5379 char uuid_generate ();
5383 return uuid_generate ();
5388 if ac_fn_c_try_link "$LINENO"; then :
5389 ac_cv_lib_uuid_uuid_generate=yes
5391 ac_cv_lib_uuid_uuid_generate=no
5393 rm -f core conftest.err conftest.$ac_objext \
5394 conftest$ac_exeext conftest.$ac_ext
5395 LIBS=$ac_check_lib_save_LIBS
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
5398 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
5399 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
5400 LIBUUID=`$PKG_CONFIG --libs uuid`;
5401 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5405 if test -n "$LIBUUID"; then
5406 PROFILED_LIBUUID=$LIBUUID
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system uuid by default" >&5
5409 $as_echo "Using system uuid by default" >&6; }
5411 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5413 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5414 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5415 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5416 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
5418 $as_echo "Enabling private uuid library by default" >&6; }
5437 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5438 if test -n "$ac_tool_prefix"; then
5439 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5440 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5442 $as_echo_n "checking for $ac_word... " >&6; }
5443 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5444 $as_echo_n "(cached) " >&6
5448 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5455 test -z "$as_dir" && as_dir=.
5456 for ac_exec_ext in '' $ac_executable_extensions; do
5457 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5458 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5469 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5470 if test -n "$PKG_CONFIG"; then
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5472 $as_echo "$PKG_CONFIG" >&6; }
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5475 $as_echo "no" >&6; }
5480 if test -z "$ac_cv_path_PKG_CONFIG"; then
5481 ac_pt_PKG_CONFIG=$PKG_CONFIG
5482 # Extract the first word of "pkg-config", so it can be a program name with args.
5483 set dummy pkg-config; ac_word=$2
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5485 $as_echo_n "checking for $ac_word... " >&6; }
5486 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5487 $as_echo_n "(cached) " >&6
5489 case $ac_pt_PKG_CONFIG in
5491 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5498 test -z "$as_dir" && as_dir=.
5499 for ac_exec_ext in '' $ac_executable_extensions; do
5500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5501 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5512 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5513 if test -n "$ac_pt_PKG_CONFIG"; then
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5515 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5518 $as_echo "no" >&6; }
5521 if test "x$ac_pt_PKG_CONFIG" = x; then
5524 case $cross_compiling:$ac_tool_warned in
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5527 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5528 ac_tool_warned=yes ;;
5530 PKG_CONFIG=$ac_pt_PKG_CONFIG
5533 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5537 if test -n "$PKG_CONFIG"; then
5538 _pkg_min_version=0.9.0
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5540 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5541 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5543 $as_echo "yes" >&6; }
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5546 $as_echo "no" >&6; }
5555 DEPPROFILED_LIBBLKID=
5558 # Check whether --enable-libblkid was given.
5559 if test "${enable_libblkid+set}" = set; then :
5560 enableval=$enable_libblkid; if test "$enableval" = "no"
5562 if test -z "$PKG_CONFIG"; then
5563 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5567 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5568 if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
5569 $as_echo_n "(cached) " >&6
5571 ac_check_lib_save_LIBS=$LIBS
5572 LIBS="-lblkid -luuid $LIBS"
5573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5574 /* end confdefs.h. */
5576 /* Override any GCC internal prototype to avoid an error.
5577 Use char because int might match the return type of a GCC
5578 builtin and then its argument prototype would still apply. */
5582 char blkid_get_cache ();
5586 return blkid_get_cache ();
5591 if ac_fn_c_try_link "$LINENO"; then :
5592 ac_cv_lib_blkid_blkid_get_cache=yes
5594 ac_cv_lib_blkid_blkid_get_cache=no
5596 rm -f core conftest.err conftest.$ac_objext \
5597 conftest$ac_exeext conftest.$ac_ext
5598 LIBS=$ac_check_lib_save_LIBS
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5601 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5602 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
5603 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5604 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5606 as_fn_error $? "external blkid library not found" "$LINENO" 5
5610 PROFILED_LIBBLKID=$LIBBLKID
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
5612 $as_echo "Disabling private blkid library" >&6; }
5614 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5615 DEPLIBBLKID=$LIBBLKID
5616 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5617 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5618 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5619 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5620 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
5623 $as_echo "Enabling private blkid library" >&6; }
5627 if test -n "$PKG_CONFIG"; then
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5629 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5630 if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
5631 $as_echo_n "(cached) " >&6
5633 ac_check_lib_save_LIBS=$LIBS
5634 LIBS="-lblkid $LIBS"
5635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5636 /* end confdefs.h. */
5638 /* Override any GCC internal prototype to avoid an error.
5639 Use char because int might match the return type of a GCC
5640 builtin and then its argument prototype would still apply. */
5644 char blkid_get_cache ();
5648 return blkid_get_cache ();
5653 if ac_fn_c_try_link "$LINENO"; then :
5654 ac_cv_lib_blkid_blkid_get_cache=yes
5656 ac_cv_lib_blkid_blkid_get_cache=no
5658 rm -f core conftest.err conftest.$ac_objext \
5659 conftest$ac_exeext conftest.$ac_ext
5660 LIBS=$ac_check_lib_save_LIBS
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5663 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5664 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
5665 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5666 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5670 if test -n "$LIBBLKID"; then
5672 PROFILED_LIBBLKID=$LIBBLKID
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system blkid library by default" >&5
5674 $as_echo "Using system blkid library by default" >&6; }
5676 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5677 DEPLIBBLKID=$LIBBLKID
5678 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5679 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5680 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5681 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5682 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
5685 $as_echo "Enabling private blkid library by default" >&6; }
5698 # Check whether --enable-backtrace was given.
5699 if test "${enable_backtrace+set}" = set; then :
5700 enableval=$enable_backtrace; if test "$enableval" = "no"
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5
5703 $as_echo "Disabling use of backtrace" >&6; }
5704 $as_echo "#define DISABLE_BACKTRACE 1" >>confdefs.h
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5
5708 $as_echo "Enabling use of backtrace" >&6; }
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5
5713 $as_echo "Enabling use of backtrace by default" >&6; }
5717 # Check whether --enable-debugfs was given.
5718 if test "${enable_debugfs+set}" = set; then :
5719 enableval=$enable_debugfs; if test "$enableval" = "no"
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
5722 $as_echo "Disabling debugfs support" >&6; }
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
5727 $as_echo "Enabling debugfs support" >&6; }
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
5732 $as_echo "Enabling debugfs support by default" >&6; }
5738 # Check whether --enable-imager was given.
5739 if test "${enable_imager+set}" = set; then :
5740 enableval=$enable_imager; if test "$enableval" = "no"
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
5743 $as_echo "Disabling e2image support" >&6; }
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
5748 $as_echo "Enabling e2image support" >&6; }
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
5753 $as_echo "Enabling e2image support by default" >&6; }
5759 # Check whether --enable-resizer was given.
5760 if test "${enable_resizer+set}" = set; then :
5761 enableval=$enable_resizer; if test "$enableval" = "no"
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
5764 $as_echo "Disabling e2resize support" >&6; }
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
5769 $as_echo "Enabling e2resize support" >&6; }
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
5774 $as_echo "Enabling e2resize support by default" >&6; }
5780 # Check whether --enable-defrag was given.
5781 if test "${enable_defrag+set}" = set; then :
5782 enableval=$enable_defrag; if test "$enableval" = "no"
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5785 $as_echo "Disabling e4defrag support" >&6; }
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5790 $as_echo "Enabling e4defrag support" >&6; }
5794 if test -z "$WITH_DIET_LIBC"
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
5797 $as_echo "Enabling e4defrag support by default" >&6; }
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support by default" >&5
5801 $as_echo "Disabling e4defrag support by default" >&6; }
5808 # Check whether --enable-fsck was given.
5809 if test "${enable_fsck+set}" = set; then :
5810 enableval=$enable_fsck; if test "$enableval" = "no"
5812 FSCK_PROG='' FSCK_MAN=''
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
5814 $as_echo "Not building fsck wrapper" >&6; }
5816 FSCK_PROG=fsck FSCK_MAN=fsck.8
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
5818 $as_echo "Building fsck wrapper" >&6; }
5824 FSCK_PROG='' FSCK_MAN=''
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
5826 $as_echo "Not building fsck wrapper by default" >&6; }
5829 FSCK_PROG=fsck FSCK_MAN=fsck.8
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
5831 $as_echo "Building fsck wrapper by default" >&6; }
5838 # Check whether --enable-e2initrd-helper was given.
5839 if test "${enable_e2initrd_helper+set}" = set; then :
5840 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
5842 E2INITRD_PROG='' E2INITRD_MAN=''
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
5844 $as_echo "Not building e2initrd helper" >&6; }
5846 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
5848 $as_echo "Building e2initrd helper" >&6; }
5852 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
5854 $as_echo "Building e2initrd helper by default" >&6; }
5860 # Check whether --enable-tls was given.
5861 if test "${enable_tls+set}" = set; then :
5862 enableval=$enable_tls; if test "$enableval" = "no"
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
5866 $as_echo "Disabling thread local support" >&6; }
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
5870 $as_echo "Enabling thread local support" >&6; }
5874 if test -n "$WITH_DIET_LIBC"
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5
5878 $as_echo "Diet libc does not support thread local support" >&6; }
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
5882 $as_echo "Try using thread local support by default" >&6; }
5887 if test "$try_tls" = "yes"
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
5891 $as_echo_n "checking for thread local storage (TLS) class... " >&6; }
5892 if ${ac_cv_tls+:} false; then :
5893 $as_echo_n "(cached) " >&6
5896 ax_tls_keywords="__thread __declspec(thread) none"
5897 for ax_tls_keyword in $ax_tls_keywords; do
5898 case $ax_tls_keyword in
5899 none) ac_cv_tls=none ; break ;;
5901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5902 /* end confdefs.h. */
5906 static $ax_tls_keyword int bar;
5917 if ac_fn_c_try_compile "$LINENO"; then :
5918 ac_cv_tls=$ax_tls_keyword ; break
5923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5930 if test "$ac_cv_tls" != "none"; then
5932 cat >>confdefs.h <<_ACEOF
5933 #define TLS $ac_cv_tls
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
5938 $as_echo "$ac_cv_tls" >&6; }
5942 # Check whether --enable-uuidd was given.
5943 if test "${enable_uuidd+set}" = set; then :
5944 enableval=$enable_uuidd; if test "$enableval" = "no"
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
5947 $as_echo "Not building uuidd" >&6; }
5950 $as_echo "#define USE_UUIDD 1" >>confdefs.h
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
5954 $as_echo "Building uuidd" >&6; }
5958 $as_echo "#define USE_UUIDD 1" >>confdefs.h
5960 if test -z "$UUID_CMT"
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
5964 $as_echo "Building uuidd by default" >&6; }
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling uuidd by default" >&5
5968 $as_echo "Disabling uuidd by default" >&6; }
5975 # Check whether --enable-mmp was given.
5976 if test "${enable_mmp+set}" = set; then :
5977 enableval=$enable_mmp; if test "$enableval" = "no"
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling mmp support" >&5
5980 $as_echo "Disabling mmp support" >&6; }
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support" >&5
5983 $as_echo "Enabling mmp support" >&6; }
5984 $as_echo "#define CONFIG_MMP 1" >>confdefs.h
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
5990 $as_echo "Enabling mmp support by default" >&6; }
5991 $as_echo "#define CONFIG_MMP 1" >>confdefs.h
5997 # Check whether --enable-tdb was given.
5998 if test "${enable_tdb+set}" = set; then :
5999 enableval=$enable_tdb; if test "$enableval" = "no"
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling tdb support" >&5
6002 $as_echo "Disabling tdb support" >&6; }
6004 TDB_MAN_COMMENT='.\"'
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling tdb support" >&5
6007 $as_echo "Enabling tdb support" >&6; }
6008 $as_echo "#define CONFIG_TDB 1" >>confdefs.h
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
6016 $as_echo "Enabling mmp support by default" >&6; }
6017 $as_echo "#define CONFIG_TDB 1" >>confdefs.h
6027 # Check whether --enable-bmap-stats was given.
6028 if test "${enable_bmap_stats+set}" = set; then :
6029 enableval=$enable_bmap_stats; if test "$enableval" = "no"
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling bitmap statistics support" >&5
6032 $as_echo "Disabling bitmap statistics support" >&6; }
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support" >&5
6035 $as_echo "Enabling bitmap statistics support" >&6; }
6036 $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support by default" >&5
6042 $as_echo "Enabling bitmap statistics support by default" >&6; }
6043 $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
6049 # Check whether --enable-bmap-stats-ops was given.
6050 if test "${enable_bmap_stats_ops+set}" = set; then :
6051 enableval=$enable_bmap_stats_ops; if test "$enableval" = "no"
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics" >&5
6054 $as_echo "Disabling additional bitmap statistics" >&6; }
6056 if test "x${enable_bmap_stats}" = "xno"; then :
6057 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6058 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6059 as_fn_error $? "Error --enable-bmap-stats-ops requires bmap-stats
6060 See \`config.log' for more details" "$LINENO" 5; }
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling additional bitmap statistics" >&5
6064 $as_echo "Enabling additional bitmap statistics" >&6; }
6065 $as_echo "#define ENABLE_BMAP_STATS_OPS 1" >>confdefs.h
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics by default" >&5
6071 $as_echo "Disabling additional bitmap statistics by default" >&6; }
6075 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
6077 GETTEXT_PACKAGE=e2fsprogs
6079 VERSION="$E2FSPROGS_VERSION"
6082 cat >>confdefs.h <<_ACEOF
6083 #define PACKAGE "$PACKAGE"
6087 cat >>confdefs.h <<_ACEOF
6088 #define VERSION "$VERSION"
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6096 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6098 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6099 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6100 $as_echo_n "(cached) " >&6
6102 cat >conftest.make <<\_ACEOF
6105 @echo '@@@%%%=$(MAKE)=@@@%%%'
6107 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6108 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6110 eval ac_cv_prog_make_${ac_make}_set=yes;;
6112 eval ac_cv_prog_make_${ac_make}_set=no;;
6116 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6118 $as_echo "yes" >&6; }
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6122 $as_echo "no" >&6; }
6123 SET_MAKE="MAKE=${MAKE-make}"
6126 # Find a good install program. We prefer a C program (faster),
6127 # so one script is as good as another. But avoid the broken or
6128 # incompatible versions:
6129 # SysV /etc/install, /usr/sbin/install
6130 # SunOS /usr/etc/install
6131 # IRIX /sbin/install
6133 # AmigaOS /C/install, which installs bootblocks on floppy discs
6134 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6135 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6136 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6137 # OS/2's system install, which has a completely different semantic
6138 # ./install, which can be erroneously created by make from ./install.sh.
6139 # Reject install programs that cannot install multiple files.
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
6141 $as_echo_n "checking for a BSD-compatible install... " >&6; }
6142 if test -z "$INSTALL"; then
6143 if ${ac_cv_path_install+:} false; then :
6144 $as_echo_n "(cached) " >&6
6146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6150 test -z "$as_dir" && as_dir=.
6151 # Account for people who put trailing slashes in PATH elements.
6152 case $as_dir/ in #((
6153 ./ | .// | /[cC]/* | \
6154 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6155 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
6158 # OSF1 and SCO ODT 3.0 have their own names for install.
6159 # Don't use installbsd from OSF since it installs stuff as root
6161 for ac_prog in ginstall scoinst install; do
6162 for ac_exec_ext in '' $ac_executable_extensions; do
6163 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6164 if test $ac_prog = install &&
6165 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6166 # AIX install. It has an incompatible calling convention.
6168 elif test $ac_prog = install &&
6169 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6170 # program-specific install script used by HP pwplus--don't use.
6173 rm -rf conftest.one conftest.two conftest.dir
6174 echo one > conftest.one
6175 echo two > conftest.two
6177 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6178 test -s conftest.one && test -s conftest.two &&
6179 test -s conftest.dir/conftest.one &&
6180 test -s conftest.dir/conftest.two
6182 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6195 rm -rf conftest.one conftest.two conftest.dir
6198 if test "${ac_cv_path_install+set}" = set; then
6199 INSTALL=$ac_cv_path_install
6201 # As a last resort, use the slow shell script. Don't cache a
6202 # value for INSTALL within a source directory, because that will
6203 # break other packages using the cache if that directory is
6204 # removed, or if the value is a relative name.
6205 INSTALL=$ac_install_sh
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
6209 $as_echo "$INSTALL" >&6; }
6211 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6212 # It thinks the first close brace ends the variable substitution.
6213 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6215 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6217 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
6220 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6221 if test -z "$MKDIR_P"; then
6222 if ${ac_cv_path_mkdir+:} false; then :
6223 $as_echo_n "(cached) " >&6
6225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6226 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6229 test -z "$as_dir" && as_dir=.
6230 for ac_prog in mkdir gmkdir; do
6231 for ac_exec_ext in '' $ac_executable_extensions; do
6232 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
6233 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6234 'mkdir (GNU coreutils) '* | \
6235 'mkdir (coreutils) '* | \
6236 'mkdir (fileutils) '4.1*)
6237 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6247 test -d ./--version && rmdir ./--version
6248 if test "${ac_cv_path_mkdir+set}" = set; then
6249 MKDIR_P="$ac_cv_path_mkdir -p"
6251 # As a last resort, use the slow shell script. Don't cache a
6252 # value for MKDIR_P within a source directory, because that will
6253 # break other packages using the cache if that directory is
6254 # removed, or if the value is a relative name.
6255 MKDIR_P="$ac_install_sh -d"
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
6259 $as_echo "$MKDIR_P" >&6; }
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6262 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6263 if ${ac_cv_path_SED+:} false; then :
6264 $as_echo_n "(cached) " >&6
6266 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6267 for ac_i in 1 2 3 4 5 6 7; do
6268 ac_script="$ac_script$as_nl$ac_script"
6270 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6271 { ac_script=; unset ac_script;}
6272 if test -z "$SED"; then
6273 ac_path_SED_found=false
6274 # Loop through the user's path and test for each of PROGNAME-LIST
6275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6279 test -z "$as_dir" && as_dir=.
6280 for ac_prog in sed gsed; do
6281 for ac_exec_ext in '' $ac_executable_extensions; do
6282 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6283 as_fn_executable_p "$ac_path_SED" || continue
6284 # Check for GNU ac_path_SED and select it if it is found.
6285 # Check for GNU $ac_path_SED
6286 case `"$ac_path_SED" --version 2>&1` in
6288 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6291 $as_echo_n 0123456789 >"conftest.in"
6294 cat "conftest.in" "conftest.in" >"conftest.tmp"
6295 mv "conftest.tmp" "conftest.in"
6296 cp "conftest.in" "conftest.nl"
6297 $as_echo '' >> "conftest.nl"
6298 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6299 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6300 as_fn_arith $ac_count + 1 && ac_count=$as_val
6301 if test $ac_count -gt ${ac_path_SED_max-0}; then
6302 # Best one so far, save it but keep looking for a better one
6303 ac_cv_path_SED="$ac_path_SED"
6304 ac_path_SED_max=$ac_count
6306 # 10*(2^10) chars as input seems more than enough
6307 test $ac_count -gt 10 && break
6309 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6312 $ac_path_SED_found && break 3
6317 if test -z "$ac_cv_path_SED"; then
6318 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6326 $as_echo "$ac_cv_path_SED" >&6; }
6327 SED="$ac_cv_path_SED"
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6332 $as_echo_n "checking whether NLS is requested... " >&6; }
6333 # Check whether --enable-nls was given.
6334 if test "${enable_nls+set}" = set; then :
6335 enableval=$enable_nls; USE_NLS=$enableval
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6341 $as_echo "$USE_NLS" >&6; }
6346 GETTEXT_MACRO_VERSION=0.18
6351 # Prepare PATH_SEPARATOR.
6352 # The user is always right.
6353 if test "${PATH_SEPARATOR+set}" != set; then
6354 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6355 # contains only /bin. Note that ksh looks also at the FPATH variable,
6356 # so we have to set that as well for the test.
6358 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6359 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6360 || PATH_SEPARATOR=';'
6364 # Find out how to test for executable files. Don't use a zero-byte file,
6365 # as systems may use methods other than mode bits to determine executability.
6366 cat >conf$$.file <<_ASEOF
6370 chmod +x conf$$.file
6371 if test -x conf$$.file >/dev/null 2>&1; then
6372 ac_executable_p="test -x"
6374 ac_executable_p="test -f"
6378 # Extract the first word of "msgfmt", so it can be a program name with args.
6379 set dummy msgfmt; ac_word=$2
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6381 $as_echo_n "checking for $ac_word... " >&6; }
6382 if ${ac_cv_path_MSGFMT+:} false; then :
6383 $as_echo_n "(cached) " >&6
6387 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6390 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6391 for ac_dir in $PATH; do
6393 test -z "$ac_dir" && ac_dir=.
6394 for ac_exec_ext in '' $ac_executable_extensions; do
6395 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6396 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6397 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
6398 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6399 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
6406 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
6410 MSGFMT="$ac_cv_path_MSGFMT"
6411 if test "$MSGFMT" != ":"; then
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
6413 $as_echo "$MSGFMT" >&6; }
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6416 $as_echo "no" >&6; }
6419 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6420 set dummy gmsgfmt; ac_word=$2
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6422 $as_echo_n "checking for $ac_word... " >&6; }
6423 if ${ac_cv_path_GMSGFMT+:} false; then :
6424 $as_echo_n "(cached) " >&6
6428 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6435 test -z "$as_dir" && as_dir=.
6436 for ac_exec_ext in '' $ac_executable_extensions; do
6437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6438 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
6439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6446 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6450 GMSGFMT=$ac_cv_path_GMSGFMT
6451 if test -n "$GMSGFMT"; then
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
6453 $as_echo "$GMSGFMT" >&6; }
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6456 $as_echo "no" >&6; }
6461 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6462 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
6463 *) MSGFMT_015=$MSGFMT ;;
6466 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6467 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
6468 *) GMSGFMT_015=$GMSGFMT ;;
6473 # Prepare PATH_SEPARATOR.
6474 # The user is always right.
6475 if test "${PATH_SEPARATOR+set}" != set; then
6476 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6477 # contains only /bin. Note that ksh looks also at the FPATH variable,
6478 # so we have to set that as well for the test.
6480 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6481 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6482 || PATH_SEPARATOR=';'
6486 # Find out how to test for executable files. Don't use a zero-byte file,
6487 # as systems may use methods other than mode bits to determine executability.
6488 cat >conf$$.file <<_ASEOF
6492 chmod +x conf$$.file
6493 if test -x conf$$.file >/dev/null 2>&1; then
6494 ac_executable_p="test -x"
6496 ac_executable_p="test -f"
6500 # Extract the first word of "xgettext", so it can be a program name with args.
6501 set dummy xgettext; ac_word=$2
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6503 $as_echo_n "checking for $ac_word... " >&6; }
6504 if ${ac_cv_path_XGETTEXT+:} false; then :
6505 $as_echo_n "(cached) " >&6
6509 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6512 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6513 for ac_dir in $PATH; do
6515 test -z "$ac_dir" && ac_dir=.
6516 for ac_exec_ext in '' $ac_executable_extensions; do
6517 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6518 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6519 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
6520 (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
6521 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6528 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6532 XGETTEXT="$ac_cv_path_XGETTEXT"
6533 if test "$XGETTEXT" != ":"; then
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
6535 $as_echo "$XGETTEXT" >&6; }
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6538 $as_echo "no" >&6; }
6543 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6544 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
6545 *) XGETTEXT_015=$XGETTEXT ;;
6550 # Prepare PATH_SEPARATOR.
6551 # The user is always right.
6552 if test "${PATH_SEPARATOR+set}" != set; then
6553 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6554 # contains only /bin. Note that ksh looks also at the FPATH variable,
6555 # so we have to set that as well for the test.
6557 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6558 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6559 || PATH_SEPARATOR=';'
6563 # Find out how to test for executable files. Don't use a zero-byte file,
6564 # as systems may use methods other than mode bits to determine executability.
6565 cat >conf$$.file <<_ASEOF
6569 chmod +x conf$$.file
6570 if test -x conf$$.file >/dev/null 2>&1; then
6571 ac_executable_p="test -x"
6573 ac_executable_p="test -f"
6577 # Extract the first word of "msgmerge", so it can be a program name with args.
6578 set dummy msgmerge; ac_word=$2
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6580 $as_echo_n "checking for $ac_word... " >&6; }
6581 if ${ac_cv_path_MSGMERGE+:} false; then :
6582 $as_echo_n "(cached) " >&6
6586 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6589 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6590 for ac_dir in $PATH; do
6592 test -z "$ac_dir" && ac_dir=.
6593 for ac_exec_ext in '' $ac_executable_extensions; do
6594 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6595 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6596 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
6597 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6604 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6608 MSGMERGE="$ac_cv_path_MSGMERGE"
6609 if test "$MSGMERGE" != ":"; then
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
6611 $as_echo "$MSGMERGE" >&6; }
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6614 $as_echo "no" >&6; }
6618 test -n "$localedir" || localedir='${datadir}/locale'
6621 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
6624 ac_config_commands="$ac_config_commands po-directories"
6628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
6629 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
6630 if ${ac_cv_gnu_library_2+:} false; then :
6631 $as_echo_n "(cached) " >&6
6633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6634 /* end confdefs.h. */
6636 #include <features.h>
6637 #ifdef __GNU_LIBRARY__
6638 #if (__GLIBC__ >= 2) && !defined __UCLIBC__
6644 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6645 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
6646 ac_cv_gnu_library_2=yes
6648 ac_cv_gnu_library_2=no
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
6656 $as_echo "$ac_cv_gnu_library_2" >&6; }
6658 GLIBC2="$ac_cv_gnu_library_2"
6661 if test -n "$ac_tool_prefix"; then
6662 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6663 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6665 $as_echo_n "checking for $ac_word... " >&6; }
6666 if ${ac_cv_prog_RANLIB+:} false; then :
6667 $as_echo_n "(cached) " >&6
6669 if test -n "$RANLIB"; then
6670 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6676 test -z "$as_dir" && as_dir=.
6677 for ac_exec_ext in '' $ac_executable_extensions; do
6678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6679 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6689 RANLIB=$ac_cv_prog_RANLIB
6690 if test -n "$RANLIB"; then
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6692 $as_echo "$RANLIB" >&6; }
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6695 $as_echo "no" >&6; }
6700 if test -z "$ac_cv_prog_RANLIB"; then
6701 ac_ct_RANLIB=$RANLIB
6702 # Extract the first word of "ranlib", so it can be a program name with args.
6703 set dummy ranlib; ac_word=$2
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6705 $as_echo_n "checking for $ac_word... " >&6; }
6706 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6707 $as_echo_n "(cached) " >&6
6709 if test -n "$ac_ct_RANLIB"; then
6710 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6716 test -z "$as_dir" && as_dir=.
6717 for ac_exec_ext in '' $ac_executable_extensions; do
6718 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6719 ac_cv_prog_ac_ct_RANLIB="ranlib"
6720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6729 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6730 if test -n "$ac_ct_RANLIB"; then
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6732 $as_echo "$ac_ct_RANLIB" >&6; }
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6735 $as_echo "no" >&6; }
6738 if test "x$ac_ct_RANLIB" = x; then
6741 case $cross_compiling:$ac_tool_warned in
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6744 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6745 ac_tool_warned=yes ;;
6747 RANLIB=$ac_ct_RANLIB
6750 RANLIB="$ac_cv_prog_RANLIB"
6757 if test -n "$GCC"; then
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
6759 $as_echo_n "checking whether the -Werror option is usable... " >&6; }
6760 if ${gl_cv_cc_vis_werror+:} false; then :
6761 $as_echo_n "(cached) " >&6
6764 gl_save_CFLAGS="$CFLAGS"
6765 CFLAGS="$CFLAGS -Werror"
6766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6767 /* end confdefs.h. */
6777 if ac_fn_c_try_compile "$LINENO"; then :
6778 gl_cv_cc_vis_werror=yes
6780 gl_cv_cc_vis_werror=no
6782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6783 CFLAGS="$gl_save_CFLAGS"
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
6787 $as_echo "$gl_cv_cc_vis_werror" >&6; }
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
6789 $as_echo_n "checking for simple visibility declarations... " >&6; }
6790 if ${gl_cv_cc_visibility+:} false; then :
6791 $as_echo_n "(cached) " >&6
6794 gl_save_CFLAGS="$CFLAGS"
6795 CFLAGS="$CFLAGS -fvisibility=hidden"
6796 if test $gl_cv_cc_vis_werror = yes; then
6797 CFLAGS="$CFLAGS -Werror"
6799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6800 /* end confdefs.h. */
6801 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
6802 extern __attribute__((__visibility__("default"))) int exportedvar;
6803 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
6804 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
6805 void dummyfunc (void) {}
6815 if ac_fn_c_try_compile "$LINENO"; then :
6816 gl_cv_cc_visibility=yes
6818 gl_cv_cc_visibility=no
6820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6821 CFLAGS="$gl_save_CFLAGS"
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
6825 $as_echo "$gl_cv_cc_visibility" >&6; }
6826 if test $gl_cv_cc_visibility = yes; then
6827 CFLAG_VISIBILITY="-fvisibility=hidden"
6834 cat >>confdefs.h <<_ACEOF
6835 #define HAVE_VISIBILITY $HAVE_VISIBILITY
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6840 $as_echo_n "checking for inline... " >&6; }
6841 if ${ac_cv_c_inline+:} false; then :
6842 $as_echo_n "(cached) " >&6
6845 for ac_kw in inline __inline__ __inline; do
6846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6847 /* end confdefs.h. */
6850 static $ac_kw foo_t static_foo () {return 0; }
6851 $ac_kw foo_t foo () {return 0; }
6855 if ac_fn_c_try_compile "$LINENO"; then :
6856 ac_cv_c_inline=$ac_kw
6858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6859 test "$ac_cv_c_inline" != no && break
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6864 $as_echo "$ac_cv_c_inline" >&6; }
6866 case $ac_cv_c_inline in
6869 case $ac_cv_c_inline in
6871 *) ac_val=$ac_cv_c_inline;;
6873 cat >>confdefs.h <<_ACEOF
6875 #define inline $ac_val
6881 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6882 if test "x$ac_cv_type_size_t" = xyes; then :
6886 cat >>confdefs.h <<_ACEOF
6887 #define size_t unsigned int
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
6894 $as_echo_n "checking for stdint.h... " >&6; }
6895 if ${gl_cv_header_stdint_h+:} false; then :
6896 $as_echo_n "(cached) " >&6
6898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6899 /* end confdefs.h. */
6900 #include <sys/types.h>
6905 uintmax_t i = (uintmax_t) -1; return !i;
6910 if ac_fn_c_try_compile "$LINENO"; then :
6911 gl_cv_header_stdint_h=yes
6913 gl_cv_header_stdint_h=no
6915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
6918 $as_echo "$gl_cv_header_stdint_h" >&6; }
6919 if test $gl_cv_header_stdint_h = yes; then
6921 cat >>confdefs.h <<_ACEOF
6922 #define HAVE_STDINT_H_WITH_UINTMAX 1
6927 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6928 # for constant arguments. Useless!
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6930 $as_echo_n "checking for working alloca.h... " >&6; }
6931 if ${ac_cv_working_alloca_h+:} false; then :
6932 $as_echo_n "(cached) " >&6
6934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6935 /* end confdefs.h. */
6940 char *p = (char *) alloca (2 * sizeof (int));
6946 if ac_fn_c_try_link "$LINENO"; then :
6947 ac_cv_working_alloca_h=yes
6949 ac_cv_working_alloca_h=no
6951 rm -f core conftest.err conftest.$ac_objext \
6952 conftest$ac_exeext conftest.$ac_ext
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6955 $as_echo "$ac_cv_working_alloca_h" >&6; }
6956 if test $ac_cv_working_alloca_h = yes; then
6958 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6963 $as_echo_n "checking for alloca... " >&6; }
6964 if ${ac_cv_func_alloca_works+:} false; then :
6965 $as_echo_n "(cached) " >&6
6967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6968 /* end confdefs.h. */
6970 # define alloca __builtin_alloca
6973 # include <malloc.h>
6974 # define alloca _alloca
6976 # ifdef HAVE_ALLOCA_H
6977 # include <alloca.h>
6982 # ifndef alloca /* predefined by HP cc +Olibcalls */
6983 void *alloca (size_t);
6993 char *p = (char *) alloca (1);
6999 if ac_fn_c_try_link "$LINENO"; then :
7000 ac_cv_func_alloca_works=yes
7002 ac_cv_func_alloca_works=no
7004 rm -f core conftest.err conftest.$ac_objext \
7005 conftest$ac_exeext conftest.$ac_ext
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
7008 $as_echo "$ac_cv_func_alloca_works" >&6; }
7010 if test $ac_cv_func_alloca_works = yes; then
7012 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
7015 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7016 # that cause trouble. Some versions do not even contain alloca or
7017 # contain a buggy version. If you still want to use their alloca,
7018 # use ar to extract alloca.o from them instead of compiling alloca.c.
7020 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
7022 $as_echo "#define C_ALLOCA 1" >>confdefs.h
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
7026 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
7027 if ${ac_cv_os_cray+:} false; then :
7028 $as_echo_n "(cached) " >&6
7030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7031 /* end confdefs.h. */
7032 #if defined CRAY && ! defined CRAY2
7039 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7040 $EGREP "webecray" >/dev/null 2>&1; then :
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
7049 $as_echo "$ac_cv_os_cray" >&6; }
7050 if test $ac_cv_os_cray = yes; then
7051 for ac_func in _getb67 GETB67 getb67; do
7052 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7053 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7054 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7056 cat >>confdefs.h <<_ACEOF
7057 #define CRAY_STACKSEG_END $ac_func
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
7067 $as_echo_n "checking stack direction for C alloca... " >&6; }
7068 if ${ac_cv_c_stack_direction+:} false; then :
7069 $as_echo_n "(cached) " >&6
7071 if test "$cross_compiling" = yes; then :
7072 ac_cv_c_stack_direction=0
7074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7075 /* end confdefs.h. */
7076 $ac_includes_default
7078 find_stack_direction (int *addr, int depth)
7083 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7084 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7089 main (int argc, char **argv)
7091 return find_stack_direction (0, argc + !argv + 20) < 0;
7094 if ac_fn_c_try_run "$LINENO"; then :
7095 ac_cv_c_stack_direction=1
7097 ac_cv_c_stack_direction=-1
7099 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7100 conftest.$ac_objext conftest.beam conftest.$ac_ext
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7105 $as_echo "$ac_cv_c_stack_direction" >&6; }
7106 cat >>confdefs.h <<_ACEOF
7107 #define STACK_DIRECTION $ac_cv_c_stack_direction
7116 for ac_header in $ac_header_list
7118 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7119 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7121 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7122 cat >>confdefs.h <<_ACEOF
7123 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7137 for ac_func in getpagesize
7139 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7140 if test "x$ac_cv_func_getpagesize" = xyes; then :
7141 cat >>confdefs.h <<_ACEOF
7142 #define HAVE_GETPAGESIZE 1
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7149 $as_echo_n "checking for working mmap... " >&6; }
7150 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
7151 $as_echo_n "(cached) " >&6
7153 if test "$cross_compiling" = yes; then :
7154 ac_cv_func_mmap_fixed_mapped=no
7156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7157 /* end confdefs.h. */
7158 $ac_includes_default
7159 /* malloc might have been renamed as rpl_malloc. */
7162 /* Thanks to Mike Haertel and Jim Avera for this test.
7163 Here is a matrix of mmap possibilities:
7164 mmap private not fixed
7165 mmap private fixed at somewhere currently unmapped
7166 mmap private fixed at somewhere already mapped
7167 mmap shared not fixed
7168 mmap shared fixed at somewhere currently unmapped
7169 mmap shared fixed at somewhere already mapped
7170 For private mappings, we should verify that changes cannot be read()
7171 back from the file, nor mmap's back from the file at a different
7172 address. (There have been systems where private was not correctly
7173 implemented like the infamous i386 svr4.0, and systems where the
7174 VM page cache was not coherent with the file system buffer cache
7175 like early versions of FreeBSD and possibly contemporary NetBSD.)
7176 For shared mappings, we should conversely verify that changes get
7177 propagated back to all the places they're supposed to be.
7179 Grep wants private fixed already mapped.
7180 The main things grep needs to know about mmap are:
7181 * does it exist and is it safe to write into the mmap'd area
7182 * how to use it (BSD variants) */
7185 #include <sys/mman.h>
7187 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7191 /* This mess was copied from the GNU getpagesize.h. */
7192 #ifndef HAVE_GETPAGESIZE
7193 # ifdef _SC_PAGESIZE
7194 # define getpagesize() sysconf(_SC_PAGESIZE)
7195 # else /* no _SC_PAGESIZE */
7196 # ifdef HAVE_SYS_PARAM_H
7197 # include <sys/param.h>
7198 # ifdef EXEC_PAGESIZE
7199 # define getpagesize() EXEC_PAGESIZE
7200 # else /* no EXEC_PAGESIZE */
7202 # define getpagesize() NBPG * CLSIZE
7205 # endif /* no CLSIZE */
7206 # else /* no NBPG */
7208 # define getpagesize() NBPC
7209 # else /* no NBPC */
7211 # define getpagesize() PAGESIZE
7212 # endif /* PAGESIZE */
7213 # endif /* no NBPC */
7214 # endif /* no NBPG */
7215 # endif /* no EXEC_PAGESIZE */
7216 # else /* no HAVE_SYS_PARAM_H */
7217 # define getpagesize() 8192 /* punt totally */
7218 # endif /* no HAVE_SYS_PARAM_H */
7219 # endif /* no _SC_PAGESIZE */
7221 #endif /* no HAVE_GETPAGESIZE */
7226 char *data, *data2, *data3;
7231 pagesize = getpagesize ();
7233 /* First, make a file with some known garbage in it. */
7234 data = (char *) malloc (pagesize);
7237 for (i = 0; i < pagesize; ++i)
7238 *(data + i) = rand ();
7240 fd = creat ("conftest.mmap", 0600);
7243 if (write (fd, data, pagesize) != pagesize)
7247 /* Next, check that the tail of a page is zero-filled. File must have
7248 non-zero length, otherwise we risk SIGBUS for entire page. */
7249 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7253 if (write (fd2, cdata2, 1) != 1)
7255 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7256 if (data2 == MAP_FAILED)
7258 for (i = 0; i < pagesize; ++i)
7262 if (munmap (data2, pagesize))
7265 /* Next, try to mmap the file at a fixed address which already has
7266 something else allocated at it. If we can, also make sure that
7267 we see the same garbage. */
7268 fd = open ("conftest.mmap", O_RDWR);
7271 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7272 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7274 for (i = 0; i < pagesize; ++i)
7275 if (*(data + i) != *(data2 + i))
7278 /* Finally, make sure that changes to the mapped area do not
7279 percolate back to the file as seen by read(). (This is a bug on
7280 some variants of i386 svr4.0.) */
7281 for (i = 0; i < pagesize; ++i)
7282 *(data2 + i) = *(data2 + i) + 1;
7283 data3 = (char *) malloc (pagesize);
7286 if (read (fd, data3, pagesize) != pagesize)
7288 for (i = 0; i < pagesize; ++i)
7289 if (*(data + i) != *(data3 + i))
7297 if ac_fn_c_try_run "$LINENO"; then :
7298 ac_cv_func_mmap_fixed_mapped=yes
7300 ac_cv_func_mmap_fixed_mapped=no
7302 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7303 conftest.$ac_objext conftest.beam conftest.$ac_ext
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7308 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7309 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7311 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7314 rm -f conftest.mmap conftest.txt
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
7319 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
7320 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
7321 $as_echo_n "(cached) " >&6
7324 gt_cv_int_divbyzero_sigfpe=
7326 macos* | darwin[6-9]* | darwin[1-9][0-9]*)
7327 # On Mac OS X 10.2 or newer, just assume the same as when cross-
7328 # compiling. If we were to perform the real test, 1 Crash Report
7329 # dialog window would pop up.
7331 i[34567]86 | x86_64)
7332 gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
7336 if test -z "$gt_cv_int_divbyzero_sigfpe"; then
7337 if test "$cross_compiling" = yes; then :
7339 # Guess based on the CPU.
7341 alpha* | i[34567]86 | x86_64 | m68k | s390*)
7342 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7344 gt_cv_int_divbyzero_sigfpe="guessing no";;
7348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7349 /* end confdefs.h. */
7355 sigfpe_handler (int sig)
7357 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
7358 exit (sig != SIGFPE);
7368 signal (SIGFPE, sigfpe_handler);
7369 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
7370 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7371 signal (SIGTRAP, sigfpe_handler);
7373 /* Linux/SPARC yields signal SIGILL. */
7374 #if defined (__sparc__) && defined (__linux__)
7375 signal (SIGILL, sigfpe_handler);
7384 if ac_fn_c_try_run "$LINENO"; then :
7385 gt_cv_int_divbyzero_sigfpe=yes
7387 gt_cv_int_divbyzero_sigfpe=no
7389 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7390 conftest.$ac_objext conftest.beam conftest.$ac_ext
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
7397 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
7398 case "$gt_cv_int_divbyzero_sigfpe" in
7403 cat >>confdefs.h <<_ACEOF
7404 #define INTDIV0_RAISES_SIGFPE $value
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7410 $as_echo_n "checking for inttypes.h... " >&6; }
7411 if ${gl_cv_header_inttypes_h+:} false; then :
7412 $as_echo_n "(cached) " >&6
7414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7415 /* end confdefs.h. */
7417 #include <sys/types.h>
7418 #include <inttypes.h>
7423 uintmax_t i = (uintmax_t) -1; return !i;
7428 if ac_fn_c_try_compile "$LINENO"; then :
7429 gl_cv_header_inttypes_h=yes
7431 gl_cv_header_inttypes_h=no
7433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
7436 $as_echo "$gl_cv_header_inttypes_h" >&6; }
7437 if test $gl_cv_header_inttypes_h = yes; then
7439 cat >>confdefs.h <<_ACEOF
7440 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
7447 $as_echo_n "checking for unsigned long long int... " >&6; }
7448 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
7449 $as_echo_n "(cached) " >&6
7451 ac_cv_type_unsigned_long_long_int=yes
7452 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
7453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7454 /* end confdefs.h. */
7456 /* For now, do not test the preprocessor; as of 2007 there are too many
7457 implementations with broken preprocessors. Perhaps this can
7458 be revisited in 2012. In the meantime, code should not expect
7459 #if to work with literals wider than 32 bits. */
7460 /* Test literals. */
7461 long long int ll = 9223372036854775807ll;
7462 long long int nll = -9223372036854775807LL;
7463 unsigned long long int ull = 18446744073709551615ULL;
7464 /* Test constant expressions. */
7465 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
7467 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
7473 /* Test availability of runtime routines for shift and division. */
7474 long long int llmax = 9223372036854775807ll;
7475 unsigned long long int ullmax = 18446744073709551615ull;
7476 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
7477 | (llmax / ll) | (llmax % ll)
7478 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
7479 | (ullmax / ull) | (ullmax % ull));
7485 if ac_fn_c_try_link "$LINENO"; then :
7488 ac_cv_type_unsigned_long_long_int=no
7490 rm -f core conftest.err conftest.$ac_objext \
7491 conftest$ac_exeext conftest.$ac_ext
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
7495 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
7496 if test $ac_cv_type_unsigned_long_long_int = yes; then
7498 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
7505 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
7507 test $ac_cv_type_unsigned_long_long_int = yes \
7508 && ac_type='unsigned long long' \
7509 || ac_type='unsigned long'
7511 cat >>confdefs.h <<_ACEOF
7512 #define uintmax_t $ac_type
7517 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
7522 for ac_header in inttypes.h
7524 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
7525 if test "x$ac_cv_header_inttypes_h" = xyes; then :
7526 cat >>confdefs.h <<_ACEOF
7527 #define HAVE_INTTYPES_H 1
7534 if test $ac_cv_header_inttypes_h = yes; then
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
7536 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7537 if ${gt_cv_inttypes_pri_broken+:} false; then :
7538 $as_echo_n "(cached) " >&6
7541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7542 /* end confdefs.h. */
7544 #include <inttypes.h>
7557 if ac_fn_c_try_compile "$LINENO"; then :
7558 gt_cv_inttypes_pri_broken=no
7560 gt_cv_inttypes_pri_broken=yes
7562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
7566 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7568 if test "$gt_cv_inttypes_pri_broken" = yes; then
7570 cat >>confdefs.h <<_ACEOF
7571 #define PRI_MACROS_BROKEN 1
7585 # Check whether --enable-threads was given.
7586 if test "${enable_threads+set}" = set; then :
7587 enableval=$enable_threads; gl_use_threads=$enableval
7589 if test -n "$gl_use_threads_default"; then
7590 gl_use_threads="$gl_use_threads_default"
7593 osf*) gl_use_threads=no ;;
7596 1.[0-5].*) gl_use_threads=no ;;
7597 *) gl_use_threads=yes ;;
7600 *) gl_use_threads=yes ;;
7606 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7607 # For using <pthread.h>:
7610 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
7611 # groks <pthread.h>. cc also understands the flag -pthread, but
7612 # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
7613 # 2. putting a flag into CPPFLAGS that has an effect on the linker
7614 # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
7615 # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
7616 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
7619 # Some systems optimize for single-threaded programs by default, and
7620 # need special flags to disable these optimizations. For example, the
7621 # definition of 'errno' in <errno.h>.
7623 aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
7624 solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
7632 if test "X$prefix" = "XNONE"; then
7633 acl_final_prefix="$ac_default_prefix"
7635 acl_final_prefix="$prefix"
7637 if test "X$exec_prefix" = "XNONE"; then
7638 acl_final_exec_prefix='${prefix}'
7640 acl_final_exec_prefix="$exec_prefix"
7642 acl_save_prefix="$prefix"
7643 prefix="$acl_final_prefix"
7644 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7645 prefix="$acl_save_prefix"
7649 # Check whether --with-gnu-ld was given.
7650 if test "${with_gnu_ld+set}" = set; then :
7651 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7656 # Prepare PATH_SEPARATOR.
7657 # The user is always right.
7658 if test "${PATH_SEPARATOR+set}" != set; then
7659 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7660 # contains only /bin. Note that ksh looks also at the FPATH variable,
7661 # so we have to set that as well for the test.
7663 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7664 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7665 || PATH_SEPARATOR=';'
7670 if test "$GCC" = yes; then
7671 # Check if gcc -print-prog-name=ld gives a path.
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7673 $as_echo_n "checking for ld used by $CC... " >&6; }
7676 # gcc leaves a trailing carriage return which upsets mingw
7677 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7679 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7682 # Accept absolute paths.
7684 re_direlt='/[^/][^/]*/\.\./'
7685 # Canonicalize the pathname of ld
7686 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
7687 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
7688 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7690 test -z "$LD" && LD="$ac_prog"
7693 # If it fails, then pretend we aren't using GCC.
7697 # If it is relative, then search for the first ld in PATH.
7701 elif test "$with_gnu_ld" = yes; then
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7703 $as_echo_n "checking for GNU ld... " >&6; }
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7706 $as_echo_n "checking for non-GNU ld... " >&6; }
7708 if ${acl_cv_path_LD+:} false; then :
7709 $as_echo_n "(cached) " >&6
7711 if test -z "$LD"; then
7712 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7713 for ac_dir in $PATH; do
7715 test -z "$ac_dir" && ac_dir=.
7716 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7717 acl_cv_path_LD="$ac_dir/$ac_prog"
7718 # Check to see if the program is GNU ld. I'd rather use --version,
7719 # but apparently some variants of GNU ld only accept -v.
7720 # Break only if it was the GNU/non-GNU ld that we prefer.
7721 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
7722 *GNU* | *'with BFD'*)
7723 test "$with_gnu_ld" != no && break
7726 test "$with_gnu_ld" != yes && break
7733 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7737 LD="$acl_cv_path_LD"
7738 if test -n "$LD"; then
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7740 $as_echo "$LD" >&6; }
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7743 $as_echo "no" >&6; }
7745 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7747 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7748 if ${acl_cv_prog_gnu_ld+:} false; then :
7749 $as_echo_n "(cached) " >&6
7751 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7752 case `$LD -v 2>&1 </dev/null` in
7753 *GNU* | *'with BFD'*)
7754 acl_cv_prog_gnu_ld=yes
7757 acl_cv_prog_gnu_ld=no
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7762 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7763 with_gnu_ld=$acl_cv_prog_gnu_ld
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7769 $as_echo_n "checking for shared library run path origin... " >&6; }
7770 if ${acl_cv_rpath+:} false; then :
7771 $as_echo_n "(cached) " >&6
7774 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7775 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7782 $as_echo "$acl_cv_rpath" >&6; }
7784 acl_libext="$acl_cv_libext"
7785 acl_shlibext="$acl_cv_shlibext"
7786 acl_libname_spec="$acl_cv_libname_spec"
7787 acl_library_names_spec="$acl_cv_library_names_spec"
7788 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7789 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7790 acl_hardcode_direct="$acl_cv_hardcode_direct"
7791 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
7792 # Check whether --enable-rpath was given.
7793 if test "${enable_rpath+set}" = set; then :
7794 enableval=$enable_rpath; :
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
7807 $as_echo_n "checking for 64-bit host... " >&6; }
7808 if ${gl_cv_solaris_64bit+:} false; then :
7809 $as_echo_n "(cached) " >&6
7811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7812 /* end confdefs.h. */
7819 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7820 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
7821 gl_cv_solaris_64bit=yes
7823 gl_cv_solaris_64bit=no
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
7830 $as_echo "$gl_cv_solaris_64bit" >&6; }
7831 if test $gl_cv_solaris_64bit = yes; then
7832 acl_libdirstem=lib/64
7834 sparc*) acl_libdirstem2=lib/sparcv9 ;;
7835 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
7840 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
7841 if test -n "$searchpath"; then
7842 acl_save_IFS="${IFS= }"; IFS=":"
7843 for searchdir in $searchpath; do
7844 if test -d "$searchdir"; then
7845 case "$searchdir" in
7846 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
7848 # Better ignore directories of this form. They are misleading.
7850 *) searchdir=`cd "$searchdir" && pwd`
7851 case "$searchdir" in
7852 */lib64 ) acl_libdirstem=lib64 ;;
7861 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
7870 if test "$gl_use_threads" != no; then
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
7872 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
7873 if ${gl_cv_have_weak+:} false; then :
7874 $as_echo_n "(cached) " >&6
7877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7878 /* end confdefs.h. */
7879 extern void xyzzy ();
7889 if ac_fn_c_try_link "$LINENO"; then :
7890 gl_cv_have_weak=maybe
7892 rm -f core conftest.err conftest.$ac_objext \
7893 conftest$ac_exeext conftest.$ac_ext
7894 if test $gl_cv_have_weak = maybe; then
7895 if test "$cross_compiling" = yes; then :
7896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7897 /* end confdefs.h. */
7899 Extensible Linking Format
7903 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7904 $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
7905 gl_cv_have_weak="guessing yes"
7907 gl_cv_have_weak="guessing no"
7913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7914 /* end confdefs.h. */
7920 return (fputs == NULL);
7923 if ac_fn_c_try_run "$LINENO"; then :
7928 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7929 conftest.$ac_objext conftest.beam conftest.$ac_ext
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
7936 $as_echo "$gl_cv_have_weak" >&6; }
7937 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7938 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
7939 # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
7940 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
7941 if test "x$ac_cv_header_pthread_h" = xyes; then :
7942 gl_have_pthread_h=yes
7944 gl_have_pthread_h=no
7948 if test "$gl_have_pthread_h" = yes; then
7949 # Other possible tests:
7950 # -lpthreads (FSU threads, PCthreads)
7953 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
7954 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
7955 # the second one only in libpthread, and lock.c needs it.
7956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7957 /* end confdefs.h. */
7958 #include <pthread.h>
7962 pthread_mutex_lock((pthread_mutex_t*)0);
7963 pthread_mutexattr_init((pthread_mutexattr_t*)0);
7968 if ac_fn_c_try_link "$LINENO"; then :
7971 rm -f core conftest.err conftest.$ac_objext \
7972 conftest$ac_exeext conftest.$ac_ext
7973 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
7974 # since it is defined as a macro on OSF/1.)
7975 if test -n "$gl_have_pthread"; then
7976 # The program links fine without libpthread. But it may actually
7977 # need to link with libpthread in order to create multiple threads.
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
7979 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
7980 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
7981 $as_echo_n "(cached) " >&6
7983 ac_check_lib_save_LIBS=$LIBS
7984 LIBS="-lpthread $LIBS"
7985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7986 /* end confdefs.h. */
7988 /* Override any GCC internal prototype to avoid an error.
7989 Use char because int might match the return type of a GCC
7990 builtin and then its argument prototype would still apply. */
7994 char pthread_kill ();
7998 return pthread_kill ();
8003 if ac_fn_c_try_link "$LINENO"; then :
8004 ac_cv_lib_pthread_pthread_kill=yes
8006 ac_cv_lib_pthread_pthread_kill=no
8008 rm -f core conftest.err conftest.$ac_objext \
8009 conftest$ac_exeext conftest.$ac_ext
8010 LIBS=$ac_check_lib_save_LIBS
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
8013 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
8014 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
8015 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
8016 # On Solaris and HP-UX, most pthread functions exist also in libc.
8017 # Therefore pthread_in_use() needs to actually try to create a
8018 # thread: pthread_create from libc will fail, whereas
8019 # pthread_create will actually create a thread.
8023 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
8030 # Some library is needed. Try libpthread and libc_r.
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
8032 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
8033 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
8034 $as_echo_n "(cached) " >&6
8036 ac_check_lib_save_LIBS=$LIBS
8037 LIBS="-lpthread $LIBS"
8038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8039 /* end confdefs.h. */
8041 /* Override any GCC internal prototype to avoid an error.
8042 Use char because int might match the return type of a GCC
8043 builtin and then its argument prototype would still apply. */
8047 char pthread_kill ();
8051 return pthread_kill ();
8056 if ac_fn_c_try_link "$LINENO"; then :
8057 ac_cv_lib_pthread_pthread_kill=yes
8059 ac_cv_lib_pthread_pthread_kill=no
8061 rm -f core conftest.err conftest.$ac_objext \
8062 conftest$ac_exeext conftest.$ac_ext
8063 LIBS=$ac_check_lib_save_LIBS
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
8066 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
8067 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
8069 LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
8070 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
8073 if test -z "$gl_have_pthread"; then
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
8076 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
8077 if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
8078 $as_echo_n "(cached) " >&6
8080 ac_check_lib_save_LIBS=$LIBS
8082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8083 /* end confdefs.h. */
8085 /* Override any GCC internal prototype to avoid an error.
8086 Use char because int might match the return type of a GCC
8087 builtin and then its argument prototype would still apply. */
8091 char pthread_kill ();
8095 return pthread_kill ();
8100 if ac_fn_c_try_link "$LINENO"; then :
8101 ac_cv_lib_c_r_pthread_kill=yes
8103 ac_cv_lib_c_r_pthread_kill=no
8105 rm -f core conftest.err conftest.$ac_objext \
8106 conftest$ac_exeext conftest.$ac_ext
8107 LIBS=$ac_check_lib_save_LIBS
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
8110 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
8111 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
8113 LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
8114 LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
8119 if test -n "$gl_have_pthread"; then
8120 gl_threads_api=posix
8122 $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
8124 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8125 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8127 $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
8136 if test -z "$gl_have_pthread"; then
8137 if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
8138 gl_have_solaristhread=
8139 gl_save_LIBS="$LIBS"
8140 LIBS="$LIBS -lthread"
8141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8142 /* end confdefs.h. */
8155 if ac_fn_c_try_link "$LINENO"; then :
8156 gl_have_solaristhread=yes
8158 rm -f core conftest.err conftest.$ac_objext \
8159 conftest$ac_exeext conftest.$ac_ext
8160 LIBS="$gl_save_LIBS"
8161 if test -n "$gl_have_solaristhread"; then
8162 gl_threads_api=solaris
8164 LTLIBTHREAD=-lthread
8165 LIBMULTITHREAD="$LIBTHREAD"
8166 LTLIBMULTITHREAD="$LTLIBTHREAD"
8168 $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
8170 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8172 $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
8180 if test "$gl_use_threads" = pth; then
8181 gl_save_CPPFLAGS="$CPPFLAGS"
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
8188 $as_echo_n "checking how to link with libpth... " >&6; }
8189 if ${ac_cv_libpth_libs+:} false; then :
8190 $as_echo_n "(cached) " >&6
8202 acl_save_prefix="$prefix"
8203 prefix="$acl_final_prefix"
8204 acl_save_exec_prefix="$exec_prefix"
8205 exec_prefix="$acl_final_exec_prefix"
8207 eval additional_includedir=\"$includedir\"
8208 eval additional_libdir=\"$libdir\"
8210 exec_prefix="$acl_save_exec_prefix"
8211 prefix="$acl_save_prefix"
8214 # Check whether --with-libpth-prefix was given.
8215 if test "${with_libpth_prefix+set}" = set; then :
8216 withval=$with_libpth_prefix;
8217 if test "X$withval" = "Xno"; then
8220 if test "X$withval" = "X"; then
8222 acl_save_prefix="$prefix"
8223 prefix="$acl_final_prefix"
8224 acl_save_exec_prefix="$exec_prefix"
8225 exec_prefix="$acl_final_exec_prefix"
8227 eval additional_includedir=\"$includedir\"
8228 eval additional_libdir=\"$libdir\"
8230 exec_prefix="$acl_save_exec_prefix"
8231 prefix="$acl_save_prefix"
8234 additional_includedir="$withval/include"
8235 additional_libdir="$withval/$acl_libdirstem"
8236 if test "$acl_libdirstem2" != "$acl_libdirstem" \
8237 && ! test -d "$withval/$acl_libdirstem"; then
8238 additional_libdir="$withval/$acl_libdirstem2"
8252 names_already_handled=
8253 names_next_round='pth '
8254 while test -n "$names_next_round"; do
8255 names_this_round="$names_next_round"
8257 for name in $names_this_round; do
8259 for n in $names_already_handled; do
8260 if test "$n" = "$name"; then
8265 if test -z "$already_handled"; then
8266 names_already_handled="$names_already_handled $name"
8267 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8268 eval value=\"\$HAVE_LIB$uppername\"
8269 if test -n "$value"; then
8270 if test "$value" = yes; then
8271 eval value=\"\$LIB$uppername\"
8272 test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
8273 eval value=\"\$LTLIB$uppername\"
8274 test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
8283 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8284 if test -n "$acl_shlibext"; then
8285 shrext=".$acl_shlibext" # typically: shrext=.so
8289 if test $use_additional = yes; then
8290 dir="$additional_libdir"
8291 if test -n "$acl_shlibext"; then
8292 if test -f "$dir/$libname$shrext"; then
8294 found_so="$dir/$libname$shrext"
8296 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8297 ver=`(cd "$dir" && \
8298 for f in "$libname$shrext".*; do echo "$f"; done \
8299 | sed -e "s,^$libname$shrext\\\\.,," \
8300 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8301 | sed 1q ) 2>/dev/null`
8302 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8304 found_so="$dir/$libname$shrext.$ver"
8307 eval library_names=\"$acl_library_names_spec\"
8308 for f in $library_names; do
8309 if test -f "$dir/$f"; then
8318 if test "X$found_dir" = "X"; then
8319 if test -f "$dir/$libname.$acl_libext"; then
8321 found_a="$dir/$libname.$acl_libext"
8324 if test "X$found_dir" != "X"; then
8325 if test -f "$dir/$libname.la"; then
8326 found_la="$dir/$libname.la"
8330 if test "X$found_dir" = "X"; then
8331 for x in $LDFLAGS $LTLIBPTH; do
8333 acl_save_prefix="$prefix"
8334 prefix="$acl_final_prefix"
8335 acl_save_exec_prefix="$exec_prefix"
8336 exec_prefix="$acl_final_exec_prefix"
8338 exec_prefix="$acl_save_exec_prefix"
8339 prefix="$acl_save_prefix"
8343 dir=`echo "X$x" | sed -e 's/^X-L//'`
8344 if test -n "$acl_shlibext"; then
8345 if test -f "$dir/$libname$shrext"; then
8347 found_so="$dir/$libname$shrext"
8349 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8350 ver=`(cd "$dir" && \
8351 for f in "$libname$shrext".*; do echo "$f"; done \
8352 | sed -e "s,^$libname$shrext\\\\.,," \
8353 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8354 | sed 1q ) 2>/dev/null`
8355 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8357 found_so="$dir/$libname$shrext.$ver"
8360 eval library_names=\"$acl_library_names_spec\"
8361 for f in $library_names; do
8362 if test -f "$dir/$f"; then
8371 if test "X$found_dir" = "X"; then
8372 if test -f "$dir/$libname.$acl_libext"; then
8374 found_a="$dir/$libname.$acl_libext"
8377 if test "X$found_dir" != "X"; then
8378 if test -f "$dir/$libname.la"; then
8379 found_la="$dir/$libname.la"
8384 if test "X$found_dir" != "X"; then
8389 if test "X$found_dir" != "X"; then
8390 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
8391 if test "X$found_so" != "X"; then
8392 if test "$enable_rpath" = no \
8393 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8394 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
8395 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8398 for x in $ltrpathdirs; do
8399 if test "X$x" = "X$found_dir"; then
8404 if test -z "$haveit"; then
8405 ltrpathdirs="$ltrpathdirs $found_dir"
8407 if test "$acl_hardcode_direct" = yes; then
8408 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8410 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8411 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8413 for x in $rpathdirs; do
8414 if test "X$x" = "X$found_dir"; then
8419 if test -z "$haveit"; then
8420 rpathdirs="$rpathdirs $found_dir"
8424 for x in $LDFLAGS $LIBPTH; do
8426 acl_save_prefix="$prefix"
8427 prefix="$acl_final_prefix"
8428 acl_save_exec_prefix="$exec_prefix"
8429 exec_prefix="$acl_final_exec_prefix"
8431 exec_prefix="$acl_save_exec_prefix"
8432 prefix="$acl_save_prefix"
8434 if test "X$x" = "X-L$found_dir"; then
8439 if test -z "$haveit"; then
8440 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
8442 if test "$acl_hardcode_minus_L" != no; then
8443 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8445 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8451 if test "X$found_a" != "X"; then
8452 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
8454 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
8457 additional_includedir=
8458 case "$found_dir" in
8459 */$acl_libdirstem | */$acl_libdirstem/)
8460 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8461 if test "$name" = 'pth'; then
8462 LIBPTH_PREFIX="$basedir"
8464 additional_includedir="$basedir/include"
8466 */$acl_libdirstem2 | */$acl_libdirstem2/)
8467 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
8468 if test "$name" = 'pth'; then
8469 LIBPTH_PREFIX="$basedir"
8471 additional_includedir="$basedir/include"
8474 if test "X$additional_includedir" != "X"; then
8475 if test "X$additional_includedir" != "X/usr/include"; then
8477 if test "X$additional_includedir" = "X/usr/local/include"; then
8478 if test -n "$GCC"; then
8480 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8484 if test -z "$haveit"; then
8485 for x in $CPPFLAGS $INCPTH; do
8487 acl_save_prefix="$prefix"
8488 prefix="$acl_final_prefix"
8489 acl_save_exec_prefix="$exec_prefix"
8490 exec_prefix="$acl_final_exec_prefix"
8492 exec_prefix="$acl_save_exec_prefix"
8493 prefix="$acl_save_prefix"
8495 if test "X$x" = "X-I$additional_includedir"; then
8500 if test -z "$haveit"; then
8501 if test -d "$additional_includedir"; then
8502 INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
8508 if test -n "$found_la"; then
8509 save_libdir="$libdir"
8511 */* | *\\*) . "$found_la" ;;
8512 *) . "./$found_la" ;;
8514 libdir="$save_libdir"
8515 for dep in $dependency_libs; do
8518 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8519 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
8520 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
8522 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
8523 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
8524 if test -n "$GCC"; then
8526 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8530 if test -z "$haveit"; then
8532 for x in $LDFLAGS $LIBPTH; do
8534 acl_save_prefix="$prefix"
8535 prefix="$acl_final_prefix"
8536 acl_save_exec_prefix="$exec_prefix"
8537 exec_prefix="$acl_final_exec_prefix"
8539 exec_prefix="$acl_save_exec_prefix"
8540 prefix="$acl_save_prefix"
8542 if test "X$x" = "X-L$additional_libdir"; then
8547 if test -z "$haveit"; then
8548 if test -d "$additional_libdir"; then
8549 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
8553 for x in $LDFLAGS $LTLIBPTH; do
8555 acl_save_prefix="$prefix"
8556 prefix="$acl_final_prefix"
8557 acl_save_exec_prefix="$exec_prefix"
8558 exec_prefix="$acl_final_exec_prefix"
8560 exec_prefix="$acl_save_exec_prefix"
8561 prefix="$acl_save_prefix"
8563 if test "X$x" = "X-L$additional_libdir"; then
8568 if test -z "$haveit"; then
8569 if test -d "$additional_libdir"; then
8570 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
8577 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8578 if test "$enable_rpath" != no; then
8580 for x in $rpathdirs; do
8581 if test "X$x" = "X$dir"; then
8586 if test -z "$haveit"; then
8587 rpathdirs="$rpathdirs $dir"
8590 for x in $ltrpathdirs; do
8591 if test "X$x" = "X$dir"; then
8596 if test -z "$haveit"; then
8597 ltrpathdirs="$ltrpathdirs $dir"
8602 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8605 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8608 LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
8609 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
8615 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8616 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
8622 if test "X$rpathdirs" != "X"; then
8623 if test -n "$acl_hardcode_libdir_separator"; then
8625 for found_dir in $rpathdirs; do
8626 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
8628 acl_save_libdir="$libdir"
8630 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8631 libdir="$acl_save_libdir"
8632 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
8634 for found_dir in $rpathdirs; do
8635 acl_save_libdir="$libdir"
8637 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8638 libdir="$acl_save_libdir"
8639 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
8643 if test "X$ltrpathdirs" != "X"; then
8644 for found_dir in $ltrpathdirs; do
8645 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
8654 ac_cv_libpth_libs="$LIBPTH"
8655 ac_cv_libpth_ltlibs="$LTLIBPTH"
8656 ac_cv_libpth_cppflags="$INCPTH"
8657 ac_cv_libpth_prefix="$LIBPTH_PREFIX"
8660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
8661 $as_echo "$ac_cv_libpth_libs" >&6; }
8662 LIBPTH="$ac_cv_libpth_libs"
8663 LTLIBPTH="$ac_cv_libpth_ltlibs"
8664 INCPTH="$ac_cv_libpth_cppflags"
8665 LIBPTH_PREFIX="$ac_cv_libpth_prefix"
8667 for element in $INCPTH; do
8669 for x in $CPPFLAGS; do
8671 acl_save_prefix="$prefix"
8672 prefix="$acl_final_prefix"
8673 acl_save_exec_prefix="$exec_prefix"
8674 exec_prefix="$acl_final_exec_prefix"
8676 exec_prefix="$acl_save_exec_prefix"
8677 prefix="$acl_save_prefix"
8679 if test "X$x" = "X$element"; then
8684 if test -z "$haveit"; then
8685 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8697 gl_save_LIBS="$LIBS"
8698 LIBS="$LIBS $LIBPTH"
8699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8700 /* end confdefs.h. */
8710 if ac_fn_c_try_link "$LINENO"; then :
8713 rm -f core conftest.err conftest.$ac_objext \
8714 conftest$ac_exeext conftest.$ac_ext
8715 LIBS="$gl_save_LIBS"
8716 if test -n "$gl_have_pth"; then
8719 LTLIBTHREAD="$LTLIBPTH"
8720 LIBMULTITHREAD="$LIBTHREAD"
8721 LTLIBMULTITHREAD="$LTLIBTHREAD"
8723 $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
8725 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8726 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8728 $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
8735 CPPFLAGS="$gl_save_CPPFLAGS"
8738 if test -z "$gl_have_pthread"; then
8739 case "$gl_use_threads" in
8740 yes | windows | win32) # The 'win32' is for backward compatibility.
8741 if { case "$host_os" in
8746 gl_threads_api=windows
8748 $as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h
8755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
8756 $as_echo_n "checking for multithread API to use... " >&6; }
8757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
8758 $as_echo "$gl_threads_api" >&6; }
8770 if test "$gl_threads_api" = posix; then
8771 # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
8772 # pthread_rwlock_* functions.
8773 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
8775 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
8777 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
8781 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
8782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8783 /* end confdefs.h. */
8785 #include <pthread.h>
8790 #if __FreeBSD__ == 4
8791 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
8792 #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
8793 && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
8794 error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
8796 int x = (int)PTHREAD_MUTEX_RECURSIVE;
8804 if ac_fn_c_try_compile "$LINENO"; then :
8806 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
8809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8826 acl_save_prefix="$prefix"
8827 prefix="$acl_final_prefix"
8828 acl_save_exec_prefix="$exec_prefix"
8829 exec_prefix="$acl_final_exec_prefix"
8831 eval additional_includedir=\"$includedir\"
8832 eval additional_libdir=\"$libdir\"
8834 exec_prefix="$acl_save_exec_prefix"
8835 prefix="$acl_save_prefix"
8838 # Check whether --with-libiconv-prefix was given.
8839 if test "${with_libiconv_prefix+set}" = set; then :
8840 withval=$with_libiconv_prefix;
8841 if test "X$withval" = "Xno"; then
8844 if test "X$withval" = "X"; then
8846 acl_save_prefix="$prefix"
8847 prefix="$acl_final_prefix"
8848 acl_save_exec_prefix="$exec_prefix"
8849 exec_prefix="$acl_final_exec_prefix"
8851 eval additional_includedir=\"$includedir\"
8852 eval additional_libdir=\"$libdir\"
8854 exec_prefix="$acl_save_exec_prefix"
8855 prefix="$acl_save_prefix"
8858 additional_includedir="$withval/include"
8859 additional_libdir="$withval/$acl_libdirstem"
8860 if test "$acl_libdirstem2" != "$acl_libdirstem" \
8861 && ! test -d "$withval/$acl_libdirstem"; then
8862 additional_libdir="$withval/$acl_libdirstem2"
8876 names_already_handled=
8877 names_next_round='iconv '
8878 while test -n "$names_next_round"; do
8879 names_this_round="$names_next_round"
8881 for name in $names_this_round; do
8883 for n in $names_already_handled; do
8884 if test "$n" = "$name"; then
8889 if test -z "$already_handled"; then
8890 names_already_handled="$names_already_handled $name"
8891 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8892 eval value=\"\$HAVE_LIB$uppername\"
8893 if test -n "$value"; then
8894 if test "$value" = yes; then
8895 eval value=\"\$LIB$uppername\"
8896 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8897 eval value=\"\$LTLIB$uppername\"
8898 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8907 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8908 if test -n "$acl_shlibext"; then
8909 shrext=".$acl_shlibext" # typically: shrext=.so
8913 if test $use_additional = yes; then
8914 dir="$additional_libdir"
8915 if test -n "$acl_shlibext"; then
8916 if test -f "$dir/$libname$shrext"; then
8918 found_so="$dir/$libname$shrext"
8920 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8921 ver=`(cd "$dir" && \
8922 for f in "$libname$shrext".*; do echo "$f"; done \
8923 | sed -e "s,^$libname$shrext\\\\.,," \
8924 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8925 | sed 1q ) 2>/dev/null`
8926 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8928 found_so="$dir/$libname$shrext.$ver"
8931 eval library_names=\"$acl_library_names_spec\"
8932 for f in $library_names; do
8933 if test -f "$dir/$f"; then
8942 if test "X$found_dir" = "X"; then
8943 if test -f "$dir/$libname.$acl_libext"; then
8945 found_a="$dir/$libname.$acl_libext"
8948 if test "X$found_dir" != "X"; then
8949 if test -f "$dir/$libname.la"; then
8950 found_la="$dir/$libname.la"
8954 if test "X$found_dir" = "X"; then
8955 for x in $LDFLAGS $LTLIBICONV; do
8957 acl_save_prefix="$prefix"
8958 prefix="$acl_final_prefix"
8959 acl_save_exec_prefix="$exec_prefix"
8960 exec_prefix="$acl_final_exec_prefix"
8962 exec_prefix="$acl_save_exec_prefix"
8963 prefix="$acl_save_prefix"
8967 dir=`echo "X$x" | sed -e 's/^X-L//'`
8968 if test -n "$acl_shlibext"; then
8969 if test -f "$dir/$libname$shrext"; then
8971 found_so="$dir/$libname$shrext"
8973 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8974 ver=`(cd "$dir" && \
8975 for f in "$libname$shrext".*; do echo "$f"; done \
8976 | sed -e "s,^$libname$shrext\\\\.,," \
8977 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8978 | sed 1q ) 2>/dev/null`
8979 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8981 found_so="$dir/$libname$shrext.$ver"
8984 eval library_names=\"$acl_library_names_spec\"
8985 for f in $library_names; do
8986 if test -f "$dir/$f"; then
8995 if test "X$found_dir" = "X"; then
8996 if test -f "$dir/$libname.$acl_libext"; then
8998 found_a="$dir/$libname.$acl_libext"
9001 if test "X$found_dir" != "X"; then
9002 if test -f "$dir/$libname.la"; then
9003 found_la="$dir/$libname.la"
9008 if test "X$found_dir" != "X"; then
9013 if test "X$found_dir" != "X"; then
9014 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9015 if test "X$found_so" != "X"; then
9016 if test "$enable_rpath" = no \
9017 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
9018 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
9019 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9022 for x in $ltrpathdirs; do
9023 if test "X$x" = "X$found_dir"; then
9028 if test -z "$haveit"; then
9029 ltrpathdirs="$ltrpathdirs $found_dir"
9031 if test "$acl_hardcode_direct" = yes; then
9032 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9034 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
9035 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9037 for x in $rpathdirs; do
9038 if test "X$x" = "X$found_dir"; then
9043 if test -z "$haveit"; then
9044 rpathdirs="$rpathdirs $found_dir"
9048 for x in $LDFLAGS $LIBICONV; do
9050 acl_save_prefix="$prefix"
9051 prefix="$acl_final_prefix"
9052 acl_save_exec_prefix="$exec_prefix"
9053 exec_prefix="$acl_final_exec_prefix"
9055 exec_prefix="$acl_save_exec_prefix"
9056 prefix="$acl_save_prefix"
9058 if test "X$x" = "X-L$found_dir"; then
9063 if test -z "$haveit"; then
9064 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9066 if test "$acl_hardcode_minus_L" != no; then
9067 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9069 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9075 if test "X$found_a" != "X"; then
9076 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9078 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9081 additional_includedir=
9082 case "$found_dir" in
9083 */$acl_libdirstem | */$acl_libdirstem/)
9084 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9085 if test "$name" = 'iconv'; then
9086 LIBICONV_PREFIX="$basedir"
9088 additional_includedir="$basedir/include"
9090 */$acl_libdirstem2 | */$acl_libdirstem2/)
9091 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
9092 if test "$name" = 'iconv'; then
9093 LIBICONV_PREFIX="$basedir"
9095 additional_includedir="$basedir/include"
9098 if test "X$additional_includedir" != "X"; then
9099 if test "X$additional_includedir" != "X/usr/include"; then
9101 if test "X$additional_includedir" = "X/usr/local/include"; then
9102 if test -n "$GCC"; then
9104 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9108 if test -z "$haveit"; then
9109 for x in $CPPFLAGS $INCICONV; do
9111 acl_save_prefix="$prefix"
9112 prefix="$acl_final_prefix"
9113 acl_save_exec_prefix="$exec_prefix"
9114 exec_prefix="$acl_final_exec_prefix"
9116 exec_prefix="$acl_save_exec_prefix"
9117 prefix="$acl_save_prefix"
9119 if test "X$x" = "X-I$additional_includedir"; then
9124 if test -z "$haveit"; then
9125 if test -d "$additional_includedir"; then
9126 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9132 if test -n "$found_la"; then
9133 save_libdir="$libdir"
9135 */* | *\\*) . "$found_la" ;;
9136 *) . "./$found_la" ;;
9138 libdir="$save_libdir"
9139 for dep in $dependency_libs; do
9142 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9143 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
9144 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
9146 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
9147 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
9148 if test -n "$GCC"; then
9150 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9154 if test -z "$haveit"; then
9156 for x in $LDFLAGS $LIBICONV; do
9158 acl_save_prefix="$prefix"
9159 prefix="$acl_final_prefix"
9160 acl_save_exec_prefix="$exec_prefix"
9161 exec_prefix="$acl_final_exec_prefix"
9163 exec_prefix="$acl_save_exec_prefix"
9164 prefix="$acl_save_prefix"
9166 if test "X$x" = "X-L$additional_libdir"; then
9171 if test -z "$haveit"; then
9172 if test -d "$additional_libdir"; then
9173 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9177 for x in $LDFLAGS $LTLIBICONV; do
9179 acl_save_prefix="$prefix"
9180 prefix="$acl_final_prefix"
9181 acl_save_exec_prefix="$exec_prefix"
9182 exec_prefix="$acl_final_exec_prefix"
9184 exec_prefix="$acl_save_exec_prefix"
9185 prefix="$acl_save_prefix"
9187 if test "X$x" = "X-L$additional_libdir"; then
9192 if test -z "$haveit"; then
9193 if test -d "$additional_libdir"; then
9194 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9201 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9202 if test "$enable_rpath" != no; then
9204 for x in $rpathdirs; do
9205 if test "X$x" = "X$dir"; then
9210 if test -z "$haveit"; then
9211 rpathdirs="$rpathdirs $dir"
9214 for x in $ltrpathdirs; do
9215 if test "X$x" = "X$dir"; then
9220 if test -z "$haveit"; then
9221 ltrpathdirs="$ltrpathdirs $dir"
9226 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9229 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9232 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9233 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9239 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9240 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9246 if test "X$rpathdirs" != "X"; then
9247 if test -n "$acl_hardcode_libdir_separator"; then
9249 for found_dir in $rpathdirs; do
9250 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
9252 acl_save_libdir="$libdir"
9254 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9255 libdir="$acl_save_libdir"
9256 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9258 for found_dir in $rpathdirs; do
9259 acl_save_libdir="$libdir"
9261 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9262 libdir="$acl_save_libdir"
9263 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9267 if test "X$ltrpathdirs" != "X"; then
9268 for found_dir in $ltrpathdirs; do
9269 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9284 am_save_CPPFLAGS="$CPPFLAGS"
9286 for element in $INCICONV; do
9288 for x in $CPPFLAGS; do
9290 acl_save_prefix="$prefix"
9291 prefix="$acl_final_prefix"
9292 acl_save_exec_prefix="$exec_prefix"
9293 exec_prefix="$acl_final_exec_prefix"
9295 exec_prefix="$acl_save_exec_prefix"
9296 prefix="$acl_save_prefix"
9298 if test "X$x" = "X$element"; then
9303 if test -z "$haveit"; then
9304 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9310 $as_echo_n "checking for iconv... " >&6; }
9311 if ${am_cv_func_iconv+:} false; then :
9312 $as_echo_n "(cached) " >&6
9315 am_cv_func_iconv="no, consider installing GNU libiconv"
9317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9318 /* end confdefs.h. */
9326 iconv_t cd = iconv_open("","");
9327 iconv(cd,NULL,NULL,NULL,NULL);
9333 if ac_fn_c_try_link "$LINENO"; then :
9334 am_cv_func_iconv=yes
9336 rm -f core conftest.err conftest.$ac_objext \
9337 conftest$ac_exeext conftest.$ac_ext
9338 if test "$am_cv_func_iconv" != yes; then
9339 am_save_LIBS="$LIBS"
9340 LIBS="$LIBS $LIBICONV"
9341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9342 /* end confdefs.h. */
9350 iconv_t cd = iconv_open("","");
9351 iconv(cd,NULL,NULL,NULL,NULL);
9357 if ac_fn_c_try_link "$LINENO"; then :
9359 am_cv_func_iconv=yes
9361 rm -f core conftest.err conftest.$ac_objext \
9362 conftest$ac_exeext conftest.$ac_ext
9363 LIBS="$am_save_LIBS"
9367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9368 $as_echo "$am_cv_func_iconv" >&6; }
9369 if test "$am_cv_func_iconv" = yes; then
9370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
9371 $as_echo_n "checking for working iconv... " >&6; }
9372 if ${am_cv_func_iconv_works+:} false; then :
9373 $as_echo_n "(cached) " >&6
9376 am_save_LIBS="$LIBS"
9377 if test $am_cv_lib_iconv = yes; then
9378 LIBS="$LIBS $LIBICONV"
9380 if test "$cross_compiling" = yes; then :
9383 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
9384 *) am_cv_func_iconv_works="guessing yes" ;;
9388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9389 /* end confdefs.h. */
9396 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
9399 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
9400 if (cd_utf8_to_88591 != (iconv_t)(-1))
9402 static const char input[] = "\342\202\254"; /* EURO SIGN */
9404 const char *inptr = input;
9405 size_t inbytesleft = strlen (input);
9407 size_t outbytesleft = sizeof (buf);
9408 size_t res = iconv (cd_utf8_to_88591,
9409 (char **) &inptr, &inbytesleft,
9410 &outptr, &outbytesleft);
9413 iconv_close (cd_utf8_to_88591);
9416 /* Test against Solaris 10 bug: Failures are not distinguishable from
9417 successful returns. */
9419 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
9420 if (cd_ascii_to_88591 != (iconv_t)(-1))
9422 static const char input[] = "\263";
9424 const char *inptr = input;
9425 size_t inbytesleft = strlen (input);
9427 size_t outbytesleft = sizeof (buf);
9428 size_t res = iconv (cd_ascii_to_88591,
9429 (char **) &inptr, &inbytesleft,
9430 &outptr, &outbytesleft);
9433 iconv_close (cd_ascii_to_88591);
9436 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
9438 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
9439 if (cd_88591_to_utf8 != (iconv_t)(-1))
9441 static const char input[] = "\304";
9442 static char buf[2] = { (char)0xDE, (char)0xAD };
9443 const char *inptr = input;
9444 size_t inbytesleft = 1;
9446 size_t outbytesleft = 1;
9447 size_t res = iconv (cd_88591_to_utf8,
9448 (char **) &inptr, &inbytesleft,
9449 &outptr, &outbytesleft);
9450 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
9452 iconv_close (cd_88591_to_utf8);
9455 #if 0 /* This bug could be worked around by the caller. */
9456 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
9458 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
9459 if (cd_88591_to_utf8 != (iconv_t)(-1))
9461 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
9463 const char *inptr = input;
9464 size_t inbytesleft = strlen (input);
9466 size_t outbytesleft = sizeof (buf);
9467 size_t res = iconv (cd_88591_to_utf8,
9468 (char **) &inptr, &inbytesleft,
9469 &outptr, &outbytesleft);
9472 iconv_close (cd_88591_to_utf8);
9476 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
9478 if (/* Try standardized names. */
9479 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
9480 /* Try IRIX, OSF/1 names. */
9481 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
9482 /* Try AIX names. */
9483 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
9484 /* Try HP-UX names. */
9485 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
9490 if ac_fn_c_try_run "$LINENO"; then :
9491 am_cv_func_iconv_works=yes
9493 am_cv_func_iconv_works=no
9495 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9496 conftest.$ac_objext conftest.beam conftest.$ac_ext
9499 LIBS="$am_save_LIBS"
9502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
9503 $as_echo "$am_cv_func_iconv_works" >&6; }
9504 case "$am_cv_func_iconv_works" in
9505 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
9506 *) am_func_iconv=yes ;;
9509 am_func_iconv=no am_cv_lib_iconv=no
9511 if test "$am_func_iconv" = yes; then
9513 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9516 if test "$am_cv_lib_iconv" = yes; then
9517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9518 $as_echo_n "checking how to link with libiconv... " >&6; }
9519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9520 $as_echo "$LIBICONV" >&6; }
9522 CPPFLAGS="$am_save_CPPFLAGS"
9529 if test "$am_cv_func_iconv" = yes; then
9530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9531 $as_echo_n "checking for iconv declaration... " >&6; }
9532 if ${am_cv_proto_iconv+:} false; then :
9533 $as_echo_n "(cached) " >&6
9536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9537 /* end confdefs.h. */
9545 #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
9546 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9559 if ac_fn_c_try_compile "$LINENO"; then :
9560 am_cv_proto_iconv_arg1=""
9562 am_cv_proto_iconv_arg1="const"
9564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9565 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);"
9568 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9569 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
9570 $am_cv_proto_iconv" >&5
9572 $am_cv_proto_iconv" >&6; }
9574 cat >>confdefs.h <<_ACEOF
9575 #define ICONV_CONST $am_cv_proto_iconv_arg1
9584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9585 /* end confdefs.h. */
9586 int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
9595 if ac_fn_c_try_link "$LINENO"; then :
9597 $as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
9600 rm -f core conftest.err conftest.$ac_objext \
9601 conftest$ac_exeext conftest.$ac_ext
9603 for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
9605 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9606 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9607 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9608 cat >>confdefs.h <<_ACEOF
9609 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9616 for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
9617 stpcpy strcasecmp strdup strtoul tsearch uselocale argz_count \
9618 argz_stringify argz_next __fsetlocking
9620 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9621 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9622 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9623 cat >>confdefs.h <<_ACEOF
9624 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9631 ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "#include <stdio.h>
9633 if test "x$ac_cv_have_decl_feof_unlocked" = xyes; then :
9639 cat >>confdefs.h <<_ACEOF
9640 #define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
9642 ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "#include <stdio.h>
9644 if test "x$ac_cv_have_decl_fgets_unlocked" = xyes; then :
9650 cat >>confdefs.h <<_ACEOF
9651 #define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
9657 for ac_prog in bison
9659 # Extract the first word of "$ac_prog", so it can be a program name with args.
9660 set dummy $ac_prog; ac_word=$2
9661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9662 $as_echo_n "checking for $ac_word... " >&6; }
9663 if ${ac_cv_prog_INTLBISON+:} false; then :
9664 $as_echo_n "(cached) " >&6
9666 if test -n "$INTLBISON"; then
9667 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
9669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9673 test -z "$as_dir" && as_dir=.
9674 for ac_exec_ext in '' $ac_executable_extensions; do
9675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9676 ac_cv_prog_INTLBISON="$ac_prog"
9677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9686 INTLBISON=$ac_cv_prog_INTLBISON
9687 if test -n "$INTLBISON"; then
9688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
9689 $as_echo "$INTLBISON" >&6; }
9691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9692 $as_echo "no" >&6; }
9696 test -n "$INTLBISON" && break
9699 if test -z "$INTLBISON"; then
9702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
9703 $as_echo_n "checking version of bison... " >&6; }
9704 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
9705 case $ac_prog_version in
9706 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
9707 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
9708 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
9709 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
9711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
9712 $as_echo "$ac_prog_version" >&6; }
9714 if test $ac_verc_fail = yes; then
9720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
9721 $as_echo_n "checking for long long int... " >&6; }
9722 if ${ac_cv_type_long_long_int+:} false; then :
9723 $as_echo_n "(cached) " >&6
9725 ac_cv_type_long_long_int=yes
9726 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
9727 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
9728 if test $ac_cv_type_long_long_int = yes; then
9729 if test "$cross_compiling" = yes; then :
9732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9733 /* end confdefs.h. */
9737 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
9738 # define LLONG_MAX (HALF - 1 + HALF)
9743 long long int n = 1;
9747 long long int m = n << i;
9750 if (LLONG_MAX / 2 < m)
9758 if ac_fn_c_try_run "$LINENO"; then :
9761 ac_cv_type_long_long_int=no
9763 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9764 conftest.$ac_objext conftest.beam conftest.$ac_ext
9770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
9771 $as_echo "$ac_cv_type_long_long_int" >&6; }
9772 if test $ac_cv_type_long_long_int = yes; then
9774 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
9779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
9780 $as_echo_n "checking for wchar_t... " >&6; }
9781 if ${gt_cv_c_wchar_t+:} false; then :
9782 $as_echo_n "(cached) " >&6
9784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9785 /* end confdefs.h. */
9787 wchar_t foo = (wchar_t)'\0';
9796 if ac_fn_c_try_compile "$LINENO"; then :
9801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
9804 $as_echo "$gt_cv_c_wchar_t" >&6; }
9805 if test $gt_cv_c_wchar_t = yes; then
9807 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
9812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
9813 $as_echo_n "checking for wint_t... " >&6; }
9814 if ${gt_cv_c_wint_t+:} false; then :
9815 $as_echo_n "(cached) " >&6
9817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9818 /* end confdefs.h. */
9820 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9822 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
9823 before <wchar.h>. */
9828 wint_t foo = (wchar_t)'\0';
9837 if ac_fn_c_try_compile "$LINENO"; then :
9842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
9845 $as_echo "$gt_cv_c_wint_t" >&6; }
9846 if test $gt_cv_c_wint_t = yes; then
9848 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
9855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
9856 $as_echo_n "checking for intmax_t... " >&6; }
9857 if ${gt_cv_c_intmax_t+:} false; then :
9858 $as_echo_n "(cached) " >&6
9860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9861 /* end confdefs.h. */
9865 #if HAVE_STDINT_H_WITH_UINTMAX
9868 #if HAVE_INTTYPES_H_WITH_UINTMAX
9869 #include <inttypes.h>
9881 if ac_fn_c_try_compile "$LINENO"; then :
9882 gt_cv_c_intmax_t=yes
9886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
9889 $as_echo "$gt_cv_c_intmax_t" >&6; }
9890 if test $gt_cv_c_intmax_t = yes; then
9892 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
9898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
9899 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
9900 if ${gt_cv_func_printf_posix+:} false; then :
9901 $as_echo_n "(cached) " >&6
9904 if test "$cross_compiling" = yes; then :
9906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9907 /* end confdefs.h. */
9909 #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
9914 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9915 $EGREP "notposix" >/dev/null 2>&1; then :
9916 gt_cv_func_printf_posix="guessing no"
9918 gt_cv_func_printf_posix="guessing yes"
9924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9925 /* end confdefs.h. */
9929 /* The string "%2$d %1$d", with dollar characters protected from the shell's
9930 dollar expansion (possibly an autoconf bug). */
9931 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
9932 static char buf[100];
9935 sprintf (buf, format, 33, 55);
9936 return (strcmp (buf, "55 33") != 0);
9939 if ac_fn_c_try_run "$LINENO"; then :
9940 gt_cv_func_printf_posix=yes
9942 gt_cv_func_printf_posix=no
9944 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9945 conftest.$ac_objext conftest.beam conftest.$ac_ext
9950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
9951 $as_echo "$gt_cv_func_printf_posix" >&6; }
9952 case $gt_cv_func_printf_posix in
9955 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
9961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
9962 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
9963 if ${ac_cv_gnu_library_2_1+:} false; then :
9964 $as_echo_n "(cached) " >&6
9966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9967 /* end confdefs.h. */
9969 #include <features.h>
9970 #ifdef __GNU_LIBRARY__
9971 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9980 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9981 $EGREP "Lucky" >/dev/null 2>&1; then :
9982 ac_cv_gnu_library_2_1=yes
9984 ac_cv_gnu_library_2_1=no
9991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
9992 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
9994 GLIBC21="$ac_cv_gnu_library_2_1"
9998 for ac_header in stdint.h
10000 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
10001 if test "x$ac_cv_header_stdint_h" = xyes; then :
10002 cat >>confdefs.h <<_ACEOF
10003 #define HAVE_STDINT_H 1
10010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
10011 $as_echo_n "checking for SIZE_MAX... " >&6; }
10012 if ${gl_cv_size_max+:} false; then :
10013 $as_echo_n "(cached) " >&6
10017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10018 /* end confdefs.h. */
10020 #include <limits.h>
10022 #include <stdint.h>
10029 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10030 $EGREP "Found it" >/dev/null 2>&1; then :
10035 if test -z "$gl_cv_size_max"; then
10036 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
10037 #include <limits.h>"; then :
10040 size_t_bits_minus_1=
10043 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
10049 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
10050 if test $fits_in_uint = 1; then
10051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10052 /* end confdefs.h. */
10053 #include <stddef.h>
10055 extern unsigned long foo;
10065 if ac_fn_c_try_compile "$LINENO"; then :
10068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10070 if test $fits_in_uint = 1; then
10071 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
10073 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
10076 gl_cv_size_max='((size_t)~(size_t)0)'
10081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
10082 $as_echo "$gl_cv_size_max" >&6; }
10083 if test "$gl_cv_size_max" != yes; then
10085 cat >>confdefs.h <<_ACEOF
10086 #define SIZE_MAX $gl_cv_size_max
10094 for ac_header in stdint.h
10096 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
10097 if test "x$ac_cv_header_stdint_h" = xyes; then :
10098 cat >>confdefs.h <<_ACEOF
10099 #define HAVE_STDINT_H 1
10110 for ac_func in $ac_func_list
10112 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10113 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10114 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10115 cat >>confdefs.h <<_ACEOF
10116 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
10130 $as_echo_n "checking for working fcntl.h... " >&6; }
10131 if ${gl_cv_header_working_fcntl_h+:} false; then :
10132 $as_echo_n "(cached) " >&6
10134 if test "$cross_compiling" = yes; then :
10135 gl_cv_header_working_fcntl_h=cross-compiling
10137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10138 /* end confdefs.h. */
10139 #include <sys/types.h>
10140 #include <sys/stat.h>
10142 # include <unistd.h>
10143 #else /* on Windows with MSVC */
10145 # include <stdlib.h>
10146 # defined sleep(n) _sleep ((n) * 1000)
10150 #define O_NOATIME 0
10153 #define O_NOFOLLOW 0
10155 static int const constants[] =
10157 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
10158 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
10165 int result = !constants;
10168 static char const sym[] = "conftest.sym";
10169 if (symlink ("/dev/null", sym) != 0)
10173 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
10180 if (unlink (sym) != 0 || symlink (".", sym) != 0)
10184 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
10195 static char const file[] = "confdefs.h";
10196 int fd = open (file, O_RDONLY | O_NOATIME);
10202 if (fstat (fd, &st0) != 0)
10208 if (read (fd, &c, 1) != 1)
10212 if (close (fd) != 0)
10217 if (stat (file, &st1) != 0)
10220 if (st0.st_atime != st1.st_atime)
10232 if ac_fn_c_try_run "$LINENO"; then :
10233 gl_cv_header_working_fcntl_h=yes
10236 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
10237 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
10238 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
10239 *) gl_cv_header_working_fcntl_h='no';;
10242 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10243 conftest.$ac_objext conftest.beam conftest.$ac_ext
10247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
10248 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
10250 case $gl_cv_header_working_fcntl_h in #(
10251 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
10255 cat >>confdefs.h <<_ACEOF
10256 #define HAVE_WORKING_O_NOATIME $ac_val
10260 case $gl_cv_header_working_fcntl_h in #(
10261 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
10265 cat >>confdefs.h <<_ACEOF
10266 #define HAVE_WORKING_O_NOFOLLOW $ac_val
10271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10272 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10273 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
10274 $as_echo_n "(cached) " >&6
10276 gt_save_LIBS="$LIBS"
10277 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10279 /* end confdefs.h. */
10280 #include <CoreFoundation/CFPreferences.h>
10284 CFPreferencesCopyAppValue(NULL, NULL)
10289 if ac_fn_c_try_link "$LINENO"; then :
10290 gt_cv_func_CFPreferencesCopyAppValue=yes
10292 gt_cv_func_CFPreferencesCopyAppValue=no
10294 rm -f core conftest.err conftest.$ac_objext \
10295 conftest$ac_exeext conftest.$ac_ext
10296 LIBS="$gt_save_LIBS"
10298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10299 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10300 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10302 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10306 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10307 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10308 $as_echo_n "(cached) " >&6
10310 gt_save_LIBS="$LIBS"
10311 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10313 /* end confdefs.h. */
10314 #include <CoreFoundation/CFLocale.h>
10318 CFLocaleCopyCurrent();
10323 if ac_fn_c_try_link "$LINENO"; then :
10324 gt_cv_func_CFLocaleCopyCurrent=yes
10326 gt_cv_func_CFLocaleCopyCurrent=no
10328 rm -f core conftest.err conftest.$ac_objext \
10329 conftest$ac_exeext conftest.$ac_ext
10330 LIBS="$gt_save_LIBS"
10332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10333 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10334 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10336 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10340 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10341 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10353 case "$enable_silent_rules" in
10354 yes) INTL_DEFAULT_VERBOSITY=0;;
10355 no) INTL_DEFAULT_VERBOSITY=1;;
10356 *) INTL_DEFAULT_VERBOSITY=1;;
10360 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
10361 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
10365 $as_echo "#define ptrdiff_t long" >>confdefs.h
10370 for ac_header in features.h stddef.h stdlib.h string.h
10372 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10373 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10374 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10375 cat >>confdefs.h <<_ACEOF
10376 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10383 for ac_func in asprintf fwprintf newlocale putenv setenv setlocale \
10384 snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
10386 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10387 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10388 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10389 cat >>confdefs.h <<_ACEOF
10390 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10397 ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
10399 if test "x$ac_cv_have_decl__snprintf" = xyes; then :
10405 cat >>confdefs.h <<_ACEOF
10406 #define HAVE_DECL__SNPRINTF $ac_have_decl
10408 ac_fn_c_check_decl "$LINENO" "_snwprintf" "ac_cv_have_decl__snwprintf" "#include <stdio.h>
10410 if test "x$ac_cv_have_decl__snwprintf" = xyes; then :
10416 cat >>confdefs.h <<_ACEOF
10417 #define HAVE_DECL__SNWPRINTF $ac_have_decl
10421 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "#include <stdio.h>
10423 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
10429 cat >>confdefs.h <<_ACEOF
10430 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
10434 case $gt_cv_func_printf_posix in
10435 *yes) HAVE_POSIX_PRINTF=1 ;;
10436 *) HAVE_POSIX_PRINTF=0 ;;
10439 if test "$ac_cv_func_asprintf" = yes; then
10445 if test "$ac_cv_func_snprintf" = yes; then
10451 if test "$ac_cv_func_newlocale" = yes; then
10457 if test "$ac_cv_func_wprintf" = yes; then
10465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10466 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10467 if ${am_cv_langinfo_codeset+:} false; then :
10468 $as_echo_n "(cached) " >&6
10470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10471 /* end confdefs.h. */
10472 #include <langinfo.h>
10476 char* cs = nl_langinfo(CODESET); return !cs;
10481 if ac_fn_c_try_link "$LINENO"; then :
10482 am_cv_langinfo_codeset=yes
10484 am_cv_langinfo_codeset=no
10486 rm -f core conftest.err conftest.$ac_objext \
10487 conftest$ac_exeext conftest.$ac_ext
10490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10491 $as_echo "$am_cv_langinfo_codeset" >&6; }
10492 if test $am_cv_langinfo_codeset = yes; then
10494 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10500 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10501 if ${gt_cv_val_LC_MESSAGES+:} false; then :
10502 $as_echo_n "(cached) " >&6
10504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10505 /* end confdefs.h. */
10506 #include <locale.h>
10515 if ac_fn_c_try_link "$LINENO"; then :
10516 gt_cv_val_LC_MESSAGES=yes
10518 gt_cv_val_LC_MESSAGES=no
10520 rm -f core conftest.err conftest.$ac_objext \
10521 conftest$ac_exeext conftest.$ac_ext
10523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
10524 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
10525 if test $gt_cv_val_LC_MESSAGES = yes; then
10527 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10532 if test "$enable_shared" = yes; then
10534 mingw* | cygwin*) is_woe32dll=yes ;;
10535 *) is_woe32dll=no ;;
10540 WOE32DLL=$is_woe32dll
10544 mingw* | cygwin*) is_woe32=yes ;;
10549 if test $WOE32 = yes; then
10550 if test -n "$ac_tool_prefix"; then
10551 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
10552 set dummy ${ac_tool_prefix}windres; ac_word=$2
10553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10554 $as_echo_n "checking for $ac_word... " >&6; }
10555 if ${ac_cv_prog_WINDRES+:} false; then :
10556 $as_echo_n "(cached) " >&6
10558 if test -n "$WINDRES"; then
10559 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
10561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10562 for as_dir in $PATH
10565 test -z "$as_dir" && as_dir=.
10566 for ac_exec_ext in '' $ac_executable_extensions; do
10567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10568 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
10569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10578 WINDRES=$ac_cv_prog_WINDRES
10579 if test -n "$WINDRES"; then
10580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
10581 $as_echo "$WINDRES" >&6; }
10583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10584 $as_echo "no" >&6; }
10589 if test -z "$ac_cv_prog_WINDRES"; then
10590 ac_ct_WINDRES=$WINDRES
10591 # Extract the first word of "windres", so it can be a program name with args.
10592 set dummy windres; ac_word=$2
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10594 $as_echo_n "checking for $ac_word... " >&6; }
10595 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
10596 $as_echo_n "(cached) " >&6
10598 if test -n "$ac_ct_WINDRES"; then
10599 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
10601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10602 for as_dir in $PATH
10605 test -z "$as_dir" && as_dir=.
10606 for ac_exec_ext in '' $ac_executable_extensions; do
10607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10608 ac_cv_prog_ac_ct_WINDRES="windres"
10609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10618 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
10619 if test -n "$ac_ct_WINDRES"; then
10620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
10621 $as_echo "$ac_ct_WINDRES" >&6; }
10623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10624 $as_echo "no" >&6; }
10627 if test "x$ac_ct_WINDRES" = x; then
10630 case $cross_compiling:$ac_tool_warned in
10632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10633 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10634 ac_tool_warned=yes ;;
10636 WINDRES=$ac_ct_WINDRES
10639 WINDRES="$ac_cv_prog_WINDRES"
10645 hpux*) LTLIBC="" ;;
10675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10676 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10677 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
10678 $as_echo_n "(cached) " >&6
10680 gt_save_LIBS="$LIBS"
10681 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10683 /* end confdefs.h. */
10684 #include <CoreFoundation/CFPreferences.h>
10688 CFPreferencesCopyAppValue(NULL, NULL)
10693 if ac_fn_c_try_link "$LINENO"; then :
10694 gt_cv_func_CFPreferencesCopyAppValue=yes
10696 gt_cv_func_CFPreferencesCopyAppValue=no
10698 rm -f core conftest.err conftest.$ac_objext \
10699 conftest$ac_exeext conftest.$ac_ext
10700 LIBS="$gt_save_LIBS"
10702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10703 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10704 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10706 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10710 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10711 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10712 $as_echo_n "(cached) " >&6
10714 gt_save_LIBS="$LIBS"
10715 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10717 /* end confdefs.h. */
10718 #include <CoreFoundation/CFLocale.h>
10722 CFLocaleCopyCurrent();
10727 if ac_fn_c_try_link "$LINENO"; then :
10728 gt_cv_func_CFLocaleCopyCurrent=yes
10730 gt_cv_func_CFLocaleCopyCurrent=no
10732 rm -f core conftest.err conftest.$ac_objext \
10733 conftest$ac_exeext conftest.$ac_ext
10734 LIBS="$gt_save_LIBS"
10736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10737 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10738 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10740 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10744 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10745 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10753 BUILD_INCLUDED_LIBINTL=no
10754 USE_INCLUDED_LIBINTL=no
10760 case " $gt_needs " in
10761 *" need-formatstring-macros "*) gt_api_version=3 ;;
10762 *" need-ngettext "*) gt_api_version=2 ;;
10763 *) gt_api_version=1 ;;
10765 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
10766 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
10768 if test "$USE_NLS" = "yes"; then
10769 gt_use_preinstalled_gnugettext=no
10771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
10772 $as_echo_n "checking whether included gettext is requested... " >&6; }
10774 # Check whether --with-included-gettext was given.
10775 if test "${with_included_gettext+set}" = set; then :
10776 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
10778 nls_cv_force_use_gnu_gettext=no
10781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
10782 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
10784 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10785 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
10788 if test $gt_api_version -ge 3; then
10789 gt_revision_test_code='
10790 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
10791 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
10793 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
10796 gt_revision_test_code=
10798 if test $gt_api_version -ge 2; then
10799 gt_expression_test_code=' + * ngettext ("", "", 0)'
10801 gt_expression_test_code=
10804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
10805 $as_echo_n "checking for GNU gettext in libc... " >&6; }
10806 if eval \${$gt_func_gnugettext_libc+:} false; then :
10807 $as_echo_n "(cached) " >&6
10809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10810 /* end confdefs.h. */
10812 #include <libintl.h>
10813 $gt_revision_test_code
10814 extern int _nl_msg_cat_cntr;
10815 extern int *_nl_domain_bindings;
10821 bindtextdomain ("", "");
10822 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
10828 if ac_fn_c_try_link "$LINENO"; then :
10829 eval "$gt_func_gnugettext_libc=yes"
10831 eval "$gt_func_gnugettext_libc=no"
10833 rm -f core conftest.err conftest.$ac_objext \
10834 conftest$ac_exeext conftest.$ac_ext
10836 eval ac_res=\$$gt_func_gnugettext_libc
10837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10838 $as_echo "$ac_res" >&6; }
10840 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
10851 acl_save_prefix="$prefix"
10852 prefix="$acl_final_prefix"
10853 acl_save_exec_prefix="$exec_prefix"
10854 exec_prefix="$acl_final_exec_prefix"
10856 eval additional_includedir=\"$includedir\"
10857 eval additional_libdir=\"$libdir\"
10859 exec_prefix="$acl_save_exec_prefix"
10860 prefix="$acl_save_prefix"
10863 # Check whether --with-libintl-prefix was given.
10864 if test "${with_libintl_prefix+set}" = set; then :
10865 withval=$with_libintl_prefix;
10866 if test "X$withval" = "Xno"; then
10869 if test "X$withval" = "X"; then
10871 acl_save_prefix="$prefix"
10872 prefix="$acl_final_prefix"
10873 acl_save_exec_prefix="$exec_prefix"
10874 exec_prefix="$acl_final_exec_prefix"
10876 eval additional_includedir=\"$includedir\"
10877 eval additional_libdir=\"$libdir\"
10879 exec_prefix="$acl_save_exec_prefix"
10880 prefix="$acl_save_prefix"
10883 additional_includedir="$withval/include"
10884 additional_libdir="$withval/$acl_libdirstem"
10885 if test "$acl_libdirstem2" != "$acl_libdirstem" \
10886 && ! test -d "$withval/$acl_libdirstem"; then
10887 additional_libdir="$withval/$acl_libdirstem2"
10901 names_already_handled=
10902 names_next_round='intl '
10903 while test -n "$names_next_round"; do
10904 names_this_round="$names_next_round"
10906 for name in $names_this_round; do
10908 for n in $names_already_handled; do
10909 if test "$n" = "$name"; then
10910 already_handled=yes
10914 if test -z "$already_handled"; then
10915 names_already_handled="$names_already_handled $name"
10916 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
10917 eval value=\"\$HAVE_LIB$uppername\"
10918 if test -n "$value"; then
10919 if test "$value" = yes; then
10920 eval value=\"\$LIB$uppername\"
10921 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10922 eval value=\"\$LTLIB$uppername\"
10923 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10932 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
10933 if test -n "$acl_shlibext"; then
10934 shrext=".$acl_shlibext" # typically: shrext=.so
10938 if test $use_additional = yes; then
10939 dir="$additional_libdir"
10940 if test -n "$acl_shlibext"; then
10941 if test -f "$dir/$libname$shrext"; then
10943 found_so="$dir/$libname$shrext"
10945 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10946 ver=`(cd "$dir" && \
10947 for f in "$libname$shrext".*; do echo "$f"; done \
10948 | sed -e "s,^$libname$shrext\\\\.,," \
10949 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10950 | sed 1q ) 2>/dev/null`
10951 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10953 found_so="$dir/$libname$shrext.$ver"
10956 eval library_names=\"$acl_library_names_spec\"
10957 for f in $library_names; do
10958 if test -f "$dir/$f"; then
10967 if test "X$found_dir" = "X"; then
10968 if test -f "$dir/$libname.$acl_libext"; then
10970 found_a="$dir/$libname.$acl_libext"
10973 if test "X$found_dir" != "X"; then
10974 if test -f "$dir/$libname.la"; then
10975 found_la="$dir/$libname.la"
10979 if test "X$found_dir" = "X"; then
10980 for x in $LDFLAGS $LTLIBINTL; do
10982 acl_save_prefix="$prefix"
10983 prefix="$acl_final_prefix"
10984 acl_save_exec_prefix="$exec_prefix"
10985 exec_prefix="$acl_final_exec_prefix"
10987 exec_prefix="$acl_save_exec_prefix"
10988 prefix="$acl_save_prefix"
10992 dir=`echo "X$x" | sed -e 's/^X-L//'`
10993 if test -n "$acl_shlibext"; then
10994 if test -f "$dir/$libname$shrext"; then
10996 found_so="$dir/$libname$shrext"
10998 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10999 ver=`(cd "$dir" && \
11000 for f in "$libname$shrext".*; do echo "$f"; done \
11001 | sed -e "s,^$libname$shrext\\\\.,," \
11002 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
11003 | sed 1q ) 2>/dev/null`
11004 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
11006 found_so="$dir/$libname$shrext.$ver"
11009 eval library_names=\"$acl_library_names_spec\"
11010 for f in $library_names; do
11011 if test -f "$dir/$f"; then
11020 if test "X$found_dir" = "X"; then
11021 if test -f "$dir/$libname.$acl_libext"; then
11023 found_a="$dir/$libname.$acl_libext"
11026 if test "X$found_dir" != "X"; then
11027 if test -f "$dir/$libname.la"; then
11028 found_la="$dir/$libname.la"
11033 if test "X$found_dir" != "X"; then
11038 if test "X$found_dir" != "X"; then
11039 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
11040 if test "X$found_so" != "X"; then
11041 if test "$enable_rpath" = no \
11042 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
11043 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
11044 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11047 for x in $ltrpathdirs; do
11048 if test "X$x" = "X$found_dir"; then
11053 if test -z "$haveit"; then
11054 ltrpathdirs="$ltrpathdirs $found_dir"
11056 if test "$acl_hardcode_direct" = yes; then
11057 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11059 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
11060 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11062 for x in $rpathdirs; do
11063 if test "X$x" = "X$found_dir"; then
11068 if test -z "$haveit"; then
11069 rpathdirs="$rpathdirs $found_dir"
11073 for x in $LDFLAGS $LIBINTL; do
11075 acl_save_prefix="$prefix"
11076 prefix="$acl_final_prefix"
11077 acl_save_exec_prefix="$exec_prefix"
11078 exec_prefix="$acl_final_exec_prefix"
11080 exec_prefix="$acl_save_exec_prefix"
11081 prefix="$acl_save_prefix"
11083 if test "X$x" = "X-L$found_dir"; then
11088 if test -z "$haveit"; then
11089 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
11091 if test "$acl_hardcode_minus_L" != no; then
11092 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11094 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11100 if test "X$found_a" != "X"; then
11101 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
11103 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
11106 additional_includedir=
11107 case "$found_dir" in
11108 */$acl_libdirstem | */$acl_libdirstem/)
11109 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
11110 if test "$name" = 'intl'; then
11111 LIBINTL_PREFIX="$basedir"
11113 additional_includedir="$basedir/include"
11115 */$acl_libdirstem2 | */$acl_libdirstem2/)
11116 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
11117 if test "$name" = 'intl'; then
11118 LIBINTL_PREFIX="$basedir"
11120 additional_includedir="$basedir/include"
11123 if test "X$additional_includedir" != "X"; then
11124 if test "X$additional_includedir" != "X/usr/include"; then
11126 if test "X$additional_includedir" = "X/usr/local/include"; then
11127 if test -n "$GCC"; then
11129 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11133 if test -z "$haveit"; then
11134 for x in $CPPFLAGS $INCINTL; do
11136 acl_save_prefix="$prefix"
11137 prefix="$acl_final_prefix"
11138 acl_save_exec_prefix="$exec_prefix"
11139 exec_prefix="$acl_final_exec_prefix"
11141 exec_prefix="$acl_save_exec_prefix"
11142 prefix="$acl_save_prefix"
11144 if test "X$x" = "X-I$additional_includedir"; then
11149 if test -z "$haveit"; then
11150 if test -d "$additional_includedir"; then
11151 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
11157 if test -n "$found_la"; then
11158 save_libdir="$libdir"
11159 case "$found_la" in
11160 */* | *\\*) . "$found_la" ;;
11161 *) . "./$found_la" ;;
11163 libdir="$save_libdir"
11164 for dep in $dependency_libs; do
11167 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11168 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
11169 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
11171 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
11172 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
11173 if test -n "$GCC"; then
11175 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11179 if test -z "$haveit"; then
11181 for x in $LDFLAGS $LIBINTL; do
11183 acl_save_prefix="$prefix"
11184 prefix="$acl_final_prefix"
11185 acl_save_exec_prefix="$exec_prefix"
11186 exec_prefix="$acl_final_exec_prefix"
11188 exec_prefix="$acl_save_exec_prefix"
11189 prefix="$acl_save_prefix"
11191 if test "X$x" = "X-L$additional_libdir"; then
11196 if test -z "$haveit"; then
11197 if test -d "$additional_libdir"; then
11198 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
11202 for x in $LDFLAGS $LTLIBINTL; do
11204 acl_save_prefix="$prefix"
11205 prefix="$acl_final_prefix"
11206 acl_save_exec_prefix="$exec_prefix"
11207 exec_prefix="$acl_final_exec_prefix"
11209 exec_prefix="$acl_save_exec_prefix"
11210 prefix="$acl_save_prefix"
11212 if test "X$x" = "X-L$additional_libdir"; then
11217 if test -z "$haveit"; then
11218 if test -d "$additional_libdir"; then
11219 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
11226 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11227 if test "$enable_rpath" != no; then
11229 for x in $rpathdirs; do
11230 if test "X$x" = "X$dir"; then
11235 if test -z "$haveit"; then
11236 rpathdirs="$rpathdirs $dir"
11239 for x in $ltrpathdirs; do
11240 if test "X$x" = "X$dir"; then
11245 if test -z "$haveit"; then
11246 ltrpathdirs="$ltrpathdirs $dir"
11251 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11254 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11257 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
11258 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
11264 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11265 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
11271 if test "X$rpathdirs" != "X"; then
11272 if test -n "$acl_hardcode_libdir_separator"; then
11274 for found_dir in $rpathdirs; do
11275 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
11277 acl_save_libdir="$libdir"
11279 eval flag=\"$acl_hardcode_libdir_flag_spec\"
11280 libdir="$acl_save_libdir"
11281 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11283 for found_dir in $rpathdirs; do
11284 acl_save_libdir="$libdir"
11285 libdir="$found_dir"
11286 eval flag=\"$acl_hardcode_libdir_flag_spec\"
11287 libdir="$acl_save_libdir"
11288 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11292 if test "X$ltrpathdirs" != "X"; then
11293 for found_dir in $ltrpathdirs; do
11294 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
11303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
11304 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
11305 if eval \${$gt_func_gnugettext_libintl+:} false; then :
11306 $as_echo_n "(cached) " >&6
11308 gt_save_CPPFLAGS="$CPPFLAGS"
11309 CPPFLAGS="$CPPFLAGS $INCINTL"
11310 gt_save_LIBS="$LIBS"
11311 LIBS="$LIBS $LIBINTL"
11312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11313 /* end confdefs.h. */
11315 #include <libintl.h>
11316 $gt_revision_test_code
11317 extern int _nl_msg_cat_cntr;
11322 const char *_nl_expand_alias (const char *);
11328 bindtextdomain ("", "");
11329 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11335 if ac_fn_c_try_link "$LINENO"; then :
11336 eval "$gt_func_gnugettext_libintl=yes"
11338 eval "$gt_func_gnugettext_libintl=no"
11340 rm -f core conftest.err conftest.$ac_objext \
11341 conftest$ac_exeext conftest.$ac_ext
11342 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
11343 LIBS="$LIBS $LIBICONV"
11344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11345 /* end confdefs.h. */
11347 #include <libintl.h>
11348 $gt_revision_test_code
11349 extern int _nl_msg_cat_cntr;
11354 const char *_nl_expand_alias (const char *);
11360 bindtextdomain ("", "");
11361 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11367 if ac_fn_c_try_link "$LINENO"; then :
11368 LIBINTL="$LIBINTL $LIBICONV"
11369 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
11370 eval "$gt_func_gnugettext_libintl=yes"
11373 rm -f core conftest.err conftest.$ac_objext \
11374 conftest$ac_exeext conftest.$ac_ext
11376 CPPFLAGS="$gt_save_CPPFLAGS"
11377 LIBS="$gt_save_LIBS"
11379 eval ac_res=\$$gt_func_gnugettext_libintl
11380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11381 $as_echo "$ac_res" >&6; }
11384 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
11385 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
11386 && test "$PACKAGE" != gettext-runtime \
11387 && test "$PACKAGE" != gettext-tools; }; then
11388 gt_use_preinstalled_gnugettext=yes
11396 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
11397 nls_cv_use_gnu_gettext=yes
11401 if test "$nls_cv_use_gnu_gettext" = "yes"; then
11402 BUILD_INCLUDED_LIBINTL=yes
11403 USE_INCLUDED_LIBINTL=yes
11404 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
11405 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
11406 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
11410 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11411 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11416 if test -n "$INTL_MACOSX_LIBS"; then
11417 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11418 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11419 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
11420 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
11424 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11425 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11427 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
11435 $as_echo_n "checking whether to use NLS... " >&6; }
11436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
11437 $as_echo "$USE_NLS" >&6; }
11438 if test "$USE_NLS" = "yes"; then
11439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
11440 $as_echo_n "checking where the gettext function comes from... " >&6; }
11441 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11442 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
11443 gt_source="external libintl"
11448 gt_source="included intl directory"
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
11451 $as_echo "$gt_source" >&6; }
11454 if test "$USE_NLS" = "yes"; then
11456 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11457 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
11459 $as_echo_n "checking how to link with libintl... " >&6; }
11460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
11461 $as_echo "$LIBINTL" >&6; }
11463 for element in $INCINTL; do
11465 for x in $CPPFLAGS; do
11467 acl_save_prefix="$prefix"
11468 prefix="$acl_final_prefix"
11469 acl_save_exec_prefix="$exec_prefix"
11470 exec_prefix="$acl_final_exec_prefix"
11472 exec_prefix="$acl_save_exec_prefix"
11473 prefix="$acl_save_prefix"
11475 if test "X$x" = "X$element"; then
11480 if test -z "$haveit"; then
11481 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11488 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
11491 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
11499 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
11500 BUILD_INCLUDED_LIBINTL=yes
11507 nls_cv_header_intl=
11508 nls_cv_header_libgt=
11520 if test "$USE_INCLUDED_LIBINTL" = yes; then
11521 INTLOBJS="\$(GETTOBJS)"
11525 INTL_LIBTOOL_SUFFIX_PREFIX=
11529 INTLLIBS="$LIBINTL"
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11538 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11540 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11541 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
11542 $as_echo_n "(cached) " >&6
11544 cat >conftest.make <<\_ACEOF
11547 @echo '@@@%%%=$(MAKE)=@@@%%%'
11549 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
11550 case `${MAKE-make} -f conftest.make 2>/dev/null` in
11551 *@@@%%%=?*=@@@%%%*)
11552 eval ac_cv_prog_make_${ac_make}_set=yes;;
11554 eval ac_cv_prog_make_${ac_make}_set=no;;
11556 rm -f conftest.make
11558 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11560 $as_echo "yes" >&6; }
11563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11564 $as_echo "no" >&6; }
11565 SET_MAKE="MAKE=${MAKE-make}"
11568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
11569 $as_echo_n "checking for GNU make... " >&6; }
11570 if ${_cv_gnu_make_command+:} false; then :
11571 $as_echo_n "(cached) " >&6
11573 _cv_gnu_make_command='' ;
11574 if test -n "$FORCE_NATIVE_MAKE" ; then
11577 MAKES="make gmake gnumake"
11579 for a in "$MAKE" $MAKES ; do
11580 if test -z "$a" ; then continue ; fi ;
11581 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
11582 _cv_gnu_make_command=$a ;
11588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
11589 $as_echo "$_cv_gnu_make_command" >&6; } ;
11590 if test "x$_cv_gnu_make_command" != "x" ; then
11596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
11597 $as_echo "\"Not found\"" >&6; };
11602 # Extract the first word of "ln", so it can be a program name with args.
11603 set dummy ln; ac_word=$2
11604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11605 $as_echo_n "checking for $ac_word... " >&6; }
11606 if ${ac_cv_path_LN+:} false; then :
11607 $as_echo_n "(cached) " >&6
11611 ac_cv_path_LN="$LN" # Let the user override the test with a path.
11614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11615 for as_dir in $PATH
11618 test -z "$as_dir" && as_dir=.
11619 for ac_exec_ext in '' $ac_executable_extensions; do
11620 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11621 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
11622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11629 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
11634 if test -n "$LN"; then
11635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
11636 $as_echo "$LN" >&6; }
11638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11639 $as_echo "no" >&6; }
11643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11644 $as_echo_n "checking whether ln -s works... " >&6; }
11646 if test "$LN_S" = "ln -s"; then
11647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11648 $as_echo "yes" >&6; }
11650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11651 $as_echo "no, using $LN_S" >&6; }
11654 # Extract the first word of "mv", so it can be a program name with args.
11655 set dummy mv; ac_word=$2
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11657 $as_echo_n "checking for $ac_word... " >&6; }
11658 if ${ac_cv_path_MV+:} false; then :
11659 $as_echo_n "(cached) " >&6
11663 ac_cv_path_MV="$MV" # Let the user override the test with a path.
11666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11667 for as_dir in $PATH
11670 test -z "$as_dir" && as_dir=.
11671 for ac_exec_ext in '' $ac_executable_extensions; do
11672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11673 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
11674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11681 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
11686 if test -n "$MV"; then
11687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
11688 $as_echo "$MV" >&6; }
11690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11691 $as_echo "no" >&6; }
11695 # Extract the first word of "cp", so it can be a program name with args.
11696 set dummy cp; ac_word=$2
11697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11698 $as_echo_n "checking for $ac_word... " >&6; }
11699 if ${ac_cv_path_CP+:} false; then :
11700 $as_echo_n "(cached) " >&6
11704 ac_cv_path_CP="$CP" # Let the user override the test with a path.
11707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11708 for as_dir in $PATH
11711 test -z "$as_dir" && as_dir=.
11712 for ac_exec_ext in '' $ac_executable_extensions; do
11713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11714 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
11715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11722 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
11727 if test -n "$CP"; then
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
11729 $as_echo "$CP" >&6; }
11731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11732 $as_echo "no" >&6; }
11736 # Extract the first word of "rm", so it can be a program name with args.
11737 set dummy rm; ac_word=$2
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11739 $as_echo_n "checking for $ac_word... " >&6; }
11740 if ${ac_cv_path_RM+:} false; then :
11741 $as_echo_n "(cached) " >&6
11745 ac_cv_path_RM="$RM" # Let the user override the test with a path.
11748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11749 for as_dir in $PATH
11752 test -z "$as_dir" && as_dir=.
11753 for ac_exec_ext in '' $ac_executable_extensions; do
11754 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11755 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
11756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11763 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11768 if test -n "$RM"; then
11769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
11770 $as_echo "$RM" >&6; }
11772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11773 $as_echo "no" >&6; }
11777 # Extract the first word of "chmod", so it can be a program name with args.
11778 set dummy chmod; ac_word=$2
11779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11780 $as_echo_n "checking for $ac_word... " >&6; }
11781 if ${ac_cv_path_CHMOD+:} false; then :
11782 $as_echo_n "(cached) " >&6
11786 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11790 for as_dir in $PATH
11793 test -z "$as_dir" && as_dir=.
11794 for ac_exec_ext in '' $ac_executable_extensions; do
11795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11796 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
11797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11804 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11808 CHMOD=$ac_cv_path_CHMOD
11809 if test -n "$CHMOD"; then
11810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
11811 $as_echo "$CHMOD" >&6; }
11813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11814 $as_echo "no" >&6; }
11818 for ac_prog in gawk mawk nawk awk
11820 # Extract the first word of "$ac_prog", so it can be a program name with args.
11821 set dummy $ac_prog; ac_word=$2
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11823 $as_echo_n "checking for $ac_word... " >&6; }
11824 if ${ac_cv_prog_AWK+:} false; then :
11825 $as_echo_n "(cached) " >&6
11827 if test -n "$AWK"; then
11828 ac_cv_prog_AWK="$AWK" # Let the user override the test.
11830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11831 for as_dir in $PATH
11834 test -z "$as_dir" && as_dir=.
11835 for ac_exec_ext in '' $ac_executable_extensions; do
11836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11837 ac_cv_prog_AWK="$ac_prog"
11838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11847 AWK=$ac_cv_prog_AWK
11848 if test -n "$AWK"; then
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11850 $as_echo "$AWK" >&6; }
11852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11853 $as_echo "no" >&6; }
11857 test -n "$AWK" && break
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11861 $as_echo_n "checking for egrep... " >&6; }
11862 if ${ac_cv_path_EGREP+:} false; then :
11863 $as_echo_n "(cached) " >&6
11865 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11866 then ac_cv_path_EGREP="$GREP -E"
11868 if test -z "$EGREP"; then
11869 ac_path_EGREP_found=false
11870 # Loop through the user's path and test for each of PROGNAME-LIST
11871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11872 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11875 test -z "$as_dir" && as_dir=.
11876 for ac_prog in egrep; do
11877 for ac_exec_ext in '' $ac_executable_extensions; do
11878 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11879 as_fn_executable_p "$ac_path_EGREP" || continue
11880 # Check for GNU ac_path_EGREP and select it if it is found.
11881 # Check for GNU $ac_path_EGREP
11882 case `"$ac_path_EGREP" --version 2>&1` in
11884 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11887 $as_echo_n 0123456789 >"conftest.in"
11890 cat "conftest.in" "conftest.in" >"conftest.tmp"
11891 mv "conftest.tmp" "conftest.in"
11892 cp "conftest.in" "conftest.nl"
11893 $as_echo 'EGREP' >> "conftest.nl"
11894 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11895 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11896 as_fn_arith $ac_count + 1 && ac_count=$as_val
11897 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11898 # Best one so far, save it but keep looking for a better one
11899 ac_cv_path_EGREP="$ac_path_EGREP"
11900 ac_path_EGREP_max=$ac_count
11902 # 10*(2^10) chars as input seems more than enough
11903 test $ac_count -gt 10 && break
11905 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11908 $ac_path_EGREP_found && break 3
11913 if test -z "$ac_cv_path_EGREP"; then
11914 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11917 ac_cv_path_EGREP=$EGREP
11922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11923 $as_echo "$ac_cv_path_EGREP" >&6; }
11924 EGREP="$ac_cv_path_EGREP"
11927 # Extract the first word of "sed", so it can be a program name with args.
11928 set dummy sed; ac_word=$2
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11930 $as_echo_n "checking for $ac_word... " >&6; }
11931 if ${ac_cv_path_SED+:} false; then :
11932 $as_echo_n "(cached) " >&6
11936 ac_cv_path_SED="$SED" # Let the user override the test with a path.
11939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11940 for as_dir in $PATH
11943 test -z "$as_dir" && as_dir=.
11944 for ac_exec_ext in '' $ac_executable_extensions; do
11945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11946 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
11947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11954 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11958 SED=$ac_cv_path_SED
11959 if test -n "$SED"; then
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
11961 $as_echo "$SED" >&6; }
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11964 $as_echo "no" >&6; }
11968 # Extract the first word of "perl", so it can be a program name with args.
11969 set dummy perl; ac_word=$2
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11971 $as_echo_n "checking for $ac_word... " >&6; }
11972 if ${ac_cv_path_PERL+:} false; then :
11973 $as_echo_n "(cached) " >&6
11977 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11981 for as_dir in $PATH
11984 test -z "$as_dir" && as_dir=.
11985 for ac_exec_ext in '' $ac_executable_extensions; do
11986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11987 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
11988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11995 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
11999 PERL=$ac_cv_path_PERL
12000 if test -n "$PERL"; then
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
12002 $as_echo "$PERL" >&6; }
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12005 $as_echo "no" >&6; }
12009 # Extract the first word of "ldconfig", so it can be a program name with args.
12010 set dummy ldconfig; ac_word=$2
12011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12012 $as_echo_n "checking for $ac_word... " >&6; }
12013 if ${ac_cv_path_LDCONFIG+:} false; then :
12014 $as_echo_n "(cached) " >&6
12018 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
12021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12022 for as_dir in $PATH
12025 test -z "$as_dir" && as_dir=.
12026 for ac_exec_ext in '' $ac_executable_extensions; do
12027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12028 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
12029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12036 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
12040 LDCONFIG=$ac_cv_path_LDCONFIG
12041 if test -n "$LDCONFIG"; then
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
12043 $as_echo "$LDCONFIG" >&6; }
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12046 $as_echo "no" >&6; }
12050 if test -n "$ac_tool_prefix"; then
12051 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12052 set dummy ${ac_tool_prefix}ar; ac_word=$2
12053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12054 $as_echo_n "checking for $ac_word... " >&6; }
12055 if ${ac_cv_prog_AR+:} false; then :
12056 $as_echo_n "(cached) " >&6
12058 if test -n "$AR"; then
12059 ac_cv_prog_AR="$AR" # Let the user override the test.
12061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12062 for as_dir in $PATH
12065 test -z "$as_dir" && as_dir=.
12066 for ac_exec_ext in '' $ac_executable_extensions; do
12067 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12068 ac_cv_prog_AR="${ac_tool_prefix}ar"
12069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12079 if test -n "$AR"; then
12080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12081 $as_echo "$AR" >&6; }
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12084 $as_echo "no" >&6; }
12089 if test -z "$ac_cv_prog_AR"; then
12091 # Extract the first word of "ar", so it can be a program name with args.
12092 set dummy ar; ac_word=$2
12093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12094 $as_echo_n "checking for $ac_word... " >&6; }
12095 if ${ac_cv_prog_ac_ct_AR+:} false; then :
12096 $as_echo_n "(cached) " >&6
12098 if test -n "$ac_ct_AR"; then
12099 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12102 for as_dir in $PATH
12105 test -z "$as_dir" && as_dir=.
12106 for ac_exec_ext in '' $ac_executable_extensions; do
12107 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12108 ac_cv_prog_ac_ct_AR="ar"
12109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12118 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12119 if test -n "$ac_ct_AR"; then
12120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12121 $as_echo "$ac_ct_AR" >&6; }
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12124 $as_echo "no" >&6; }
12127 if test "x$ac_ct_AR" = x; then
12130 case $cross_compiling:$ac_tool_warned in
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12133 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12134 ac_tool_warned=yes ;;
12139 AR="$ac_cv_prog_AR"
12142 if test -n "$ac_tool_prefix"; then
12143 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12144 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12146 $as_echo_n "checking for $ac_word... " >&6; }
12147 if ${ac_cv_prog_RANLIB+:} false; then :
12148 $as_echo_n "(cached) " >&6
12150 if test -n "$RANLIB"; then
12151 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12154 for as_dir in $PATH
12157 test -z "$as_dir" && as_dir=.
12158 for ac_exec_ext in '' $ac_executable_extensions; do
12159 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12160 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12170 RANLIB=$ac_cv_prog_RANLIB
12171 if test -n "$RANLIB"; then
12172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12173 $as_echo "$RANLIB" >&6; }
12175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12176 $as_echo "no" >&6; }
12181 if test -z "$ac_cv_prog_RANLIB"; then
12182 ac_ct_RANLIB=$RANLIB
12183 # Extract the first word of "ranlib", so it can be a program name with args.
12184 set dummy ranlib; ac_word=$2
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12186 $as_echo_n "checking for $ac_word... " >&6; }
12187 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12188 $as_echo_n "(cached) " >&6
12190 if test -n "$ac_ct_RANLIB"; then
12191 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12194 for as_dir in $PATH
12197 test -z "$as_dir" && as_dir=.
12198 for ac_exec_ext in '' $ac_executable_extensions; do
12199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12200 ac_cv_prog_ac_ct_RANLIB="ranlib"
12201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12210 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12211 if test -n "$ac_ct_RANLIB"; then
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12213 $as_echo "$ac_ct_RANLIB" >&6; }
12215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12216 $as_echo "no" >&6; }
12219 if test "x$ac_ct_RANLIB" = x; then
12222 case $cross_compiling:$ac_tool_warned in
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12225 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12226 ac_tool_warned=yes ;;
12228 RANLIB=$ac_ct_RANLIB
12231 RANLIB="$ac_cv_prog_RANLIB"
12234 if test -n "$ac_tool_prefix"; then
12235 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12236 set dummy ${ac_tool_prefix}strip; 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_STRIP+:} false; then :
12240 $as_echo_n "(cached) " >&6
12242 if test -n "$STRIP"; then
12243 ac_cv_prog_STRIP="$STRIP" # 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_STRIP="${ac_tool_prefix}strip"
12253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12262 STRIP=$ac_cv_prog_STRIP
12263 if test -n "$STRIP"; then
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12265 $as_echo "$STRIP" >&6; }
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12268 $as_echo "no" >&6; }
12273 if test -z "$ac_cv_prog_STRIP"; then
12275 # Extract the first word of "strip", so it can be a program name with args.
12276 set dummy strip; ac_word=$2
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12278 $as_echo_n "checking for $ac_word... " >&6; }
12279 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12280 $as_echo_n "(cached) " >&6
12282 if test -n "$ac_ct_STRIP"; then
12283 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12286 for as_dir in $PATH
12289 test -z "$as_dir" && as_dir=.
12290 for ac_exec_ext in '' $ac_executable_extensions; do
12291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12292 ac_cv_prog_ac_ct_STRIP="strip"
12293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12302 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12303 if test -n "$ac_ct_STRIP"; then
12304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12305 $as_echo "$ac_ct_STRIP" >&6; }
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12308 $as_echo "no" >&6; }
12311 if test "x$ac_ct_STRIP" = x; then
12314 case $cross_compiling:$ac_tool_warned in
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12317 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12318 ac_tool_warned=yes ;;
12323 STRIP="$ac_cv_prog_STRIP"
12326 # Extract the first word of "makeinfo", so it can be a program name with args.
12327 set dummy makeinfo; ac_word=$2
12328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12329 $as_echo_n "checking for $ac_word... " >&6; }
12330 if ${ac_cv_prog_MAKEINFO+:} false; then :
12331 $as_echo_n "(cached) " >&6
12333 if test -n "$MAKEINFO"; then
12334 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
12336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12337 for as_dir in $PATH
12340 test -z "$as_dir" && as_dir=.
12341 for ac_exec_ext in '' $ac_executable_extensions; do
12342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12343 ac_cv_prog_MAKEINFO="makeinfo"
12344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12353 MAKEINFO=$ac_cv_prog_MAKEINFO
12354 if test -n "$MAKEINFO"; then
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
12356 $as_echo "$MAKEINFO" >&6; }
12358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12359 $as_echo "no" >&6; }
12363 if test "_$MAKEINFO" = "_"; then
12364 MAKEINFO="echo Makeinfo is missing. Info documentation will not be built."
12366 case "$MAKEINFO" in
12368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
12369 *** Makeinfo is missing. Info documentation will not be built." >&5
12370 $as_echo "$as_me: WARNING:
12371 *** Makeinfo is missing. Info documentation will not be built." >&2;}
12379 # See if we need a separate native compiler.
12380 if test $cross_compiling = no; then
12384 for ac_prog in gcc cc
12386 # Extract the first word of "$ac_prog", so it can be a program name with args.
12387 set dummy $ac_prog; ac_word=$2
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12389 $as_echo_n "checking for $ac_word... " >&6; }
12390 if ${ac_cv_prog_BUILD_CC+:} false; then :
12391 $as_echo_n "(cached) " >&6
12393 if test -n "$BUILD_CC"; then
12394 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
12396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12397 for as_dir in $PATH
12400 test -z "$as_dir" && as_dir=.
12401 for ac_exec_ext in '' $ac_executable_extensions; do
12402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12403 ac_cv_prog_BUILD_CC="$ac_prog"
12404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12413 BUILD_CC=$ac_cv_prog_BUILD_CC
12414 if test -n "$BUILD_CC"; then
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
12416 $as_echo "$BUILD_CC" >&6; }
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12419 $as_echo "no" >&6; }
12423 test -n "$BUILD_CC" && break
12427 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/fsmap.h linux/major.h linux/loop.h linux/types.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 sys/xattr.h
12429 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12430 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12431 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12432 cat >>confdefs.h <<_ACEOF
12433 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a dd(1) program that supports iflag=fullblock" >&5
12441 $as_echo_n "checking for a dd(1) program that supports iflag=fullblock... " >&6; }
12443 for i in dd gdd ; do
12444 if "$i" if=/dev/null of=/dev/null count=1 bs=10k 2>/dev/null iflag=fullblock oflag=append ; then
12449 if test -n "$DD" ; then
12450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
12451 $as_echo "$DD" >&6; }
12453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found, using dd" >&5
12454 $as_echo "not found, using dd" >&6; }
12456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No GNU-compatible dd(1) program found, expect some self-test failures." >&5
12457 $as_echo "$as_me: WARNING: No GNU-compatible dd(1) program found, expect some self-test failures." >&2;}
12461 for ac_header in net/if.h
12463 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
12464 #if HAVE_SYS_TYPES_H
12465 #include <sys/types.h>
12467 #if HAVE_SYS_SOCKET
12468 #include <sys/socket.h>
12472 if test "x$ac_cv_header_net_if_h" = xyes; then :
12473 cat >>confdefs.h <<_ACEOF
12474 #define HAVE_NET_IF_H 1
12481 for ac_func in vprintf
12483 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
12484 if test "x$ac_cv_func_vprintf" = xyes; then :
12485 cat >>confdefs.h <<_ACEOF
12486 #define HAVE_VPRINTF 1
12489 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
12490 if test "x$ac_cv_func__doprnt" = xyes; then :
12492 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
12500 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
12502 if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
12504 $as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
12508 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
12509 if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
12511 cat >>confdefs.h <<_ACEOF
12512 #define HAVE_STRUCT_STAT_ST_ATIM 1
12518 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
12520 if test "x$ac_cv_type_ssize_t" = xyes; then :
12522 $as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
12526 ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
12528 if test "x$ac_cv_have_decl_llseek" = xyes; then :
12530 $as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
12534 ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
12535 #define _LARGEFILE64_SOURCE
12536 #include <unistd.h>
12538 if test "x$ac_cv_have_decl_lseek64" = xyes; then :
12540 $as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
12544 # The cast to long int works around a bug in the HP C Compiler
12545 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12546 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12547 # This bug is HP SR number 8606223364.
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
12549 $as_echo_n "checking size of short... " >&6; }
12550 if ${ac_cv_sizeof_short+:} false; then :
12551 $as_echo_n "(cached) " >&6
12553 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
12556 if test "$ac_cv_type_short" = yes; then
12557 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12558 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12559 as_fn_error 77 "cannot compute sizeof (short)
12560 See \`config.log' for more details" "$LINENO" 5; }
12562 ac_cv_sizeof_short=0
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
12568 $as_echo "$ac_cv_sizeof_short" >&6; }
12572 cat >>confdefs.h <<_ACEOF
12573 #define SIZEOF_SHORT $ac_cv_sizeof_short
12577 # The cast to long int works around a bug in the HP C Compiler
12578 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12579 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12580 # This bug is HP SR number 8606223364.
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12582 $as_echo_n "checking size of int... " >&6; }
12583 if ${ac_cv_sizeof_int+:} false; then :
12584 $as_echo_n "(cached) " >&6
12586 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
12589 if test "$ac_cv_type_int" = yes; then
12590 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12591 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12592 as_fn_error 77 "cannot compute sizeof (int)
12593 See \`config.log' for more details" "$LINENO" 5; }
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12601 $as_echo "$ac_cv_sizeof_int" >&6; }
12605 cat >>confdefs.h <<_ACEOF
12606 #define SIZEOF_INT $ac_cv_sizeof_int
12610 # The cast to long int works around a bug in the HP C Compiler
12611 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12612 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12613 # This bug is HP SR number 8606223364.
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12615 $as_echo_n "checking size of long... " >&6; }
12616 if ${ac_cv_sizeof_long+:} false; then :
12617 $as_echo_n "(cached) " >&6
12619 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
12622 if test "$ac_cv_type_long" = yes; then
12623 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12624 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12625 as_fn_error 77 "cannot compute sizeof (long)
12626 See \`config.log' for more details" "$LINENO" 5; }
12628 ac_cv_sizeof_long=0
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12634 $as_echo "$ac_cv_sizeof_long" >&6; }
12638 cat >>confdefs.h <<_ACEOF
12639 #define SIZEOF_LONG $ac_cv_sizeof_long
12643 # The cast to long int works around a bug in the HP C Compiler
12644 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12645 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12646 # This bug is HP SR number 8606223364.
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12648 $as_echo_n "checking size of long long... " >&6; }
12649 if ${ac_cv_sizeof_long_long+:} false; then :
12650 $as_echo_n "(cached) " >&6
12652 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
12655 if test "$ac_cv_type_long_long" = yes; then
12656 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12657 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12658 as_fn_error 77 "cannot compute sizeof (long long)
12659 See \`config.log' for more details" "$LINENO" 5; }
12661 ac_cv_sizeof_long_long=0
12666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12667 $as_echo "$ac_cv_sizeof_long_long" >&6; }
12671 cat >>confdefs.h <<_ACEOF
12672 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12676 # The cast to long int works around a bug in the HP C Compiler
12677 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12678 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12679 # This bug is HP SR number 8606223364.
12680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
12681 $as_echo_n "checking size of off_t... " >&6; }
12682 if ${ac_cv_sizeof_off_t+:} false; then :
12683 $as_echo_n "(cached) " >&6
12685 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
12688 if test "$ac_cv_type_off_t" = yes; then
12689 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12690 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12691 as_fn_error 77 "cannot compute sizeof (off_t)
12692 See \`config.log' for more details" "$LINENO" 5; }
12694 ac_cv_sizeof_off_t=0
12699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
12700 $as_echo "$ac_cv_sizeof_off_t" >&6; }
12704 cat >>confdefs.h <<_ACEOF
12705 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
12709 # The cast to long int works around a bug in the HP C Compiler
12710 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12711 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12712 # This bug is HP SR number 8606223364.
12713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
12714 $as_echo_n "checking size of time_t... " >&6; }
12715 if ${ac_cv_sizeof_time_t+:} false; then :
12716 $as_echo_n "(cached) " >&6
12718 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then :
12721 if test "$ac_cv_type_time_t" = yes; then
12722 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12723 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12724 as_fn_error 77 "cannot compute sizeof (time_t)
12725 See \`config.log' for more details" "$LINENO" 5; }
12727 ac_cv_sizeof_time_t=0
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
12733 $as_echo "$ac_cv_sizeof_time_t" >&6; }
12737 cat >>confdefs.h <<_ACEOF
12738 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
12742 SIZEOF_SHORT=$ac_cv_sizeof_short
12743 SIZEOF_INT=$ac_cv_sizeof_int
12744 SIZEOF_LONG=$ac_cv_sizeof_long
12745 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
12746 SIZEOF_OFF_T=$ac_cv_sizeof_off_t
12747 SIZEOF_TIME_T=$ac_cv_sizeof_time_t
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12755 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12756 if ${ac_cv_c_bigendian+:} false; then :
12757 $as_echo_n "(cached) " >&6
12759 ac_cv_c_bigendian=unknown
12760 # See if we're dealing with a universal compiler.
12761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12762 /* end confdefs.h. */
12763 #ifndef __APPLE_CC__
12764 not a universal capable compiler
12769 if ac_fn_c_try_compile "$LINENO"; then :
12771 # Check for potential -arch flags. It is not universal unless
12772 # there are at least two -arch flags with different values.
12775 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12776 if test -n "$ac_prev"; then
12778 i?86 | x86_64 | ppc | ppc64)
12779 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12782 ac_cv_c_bigendian=universal
12788 elif test "x$ac_word" = "x-arch"; then
12793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12794 if test $ac_cv_c_bigendian = unknown; then
12795 # See if sys/param.h defines the BYTE_ORDER macro.
12796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12797 /* end confdefs.h. */
12798 #include <sys/types.h>
12799 #include <sys/param.h>
12804 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12805 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12807 bogus endian macros
12814 if ac_fn_c_try_compile "$LINENO"; then :
12815 # It does; now see whether it defined to BIG_ENDIAN or not.
12816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12817 /* end confdefs.h. */
12818 #include <sys/types.h>
12819 #include <sys/param.h>
12824 #if BYTE_ORDER != BIG_ENDIAN
12832 if ac_fn_c_try_compile "$LINENO"; then :
12833 ac_cv_c_bigendian=yes
12835 ac_cv_c_bigendian=no
12837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12841 if test $ac_cv_c_bigendian = unknown; then
12842 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12844 /* end confdefs.h. */
12845 #include <limits.h>
12850 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12851 bogus endian macros
12858 if ac_fn_c_try_compile "$LINENO"; then :
12859 # It does; now see whether it defined to _BIG_ENDIAN or not.
12860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12861 /* end confdefs.h. */
12862 #include <limits.h>
12867 #ifndef _BIG_ENDIAN
12875 if ac_fn_c_try_compile "$LINENO"; then :
12876 ac_cv_c_bigendian=yes
12878 ac_cv_c_bigendian=no
12880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12884 if test $ac_cv_c_bigendian = unknown; then
12885 # Compile a test program.
12886 if test "$cross_compiling" = yes; then :
12887 # Try to guess by grepping values from an object file.
12888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12889 /* end confdefs.h. */
12890 short int ascii_mm[] =
12891 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12892 short int ascii_ii[] =
12893 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12894 int use_ascii (int i) {
12895 return ascii_mm[i] + ascii_ii[i];
12897 short int ebcdic_ii[] =
12898 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12899 short int ebcdic_mm[] =
12900 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12901 int use_ebcdic (int i) {
12902 return ebcdic_mm[i] + ebcdic_ii[i];
12909 return use_ascii (foo) == use_ebcdic (foo);
12914 if ac_fn_c_try_compile "$LINENO"; then :
12915 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12916 ac_cv_c_bigendian=yes
12918 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12919 if test "$ac_cv_c_bigendian" = unknown; then
12920 ac_cv_c_bigendian=no
12922 # finding both strings is unlikely to happen, but who knows?
12923 ac_cv_c_bigendian=unknown
12927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12930 /* end confdefs.h. */
12931 $ac_includes_default
12936 /* Are we little or big endian? From Harbison&Steele. */
12940 char c[sizeof (long int)];
12943 return u.c[sizeof (long int) - 1] == 1;
12949 if ac_fn_c_try_run "$LINENO"; then :
12950 ac_cv_c_bigendian=no
12952 ac_cv_c_bigendian=yes
12954 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12955 conftest.$ac_objext conftest.beam conftest.$ac_ext
12960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12961 $as_echo "$ac_cv_c_bigendian" >&6; }
12962 case $ac_cv_c_bigendian in #(
12964 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12970 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12974 as_fn_error $? "unknown endianness
12975 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12978 if test $cross_compiling = no; then
12979 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12981 CROSS_COMPILE="1" BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12983 ASM_TYPES_HEADER=./asm_types.h
12985 echo "/* These defines are needed for the public ext2fs.h header file */" \
12987 if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
12988 uniq tmp_config.$$ >> public_config.h
12990 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
12992 if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
12993 uniq tmp_config.$$ >> public_config.h
12995 echo "#undef WORDS_BIGENDIAN" >> public_config.h
12997 rm -f tmp_config.$$
12998 PUBLIC_CONFIG_HEADER=./public_config.h
13000 for ac_header in inttypes.h
13002 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
13003 if test "x$ac_cv_header_inttypes_h" = xyes; then :
13004 cat >>confdefs.h <<_ACEOF
13005 #define HAVE_INTTYPES_H 1
13012 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
13013 if test "x$ac_cv_type_intptr_t" = xyes; then :
13015 cat >>confdefs.h <<_ACEOF
13016 #define HAVE_INTPTR_T 1
13022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5
13023 $as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
13024 if ${e2fsprogs_cv_struct_st_flags+:} false; then :
13025 $as_echo_n "(cached) " >&6
13027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13028 /* end confdefs.h. */
13029 #include <sys/stat.h>
13033 struct stat stat; stat.st_flags = 0;
13038 if ac_fn_c_try_compile "$LINENO"; then :
13039 e2fsprogs_cv_struct_st_flags=yes
13041 e2fsprogs_cv_struct_st_flags=no
13043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
13047 $as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
13048 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
13049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
13050 $as_echo_n "checking whether st_flags field is useful... " >&6; }
13051 if ${e2fsprogs_cv_struct_st_flags_immut+:} false; then :
13052 $as_echo_n "(cached) " >&6
13054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13055 /* end confdefs.h. */
13056 #include <sys/stat.h>
13060 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
13065 if ac_fn_c_try_compile "$LINENO"; then :
13066 e2fsprogs_cv_struct_st_flags_immut=yes
13068 e2fsprogs_cv_struct_st_flags_immut=no
13070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
13074 $as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
13075 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
13077 $as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
13081 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
13082 #include <sys/socket.h>
13084 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
13086 cat >>confdefs.h <<_ACEOF
13087 #define HAVE_SA_LEN 1
13092 if test -n "$BLKID_CMT"; then
13093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5
13094 $as_echo_n "checking for library containing blkid_probe_all... " >&6; }
13095 if ${ac_cv_search_blkid_probe_all+:} false; then :
13096 $as_echo_n "(cached) " >&6
13098 ac_func_search_save_LIBS=$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 blkid_probe_all ();
13112 return blkid_probe_all ();
13117 for ac_lib in '' blkid; do
13118 if test -z "$ac_lib"; then
13119 ac_res="none required"
13122 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13124 if ac_fn_c_try_link "$LINENO"; then :
13125 ac_cv_search_blkid_probe_all=$ac_res
13127 rm -f core conftest.err conftest.$ac_objext \
13129 if ${ac_cv_search_blkid_probe_all+:} false; then :
13133 if ${ac_cv_search_blkid_probe_all+:} false; then :
13136 ac_cv_search_blkid_probe_all=no
13138 rm conftest.$ac_ext
13139 LIBS=$ac_func_search_save_LIBS
13141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5
13142 $as_echo "$ac_cv_search_blkid_probe_all" >&6; }
13143 ac_res=$ac_cv_search_blkid_probe_all
13144 if test "$ac_res" != no; then :
13145 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13150 if test -n "$DLOPEN_LIB" ; then
13151 ac_cv_func_dlopen=yes
13153 for ac_func in __secure_getenv add_key backtrace blkid_probe_get_topology blkid_probe_enable_partitions chflags dlopen fadvise64 fallocate fallocate64 fchown fcntl fdatasync fstat64 fsync ftruncate64 futimes getcwd getdtablesize gethostname 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
13155 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13156 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13157 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13158 cat >>confdefs.h <<_ACEOF
13159 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
13167 $as_echo_n "checking for socket in -lsocket... " >&6; }
13168 if ${ac_cv_lib_socket_socket+:} false; then :
13169 $as_echo_n "(cached) " >&6
13171 ac_check_lib_save_LIBS=$LIBS
13172 LIBS="-lsocket $LIBS"
13173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13174 /* end confdefs.h. */
13176 /* Override any GCC internal prototype to avoid an error.
13177 Use char because int might match the return type of a GCC
13178 builtin and then its argument prototype would still apply. */
13191 if ac_fn_c_try_link "$LINENO"; then :
13192 ac_cv_lib_socket_socket=yes
13194 ac_cv_lib_socket_socket=no
13196 rm -f core conftest.err conftest.$ac_objext \
13197 conftest$ac_exeext conftest.$ac_ext
13198 LIBS=$ac_check_lib_save_LIBS
13200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
13201 $as_echo "$ac_cv_lib_socket_socket" >&6; }
13202 if test "x$ac_cv_lib_socket_socket" = xyes; then :
13203 SOCKET_LIB=-lsocket
13207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_file in -lmagic" >&5
13208 $as_echo_n "checking for magic_file in -lmagic... " >&6; }
13209 if ${ac_cv_lib_magic_magic_file+:} false; then :
13210 $as_echo_n "(cached) " >&6
13212 ac_check_lib_save_LIBS=$LIBS
13213 LIBS="-lmagic $LIBS"
13214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13215 /* end confdefs.h. */
13217 /* Override any GCC internal prototype to avoid an error.
13218 Use char because int might match the return type of a GCC
13219 builtin and then its argument prototype would still apply. */
13223 char magic_file ();
13227 return magic_file ();
13232 if ac_fn_c_try_link "$LINENO"; then :
13233 ac_cv_lib_magic_magic_file=yes
13235 ac_cv_lib_magic_magic_file=no
13237 rm -f core conftest.err conftest.$ac_objext \
13238 conftest$ac_exeext conftest.$ac_ext
13239 LIBS=$ac_check_lib_save_LIBS
13241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_file" >&5
13242 $as_echo "$ac_cv_lib_magic_magic_file" >&6; }
13243 if test "x$ac_cv_lib_magic_magic_file" = xyes; then :
13245 for ac_header in magic.h
13247 ac_fn_c_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default"
13248 if test "x$ac_cv_header_magic_h" = xyes; then :
13249 cat >>confdefs.h <<_ACEOF
13250 #define HAVE_MAGIC_H 1
13259 if test "$ac_cv_func_dlopen" = yes ; then
13260 MAGIC_LIB=$DLOPEN_LIB
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
13264 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
13265 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
13266 $as_echo_n "(cached) " >&6
13268 ac_check_lib_save_LIBS=$LIBS
13270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13271 /* end confdefs.h. */
13273 /* Override any GCC internal prototype to avoid an error.
13274 Use char because int might match the return type of a GCC
13275 builtin and then its argument prototype would still apply. */
13279 char clock_gettime ();
13283 return clock_gettime ();
13288 if ac_fn_c_try_link "$LINENO"; then :
13289 ac_cv_lib_rt_clock_gettime=yes
13291 ac_cv_lib_rt_clock_gettime=no
13293 rm -f core conftest.err conftest.$ac_objext \
13294 conftest$ac_exeext conftest.$ac_ext
13295 LIBS=$ac_check_lib_save_LIBS
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
13298 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
13299 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
13300 CLOCK_GETTIME_LIB=-lrt
13306 # Check whether --enable-fuse2fs was given.
13307 if test "${enable_fuse2fs+set}" = set; then :
13308 enableval=$enable_fuse2fs; if test "$enableval" = "no"
13311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling fuse2fs" >&5
13312 $as_echo "Disabling fuse2fs" >&6; }
13314 for ac_header in pthread.h fuse.h
13316 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13317 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
13318 #define FUSE_USE_VERSION 29
13320 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13321 cat >>confdefs.h <<_ACEOF
13322 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13326 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13327 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13328 as_fn_error $? "Cannot find fuse2fs headers.
13329 See \`config.log' for more details" "$LINENO" 5; }
13335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13336 /* end confdefs.h. */
13337 #define FUSE_USE_VERSION 29
13339 #include <linux/fs.h>
13340 #include <linux/falloc.h>
13341 #include <linux/xattr.h>
13352 if ac_fn_c_try_cpp "$LINENO"; then :
13355 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13356 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13357 as_fn_error $? "Cannot find fuse2fs Linux headers.
13358 See \`config.log' for more details" "$LINENO" 5; }
13360 rm -f conftest.err conftest.i conftest.$ac_ext
13362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
13363 $as_echo_n "checking for fuse_main in -losxfuse... " >&6; }
13364 if ${ac_cv_lib_osxfuse_fuse_main+:} false; then :
13365 $as_echo_n "(cached) " >&6
13367 ac_check_lib_save_LIBS=$LIBS
13368 LIBS="-losxfuse $LIBS"
13369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13370 /* end confdefs.h. */
13372 /* Override any GCC internal prototype to avoid an error.
13373 Use char because int might match the return type of a GCC
13374 builtin and then its argument prototype would still apply. */
13382 return fuse_main ();
13387 if ac_fn_c_try_link "$LINENO"; then :
13388 ac_cv_lib_osxfuse_fuse_main=yes
13390 ac_cv_lib_osxfuse_fuse_main=no
13392 rm -f core conftest.err conftest.$ac_objext \
13393 conftest$ac_exeext conftest.$ac_ext
13394 LIBS=$ac_check_lib_save_LIBS
13396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
13397 $as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; }
13398 if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then :
13401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
13402 $as_echo_n "checking for fuse_main in -lfuse... " >&6; }
13403 if ${ac_cv_lib_fuse_fuse_main+:} false; then :
13404 $as_echo_n "(cached) " >&6
13406 ac_check_lib_save_LIBS=$LIBS
13407 LIBS="-lfuse $LIBS"
13408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13409 /* end confdefs.h. */
13411 /* Override any GCC internal prototype to avoid an error.
13412 Use char because int might match the return type of a GCC
13413 builtin and then its argument prototype would still apply. */
13421 return fuse_main ();
13426 if ac_fn_c_try_link "$LINENO"; then :
13427 ac_cv_lib_fuse_fuse_main=yes
13429 ac_cv_lib_fuse_fuse_main=no
13431 rm -f core conftest.err conftest.$ac_objext \
13432 conftest$ac_exeext conftest.$ac_ext
13433 LIBS=$ac_check_lib_save_LIBS
13435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
13436 $as_echo "$ac_cv_lib_fuse_fuse_main" >&6; }
13437 if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then :
13440 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13441 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13442 as_fn_error $? "Cannot find fuse library.
13443 See \`config.log' for more details" "$LINENO" 5; }
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs" >&5
13449 $as_echo "Enabling fuse2fs" >&6; }
13453 for ac_header in pthread.h fuse.h
13455 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13456 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
13457 #define FUSE_USE_VERSION 29
13459 # include <linux/fs.h>
13460 # include <linux/falloc.h>
13461 # include <linux/xattr.h>
13464 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13465 cat >>confdefs.h <<_ACEOF
13466 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13475 if test -z "$FUSE_CMT"
13477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
13478 $as_echo_n "checking for fuse_main in -losxfuse... " >&6; }
13479 if ${ac_cv_lib_osxfuse_fuse_main+:} false; then :
13480 $as_echo_n "(cached) " >&6
13482 ac_check_lib_save_LIBS=$LIBS
13483 LIBS="-losxfuse $LIBS"
13484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13485 /* end confdefs.h. */
13487 /* Override any GCC internal prototype to avoid an error.
13488 Use char because int might match the return type of a GCC
13489 builtin and then its argument prototype would still apply. */
13497 return fuse_main ();
13502 if ac_fn_c_try_link "$LINENO"; then :
13503 ac_cv_lib_osxfuse_fuse_main=yes
13505 ac_cv_lib_osxfuse_fuse_main=no
13507 rm -f core conftest.err conftest.$ac_objext \
13508 conftest$ac_exeext conftest.$ac_ext
13509 LIBS=$ac_check_lib_save_LIBS
13511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
13512 $as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; }
13513 if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then :
13516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
13517 $as_echo_n "checking for fuse_main in -lfuse... " >&6; }
13518 if ${ac_cv_lib_fuse_fuse_main+:} false; then :
13519 $as_echo_n "(cached) " >&6
13521 ac_check_lib_save_LIBS=$LIBS
13522 LIBS="-lfuse $LIBS"
13523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13524 /* end confdefs.h. */
13526 /* Override any GCC internal prototype to avoid an error.
13527 Use char because int might match the return type of a GCC
13528 builtin and then its argument prototype would still apply. */
13536 return fuse_main ();
13541 if ac_fn_c_try_link "$LINENO"; then :
13542 ac_cv_lib_fuse_fuse_main=yes
13544 ac_cv_lib_fuse_fuse_main=no
13546 rm -f core conftest.err conftest.$ac_objext \
13547 conftest$ac_exeext conftest.$ac_ext
13548 LIBS=$ac_check_lib_save_LIBS
13550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
13551 $as_echo "$ac_cv_lib_fuse_fuse_main" >&6; }
13552 if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then :
13561 if test -z "$FUSE_CMT"
13563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs by default." >&5
13564 $as_echo "Enabling fuse2fs by default." >&6; }
13571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
13572 $as_echo_n "checking for optreset... " >&6; }
13573 if ${ac_cv_have_optreset+:} false; then :
13574 $as_echo_n "(cached) " >&6
13576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13577 /* end confdefs.h. */
13578 #include <unistd.h>
13581 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13582 $EGREP "optreset" >/dev/null 2>&1; then :
13583 ac_cv_have_optreset=yes
13585 ac_cv_have_optreset=no
13590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
13591 $as_echo "$ac_cv_have_optreset" >&6; }
13592 if test $ac_cv_have_optreset = yes; then
13594 $as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
13599 echo GL_THREADS_API: ${gl_threads_api}
13600 if test "${gl_threads_api}" != none
13602 ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
13603 if test "x$ac_cv_func_sem_init" = xyes; then :
13606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
13607 $as_echo_n "checking for sem_init in -lpthread... " >&6; }
13608 if ${ac_cv_lib_pthread_sem_init+:} false; then :
13609 $as_echo_n "(cached) " >&6
13611 ac_check_lib_save_LIBS=$LIBS
13612 LIBS="-lpthread $LIBS"
13613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13614 /* end confdefs.h. */
13616 /* Override any GCC internal prototype to avoid an error.
13617 Use char because int might match the return type of a GCC
13618 builtin and then its argument prototype would still apply. */
13626 return sem_init ();
13631 if ac_fn_c_try_link "$LINENO"; then :
13632 ac_cv_lib_pthread_sem_init=yes
13634 ac_cv_lib_pthread_sem_init=no
13636 rm -f core conftest.err conftest.$ac_objext \
13637 conftest$ac_exeext conftest.$ac_ext
13638 LIBS=$ac_check_lib_save_LIBS
13640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
13641 $as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
13642 if test "x$ac_cv_lib_pthread_sem_init" = xyes; then :
13643 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
13645 SEM_INIT_LIB=-lpthread
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
13648 $as_echo_n "checking for sem_init in -lrt... " >&6; }
13649 if ${ac_cv_lib_rt_sem_init+:} false; then :
13650 $as_echo_n "(cached) " >&6
13652 ac_check_lib_save_LIBS=$LIBS
13654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13655 /* end confdefs.h. */
13657 /* Override any GCC internal prototype to avoid an error.
13658 Use char because int might match the return type of a GCC
13659 builtin and then its argument prototype would still apply. */
13667 return sem_init ();
13672 if ac_fn_c_try_link "$LINENO"; then :
13673 ac_cv_lib_rt_sem_init=yes
13675 ac_cv_lib_rt_sem_init=no
13677 rm -f core conftest.err conftest.$ac_objext \
13678 conftest$ac_exeext conftest.$ac_ext
13679 LIBS=$ac_check_lib_save_LIBS
13681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
13682 $as_echo "$ac_cv_lib_rt_sem_init" >&6; }
13683 if test "x$ac_cv_lib_rt_sem_init" = xyes; then :
13684 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
13688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
13689 $as_echo_n "checking for sem_init in -lposix4... " >&6; }
13690 if ${ac_cv_lib_posix4_sem_init+:} false; then :
13691 $as_echo_n "(cached) " >&6
13693 ac_check_lib_save_LIBS=$LIBS
13694 LIBS="-lposix4 $LIBS"
13695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13696 /* end confdefs.h. */
13698 /* Override any GCC internal prototype to avoid an error.
13699 Use char because int might match the return type of a GCC
13700 builtin and then its argument prototype would still apply. */
13708 return sem_init ();
13713 if ac_fn_c_try_link "$LINENO"; then :
13714 ac_cv_lib_posix4_sem_init=yes
13716 ac_cv_lib_posix4_sem_init=no
13718 rm -f core conftest.err conftest.$ac_objext \
13719 conftest$ac_exeext conftest.$ac_ext
13720 LIBS=$ac_check_lib_save_LIBS
13722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
13723 $as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
13724 if test "x$ac_cv_lib_posix4_sem_init" = xyes; then :
13725 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
13727 SEM_INIT_LIB=-lposix4
13737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
13738 $as_echo_n "checking for unified diff option... " >&6; }
13739 if diff -u $0 $0 > /dev/null 2>&1 ; then
13744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
13745 $as_echo "$UNI_DIFF_OPTS" >&6; }
13750 $as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
13754 # Check whether --enable-lto was given.
13755 if test "${enable_lto+set}" = set; then :
13756 enableval=$enable_lto;
13761 if test "$enable_lto" = "yes" || test "$enable_lto" = "probe"; then
13762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports LTO" >&5
13763 $as_echo_n "checking if C compiler supports LTO... " >&6; }
13764 OLD_CFLAGS="$CFLAGS"
13765 OLD_LDFLAGS="$LDFLAGS"
13766 LTO_FLAGS="-g -flto -ffat-lto-objects"
13767 CFLAGS="$CFLAGS $LTO_FLAGS"
13768 LDFLAGS="$LDFLAGS $LTO_FLAGS"
13769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13770 /* end confdefs.h. */
13780 if ac_fn_c_try_link "$LINENO"; then :
13781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13782 $as_echo "yes" >&6; }
13783 lto_cflags=$LTO_FLAGS
13784 lto_ldflags=$LTO_FLAGS
13785 # Extract the first word of "gcc-ar", so it can be a program name with args.
13786 set dummy gcc-ar; ac_word=$2
13787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13788 $as_echo_n "checking for $ac_word... " >&6; }
13789 if ${ac_cv_path_gcc_ar+:} false; then :
13790 $as_echo_n "(cached) " >&6
13794 ac_cv_path_gcc_ar="$gcc_ar" # Let the user override the test with a path.
13797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13798 for as_dir in $PATH
13801 test -z "$as_dir" && as_dir=.
13802 for ac_exec_ext in '' $ac_executable_extensions; do
13803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13804 ac_cv_path_gcc_ar="$as_dir/$ac_word$ac_exec_ext"
13805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13815 gcc_ar=$ac_cv_path_gcc_ar
13816 if test -n "$gcc_ar"; then
13817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_ar" >&5
13818 $as_echo "$gcc_ar" >&6; }
13820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13821 $as_echo "no" >&6; }
13825 # Extract the first word of "gcc-ranlib", so it can be a program name with args.
13826 set dummy gcc-ranlib; ac_word=$2
13827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13828 $as_echo_n "checking for $ac_word... " >&6; }
13829 if ${ac_cv_path_gcc_ranlib+:} false; then :
13830 $as_echo_n "(cached) " >&6
13832 case $gcc_ranlib in
13834 ac_cv_path_gcc_ranlib="$gcc_ranlib" # Let the user override the test with a path.
13837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13838 for as_dir in $PATH
13841 test -z "$as_dir" && as_dir=.
13842 for ac_exec_ext in '' $ac_executable_extensions; do
13843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13844 ac_cv_path_gcc_ranlib="$as_dir/$ac_word$ac_exec_ext"
13845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13855 gcc_ranlib=$ac_cv_path_gcc_ranlib
13856 if test -n "$gcc_ranlib"; then
13857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_ranlib" >&5
13858 $as_echo "$gcc_ranlib" >&6; }
13860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13861 $as_echo "no" >&6; }
13866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13867 $as_echo "no" >&6; }
13869 rm -f core conftest.err conftest.$ac_objext \
13870 conftest$ac_exeext conftest.$ac_ext
13871 if test -x "$gcc_ar" && test -x "$gcc_ranlib"; then
13874 RANLIB="${gcc_ranlib}"
13876 CFLAGS="${OLD_CFLAGS}"
13877 LDFLAGS="${OLD_LDFLAGS}"
13882 if test "$enable_lto" = "yes" && test "$have_lto" != "yes"; then
13883 as_fn_error $? "LTO not supported by compiler." "$LINENO" 5
13885 # Check whether --enable-ubsan was given.
13886 if test "${enable_ubsan+set}" = set; then :
13887 enableval=$enable_ubsan;
13892 if test "$enable_ubsan" = "yes" || test "$enable_ubsan" = "probe"; then
13893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports UBSAN" >&5
13894 $as_echo_n "checking if C compiler supports UBSAN... " >&6; }
13895 OLD_CFLAGS="$CFLAGS"
13896 OLD_LDFLAGS="$LDFLAGS"
13897 UBSAN_FLAGS="-fsanitize=undefined"
13898 CFLAGS="$CFLAGS $UBSAN_FLAGS"
13899 LDFLAGS="$LDFLAGS $UBSAN_FLAGS"
13900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13901 /* end confdefs.h. */
13911 if ac_fn_c_try_link "$LINENO"; then :
13912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13913 $as_echo "yes" >&6; }
13914 ubsan_cflags=$UBSAN_FLAGS
13915 ubsan_ldflags=$UBSAN_FLAGS
13918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13919 $as_echo "no" >&6; }
13921 rm -f core conftest.err conftest.$ac_objext \
13922 conftest$ac_exeext conftest.$ac_ext
13923 CFLAGS="${OLD_CFLAGS}"
13924 LDFLAGS="${OLD_LDFLAGS}"
13929 if test "$enable_ubsan" = "yes" && test "$have_ubsan" != "yes"; then
13930 as_fn_error $? "UBSAN not supported by compiler." "$LINENO" 5
13932 # Check whether --enable-addrsan was given.
13933 if test "${enable_addrsan+set}" = set; then :
13934 enableval=$enable_addrsan;
13939 if test "$enable_addrsan" = "yes" || test "$enable_addrsan" = "probe"; then
13940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports ADDRSAN" >&5
13941 $as_echo_n "checking if C compiler supports ADDRSAN... " >&6; }
13942 OLD_CFLAGS="$CFLAGS"
13943 OLD_LDFLAGS="$LDFLAGS"
13944 ADDRSAN_FLAGS="-fsanitize=address"
13945 CFLAGS="$CFLAGS $ADDRSAN_FLAGS"
13946 LDFLAGS="$LDFLAGS $ADDRSAN_FLAGS"
13947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13948 /* end confdefs.h. */
13958 if ac_fn_c_try_link "$LINENO"; then :
13959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13960 $as_echo "yes" >&6; }
13961 addrsan_cflags=$ADDRSAN_FLAGS
13962 addrsan_ldflags=$ADDRSAN_FLAGS
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13966 $as_echo "no" >&6; }
13968 rm -f core conftest.err conftest.$ac_objext \
13969 conftest$ac_exeext conftest.$ac_ext
13970 CFLAGS="${OLD_CFLAGS}"
13971 LDFLAGS="${OLD_LDFLAGS}"
13976 if test "$enable_addrsan" = "yes" && test "$have_addrsan" != "yes"; then
13977 as_fn_error $? "ADDRSAN not supported by compiler." "$LINENO" 5
13979 # Check whether --enable-threadsan was given.
13980 if test "${enable_threadsan+set}" = set; then :
13981 enableval=$enable_threadsan;
13983 enable_threadsan=no
13986 if test "$enable_threadsan" = "yes" || test "$enable_threadsan" = "probe"; then
13987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports THREADSAN" >&5
13988 $as_echo_n "checking if C compiler supports THREADSAN... " >&6; }
13989 OLD_CFLAGS="$CFLAGS"
13990 OLD_LDFLAGS="$LDFLAGS"
13991 THREADSAN_FLAGS="-fsanitize=thread"
13992 CFLAGS="$CFLAGS $THREADSAN_FLAGS"
13993 LDFLAGS="$LDFLAGS $THREADSAN_FLAGS"
13994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13995 /* end confdefs.h. */
14005 if ac_fn_c_try_link "$LINENO"; then :
14006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14007 $as_echo "yes" >&6; }
14008 threadsan_cflags=$THREADSAN_FLAGS
14009 threadsan_ldflags=$THREADSAN_FLAGS
14012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14013 $as_echo "no" >&6; }
14015 rm -f core conftest.err conftest.$ac_objext \
14016 conftest$ac_exeext conftest.$ac_ext
14017 CFLAGS="${OLD_CFLAGS}"
14018 LDFLAGS="${OLD_LDFLAGS}"
14023 if test "$enable_threadsan" = "yes" && test "$have_threadsan" != "yes"; then
14024 as_fn_error $? "THREADSAN not supported by compiler." "$LINENO" 5
14026 if test "$have_threadsan" = "yes" && test "$have_addrsan" = "yes"; then
14027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ADDRSAN and THREADSAN are not known to work together." >&5
14028 $as_echo "$as_me: WARNING: ADDRSAN and THREADSAN are not known to work together." >&2;}
14045 E2SCRUB_CMT="$LINUX_CMT"
14048 linux* | gnu* | k*bsd*-gnu)
14049 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
14051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5
14052 $as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
14057 linux* | gnu* | k*bsd*-gnu)
14058 if test "$prefix" = NONE ; then
14060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5
14061 $as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
14062 if test "$mandir" = '${prefix}/man' ; then
14063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
14064 $as_echo "...and mandir defaults to /usr/share/man" >&6; }
14065 mandir=/usr/share/man
14070 if test "$root_prefix" = NONE ; then
14071 if test "$prefix" = NONE ; then
14072 root_prefix="$ac_default_prefix"
14074 root_prefix="$prefix"
14076 root_bindir=$bindir
14077 root_sbindir=$sbindir
14078 root_libdir=$libdir
14079 root_sysconfdir=$sysconfdir
14081 root_bindir='${root_prefix}/bin'
14082 root_sbindir='${root_prefix}/sbin'
14083 root_libdir='${root_prefix}/lib'
14084 root_sysconfdir='${root_prefix}/etc'
14086 if test "$bindir" != '${exec_prefix}/bin'; then
14087 root_bindir=$bindir
14088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
14089 $as_echo "Setting root_bindir to $root_bindir" >&6; }
14091 if test "$sbindir" != '${exec_prefix}/sbin'; then
14092 root_sbindir=$sbindir
14093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
14094 $as_echo "Setting root_sbindir to $root_sbindir" >&6; }
14096 if test "$libdir" != '${exec_prefix}/lib'; then
14097 root_libdir=$libdir
14098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
14099 $as_echo "Setting root_libdir to $root_libdir" >&6; }
14101 if test "$sysconfdir" != '${prefix}/etc'; then
14102 root_sysconfdir=$sysconfdir
14103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
14104 $as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
14112 # Check whether --with-multiarch was given.
14113 if test "${with_multiarch+set}" = set; then :
14114 withval=$with_multiarch; if test "$withval" = "lib64"; then
14118 libdir=$libdir/$withval
14119 root_libdir=$root_libdir/$withval
14124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5
14125 $as_echo_n "checking whether we can link with -static... " >&6; }
14126 if ${ac_cv_e2fsprogs_use_static+:} false; then :
14127 $as_echo_n "(cached) " >&6
14129 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS_STATIC -static"
14130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14131 /* end confdefs.h. */
14141 if ac_fn_c_try_link "$LINENO"; then :
14142 ac_cv_e2fsprogs_use_static=yes
14144 ac_cv_e2fsprogs_use_static=no
14146 rm -f core conftest.err conftest.$ac_objext \
14147 conftest$ac_exeext conftest.$ac_ext
14148 LDFLAGS=$SAVE_LDFLAGS
14153 ac_cv_e2fsprogs_use_static=no
14156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
14157 $as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
14158 if test $ac_cv_e2fsprogs_use_static = yes; then
14159 LDFLAGS_STATIC="$LDFLAGS_STATIC -static"
14164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
14165 $as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
14167 $as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
14171 if test "$cross_compiling" = yes ; then
14174 DO_TEST_SUITE=check
14177 INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
14178 if test -n "$CPPFLAGS" ; then
14179 INCLUDES="$INCLUDES $CPPFLAGS"
14181 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
14182 INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
14184 if test -n "$WITH_DIET_LIBC" ; then
14185 INCLUDES="$INCLUDES -D_REENTRANT"
14190 if test -n "$ac_aux_dir"; then
14191 case "$ac_aux_dir" in
14192 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
14193 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
14196 if test -z "$MKINSTALLDIRS"; then
14197 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
14201 if test $cross_compiling = no; then
14202 BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H"
14203 BUILD_LDFLAGS="$LDFLAGS"
14207 CFLAGS_SHLIB=${CFLAGS_SHLIB:-$CFLAGS}
14208 CFLAGS_STLIB=${CFLAGS_STLIB:-$CFLAGS}
14209 LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
14215 # Check whether --with-udev_rules_dir was given.
14216 if test "${with_udev_rules_dir+set}" = set; then :
14217 withval=$with_udev_rules_dir;
14219 with_udev_rules_dir=yes
14222 if test "x${with_udev_rules_dir}" != "xno"; then :
14224 if test "x${with_udev_rules_dir}" = "xyes"; then :
14228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev" >&5
14229 $as_echo_n "checking for udev... " >&6; }
14231 if test -n "$udev_CFLAGS"; then
14232 pkg_cv_udev_CFLAGS="$udev_CFLAGS"
14233 elif test -n "$PKG_CONFIG"; then
14234 if test -n "$PKG_CONFIG" && \
14235 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udev\""; } >&5
14236 ($PKG_CONFIG --exists --print-errors "udev") 2>&5
14238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14239 test $ac_status = 0; }; then
14240 pkg_cv_udev_CFLAGS=`$PKG_CONFIG --cflags "udev" 2>/dev/null`
14241 test "x$?" != "x0" && pkg_failed=yes
14248 if test -n "$udev_LIBS"; then
14249 pkg_cv_udev_LIBS="$udev_LIBS"
14250 elif test -n "$PKG_CONFIG"; then
14251 if test -n "$PKG_CONFIG" && \
14252 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udev\""; } >&5
14253 ($PKG_CONFIG --exists --print-errors "udev") 2>&5
14255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14256 test $ac_status = 0; }; then
14257 pkg_cv_udev_LIBS=`$PKG_CONFIG --libs "udev" 2>/dev/null`
14258 test "x$?" != "x0" && pkg_failed=yes
14268 if test $pkg_failed = yes; then
14269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14270 $as_echo "no" >&6; }
14272 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14273 _pkg_short_errors_supported=yes
14275 _pkg_short_errors_supported=no
14277 if test $_pkg_short_errors_supported = yes; then
14278 udev_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "udev" 2>&1`
14280 udev_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "udev" 2>&1`
14282 # Put the nasty error message in config.log where it belongs
14283 echo "$udev_PKG_ERRORS" >&5
14286 with_udev_rules_dir=""
14288 elif test $pkg_failed = untried; then
14289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14290 $as_echo "no" >&6; }
14292 with_udev_rules_dir=""
14295 udev_CFLAGS=$pkg_cv_udev_CFLAGS
14296 udev_LIBS=$pkg_cv_udev_LIBS
14297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14298 $as_echo "yes" >&6; }
14300 with_udev_rules_dir="$($PKG_CONFIG --variable=udevdir udev)/rules.d"
14305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev rules dir" >&5
14306 $as_echo_n "checking for udev rules dir... " >&6; }
14307 pkg_udev_rules_dir="${with_udev_rules_dir}"
14308 if test -n "${pkg_udev_rules_dir}"; then :
14310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${pkg_udev_rules_dir}" >&5
14311 $as_echo "${pkg_udev_rules_dir}" >&6; }
14316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14317 $as_echo "no" >&6; }
14324 have_udev="disabled"
14331 # Check whether --with-crond_dir was given.
14332 if test "${with_crond_dir+set}" = set; then :
14333 withval=$with_crond_dir;
14338 if test "x${with_crond_dir}" != "xno"; then :
14340 if test "x${with_crond_dir}" = "xyes"; then :
14342 if test -d "/etc/cron.d"; then :
14343 with_crond_dir="/etc/cron.d"
14347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system crontab dir" >&5
14348 $as_echo_n "checking for system crontab dir... " >&6; }
14349 crond_dir="${with_crond_dir}"
14350 if test -n "${crond_dir}"; then :
14352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${crond_dir}" >&5
14353 $as_echo "${crond_dir}" >&6; }
14358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14359 $as_echo "no" >&6; }
14366 have_crond="disabled"
14373 # Check whether --with-systemd_unit_dir was given.
14374 if test "${with_systemd_unit_dir+set}" = set; then :
14375 withval=$with_systemd_unit_dir;
14377 with_systemd_unit_dir=yes
14380 if test "x${with_systemd_unit_dir}" != "xno"; then :
14382 if test "x${with_systemd_unit_dir}" = "xyes"; then :
14386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemd" >&5
14387 $as_echo_n "checking for systemd... " >&6; }
14389 if test -n "$systemd_CFLAGS"; then
14390 pkg_cv_systemd_CFLAGS="$systemd_CFLAGS"
14391 elif test -n "$PKG_CONFIG"; then
14392 if test -n "$PKG_CONFIG" && \
14393 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
14394 ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
14396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14397 test $ac_status = 0; }; then
14398 pkg_cv_systemd_CFLAGS=`$PKG_CONFIG --cflags "systemd" 2>/dev/null`
14399 test "x$?" != "x0" && pkg_failed=yes
14406 if test -n "$systemd_LIBS"; then
14407 pkg_cv_systemd_LIBS="$systemd_LIBS"
14408 elif test -n "$PKG_CONFIG"; then
14409 if test -n "$PKG_CONFIG" && \
14410 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
14411 ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
14413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14414 test $ac_status = 0; }; then
14415 pkg_cv_systemd_LIBS=`$PKG_CONFIG --libs "systemd" 2>/dev/null`
14416 test "x$?" != "x0" && pkg_failed=yes
14426 if test $pkg_failed = yes; then
14427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14428 $as_echo "no" >&6; }
14430 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14431 _pkg_short_errors_supported=yes
14433 _pkg_short_errors_supported=no
14435 if test $_pkg_short_errors_supported = yes; then
14436 systemd_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "systemd" 2>&1`
14438 systemd_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "systemd" 2>&1`
14440 # Put the nasty error message in config.log where it belongs
14441 echo "$systemd_PKG_ERRORS" >&5
14444 with_systemd_unit_dir=""
14446 elif test $pkg_failed = untried; then
14447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14448 $as_echo "no" >&6; }
14450 with_systemd_unit_dir=""
14453 systemd_CFLAGS=$pkg_cv_systemd_CFLAGS
14454 systemd_LIBS=$pkg_cv_systemd_LIBS
14455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14456 $as_echo "yes" >&6; }
14458 with_systemd_unit_dir="$($PKG_CONFIG --variable=systemdsystemunitdir systemd)"
14464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemd system unit dir" >&5
14465 $as_echo_n "checking for systemd system unit dir... " >&6; }
14466 systemd_system_unit_dir="${with_systemd_unit_dir}"
14467 if test -n "${systemd_system_unit_dir}"; then :
14469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${systemd_system_unit_dir}" >&5
14470 $as_echo "${systemd_system_unit_dir}" >&6; }
14475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14476 $as_echo "no" >&6; }
14483 have_systemd="disabled"
14489 test -d lib || mkdir lib
14490 test -d include || mkdir include
14491 test -d include/linux || mkdir include/linux
14492 test -d include/asm || mkdir include/asm
14493 if test -z "$UUID_CMT" ; then
14494 uuid_out_list="lib/uuid/Makefile lib/uuid/uuid.pc \
14495 lib/uuid/uuid_types.h"
14497 if test -z "$BLKID_CMT" ; then
14498 blkid_out_list="lib/blkid/Makefile lib/blkid/blkid.pc \
14499 lib/blkid/blkid_types.h"
14501 for i in MCONFIG Makefile e2fsprogs.spec \
14502 util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
14503 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
14504 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
14505 $uuid_out_list $blkid_out_list lib/support/Makefile \
14506 lib/ss/ss.pc lib/et/com_err.pc lib/e2p/e2p.pc lib/ext2fs/ext2fs.pc \
14507 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
14508 debugfs/Makefile tests/Makefile tests/progs/Makefile \
14509 resize/Makefile doc/Makefile intl/Makefile \
14510 intl/libgnuintl.h po/Makefile.in scrub/Makefile; do
14511 if test -d `dirname ${srcdir}/$i` ; then
14512 outlist="$outlist $i"
14515 ac_config_files="$ac_config_files $outlist"
14517 cat >confcache <<\_ACEOF
14518 # This file is a shell script that caches the results of configure
14519 # tests run on this system so they can be shared between configure
14520 # scripts and configure runs, see configure's option --config-cache.
14521 # It is not useful on other systems. If it contains results you don't
14522 # want to keep, you may remove or edit it.
14524 # config.status only pays attention to the cache file if you give it
14525 # the --recheck option to rerun configure.
14527 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14528 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14529 # following values.
14533 # The following way of writing the cache mishandles newlines in values,
14534 # but we know of no workaround that is simple, portable, and efficient.
14535 # So, we kill variables containing newlines.
14536 # Ultrix sh set writes to stderr and can't be redirected directly,
14537 # and sets the high bit in the cache file unless we assign to the vars.
14539 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14540 eval ac_val=\$$ac_var
14544 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14545 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14548 _ | IFS | as_nl) ;; #(
14549 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14550 *) { eval $ac_var=; unset $ac_var;} ;;
14556 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14557 *${as_nl}ac_space=\ *)
14558 # `set' does not quote correctly, so add quotes: double-quote
14559 # substitution turns \\\\ into \\, and sed turns \\ into \.
14562 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14565 # `set' quotes correctly as required by POSIX, so do not add quotes.
14566 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14575 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14577 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14579 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14580 if test -w "$cache_file"; then
14581 if test "x$cache_file" != "x/dev/null"; then
14582 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14583 $as_echo "$as_me: updating cache $cache_file" >&6;}
14584 if test ! -f "$cache_file" || test -h "$cache_file"; then
14585 cat confcache >"$cache_file"
14587 case $cache_file in #(
14589 mv -f confcache "$cache_file"$$ &&
14590 mv -f "$cache_file"$$ "$cache_file" ;; #(
14592 mv -f confcache "$cache_file" ;;
14597 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14598 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14603 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14604 # Let make expand exec_prefix.
14605 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14607 DEFS=-DHAVE_CONFIG_H
14612 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14613 # 1. Remove the extension, and $U if already installed.
14614 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14615 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14616 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14617 # will be set to the directory where LIBOBJS objects are built.
14618 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14619 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14621 LIBOBJS=$ac_libobjs
14623 LTLIBOBJS=$ac_ltlibobjs
14628 : "${CONFIG_STATUS=./config.status}"
14630 ac_clean_files_save=$ac_clean_files
14631 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14632 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14633 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14635 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14637 # Generated by $as_me.
14638 # Run this file to recreate the current configuration.
14639 # Compiler output produced by configure, useful for debugging
14640 # configure, is in config.log if it exists.
14643 ac_cs_recheck=false
14646 SHELL=\${CONFIG_SHELL-$SHELL}
14649 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14650 ## -------------------- ##
14651 ## M4sh Initialization. ##
14652 ## -------------------- ##
14654 # Be more Bourne compatible
14655 DUALCASE=1; export DUALCASE # for MKS sh
14656 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14659 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14660 # is contrary to our usage. Disable this feature.
14661 alias -g '${1+"$@"}'='"$@"'
14662 setopt NO_GLOB_SUBST
14664 case `(set -o) 2>/dev/null` in #(
14676 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14677 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14678 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14679 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14680 # Prefer a ksh shell builtin over an external printf program on Solaris,
14681 # but without wasting forks for bash or zsh.
14682 if test -z "$BASH_VERSION$ZSH_VERSION" \
14683 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14684 as_echo='print -r --'
14685 as_echo_n='print -rn --'
14686 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14687 as_echo='printf %s\n'
14688 as_echo_n='printf %s'
14690 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14691 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14692 as_echo_n='/usr/ucb/echo -n'
14694 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14695 as_echo_n_body='eval
14699 expr "X$arg" : "X\\(.*\\)$as_nl";
14700 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14702 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14704 export as_echo_n_body
14705 as_echo_n='sh -c $as_echo_n_body as_echo'
14707 export as_echo_body
14708 as_echo='sh -c $as_echo_body as_echo'
14711 # The user is always right.
14712 if test "${PATH_SEPARATOR+set}" != set; then
14714 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14715 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14722 # We need space, tab and new line, in precisely that order. Quoting is
14723 # there to prevent editors from complaining about space-tab.
14724 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14725 # splitting by setting IFS to empty value.)
14728 # Find who we are. Look in the path if we contain no directory separator.
14731 *[\\/]* ) as_myself=$0 ;;
14732 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14733 for as_dir in $PATH
14736 test -z "$as_dir" && as_dir=.
14737 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14743 # We did not find ourselves, most probably we were run as `sh COMMAND'
14744 # in which case we are not to be found in the path.
14745 if test "x$as_myself" = x; then
14748 if test ! -f "$as_myself"; then
14749 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14753 # Unset variables that we do not need and which cause bugs (e.g. in
14754 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14755 # suppresses any "Segmentation fault" message there. '((' could
14756 # trigger a bug in pdksh 5.2.14.
14757 for as_var in BASH_ENV ENV MAIL MAILPATH
14758 do eval test x\${$as_var+set} = xset \
14759 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14772 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14775 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14776 # ----------------------------------------
14777 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14778 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14779 # script with STATUS, using 1 if that was 0.
14782 as_status=$1; test $as_status -eq 0 && as_status=1
14784 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14785 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14787 $as_echo "$as_me: error: $2" >&2
14788 as_fn_exit $as_status
14792 # as_fn_set_status STATUS
14793 # -----------------------
14794 # Set $? to STATUS, without forking.
14795 as_fn_set_status ()
14798 } # as_fn_set_status
14800 # as_fn_exit STATUS
14801 # -----------------
14802 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14806 as_fn_set_status $1
14812 # Portably unset VAR.
14815 { eval $1=; unset $1;}
14817 as_unset=as_fn_unset
14818 # as_fn_append VAR VALUE
14819 # ----------------------
14820 # Append the text in VALUE to the end of the definition contained in VAR. Take
14821 # advantage of any shell optimizations that allow amortized linear growth over
14822 # repeated appends, instead of the typical quadratic growth present in naive
14824 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14825 eval 'as_fn_append ()
14836 # as_fn_arith ARG...
14837 # ------------------
14838 # Perform arithmetic evaluation on the ARGs, and store the result in the
14839 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14840 # must be portable across $(()) and expr.
14841 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14842 eval 'as_fn_arith ()
14849 as_val=`expr "$@" || test $? -eq 1`
14854 if expr a : '\(a\)' >/dev/null 2>&1 &&
14855 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14861 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14862 as_basename=basename
14867 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14873 as_me=`$as_basename -- "$0" ||
14874 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14875 X"$0" : 'X\(//\)$' \| \
14876 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14878 sed '/^.*\/\([^/][^/]*\)\/*$/{
14892 # Avoid depending upon Character Ranges.
14893 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14894 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14895 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14896 as_cr_digits='0123456789'
14897 as_cr_alnum=$as_cr_Letters$as_cr_digits
14899 ECHO_C= ECHO_N= ECHO_T=
14900 case `echo -n x` in #(((((
14902 case `echo 'xy\c'` in
14903 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14905 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14912 rm -f conf$$ conf$$.exe conf$$.file
14913 if test -d conf$$.dir; then
14914 rm -f conf$$.dir/conf$$.file
14917 mkdir conf$$.dir 2>/dev/null
14919 if (echo >conf$$.file) 2>/dev/null; then
14920 if ln -s conf$$.file conf$$ 2>/dev/null; then
14922 # ... but there are two gotchas:
14923 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14924 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14925 # In both cases, we have to default to `cp -pR'.
14926 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14928 elif ln conf$$.file conf$$ 2>/dev/null; then
14936 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14937 rmdir conf$$.dir 2>/dev/null
14942 # Create "$as_dir" as a directory, including parents if necessary.
14947 -*) as_dir=./$as_dir;;
14949 test -d "$as_dir" || eval $as_mkdir_p || {
14953 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14954 *) as_qdir=$as_dir;;
14956 as_dirs="'$as_qdir' $as_dirs"
14957 as_dir=`$as_dirname -- "$as_dir" ||
14958 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14959 X"$as_dir" : 'X\(//\)[^/]' \| \
14960 X"$as_dir" : 'X\(//\)$' \| \
14961 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14962 $as_echo X"$as_dir" |
14963 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14967 /^X\(\/\/\)[^/].*/{
14980 test -d "$as_dir" && break
14982 test -z "$as_dirs" || eval "mkdir $as_dirs"
14983 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14987 if mkdir -p . 2>/dev/null; then
14988 as_mkdir_p='mkdir -p "$as_dir"'
14990 test -d ./-p && rmdir ./-p
14995 # as_fn_executable_p FILE
14996 # -----------------------
14997 # Test if FILE is an executable regular file.
14998 as_fn_executable_p ()
15000 test -f "$1" && test -x "$1"
15001 } # as_fn_executable_p
15002 as_test_x='test -x'
15003 as_executable_p=as_fn_executable_p
15005 # Sed expression to map a string onto a valid CPP name.
15006 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15008 # Sed expression to map a string onto a valid variable name.
15009 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15013 ## ----------------------------------- ##
15014 ## Main body of $CONFIG_STATUS script. ##
15015 ## ----------------------------------- ##
15017 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15019 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15020 # Save the log message, to keep $0 and so on meaningful, and to
15021 # report actual input values of CONFIG_FILES etc. instead of their
15022 # values after options handling.
15024 This file was extended by $as_me, which was
15025 generated by GNU Autoconf 2.69. Invocation command line was
15027 CONFIG_FILES = $CONFIG_FILES
15028 CONFIG_HEADERS = $CONFIG_HEADERS
15029 CONFIG_LINKS = $CONFIG_LINKS
15030 CONFIG_COMMANDS = $CONFIG_COMMANDS
15033 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15038 case $ac_config_files in *"
15039 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15042 case $ac_config_headers in *"
15043 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15047 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15048 # Files that config.status was made for.
15049 config_files="$ac_config_files"
15050 config_headers="$ac_config_headers"
15051 config_commands="$ac_config_commands"
15055 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15057 \`$as_me' instantiates files and other configuration actions
15058 from templates according to the current configuration. Unless the files
15059 and actions are specified as TAGs, all are instantiated by default.
15061 Usage: $0 [OPTION]... [TAG]...
15063 -h, --help print this help, then exit
15064 -V, --version print version number and configuration settings, then exit
15065 --config print configuration, then exit
15066 -q, --quiet, --silent
15067 do not print progress messages
15068 -d, --debug don't remove temporary files
15069 --recheck update $as_me by reconfiguring in the same conditions
15070 --file=FILE[:TEMPLATE]
15071 instantiate the configuration file FILE
15072 --header=FILE[:TEMPLATE]
15073 instantiate the configuration header FILE
15075 Configuration files:
15078 Configuration headers:
15081 Configuration commands:
15084 Report bugs to the package provider."
15087 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15088 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15091 configured by $0, generated by GNU Autoconf 2.69,
15092 with options \\"\$ac_cs_config\\"
15094 Copyright (C) 2012 Free Software Foundation, Inc.
15095 This config.status script is free software; the Free Software Foundation
15096 gives unlimited permission to copy, distribute and modify it."
15103 test -n "\$AWK" || AWK=awk
15106 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15107 # The default lists apply if the user does not specify any file.
15113 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15114 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15118 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15130 # Handling of the options.
15131 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15133 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15134 $as_echo "$ac_cs_version"; exit ;;
15135 --config | --confi | --conf | --con | --co | --c )
15136 $as_echo "$ac_cs_config"; exit ;;
15137 --debug | --debu | --deb | --de | --d | -d )
15139 --file | --fil | --fi | --f )
15142 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15143 '') as_fn_error $? "missing file argument" ;;
15145 as_fn_append CONFIG_FILES " '$ac_optarg'"
15146 ac_need_defaults=false;;
15147 --header | --heade | --head | --hea )
15150 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15152 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15153 ac_need_defaults=false;;
15155 # Conflict between --help and --header
15156 as_fn_error $? "ambiguous option: \`$1'
15157 Try \`$0 --help' for more information.";;
15158 --help | --hel | -h )
15159 $as_echo "$ac_cs_usage"; exit ;;
15160 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15161 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15164 # This is an error.
15165 -*) as_fn_error $? "unrecognized option: \`$1'
15166 Try \`$0 --help' for more information." ;;
15168 *) as_fn_append ac_config_targets " $1"
15169 ac_need_defaults=false ;;
15175 ac_configure_extra_args=
15177 if $ac_cs_silent; then
15179 ac_configure_extra_args="$ac_configure_extra_args --silent"
15183 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15184 if \$ac_cs_recheck; then
15185 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15187 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15188 CONFIG_SHELL='$SHELL'
15189 export CONFIG_SHELL
15194 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15198 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15199 ## Running $as_me. ##
15205 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15209 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
15210 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
15211 # from automake < 1.5.
15212 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15213 # Capture the value of LINGUAS because we need it to compute CATALOGS.
15214 LINGUAS="${LINGUAS-%UNSET%}"
15219 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15221 # Handling of arguments.
15222 for ac_config_target in $ac_config_targets
15224 case $ac_config_target in
15225 "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
15226 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
15227 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
15229 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15234 # If the user did not use the arguments to specify the items to instantiate,
15235 # then the envvar interface is used. Set only those that are not.
15236 # We use the long form for the default assignment because of an extremely
15237 # bizarre bug on SunOS 4.1.3.
15238 if $ac_need_defaults; then
15239 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15240 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15241 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15244 # Have a temporary directory for convenience. Make it in the build tree
15245 # simply because there is no reason against having it here, and in addition,
15246 # creating and moving files from /tmp can sometimes cause problems.
15247 # Hook for its removal unless debugging.
15248 # Note that there is a small window in which the directory will not be cleaned:
15249 # after its creation but before its name has been assigned to `$tmp'.
15253 trap 'exit_status=$?
15254 : "${ac_tmp:=$tmp}"
15255 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15257 trap 'as_fn_exit 1' 1 2 13 15
15259 # Create a (secure) tmp directory for tmp files.
15262 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15266 tmp=./conf$$-$RANDOM
15267 (umask 077 && mkdir "$tmp")
15268 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15271 # Set up the scripts for CONFIG_FILES section.
15272 # No need to generate them if there are no CONFIG_FILES.
15273 # This happens for instance with `./config.status config.h'.
15274 if test -n "$CONFIG_FILES"; then
15276 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15277 ac_cs_awk_getline=:
15278 ac_cs_awk_pipe_init=
15279 ac_cs_awk_read_file='
15280 while ((getline aline < (F[key])) > 0)
15283 ac_cs_awk_pipe_fini=
15285 ac_cs_awk_getline=false
15286 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15287 ac_cs_awk_read_file='
15289 print "cat " F[key] " &&"
15290 '$ac_cs_awk_pipe_init
15291 # The final `:' finishes the AND list.
15292 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15294 ac_cr=`echo X | tr X '\015'`
15295 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15296 # But we know of no other shell where ac_cr would be empty at this
15297 # point, so we can use a bashism as a fallback.
15298 if test "x$ac_cr" = x; then
15299 eval ac_cr=\$\'\\r\'
15301 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15302 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15305 ac_cs_awk_cr=$ac_cr
15308 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15311 # Create commands to substitute file output variables.
15313 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15314 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
15315 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15318 } >conf$$files.sh &&
15319 . ./conf$$files.sh ||
15320 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15321 rm -f conf$$files.sh
15324 echo "cat >conf$$subs.awk <<_ACEOF" &&
15325 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15327 } >conf$$subs.sh ||
15328 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15329 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15331 for ac_last_try in false false false false false :; do
15332 . ./conf$$subs.sh ||
15333 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15335 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15336 if test $ac_delim_n = $ac_delim_num; then
15338 elif $ac_last_try; then
15339 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15341 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15344 rm -f conf$$subs.sh
15346 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15347 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15351 s/^/S["/; s/!.*/"]=/
15361 s/\(.\{148\}\)..*/\1/
15363 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15368 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15375 s/\(.\{148\}\)..*/\1/
15377 s/["\\]/\\&/g; s/^/"/; s/$/"/
15381 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15386 ' <conf$$subs.awk | sed '
15391 ' >>$CONFIG_STATUS || ac_write_fail=1
15392 rm -f conf$$subs.awk
15393 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15395 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15396 for (key in S) S_is_set[key] = 1
15398 \$ac_cs_awk_pipe_init
15402 nfields = split(line, field, "@")
15404 len = length(field[1])
15405 for (i = 2; i < nfields; i++) {
15407 keylen = length(key)
15408 if (S_is_set[key]) {
15410 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15411 len += length(value) + length(field[++i])
15416 if (nfields == 3 && !substed) {
15418 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15419 \$ac_cs_awk_read_file
15425 \$ac_cs_awk_pipe_fini
15428 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15429 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15430 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15433 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15434 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15437 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15438 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15439 # trailing colons and then remove the whole line if VPATH becomes empty
15440 # (actually we leave an empty line to preserve line numbers).
15441 if test "x$srcdir" = x.; then
15442 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15460 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15461 fi # test -n "$CONFIG_FILES"
15463 # Set up the scripts for CONFIG_HEADERS section.
15464 # No need to generate them if there are no CONFIG_HEADERS.
15465 # This happens for instance with `./config.status Makefile'.
15466 if test -n "$CONFIG_HEADERS"; then
15467 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15471 # Transform confdefs.h into an awk script `defines.awk', embedded as
15472 # here-document in config.status, that substitutes the proper values into
15473 # config.h.in to produce config.h.
15475 # Create a delimiter string that does not exist in confdefs.h, to ease
15476 # handling of long lines.
15478 for ac_last_try in false false :; do
15479 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15480 if test -z "$ac_tt"; then
15482 elif $ac_last_try; then
15483 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15485 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15489 # For the awk script, D is an array of macro values keyed by name,
15490 # likewise P contains macro parameters if any. Preserve backslash
15491 # newline sequences.
15493 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15495 s/.\{148\}/&'"$ac_delim"'/g
15498 s/^[ ]*#[ ]*define[ ][ ]*/ /
15505 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15507 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15511 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15512 D["\1"]=" \3\\\\\\n"\\/p
15514 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15519 s/.\{148\}/&'"$ac_delim"'/g
15524 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15527 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15529 ' <confdefs.h | sed '
15530 s/'"$ac_delim"'/"\\\
15531 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15533 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15534 for (key in D) D_is_set[key] = 1
15537 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15539 split(line, arg, " ")
15540 if (arg[1] == "#") {
15544 defundef = substr(arg[1], 2)
15547 split(mac1, mac2, "(") #)
15549 prefix = substr(line, 1, index(line, defundef) - 1)
15550 if (D_is_set[macro]) {
15551 # Preserve the white space surrounding the "#".
15552 print prefix "define", macro P[macro] D[macro]
15555 # Replace #undef with comments. This is necessary, for example,
15556 # in the case of _POSIX_SOURCE, which is predefined and required
15557 # on some systems where configure will not decide to define it.
15558 if (defundef == "undef") {
15559 print "/*", prefix defundef, macro, "*/"
15567 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15568 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15569 fi # test -n "$CONFIG_HEADERS"
15572 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15577 :[FHLC]) ac_mode=$ac_tag; continue;;
15579 case $ac_mode$ac_tag in
15581 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15582 :[FH]-) ac_tag=-:-;;
15583 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15600 -) ac_f="$ac_tmp/stdin";;
15601 *) # Look for the file first in the build tree, then in the source tree
15602 # (if the path is not absolute). The absolute path cannot be DOS-style,
15603 # because $ac_f cannot contain `:'.
15607 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15609 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15611 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15612 as_fn_append ac_file_inputs " '$ac_f'"
15615 # Let's still pretend it is `configure' which instantiates (i.e., don't
15616 # use $as_me), people would be surprised to read:
15617 # /* config.h. Generated by config.status. */
15618 configure_input='Generated from '`
15619 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15621 if test x"$ac_file" != x-; then
15622 configure_input="$ac_file. $configure_input"
15623 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15624 $as_echo "$as_me: creating $ac_file" >&6;}
15626 # Neutralize special characters interpreted by sed in replacement strings.
15627 case $configure_input in #(
15628 *\&* | *\|* | *\\* )
15629 ac_sed_conf_input=`$as_echo "$configure_input" |
15630 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15631 *) ac_sed_conf_input=$configure_input;;
15635 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15636 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15641 ac_dir=`$as_dirname -- "$ac_file" ||
15642 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15643 X"$ac_file" : 'X\(//\)[^/]' \| \
15644 X"$ac_file" : 'X\(//\)$' \| \
15645 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15646 $as_echo X"$ac_file" |
15647 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15651 /^X\(\/\/\)[^/].*/{
15664 as_dir="$ac_dir"; as_fn_mkdir_p
15668 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15670 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15671 # A ".." for each directory in $ac_dir_suffix.
15672 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15673 case $ac_top_builddir_sub in
15674 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15675 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15678 ac_abs_top_builddir=$ac_pwd
15679 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15680 # for backward compatibility:
15681 ac_top_builddir=$ac_top_build_prefix
15684 .) # We are building in place.
15686 ac_top_srcdir=$ac_top_builddir_sub
15687 ac_abs_top_srcdir=$ac_pwd ;;
15688 [\\/]* | ?:[\\/]* ) # Absolute name.
15689 ac_srcdir=$srcdir$ac_dir_suffix;
15690 ac_top_srcdir=$srcdir
15691 ac_abs_top_srcdir=$srcdir ;;
15692 *) # Relative name.
15693 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15694 ac_top_srcdir=$ac_top_build_prefix$srcdir
15695 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15697 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15707 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15708 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15710 ac_MKDIR_P=$MKDIR_P
15712 [\\/$]* | ?:[\\/]* ) ;;
15713 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15717 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15718 # If the template does not know about datarootdir, expand it.
15719 # FIXME: This hack should be removed a few years after 2.60.
15720 ac_datarootdir_hack=; ac_datarootdir_seen=
15731 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15732 *datarootdir*) ac_datarootdir_seen=yes;;
15733 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15735 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15737 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15738 ac_datarootdir_hack='
15739 s&@datadir@&$datadir&g
15740 s&@docdir@&$docdir&g
15741 s&@infodir@&$infodir&g
15742 s&@localedir@&$localedir&g
15743 s&@mandir@&$mandir&g
15744 s&\\\${datarootdir}&$datarootdir&g' ;;
15748 # Neutralize VPATH when `$srcdir' = `.'.
15749 # Shell code in configure.ac might set extrasub.
15750 # FIXME: do we really want to maintain this feature?
15751 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15752 ac_sed_extra="$ac_vpsub
15755 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15757 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15758 s|@configure_input@|$ac_sed_conf_input|;t t
15759 s&@top_builddir@&$ac_top_builddir_sub&;t t
15760 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15761 s&@srcdir@&$ac_srcdir&;t t
15762 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15763 s&@top_srcdir@&$ac_top_srcdir&;t t
15764 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15765 s&@builddir@&$ac_builddir&;t t
15766 s&@abs_builddir@&$ac_abs_builddir&;t t
15767 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15768 s&@INSTALL@&$ac_INSTALL&;t t
15769 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15770 $ac_datarootdir_hack
15772 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15773 if $ac_cs_awk_getline; then
15774 $AWK -f "$ac_tmp/subs.awk"
15776 $AWK -f "$ac_tmp/subs.awk" | $SHELL
15778 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15780 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15781 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15782 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15783 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15785 which seems to be undefined. Please make sure it is defined" >&5
15786 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15787 which seems to be undefined. Please make sure it is defined" >&2;}
15789 rm -f "$ac_tmp/stdin"
15791 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15792 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15794 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15800 if test x"$ac_file" != x-; then
15802 $as_echo "/* $configure_input */" \
15803 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15804 } >"$ac_tmp/config.h" \
15805 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15806 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15807 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15808 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15811 mv "$ac_tmp/config.h" "$ac_file" \
15812 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15815 $as_echo "/* $configure_input */" \
15816 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15817 || as_fn_error $? "could not create -" "$LINENO" 5
15821 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15822 $as_echo "$as_me: executing $ac_file commands" >&6;}
15827 case $ac_file$ac_mode in
15828 "po-directories":C)
15829 for ac_file in $CONFIG_FILES; do
15830 # Support "outfile[:infile[:infile...]]"
15832 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15834 # PO directories have a Makefile.in generated from Makefile.in.in.
15835 case "$ac_file" in */Makefile.in)
15836 # Adjust a relative srcdir.
15837 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
15838 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
15839 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
15840 # In autoconf-2.13 it is called $ac_given_srcdir.
15841 # In autoconf-2.50 it is called $srcdir.
15842 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
15843 case "$ac_given_srcdir" in
15844 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
15845 /*) top_srcdir="$ac_given_srcdir" ;;
15846 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
15848 # Treat a directory as a PO directory if and only if it has a
15849 # POTFILES.in file. This allows packages to have multiple PO
15850 # directories under different names or in different locations.
15851 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15852 rm -f "$ac_dir/POTFILES"
15853 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
15854 gt_tab=`printf '\t'`
15855 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"
15856 POMAKEFILEDEPS="POTFILES.in"
15857 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
15858 # on $ac_dir but don't depend on user-specified configuration
15860 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15861 # The LINGUAS file contains the set of available languages.
15862 if test -n "$OBSOLETE_ALL_LINGUAS"; then
15863 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
15865 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15866 # Hide the ALL_LINGUAS assignment from automake < 1.5.
15867 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
15868 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
15870 # The set of available languages was given in configure.in.
15871 # Hide the ALL_LINGUAS assignment from automake < 1.5.
15872 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
15875 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
15876 # Compute UPDATEPOFILES
15877 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
15878 # Compute DUMMYPOFILES
15879 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
15881 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
15882 case "$ac_given_srcdir" in
15884 *) srcdirpre='$(srcdir)/' ;;
15890 for lang in $ALL_LINGUAS; do
15891 POFILES="$POFILES $srcdirpre$lang.po"
15892 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
15893 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
15894 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
15896 # CATALOGS depends on both $ac_dir and the user's LINGUAS
15897 # environment variable.
15899 if test -n "$ALL_LINGUAS"; then
15900 for presentlang in $ALL_LINGUAS; do
15902 if test "%UNSET%" != "$LINGUAS"; then
15903 desiredlanguages="$LINGUAS"
15905 desiredlanguages="$ALL_LINGUAS"
15907 for desiredlang in $desiredlanguages; do
15908 # Use the presentlang catalog if desiredlang is
15909 # a. equal to presentlang, or
15910 # b. a variant of presentlang (because in this case,
15911 # presentlang can be used as a fallback for messages
15912 # which are not translated in the desiredlang catalog).
15913 case "$desiredlang" in
15914 "$presentlang"*) useit=yes;;
15917 if test $useit = yes; then
15918 INST_LINGUAS="$INST_LINGUAS $presentlang"
15923 if test -n "$INST_LINGUAS"; then
15924 for lang in $INST_LINGUAS; do
15925 CATALOGS="$CATALOGS $lang.gmo"
15928 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
15929 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"
15930 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
15931 if test -f "$f"; then
15933 *.orig | *.bak | *~) ;;
15934 *) cat "$f" >> "$ac_dir/Makefile" ;;
15949 ac_clean_files=$ac_clean_files_save
15951 test $ac_write_fail = 0 ||
15952 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15955 # configure is writing to config.log, and then calls config.status.
15956 # config.status does its own redirection, appending to config.log.
15957 # Unfortunately, on DOS this fails, as config.log is still kept open
15958 # by configure, so config.status won't be able to write to it; its
15959 # output is simply discarded. So we exec the FD to /dev/null,
15960 # effectively closing config.log, so it can be properly (re)opened and
15961 # appended to by config.status. When coming back to configure, we
15962 # need to make the FD available again.
15963 if test "$no_create" != yes; then
15965 ac_config_status_args=
15966 test "$silent" = yes &&
15967 ac_config_status_args="$ac_config_status_args --quiet"
15969 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15971 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15972 # would make configure fail if this is the last instruction.
15973 $ac_cs_success || as_fn_exit 1
15975 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15977 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15980 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi