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
680 INTL_LIBTOOL_SUFFIX_PREFIX
687 BUILD_INCLUDED_LIBINTL
697 INTL_DEFAULT_VERBOSITY
716 XGETTEXT_EXTRA_OPTIONS
724 GETTEXT_MACRO_VERSION
832 program_transform_name
843 ac_subst_files='MCONFIG
849 PUBLIC_CONFIG_HEADER'
851 enable_option_checking
857 enable_maintainer_mode
858 enable_symlink_install
859 enable_relative_symlinks
860 enable_symlink_relative_symlinks
862 enable_verbose_makecmds
879 enable_e2initrd_helper
885 enable_bmap_stats_ops
892 with_included_gettext
897 ac_precious_vars='build_alias
911 # Initialize some variables set by options.
913 ac_init_version=false
914 ac_unrecognized_opts=
916 # The variables have the same names as the options, with
917 # dashes changed to underlines.
925 program_transform_name=s,x,x,
933 # Installation directory options.
934 # These are left unexpanded so users can "make install exec_prefix=/foo"
935 # and all the variables that are supposed to be based on exec_prefix
936 # by default will actually change.
937 # Use braces instead of parens because sh, perl, etc. also accept them.
938 # (The list follows the same order as the GNU Coding Standards.)
939 bindir='${exec_prefix}/bin'
940 sbindir='${exec_prefix}/sbin'
941 libexecdir='${exec_prefix}/libexec'
942 datarootdir='${prefix}/share'
943 datadir='${datarootdir}'
944 sysconfdir='${prefix}/etc'
945 sharedstatedir='${prefix}/com'
946 localstatedir='${prefix}/var'
947 runstatedir='${localstatedir}/run'
948 includedir='${prefix}/include'
949 oldincludedir='/usr/include'
950 docdir='${datarootdir}/doc/${PACKAGE}'
951 infodir='${datarootdir}/info'
956 libdir='${exec_prefix}/lib'
957 localedir='${datarootdir}/locale'
958 mandir='${datarootdir}/man'
964 # If the previous option needs an argument, assign it.
965 if test -n "$ac_prev"; then
966 eval $ac_prev=\$ac_option
972 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
977 # Accept the important Cygnus configure options, so we can diagnose typos.
979 case $ac_dashdash$ac_option in
983 -bindir | --bindir | --bindi | --bind | --bin | --bi)
985 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
988 -build | --build | --buil | --bui | --bu)
989 ac_prev=build_alias ;;
990 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
991 build_alias=$ac_optarg ;;
993 -cache-file | --cache-file | --cache-fil | --cache-fi \
994 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
995 ac_prev=cache_file ;;
996 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
997 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
998 cache_file=$ac_optarg ;;
1000 --config-cache | -C)
1001 cache_file=config.cache ;;
1003 -datadir | --datadir | --datadi | --datad)
1005 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1006 datadir=$ac_optarg ;;
1008 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1009 | --dataroo | --dataro | --datar)
1010 ac_prev=datarootdir ;;
1011 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1012 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1013 datarootdir=$ac_optarg ;;
1015 -disable-* | --disable-*)
1016 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1017 # Reject names that are not valid shell variable names.
1018 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1019 as_fn_error $? "invalid feature name: $ac_useropt"
1020 ac_useropt_orig=$ac_useropt
1021 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1022 case $ac_user_opts in
1024 "enable_$ac_useropt"
1026 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1027 ac_unrecognized_sep=', ';;
1029 eval enable_$ac_useropt=no ;;
1031 -docdir | --docdir | --docdi | --doc | --do)
1033 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1034 docdir=$ac_optarg ;;
1036 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1038 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1039 dvidir=$ac_optarg ;;
1041 -enable-* | --enable-*)
1042 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1043 # Reject names that are not valid shell variable names.
1044 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1045 as_fn_error $? "invalid feature name: $ac_useropt"
1046 ac_useropt_orig=$ac_useropt
1047 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1048 case $ac_user_opts in
1050 "enable_$ac_useropt"
1052 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1053 ac_unrecognized_sep=', ';;
1055 eval enable_$ac_useropt=\$ac_optarg ;;
1057 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1058 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1059 | --exec | --exe | --ex)
1060 ac_prev=exec_prefix ;;
1061 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1062 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1063 | --exec=* | --exe=* | --ex=*)
1064 exec_prefix=$ac_optarg ;;
1066 -gas | --gas | --ga | --g)
1067 # Obsolete; use --with-gas.
1070 -help | --help | --hel | --he | -h)
1071 ac_init_help=long ;;
1072 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1073 ac_init_help=recursive ;;
1074 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1075 ac_init_help=short ;;
1077 -host | --host | --hos | --ho)
1078 ac_prev=host_alias ;;
1079 -host=* | --host=* | --hos=* | --ho=*)
1080 host_alias=$ac_optarg ;;
1082 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1084 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1086 htmldir=$ac_optarg ;;
1088 -includedir | --includedir | --includedi | --included | --include \
1089 | --includ | --inclu | --incl | --inc)
1090 ac_prev=includedir ;;
1091 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1092 | --includ=* | --inclu=* | --incl=* | --inc=*)
1093 includedir=$ac_optarg ;;
1095 -infodir | --infodir | --infodi | --infod | --info | --inf)
1097 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1098 infodir=$ac_optarg ;;
1100 -libdir | --libdir | --libdi | --libd)
1102 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1103 libdir=$ac_optarg ;;
1105 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1106 | --libexe | --libex | --libe)
1107 ac_prev=libexecdir ;;
1108 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1109 | --libexe=* | --libex=* | --libe=*)
1110 libexecdir=$ac_optarg ;;
1112 -localedir | --localedir | --localedi | --localed | --locale)
1113 ac_prev=localedir ;;
1114 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1115 localedir=$ac_optarg ;;
1117 -localstatedir | --localstatedir | --localstatedi | --localstated \
1118 | --localstate | --localstat | --localsta | --localst | --locals)
1119 ac_prev=localstatedir ;;
1120 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1121 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1122 localstatedir=$ac_optarg ;;
1124 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1126 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1127 mandir=$ac_optarg ;;
1129 -nfp | --nfp | --nf)
1130 # Obsolete; use --without-fp.
1133 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1134 | --no-cr | --no-c | -n)
1137 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1138 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1141 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1142 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1143 | --oldin | --oldi | --old | --ol | --o)
1144 ac_prev=oldincludedir ;;
1145 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1146 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1147 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1148 oldincludedir=$ac_optarg ;;
1150 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1152 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1153 prefix=$ac_optarg ;;
1155 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1156 | --program-pre | --program-pr | --program-p)
1157 ac_prev=program_prefix ;;
1158 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1159 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1160 program_prefix=$ac_optarg ;;
1162 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1163 | --program-suf | --program-su | --program-s)
1164 ac_prev=program_suffix ;;
1165 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1166 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1167 program_suffix=$ac_optarg ;;
1169 -program-transform-name | --program-transform-name \
1170 | --program-transform-nam | --program-transform-na \
1171 | --program-transform-n | --program-transform- \
1172 | --program-transform | --program-transfor \
1173 | --program-transfo | --program-transf \
1174 | --program-trans | --program-tran \
1175 | --progr-tra | --program-tr | --program-t)
1176 ac_prev=program_transform_name ;;
1177 -program-transform-name=* | --program-transform-name=* \
1178 | --program-transform-nam=* | --program-transform-na=* \
1179 | --program-transform-n=* | --program-transform-=* \
1180 | --program-transform=* | --program-transfor=* \
1181 | --program-transfo=* | --program-transf=* \
1182 | --program-trans=* | --program-tran=* \
1183 | --progr-tra=* | --program-tr=* | --program-t=*)
1184 program_transform_name=$ac_optarg ;;
1186 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1188 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1189 pdfdir=$ac_optarg ;;
1191 -psdir | --psdir | --psdi | --psd | --ps)
1193 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1196 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1197 | -silent | --silent | --silen | --sile | --sil)
1200 -runstatedir | --runstatedir | --runstatedi | --runstated \
1201 | --runstate | --runstat | --runsta | --runst | --runs \
1202 | --run | --ru | --r)
1203 ac_prev=runstatedir ;;
1204 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1205 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1206 | --run=* | --ru=* | --r=*)
1207 runstatedir=$ac_optarg ;;
1209 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1211 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1213 sbindir=$ac_optarg ;;
1215 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1216 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1217 | --sharedst | --shareds | --shared | --share | --shar \
1219 ac_prev=sharedstatedir ;;
1220 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1221 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1222 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1224 sharedstatedir=$ac_optarg ;;
1226 -site | --site | --sit)
1228 -site=* | --site=* | --sit=*)
1231 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1233 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1234 srcdir=$ac_optarg ;;
1236 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1237 | --syscon | --sysco | --sysc | --sys | --sy)
1238 ac_prev=sysconfdir ;;
1239 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1240 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1241 sysconfdir=$ac_optarg ;;
1243 -target | --target | --targe | --targ | --tar | --ta | --t)
1244 ac_prev=target_alias ;;
1245 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1246 target_alias=$ac_optarg ;;
1248 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1251 -version | --version | --versio | --versi | --vers | -V)
1252 ac_init_version=: ;;
1255 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1256 # Reject names that are not valid shell variable names.
1257 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1258 as_fn_error $? "invalid package name: $ac_useropt"
1259 ac_useropt_orig=$ac_useropt
1260 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1261 case $ac_user_opts in
1265 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1266 ac_unrecognized_sep=', ';;
1268 eval with_$ac_useropt=\$ac_optarg ;;
1270 -without-* | --without-*)
1271 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1272 # Reject names that are not valid shell variable names.
1273 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1274 as_fn_error $? "invalid package name: $ac_useropt"
1275 ac_useropt_orig=$ac_useropt
1276 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1277 case $ac_user_opts in
1281 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1282 ac_unrecognized_sep=', ';;
1284 eval with_$ac_useropt=no ;;
1287 # Obsolete; use --with-x.
1290 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1291 | --x-incl | --x-inc | --x-in | --x-i)
1292 ac_prev=x_includes ;;
1293 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1294 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1295 x_includes=$ac_optarg ;;
1297 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1298 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1299 ac_prev=x_libraries ;;
1300 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1301 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1302 x_libraries=$ac_optarg ;;
1304 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1305 Try \`$0 --help' for more information"
1309 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1310 # Reject names that are not valid shell variable names.
1311 case $ac_envvar in #(
1312 '' | [0-9]* | *[!_$as_cr_alnum]* )
1313 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1315 eval $ac_envvar=\$ac_optarg
1316 export $ac_envvar ;;
1319 # FIXME: should be removed in autoconf 3.0.
1320 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1321 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1322 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1323 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1329 if test -n "$ac_prev"; then
1330 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1331 as_fn_error $? "missing argument to $ac_option"
1334 if test -n "$ac_unrecognized_opts"; then
1335 case $enable_option_checking in
1337 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1338 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1342 # Check all directory arguments for consistency.
1343 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1344 datadir sysconfdir sharedstatedir localstatedir includedir \
1345 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1346 libdir localedir mandir runstatedir
1348 eval ac_val=\$$ac_var
1349 # Remove trailing slashes.
1352 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1353 eval $ac_var=\$ac_val;;
1355 # Be sure to have absolute directory names.
1357 [\\/$]* | ?:[\\/]* ) continue;;
1358 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1360 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1363 # There might be people who depend on the old broken behavior: `$host'
1364 # used to hold the argument of --host etc.
1365 # FIXME: To remove some day.
1368 target=$target_alias
1370 # FIXME: To remove some day.
1371 if test "x$host_alias" != x; then
1372 if test "x$build_alias" = x; then
1373 cross_compiling=maybe
1374 elif test "x$build_alias" != "x$host_alias"; then
1380 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1382 test "$silent" = yes && exec 6>/dev/null
1385 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1386 ac_ls_di=`ls -di .` &&
1387 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1388 as_fn_error $? "working directory cannot be determined"
1389 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1390 as_fn_error $? "pwd does not report name of working directory"
1393 # Find the source files, if location was not specified.
1394 if test -z "$srcdir"; then
1395 ac_srcdir_defaulted=yes
1396 # Try the directory containing this script, then the parent directory.
1397 ac_confdir=`$as_dirname -- "$as_myself" ||
1398 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1399 X"$as_myself" : 'X\(//\)[^/]' \| \
1400 X"$as_myself" : 'X\(//\)$' \| \
1401 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1402 $as_echo X"$as_myself" |
1403 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1421 if test ! -r "$srcdir/$ac_unique_file"; then
1425 ac_srcdir_defaulted=no
1427 if test ! -r "$srcdir/$ac_unique_file"; then
1428 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1429 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1431 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1433 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1435 # When building in place, set srcdir=.
1436 if test "$ac_abs_confdir" = "$ac_pwd"; then
1439 # Remove unnecessary trailing slashes from srcdir.
1440 # Double slashes in file names in object file debugging info
1441 # mess up M-x gdb in Emacs.
1443 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1445 for ac_var in $ac_precious_vars; do
1446 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1447 eval ac_env_${ac_var}_value=\$${ac_var}
1448 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1449 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1453 # Report the --help message.
1455 if test "$ac_init_help" = "long"; then
1456 # Omit some internal or obsolete options to make the list less imposing.
1457 # This message is too long to be a string in the A/UX 3.1 sh.
1459 \`configure' configures this package to adapt to many kinds of systems.
1461 Usage: $0 [OPTION]... [VAR=VALUE]...
1463 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1464 VAR=VALUE. See below for descriptions of some of the useful variables.
1466 Defaults for the options are specified in brackets.
1469 -h, --help display this help and exit
1470 --help=short display options specific to this package
1471 --help=recursive display the short help of all the included packages
1472 -V, --version display version information and exit
1473 -q, --quiet, --silent do not print \`checking ...' messages
1474 --cache-file=FILE cache test results in FILE [disabled]
1475 -C, --config-cache alias for \`--cache-file=config.cache'
1476 -n, --no-create do not create output files
1477 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1479 Installation directories:
1480 --prefix=PREFIX install architecture-independent files in PREFIX
1481 [$ac_default_prefix]
1482 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1485 By default, \`make install' will install all the files in
1486 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1487 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1488 for instance \`--prefix=\$HOME'.
1490 For better control, use the options below.
1492 Fine tuning of the installation directories:
1493 --bindir=DIR user executables [EPREFIX/bin]
1494 --sbindir=DIR system admin executables [EPREFIX/sbin]
1495 --libexecdir=DIR program executables [EPREFIX/libexec]
1496 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1497 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1498 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1499 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1500 --libdir=DIR object code libraries [EPREFIX/lib]
1501 --includedir=DIR C header files [PREFIX/include]
1502 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1503 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1504 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1505 --infodir=DIR info documentation [DATAROOTDIR/info]
1506 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1507 --mandir=DIR man documentation [DATAROOTDIR/man]
1508 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1509 --htmldir=DIR html documentation [DOCDIR]
1510 --dvidir=DIR dvi documentation [DOCDIR]
1511 --pdfdir=DIR pdf documentation [DOCDIR]
1512 --psdir=DIR ps documentation [DOCDIR]
1518 --build=BUILD configure for building on BUILD [guessed]
1519 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1523 if test -n "$ac_init_help"; then
1528 --disable-option-checking ignore unrecognized --enable/--with options
1529 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1530 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1531 --enable-maintainer-mode enable makefile rules useful for maintainers
1532 --enable-symlink-install use symlinks when installing instead of hard links
1533 --enable-relative-symlinks use relative symlinks when installing
1535 --enable-symlink-build use symlinks while building instead of hard links
1536 --enable-verbose-makecmds enable verbose make command output
1537 --enable-elf-shlibs select ELF shared libraries
1538 --enable-bsd-shlibs select BSD shared libraries
1539 --enable-profile build profiling libraries
1540 --enable-gcov build for coverage testing using gcov
1541 --enable-hardening build for coverage testing using gcov
1542 --enable-jbd-debug enable journal debugging
1543 --enable-blkid-debug enable blkid debugging
1544 --disable-testio-debug disable the use of the test I/O manager for debugging
1545 --enable-libuuid build and use private uuid library
1546 --enable-libblkid build and use private blkid library
1547 --disable-backtrace disable use backtrace
1548 --disable-debugfs disable support of debugfs program
1549 --disable-imager disable support of e2image program
1550 --disable-resizer disable support of e2resize program
1551 --disable-defrag disable support of e4defrag program
1552 --enable-fsck build fsck wrapper program
1553 --enable-e2initrd-helper build e2initrd-helper program
1554 --disable-tls disable use of thread local support
1555 --disable-uuidd disable building the uuid daemon
1556 --disable-mmp disable support mmp, Multi Mount Protection
1557 --disable-tdb disable tdb support
1558 --disable-bmap-stats disable collection of bitmap stats.
1559 --enable-bmap-stats-ops enable collection of additional bitmap stats
1560 --disable-nls do not use Native Language Support
1561 --enable-threads={posix|solaris|pth|windows}
1562 specify multithreading API
1563 --disable-threads build without multithread safety
1564 --disable-rpath do not hardcode runtime library paths
1565 --disable-fuse2fs do not build fuse2fs
1568 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1569 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1570 --with-diet-libc use diet libc
1571 --with-cc no longer supported, use CC= instead
1572 --with-ccopts no longer supported, use CFLAGS= instead
1573 --with-ldopts no longer supported, use LDFLAGS= instead
1574 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1575 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1576 --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
1577 --without-libpth-prefix don't search for libpth in includedir and libdir
1578 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1579 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1580 --with-included-gettext use the GNU gettext library included here
1581 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1582 --without-libintl-prefix don't search for libintl in includedir and libdir
1583 --with-multiarch=ARCH specify the multiarch triplet
1585 Some influential environment variables:
1586 CC C compiler command
1587 CFLAGS C compiler flags
1588 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1589 nonstandard directory <lib dir>
1590 LIBS libraries to pass to the linker, e.g. -l<library>
1591 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1592 you have headers in a nonstandard directory <include dir>
1594 PKG_CONFIG path to pkg-config utility
1596 directories to add to pkg-config's search path
1598 path overriding pkg-config's built-in search path
1600 Use these variables to override the choices made by `configure' or to help
1601 it to find libraries and programs with nonstandard names/locations.
1603 Report bugs to the package provider.
1608 if test "$ac_init_help" = "recursive"; then
1609 # If there are subdirs, report their specific --help.
1610 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1611 test -d "$ac_dir" ||
1612 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1617 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1619 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1620 # A ".." for each directory in $ac_dir_suffix.
1621 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1622 case $ac_top_builddir_sub in
1623 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1624 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1627 ac_abs_top_builddir=$ac_pwd
1628 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1629 # for backward compatibility:
1630 ac_top_builddir=$ac_top_build_prefix
1633 .) # We are building in place.
1635 ac_top_srcdir=$ac_top_builddir_sub
1636 ac_abs_top_srcdir=$ac_pwd ;;
1637 [\\/]* | ?:[\\/]* ) # Absolute name.
1638 ac_srcdir=$srcdir$ac_dir_suffix;
1639 ac_top_srcdir=$srcdir
1640 ac_abs_top_srcdir=$srcdir ;;
1642 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1643 ac_top_srcdir=$ac_top_build_prefix$srcdir
1644 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1646 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1648 cd "$ac_dir" || { ac_status=$?; continue; }
1649 # Check for guested configure.
1650 if test -f "$ac_srcdir/configure.gnu"; then
1652 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1653 elif test -f "$ac_srcdir/configure"; then
1655 $SHELL "$ac_srcdir/configure" --help=recursive
1657 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1659 cd "$ac_pwd" || { ac_status=$?; break; }
1663 test -n "$ac_init_help" && exit $ac_status
1664 if $ac_init_version; then
1667 generated by GNU Autoconf 2.69
1669 Copyright (C) 2012 Free Software Foundation, Inc.
1670 This configure script is free software; the Free Software Foundation
1671 gives unlimited permission to copy, distribute and modify it.
1676 ## ------------------------ ##
1677 ## Autoconf initialization. ##
1678 ## ------------------------ ##
1680 # ac_fn_c_try_compile LINENO
1681 # --------------------------
1682 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1683 ac_fn_c_try_compile ()
1685 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1686 rm -f conftest.$ac_objext
1687 if { { ac_try="$ac_compile"
1689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1690 *) ac_try_echo=$ac_try;;
1692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1693 $as_echo "$ac_try_echo"; } >&5
1694 (eval "$ac_compile") 2>conftest.err
1696 if test -s conftest.err; then
1697 grep -v '^ *+' conftest.err >conftest.er1
1698 cat conftest.er1 >&5
1699 mv -f conftest.er1 conftest.err
1701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1702 test $ac_status = 0; } && {
1703 test -z "$ac_c_werror_flag" ||
1704 test ! -s conftest.err
1705 } && test -s conftest.$ac_objext; then :
1708 $as_echo "$as_me: failed program was:" >&5
1709 sed 's/^/| /' conftest.$ac_ext >&5
1713 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1714 as_fn_set_status $ac_retval
1716 } # ac_fn_c_try_compile
1718 # ac_fn_c_try_link LINENO
1719 # -----------------------
1720 # Try to link conftest.$ac_ext, and return whether this succeeded.
1723 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1724 rm -f conftest.$ac_objext conftest$ac_exeext
1725 if { { ac_try="$ac_link"
1727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1728 *) ac_try_echo=$ac_try;;
1730 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1731 $as_echo "$ac_try_echo"; } >&5
1732 (eval "$ac_link") 2>conftest.err
1734 if test -s conftest.err; then
1735 grep -v '^ *+' conftest.err >conftest.er1
1736 cat conftest.er1 >&5
1737 mv -f conftest.er1 conftest.err
1739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1740 test $ac_status = 0; } && {
1741 test -z "$ac_c_werror_flag" ||
1742 test ! -s conftest.err
1743 } && test -s conftest$ac_exeext && {
1744 test "$cross_compiling" = yes ||
1745 test -x conftest$ac_exeext
1749 $as_echo "$as_me: failed program was:" >&5
1750 sed 's/^/| /' conftest.$ac_ext >&5
1754 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1755 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1756 # interfere with the next link command; also delete a directory that is
1757 # left behind by Apple's compiler. We do this before executing the actions.
1758 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1759 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1760 as_fn_set_status $ac_retval
1762 } # ac_fn_c_try_link
1764 # ac_fn_c_try_cpp LINENO
1765 # ----------------------
1766 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1769 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1770 if { { ac_try="$ac_cpp conftest.$ac_ext"
1772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1773 *) ac_try_echo=$ac_try;;
1775 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1776 $as_echo "$ac_try_echo"; } >&5
1777 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1779 if test -s conftest.err; then
1780 grep -v '^ *+' conftest.err >conftest.er1
1781 cat conftest.er1 >&5
1782 mv -f conftest.er1 conftest.err
1784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1785 test $ac_status = 0; } > conftest.i && {
1786 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1787 test ! -s conftest.err
1791 $as_echo "$as_me: failed program was:" >&5
1792 sed 's/^/| /' conftest.$ac_ext >&5
1796 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1797 as_fn_set_status $ac_retval
1801 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1802 # -------------------------------------------------------
1803 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1804 # the include files in INCLUDES and setting the cache variable VAR
1806 ac_fn_c_check_header_mongrel ()
1808 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1809 if eval \${$3+:} false; then :
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1811 $as_echo_n "checking for $2... " >&6; }
1812 if eval \${$3+:} false; then :
1813 $as_echo_n "(cached) " >&6
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1817 $as_echo "$ac_res" >&6; }
1819 # Is the header compilable?
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1821 $as_echo_n "checking $2 usability... " >&6; }
1822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1823 /* end confdefs.h. */
1827 if ac_fn_c_try_compile "$LINENO"; then :
1828 ac_header_compiler=yes
1830 ac_header_compiler=no
1832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1834 $as_echo "$ac_header_compiler" >&6; }
1836 # Is the header present?
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1838 $as_echo_n "checking $2 presence... " >&6; }
1839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1840 /* end confdefs.h. */
1843 if ac_fn_c_try_cpp "$LINENO"; then :
1844 ac_header_preproc=yes
1846 ac_header_preproc=no
1848 rm -f conftest.err conftest.i conftest.$ac_ext
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1850 $as_echo "$ac_header_preproc" >&6; }
1852 # So? What about this header?
1853 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1856 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1858 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1862 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1864 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1866 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1868 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1870 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1874 $as_echo_n "checking for $2... " >&6; }
1875 if eval \${$3+:} false; then :
1876 $as_echo_n "(cached) " >&6
1878 eval "$3=\$ac_header_compiler"
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1882 $as_echo "$ac_res" >&6; }
1884 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1886 } # ac_fn_c_check_header_mongrel
1888 # ac_fn_c_try_run LINENO
1889 # ----------------------
1890 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1891 # that executables *can* be run.
1894 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1895 if { { ac_try="$ac_link"
1897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1898 *) ac_try_echo=$ac_try;;
1900 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1901 $as_echo "$ac_try_echo"; } >&5
1902 (eval "$ac_link") 2>&5
1904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1905 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1906 { { case "(($ac_try" in
1907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1908 *) ac_try_echo=$ac_try;;
1910 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1911 $as_echo "$ac_try_echo"; } >&5
1912 (eval "$ac_try") 2>&5
1914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1915 test $ac_status = 0; }; }; then :
1918 $as_echo "$as_me: program exited with status $ac_status" >&5
1919 $as_echo "$as_me: failed program was:" >&5
1920 sed 's/^/| /' conftest.$ac_ext >&5
1922 ac_retval=$ac_status
1924 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1925 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1926 as_fn_set_status $ac_retval
1930 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1931 # -------------------------------------------------------
1932 # Tests whether HEADER exists and can be compiled using the include files in
1933 # INCLUDES, setting the cache variable VAR accordingly.
1934 ac_fn_c_check_header_compile ()
1936 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1938 $as_echo_n "checking for $2... " >&6; }
1939 if eval \${$3+:} false; then :
1940 $as_echo_n "(cached) " >&6
1942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1943 /* end confdefs.h. */
1947 if ac_fn_c_try_compile "$LINENO"; then :
1952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1956 $as_echo "$ac_res" >&6; }
1957 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1959 } # ac_fn_c_check_header_compile
1961 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1962 # -------------------------------------------
1963 # Tests whether TYPE exists after having included INCLUDES, setting cache
1964 # variable VAR accordingly.
1965 ac_fn_c_check_type ()
1967 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1969 $as_echo_n "checking for $2... " >&6; }
1970 if eval \${$3+:} false; then :
1971 $as_echo_n "(cached) " >&6
1974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1975 /* end confdefs.h. */
1986 if ac_fn_c_try_compile "$LINENO"; then :
1987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1988 /* end confdefs.h. */
1999 if ac_fn_c_try_compile "$LINENO"; then :
2004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2010 $as_echo "$ac_res" >&6; }
2011 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2013 } # ac_fn_c_check_type
2015 # ac_fn_c_check_func LINENO FUNC VAR
2016 # ----------------------------------
2017 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2018 ac_fn_c_check_func ()
2020 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2022 $as_echo_n "checking for $2... " >&6; }
2023 if eval \${$3+:} false; then :
2024 $as_echo_n "(cached) " >&6
2026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2027 /* end confdefs.h. */
2028 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2029 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2030 #define $2 innocuous_$2
2032 /* System header to define __stub macros and hopefully few prototypes,
2033 which can conflict with char $2 (); below.
2034 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2035 <limits.h> exists even on freestanding compilers. */
2038 # include <limits.h>
2040 # include <assert.h>
2045 /* Override any GCC internal prototype to avoid an error.
2046 Use char because int might match the return type of a GCC
2047 builtin and then its argument prototype would still apply. */
2052 /* The GNU C library defines this for functions which it implements
2053 to always fail with ENOSYS. Some functions are actually named
2054 something starting with __ and the normal name is an alias. */
2055 #if defined __stub_$2 || defined __stub___$2
2067 if ac_fn_c_try_link "$LINENO"; then :
2072 rm -f core conftest.err conftest.$ac_objext \
2073 conftest$ac_exeext conftest.$ac_ext
2076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2077 $as_echo "$ac_res" >&6; }
2078 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2080 } # ac_fn_c_check_func
2082 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2083 # ---------------------------------------------
2084 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2086 ac_fn_c_check_decl ()
2088 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2089 as_decl_name=`echo $2|sed 's/ *(.*//'`
2090 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2092 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2093 if eval \${$3+:} false; then :
2094 $as_echo_n "(cached) " >&6
2096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2097 /* end confdefs.h. */
2102 #ifndef $as_decl_name
2104 (void) $as_decl_use;
2106 (void) $as_decl_name;
2114 if ac_fn_c_try_compile "$LINENO"; then :
2119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2123 $as_echo "$ac_res" >&6; }
2124 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2126 } # ac_fn_c_check_decl
2128 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2129 # --------------------------------------------
2130 # Tries to find the compile-time value of EXPR in a program that includes
2131 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2133 ac_fn_c_compute_int ()
2135 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2136 if test "$cross_compiling" = yes; then
2137 # Depending upon the size, compute the lo and hi bounds.
2138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2139 /* end confdefs.h. */
2144 static int test_array [1 - 2 * !(($2) >= 0)];
2146 return test_array [0];
2152 if ac_fn_c_try_compile "$LINENO"; then :
2155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2156 /* end confdefs.h. */
2161 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2163 return test_array [0];
2169 if ac_fn_c_try_compile "$LINENO"; then :
2170 ac_hi=$ac_mid; break
2172 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2173 if test $ac_lo -le $ac_mid; then
2177 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2183 /* end confdefs.h. */
2188 static int test_array [1 - 2 * !(($2) < 0)];
2190 return test_array [0];
2196 if ac_fn_c_try_compile "$LINENO"; then :
2199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2200 /* end confdefs.h. */
2205 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2207 return test_array [0];
2213 if ac_fn_c_try_compile "$LINENO"; then :
2214 ac_lo=$ac_mid; break
2216 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2217 if test $ac_mid -le $ac_hi; then
2221 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2231 # Binary search between lo and hi bounds.
2232 while test "x$ac_lo" != "x$ac_hi"; do
2233 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2235 /* end confdefs.h. */
2240 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2242 return test_array [0];
2248 if ac_fn_c_try_compile "$LINENO"; then :
2251 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2256 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2261 /* end confdefs.h. */
2263 static long int longval () { return $2; }
2264 static unsigned long int ulongval () { return $2; }
2271 FILE *f = fopen ("conftest.val", "w");
2276 long int i = longval ();
2279 fprintf (f, "%ld", i);
2283 unsigned long int i = ulongval ();
2286 fprintf (f, "%lu", i);
2288 /* Do not output a trailing newline, as this causes \r\n confusion
2289 on some platforms. */
2290 return ferror (f) || fclose (f) != 0;
2296 if ac_fn_c_try_run "$LINENO"; then :
2297 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2301 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2302 conftest.$ac_objext conftest.beam conftest.$ac_ext
2306 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2307 as_fn_set_status $ac_retval
2309 } # ac_fn_c_compute_int
2311 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2312 # ----------------------------------------------------
2313 # Tries to find if the field MEMBER exists in type AGGR, after including
2314 # INCLUDES, setting cache variable VAR accordingly.
2315 ac_fn_c_check_member ()
2317 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2319 $as_echo_n "checking for $2.$3... " >&6; }
2320 if eval \${$4+:} false; then :
2321 $as_echo_n "(cached) " >&6
2323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2324 /* end confdefs.h. */
2336 if ac_fn_c_try_compile "$LINENO"; then :
2339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2340 /* end confdefs.h. */
2346 if (sizeof ac_aggr.$3)
2352 if ac_fn_c_try_compile "$LINENO"; then :
2357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2363 $as_echo "$ac_res" >&6; }
2364 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2366 } # ac_fn_c_check_member
2367 cat >config.log <<_ACEOF
2368 This file contains any messages produced by compilers while
2369 running configure, to aid debugging if configure makes a mistake.
2371 It was created by $as_me, which was
2372 generated by GNU Autoconf 2.69. Invocation command line was
2384 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2385 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2386 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2387 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2388 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2390 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2391 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2393 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2394 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2395 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2396 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2397 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2398 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2399 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2407 test -z "$as_dir" && as_dir=.
2408 $as_echo "PATH: $as_dir"
2424 # Keep a trace of the command line.
2425 # Strip out --no-create and --no-recursion so they do not pile up.
2426 # Strip out --silent because we don't want to record it for future runs.
2427 # Also quote any args containing shell meta-characters.
2428 # Make two passes to allow for proper duplicate-argument suppression.
2432 ac_must_keep_next=false
2438 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2439 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2440 | -silent | --silent | --silen | --sile | --sil)
2443 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2446 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2448 as_fn_append ac_configure_args1 " '$ac_arg'"
2449 if test $ac_must_keep_next = true; then
2450 ac_must_keep_next=false # Got value, back to normal.
2453 *=* | --config-cache | -C | -disable-* | --disable-* \
2454 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2455 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2456 | -with-* | --with-* | -without-* | --without-* | --x)
2457 case "$ac_configure_args0 " in
2458 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2461 -* ) ac_must_keep_next=true ;;
2464 as_fn_append ac_configure_args " '$ac_arg'"
2469 { ac_configure_args0=; unset ac_configure_args0;}
2470 { ac_configure_args1=; unset ac_configure_args1;}
2472 # When interrupted or exit'd, cleanup temporary files, and complete
2473 # config.log. We remove comments because anyway the quotes in there
2474 # would cause problems or look ugly.
2475 # WARNING: Use '\'' to represent an apostrophe within the trap.
2476 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2477 trap 'exit_status=$?
2478 # Save into config.log some information that might help in debugging.
2482 $as_echo "## ---------------- ##
2483 ## Cache variables. ##
2484 ## ---------------- ##"
2486 # The following way of writing the cache mishandles newlines in values,
2488 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2489 eval ac_val=\$$ac_var
2493 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2494 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2497 _ | IFS | as_nl) ;; #(
2498 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2499 *) { eval $ac_var=; unset $ac_var;} ;;
2504 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2505 *${as_nl}ac_space=\ *)
2507 "s/'\''/'\''\\\\'\'''\''/g;
2508 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2511 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2518 $as_echo "## ----------------- ##
2519 ## Output variables. ##
2520 ## ----------------- ##"
2522 for ac_var in $ac_subst_vars
2524 eval ac_val=\$$ac_var
2526 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2528 $as_echo "$ac_var='\''$ac_val'\''"
2532 if test -n "$ac_subst_files"; then
2533 $as_echo "## ------------------- ##
2534 ## File substitutions. ##
2535 ## ------------------- ##"
2537 for ac_var in $ac_subst_files
2539 eval ac_val=\$$ac_var
2541 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2543 $as_echo "$ac_var='\''$ac_val'\''"
2548 if test -s confdefs.h; then
2549 $as_echo "## ----------- ##
2556 test "$ac_signal" != 0 &&
2557 $as_echo "$as_me: caught signal $ac_signal"
2558 $as_echo "$as_me: exit $exit_status"
2560 rm -f core *.core core.conftest.* &&
2561 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2564 for ac_signal in 1 2 13 15; do
2565 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2569 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2570 rm -f -r conftest* confdefs.h
2572 $as_echo "/* confdefs.h */" > confdefs.h
2574 # Predefined preprocessor variables.
2576 cat >>confdefs.h <<_ACEOF
2577 #define PACKAGE_NAME "$PACKAGE_NAME"
2580 cat >>confdefs.h <<_ACEOF
2581 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2584 cat >>confdefs.h <<_ACEOF
2585 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2588 cat >>confdefs.h <<_ACEOF
2589 #define PACKAGE_STRING "$PACKAGE_STRING"
2592 cat >>confdefs.h <<_ACEOF
2593 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2596 cat >>confdefs.h <<_ACEOF
2597 #define PACKAGE_URL "$PACKAGE_URL"
2601 # Let the site file select an alternate cache file if it wants to.
2602 # Prefer an explicitly selected file to automatically selected ones.
2605 if test -n "$CONFIG_SITE"; then
2606 # We do not want a PATH search for config.site.
2607 case $CONFIG_SITE in #((
2608 -*) ac_site_file1=./$CONFIG_SITE;;
2609 */*) ac_site_file1=$CONFIG_SITE;;
2610 *) ac_site_file1=./$CONFIG_SITE;;
2612 elif test "x$prefix" != xNONE; then
2613 ac_site_file1=$prefix/share/config.site
2614 ac_site_file2=$prefix/etc/config.site
2616 ac_site_file1=$ac_default_prefix/share/config.site
2617 ac_site_file2=$ac_default_prefix/etc/config.site
2619 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2621 test "x$ac_site_file" = xNONE && continue
2622 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2624 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2625 sed 's/^/| /' "$ac_site_file" >&5
2627 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2628 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2629 as_fn_error $? "failed to load site script $ac_site_file
2630 See \`config.log' for more details" "$LINENO" 5; }
2634 if test -r "$cache_file"; then
2635 # Some versions of bash will fail to source /dev/null (special files
2636 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2637 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2639 $as_echo "$as_me: loading cache $cache_file" >&6;}
2641 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2642 *) . "./$cache_file";;
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2647 $as_echo "$as_me: creating cache $cache_file" >&6;}
2651 gt_needs="$gt_needs "
2652 as_fn_append ac_header_list " stdlib.h"
2653 as_fn_append ac_header_list " unistd.h"
2654 as_fn_append ac_header_list " sys/param.h"
2655 as_fn_append ac_func_list " symlink"
2656 # Check that the precious variables saved in the cache have kept the same
2658 ac_cache_corrupted=false
2659 for ac_var in $ac_precious_vars; do
2660 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2661 eval ac_new_set=\$ac_env_${ac_var}_set
2662 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2663 eval ac_new_val=\$ac_env_${ac_var}_value
2664 case $ac_old_set,$ac_new_set in
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2667 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2668 ac_cache_corrupted=: ;;
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2671 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2672 ac_cache_corrupted=: ;;
2675 if test "x$ac_old_val" != "x$ac_new_val"; then
2676 # differences in whitespace do not lead to failure.
2677 ac_old_val_w=`echo x $ac_old_val`
2678 ac_new_val_w=`echo x $ac_new_val`
2679 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2681 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2682 ac_cache_corrupted=:
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2685 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2686 eval $ac_var=\$ac_old_val
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2689 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2691 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2694 # Pass precious variables to config.status.
2695 if test "$ac_new_set" = set; then
2697 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2698 *) ac_arg=$ac_var=$ac_new_val ;;
2700 case " $ac_configure_args " in
2701 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2702 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2706 if $ac_cache_corrupted; then
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2708 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2710 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2711 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2713 ## -------------------- ##
2714 ## Main body of script. ##
2715 ## -------------------- ##
2718 ac_cpp='$CPP $CPPFLAGS'
2719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2721 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2726 for ac_dir in config "$srcdir"/config; do
2727 if test -f "$ac_dir/install-sh"; then
2729 ac_install_sh="$ac_aux_dir/install-sh -c"
2731 elif test -f "$ac_dir/install.sh"; then
2733 ac_install_sh="$ac_aux_dir/install.sh -c"
2735 elif test -f "$ac_dir/shtool"; then
2737 ac_install_sh="$ac_aux_dir/shtool install -c"
2741 if test -z "$ac_aux_dir"; then
2742 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2745 # These three variables are undocumented and unsupported,
2746 # and are intended to be withdrawn in a future Autoconf release.
2747 # They can cause serious problems if a builder's source tree is in a directory
2748 # whose full name contains unusual characters.
2749 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2750 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2751 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2754 ac_config_headers="$ac_config_headers lib/config.h"
2760 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
2761 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2762 DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2764 E2FSPROGS_DAY=$(echo $DATE | awk -F- '{print $1}' | sed -e '/^[1-9]$/s/^/0/')
2765 MONTH=`echo $DATE | awk -F- '{print $2}'`
2766 YEAR=`echo $DATE | awk -F- '{print $3}'`
2768 if expr $YEAR ">" 1900 > /dev/null ; then
2769 E2FSPROGS_YEAR=$YEAR
2770 elif expr $YEAR ">" 90 >/dev/null ; then
2771 E2FSPROGS_YEAR=19$YEAR
2773 E2FSPROGS_YEAR=20$YEAR
2777 Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2778 Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2779 Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2780 Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2781 May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2782 Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2783 Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2784 Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2785 Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2786 Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2787 Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2788 Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
2789 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
2790 $as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
2793 base_ver=`echo $E2FSPROGS_VERSION | \
2794 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
2796 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2798 case $E2FSPROGS_VERSION in
2800 E2FSPROGS_PKGVER="$base_ver~WIP.$date_spec"
2803 E2FSPROGS_PKGVER="$base_ver"
2807 unset DATE MONTH YEAR base_ver pre_vers date_spec
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
2809 $as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
2811 $as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
2819 # Check whether --with-diet-libc was given.
2820 if test "${with_diet_libc+set}" = set; then :
2821 withval=$with_diet_libc; CC="diet cc -nostdinc"
2827 LIBS="$LIBS -lcompat"
2829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
2830 $as_echo "CC=$CC" >&6; }
2832 # Make sure we can run config.sub.
2833 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2834 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2837 $as_echo_n "checking build system type... " >&6; }
2838 if ${ac_cv_build+:} false; then :
2839 $as_echo_n "(cached) " >&6
2841 ac_build_alias=$build_alias
2842 test "x$ac_build_alias" = x &&
2843 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2844 test "x$ac_build_alias" = x &&
2845 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2846 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2847 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2851 $as_echo "$ac_cv_build" >&6; }
2852 case $ac_cv_build in
2854 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2857 ac_save_IFS=$IFS; IFS='-'
2863 # Remember, the first character of IFS is used to create $*,
2864 # except with old shells:
2867 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2871 $as_echo_n "checking host system type... " >&6; }
2872 if ${ac_cv_host+:} false; then :
2873 $as_echo_n "(cached) " >&6
2875 if test "x$host_alias" = x; then
2876 ac_cv_host=$ac_cv_build
2878 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2879 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2884 $as_echo "$ac_cv_host" >&6; }
2887 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2890 ac_save_IFS=$IFS; IFS='-'
2896 # Remember, the first character of IFS is used to create $*,
2897 # except with old shells:
2900 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2905 ac_cpp='$CPP $CPPFLAGS'
2906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2909 if test -n "$ac_tool_prefix"; then
2910 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2911 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2913 $as_echo_n "checking for $ac_word... " >&6; }
2914 if ${ac_cv_prog_CC+:} false; then :
2915 $as_echo_n "(cached) " >&6
2917 if test -n "$CC"; then
2918 ac_cv_prog_CC="$CC" # Let the user override the test.
2920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2924 test -z "$as_dir" && as_dir=.
2925 for ac_exec_ext in '' $ac_executable_extensions; do
2926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2927 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2938 if test -n "$CC"; then
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2940 $as_echo "$CC" >&6; }
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2943 $as_echo "no" >&6; }
2948 if test -z "$ac_cv_prog_CC"; then
2950 # Extract the first word of "gcc", so it can be a program name with args.
2951 set dummy gcc; ac_word=$2
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2953 $as_echo_n "checking for $ac_word... " >&6; }
2954 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2955 $as_echo_n "(cached) " >&6
2957 if test -n "$ac_ct_CC"; then
2958 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2964 test -z "$as_dir" && as_dir=.
2965 for ac_exec_ext in '' $ac_executable_extensions; do
2966 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2967 ac_cv_prog_ac_ct_CC="gcc"
2968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2977 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2978 if test -n "$ac_ct_CC"; then
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2980 $as_echo "$ac_ct_CC" >&6; }
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2983 $as_echo "no" >&6; }
2986 if test "x$ac_ct_CC" = x; then
2989 case $cross_compiling:$ac_tool_warned in
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2992 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2993 ac_tool_warned=yes ;;
3001 if test -z "$CC"; then
3002 if test -n "$ac_tool_prefix"; then
3003 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3004 set dummy ${ac_tool_prefix}cc; ac_word=$2
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3006 $as_echo_n "checking for $ac_word... " >&6; }
3007 if ${ac_cv_prog_CC+:} false; then :
3008 $as_echo_n "(cached) " >&6
3010 if test -n "$CC"; then
3011 ac_cv_prog_CC="$CC" # Let the user override the test.
3013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3017 test -z "$as_dir" && as_dir=.
3018 for ac_exec_ext in '' $ac_executable_extensions; do
3019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3020 ac_cv_prog_CC="${ac_tool_prefix}cc"
3021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3031 if test -n "$CC"; then
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3033 $as_echo "$CC" >&6; }
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3036 $as_echo "no" >&6; }
3042 if test -z "$CC"; then
3043 # Extract the first word of "cc", so it can be a program name with args.
3044 set dummy cc; ac_word=$2
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3046 $as_echo_n "checking for $ac_word... " >&6; }
3047 if ${ac_cv_prog_CC+:} false; then :
3048 $as_echo_n "(cached) " >&6
3050 if test -n "$CC"; then
3051 ac_cv_prog_CC="$CC" # Let the user override the test.
3054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3058 test -z "$as_dir" && as_dir=.
3059 for ac_exec_ext in '' $ac_executable_extensions; do
3060 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3061 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3062 ac_prog_rejected=yes
3066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3073 if test $ac_prog_rejected = yes; then
3074 # We found a bogon in the path, so make sure we never use it.
3075 set dummy $ac_cv_prog_CC
3077 if test $# != 0; then
3078 # We chose a different compiler from the bogus one.
3079 # However, it has the same basename, so the bogon will be chosen
3080 # first if we set CC to just the basename; use the full file name.
3082 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3088 if test -n "$CC"; then
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3090 $as_echo "$CC" >&6; }
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3093 $as_echo "no" >&6; }
3098 if test -z "$CC"; then
3099 if test -n "$ac_tool_prefix"; then
3100 for ac_prog in cl.exe
3102 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3103 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3105 $as_echo_n "checking for $ac_word... " >&6; }
3106 if ${ac_cv_prog_CC+:} false; then :
3107 $as_echo_n "(cached) " >&6
3109 if test -n "$CC"; then
3110 ac_cv_prog_CC="$CC" # Let the user override the test.
3112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3116 test -z "$as_dir" && as_dir=.
3117 for ac_exec_ext in '' $ac_executable_extensions; do
3118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3119 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3130 if test -n "$CC"; then
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3132 $as_echo "$CC" >&6; }
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3135 $as_echo "no" >&6; }
3139 test -n "$CC" && break
3142 if test -z "$CC"; then
3144 for ac_prog in cl.exe
3146 # Extract the first word of "$ac_prog", so it can be a program name with args.
3147 set dummy $ac_prog; ac_word=$2
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3149 $as_echo_n "checking for $ac_word... " >&6; }
3150 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3151 $as_echo_n "(cached) " >&6
3153 if test -n "$ac_ct_CC"; then
3154 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3160 test -z "$as_dir" && as_dir=.
3161 for ac_exec_ext in '' $ac_executable_extensions; do
3162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3163 ac_cv_prog_ac_ct_CC="$ac_prog"
3164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3173 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3174 if test -n "$ac_ct_CC"; then
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3176 $as_echo "$ac_ct_CC" >&6; }
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3179 $as_echo "no" >&6; }
3183 test -n "$ac_ct_CC" && break
3186 if test "x$ac_ct_CC" = x; then
3189 case $cross_compiling:$ac_tool_warned in
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3192 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3193 ac_tool_warned=yes ;;
3202 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3203 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3204 as_fn_error $? "no acceptable C compiler found in \$PATH
3205 See \`config.log' for more details" "$LINENO" 5; }
3207 # Provide some information about the compiler.
3208 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3211 for ac_option in --version -v -V -qversion; do
3212 { { ac_try="$ac_compiler $ac_option >&5"
3214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3215 *) ac_try_echo=$ac_try;;
3217 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3218 $as_echo "$ac_try_echo"; } >&5
3219 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3221 if test -s conftest.err; then
3223 ... rest of stderr output deleted ...
3224 10q' conftest.err >conftest.er1
3225 cat conftest.er1 >&5
3227 rm -f conftest.er1 conftest.err
3228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3229 test $ac_status = 0; }
3232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3233 /* end confdefs.h. */
3243 ac_clean_files_save=$ac_clean_files
3244 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3245 # Try to create an executable without -o first, disregard a.out.
3246 # It will help us diagnose broken compilers, and finding out an intuition
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3249 $as_echo_n "checking whether the C compiler works... " >&6; }
3250 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3252 # The possible output files:
3253 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3256 for ac_file in $ac_files
3259 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3260 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3265 if { { ac_try="$ac_link_default"
3267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3268 *) ac_try_echo=$ac_try;;
3270 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3271 $as_echo "$ac_try_echo"; } >&5
3272 (eval "$ac_link_default") 2>&5
3274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3275 test $ac_status = 0; }; then :
3276 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3277 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3278 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3279 # so that the user can short-circuit this test for compilers unknown to
3281 for ac_file in $ac_files ''
3283 test -f "$ac_file" || continue
3285 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3288 # We found the default executable, but exeext='' is most
3292 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3294 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3296 # We set ac_cv_exeext here because the later test for it is not
3297 # safe: cross compilers may not add the suffix if given an `-o'
3298 # argument, so we may need to know it at that point already.
3299 # Even if this section looks crufty: it has the advantage of
3306 test "$ac_cv_exeext" = no && ac_cv_exeext=
3311 if test -z "$ac_file"; then :
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3313 $as_echo "no" >&6; }
3314 $as_echo "$as_me: failed program was:" >&5
3315 sed 's/^/| /' conftest.$ac_ext >&5
3317 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3318 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3319 as_fn_error 77 "C compiler cannot create executables
3320 See \`config.log' for more details" "$LINENO" 5; }
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3323 $as_echo "yes" >&6; }
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3326 $as_echo_n "checking for C compiler default output file name... " >&6; }
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3328 $as_echo "$ac_file" >&6; }
3329 ac_exeext=$ac_cv_exeext
3331 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3332 ac_clean_files=$ac_clean_files_save
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3334 $as_echo_n "checking for suffix of executables... " >&6; }
3335 if { { ac_try="$ac_link"
3337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3338 *) ac_try_echo=$ac_try;;
3340 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3341 $as_echo "$ac_try_echo"; } >&5
3342 (eval "$ac_link") 2>&5
3344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3345 test $ac_status = 0; }; then :
3346 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3347 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3348 # work properly (i.e., refer to `conftest.exe'), while it won't with
3350 for ac_file in conftest.exe conftest conftest.*; do
3351 test -f "$ac_file" || continue
3353 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3354 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3360 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3361 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3362 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3363 See \`config.log' for more details" "$LINENO" 5; }
3365 rm -f conftest conftest$ac_cv_exeext
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3367 $as_echo "$ac_cv_exeext" >&6; }
3369 rm -f conftest.$ac_ext
3370 EXEEXT=$ac_cv_exeext
3372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3373 /* end confdefs.h. */
3378 FILE *f = fopen ("conftest.out", "w");
3379 return ferror (f) || fclose (f) != 0;
3385 ac_clean_files="$ac_clean_files conftest.out"
3386 # Check that the compiler produces executables we can run. If not, either
3387 # the compiler is broken, or we cross compile.
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3389 $as_echo_n "checking whether we are cross compiling... " >&6; }
3390 if test "$cross_compiling" != yes; then
3391 { { ac_try="$ac_link"
3393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3394 *) ac_try_echo=$ac_try;;
3396 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3397 $as_echo "$ac_try_echo"; } >&5
3398 (eval "$ac_link") 2>&5
3400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3401 test $ac_status = 0; }
3402 if { ac_try='./conftest$ac_cv_exeext'
3403 { { case "(($ac_try" in
3404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3405 *) ac_try_echo=$ac_try;;
3407 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3408 $as_echo "$ac_try_echo"; } >&5
3409 (eval "$ac_try") 2>&5
3411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3412 test $ac_status = 0; }; }; then
3415 if test "$cross_compiling" = maybe; then
3418 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3419 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3420 as_fn_error $? "cannot run C compiled programs.
3421 If you meant to cross compile, use \`--host'.
3422 See \`config.log' for more details" "$LINENO" 5; }
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3427 $as_echo "$cross_compiling" >&6; }
3429 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3430 ac_clean_files=$ac_clean_files_save
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3432 $as_echo_n "checking for suffix of object files... " >&6; }
3433 if ${ac_cv_objext+:} false; then :
3434 $as_echo_n "(cached) " >&6
3436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3437 /* end confdefs.h. */
3447 rm -f conftest.o conftest.obj
3448 if { { ac_try="$ac_compile"
3450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3451 *) ac_try_echo=$ac_try;;
3453 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3454 $as_echo "$ac_try_echo"; } >&5
3455 (eval "$ac_compile") 2>&5
3457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3458 test $ac_status = 0; }; then :
3459 for ac_file in conftest.o conftest.obj conftest.*; do
3460 test -f "$ac_file" || continue;
3462 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3463 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3468 $as_echo "$as_me: failed program was:" >&5
3469 sed 's/^/| /' conftest.$ac_ext >&5
3471 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3472 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3473 as_fn_error $? "cannot compute suffix of object files: cannot compile
3474 See \`config.log' for more details" "$LINENO" 5; }
3476 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3479 $as_echo "$ac_cv_objext" >&6; }
3480 OBJEXT=$ac_cv_objext
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3483 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3484 if ${ac_cv_c_compiler_gnu+:} false; then :
3485 $as_echo_n "(cached) " >&6
3487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3488 /* end confdefs.h. */
3501 if ac_fn_c_try_compile "$LINENO"; then :
3506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3507 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3511 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3512 if test $ac_compiler_gnu = yes; then
3517 ac_test_CFLAGS=${CFLAGS+set}
3518 ac_save_CFLAGS=$CFLAGS
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3520 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3521 if ${ac_cv_prog_cc_g+:} false; then :
3522 $as_echo_n "(cached) " >&6
3524 ac_save_c_werror_flag=$ac_c_werror_flag
3525 ac_c_werror_flag=yes
3528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3529 /* end confdefs.h. */
3539 if ac_fn_c_try_compile "$LINENO"; then :
3543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3544 /* end confdefs.h. */
3554 if ac_fn_c_try_compile "$LINENO"; then :
3557 ac_c_werror_flag=$ac_save_c_werror_flag
3559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3560 /* end confdefs.h. */
3570 if ac_fn_c_try_compile "$LINENO"; then :
3573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3578 ac_c_werror_flag=$ac_save_c_werror_flag
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3581 $as_echo "$ac_cv_prog_cc_g" >&6; }
3582 if test "$ac_test_CFLAGS" = set; then
3583 CFLAGS=$ac_save_CFLAGS
3584 elif test $ac_cv_prog_cc_g = yes; then
3585 if test "$GCC" = yes; then
3591 if test "$GCC" = yes; then
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3598 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3599 if ${ac_cv_prog_cc_c89+:} false; then :
3600 $as_echo_n "(cached) " >&6
3602 ac_cv_prog_cc_c89=no
3604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3605 /* end confdefs.h. */
3609 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3610 struct buf { int x; };
3611 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3612 static char *e (p, i)
3618 static char *f (char * (*g) (char **, int), char **p, ...)
3623 s = g (p, va_arg (v,int));
3628 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3629 function prototypes and stuff, but not '\xHH' hex character constants.
3630 These don't provoke an error unfortunately, instead are silently treated
3631 as 'x'. The following induces an error, until -std is added to get
3632 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3633 array size at least. It's necessary to write '\x00'==0 to get something
3634 that's true only with -std. */
3635 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3637 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3638 inside strings and character constants. */
3640 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3642 int test (int i, double x);
3643 struct s1 {int (*f) (int a);};
3644 struct s2 {int (*f) (double a);};
3645 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3651 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3656 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3657 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3659 CC="$ac_save_CC $ac_arg"
3660 if ac_fn_c_try_compile "$LINENO"; then :
3661 ac_cv_prog_cc_c89=$ac_arg
3663 rm -f core conftest.err conftest.$ac_objext
3664 test "x$ac_cv_prog_cc_c89" != "xno" && break
3666 rm -f conftest.$ac_ext
3671 case "x$ac_cv_prog_cc_c89" in
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3674 $as_echo "none needed" >&6; } ;;
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3677 $as_echo "unsupported" >&6; } ;;
3679 CC="$CC $ac_cv_prog_cc_c89"
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3681 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3683 if test "x$ac_cv_prog_cc_c89" != xno; then :
3688 ac_cpp='$CPP $CPPFLAGS'
3689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3695 $as_echo_n "checking for dlopen in -ldl... " >&6; }
3696 if ${ac_cv_lib_dl_dlopen+:} false; then :
3697 $as_echo_n "(cached) " >&6
3699 ac_check_lib_save_LIBS=$LIBS
3701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3702 /* end confdefs.h. */
3704 /* Override any GCC internal prototype to avoid an error.
3705 Use char because int might match the return type of a GCC
3706 builtin and then its argument prototype would still apply. */
3719 if ac_fn_c_try_link "$LINENO"; then :
3720 ac_cv_lib_dl_dlopen=yes
3722 ac_cv_lib_dl_dlopen=no
3724 rm -f core conftest.err conftest.$ac_objext \
3725 conftest$ac_exeext conftest.$ac_ext
3726 LIBS=$ac_check_lib_save_LIBS
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3729 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
3730 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
3736 # Check whether --with-cc was given.
3737 if test "${with_cc+set}" = set; then :
3738 withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5
3742 # Check whether --with-ccopts was given.
3743 if test "${with_ccopts+set}" = set; then :
3744 withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
3748 # Check whether --with-ldopts was given.
3749 if test "${with_ldopts+set}" = set; then :
3750 withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
3754 ac_cpp='$CPP $CPPFLAGS'
3755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3758 if test -n "$ac_tool_prefix"; then
3759 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3760 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3762 $as_echo_n "checking for $ac_word... " >&6; }
3763 if ${ac_cv_prog_CC+:} false; then :
3764 $as_echo_n "(cached) " >&6
3766 if test -n "$CC"; then
3767 ac_cv_prog_CC="$CC" # Let the user override the test.
3769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3773 test -z "$as_dir" && as_dir=.
3774 for ac_exec_ext in '' $ac_executable_extensions; do
3775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3776 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3787 if test -n "$CC"; then
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3789 $as_echo "$CC" >&6; }
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3792 $as_echo "no" >&6; }
3797 if test -z "$ac_cv_prog_CC"; then
3799 # Extract the first word of "gcc", so it can be a program name with args.
3800 set dummy gcc; ac_word=$2
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3802 $as_echo_n "checking for $ac_word... " >&6; }
3803 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3804 $as_echo_n "(cached) " >&6
3806 if test -n "$ac_ct_CC"; then
3807 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3813 test -z "$as_dir" && as_dir=.
3814 for ac_exec_ext in '' $ac_executable_extensions; do
3815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3816 ac_cv_prog_ac_ct_CC="gcc"
3817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3826 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3827 if test -n "$ac_ct_CC"; then
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3829 $as_echo "$ac_ct_CC" >&6; }
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3832 $as_echo "no" >&6; }
3835 if test "x$ac_ct_CC" = x; then
3838 case $cross_compiling:$ac_tool_warned in
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3841 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3842 ac_tool_warned=yes ;;
3850 if test -z "$CC"; then
3851 if test -n "$ac_tool_prefix"; then
3852 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3853 set dummy ${ac_tool_prefix}cc; ac_word=$2
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3855 $as_echo_n "checking for $ac_word... " >&6; }
3856 if ${ac_cv_prog_CC+:} false; then :
3857 $as_echo_n "(cached) " >&6
3859 if test -n "$CC"; then
3860 ac_cv_prog_CC="$CC" # Let the user override the test.
3862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3866 test -z "$as_dir" && as_dir=.
3867 for ac_exec_ext in '' $ac_executable_extensions; do
3868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3869 ac_cv_prog_CC="${ac_tool_prefix}cc"
3870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3880 if test -n "$CC"; then
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3882 $as_echo "$CC" >&6; }
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3885 $as_echo "no" >&6; }
3891 if test -z "$CC"; then
3892 # Extract the first word of "cc", so it can be a program name with args.
3893 set dummy cc; ac_word=$2
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3895 $as_echo_n "checking for $ac_word... " >&6; }
3896 if ${ac_cv_prog_CC+:} false; then :
3897 $as_echo_n "(cached) " >&6
3899 if test -n "$CC"; then
3900 ac_cv_prog_CC="$CC" # Let the user override the test.
3903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3907 test -z "$as_dir" && as_dir=.
3908 for ac_exec_ext in '' $ac_executable_extensions; do
3909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3910 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3911 ac_prog_rejected=yes
3915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3922 if test $ac_prog_rejected = yes; then
3923 # We found a bogon in the path, so make sure we never use it.
3924 set dummy $ac_cv_prog_CC
3926 if test $# != 0; then
3927 # We chose a different compiler from the bogus one.
3928 # However, it has the same basename, so the bogon will be chosen
3929 # first if we set CC to just the basename; use the full file name.
3931 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3937 if test -n "$CC"; then
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3939 $as_echo "$CC" >&6; }
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3942 $as_echo "no" >&6; }
3947 if test -z "$CC"; then
3948 if test -n "$ac_tool_prefix"; then
3949 for ac_prog in cl.exe
3951 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3952 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3954 $as_echo_n "checking for $ac_word... " >&6; }
3955 if ${ac_cv_prog_CC+:} false; then :
3956 $as_echo_n "(cached) " >&6
3958 if test -n "$CC"; then
3959 ac_cv_prog_CC="$CC" # Let the user override the test.
3961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3965 test -z "$as_dir" && as_dir=.
3966 for ac_exec_ext in '' $ac_executable_extensions; do
3967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3968 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3979 if test -n "$CC"; then
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3981 $as_echo "$CC" >&6; }
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3984 $as_echo "no" >&6; }
3988 test -n "$CC" && break
3991 if test -z "$CC"; then
3993 for ac_prog in cl.exe
3995 # Extract the first word of "$ac_prog", so it can be a program name with args.
3996 set dummy $ac_prog; ac_word=$2
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3998 $as_echo_n "checking for $ac_word... " >&6; }
3999 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4000 $as_echo_n "(cached) " >&6
4002 if test -n "$ac_ct_CC"; then
4003 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4009 test -z "$as_dir" && as_dir=.
4010 for ac_exec_ext in '' $ac_executable_extensions; do
4011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4012 ac_cv_prog_ac_ct_CC="$ac_prog"
4013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4022 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4023 if test -n "$ac_ct_CC"; then
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4025 $as_echo "$ac_ct_CC" >&6; }
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4028 $as_echo "no" >&6; }
4032 test -n "$ac_ct_CC" && break
4035 if test "x$ac_ct_CC" = x; then
4038 case $cross_compiling:$ac_tool_warned in
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4041 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4042 ac_tool_warned=yes ;;
4051 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4052 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4053 as_fn_error $? "no acceptable C compiler found in \$PATH
4054 See \`config.log' for more details" "$LINENO" 5; }
4056 # Provide some information about the compiler.
4057 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4060 for ac_option in --version -v -V -qversion; do
4061 { { ac_try="$ac_compiler $ac_option >&5"
4063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4064 *) ac_try_echo=$ac_try;;
4066 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4067 $as_echo "$ac_try_echo"; } >&5
4068 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4070 if test -s conftest.err; then
4072 ... rest of stderr output deleted ...
4073 10q' conftest.err >conftest.er1
4074 cat conftest.er1 >&5
4076 rm -f conftest.er1 conftest.err
4077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4078 test $ac_status = 0; }
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4082 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4083 if ${ac_cv_c_compiler_gnu+:} false; then :
4084 $as_echo_n "(cached) " >&6
4086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4087 /* end confdefs.h. */
4100 if ac_fn_c_try_compile "$LINENO"; then :
4105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4106 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4110 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4111 if test $ac_compiler_gnu = yes; then
4116 ac_test_CFLAGS=${CFLAGS+set}
4117 ac_save_CFLAGS=$CFLAGS
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4119 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4120 if ${ac_cv_prog_cc_g+:} false; then :
4121 $as_echo_n "(cached) " >&6
4123 ac_save_c_werror_flag=$ac_c_werror_flag
4124 ac_c_werror_flag=yes
4127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4128 /* end confdefs.h. */
4138 if ac_fn_c_try_compile "$LINENO"; then :
4142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4143 /* end confdefs.h. */
4153 if ac_fn_c_try_compile "$LINENO"; then :
4156 ac_c_werror_flag=$ac_save_c_werror_flag
4158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4159 /* end confdefs.h. */
4169 if ac_fn_c_try_compile "$LINENO"; then :
4172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4177 ac_c_werror_flag=$ac_save_c_werror_flag
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4180 $as_echo "$ac_cv_prog_cc_g" >&6; }
4181 if test "$ac_test_CFLAGS" = set; then
4182 CFLAGS=$ac_save_CFLAGS
4183 elif test $ac_cv_prog_cc_g = yes; then
4184 if test "$GCC" = yes; then
4190 if test "$GCC" = yes; then
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4197 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4198 if ${ac_cv_prog_cc_c89+:} false; then :
4199 $as_echo_n "(cached) " >&6
4201 ac_cv_prog_cc_c89=no
4203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4204 /* end confdefs.h. */
4208 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4209 struct buf { int x; };
4210 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4211 static char *e (p, i)
4217 static char *f (char * (*g) (char **, int), char **p, ...)
4222 s = g (p, va_arg (v,int));
4227 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4228 function prototypes and stuff, but not '\xHH' hex character constants.
4229 These don't provoke an error unfortunately, instead are silently treated
4230 as 'x'. The following induces an error, until -std is added to get
4231 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4232 array size at least. It's necessary to write '\x00'==0 to get something
4233 that's true only with -std. */
4234 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4236 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4237 inside strings and character constants. */
4239 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4241 int test (int i, double x);
4242 struct s1 {int (*f) (int a);};
4243 struct s2 {int (*f) (double a);};
4244 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4250 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4255 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4256 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4258 CC="$ac_save_CC $ac_arg"
4259 if ac_fn_c_try_compile "$LINENO"; then :
4260 ac_cv_prog_cc_c89=$ac_arg
4262 rm -f core conftest.err conftest.$ac_objext
4263 test "x$ac_cv_prog_cc_c89" != "xno" && break
4265 rm -f conftest.$ac_ext
4270 case "x$ac_cv_prog_cc_c89" in
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4273 $as_echo "none needed" >&6; } ;;
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4276 $as_echo "unsupported" >&6; } ;;
4278 CC="$CC $ac_cv_prog_cc_c89"
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4280 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4282 if test "x$ac_cv_prog_cc_c89" != xno; then :
4287 ac_cpp='$CPP $CPPFLAGS'
4288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4292 if test "$GCC" = yes; then
4293 RDYNAMIC="-rdynamic"
4297 ac_cpp='$CPP $CPPFLAGS'
4298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4302 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4303 # On Suns, sometimes $CPP names a directory.
4304 if test -n "$CPP" && test -d "$CPP"; then
4307 if test -z "$CPP"; then
4308 if ${ac_cv_prog_CPP+:} false; then :
4309 $as_echo_n "(cached) " >&6
4311 # Double quotes because CPP needs to be expanded
4312 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4315 for ac_c_preproc_warn_flag in '' yes
4317 # Use a header file that comes with gcc, so configuring glibc
4318 # with a fresh cross-compiler works.
4319 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4320 # <limits.h> exists even on freestanding compilers.
4321 # On the NeXT, cc -E runs the code through the compiler's parser,
4322 # not just through cpp. "Syntax error" is here to catch this case.
4323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4324 /* end confdefs.h. */
4326 # include <limits.h>
4328 # include <assert.h>
4332 if ac_fn_c_try_cpp "$LINENO"; then :
4335 # Broken: fails on valid input.
4338 rm -f conftest.err conftest.i conftest.$ac_ext
4340 # OK, works on sane cases. Now check whether nonexistent headers
4341 # can be detected and how.
4342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4343 /* end confdefs.h. */
4344 #include <ac_nonexistent.h>
4346 if ac_fn_c_try_cpp "$LINENO"; then :
4347 # Broken: success on invalid input.
4350 # Passes both tests.
4354 rm -f conftest.err conftest.i conftest.$ac_ext
4357 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4358 rm -f conftest.i conftest.err conftest.$ac_ext
4359 if $ac_preproc_ok; then :
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4372 $as_echo "$CPP" >&6; }
4374 for ac_c_preproc_warn_flag in '' yes
4376 # Use a header file that comes with gcc, so configuring glibc
4377 # with a fresh cross-compiler works.
4378 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4379 # <limits.h> exists even on freestanding compilers.
4380 # On the NeXT, cc -E runs the code through the compiler's parser,
4381 # not just through cpp. "Syntax error" is here to catch this case.
4382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4383 /* end confdefs.h. */
4385 # include <limits.h>
4387 # include <assert.h>
4391 if ac_fn_c_try_cpp "$LINENO"; then :
4394 # Broken: fails on valid input.
4397 rm -f conftest.err conftest.i conftest.$ac_ext
4399 # OK, works on sane cases. Now check whether nonexistent headers
4400 # can be detected and how.
4401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4402 /* end confdefs.h. */
4403 #include <ac_nonexistent.h>
4405 if ac_fn_c_try_cpp "$LINENO"; then :
4406 # Broken: success on invalid input.
4409 # Passes both tests.
4413 rm -f conftest.err conftest.i conftest.$ac_ext
4416 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4417 rm -f conftest.i conftest.err conftest.$ac_ext
4418 if $ac_preproc_ok; then :
4421 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4422 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4423 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4424 See \`config.log' for more details" "$LINENO" 5; }
4428 ac_cpp='$CPP $CPPFLAGS'
4429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
4434 $as_echo_n "checking for additional special compiler flags... " >&6; }
4435 if test "$GCC" = yes
4438 alpha) addcflags="-mieee" ;;
4441 if test "x$addcflags" != x
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
4444 $as_echo "$addcflags" >&6; }
4445 CFLAGS="$addcflags $CFLAGS"
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
4448 $as_echo "(none)" >&6; }
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4452 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4453 if ${ac_cv_path_GREP+:} false; then :
4454 $as_echo_n "(cached) " >&6
4456 if test -z "$GREP"; then
4457 ac_path_GREP_found=false
4458 # Loop through the user's path and test for each of PROGNAME-LIST
4459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4460 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4463 test -z "$as_dir" && as_dir=.
4464 for ac_prog in grep ggrep; do
4465 for ac_exec_ext in '' $ac_executable_extensions; do
4466 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4467 as_fn_executable_p "$ac_path_GREP" || continue
4468 # Check for GNU ac_path_GREP and select it if it is found.
4469 # Check for GNU $ac_path_GREP
4470 case `"$ac_path_GREP" --version 2>&1` in
4472 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4475 $as_echo_n 0123456789 >"conftest.in"
4478 cat "conftest.in" "conftest.in" >"conftest.tmp"
4479 mv "conftest.tmp" "conftest.in"
4480 cp "conftest.in" "conftest.nl"
4481 $as_echo 'GREP' >> "conftest.nl"
4482 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4483 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4484 as_fn_arith $ac_count + 1 && ac_count=$as_val
4485 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4486 # Best one so far, save it but keep looking for a better one
4487 ac_cv_path_GREP="$ac_path_GREP"
4488 ac_path_GREP_max=$ac_count
4490 # 10*(2^10) chars as input seems more than enough
4491 test $ac_count -gt 10 && break
4493 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4496 $ac_path_GREP_found && break 3
4501 if test -z "$ac_cv_path_GREP"; then
4502 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4505 ac_cv_path_GREP=$GREP
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4510 $as_echo "$ac_cv_path_GREP" >&6; }
4511 GREP="$ac_cv_path_GREP"
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4515 $as_echo_n "checking for egrep... " >&6; }
4516 if ${ac_cv_path_EGREP+:} false; then :
4517 $as_echo_n "(cached) " >&6
4519 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4520 then ac_cv_path_EGREP="$GREP -E"
4522 if test -z "$EGREP"; then
4523 ac_path_EGREP_found=false
4524 # Loop through the user's path and test for each of PROGNAME-LIST
4525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4526 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4529 test -z "$as_dir" && as_dir=.
4530 for ac_prog in egrep; do
4531 for ac_exec_ext in '' $ac_executable_extensions; do
4532 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4533 as_fn_executable_p "$ac_path_EGREP" || continue
4534 # Check for GNU ac_path_EGREP and select it if it is found.
4535 # Check for GNU $ac_path_EGREP
4536 case `"$ac_path_EGREP" --version 2>&1` in
4538 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4541 $as_echo_n 0123456789 >"conftest.in"
4544 cat "conftest.in" "conftest.in" >"conftest.tmp"
4545 mv "conftest.tmp" "conftest.in"
4546 cp "conftest.in" "conftest.nl"
4547 $as_echo 'EGREP' >> "conftest.nl"
4548 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4549 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4550 as_fn_arith $ac_count + 1 && ac_count=$as_val
4551 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4552 # Best one so far, save it but keep looking for a better one
4553 ac_cv_path_EGREP="$ac_path_EGREP"
4554 ac_path_EGREP_max=$ac_count
4556 # 10*(2^10) chars as input seems more than enough
4557 test $ac_count -gt 10 && break
4559 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4562 $ac_path_EGREP_found && break 3
4567 if test -z "$ac_cv_path_EGREP"; then
4568 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4571 ac_cv_path_EGREP=$EGREP
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4577 $as_echo "$ac_cv_path_EGREP" >&6; }
4578 EGREP="$ac_cv_path_EGREP"
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4582 $as_echo_n "checking for ANSI C header files... " >&6; }
4583 if ${ac_cv_header_stdc+:} false; then :
4584 $as_echo_n "(cached) " >&6
4586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4587 /* end confdefs.h. */
4601 if ac_fn_c_try_compile "$LINENO"; then :
4602 ac_cv_header_stdc=yes
4604 ac_cv_header_stdc=no
4606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4608 if test $ac_cv_header_stdc = yes; then
4609 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4611 /* end confdefs.h. */
4615 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4616 $EGREP "memchr" >/dev/null 2>&1; then :
4619 ac_cv_header_stdc=no
4625 if test $ac_cv_header_stdc = yes; then
4626 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4628 /* end confdefs.h. */
4632 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4633 $EGREP "free" >/dev/null 2>&1; then :
4636 ac_cv_header_stdc=no
4642 if test $ac_cv_header_stdc = yes; then
4643 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4644 if test "$cross_compiling" = yes; then :
4647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4648 /* end confdefs.h. */
4651 #if ((' ' & 0x0FF) == 0x020)
4652 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4653 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4655 # define ISLOWER(c) \
4656 (('a' <= (c) && (c) <= 'i') \
4657 || ('j' <= (c) && (c) <= 'r') \
4658 || ('s' <= (c) && (c) <= 'z'))
4659 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4662 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4667 for (i = 0; i < 256; i++)
4668 if (XOR (islower (i), ISLOWER (i))
4669 || toupper (i) != TOUPPER (i))
4674 if ac_fn_c_try_run "$LINENO"; then :
4677 ac_cv_header_stdc=no
4679 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4680 conftest.$ac_objext conftest.beam conftest.$ac_ext
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4686 $as_echo "$ac_cv_header_stdc" >&6; }
4687 if test $ac_cv_header_stdc = yes; then
4689 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4693 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4694 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4695 inttypes.h stdint.h unistd.h
4697 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4698 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4700 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4701 cat >>confdefs.h <<_ACEOF
4702 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4711 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4712 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4719 if test "$MINIX" = yes; then
4721 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4724 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4727 $as_echo "#define _MINIX 1" >>confdefs.h
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4733 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4734 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4735 $as_echo_n "(cached) " >&6
4737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4738 /* end confdefs.h. */
4740 # define __EXTENSIONS__ 1
4741 $ac_includes_default
4750 if ac_fn_c_try_compile "$LINENO"; then :
4751 ac_cv_safe_to_define___extensions__=yes
4753 ac_cv_safe_to_define___extensions__=no
4755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4758 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4759 test $ac_cv_safe_to_define___extensions__ = yes &&
4760 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4762 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4764 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4766 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4768 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4775 # Check whether --with-root-prefix was given.
4776 if test "${with_root_prefix+set}" = set; then :
4777 withval=$with_root_prefix; root_prefix=$withval
4781 # Check whether --enable-maintainer-mode was given.
4782 if test "${enable_maintainer_mode+set}" = set; then :
4783 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
4787 $as_echo "Disabling maintainer mode" >&6; }
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
4791 $as_echo "Enabling maintainer mode" >&6; }
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
4797 $as_echo "Disabling maintainer mode by default" >&6; }
4802 # Check whether --enable-symlink-install was given.
4803 if test "${enable_symlink_install+set}" = set; then :
4804 enableval=$enable_symlink_install; if test "$enableval" = "no"
4806 LINK_INSTALL_FLAGS=-f
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4808 $as_echo "Disabling symlinks for install" >&6; }
4810 LINK_INSTALL_FLAGS=-sf
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4812 $as_echo "Enabling symlinks for install" >&6; }
4816 LINK_INSTALL_FLAGS=-f
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
4818 $as_echo "Disabling symlinks for install by default" >&6; }
4823 relative_symlink_defined=
4824 # Check whether --enable-relative-symlinks was given.
4825 if test "${enable_relative_symlinks+set}" = set; then :
4826 enableval=$enable_relative_symlinks; if test "$enableval" = "no"
4829 relative_symlink_defined=yes
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4831 $as_echo "Disabling relative symlinks for install" >&6; }
4833 SYMLINK_RELATIVE=--relative
4834 relative_symlink_defined=yes
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4836 $as_echo "Enabling relative symlinks for install" >&6; }
4840 # Check whether --enable-symlink-relative-symlinks was given.
4841 if test "${enable_symlink_relative_symlinks+set}" = set; then :
4842 enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
4844 SYMLINK_RELATIVE=yes
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4846 $as_echo "Disabling relative symlinks for install" >&6; }
4848 SYMLINK_RELATIVE=--relative
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4850 $as_echo "Enabling relative symlinks for install" >&6; }
4854 if test -z "$relative_symlink_defined"
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
4858 $as_echo "Disabling relative symlinks for install by default" >&6; }
4864 # Check whether --enable-symlink-build was given.
4865 if test "${enable_symlink_build+set}" = set; then :
4866 enableval=$enable_symlink_build; if test "$enableval" = "no"
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4870 $as_echo "Disabling symlinks for build" >&6; }
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4874 $as_echo "Enabling symlinks for build" >&6; }
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
4880 $as_echo "Disabling symlinks for build by default" >&6; }
4885 # Check whether --enable-verbose-makecmds was given.
4886 if test "${enable_verbose_makecmds+set}" = set; then :
4887 enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4890 $as_echo "Disabling verbose make commands" >&6; }
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
4896 $as_echo "Enabling verbose make commands" >&6; }
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4904 $as_echo "Disabling verbose make commands" >&6; }
4914 E2_PKG_CONFIG_STATIC=--static
4917 # Check whether --enable-elf-shlibs was given.
4918 if test "${enable_elf_shlibs+set}" = set; then :
4919 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
4922 MAKEFILE_ELF=/dev/null
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
4924 $as_echo "Disabling ELF shared libraries" >&6; }
4926 E2_PKG_CONFIG_STATIC=
4928 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
4931 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4937 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
4939 $as_echo "Enabling ELF shared libraries" >&6; }
4943 MAKEFILE_ELF=/dev/null
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
4946 $as_echo "Disabling ELF shared libraries by default" >&6; }
4952 # Check whether --enable-bsd-shlibs was given.
4953 if test "${enable_bsd_shlibs+set}" = set; then :
4954 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
4957 MAKEFILE_BSDLIB=/dev/null
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
4959 $as_echo "Disabling BSD shared libraries" >&6; }
4961 E2_PKG_CONFIG_STATIC=
4963 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
4967 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
4972 $as_echo "Enabling BSD shared libraries" >&6; }
4976 MAKEFILE_BSDLIB=/dev/null
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
4979 $as_echo "Disabling BSD shared libraries by default" >&6; }
4985 # Check whether --enable-profile was given.
4986 if test "${enable_profile+set}" = set; then :
4987 enableval=$enable_profile; if test "$enableval" = "no"
4990 MAKEFILE_PROFILE=/dev/null
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
4992 $as_echo "Disabling profiling libraries" >&6; }
4995 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
4996 PROFILED_LIB_EXT=_p.a
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
4998 $as_echo "Building profiling libraries" >&6; }
5003 MAKEFILE_PROFILE=/dev/null
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
5005 $as_echo "Disabling profiling libraries by default" >&6; }
5011 # Check whether --enable-gcov was given.
5012 if test "${enable_gcov+set}" = set; then :
5013 enableval=$enable_gcov; if test "$enableval" = "yes"
5015 CFLAGS="-g -fprofile-arcs -ftest-coverage"
5016 LDFLAGS="-fprofile-arcs -ftest-coverage"
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling gcov support" >&5
5018 $as_echo "Enabling gcov support" >&6; }
5023 CFLAGS_SHLIB="${CFLAGS_SHLIB:-$CFLAGS}"
5024 CFLAGS_STLIB="${CFLAGS_STLIB:-$CFLAGS}"
5025 LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
5026 LDFLAGS_STATIC=${LDFLAGS_STATIC:-$LDFLAGS}
5027 # Check whether --enable-hardening was given.
5028 if test "${enable_hardening+set}" = set; then :
5029 enableval=$enable_hardening; if test "$enableval" = "yes"
5031 HARDEN_CFLAGS="-D_FORTIFY_SOURCE=2 -fstack-protector-strong"
5032 HARDEN_LDFLAGS="-Wl,-z,relro -Wl,-z,now"
5033 CFLAGS="$CFLAGS $HARDEN_CFLAGS -fPIE"
5034 CFLAGS_SHLIB="$CFLAGS_SHLIB $HARDEN_CFLAGS"
5035 CFLAGS_STLIB="$CFLAGS_STLIB $HARDEN_CFLAGS -fPIE"
5036 LDFLAGS="$LDFLAGS $HARDEN_LDFLAGS -fPIE -pie"
5037 LDFLAGS_STATIC="$LDFLAGS_STATIC $HARDEN_LDFLAGS"
5038 LDFLAGS_SHLIB="$LDFLAGS_SHLIB $HARDEN_LDFLAGS"
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling hardening support" >&5
5040 $as_echo "Enabling hardening support" >&6; }
5050 # Check whether --enable-jbd-debug was given.
5051 if test "${enable_jbd_debug+set}" = set; then :
5052 enableval=$enable_jbd_debug; if test "$enableval" = "no"
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
5055 $as_echo "Disabling journal debugging" >&6; }
5058 $as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
5061 $as_echo "Enabling journal debugging" >&6; }
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
5066 $as_echo "Disabling journal debugging by default" >&6; }
5070 # Check whether --enable-blkid-debug was given.
5071 if test "${enable_blkid_debug+set}" = set; then :
5072 enableval=$enable_blkid_debug; if test "$enableval" = "no"
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
5075 $as_echo "Disabling blkid debugging" >&6; }
5078 $as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
5081 $as_echo "Enabling blkid debugging" >&6; }
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
5086 $as_echo "Disabling blkid debugging by default" >&6; }
5090 # Check whether --enable-testio-debug was given.
5091 if test "${enable_testio_debug+set}" = set; then :
5092 enableval=$enable_testio_debug;
5093 if test "$enableval" = "no"
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
5096 $as_echo "Disabling testio debugging" >&6; }
5100 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
5103 $as_echo "Enabling testio debugging" >&6; }
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
5108 $as_echo "Enabling testio debugging by default" >&6; }
5109 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
5123 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5124 if test -n "$ac_tool_prefix"; then
5125 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5126 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5128 $as_echo_n "checking for $ac_word... " >&6; }
5129 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5130 $as_echo_n "(cached) " >&6
5134 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5141 test -z "$as_dir" && as_dir=.
5142 for ac_exec_ext in '' $ac_executable_extensions; do
5143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5144 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5155 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5156 if test -n "$PKG_CONFIG"; then
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5158 $as_echo "$PKG_CONFIG" >&6; }
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5161 $as_echo "no" >&6; }
5166 if test -z "$ac_cv_path_PKG_CONFIG"; then
5167 ac_pt_PKG_CONFIG=$PKG_CONFIG
5168 # Extract the first word of "pkg-config", so it can be a program name with args.
5169 set dummy pkg-config; ac_word=$2
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5171 $as_echo_n "checking for $ac_word... " >&6; }
5172 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5173 $as_echo_n "(cached) " >&6
5175 case $ac_pt_PKG_CONFIG in
5177 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5184 test -z "$as_dir" && as_dir=.
5185 for ac_exec_ext in '' $ac_executable_extensions; do
5186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5187 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5198 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5199 if test -n "$ac_pt_PKG_CONFIG"; then
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5201 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5204 $as_echo "no" >&6; }
5207 if test "x$ac_pt_PKG_CONFIG" = x; then
5210 case $cross_compiling:$ac_tool_warned in
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5213 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5214 ac_tool_warned=yes ;;
5216 PKG_CONFIG=$ac_pt_PKG_CONFIG
5219 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5223 if test -n "$PKG_CONFIG"; then
5224 _pkg_min_version=0.9.0
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5226 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5227 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5229 $as_echo "yes" >&6; }
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5232 $as_echo "no" >&6; }
5241 DEPPROFILED_LIBUUID=
5243 # Check whether --enable-libuuid was given.
5244 if test "${enable_libuuid+set}" = set; then :
5245 enableval=$enable_libuuid; if test "$enableval" = "no"
5247 if test -z "$PKG_CONFIG"; then
5248 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
5252 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
5253 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
5254 $as_echo_n "(cached) " >&6
5256 ac_check_lib_save_LIBS=$LIBS
5258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5259 /* end confdefs.h. */
5261 /* Override any GCC internal prototype to avoid an error.
5262 Use char because int might match the return type of a GCC
5263 builtin and then its argument prototype would still apply. */
5267 char uuid_generate ();
5271 return uuid_generate ();
5276 if ac_fn_c_try_link "$LINENO"; then :
5277 ac_cv_lib_uuid_uuid_generate=yes
5279 ac_cv_lib_uuid_uuid_generate=no
5281 rm -f core conftest.err conftest.$ac_objext \
5282 conftest$ac_exeext conftest.$ac_ext
5283 LIBS=$ac_check_lib_save_LIBS
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
5286 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
5287 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
5288 LIBUUID=`$PKG_CONFIG --libs uuid`;
5289 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5291 as_fn_error $? "external uuid library not found" "$LINENO" 5
5294 PROFILED_LIBUUID=$LIBUUID
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
5297 $as_echo "Disabling private uuid library" >&6; }
5299 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5301 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5302 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5303 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5304 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
5306 $as_echo "Enabling private uuid library" >&6; }
5310 if test -n "$PKG_CONFIG"; then
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
5312 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
5313 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
5314 $as_echo_n "(cached) " >&6
5316 ac_check_lib_save_LIBS=$LIBS
5318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5319 /* end confdefs.h. */
5321 /* Override any GCC internal prototype to avoid an error.
5322 Use char because int might match the return type of a GCC
5323 builtin and then its argument prototype would still apply. */
5327 char uuid_generate ();
5331 return uuid_generate ();
5336 if ac_fn_c_try_link "$LINENO"; then :
5337 ac_cv_lib_uuid_uuid_generate=yes
5339 ac_cv_lib_uuid_uuid_generate=no
5341 rm -f core conftest.err conftest.$ac_objext \
5342 conftest$ac_exeext conftest.$ac_ext
5343 LIBS=$ac_check_lib_save_LIBS
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
5346 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
5347 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
5348 LIBUUID=`$PKG_CONFIG --libs uuid`;
5349 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5353 if test -n "$LIBUUID"; then
5354 PROFILED_LIBUUID=$LIBUUID
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system uuid by default" >&5
5357 $as_echo "Using system uuid by default" >&6; }
5359 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5361 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5362 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5363 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5364 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
5366 $as_echo "Enabling private uuid library by default" >&6; }
5385 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5386 if test -n "$ac_tool_prefix"; then
5387 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5388 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5390 $as_echo_n "checking for $ac_word... " >&6; }
5391 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5392 $as_echo_n "(cached) " >&6
5396 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5403 test -z "$as_dir" && as_dir=.
5404 for ac_exec_ext in '' $ac_executable_extensions; do
5405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5406 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5417 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5418 if test -n "$PKG_CONFIG"; then
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5420 $as_echo "$PKG_CONFIG" >&6; }
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5423 $as_echo "no" >&6; }
5428 if test -z "$ac_cv_path_PKG_CONFIG"; then
5429 ac_pt_PKG_CONFIG=$PKG_CONFIG
5430 # Extract the first word of "pkg-config", so it can be a program name with args.
5431 set dummy pkg-config; ac_word=$2
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5433 $as_echo_n "checking for $ac_word... " >&6; }
5434 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5435 $as_echo_n "(cached) " >&6
5437 case $ac_pt_PKG_CONFIG in
5439 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5446 test -z "$as_dir" && as_dir=.
5447 for ac_exec_ext in '' $ac_executable_extensions; do
5448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5449 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5460 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5461 if test -n "$ac_pt_PKG_CONFIG"; then
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5463 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5466 $as_echo "no" >&6; }
5469 if test "x$ac_pt_PKG_CONFIG" = x; then
5472 case $cross_compiling:$ac_tool_warned in
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5475 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5476 ac_tool_warned=yes ;;
5478 PKG_CONFIG=$ac_pt_PKG_CONFIG
5481 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5485 if test -n "$PKG_CONFIG"; then
5486 _pkg_min_version=0.9.0
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5488 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5489 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5491 $as_echo "yes" >&6; }
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5494 $as_echo "no" >&6; }
5503 DEPPROFILED_LIBBLKID=
5506 # Check whether --enable-libblkid was given.
5507 if test "${enable_libblkid+set}" = set; then :
5508 enableval=$enable_libblkid; if test "$enableval" = "no"
5510 if test -z "$PKG_CONFIG"; then
5511 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5515 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5516 if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
5517 $as_echo_n "(cached) " >&6
5519 ac_check_lib_save_LIBS=$LIBS
5520 LIBS="-lblkid -luuid $LIBS"
5521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5522 /* end confdefs.h. */
5524 /* Override any GCC internal prototype to avoid an error.
5525 Use char because int might match the return type of a GCC
5526 builtin and then its argument prototype would still apply. */
5530 char blkid_get_cache ();
5534 return blkid_get_cache ();
5539 if ac_fn_c_try_link "$LINENO"; then :
5540 ac_cv_lib_blkid_blkid_get_cache=yes
5542 ac_cv_lib_blkid_blkid_get_cache=no
5544 rm -f core conftest.err conftest.$ac_objext \
5545 conftest$ac_exeext conftest.$ac_ext
5546 LIBS=$ac_check_lib_save_LIBS
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5549 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5550 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
5551 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5552 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5554 as_fn_error $? "external blkid library not found" "$LINENO" 5
5558 PROFILED_LIBBLKID=$LIBBLKID
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
5560 $as_echo "Disabling private blkid library" >&6; }
5562 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5563 DEPLIBBLKID=$LIBBLKID
5564 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5565 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5566 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5567 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5568 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
5571 $as_echo "Enabling private blkid library" >&6; }
5575 if test -n "$PKG_CONFIG"; then
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5577 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5578 if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
5579 $as_echo_n "(cached) " >&6
5581 ac_check_lib_save_LIBS=$LIBS
5582 LIBS="-lblkid $LIBS"
5583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5584 /* end confdefs.h. */
5586 /* Override any GCC internal prototype to avoid an error.
5587 Use char because int might match the return type of a GCC
5588 builtin and then its argument prototype would still apply. */
5592 char blkid_get_cache ();
5596 return blkid_get_cache ();
5601 if ac_fn_c_try_link "$LINENO"; then :
5602 ac_cv_lib_blkid_blkid_get_cache=yes
5604 ac_cv_lib_blkid_blkid_get_cache=no
5606 rm -f core conftest.err conftest.$ac_objext \
5607 conftest$ac_exeext conftest.$ac_ext
5608 LIBS=$ac_check_lib_save_LIBS
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5611 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5612 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
5613 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5614 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5618 if test -n "$LIBBLKID"; then
5620 PROFILED_LIBBLKID=$LIBBLKID
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system blkid library by default" >&5
5622 $as_echo "Using system blkid library by default" >&6; }
5624 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5625 DEPLIBBLKID=$LIBBLKID
5626 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5627 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5628 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5629 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5630 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
5633 $as_echo "Enabling private blkid library by default" >&6; }
5646 # Check whether --enable-backtrace was given.
5647 if test "${enable_backtrace+set}" = set; then :
5648 enableval=$enable_backtrace; if test "$enableval" = "no"
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5
5651 $as_echo "Disabling use of backtrace" >&6; }
5652 $as_echo "#define DISABLE_BACKTRACE 1" >>confdefs.h
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5
5656 $as_echo "Enabling use of backtrace" >&6; }
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5
5661 $as_echo "Enabling use of backtrace by default" >&6; }
5665 # Check whether --enable-debugfs was given.
5666 if test "${enable_debugfs+set}" = set; then :
5667 enableval=$enable_debugfs; if test "$enableval" = "no"
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
5670 $as_echo "Disabling debugfs support" >&6; }
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
5675 $as_echo "Enabling debugfs support" >&6; }
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
5680 $as_echo "Enabling debugfs support by default" >&6; }
5686 # Check whether --enable-imager was given.
5687 if test "${enable_imager+set}" = set; then :
5688 enableval=$enable_imager; if test "$enableval" = "no"
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
5691 $as_echo "Disabling e2image support" >&6; }
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
5696 $as_echo "Enabling e2image support" >&6; }
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
5701 $as_echo "Enabling e2image support by default" >&6; }
5707 # Check whether --enable-resizer was given.
5708 if test "${enable_resizer+set}" = set; then :
5709 enableval=$enable_resizer; if test "$enableval" = "no"
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
5712 $as_echo "Disabling e2resize support" >&6; }
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
5717 $as_echo "Enabling e2resize support" >&6; }
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
5722 $as_echo "Enabling e2resize support by default" >&6; }
5728 # Check whether --enable-defrag was given.
5729 if test "${enable_defrag+set}" = set; then :
5730 enableval=$enable_defrag; if test "$enableval" = "no"
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5733 $as_echo "Disabling e4defrag support" >&6; }
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5738 $as_echo "Enabling e4defrag support" >&6; }
5742 if test -z "$WITH_DIET_LIBC"
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
5745 $as_echo "Enabling e4defrag support by default" >&6; }
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support by default" >&5
5749 $as_echo "Disabling e4defrag support by default" >&6; }
5756 # Check whether --enable-fsck was given.
5757 if test "${enable_fsck+set}" = set; then :
5758 enableval=$enable_fsck; if test "$enableval" = "no"
5760 FSCK_PROG='' FSCK_MAN=''
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
5762 $as_echo "Not building fsck wrapper" >&6; }
5764 FSCK_PROG=fsck FSCK_MAN=fsck.8
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
5766 $as_echo "Building fsck wrapper" >&6; }
5772 FSCK_PROG='' FSCK_MAN=''
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
5774 $as_echo "Not building fsck wrapper by default" >&6; }
5777 FSCK_PROG=fsck FSCK_MAN=fsck.8
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
5779 $as_echo "Building fsck wrapper by default" >&6; }
5786 # Check whether --enable-e2initrd-helper was given.
5787 if test "${enable_e2initrd_helper+set}" = set; then :
5788 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
5790 E2INITRD_PROG='' E2INITRD_MAN=''
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
5792 $as_echo "Not building e2initrd helper" >&6; }
5794 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
5796 $as_echo "Building e2initrd helper" >&6; }
5800 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
5802 $as_echo "Building e2initrd helper by default" >&6; }
5808 # Check whether --enable-tls was given.
5809 if test "${enable_tls+set}" = set; then :
5810 enableval=$enable_tls; if test "$enableval" = "no"
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
5814 $as_echo "Disabling thread local support" >&6; }
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
5818 $as_echo "Enabling thread local support" >&6; }
5822 if test -n "$WITH_DIET_LIBC"
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5
5826 $as_echo "Diet libc does not support thread local support" >&6; }
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
5830 $as_echo "Try using thread local support by default" >&6; }
5835 if test "$try_tls" = "yes"
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
5839 $as_echo_n "checking for thread local storage (TLS) class... " >&6; }
5840 if ${ac_cv_tls+:} false; then :
5841 $as_echo_n "(cached) " >&6
5844 ax_tls_keywords="__thread __declspec(thread) none"
5845 for ax_tls_keyword in $ax_tls_keywords; do
5846 case $ax_tls_keyword in
5847 none) ac_cv_tls=none ; break ;;
5849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5850 /* end confdefs.h. */
5854 static $ax_tls_keyword int bar;
5865 if ac_fn_c_try_compile "$LINENO"; then :
5866 ac_cv_tls=$ax_tls_keyword ; break
5871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5878 if test "$ac_cv_tls" != "none"; then
5880 cat >>confdefs.h <<_ACEOF
5881 #define TLS $ac_cv_tls
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
5886 $as_echo "$ac_cv_tls" >&6; }
5890 # Check whether --enable-uuidd was given.
5891 if test "${enable_uuidd+set}" = set; then :
5892 enableval=$enable_uuidd; if test "$enableval" = "no"
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
5895 $as_echo "Not building uuidd" >&6; }
5898 $as_echo "#define USE_UUIDD 1" >>confdefs.h
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
5902 $as_echo "Building uuidd" >&6; }
5906 $as_echo "#define USE_UUIDD 1" >>confdefs.h
5908 if test -z "$UUID_CMT"
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
5912 $as_echo "Building uuidd by default" >&6; }
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling uuidd by default" >&5
5916 $as_echo "Disabling uuidd by default" >&6; }
5923 # Check whether --enable-mmp was given.
5924 if test "${enable_mmp+set}" = set; then :
5925 enableval=$enable_mmp; if test "$enableval" = "no"
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling mmp support" >&5
5928 $as_echo "Disabling mmp support" >&6; }
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support" >&5
5931 $as_echo "Enabling mmp support" >&6; }
5932 $as_echo "#define CONFIG_MMP 1" >>confdefs.h
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
5938 $as_echo "Enabling mmp support by default" >&6; }
5939 $as_echo "#define CONFIG_MMP 1" >>confdefs.h
5945 # Check whether --enable-tdb was given.
5946 if test "${enable_tdb+set}" = set; then :
5947 enableval=$enable_tdb; if test "$enableval" = "no"
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling tdb support" >&5
5950 $as_echo "Disabling tdb support" >&6; }
5952 TDB_MAN_COMMENT='.\"'
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling tdb support" >&5
5955 $as_echo "Enabling tdb support" >&6; }
5956 $as_echo "#define CONFIG_TDB 1" >>confdefs.h
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
5964 $as_echo "Enabling mmp support by default" >&6; }
5965 $as_echo "#define CONFIG_TDB 1" >>confdefs.h
5975 # Check whether --enable-bmap-stats was given.
5976 if test "${enable_bmap_stats+set}" = set; then :
5977 enableval=$enable_bmap_stats; if test "$enableval" = "no"
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling bitmap statistics support" >&5
5980 $as_echo "Disabling bitmap statistics support" >&6; }
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support" >&5
5983 $as_echo "Enabling bitmap statistics support" >&6; }
5984 $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support by default" >&5
5990 $as_echo "Enabling bitmap statistics support by default" >&6; }
5991 $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
5997 # Check whether --enable-bmap-stats-ops was given.
5998 if test "${enable_bmap_stats_ops+set}" = set; then :
5999 enableval=$enable_bmap_stats_ops; if test "$enableval" = "no"
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics" >&5
6002 $as_echo "Disabling additional bitmap statistics" >&6; }
6004 if test "x${enable_bmap_stats}" = "xno"; then :
6005 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6006 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6007 as_fn_error $? "Error --enable-bmap-stats-ops requires bmap-stats
6008 See \`config.log' for more details" "$LINENO" 5; }
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling additional bitmap statistics" >&5
6012 $as_echo "Enabling additional bitmap statistics" >&6; }
6013 $as_echo "#define ENABLE_BMAP_STATS_OPS 1" >>confdefs.h
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics by default" >&5
6019 $as_echo "Disabling additional bitmap statistics by default" >&6; }
6023 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
6025 GETTEXT_PACKAGE=e2fsprogs
6027 VERSION="$E2FSPROGS_VERSION"
6030 cat >>confdefs.h <<_ACEOF
6031 #define PACKAGE "$PACKAGE"
6035 cat >>confdefs.h <<_ACEOF
6036 #define VERSION "$VERSION"
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6044 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6046 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6047 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6048 $as_echo_n "(cached) " >&6
6050 cat >conftest.make <<\_ACEOF
6053 @echo '@@@%%%=$(MAKE)=@@@%%%'
6055 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6056 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6058 eval ac_cv_prog_make_${ac_make}_set=yes;;
6060 eval ac_cv_prog_make_${ac_make}_set=no;;
6064 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6066 $as_echo "yes" >&6; }
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6070 $as_echo "no" >&6; }
6071 SET_MAKE="MAKE=${MAKE-make}"
6074 # Find a good install program. We prefer a C program (faster),
6075 # so one script is as good as another. But avoid the broken or
6076 # incompatible versions:
6077 # SysV /etc/install, /usr/sbin/install
6078 # SunOS /usr/etc/install
6079 # IRIX /sbin/install
6081 # AmigaOS /C/install, which installs bootblocks on floppy discs
6082 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6083 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6084 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6085 # OS/2's system install, which has a completely different semantic
6086 # ./install, which can be erroneously created by make from ./install.sh.
6087 # Reject install programs that cannot install multiple files.
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
6089 $as_echo_n "checking for a BSD-compatible install... " >&6; }
6090 if test -z "$INSTALL"; then
6091 if ${ac_cv_path_install+:} false; then :
6092 $as_echo_n "(cached) " >&6
6094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6098 test -z "$as_dir" && as_dir=.
6099 # Account for people who put trailing slashes in PATH elements.
6100 case $as_dir/ in #((
6101 ./ | .// | /[cC]/* | \
6102 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6103 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
6106 # OSF1 and SCO ODT 3.0 have their own names for install.
6107 # Don't use installbsd from OSF since it installs stuff as root
6109 for ac_prog in ginstall scoinst install; do
6110 for ac_exec_ext in '' $ac_executable_extensions; do
6111 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6112 if test $ac_prog = install &&
6113 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6114 # AIX install. It has an incompatible calling convention.
6116 elif test $ac_prog = install &&
6117 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6118 # program-specific install script used by HP pwplus--don't use.
6121 rm -rf conftest.one conftest.two conftest.dir
6122 echo one > conftest.one
6123 echo two > conftest.two
6125 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6126 test -s conftest.one && test -s conftest.two &&
6127 test -s conftest.dir/conftest.one &&
6128 test -s conftest.dir/conftest.two
6130 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6143 rm -rf conftest.one conftest.two conftest.dir
6146 if test "${ac_cv_path_install+set}" = set; then
6147 INSTALL=$ac_cv_path_install
6149 # As a last resort, use the slow shell script. Don't cache a
6150 # value for INSTALL within a source directory, because that will
6151 # break other packages using the cache if that directory is
6152 # removed, or if the value is a relative name.
6153 INSTALL=$ac_install_sh
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
6157 $as_echo "$INSTALL" >&6; }
6159 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6160 # It thinks the first close brace ends the variable substitution.
6161 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6163 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6165 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
6168 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6169 if test -z "$MKDIR_P"; then
6170 if ${ac_cv_path_mkdir+:} false; then :
6171 $as_echo_n "(cached) " >&6
6173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6174 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6177 test -z "$as_dir" && as_dir=.
6178 for ac_prog in mkdir gmkdir; do
6179 for ac_exec_ext in '' $ac_executable_extensions; do
6180 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
6181 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6182 'mkdir (GNU coreutils) '* | \
6183 'mkdir (coreutils) '* | \
6184 'mkdir (fileutils) '4.1*)
6185 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6195 test -d ./--version && rmdir ./--version
6196 if test "${ac_cv_path_mkdir+set}" = set; then
6197 MKDIR_P="$ac_cv_path_mkdir -p"
6199 # As a last resort, use the slow shell script. Don't cache a
6200 # value for MKDIR_P within a source directory, because that will
6201 # break other packages using the cache if that directory is
6202 # removed, or if the value is a relative name.
6203 MKDIR_P="$ac_install_sh -d"
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
6207 $as_echo "$MKDIR_P" >&6; }
6209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6210 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6211 if ${ac_cv_path_SED+:} false; then :
6212 $as_echo_n "(cached) " >&6
6214 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6215 for ac_i in 1 2 3 4 5 6 7; do
6216 ac_script="$ac_script$as_nl$ac_script"
6218 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6219 { ac_script=; unset ac_script;}
6220 if test -z "$SED"; then
6221 ac_path_SED_found=false
6222 # Loop through the user's path and test for each of PROGNAME-LIST
6223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6227 test -z "$as_dir" && as_dir=.
6228 for ac_prog in sed gsed; do
6229 for ac_exec_ext in '' $ac_executable_extensions; do
6230 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6231 as_fn_executable_p "$ac_path_SED" || continue
6232 # Check for GNU ac_path_SED and select it if it is found.
6233 # Check for GNU $ac_path_SED
6234 case `"$ac_path_SED" --version 2>&1` in
6236 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6239 $as_echo_n 0123456789 >"conftest.in"
6242 cat "conftest.in" "conftest.in" >"conftest.tmp"
6243 mv "conftest.tmp" "conftest.in"
6244 cp "conftest.in" "conftest.nl"
6245 $as_echo '' >> "conftest.nl"
6246 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6247 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6248 as_fn_arith $ac_count + 1 && ac_count=$as_val
6249 if test $ac_count -gt ${ac_path_SED_max-0}; then
6250 # Best one so far, save it but keep looking for a better one
6251 ac_cv_path_SED="$ac_path_SED"
6252 ac_path_SED_max=$ac_count
6254 # 10*(2^10) chars as input seems more than enough
6255 test $ac_count -gt 10 && break
6257 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6260 $ac_path_SED_found && break 3
6265 if test -z "$ac_cv_path_SED"; then
6266 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6274 $as_echo "$ac_cv_path_SED" >&6; }
6275 SED="$ac_cv_path_SED"
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6280 $as_echo_n "checking whether NLS is requested... " >&6; }
6281 # Check whether --enable-nls was given.
6282 if test "${enable_nls+set}" = set; then :
6283 enableval=$enable_nls; USE_NLS=$enableval
6288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6289 $as_echo "$USE_NLS" >&6; }
6294 GETTEXT_MACRO_VERSION=0.18
6299 # Prepare PATH_SEPARATOR.
6300 # The user is always right.
6301 if test "${PATH_SEPARATOR+set}" != set; then
6302 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6303 # contains only /bin. Note that ksh looks also at the FPATH variable,
6304 # so we have to set that as well for the test.
6306 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6307 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6308 || PATH_SEPARATOR=';'
6312 # Find out how to test for executable files. Don't use a zero-byte file,
6313 # as systems may use methods other than mode bits to determine executability.
6314 cat >conf$$.file <<_ASEOF
6318 chmod +x conf$$.file
6319 if test -x conf$$.file >/dev/null 2>&1; then
6320 ac_executable_p="test -x"
6322 ac_executable_p="test -f"
6326 # Extract the first word of "msgfmt", so it can be a program name with args.
6327 set dummy msgfmt; ac_word=$2
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6329 $as_echo_n "checking for $ac_word... " >&6; }
6330 if ${ac_cv_path_MSGFMT+:} false; then :
6331 $as_echo_n "(cached) " >&6
6335 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6338 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6339 for ac_dir in $PATH; do
6341 test -z "$ac_dir" && ac_dir=.
6342 for ac_exec_ext in '' $ac_executable_extensions; do
6343 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6344 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6345 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
6346 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6347 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
6354 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
6358 MSGFMT="$ac_cv_path_MSGFMT"
6359 if test "$MSGFMT" != ":"; then
6360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
6361 $as_echo "$MSGFMT" >&6; }
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6364 $as_echo "no" >&6; }
6367 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6368 set dummy gmsgfmt; ac_word=$2
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6370 $as_echo_n "checking for $ac_word... " >&6; }
6371 if ${ac_cv_path_GMSGFMT+:} false; then :
6372 $as_echo_n "(cached) " >&6
6376 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6383 test -z "$as_dir" && as_dir=.
6384 for ac_exec_ext in '' $ac_executable_extensions; do
6385 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6386 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
6387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6394 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6398 GMSGFMT=$ac_cv_path_GMSGFMT
6399 if test -n "$GMSGFMT"; then
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
6401 $as_echo "$GMSGFMT" >&6; }
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6404 $as_echo "no" >&6; }
6409 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6410 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
6411 *) MSGFMT_015=$MSGFMT ;;
6414 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6415 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
6416 *) GMSGFMT_015=$GMSGFMT ;;
6421 # Prepare PATH_SEPARATOR.
6422 # The user is always right.
6423 if test "${PATH_SEPARATOR+set}" != set; then
6424 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6425 # contains only /bin. Note that ksh looks also at the FPATH variable,
6426 # so we have to set that as well for the test.
6428 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6429 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6430 || PATH_SEPARATOR=';'
6434 # Find out how to test for executable files. Don't use a zero-byte file,
6435 # as systems may use methods other than mode bits to determine executability.
6436 cat >conf$$.file <<_ASEOF
6440 chmod +x conf$$.file
6441 if test -x conf$$.file >/dev/null 2>&1; then
6442 ac_executable_p="test -x"
6444 ac_executable_p="test -f"
6448 # Extract the first word of "xgettext", so it can be a program name with args.
6449 set dummy xgettext; ac_word=$2
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6451 $as_echo_n "checking for $ac_word... " >&6; }
6452 if ${ac_cv_path_XGETTEXT+:} false; then :
6453 $as_echo_n "(cached) " >&6
6457 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6460 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6461 for ac_dir in $PATH; do
6463 test -z "$ac_dir" && ac_dir=.
6464 for ac_exec_ext in '' $ac_executable_extensions; do
6465 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6466 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6467 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
6468 (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
6469 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6476 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6480 XGETTEXT="$ac_cv_path_XGETTEXT"
6481 if test "$XGETTEXT" != ":"; then
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
6483 $as_echo "$XGETTEXT" >&6; }
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6486 $as_echo "no" >&6; }
6491 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6492 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
6493 *) XGETTEXT_015=$XGETTEXT ;;
6498 # Prepare PATH_SEPARATOR.
6499 # The user is always right.
6500 if test "${PATH_SEPARATOR+set}" != set; then
6501 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6502 # contains only /bin. Note that ksh looks also at the FPATH variable,
6503 # so we have to set that as well for the test.
6505 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6506 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6507 || PATH_SEPARATOR=';'
6511 # Find out how to test for executable files. Don't use a zero-byte file,
6512 # as systems may use methods other than mode bits to determine executability.
6513 cat >conf$$.file <<_ASEOF
6517 chmod +x conf$$.file
6518 if test -x conf$$.file >/dev/null 2>&1; then
6519 ac_executable_p="test -x"
6521 ac_executable_p="test -f"
6525 # Extract the first word of "msgmerge", so it can be a program name with args.
6526 set dummy msgmerge; ac_word=$2
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6528 $as_echo_n "checking for $ac_word... " >&6; }
6529 if ${ac_cv_path_MSGMERGE+:} false; then :
6530 $as_echo_n "(cached) " >&6
6534 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6537 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6538 for ac_dir in $PATH; do
6540 test -z "$ac_dir" && ac_dir=.
6541 for ac_exec_ext in '' $ac_executable_extensions; do
6542 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6543 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6544 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
6545 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6552 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6556 MSGMERGE="$ac_cv_path_MSGMERGE"
6557 if test "$MSGMERGE" != ":"; then
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
6559 $as_echo "$MSGMERGE" >&6; }
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6562 $as_echo "no" >&6; }
6566 test -n "$localedir" || localedir='${datadir}/locale'
6569 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
6572 ac_config_commands="$ac_config_commands po-directories"
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
6577 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
6578 if ${ac_cv_gnu_library_2+:} false; then :
6579 $as_echo_n "(cached) " >&6
6581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6582 /* end confdefs.h. */
6584 #include <features.h>
6585 #ifdef __GNU_LIBRARY__
6586 #if (__GLIBC__ >= 2) && !defined __UCLIBC__
6592 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6593 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
6594 ac_cv_gnu_library_2=yes
6596 ac_cv_gnu_library_2=no
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
6604 $as_echo "$ac_cv_gnu_library_2" >&6; }
6606 GLIBC2="$ac_cv_gnu_library_2"
6609 if test -n "$ac_tool_prefix"; then
6610 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6611 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6613 $as_echo_n "checking for $ac_word... " >&6; }
6614 if ${ac_cv_prog_RANLIB+:} false; then :
6615 $as_echo_n "(cached) " >&6
6617 if test -n "$RANLIB"; then
6618 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6624 test -z "$as_dir" && as_dir=.
6625 for ac_exec_ext in '' $ac_executable_extensions; do
6626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6627 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6637 RANLIB=$ac_cv_prog_RANLIB
6638 if test -n "$RANLIB"; then
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6640 $as_echo "$RANLIB" >&6; }
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6643 $as_echo "no" >&6; }
6648 if test -z "$ac_cv_prog_RANLIB"; then
6649 ac_ct_RANLIB=$RANLIB
6650 # Extract the first word of "ranlib", so it can be a program name with args.
6651 set dummy ranlib; ac_word=$2
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6653 $as_echo_n "checking for $ac_word... " >&6; }
6654 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6655 $as_echo_n "(cached) " >&6
6657 if test -n "$ac_ct_RANLIB"; then
6658 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6664 test -z "$as_dir" && as_dir=.
6665 for ac_exec_ext in '' $ac_executable_extensions; do
6666 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6667 ac_cv_prog_ac_ct_RANLIB="ranlib"
6668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6677 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6678 if test -n "$ac_ct_RANLIB"; then
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6680 $as_echo "$ac_ct_RANLIB" >&6; }
6682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6683 $as_echo "no" >&6; }
6686 if test "x$ac_ct_RANLIB" = x; then
6689 case $cross_compiling:$ac_tool_warned in
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6692 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6693 ac_tool_warned=yes ;;
6695 RANLIB=$ac_ct_RANLIB
6698 RANLIB="$ac_cv_prog_RANLIB"
6705 if test -n "$GCC"; then
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
6707 $as_echo_n "checking whether the -Werror option is usable... " >&6; }
6708 if ${gl_cv_cc_vis_werror+:} false; then :
6709 $as_echo_n "(cached) " >&6
6712 gl_save_CFLAGS="$CFLAGS"
6713 CFLAGS="$CFLAGS -Werror"
6714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6715 /* end confdefs.h. */
6725 if ac_fn_c_try_compile "$LINENO"; then :
6726 gl_cv_cc_vis_werror=yes
6728 gl_cv_cc_vis_werror=no
6730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6731 CFLAGS="$gl_save_CFLAGS"
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
6735 $as_echo "$gl_cv_cc_vis_werror" >&6; }
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
6737 $as_echo_n "checking for simple visibility declarations... " >&6; }
6738 if ${gl_cv_cc_visibility+:} false; then :
6739 $as_echo_n "(cached) " >&6
6742 gl_save_CFLAGS="$CFLAGS"
6743 CFLAGS="$CFLAGS -fvisibility=hidden"
6744 if test $gl_cv_cc_vis_werror = yes; then
6745 CFLAGS="$CFLAGS -Werror"
6747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6748 /* end confdefs.h. */
6749 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
6750 extern __attribute__((__visibility__("default"))) int exportedvar;
6751 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
6752 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
6753 void dummyfunc (void) {}
6763 if ac_fn_c_try_compile "$LINENO"; then :
6764 gl_cv_cc_visibility=yes
6766 gl_cv_cc_visibility=no
6768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6769 CFLAGS="$gl_save_CFLAGS"
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
6773 $as_echo "$gl_cv_cc_visibility" >&6; }
6774 if test $gl_cv_cc_visibility = yes; then
6775 CFLAG_VISIBILITY="-fvisibility=hidden"
6782 cat >>confdefs.h <<_ACEOF
6783 #define HAVE_VISIBILITY $HAVE_VISIBILITY
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6788 $as_echo_n "checking for inline... " >&6; }
6789 if ${ac_cv_c_inline+:} false; then :
6790 $as_echo_n "(cached) " >&6
6793 for ac_kw in inline __inline__ __inline; do
6794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6795 /* end confdefs.h. */
6798 static $ac_kw foo_t static_foo () {return 0; }
6799 $ac_kw foo_t foo () {return 0; }
6803 if ac_fn_c_try_compile "$LINENO"; then :
6804 ac_cv_c_inline=$ac_kw
6806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6807 test "$ac_cv_c_inline" != no && break
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6812 $as_echo "$ac_cv_c_inline" >&6; }
6814 case $ac_cv_c_inline in
6817 case $ac_cv_c_inline in
6819 *) ac_val=$ac_cv_c_inline;;
6821 cat >>confdefs.h <<_ACEOF
6823 #define inline $ac_val
6829 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6830 if test "x$ac_cv_type_size_t" = xyes; then :
6834 cat >>confdefs.h <<_ACEOF
6835 #define size_t unsigned int
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
6842 $as_echo_n "checking for stdint.h... " >&6; }
6843 if ${gl_cv_header_stdint_h+:} false; then :
6844 $as_echo_n "(cached) " >&6
6846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6847 /* end confdefs.h. */
6848 #include <sys/types.h>
6853 uintmax_t i = (uintmax_t) -1; return !i;
6858 if ac_fn_c_try_compile "$LINENO"; then :
6859 gl_cv_header_stdint_h=yes
6861 gl_cv_header_stdint_h=no
6863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
6866 $as_echo "$gl_cv_header_stdint_h" >&6; }
6867 if test $gl_cv_header_stdint_h = yes; then
6869 cat >>confdefs.h <<_ACEOF
6870 #define HAVE_STDINT_H_WITH_UINTMAX 1
6875 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6876 # for constant arguments. Useless!
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6878 $as_echo_n "checking for working alloca.h... " >&6; }
6879 if ${ac_cv_working_alloca_h+:} false; then :
6880 $as_echo_n "(cached) " >&6
6882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6883 /* end confdefs.h. */
6888 char *p = (char *) alloca (2 * sizeof (int));
6894 if ac_fn_c_try_link "$LINENO"; then :
6895 ac_cv_working_alloca_h=yes
6897 ac_cv_working_alloca_h=no
6899 rm -f core conftest.err conftest.$ac_objext \
6900 conftest$ac_exeext conftest.$ac_ext
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6903 $as_echo "$ac_cv_working_alloca_h" >&6; }
6904 if test $ac_cv_working_alloca_h = yes; then
6906 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6911 $as_echo_n "checking for alloca... " >&6; }
6912 if ${ac_cv_func_alloca_works+:} false; then :
6913 $as_echo_n "(cached) " >&6
6915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6916 /* end confdefs.h. */
6918 # define alloca __builtin_alloca
6921 # include <malloc.h>
6922 # define alloca _alloca
6924 # ifdef HAVE_ALLOCA_H
6925 # include <alloca.h>
6930 # ifndef alloca /* predefined by HP cc +Olibcalls */
6931 void *alloca (size_t);
6941 char *p = (char *) alloca (1);
6947 if ac_fn_c_try_link "$LINENO"; then :
6948 ac_cv_func_alloca_works=yes
6950 ac_cv_func_alloca_works=no
6952 rm -f core conftest.err conftest.$ac_objext \
6953 conftest$ac_exeext conftest.$ac_ext
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6956 $as_echo "$ac_cv_func_alloca_works" >&6; }
6958 if test $ac_cv_func_alloca_works = yes; then
6960 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6963 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6964 # that cause trouble. Some versions do not even contain alloca or
6965 # contain a buggy version. If you still want to use their alloca,
6966 # use ar to extract alloca.o from them instead of compiling alloca.c.
6968 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6970 $as_echo "#define C_ALLOCA 1" >>confdefs.h
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6974 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6975 if ${ac_cv_os_cray+:} false; then :
6976 $as_echo_n "(cached) " >&6
6978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6979 /* end confdefs.h. */
6980 #if defined CRAY && ! defined CRAY2
6987 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6988 $EGREP "webecray" >/dev/null 2>&1; then :
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6997 $as_echo "$ac_cv_os_cray" >&6; }
6998 if test $ac_cv_os_cray = yes; then
6999 for ac_func in _getb67 GETB67 getb67; do
7000 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7001 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7002 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7004 cat >>confdefs.h <<_ACEOF
7005 #define CRAY_STACKSEG_END $ac_func
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
7015 $as_echo_n "checking stack direction for C alloca... " >&6; }
7016 if ${ac_cv_c_stack_direction+:} false; then :
7017 $as_echo_n "(cached) " >&6
7019 if test "$cross_compiling" = yes; then :
7020 ac_cv_c_stack_direction=0
7022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7023 /* end confdefs.h. */
7024 $ac_includes_default
7026 find_stack_direction (int *addr, int depth)
7031 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7032 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7037 main (int argc, char **argv)
7039 return find_stack_direction (0, argc + !argv + 20) < 0;
7042 if ac_fn_c_try_run "$LINENO"; then :
7043 ac_cv_c_stack_direction=1
7045 ac_cv_c_stack_direction=-1
7047 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7048 conftest.$ac_objext conftest.beam conftest.$ac_ext
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7053 $as_echo "$ac_cv_c_stack_direction" >&6; }
7054 cat >>confdefs.h <<_ACEOF
7055 #define STACK_DIRECTION $ac_cv_c_stack_direction
7064 for ac_header in $ac_header_list
7066 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7067 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7069 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7070 cat >>confdefs.h <<_ACEOF
7071 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7085 for ac_func in getpagesize
7087 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7088 if test "x$ac_cv_func_getpagesize" = xyes; then :
7089 cat >>confdefs.h <<_ACEOF
7090 #define HAVE_GETPAGESIZE 1
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7097 $as_echo_n "checking for working mmap... " >&6; }
7098 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
7099 $as_echo_n "(cached) " >&6
7101 if test "$cross_compiling" = yes; then :
7102 ac_cv_func_mmap_fixed_mapped=no
7104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7105 /* end confdefs.h. */
7106 $ac_includes_default
7107 /* malloc might have been renamed as rpl_malloc. */
7110 /* Thanks to Mike Haertel and Jim Avera for this test.
7111 Here is a matrix of mmap possibilities:
7112 mmap private not fixed
7113 mmap private fixed at somewhere currently unmapped
7114 mmap private fixed at somewhere already mapped
7115 mmap shared not fixed
7116 mmap shared fixed at somewhere currently unmapped
7117 mmap shared fixed at somewhere already mapped
7118 For private mappings, we should verify that changes cannot be read()
7119 back from the file, nor mmap's back from the file at a different
7120 address. (There have been systems where private was not correctly
7121 implemented like the infamous i386 svr4.0, and systems where the
7122 VM page cache was not coherent with the file system buffer cache
7123 like early versions of FreeBSD and possibly contemporary NetBSD.)
7124 For shared mappings, we should conversely verify that changes get
7125 propagated back to all the places they're supposed to be.
7127 Grep wants private fixed already mapped.
7128 The main things grep needs to know about mmap are:
7129 * does it exist and is it safe to write into the mmap'd area
7130 * how to use it (BSD variants) */
7133 #include <sys/mman.h>
7135 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7139 /* This mess was copied from the GNU getpagesize.h. */
7140 #ifndef HAVE_GETPAGESIZE
7141 # ifdef _SC_PAGESIZE
7142 # define getpagesize() sysconf(_SC_PAGESIZE)
7143 # else /* no _SC_PAGESIZE */
7144 # ifdef HAVE_SYS_PARAM_H
7145 # include <sys/param.h>
7146 # ifdef EXEC_PAGESIZE
7147 # define getpagesize() EXEC_PAGESIZE
7148 # else /* no EXEC_PAGESIZE */
7150 # define getpagesize() NBPG * CLSIZE
7153 # endif /* no CLSIZE */
7154 # else /* no NBPG */
7156 # define getpagesize() NBPC
7157 # else /* no NBPC */
7159 # define getpagesize() PAGESIZE
7160 # endif /* PAGESIZE */
7161 # endif /* no NBPC */
7162 # endif /* no NBPG */
7163 # endif /* no EXEC_PAGESIZE */
7164 # else /* no HAVE_SYS_PARAM_H */
7165 # define getpagesize() 8192 /* punt totally */
7166 # endif /* no HAVE_SYS_PARAM_H */
7167 # endif /* no _SC_PAGESIZE */
7169 #endif /* no HAVE_GETPAGESIZE */
7174 char *data, *data2, *data3;
7179 pagesize = getpagesize ();
7181 /* First, make a file with some known garbage in it. */
7182 data = (char *) malloc (pagesize);
7185 for (i = 0; i < pagesize; ++i)
7186 *(data + i) = rand ();
7188 fd = creat ("conftest.mmap", 0600);
7191 if (write (fd, data, pagesize) != pagesize)
7195 /* Next, check that the tail of a page is zero-filled. File must have
7196 non-zero length, otherwise we risk SIGBUS for entire page. */
7197 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7201 if (write (fd2, cdata2, 1) != 1)
7203 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7204 if (data2 == MAP_FAILED)
7206 for (i = 0; i < pagesize; ++i)
7210 if (munmap (data2, pagesize))
7213 /* Next, try to mmap the file at a fixed address which already has
7214 something else allocated at it. If we can, also make sure that
7215 we see the same garbage. */
7216 fd = open ("conftest.mmap", O_RDWR);
7219 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7220 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7222 for (i = 0; i < pagesize; ++i)
7223 if (*(data + i) != *(data2 + i))
7226 /* Finally, make sure that changes to the mapped area do not
7227 percolate back to the file as seen by read(). (This is a bug on
7228 some variants of i386 svr4.0.) */
7229 for (i = 0; i < pagesize; ++i)
7230 *(data2 + i) = *(data2 + i) + 1;
7231 data3 = (char *) malloc (pagesize);
7234 if (read (fd, data3, pagesize) != pagesize)
7236 for (i = 0; i < pagesize; ++i)
7237 if (*(data + i) != *(data3 + i))
7243 if ac_fn_c_try_run "$LINENO"; then :
7244 ac_cv_func_mmap_fixed_mapped=yes
7246 ac_cv_func_mmap_fixed_mapped=no
7248 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7249 conftest.$ac_objext conftest.beam conftest.$ac_ext
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7254 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7255 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7257 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7260 rm -f conftest.mmap conftest.txt
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
7265 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
7266 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
7267 $as_echo_n "(cached) " >&6
7270 gt_cv_int_divbyzero_sigfpe=
7272 macos* | darwin[6-9]* | darwin[1-9][0-9]*)
7273 # On Mac OS X 10.2 or newer, just assume the same as when cross-
7274 # compiling. If we were to perform the real test, 1 Crash Report
7275 # dialog window would pop up.
7277 i[34567]86 | x86_64)
7278 gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
7282 if test -z "$gt_cv_int_divbyzero_sigfpe"; then
7283 if test "$cross_compiling" = yes; then :
7285 # Guess based on the CPU.
7287 alpha* | i[34567]86 | x86_64 | m68k | s390*)
7288 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7290 gt_cv_int_divbyzero_sigfpe="guessing no";;
7294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7295 /* end confdefs.h. */
7301 sigfpe_handler (int sig)
7303 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
7304 exit (sig != SIGFPE);
7314 signal (SIGFPE, sigfpe_handler);
7315 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
7316 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7317 signal (SIGTRAP, sigfpe_handler);
7319 /* Linux/SPARC yields signal SIGILL. */
7320 #if defined (__sparc__) && defined (__linux__)
7321 signal (SIGILL, sigfpe_handler);
7330 if ac_fn_c_try_run "$LINENO"; then :
7331 gt_cv_int_divbyzero_sigfpe=yes
7333 gt_cv_int_divbyzero_sigfpe=no
7335 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7336 conftest.$ac_objext conftest.beam conftest.$ac_ext
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
7343 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
7344 case "$gt_cv_int_divbyzero_sigfpe" in
7349 cat >>confdefs.h <<_ACEOF
7350 #define INTDIV0_RAISES_SIGFPE $value
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7356 $as_echo_n "checking for inttypes.h... " >&6; }
7357 if ${gl_cv_header_inttypes_h+:} false; then :
7358 $as_echo_n "(cached) " >&6
7360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7361 /* end confdefs.h. */
7363 #include <sys/types.h>
7364 #include <inttypes.h>
7369 uintmax_t i = (uintmax_t) -1; return !i;
7374 if ac_fn_c_try_compile "$LINENO"; then :
7375 gl_cv_header_inttypes_h=yes
7377 gl_cv_header_inttypes_h=no
7379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
7382 $as_echo "$gl_cv_header_inttypes_h" >&6; }
7383 if test $gl_cv_header_inttypes_h = yes; then
7385 cat >>confdefs.h <<_ACEOF
7386 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
7393 $as_echo_n "checking for unsigned long long int... " >&6; }
7394 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
7395 $as_echo_n "(cached) " >&6
7397 ac_cv_type_unsigned_long_long_int=yes
7398 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
7399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7400 /* end confdefs.h. */
7402 /* For now, do not test the preprocessor; as of 2007 there are too many
7403 implementations with broken preprocessors. Perhaps this can
7404 be revisited in 2012. In the meantime, code should not expect
7405 #if to work with literals wider than 32 bits. */
7406 /* Test literals. */
7407 long long int ll = 9223372036854775807ll;
7408 long long int nll = -9223372036854775807LL;
7409 unsigned long long int ull = 18446744073709551615ULL;
7410 /* Test constant expressions. */
7411 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
7413 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
7419 /* Test availability of runtime routines for shift and division. */
7420 long long int llmax = 9223372036854775807ll;
7421 unsigned long long int ullmax = 18446744073709551615ull;
7422 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
7423 | (llmax / ll) | (llmax % ll)
7424 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
7425 | (ullmax / ull) | (ullmax % ull));
7431 if ac_fn_c_try_link "$LINENO"; then :
7434 ac_cv_type_unsigned_long_long_int=no
7436 rm -f core conftest.err conftest.$ac_objext \
7437 conftest$ac_exeext conftest.$ac_ext
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
7441 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
7442 if test $ac_cv_type_unsigned_long_long_int = yes; then
7444 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
7451 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
7453 test $ac_cv_type_unsigned_long_long_int = yes \
7454 && ac_type='unsigned long long' \
7455 || ac_type='unsigned long'
7457 cat >>confdefs.h <<_ACEOF
7458 #define uintmax_t $ac_type
7463 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
7468 for ac_header in inttypes.h
7470 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
7471 if test "x$ac_cv_header_inttypes_h" = xyes; then :
7472 cat >>confdefs.h <<_ACEOF
7473 #define HAVE_INTTYPES_H 1
7480 if test $ac_cv_header_inttypes_h = yes; then
7481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
7482 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7483 if ${gt_cv_inttypes_pri_broken+:} false; then :
7484 $as_echo_n "(cached) " >&6
7487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7488 /* end confdefs.h. */
7490 #include <inttypes.h>
7503 if ac_fn_c_try_compile "$LINENO"; then :
7504 gt_cv_inttypes_pri_broken=no
7506 gt_cv_inttypes_pri_broken=yes
7508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
7512 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7514 if test "$gt_cv_inttypes_pri_broken" = yes; then
7516 cat >>confdefs.h <<_ACEOF
7517 #define PRI_MACROS_BROKEN 1
7531 # Check whether --enable-threads was given.
7532 if test "${enable_threads+set}" = set; then :
7533 enableval=$enable_threads; gl_use_threads=$enableval
7535 if test -n "$gl_use_threads_default"; then
7536 gl_use_threads="$gl_use_threads_default"
7539 osf*) gl_use_threads=no ;;
7542 1.[0-5].*) gl_use_threads=no ;;
7543 *) gl_use_threads=yes ;;
7546 *) gl_use_threads=yes ;;
7552 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7553 # For using <pthread.h>:
7556 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
7557 # groks <pthread.h>. cc also understands the flag -pthread, but
7558 # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
7559 # 2. putting a flag into CPPFLAGS that has an effect on the linker
7560 # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
7561 # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
7562 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
7565 # Some systems optimize for single-threaded programs by default, and
7566 # need special flags to disable these optimizations. For example, the
7567 # definition of 'errno' in <errno.h>.
7569 aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
7570 solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
7578 if test "X$prefix" = "XNONE"; then
7579 acl_final_prefix="$ac_default_prefix"
7581 acl_final_prefix="$prefix"
7583 if test "X$exec_prefix" = "XNONE"; then
7584 acl_final_exec_prefix='${prefix}'
7586 acl_final_exec_prefix="$exec_prefix"
7588 acl_save_prefix="$prefix"
7589 prefix="$acl_final_prefix"
7590 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7591 prefix="$acl_save_prefix"
7595 # Check whether --with-gnu-ld was given.
7596 if test "${with_gnu_ld+set}" = set; then :
7597 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7602 # Prepare PATH_SEPARATOR.
7603 # The user is always right.
7604 if test "${PATH_SEPARATOR+set}" != set; then
7605 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7606 # contains only /bin. Note that ksh looks also at the FPATH variable,
7607 # so we have to set that as well for the test.
7609 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7610 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7611 || PATH_SEPARATOR=';'
7616 if test "$GCC" = yes; then
7617 # Check if gcc -print-prog-name=ld gives a path.
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7619 $as_echo_n "checking for ld used by $CC... " >&6; }
7622 # gcc leaves a trailing carriage return which upsets mingw
7623 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7625 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7628 # Accept absolute paths.
7630 re_direlt='/[^/][^/]*/\.\./'
7631 # Canonicalize the pathname of ld
7632 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
7633 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
7634 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7636 test -z "$LD" && LD="$ac_prog"
7639 # If it fails, then pretend we aren't using GCC.
7643 # If it is relative, then search for the first ld in PATH.
7647 elif test "$with_gnu_ld" = yes; then
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7649 $as_echo_n "checking for GNU ld... " >&6; }
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7652 $as_echo_n "checking for non-GNU ld... " >&6; }
7654 if ${acl_cv_path_LD+:} false; then :
7655 $as_echo_n "(cached) " >&6
7657 if test -z "$LD"; then
7658 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7659 for ac_dir in $PATH; do
7661 test -z "$ac_dir" && ac_dir=.
7662 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7663 acl_cv_path_LD="$ac_dir/$ac_prog"
7664 # Check to see if the program is GNU ld. I'd rather use --version,
7665 # but apparently some variants of GNU ld only accept -v.
7666 # Break only if it was the GNU/non-GNU ld that we prefer.
7667 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
7668 *GNU* | *'with BFD'*)
7669 test "$with_gnu_ld" != no && break
7672 test "$with_gnu_ld" != yes && break
7679 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7683 LD="$acl_cv_path_LD"
7684 if test -n "$LD"; then
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7686 $as_echo "$LD" >&6; }
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7689 $as_echo "no" >&6; }
7691 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7693 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7694 if ${acl_cv_prog_gnu_ld+:} false; then :
7695 $as_echo_n "(cached) " >&6
7697 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7698 case `$LD -v 2>&1 </dev/null` in
7699 *GNU* | *'with BFD'*)
7700 acl_cv_prog_gnu_ld=yes
7703 acl_cv_prog_gnu_ld=no
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7708 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7709 with_gnu_ld=$acl_cv_prog_gnu_ld
7714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7715 $as_echo_n "checking for shared library run path origin... " >&6; }
7716 if ${acl_cv_rpath+:} false; then :
7717 $as_echo_n "(cached) " >&6
7720 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7721 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7728 $as_echo "$acl_cv_rpath" >&6; }
7730 acl_libext="$acl_cv_libext"
7731 acl_shlibext="$acl_cv_shlibext"
7732 acl_libname_spec="$acl_cv_libname_spec"
7733 acl_library_names_spec="$acl_cv_library_names_spec"
7734 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7735 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7736 acl_hardcode_direct="$acl_cv_hardcode_direct"
7737 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
7738 # Check whether --enable-rpath was given.
7739 if test "${enable_rpath+set}" = set; then :
7740 enableval=$enable_rpath; :
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
7753 $as_echo_n "checking for 64-bit host... " >&6; }
7754 if ${gl_cv_solaris_64bit+:} false; then :
7755 $as_echo_n "(cached) " >&6
7757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7758 /* end confdefs.h. */
7765 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7766 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
7767 gl_cv_solaris_64bit=yes
7769 gl_cv_solaris_64bit=no
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
7776 $as_echo "$gl_cv_solaris_64bit" >&6; }
7777 if test $gl_cv_solaris_64bit = yes; then
7778 acl_libdirstem=lib/64
7780 sparc*) acl_libdirstem2=lib/sparcv9 ;;
7781 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
7786 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
7787 if test -n "$searchpath"; then
7788 acl_save_IFS="${IFS= }"; IFS=":"
7789 for searchdir in $searchpath; do
7790 if test -d "$searchdir"; then
7791 case "$searchdir" in
7792 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
7794 # Better ignore directories of this form. They are misleading.
7796 *) searchdir=`cd "$searchdir" && pwd`
7797 case "$searchdir" in
7798 */lib64 ) acl_libdirstem=lib64 ;;
7807 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
7816 if test "$gl_use_threads" != no; then
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
7818 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
7819 if ${gl_cv_have_weak+:} false; then :
7820 $as_echo_n "(cached) " >&6
7823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7824 /* end confdefs.h. */
7825 extern void xyzzy ();
7835 if ac_fn_c_try_link "$LINENO"; then :
7836 gl_cv_have_weak=maybe
7838 rm -f core conftest.err conftest.$ac_objext \
7839 conftest$ac_exeext conftest.$ac_ext
7840 if test $gl_cv_have_weak = maybe; then
7841 if test "$cross_compiling" = yes; then :
7842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7843 /* end confdefs.h. */
7845 Extensible Linking Format
7849 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7850 $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
7851 gl_cv_have_weak="guessing yes"
7853 gl_cv_have_weak="guessing no"
7859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7860 /* end confdefs.h. */
7866 return (fputs == NULL);
7869 if ac_fn_c_try_run "$LINENO"; then :
7874 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7875 conftest.$ac_objext conftest.beam conftest.$ac_ext
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
7882 $as_echo "$gl_cv_have_weak" >&6; }
7883 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7884 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
7885 # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
7886 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
7887 if test "x$ac_cv_header_pthread_h" = xyes; then :
7888 gl_have_pthread_h=yes
7890 gl_have_pthread_h=no
7894 if test "$gl_have_pthread_h" = yes; then
7895 # Other possible tests:
7896 # -lpthreads (FSU threads, PCthreads)
7899 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
7900 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
7901 # the second one only in libpthread, and lock.c needs it.
7902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7903 /* end confdefs.h. */
7904 #include <pthread.h>
7908 pthread_mutex_lock((pthread_mutex_t*)0);
7909 pthread_mutexattr_init((pthread_mutexattr_t*)0);
7914 if ac_fn_c_try_link "$LINENO"; then :
7917 rm -f core conftest.err conftest.$ac_objext \
7918 conftest$ac_exeext conftest.$ac_ext
7919 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
7920 # since it is defined as a macro on OSF/1.)
7921 if test -n "$gl_have_pthread"; then
7922 # The program links fine without libpthread. But it may actually
7923 # need to link with libpthread in order to create multiple threads.
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
7925 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
7926 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
7927 $as_echo_n "(cached) " >&6
7929 ac_check_lib_save_LIBS=$LIBS
7930 LIBS="-lpthread $LIBS"
7931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7932 /* end confdefs.h. */
7934 /* Override any GCC internal prototype to avoid an error.
7935 Use char because int might match the return type of a GCC
7936 builtin and then its argument prototype would still apply. */
7940 char pthread_kill ();
7944 return pthread_kill ();
7949 if ac_fn_c_try_link "$LINENO"; then :
7950 ac_cv_lib_pthread_pthread_kill=yes
7952 ac_cv_lib_pthread_pthread_kill=no
7954 rm -f core conftest.err conftest.$ac_objext \
7955 conftest$ac_exeext conftest.$ac_ext
7956 LIBS=$ac_check_lib_save_LIBS
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
7959 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
7960 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
7961 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
7962 # On Solaris and HP-UX, most pthread functions exist also in libc.
7963 # Therefore pthread_in_use() needs to actually try to create a
7964 # thread: pthread_create from libc will fail, whereas
7965 # pthread_create will actually create a thread.
7969 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
7976 # Some library is needed. Try libpthread and libc_r.
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
7978 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
7979 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
7980 $as_echo_n "(cached) " >&6
7982 ac_check_lib_save_LIBS=$LIBS
7983 LIBS="-lpthread $LIBS"
7984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7985 /* end confdefs.h. */
7987 /* Override any GCC internal prototype to avoid an error.
7988 Use char because int might match the return type of a GCC
7989 builtin and then its argument prototype would still apply. */
7993 char pthread_kill ();
7997 return pthread_kill ();
8002 if ac_fn_c_try_link "$LINENO"; then :
8003 ac_cv_lib_pthread_pthread_kill=yes
8005 ac_cv_lib_pthread_pthread_kill=no
8007 rm -f core conftest.err conftest.$ac_objext \
8008 conftest$ac_exeext conftest.$ac_ext
8009 LIBS=$ac_check_lib_save_LIBS
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
8012 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
8013 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
8015 LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
8016 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
8019 if test -z "$gl_have_pthread"; then
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
8022 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
8023 if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
8024 $as_echo_n "(cached) " >&6
8026 ac_check_lib_save_LIBS=$LIBS
8028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8029 /* end confdefs.h. */
8031 /* Override any GCC internal prototype to avoid an error.
8032 Use char because int might match the return type of a GCC
8033 builtin and then its argument prototype would still apply. */
8037 char pthread_kill ();
8041 return pthread_kill ();
8046 if ac_fn_c_try_link "$LINENO"; then :
8047 ac_cv_lib_c_r_pthread_kill=yes
8049 ac_cv_lib_c_r_pthread_kill=no
8051 rm -f core conftest.err conftest.$ac_objext \
8052 conftest$ac_exeext conftest.$ac_ext
8053 LIBS=$ac_check_lib_save_LIBS
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
8056 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
8057 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
8059 LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
8060 LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
8065 if test -n "$gl_have_pthread"; then
8066 gl_threads_api=posix
8068 $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
8070 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8071 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8073 $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
8082 if test -z "$gl_have_pthread"; then
8083 if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
8084 gl_have_solaristhread=
8085 gl_save_LIBS="$LIBS"
8086 LIBS="$LIBS -lthread"
8087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8088 /* end confdefs.h. */
8101 if ac_fn_c_try_link "$LINENO"; then :
8102 gl_have_solaristhread=yes
8104 rm -f core conftest.err conftest.$ac_objext \
8105 conftest$ac_exeext conftest.$ac_ext
8106 LIBS="$gl_save_LIBS"
8107 if test -n "$gl_have_solaristhread"; then
8108 gl_threads_api=solaris
8110 LTLIBTHREAD=-lthread
8111 LIBMULTITHREAD="$LIBTHREAD"
8112 LTLIBMULTITHREAD="$LTLIBTHREAD"
8114 $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
8116 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8118 $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
8126 if test "$gl_use_threads" = pth; then
8127 gl_save_CPPFLAGS="$CPPFLAGS"
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
8134 $as_echo_n "checking how to link with libpth... " >&6; }
8135 if ${ac_cv_libpth_libs+:} false; then :
8136 $as_echo_n "(cached) " >&6
8148 acl_save_prefix="$prefix"
8149 prefix="$acl_final_prefix"
8150 acl_save_exec_prefix="$exec_prefix"
8151 exec_prefix="$acl_final_exec_prefix"
8153 eval additional_includedir=\"$includedir\"
8154 eval additional_libdir=\"$libdir\"
8156 exec_prefix="$acl_save_exec_prefix"
8157 prefix="$acl_save_prefix"
8160 # Check whether --with-libpth-prefix was given.
8161 if test "${with_libpth_prefix+set}" = set; then :
8162 withval=$with_libpth_prefix;
8163 if test "X$withval" = "Xno"; then
8166 if test "X$withval" = "X"; then
8168 acl_save_prefix="$prefix"
8169 prefix="$acl_final_prefix"
8170 acl_save_exec_prefix="$exec_prefix"
8171 exec_prefix="$acl_final_exec_prefix"
8173 eval additional_includedir=\"$includedir\"
8174 eval additional_libdir=\"$libdir\"
8176 exec_prefix="$acl_save_exec_prefix"
8177 prefix="$acl_save_prefix"
8180 additional_includedir="$withval/include"
8181 additional_libdir="$withval/$acl_libdirstem"
8182 if test "$acl_libdirstem2" != "$acl_libdirstem" \
8183 && ! test -d "$withval/$acl_libdirstem"; then
8184 additional_libdir="$withval/$acl_libdirstem2"
8198 names_already_handled=
8199 names_next_round='pth '
8200 while test -n "$names_next_round"; do
8201 names_this_round="$names_next_round"
8203 for name in $names_this_round; do
8205 for n in $names_already_handled; do
8206 if test "$n" = "$name"; then
8211 if test -z "$already_handled"; then
8212 names_already_handled="$names_already_handled $name"
8213 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8214 eval value=\"\$HAVE_LIB$uppername\"
8215 if test -n "$value"; then
8216 if test "$value" = yes; then
8217 eval value=\"\$LIB$uppername\"
8218 test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
8219 eval value=\"\$LTLIB$uppername\"
8220 test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
8229 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8230 if test -n "$acl_shlibext"; then
8231 shrext=".$acl_shlibext" # typically: shrext=.so
8235 if test $use_additional = yes; then
8236 dir="$additional_libdir"
8237 if test -n "$acl_shlibext"; then
8238 if test -f "$dir/$libname$shrext"; then
8240 found_so="$dir/$libname$shrext"
8242 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8243 ver=`(cd "$dir" && \
8244 for f in "$libname$shrext".*; do echo "$f"; done \
8245 | sed -e "s,^$libname$shrext\\\\.,," \
8246 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8247 | sed 1q ) 2>/dev/null`
8248 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8250 found_so="$dir/$libname$shrext.$ver"
8253 eval library_names=\"$acl_library_names_spec\"
8254 for f in $library_names; do
8255 if test -f "$dir/$f"; then
8264 if test "X$found_dir" = "X"; then
8265 if test -f "$dir/$libname.$acl_libext"; then
8267 found_a="$dir/$libname.$acl_libext"
8270 if test "X$found_dir" != "X"; then
8271 if test -f "$dir/$libname.la"; then
8272 found_la="$dir/$libname.la"
8276 if test "X$found_dir" = "X"; then
8277 for x in $LDFLAGS $LTLIBPTH; do
8279 acl_save_prefix="$prefix"
8280 prefix="$acl_final_prefix"
8281 acl_save_exec_prefix="$exec_prefix"
8282 exec_prefix="$acl_final_exec_prefix"
8284 exec_prefix="$acl_save_exec_prefix"
8285 prefix="$acl_save_prefix"
8289 dir=`echo "X$x" | sed -e 's/^X-L//'`
8290 if test -n "$acl_shlibext"; then
8291 if test -f "$dir/$libname$shrext"; then
8293 found_so="$dir/$libname$shrext"
8295 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8296 ver=`(cd "$dir" && \
8297 for f in "$libname$shrext".*; do echo "$f"; done \
8298 | sed -e "s,^$libname$shrext\\\\.,," \
8299 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8300 | sed 1q ) 2>/dev/null`
8301 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8303 found_so="$dir/$libname$shrext.$ver"
8306 eval library_names=\"$acl_library_names_spec\"
8307 for f in $library_names; do
8308 if test -f "$dir/$f"; then
8317 if test "X$found_dir" = "X"; then
8318 if test -f "$dir/$libname.$acl_libext"; then
8320 found_a="$dir/$libname.$acl_libext"
8323 if test "X$found_dir" != "X"; then
8324 if test -f "$dir/$libname.la"; then
8325 found_la="$dir/$libname.la"
8330 if test "X$found_dir" != "X"; then
8335 if test "X$found_dir" != "X"; then
8336 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
8337 if test "X$found_so" != "X"; then
8338 if test "$enable_rpath" = no \
8339 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8340 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
8341 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8344 for x in $ltrpathdirs; do
8345 if test "X$x" = "X$found_dir"; then
8350 if test -z "$haveit"; then
8351 ltrpathdirs="$ltrpathdirs $found_dir"
8353 if test "$acl_hardcode_direct" = yes; then
8354 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8356 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8357 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8359 for x in $rpathdirs; do
8360 if test "X$x" = "X$found_dir"; then
8365 if test -z "$haveit"; then
8366 rpathdirs="$rpathdirs $found_dir"
8370 for x in $LDFLAGS $LIBPTH; do
8372 acl_save_prefix="$prefix"
8373 prefix="$acl_final_prefix"
8374 acl_save_exec_prefix="$exec_prefix"
8375 exec_prefix="$acl_final_exec_prefix"
8377 exec_prefix="$acl_save_exec_prefix"
8378 prefix="$acl_save_prefix"
8380 if test "X$x" = "X-L$found_dir"; then
8385 if test -z "$haveit"; then
8386 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
8388 if test "$acl_hardcode_minus_L" != no; then
8389 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8391 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8397 if test "X$found_a" != "X"; then
8398 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
8400 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
8403 additional_includedir=
8404 case "$found_dir" in
8405 */$acl_libdirstem | */$acl_libdirstem/)
8406 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8407 if test "$name" = 'pth'; then
8408 LIBPTH_PREFIX="$basedir"
8410 additional_includedir="$basedir/include"
8412 */$acl_libdirstem2 | */$acl_libdirstem2/)
8413 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
8414 if test "$name" = 'pth'; then
8415 LIBPTH_PREFIX="$basedir"
8417 additional_includedir="$basedir/include"
8420 if test "X$additional_includedir" != "X"; then
8421 if test "X$additional_includedir" != "X/usr/include"; then
8423 if test "X$additional_includedir" = "X/usr/local/include"; then
8424 if test -n "$GCC"; then
8426 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8430 if test -z "$haveit"; then
8431 for x in $CPPFLAGS $INCPTH; do
8433 acl_save_prefix="$prefix"
8434 prefix="$acl_final_prefix"
8435 acl_save_exec_prefix="$exec_prefix"
8436 exec_prefix="$acl_final_exec_prefix"
8438 exec_prefix="$acl_save_exec_prefix"
8439 prefix="$acl_save_prefix"
8441 if test "X$x" = "X-I$additional_includedir"; then
8446 if test -z "$haveit"; then
8447 if test -d "$additional_includedir"; then
8448 INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
8454 if test -n "$found_la"; then
8455 save_libdir="$libdir"
8457 */* | *\\*) . "$found_la" ;;
8458 *) . "./$found_la" ;;
8460 libdir="$save_libdir"
8461 for dep in $dependency_libs; do
8464 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8465 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
8466 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
8468 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
8469 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
8470 if test -n "$GCC"; then
8472 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8476 if test -z "$haveit"; then
8478 for x in $LDFLAGS $LIBPTH; do
8480 acl_save_prefix="$prefix"
8481 prefix="$acl_final_prefix"
8482 acl_save_exec_prefix="$exec_prefix"
8483 exec_prefix="$acl_final_exec_prefix"
8485 exec_prefix="$acl_save_exec_prefix"
8486 prefix="$acl_save_prefix"
8488 if test "X$x" = "X-L$additional_libdir"; then
8493 if test -z "$haveit"; then
8494 if test -d "$additional_libdir"; then
8495 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
8499 for x in $LDFLAGS $LTLIBPTH; do
8501 acl_save_prefix="$prefix"
8502 prefix="$acl_final_prefix"
8503 acl_save_exec_prefix="$exec_prefix"
8504 exec_prefix="$acl_final_exec_prefix"
8506 exec_prefix="$acl_save_exec_prefix"
8507 prefix="$acl_save_prefix"
8509 if test "X$x" = "X-L$additional_libdir"; then
8514 if test -z "$haveit"; then
8515 if test -d "$additional_libdir"; then
8516 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
8523 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8524 if test "$enable_rpath" != no; then
8526 for x in $rpathdirs; do
8527 if test "X$x" = "X$dir"; then
8532 if test -z "$haveit"; then
8533 rpathdirs="$rpathdirs $dir"
8536 for x in $ltrpathdirs; do
8537 if test "X$x" = "X$dir"; then
8542 if test -z "$haveit"; then
8543 ltrpathdirs="$ltrpathdirs $dir"
8548 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8551 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8554 LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
8555 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
8561 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8562 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
8568 if test "X$rpathdirs" != "X"; then
8569 if test -n "$acl_hardcode_libdir_separator"; then
8571 for found_dir in $rpathdirs; do
8572 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
8574 acl_save_libdir="$libdir"
8576 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8577 libdir="$acl_save_libdir"
8578 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
8580 for found_dir in $rpathdirs; do
8581 acl_save_libdir="$libdir"
8583 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8584 libdir="$acl_save_libdir"
8585 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
8589 if test "X$ltrpathdirs" != "X"; then
8590 for found_dir in $ltrpathdirs; do
8591 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
8600 ac_cv_libpth_libs="$LIBPTH"
8601 ac_cv_libpth_ltlibs="$LTLIBPTH"
8602 ac_cv_libpth_cppflags="$INCPTH"
8603 ac_cv_libpth_prefix="$LIBPTH_PREFIX"
8606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
8607 $as_echo "$ac_cv_libpth_libs" >&6; }
8608 LIBPTH="$ac_cv_libpth_libs"
8609 LTLIBPTH="$ac_cv_libpth_ltlibs"
8610 INCPTH="$ac_cv_libpth_cppflags"
8611 LIBPTH_PREFIX="$ac_cv_libpth_prefix"
8613 for element in $INCPTH; do
8615 for x in $CPPFLAGS; do
8617 acl_save_prefix="$prefix"
8618 prefix="$acl_final_prefix"
8619 acl_save_exec_prefix="$exec_prefix"
8620 exec_prefix="$acl_final_exec_prefix"
8622 exec_prefix="$acl_save_exec_prefix"
8623 prefix="$acl_save_prefix"
8625 if test "X$x" = "X$element"; then
8630 if test -z "$haveit"; then
8631 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8643 gl_save_LIBS="$LIBS"
8644 LIBS="$LIBS $LIBPTH"
8645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8646 /* end confdefs.h. */
8656 if ac_fn_c_try_link "$LINENO"; then :
8659 rm -f core conftest.err conftest.$ac_objext \
8660 conftest$ac_exeext conftest.$ac_ext
8661 LIBS="$gl_save_LIBS"
8662 if test -n "$gl_have_pth"; then
8665 LTLIBTHREAD="$LTLIBPTH"
8666 LIBMULTITHREAD="$LIBTHREAD"
8667 LTLIBMULTITHREAD="$LTLIBTHREAD"
8669 $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
8671 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8672 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8674 $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
8681 CPPFLAGS="$gl_save_CPPFLAGS"
8684 if test -z "$gl_have_pthread"; then
8685 case "$gl_use_threads" in
8686 yes | windows | win32) # The 'win32' is for backward compatibility.
8687 if { case "$host_os" in
8692 gl_threads_api=windows
8694 $as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
8702 $as_echo_n "checking for multithread API to use... " >&6; }
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
8704 $as_echo "$gl_threads_api" >&6; }
8716 if test "$gl_threads_api" = posix; then
8717 # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
8718 # pthread_rwlock_* functions.
8719 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
8721 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
8723 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
8727 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
8728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8729 /* end confdefs.h. */
8731 #include <pthread.h>
8736 #if __FreeBSD__ == 4
8737 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
8738 #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
8739 && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
8740 error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
8742 int x = (int)PTHREAD_MUTEX_RECURSIVE;
8750 if ac_fn_c_try_compile "$LINENO"; then :
8752 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
8755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8772 acl_save_prefix="$prefix"
8773 prefix="$acl_final_prefix"
8774 acl_save_exec_prefix="$exec_prefix"
8775 exec_prefix="$acl_final_exec_prefix"
8777 eval additional_includedir=\"$includedir\"
8778 eval additional_libdir=\"$libdir\"
8780 exec_prefix="$acl_save_exec_prefix"
8781 prefix="$acl_save_prefix"
8784 # Check whether --with-libiconv-prefix was given.
8785 if test "${with_libiconv_prefix+set}" = set; then :
8786 withval=$with_libiconv_prefix;
8787 if test "X$withval" = "Xno"; then
8790 if test "X$withval" = "X"; then
8792 acl_save_prefix="$prefix"
8793 prefix="$acl_final_prefix"
8794 acl_save_exec_prefix="$exec_prefix"
8795 exec_prefix="$acl_final_exec_prefix"
8797 eval additional_includedir=\"$includedir\"
8798 eval additional_libdir=\"$libdir\"
8800 exec_prefix="$acl_save_exec_prefix"
8801 prefix="$acl_save_prefix"
8804 additional_includedir="$withval/include"
8805 additional_libdir="$withval/$acl_libdirstem"
8806 if test "$acl_libdirstem2" != "$acl_libdirstem" \
8807 && ! test -d "$withval/$acl_libdirstem"; then
8808 additional_libdir="$withval/$acl_libdirstem2"
8822 names_already_handled=
8823 names_next_round='iconv '
8824 while test -n "$names_next_round"; do
8825 names_this_round="$names_next_round"
8827 for name in $names_this_round; do
8829 for n in $names_already_handled; do
8830 if test "$n" = "$name"; then
8835 if test -z "$already_handled"; then
8836 names_already_handled="$names_already_handled $name"
8837 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8838 eval value=\"\$HAVE_LIB$uppername\"
8839 if test -n "$value"; then
8840 if test "$value" = yes; then
8841 eval value=\"\$LIB$uppername\"
8842 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8843 eval value=\"\$LTLIB$uppername\"
8844 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8853 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8854 if test -n "$acl_shlibext"; then
8855 shrext=".$acl_shlibext" # typically: shrext=.so
8859 if test $use_additional = yes; then
8860 dir="$additional_libdir"
8861 if test -n "$acl_shlibext"; then
8862 if test -f "$dir/$libname$shrext"; then
8864 found_so="$dir/$libname$shrext"
8866 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8867 ver=`(cd "$dir" && \
8868 for f in "$libname$shrext".*; do echo "$f"; done \
8869 | sed -e "s,^$libname$shrext\\\\.,," \
8870 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8871 | sed 1q ) 2>/dev/null`
8872 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8874 found_so="$dir/$libname$shrext.$ver"
8877 eval library_names=\"$acl_library_names_spec\"
8878 for f in $library_names; do
8879 if test -f "$dir/$f"; then
8888 if test "X$found_dir" = "X"; then
8889 if test -f "$dir/$libname.$acl_libext"; then
8891 found_a="$dir/$libname.$acl_libext"
8894 if test "X$found_dir" != "X"; then
8895 if test -f "$dir/$libname.la"; then
8896 found_la="$dir/$libname.la"
8900 if test "X$found_dir" = "X"; then
8901 for x in $LDFLAGS $LTLIBICONV; do
8903 acl_save_prefix="$prefix"
8904 prefix="$acl_final_prefix"
8905 acl_save_exec_prefix="$exec_prefix"
8906 exec_prefix="$acl_final_exec_prefix"
8908 exec_prefix="$acl_save_exec_prefix"
8909 prefix="$acl_save_prefix"
8913 dir=`echo "X$x" | sed -e 's/^X-L//'`
8914 if test -n "$acl_shlibext"; then
8915 if test -f "$dir/$libname$shrext"; then
8917 found_so="$dir/$libname$shrext"
8919 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8920 ver=`(cd "$dir" && \
8921 for f in "$libname$shrext".*; do echo "$f"; done \
8922 | sed -e "s,^$libname$shrext\\\\.,," \
8923 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8924 | sed 1q ) 2>/dev/null`
8925 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8927 found_so="$dir/$libname$shrext.$ver"
8930 eval library_names=\"$acl_library_names_spec\"
8931 for f in $library_names; do
8932 if test -f "$dir/$f"; then
8941 if test "X$found_dir" = "X"; then
8942 if test -f "$dir/$libname.$acl_libext"; then
8944 found_a="$dir/$libname.$acl_libext"
8947 if test "X$found_dir" != "X"; then
8948 if test -f "$dir/$libname.la"; then
8949 found_la="$dir/$libname.la"
8954 if test "X$found_dir" != "X"; then
8959 if test "X$found_dir" != "X"; then
8960 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8961 if test "X$found_so" != "X"; then
8962 if test "$enable_rpath" = no \
8963 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8964 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
8965 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8968 for x in $ltrpathdirs; do
8969 if test "X$x" = "X$found_dir"; then
8974 if test -z "$haveit"; then
8975 ltrpathdirs="$ltrpathdirs $found_dir"
8977 if test "$acl_hardcode_direct" = yes; then
8978 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8980 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8981 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8983 for x in $rpathdirs; do
8984 if test "X$x" = "X$found_dir"; then
8989 if test -z "$haveit"; then
8990 rpathdirs="$rpathdirs $found_dir"
8994 for x in $LDFLAGS $LIBICONV; do
8996 acl_save_prefix="$prefix"
8997 prefix="$acl_final_prefix"
8998 acl_save_exec_prefix="$exec_prefix"
8999 exec_prefix="$acl_final_exec_prefix"
9001 exec_prefix="$acl_save_exec_prefix"
9002 prefix="$acl_save_prefix"
9004 if test "X$x" = "X-L$found_dir"; then
9009 if test -z "$haveit"; then
9010 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9012 if test "$acl_hardcode_minus_L" != no; then
9013 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9015 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9021 if test "X$found_a" != "X"; then
9022 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9024 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9027 additional_includedir=
9028 case "$found_dir" in
9029 */$acl_libdirstem | */$acl_libdirstem/)
9030 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9031 if test "$name" = 'iconv'; then
9032 LIBICONV_PREFIX="$basedir"
9034 additional_includedir="$basedir/include"
9036 */$acl_libdirstem2 | */$acl_libdirstem2/)
9037 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
9038 if test "$name" = 'iconv'; then
9039 LIBICONV_PREFIX="$basedir"
9041 additional_includedir="$basedir/include"
9044 if test "X$additional_includedir" != "X"; then
9045 if test "X$additional_includedir" != "X/usr/include"; then
9047 if test "X$additional_includedir" = "X/usr/local/include"; then
9048 if test -n "$GCC"; then
9050 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9054 if test -z "$haveit"; then
9055 for x in $CPPFLAGS $INCICONV; do
9057 acl_save_prefix="$prefix"
9058 prefix="$acl_final_prefix"
9059 acl_save_exec_prefix="$exec_prefix"
9060 exec_prefix="$acl_final_exec_prefix"
9062 exec_prefix="$acl_save_exec_prefix"
9063 prefix="$acl_save_prefix"
9065 if test "X$x" = "X-I$additional_includedir"; then
9070 if test -z "$haveit"; then
9071 if test -d "$additional_includedir"; then
9072 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9078 if test -n "$found_la"; then
9079 save_libdir="$libdir"
9081 */* | *\\*) . "$found_la" ;;
9082 *) . "./$found_la" ;;
9084 libdir="$save_libdir"
9085 for dep in $dependency_libs; do
9088 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9089 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
9090 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
9092 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
9093 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
9094 if test -n "$GCC"; then
9096 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9100 if test -z "$haveit"; then
9102 for x in $LDFLAGS $LIBICONV; do
9104 acl_save_prefix="$prefix"
9105 prefix="$acl_final_prefix"
9106 acl_save_exec_prefix="$exec_prefix"
9107 exec_prefix="$acl_final_exec_prefix"
9109 exec_prefix="$acl_save_exec_prefix"
9110 prefix="$acl_save_prefix"
9112 if test "X$x" = "X-L$additional_libdir"; then
9117 if test -z "$haveit"; then
9118 if test -d "$additional_libdir"; then
9119 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9123 for x in $LDFLAGS $LTLIBICONV; do
9125 acl_save_prefix="$prefix"
9126 prefix="$acl_final_prefix"
9127 acl_save_exec_prefix="$exec_prefix"
9128 exec_prefix="$acl_final_exec_prefix"
9130 exec_prefix="$acl_save_exec_prefix"
9131 prefix="$acl_save_prefix"
9133 if test "X$x" = "X-L$additional_libdir"; then
9138 if test -z "$haveit"; then
9139 if test -d "$additional_libdir"; then
9140 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9147 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9148 if test "$enable_rpath" != no; then
9150 for x in $rpathdirs; do
9151 if test "X$x" = "X$dir"; then
9156 if test -z "$haveit"; then
9157 rpathdirs="$rpathdirs $dir"
9160 for x in $ltrpathdirs; do
9161 if test "X$x" = "X$dir"; then
9166 if test -z "$haveit"; then
9167 ltrpathdirs="$ltrpathdirs $dir"
9172 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9175 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9178 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9179 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9185 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9186 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9192 if test "X$rpathdirs" != "X"; then
9193 if test -n "$acl_hardcode_libdir_separator"; then
9195 for found_dir in $rpathdirs; do
9196 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
9198 acl_save_libdir="$libdir"
9200 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9201 libdir="$acl_save_libdir"
9202 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9204 for found_dir in $rpathdirs; do
9205 acl_save_libdir="$libdir"
9207 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9208 libdir="$acl_save_libdir"
9209 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9213 if test "X$ltrpathdirs" != "X"; then
9214 for found_dir in $ltrpathdirs; do
9215 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9230 am_save_CPPFLAGS="$CPPFLAGS"
9232 for element in $INCICONV; do
9234 for x in $CPPFLAGS; do
9236 acl_save_prefix="$prefix"
9237 prefix="$acl_final_prefix"
9238 acl_save_exec_prefix="$exec_prefix"
9239 exec_prefix="$acl_final_exec_prefix"
9241 exec_prefix="$acl_save_exec_prefix"
9242 prefix="$acl_save_prefix"
9244 if test "X$x" = "X$element"; then
9249 if test -z "$haveit"; then
9250 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9256 $as_echo_n "checking for iconv... " >&6; }
9257 if ${am_cv_func_iconv+:} false; then :
9258 $as_echo_n "(cached) " >&6
9261 am_cv_func_iconv="no, consider installing GNU libiconv"
9263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9264 /* end confdefs.h. */
9272 iconv_t cd = iconv_open("","");
9273 iconv(cd,NULL,NULL,NULL,NULL);
9279 if ac_fn_c_try_link "$LINENO"; then :
9280 am_cv_func_iconv=yes
9282 rm -f core conftest.err conftest.$ac_objext \
9283 conftest$ac_exeext conftest.$ac_ext
9284 if test "$am_cv_func_iconv" != yes; then
9285 am_save_LIBS="$LIBS"
9286 LIBS="$LIBS $LIBICONV"
9287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9288 /* end confdefs.h. */
9296 iconv_t cd = iconv_open("","");
9297 iconv(cd,NULL,NULL,NULL,NULL);
9303 if ac_fn_c_try_link "$LINENO"; then :
9305 am_cv_func_iconv=yes
9307 rm -f core conftest.err conftest.$ac_objext \
9308 conftest$ac_exeext conftest.$ac_ext
9309 LIBS="$am_save_LIBS"
9313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9314 $as_echo "$am_cv_func_iconv" >&6; }
9315 if test "$am_cv_func_iconv" = yes; then
9316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
9317 $as_echo_n "checking for working iconv... " >&6; }
9318 if ${am_cv_func_iconv_works+:} false; then :
9319 $as_echo_n "(cached) " >&6
9322 am_save_LIBS="$LIBS"
9323 if test $am_cv_lib_iconv = yes; then
9324 LIBS="$LIBS $LIBICONV"
9326 if test "$cross_compiling" = yes; then :
9329 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
9330 *) am_cv_func_iconv_works="guessing yes" ;;
9334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9335 /* end confdefs.h. */
9342 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
9345 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
9346 if (cd_utf8_to_88591 != (iconv_t)(-1))
9348 static const char input[] = "\342\202\254"; /* EURO SIGN */
9350 const char *inptr = input;
9351 size_t inbytesleft = strlen (input);
9353 size_t outbytesleft = sizeof (buf);
9354 size_t res = iconv (cd_utf8_to_88591,
9355 (char **) &inptr, &inbytesleft,
9356 &outptr, &outbytesleft);
9359 iconv_close (cd_utf8_to_88591);
9362 /* Test against Solaris 10 bug: Failures are not distinguishable from
9363 successful returns. */
9365 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
9366 if (cd_ascii_to_88591 != (iconv_t)(-1))
9368 static const char input[] = "\263";
9370 const char *inptr = input;
9371 size_t inbytesleft = strlen (input);
9373 size_t outbytesleft = sizeof (buf);
9374 size_t res = iconv (cd_ascii_to_88591,
9375 (char **) &inptr, &inbytesleft,
9376 &outptr, &outbytesleft);
9379 iconv_close (cd_ascii_to_88591);
9382 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
9384 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
9385 if (cd_88591_to_utf8 != (iconv_t)(-1))
9387 static const char input[] = "\304";
9388 static char buf[2] = { (char)0xDE, (char)0xAD };
9389 const char *inptr = input;
9390 size_t inbytesleft = 1;
9392 size_t outbytesleft = 1;
9393 size_t res = iconv (cd_88591_to_utf8,
9394 (char **) &inptr, &inbytesleft,
9395 &outptr, &outbytesleft);
9396 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
9398 iconv_close (cd_88591_to_utf8);
9401 #if 0 /* This bug could be worked around by the caller. */
9402 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
9404 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
9405 if (cd_88591_to_utf8 != (iconv_t)(-1))
9407 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
9409 const char *inptr = input;
9410 size_t inbytesleft = strlen (input);
9412 size_t outbytesleft = sizeof (buf);
9413 size_t res = iconv (cd_88591_to_utf8,
9414 (char **) &inptr, &inbytesleft,
9415 &outptr, &outbytesleft);
9418 iconv_close (cd_88591_to_utf8);
9422 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
9424 if (/* Try standardized names. */
9425 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
9426 /* Try IRIX, OSF/1 names. */
9427 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
9428 /* Try AIX names. */
9429 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
9430 /* Try HP-UX names. */
9431 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
9436 if ac_fn_c_try_run "$LINENO"; then :
9437 am_cv_func_iconv_works=yes
9439 am_cv_func_iconv_works=no
9441 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9442 conftest.$ac_objext conftest.beam conftest.$ac_ext
9445 LIBS="$am_save_LIBS"
9448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
9449 $as_echo "$am_cv_func_iconv_works" >&6; }
9450 case "$am_cv_func_iconv_works" in
9451 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
9452 *) am_func_iconv=yes ;;
9455 am_func_iconv=no am_cv_lib_iconv=no
9457 if test "$am_func_iconv" = yes; then
9459 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9462 if test "$am_cv_lib_iconv" = yes; then
9463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9464 $as_echo_n "checking how to link with libiconv... " >&6; }
9465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9466 $as_echo "$LIBICONV" >&6; }
9468 CPPFLAGS="$am_save_CPPFLAGS"
9475 if test "$am_cv_func_iconv" = yes; then
9476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9477 $as_echo_n "checking for iconv declaration... " >&6; }
9478 if ${am_cv_proto_iconv+:} false; then :
9479 $as_echo_n "(cached) " >&6
9482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9483 /* end confdefs.h. */
9491 #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
9492 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9505 if ac_fn_c_try_compile "$LINENO"; then :
9506 am_cv_proto_iconv_arg1=""
9508 am_cv_proto_iconv_arg1="const"
9510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9511 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);"
9514 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9515 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
9516 $am_cv_proto_iconv" >&5
9518 $am_cv_proto_iconv" >&6; }
9520 cat >>confdefs.h <<_ACEOF
9521 #define ICONV_CONST $am_cv_proto_iconv_arg1
9530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9531 /* end confdefs.h. */
9532 int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
9541 if ac_fn_c_try_link "$LINENO"; then :
9543 $as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
9546 rm -f core conftest.err conftest.$ac_objext \
9547 conftest$ac_exeext conftest.$ac_ext
9549 for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
9551 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9552 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9553 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9554 cat >>confdefs.h <<_ACEOF
9555 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9562 for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
9563 stpcpy strcasecmp strdup strtoul tsearch uselocale argz_count \
9564 argz_stringify argz_next __fsetlocking
9566 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9567 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9568 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9569 cat >>confdefs.h <<_ACEOF
9570 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9577 ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "#include <stdio.h>
9579 if test "x$ac_cv_have_decl_feof_unlocked" = xyes; then :
9585 cat >>confdefs.h <<_ACEOF
9586 #define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
9588 ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "#include <stdio.h>
9590 if test "x$ac_cv_have_decl_fgets_unlocked" = xyes; then :
9596 cat >>confdefs.h <<_ACEOF
9597 #define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
9603 for ac_prog in bison
9605 # Extract the first word of "$ac_prog", so it can be a program name with args.
9606 set dummy $ac_prog; ac_word=$2
9607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9608 $as_echo_n "checking for $ac_word... " >&6; }
9609 if ${ac_cv_prog_INTLBISON+:} false; then :
9610 $as_echo_n "(cached) " >&6
9612 if test -n "$INTLBISON"; then
9613 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
9615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9619 test -z "$as_dir" && as_dir=.
9620 for ac_exec_ext in '' $ac_executable_extensions; do
9621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9622 ac_cv_prog_INTLBISON="$ac_prog"
9623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9632 INTLBISON=$ac_cv_prog_INTLBISON
9633 if test -n "$INTLBISON"; then
9634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
9635 $as_echo "$INTLBISON" >&6; }
9637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9638 $as_echo "no" >&6; }
9642 test -n "$INTLBISON" && break
9645 if test -z "$INTLBISON"; then
9648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
9649 $as_echo_n "checking version of bison... " >&6; }
9650 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
9651 case $ac_prog_version in
9652 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
9653 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
9654 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
9655 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
9657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
9658 $as_echo "$ac_prog_version" >&6; }
9660 if test $ac_verc_fail = yes; then
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
9667 $as_echo_n "checking for long long int... " >&6; }
9668 if ${ac_cv_type_long_long_int+:} false; then :
9669 $as_echo_n "(cached) " >&6
9671 ac_cv_type_long_long_int=yes
9672 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
9673 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
9674 if test $ac_cv_type_long_long_int = yes; then
9675 if test "$cross_compiling" = yes; then :
9678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9679 /* end confdefs.h. */
9683 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
9684 # define LLONG_MAX (HALF - 1 + HALF)
9689 long long int n = 1;
9693 long long int m = n << i;
9696 if (LLONG_MAX / 2 < m)
9704 if ac_fn_c_try_run "$LINENO"; then :
9707 ac_cv_type_long_long_int=no
9709 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9710 conftest.$ac_objext conftest.beam conftest.$ac_ext
9716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
9717 $as_echo "$ac_cv_type_long_long_int" >&6; }
9718 if test $ac_cv_type_long_long_int = yes; then
9720 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
9725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
9726 $as_echo_n "checking for wchar_t... " >&6; }
9727 if ${gt_cv_c_wchar_t+:} false; then :
9728 $as_echo_n "(cached) " >&6
9730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9731 /* end confdefs.h. */
9733 wchar_t foo = (wchar_t)'\0';
9742 if ac_fn_c_try_compile "$LINENO"; then :
9747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
9750 $as_echo "$gt_cv_c_wchar_t" >&6; }
9751 if test $gt_cv_c_wchar_t = yes; then
9753 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
9758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
9759 $as_echo_n "checking for wint_t... " >&6; }
9760 if ${gt_cv_c_wint_t+:} false; then :
9761 $as_echo_n "(cached) " >&6
9763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9764 /* end confdefs.h. */
9766 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9768 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
9769 before <wchar.h>. */
9774 wint_t foo = (wchar_t)'\0';
9783 if ac_fn_c_try_compile "$LINENO"; then :
9788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
9791 $as_echo "$gt_cv_c_wint_t" >&6; }
9792 if test $gt_cv_c_wint_t = yes; then
9794 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
9801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
9802 $as_echo_n "checking for intmax_t... " >&6; }
9803 if ${gt_cv_c_intmax_t+:} false; then :
9804 $as_echo_n "(cached) " >&6
9806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9807 /* end confdefs.h. */
9811 #if HAVE_STDINT_H_WITH_UINTMAX
9814 #if HAVE_INTTYPES_H_WITH_UINTMAX
9815 #include <inttypes.h>
9827 if ac_fn_c_try_compile "$LINENO"; then :
9828 gt_cv_c_intmax_t=yes
9832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
9835 $as_echo "$gt_cv_c_intmax_t" >&6; }
9836 if test $gt_cv_c_intmax_t = yes; then
9838 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
9844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
9845 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
9846 if ${gt_cv_func_printf_posix+:} false; then :
9847 $as_echo_n "(cached) " >&6
9850 if test "$cross_compiling" = yes; then :
9852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9853 /* end confdefs.h. */
9855 #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
9860 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9861 $EGREP "notposix" >/dev/null 2>&1; then :
9862 gt_cv_func_printf_posix="guessing no"
9864 gt_cv_func_printf_posix="guessing yes"
9870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9871 /* end confdefs.h. */
9875 /* The string "%2$d %1$d", with dollar characters protected from the shell's
9876 dollar expansion (possibly an autoconf bug). */
9877 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
9878 static char buf[100];
9881 sprintf (buf, format, 33, 55);
9882 return (strcmp (buf, "55 33") != 0);
9885 if ac_fn_c_try_run "$LINENO"; then :
9886 gt_cv_func_printf_posix=yes
9888 gt_cv_func_printf_posix=no
9890 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9891 conftest.$ac_objext conftest.beam conftest.$ac_ext
9896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
9897 $as_echo "$gt_cv_func_printf_posix" >&6; }
9898 case $gt_cv_func_printf_posix in
9901 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
9907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
9908 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
9909 if ${ac_cv_gnu_library_2_1+:} false; then :
9910 $as_echo_n "(cached) " >&6
9912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9913 /* end confdefs.h. */
9915 #include <features.h>
9916 #ifdef __GNU_LIBRARY__
9917 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9926 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9927 $EGREP "Lucky" >/dev/null 2>&1; then :
9928 ac_cv_gnu_library_2_1=yes
9930 ac_cv_gnu_library_2_1=no
9937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
9938 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
9940 GLIBC21="$ac_cv_gnu_library_2_1"
9944 for ac_header in stdint.h
9946 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
9947 if test "x$ac_cv_header_stdint_h" = xyes; then :
9948 cat >>confdefs.h <<_ACEOF
9949 #define HAVE_STDINT_H 1
9956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
9957 $as_echo_n "checking for SIZE_MAX... " >&6; }
9958 if ${gl_cv_size_max+:} false; then :
9959 $as_echo_n "(cached) " >&6
9963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9964 /* end confdefs.h. */
9975 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9976 $EGREP "Found it" >/dev/null 2>&1; then :
9981 if test -z "$gl_cv_size_max"; then
9982 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
9983 #include <limits.h>"; then :
9986 size_t_bits_minus_1=
9989 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
9995 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
9996 if test $fits_in_uint = 1; then
9997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9998 /* end confdefs.h. */
10001 extern unsigned long foo;
10011 if ac_fn_c_try_compile "$LINENO"; then :
10014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10016 if test $fits_in_uint = 1; then
10017 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
10019 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
10022 gl_cv_size_max='((size_t)~(size_t)0)'
10027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
10028 $as_echo "$gl_cv_size_max" >&6; }
10029 if test "$gl_cv_size_max" != yes; then
10031 cat >>confdefs.h <<_ACEOF
10032 #define SIZE_MAX $gl_cv_size_max
10040 for ac_header in stdint.h
10042 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
10043 if test "x$ac_cv_header_stdint_h" = xyes; then :
10044 cat >>confdefs.h <<_ACEOF
10045 #define HAVE_STDINT_H 1
10056 for ac_func in $ac_func_list
10058 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10059 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10060 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10061 cat >>confdefs.h <<_ACEOF
10062 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
10076 $as_echo_n "checking for working fcntl.h... " >&6; }
10077 if ${gl_cv_header_working_fcntl_h+:} false; then :
10078 $as_echo_n "(cached) " >&6
10080 if test "$cross_compiling" = yes; then :
10081 gl_cv_header_working_fcntl_h=cross-compiling
10083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10084 /* end confdefs.h. */
10085 #include <sys/types.h>
10086 #include <sys/stat.h>
10088 # include <unistd.h>
10089 #else /* on Windows with MSVC */
10091 # include <stdlib.h>
10092 # defined sleep(n) _sleep ((n) * 1000)
10096 #define O_NOATIME 0
10099 #define O_NOFOLLOW 0
10101 static int const constants[] =
10103 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
10104 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
10111 int result = !constants;
10114 static char const sym[] = "conftest.sym";
10115 if (symlink ("/dev/null", sym) != 0)
10119 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
10126 if (unlink (sym) != 0 || symlink (".", sym) != 0)
10130 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
10141 static char const file[] = "confdefs.h";
10142 int fd = open (file, O_RDONLY | O_NOATIME);
10148 if (fstat (fd, &st0) != 0)
10154 if (read (fd, &c, 1) != 1)
10158 if (close (fd) != 0)
10163 if (stat (file, &st1) != 0)
10166 if (st0.st_atime != st1.st_atime)
10178 if ac_fn_c_try_run "$LINENO"; then :
10179 gl_cv_header_working_fcntl_h=yes
10182 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
10183 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
10184 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
10185 *) gl_cv_header_working_fcntl_h='no';;
10188 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10189 conftest.$ac_objext conftest.beam conftest.$ac_ext
10193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
10194 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
10196 case $gl_cv_header_working_fcntl_h in #(
10197 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
10201 cat >>confdefs.h <<_ACEOF
10202 #define HAVE_WORKING_O_NOATIME $ac_val
10206 case $gl_cv_header_working_fcntl_h in #(
10207 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
10211 cat >>confdefs.h <<_ACEOF
10212 #define HAVE_WORKING_O_NOFOLLOW $ac_val
10217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10218 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10219 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
10220 $as_echo_n "(cached) " >&6
10222 gt_save_LIBS="$LIBS"
10223 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10225 /* end confdefs.h. */
10226 #include <CoreFoundation/CFPreferences.h>
10230 CFPreferencesCopyAppValue(NULL, NULL)
10235 if ac_fn_c_try_link "$LINENO"; then :
10236 gt_cv_func_CFPreferencesCopyAppValue=yes
10238 gt_cv_func_CFPreferencesCopyAppValue=no
10240 rm -f core conftest.err conftest.$ac_objext \
10241 conftest$ac_exeext conftest.$ac_ext
10242 LIBS="$gt_save_LIBS"
10244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10245 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10246 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10248 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10252 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10253 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10254 $as_echo_n "(cached) " >&6
10256 gt_save_LIBS="$LIBS"
10257 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10259 /* end confdefs.h. */
10260 #include <CoreFoundation/CFLocale.h>
10264 CFLocaleCopyCurrent();
10269 if ac_fn_c_try_link "$LINENO"; then :
10270 gt_cv_func_CFLocaleCopyCurrent=yes
10272 gt_cv_func_CFLocaleCopyCurrent=no
10274 rm -f core conftest.err conftest.$ac_objext \
10275 conftest$ac_exeext conftest.$ac_ext
10276 LIBS="$gt_save_LIBS"
10278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10279 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10280 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10282 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10286 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10287 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10299 case "$enable_silent_rules" in
10300 yes) INTL_DEFAULT_VERBOSITY=0;;
10301 no) INTL_DEFAULT_VERBOSITY=1;;
10302 *) INTL_DEFAULT_VERBOSITY=1;;
10306 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
10307 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
10311 $as_echo "#define ptrdiff_t long" >>confdefs.h
10316 for ac_header in features.h stddef.h stdlib.h string.h
10318 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10319 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10320 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10321 cat >>confdefs.h <<_ACEOF
10322 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10329 for ac_func in asprintf fwprintf newlocale putenv setenv setlocale \
10330 snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
10332 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10333 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10334 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10335 cat >>confdefs.h <<_ACEOF
10336 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10343 ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
10345 if test "x$ac_cv_have_decl__snprintf" = xyes; then :
10351 cat >>confdefs.h <<_ACEOF
10352 #define HAVE_DECL__SNPRINTF $ac_have_decl
10354 ac_fn_c_check_decl "$LINENO" "_snwprintf" "ac_cv_have_decl__snwprintf" "#include <stdio.h>
10356 if test "x$ac_cv_have_decl__snwprintf" = xyes; then :
10362 cat >>confdefs.h <<_ACEOF
10363 #define HAVE_DECL__SNWPRINTF $ac_have_decl
10367 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "#include <stdio.h>
10369 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
10375 cat >>confdefs.h <<_ACEOF
10376 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
10380 case $gt_cv_func_printf_posix in
10381 *yes) HAVE_POSIX_PRINTF=1 ;;
10382 *) HAVE_POSIX_PRINTF=0 ;;
10385 if test "$ac_cv_func_asprintf" = yes; then
10391 if test "$ac_cv_func_snprintf" = yes; then
10397 if test "$ac_cv_func_newlocale" = yes; then
10403 if test "$ac_cv_func_wprintf" = yes; then
10411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10412 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10413 if ${am_cv_langinfo_codeset+:} false; then :
10414 $as_echo_n "(cached) " >&6
10416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10417 /* end confdefs.h. */
10418 #include <langinfo.h>
10422 char* cs = nl_langinfo(CODESET); return !cs;
10427 if ac_fn_c_try_link "$LINENO"; then :
10428 am_cv_langinfo_codeset=yes
10430 am_cv_langinfo_codeset=no
10432 rm -f core conftest.err conftest.$ac_objext \
10433 conftest$ac_exeext conftest.$ac_ext
10436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10437 $as_echo "$am_cv_langinfo_codeset" >&6; }
10438 if test $am_cv_langinfo_codeset = yes; then
10440 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10446 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10447 if ${gt_cv_val_LC_MESSAGES+:} false; then :
10448 $as_echo_n "(cached) " >&6
10450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10451 /* end confdefs.h. */
10452 #include <locale.h>
10461 if ac_fn_c_try_link "$LINENO"; then :
10462 gt_cv_val_LC_MESSAGES=yes
10464 gt_cv_val_LC_MESSAGES=no
10466 rm -f core conftest.err conftest.$ac_objext \
10467 conftest$ac_exeext conftest.$ac_ext
10469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
10470 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
10471 if test $gt_cv_val_LC_MESSAGES = yes; then
10473 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10478 if test "$enable_shared" = yes; then
10480 mingw* | cygwin*) is_woe32dll=yes ;;
10481 *) is_woe32dll=no ;;
10486 WOE32DLL=$is_woe32dll
10490 mingw* | cygwin*) is_woe32=yes ;;
10495 if test $WOE32 = yes; then
10496 if test -n "$ac_tool_prefix"; then
10497 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
10498 set dummy ${ac_tool_prefix}windres; ac_word=$2
10499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10500 $as_echo_n "checking for $ac_word... " >&6; }
10501 if ${ac_cv_prog_WINDRES+:} false; then :
10502 $as_echo_n "(cached) " >&6
10504 if test -n "$WINDRES"; then
10505 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
10507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10508 for as_dir in $PATH
10511 test -z "$as_dir" && as_dir=.
10512 for ac_exec_ext in '' $ac_executable_extensions; do
10513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10514 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
10515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10524 WINDRES=$ac_cv_prog_WINDRES
10525 if test -n "$WINDRES"; then
10526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
10527 $as_echo "$WINDRES" >&6; }
10529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10530 $as_echo "no" >&6; }
10535 if test -z "$ac_cv_prog_WINDRES"; then
10536 ac_ct_WINDRES=$WINDRES
10537 # Extract the first word of "windres", so it can be a program name with args.
10538 set dummy windres; ac_word=$2
10539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10540 $as_echo_n "checking for $ac_word... " >&6; }
10541 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
10542 $as_echo_n "(cached) " >&6
10544 if test -n "$ac_ct_WINDRES"; then
10545 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
10547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10548 for as_dir in $PATH
10551 test -z "$as_dir" && as_dir=.
10552 for ac_exec_ext in '' $ac_executable_extensions; do
10553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10554 ac_cv_prog_ac_ct_WINDRES="windres"
10555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10564 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
10565 if test -n "$ac_ct_WINDRES"; then
10566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
10567 $as_echo "$ac_ct_WINDRES" >&6; }
10569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10570 $as_echo "no" >&6; }
10573 if test "x$ac_ct_WINDRES" = x; then
10576 case $cross_compiling:$ac_tool_warned in
10578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10579 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10580 ac_tool_warned=yes ;;
10582 WINDRES=$ac_ct_WINDRES
10585 WINDRES="$ac_cv_prog_WINDRES"
10591 hpux*) LTLIBC="" ;;
10621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10622 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10623 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
10624 $as_echo_n "(cached) " >&6
10626 gt_save_LIBS="$LIBS"
10627 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10629 /* end confdefs.h. */
10630 #include <CoreFoundation/CFPreferences.h>
10634 CFPreferencesCopyAppValue(NULL, NULL)
10639 if ac_fn_c_try_link "$LINENO"; then :
10640 gt_cv_func_CFPreferencesCopyAppValue=yes
10642 gt_cv_func_CFPreferencesCopyAppValue=no
10644 rm -f core conftest.err conftest.$ac_objext \
10645 conftest$ac_exeext conftest.$ac_ext
10646 LIBS="$gt_save_LIBS"
10648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10649 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10650 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10652 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10656 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10657 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10658 $as_echo_n "(cached) " >&6
10660 gt_save_LIBS="$LIBS"
10661 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10663 /* end confdefs.h. */
10664 #include <CoreFoundation/CFLocale.h>
10668 CFLocaleCopyCurrent();
10673 if ac_fn_c_try_link "$LINENO"; then :
10674 gt_cv_func_CFLocaleCopyCurrent=yes
10676 gt_cv_func_CFLocaleCopyCurrent=no
10678 rm -f core conftest.err conftest.$ac_objext \
10679 conftest$ac_exeext conftest.$ac_ext
10680 LIBS="$gt_save_LIBS"
10682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10683 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10684 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10686 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10690 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10691 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10699 BUILD_INCLUDED_LIBINTL=no
10700 USE_INCLUDED_LIBINTL=no
10706 case " $gt_needs " in
10707 *" need-formatstring-macros "*) gt_api_version=3 ;;
10708 *" need-ngettext "*) gt_api_version=2 ;;
10709 *) gt_api_version=1 ;;
10711 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
10712 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
10714 if test "$USE_NLS" = "yes"; then
10715 gt_use_preinstalled_gnugettext=no
10717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
10718 $as_echo_n "checking whether included gettext is requested... " >&6; }
10720 # Check whether --with-included-gettext was given.
10721 if test "${with_included_gettext+set}" = set; then :
10722 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
10724 nls_cv_force_use_gnu_gettext=no
10727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
10728 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
10730 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10731 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
10734 if test $gt_api_version -ge 3; then
10735 gt_revision_test_code='
10736 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
10737 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
10739 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
10742 gt_revision_test_code=
10744 if test $gt_api_version -ge 2; then
10745 gt_expression_test_code=' + * ngettext ("", "", 0)'
10747 gt_expression_test_code=
10750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
10751 $as_echo_n "checking for GNU gettext in libc... " >&6; }
10752 if eval \${$gt_func_gnugettext_libc+:} false; then :
10753 $as_echo_n "(cached) " >&6
10755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10756 /* end confdefs.h. */
10758 #include <libintl.h>
10759 $gt_revision_test_code
10760 extern int _nl_msg_cat_cntr;
10761 extern int *_nl_domain_bindings;
10767 bindtextdomain ("", "");
10768 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
10774 if ac_fn_c_try_link "$LINENO"; then :
10775 eval "$gt_func_gnugettext_libc=yes"
10777 eval "$gt_func_gnugettext_libc=no"
10779 rm -f core conftest.err conftest.$ac_objext \
10780 conftest$ac_exeext conftest.$ac_ext
10782 eval ac_res=\$$gt_func_gnugettext_libc
10783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10784 $as_echo "$ac_res" >&6; }
10786 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
10797 acl_save_prefix="$prefix"
10798 prefix="$acl_final_prefix"
10799 acl_save_exec_prefix="$exec_prefix"
10800 exec_prefix="$acl_final_exec_prefix"
10802 eval additional_includedir=\"$includedir\"
10803 eval additional_libdir=\"$libdir\"
10805 exec_prefix="$acl_save_exec_prefix"
10806 prefix="$acl_save_prefix"
10809 # Check whether --with-libintl-prefix was given.
10810 if test "${with_libintl_prefix+set}" = set; then :
10811 withval=$with_libintl_prefix;
10812 if test "X$withval" = "Xno"; then
10815 if test "X$withval" = "X"; then
10817 acl_save_prefix="$prefix"
10818 prefix="$acl_final_prefix"
10819 acl_save_exec_prefix="$exec_prefix"
10820 exec_prefix="$acl_final_exec_prefix"
10822 eval additional_includedir=\"$includedir\"
10823 eval additional_libdir=\"$libdir\"
10825 exec_prefix="$acl_save_exec_prefix"
10826 prefix="$acl_save_prefix"
10829 additional_includedir="$withval/include"
10830 additional_libdir="$withval/$acl_libdirstem"
10831 if test "$acl_libdirstem2" != "$acl_libdirstem" \
10832 && ! test -d "$withval/$acl_libdirstem"; then
10833 additional_libdir="$withval/$acl_libdirstem2"
10847 names_already_handled=
10848 names_next_round='intl '
10849 while test -n "$names_next_round"; do
10850 names_this_round="$names_next_round"
10852 for name in $names_this_round; do
10854 for n in $names_already_handled; do
10855 if test "$n" = "$name"; then
10856 already_handled=yes
10860 if test -z "$already_handled"; then
10861 names_already_handled="$names_already_handled $name"
10862 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
10863 eval value=\"\$HAVE_LIB$uppername\"
10864 if test -n "$value"; then
10865 if test "$value" = yes; then
10866 eval value=\"\$LIB$uppername\"
10867 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10868 eval value=\"\$LTLIB$uppername\"
10869 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10878 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
10879 if test -n "$acl_shlibext"; then
10880 shrext=".$acl_shlibext" # typically: shrext=.so
10884 if test $use_additional = yes; then
10885 dir="$additional_libdir"
10886 if test -n "$acl_shlibext"; then
10887 if test -f "$dir/$libname$shrext"; then
10889 found_so="$dir/$libname$shrext"
10891 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10892 ver=`(cd "$dir" && \
10893 for f in "$libname$shrext".*; do echo "$f"; done \
10894 | sed -e "s,^$libname$shrext\\\\.,," \
10895 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10896 | sed 1q ) 2>/dev/null`
10897 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10899 found_so="$dir/$libname$shrext.$ver"
10902 eval library_names=\"$acl_library_names_spec\"
10903 for f in $library_names; do
10904 if test -f "$dir/$f"; then
10913 if test "X$found_dir" = "X"; then
10914 if test -f "$dir/$libname.$acl_libext"; then
10916 found_a="$dir/$libname.$acl_libext"
10919 if test "X$found_dir" != "X"; then
10920 if test -f "$dir/$libname.la"; then
10921 found_la="$dir/$libname.la"
10925 if test "X$found_dir" = "X"; then
10926 for x in $LDFLAGS $LTLIBINTL; do
10928 acl_save_prefix="$prefix"
10929 prefix="$acl_final_prefix"
10930 acl_save_exec_prefix="$exec_prefix"
10931 exec_prefix="$acl_final_exec_prefix"
10933 exec_prefix="$acl_save_exec_prefix"
10934 prefix="$acl_save_prefix"
10938 dir=`echo "X$x" | sed -e 's/^X-L//'`
10939 if test -n "$acl_shlibext"; then
10940 if test -f "$dir/$libname$shrext"; then
10942 found_so="$dir/$libname$shrext"
10944 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10945 ver=`(cd "$dir" && \
10946 for f in "$libname$shrext".*; do echo "$f"; done \
10947 | sed -e "s,^$libname$shrext\\\\.,," \
10948 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10949 | sed 1q ) 2>/dev/null`
10950 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10952 found_so="$dir/$libname$shrext.$ver"
10955 eval library_names=\"$acl_library_names_spec\"
10956 for f in $library_names; do
10957 if test -f "$dir/$f"; then
10966 if test "X$found_dir" = "X"; then
10967 if test -f "$dir/$libname.$acl_libext"; then
10969 found_a="$dir/$libname.$acl_libext"
10972 if test "X$found_dir" != "X"; then
10973 if test -f "$dir/$libname.la"; then
10974 found_la="$dir/$libname.la"
10979 if test "X$found_dir" != "X"; then
10984 if test "X$found_dir" != "X"; then
10985 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
10986 if test "X$found_so" != "X"; then
10987 if test "$enable_rpath" = no \
10988 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
10989 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
10990 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10993 for x in $ltrpathdirs; do
10994 if test "X$x" = "X$found_dir"; then
10999 if test -z "$haveit"; then
11000 ltrpathdirs="$ltrpathdirs $found_dir"
11002 if test "$acl_hardcode_direct" = yes; then
11003 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11005 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
11006 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11008 for x in $rpathdirs; do
11009 if test "X$x" = "X$found_dir"; then
11014 if test -z "$haveit"; then
11015 rpathdirs="$rpathdirs $found_dir"
11019 for x in $LDFLAGS $LIBINTL; do
11021 acl_save_prefix="$prefix"
11022 prefix="$acl_final_prefix"
11023 acl_save_exec_prefix="$exec_prefix"
11024 exec_prefix="$acl_final_exec_prefix"
11026 exec_prefix="$acl_save_exec_prefix"
11027 prefix="$acl_save_prefix"
11029 if test "X$x" = "X-L$found_dir"; then
11034 if test -z "$haveit"; then
11035 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
11037 if test "$acl_hardcode_minus_L" != no; then
11038 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11040 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11046 if test "X$found_a" != "X"; then
11047 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
11049 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
11052 additional_includedir=
11053 case "$found_dir" in
11054 */$acl_libdirstem | */$acl_libdirstem/)
11055 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
11056 if test "$name" = 'intl'; then
11057 LIBINTL_PREFIX="$basedir"
11059 additional_includedir="$basedir/include"
11061 */$acl_libdirstem2 | */$acl_libdirstem2/)
11062 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
11063 if test "$name" = 'intl'; then
11064 LIBINTL_PREFIX="$basedir"
11066 additional_includedir="$basedir/include"
11069 if test "X$additional_includedir" != "X"; then
11070 if test "X$additional_includedir" != "X/usr/include"; then
11072 if test "X$additional_includedir" = "X/usr/local/include"; then
11073 if test -n "$GCC"; then
11075 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11079 if test -z "$haveit"; then
11080 for x in $CPPFLAGS $INCINTL; do
11082 acl_save_prefix="$prefix"
11083 prefix="$acl_final_prefix"
11084 acl_save_exec_prefix="$exec_prefix"
11085 exec_prefix="$acl_final_exec_prefix"
11087 exec_prefix="$acl_save_exec_prefix"
11088 prefix="$acl_save_prefix"
11090 if test "X$x" = "X-I$additional_includedir"; then
11095 if test -z "$haveit"; then
11096 if test -d "$additional_includedir"; then
11097 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
11103 if test -n "$found_la"; then
11104 save_libdir="$libdir"
11105 case "$found_la" in
11106 */* | *\\*) . "$found_la" ;;
11107 *) . "./$found_la" ;;
11109 libdir="$save_libdir"
11110 for dep in $dependency_libs; do
11113 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11114 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
11115 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
11117 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
11118 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
11119 if test -n "$GCC"; then
11121 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11125 if test -z "$haveit"; then
11127 for x in $LDFLAGS $LIBINTL; do
11129 acl_save_prefix="$prefix"
11130 prefix="$acl_final_prefix"
11131 acl_save_exec_prefix="$exec_prefix"
11132 exec_prefix="$acl_final_exec_prefix"
11134 exec_prefix="$acl_save_exec_prefix"
11135 prefix="$acl_save_prefix"
11137 if test "X$x" = "X-L$additional_libdir"; then
11142 if test -z "$haveit"; then
11143 if test -d "$additional_libdir"; then
11144 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
11148 for x in $LDFLAGS $LTLIBINTL; do
11150 acl_save_prefix="$prefix"
11151 prefix="$acl_final_prefix"
11152 acl_save_exec_prefix="$exec_prefix"
11153 exec_prefix="$acl_final_exec_prefix"
11155 exec_prefix="$acl_save_exec_prefix"
11156 prefix="$acl_save_prefix"
11158 if test "X$x" = "X-L$additional_libdir"; then
11163 if test -z "$haveit"; then
11164 if test -d "$additional_libdir"; then
11165 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
11172 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11173 if test "$enable_rpath" != no; then
11175 for x in $rpathdirs; do
11176 if test "X$x" = "X$dir"; then
11181 if test -z "$haveit"; then
11182 rpathdirs="$rpathdirs $dir"
11185 for x in $ltrpathdirs; do
11186 if test "X$x" = "X$dir"; then
11191 if test -z "$haveit"; then
11192 ltrpathdirs="$ltrpathdirs $dir"
11197 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11200 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11203 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
11204 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
11210 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11211 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
11217 if test "X$rpathdirs" != "X"; then
11218 if test -n "$acl_hardcode_libdir_separator"; then
11220 for found_dir in $rpathdirs; do
11221 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
11223 acl_save_libdir="$libdir"
11225 eval flag=\"$acl_hardcode_libdir_flag_spec\"
11226 libdir="$acl_save_libdir"
11227 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11229 for found_dir in $rpathdirs; do
11230 acl_save_libdir="$libdir"
11231 libdir="$found_dir"
11232 eval flag=\"$acl_hardcode_libdir_flag_spec\"
11233 libdir="$acl_save_libdir"
11234 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11238 if test "X$ltrpathdirs" != "X"; then
11239 for found_dir in $ltrpathdirs; do
11240 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
11249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
11250 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
11251 if eval \${$gt_func_gnugettext_libintl+:} false; then :
11252 $as_echo_n "(cached) " >&6
11254 gt_save_CPPFLAGS="$CPPFLAGS"
11255 CPPFLAGS="$CPPFLAGS $INCINTL"
11256 gt_save_LIBS="$LIBS"
11257 LIBS="$LIBS $LIBINTL"
11258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11259 /* end confdefs.h. */
11261 #include <libintl.h>
11262 $gt_revision_test_code
11263 extern int _nl_msg_cat_cntr;
11268 const char *_nl_expand_alias (const char *);
11274 bindtextdomain ("", "");
11275 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11281 if ac_fn_c_try_link "$LINENO"; then :
11282 eval "$gt_func_gnugettext_libintl=yes"
11284 eval "$gt_func_gnugettext_libintl=no"
11286 rm -f core conftest.err conftest.$ac_objext \
11287 conftest$ac_exeext conftest.$ac_ext
11288 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
11289 LIBS="$LIBS $LIBICONV"
11290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11291 /* end confdefs.h. */
11293 #include <libintl.h>
11294 $gt_revision_test_code
11295 extern int _nl_msg_cat_cntr;
11300 const char *_nl_expand_alias (const char *);
11306 bindtextdomain ("", "");
11307 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11313 if ac_fn_c_try_link "$LINENO"; then :
11314 LIBINTL="$LIBINTL $LIBICONV"
11315 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
11316 eval "$gt_func_gnugettext_libintl=yes"
11319 rm -f core conftest.err conftest.$ac_objext \
11320 conftest$ac_exeext conftest.$ac_ext
11322 CPPFLAGS="$gt_save_CPPFLAGS"
11323 LIBS="$gt_save_LIBS"
11325 eval ac_res=\$$gt_func_gnugettext_libintl
11326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11327 $as_echo "$ac_res" >&6; }
11330 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
11331 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
11332 && test "$PACKAGE" != gettext-runtime \
11333 && test "$PACKAGE" != gettext-tools; }; then
11334 gt_use_preinstalled_gnugettext=yes
11342 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
11343 nls_cv_use_gnu_gettext=yes
11347 if test "$nls_cv_use_gnu_gettext" = "yes"; then
11348 BUILD_INCLUDED_LIBINTL=yes
11349 USE_INCLUDED_LIBINTL=yes
11350 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
11351 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
11352 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
11356 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11357 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11362 if test -n "$INTL_MACOSX_LIBS"; then
11363 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11364 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11365 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
11366 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
11370 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11371 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11373 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
11381 $as_echo_n "checking whether to use NLS... " >&6; }
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
11383 $as_echo "$USE_NLS" >&6; }
11384 if test "$USE_NLS" = "yes"; then
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
11386 $as_echo_n "checking where the gettext function comes from... " >&6; }
11387 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11388 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
11389 gt_source="external libintl"
11394 gt_source="included intl directory"
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
11397 $as_echo "$gt_source" >&6; }
11400 if test "$USE_NLS" = "yes"; then
11402 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11403 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
11404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
11405 $as_echo_n "checking how to link with libintl... " >&6; }
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
11407 $as_echo "$LIBINTL" >&6; }
11409 for element in $INCINTL; do
11411 for x in $CPPFLAGS; do
11413 acl_save_prefix="$prefix"
11414 prefix="$acl_final_prefix"
11415 acl_save_exec_prefix="$exec_prefix"
11416 exec_prefix="$acl_final_exec_prefix"
11418 exec_prefix="$acl_save_exec_prefix"
11419 prefix="$acl_save_prefix"
11421 if test "X$x" = "X$element"; then
11426 if test -z "$haveit"; then
11427 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11434 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
11437 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
11445 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
11446 BUILD_INCLUDED_LIBINTL=yes
11453 nls_cv_header_intl=
11454 nls_cv_header_libgt=
11466 if test "$USE_INCLUDED_LIBINTL" = yes; then
11467 INTLOBJS="\$(GETTOBJS)"
11471 INTL_LIBTOOL_SUFFIX_PREFIX=
11475 INTLLIBS="$LIBINTL"
11483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11484 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11486 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11487 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
11488 $as_echo_n "(cached) " >&6
11490 cat >conftest.make <<\_ACEOF
11493 @echo '@@@%%%=$(MAKE)=@@@%%%'
11495 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
11496 case `${MAKE-make} -f conftest.make 2>/dev/null` in
11497 *@@@%%%=?*=@@@%%%*)
11498 eval ac_cv_prog_make_${ac_make}_set=yes;;
11500 eval ac_cv_prog_make_${ac_make}_set=no;;
11502 rm -f conftest.make
11504 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11506 $as_echo "yes" >&6; }
11509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11510 $as_echo "no" >&6; }
11511 SET_MAKE="MAKE=${MAKE-make}"
11514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
11515 $as_echo_n "checking for GNU make... " >&6; }
11516 if ${_cv_gnu_make_command+:} false; then :
11517 $as_echo_n "(cached) " >&6
11519 _cv_gnu_make_command='' ;
11520 for a in "$MAKE" make gmake gnumake ; do
11521 if test -z "$a" ; then continue ; fi ;
11522 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
11523 _cv_gnu_make_command=$a ;
11529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
11530 $as_echo "$_cv_gnu_make_command" >&6; } ;
11531 if test "x$_cv_gnu_make_command" != "x" ; then
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
11538 $as_echo "\"Not found\"" >&6; };
11543 # Extract the first word of "ln", so it can be a program name with args.
11544 set dummy ln; ac_word=$2
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11546 $as_echo_n "checking for $ac_word... " >&6; }
11547 if ${ac_cv_path_LN+:} false; then :
11548 $as_echo_n "(cached) " >&6
11552 ac_cv_path_LN="$LN" # Let the user override the test with a path.
11555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11556 for as_dir in $PATH
11559 test -z "$as_dir" && as_dir=.
11560 for ac_exec_ext in '' $ac_executable_extensions; do
11561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11562 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
11563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11570 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
11575 if test -n "$LN"; then
11576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
11577 $as_echo "$LN" >&6; }
11579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11580 $as_echo "no" >&6; }
11584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11585 $as_echo_n "checking whether ln -s works... " >&6; }
11587 if test "$LN_S" = "ln -s"; then
11588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11589 $as_echo "yes" >&6; }
11591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11592 $as_echo "no, using $LN_S" >&6; }
11595 # Extract the first word of "mv", so it can be a program name with args.
11596 set dummy mv; ac_word=$2
11597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11598 $as_echo_n "checking for $ac_word... " >&6; }
11599 if ${ac_cv_path_MV+:} false; then :
11600 $as_echo_n "(cached) " >&6
11604 ac_cv_path_MV="$MV" # Let the user override the test with a path.
11607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11608 for as_dir in $PATH
11611 test -z "$as_dir" && as_dir=.
11612 for ac_exec_ext in '' $ac_executable_extensions; do
11613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11614 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
11615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11622 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
11627 if test -n "$MV"; then
11628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
11629 $as_echo "$MV" >&6; }
11631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11632 $as_echo "no" >&6; }
11636 # Extract the first word of "cp", so it can be a program name with args.
11637 set dummy cp; ac_word=$2
11638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11639 $as_echo_n "checking for $ac_word... " >&6; }
11640 if ${ac_cv_path_CP+:} false; then :
11641 $as_echo_n "(cached) " >&6
11645 ac_cv_path_CP="$CP" # Let the user override the test with a path.
11648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11649 for as_dir in $PATH
11652 test -z "$as_dir" && as_dir=.
11653 for ac_exec_ext in '' $ac_executable_extensions; do
11654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11655 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
11656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11663 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
11668 if test -n "$CP"; then
11669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
11670 $as_echo "$CP" >&6; }
11672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11673 $as_echo "no" >&6; }
11677 # Extract the first word of "rm", so it can be a program name with args.
11678 set dummy rm; ac_word=$2
11679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11680 $as_echo_n "checking for $ac_word... " >&6; }
11681 if ${ac_cv_path_RM+:} false; then :
11682 $as_echo_n "(cached) " >&6
11686 ac_cv_path_RM="$RM" # Let the user override the test with a path.
11689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11690 for as_dir in $PATH
11693 test -z "$as_dir" && as_dir=.
11694 for ac_exec_ext in '' $ac_executable_extensions; do
11695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11696 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
11697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11704 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11709 if test -n "$RM"; then
11710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
11711 $as_echo "$RM" >&6; }
11713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11714 $as_echo "no" >&6; }
11718 # Extract the first word of "chmod", so it can be a program name with args.
11719 set dummy chmod; ac_word=$2
11720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11721 $as_echo_n "checking for $ac_word... " >&6; }
11722 if ${ac_cv_path_CHMOD+:} false; then :
11723 $as_echo_n "(cached) " >&6
11727 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11731 for as_dir in $PATH
11734 test -z "$as_dir" && as_dir=.
11735 for ac_exec_ext in '' $ac_executable_extensions; do
11736 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11737 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
11738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11745 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11749 CHMOD=$ac_cv_path_CHMOD
11750 if test -n "$CHMOD"; then
11751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
11752 $as_echo "$CHMOD" >&6; }
11754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11755 $as_echo "no" >&6; }
11759 for ac_prog in gawk mawk nawk awk
11761 # Extract the first word of "$ac_prog", so it can be a program name with args.
11762 set dummy $ac_prog; ac_word=$2
11763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11764 $as_echo_n "checking for $ac_word... " >&6; }
11765 if ${ac_cv_prog_AWK+:} false; then :
11766 $as_echo_n "(cached) " >&6
11768 if test -n "$AWK"; then
11769 ac_cv_prog_AWK="$AWK" # Let the user override the test.
11771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11772 for as_dir in $PATH
11775 test -z "$as_dir" && as_dir=.
11776 for ac_exec_ext in '' $ac_executable_extensions; do
11777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11778 ac_cv_prog_AWK="$ac_prog"
11779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11788 AWK=$ac_cv_prog_AWK
11789 if test -n "$AWK"; then
11790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11791 $as_echo "$AWK" >&6; }
11793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11794 $as_echo "no" >&6; }
11798 test -n "$AWK" && break
11801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11802 $as_echo_n "checking for egrep... " >&6; }
11803 if ${ac_cv_path_EGREP+:} false; then :
11804 $as_echo_n "(cached) " >&6
11806 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11807 then ac_cv_path_EGREP="$GREP -E"
11809 if test -z "$EGREP"; then
11810 ac_path_EGREP_found=false
11811 # Loop through the user's path and test for each of PROGNAME-LIST
11812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11813 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11816 test -z "$as_dir" && as_dir=.
11817 for ac_prog in egrep; do
11818 for ac_exec_ext in '' $ac_executable_extensions; do
11819 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11820 as_fn_executable_p "$ac_path_EGREP" || continue
11821 # Check for GNU ac_path_EGREP and select it if it is found.
11822 # Check for GNU $ac_path_EGREP
11823 case `"$ac_path_EGREP" --version 2>&1` in
11825 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11828 $as_echo_n 0123456789 >"conftest.in"
11831 cat "conftest.in" "conftest.in" >"conftest.tmp"
11832 mv "conftest.tmp" "conftest.in"
11833 cp "conftest.in" "conftest.nl"
11834 $as_echo 'EGREP' >> "conftest.nl"
11835 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11836 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11837 as_fn_arith $ac_count + 1 && ac_count=$as_val
11838 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11839 # Best one so far, save it but keep looking for a better one
11840 ac_cv_path_EGREP="$ac_path_EGREP"
11841 ac_path_EGREP_max=$ac_count
11843 # 10*(2^10) chars as input seems more than enough
11844 test $ac_count -gt 10 && break
11846 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11849 $ac_path_EGREP_found && break 3
11854 if test -z "$ac_cv_path_EGREP"; then
11855 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11858 ac_cv_path_EGREP=$EGREP
11863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11864 $as_echo "$ac_cv_path_EGREP" >&6; }
11865 EGREP="$ac_cv_path_EGREP"
11868 # Extract the first word of "sed", so it can be a program name with args.
11869 set dummy sed; ac_word=$2
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11871 $as_echo_n "checking for $ac_word... " >&6; }
11872 if ${ac_cv_path_SED+:} false; then :
11873 $as_echo_n "(cached) " >&6
11877 ac_cv_path_SED="$SED" # Let the user override the test with a path.
11880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11881 for as_dir in $PATH
11884 test -z "$as_dir" && as_dir=.
11885 for ac_exec_ext in '' $ac_executable_extensions; do
11886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11887 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
11888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11895 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11899 SED=$ac_cv_path_SED
11900 if test -n "$SED"; then
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
11902 $as_echo "$SED" >&6; }
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11905 $as_echo "no" >&6; }
11909 # Extract the first word of "perl", so it can be a program name with args.
11910 set dummy perl; ac_word=$2
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11912 $as_echo_n "checking for $ac_word... " >&6; }
11913 if ${ac_cv_path_PERL+:} false; then :
11914 $as_echo_n "(cached) " >&6
11918 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11922 for as_dir in $PATH
11925 test -z "$as_dir" && as_dir=.
11926 for ac_exec_ext in '' $ac_executable_extensions; do
11927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11928 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
11929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11936 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
11940 PERL=$ac_cv_path_PERL
11941 if test -n "$PERL"; then
11942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
11943 $as_echo "$PERL" >&6; }
11945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11946 $as_echo "no" >&6; }
11950 # Extract the first word of "ldconfig", so it can be a program name with args.
11951 set dummy ldconfig; ac_word=$2
11952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11953 $as_echo_n "checking for $ac_word... " >&6; }
11954 if ${ac_cv_path_LDCONFIG+:} false; then :
11955 $as_echo_n "(cached) " >&6
11959 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
11962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11963 for as_dir in $PATH
11966 test -z "$as_dir" && as_dir=.
11967 for ac_exec_ext in '' $ac_executable_extensions; do
11968 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11969 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
11970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11977 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
11981 LDCONFIG=$ac_cv_path_LDCONFIG
11982 if test -n "$LDCONFIG"; then
11983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
11984 $as_echo "$LDCONFIG" >&6; }
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11987 $as_echo "no" >&6; }
11991 if test -n "$ac_tool_prefix"; then
11992 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11993 set dummy ${ac_tool_prefix}ar; ac_word=$2
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11995 $as_echo_n "checking for $ac_word... " >&6; }
11996 if ${ac_cv_prog_AR+:} false; then :
11997 $as_echo_n "(cached) " >&6
11999 if test -n "$AR"; then
12000 ac_cv_prog_AR="$AR" # Let the user override the test.
12002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12003 for as_dir in $PATH
12006 test -z "$as_dir" && as_dir=.
12007 for ac_exec_ext in '' $ac_executable_extensions; do
12008 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12009 ac_cv_prog_AR="${ac_tool_prefix}ar"
12010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12020 if test -n "$AR"; then
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12022 $as_echo "$AR" >&6; }
12024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12025 $as_echo "no" >&6; }
12030 if test -z "$ac_cv_prog_AR"; then
12032 # Extract the first word of "ar", so it can be a program name with args.
12033 set dummy ar; ac_word=$2
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12035 $as_echo_n "checking for $ac_word... " >&6; }
12036 if ${ac_cv_prog_ac_ct_AR+:} false; then :
12037 $as_echo_n "(cached) " >&6
12039 if test -n "$ac_ct_AR"; then
12040 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12043 for as_dir in $PATH
12046 test -z "$as_dir" && as_dir=.
12047 for ac_exec_ext in '' $ac_executable_extensions; do
12048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12049 ac_cv_prog_ac_ct_AR="ar"
12050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12059 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12060 if test -n "$ac_ct_AR"; then
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12062 $as_echo "$ac_ct_AR" >&6; }
12064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12065 $as_echo "no" >&6; }
12068 if test "x$ac_ct_AR" = x; then
12071 case $cross_compiling:$ac_tool_warned in
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12074 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12075 ac_tool_warned=yes ;;
12080 AR="$ac_cv_prog_AR"
12083 if test -n "$ac_tool_prefix"; then
12084 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12085 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12087 $as_echo_n "checking for $ac_word... " >&6; }
12088 if ${ac_cv_prog_RANLIB+:} false; then :
12089 $as_echo_n "(cached) " >&6
12091 if test -n "$RANLIB"; then
12092 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12095 for as_dir in $PATH
12098 test -z "$as_dir" && as_dir=.
12099 for ac_exec_ext in '' $ac_executable_extensions; do
12100 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12101 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12111 RANLIB=$ac_cv_prog_RANLIB
12112 if test -n "$RANLIB"; then
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12114 $as_echo "$RANLIB" >&6; }
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12117 $as_echo "no" >&6; }
12122 if test -z "$ac_cv_prog_RANLIB"; then
12123 ac_ct_RANLIB=$RANLIB
12124 # Extract the first word of "ranlib", so it can be a program name with args.
12125 set dummy ranlib; ac_word=$2
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12127 $as_echo_n "checking for $ac_word... " >&6; }
12128 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12129 $as_echo_n "(cached) " >&6
12131 if test -n "$ac_ct_RANLIB"; then
12132 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12135 for as_dir in $PATH
12138 test -z "$as_dir" && as_dir=.
12139 for ac_exec_ext in '' $ac_executable_extensions; do
12140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12141 ac_cv_prog_ac_ct_RANLIB="ranlib"
12142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12151 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12152 if test -n "$ac_ct_RANLIB"; then
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12154 $as_echo "$ac_ct_RANLIB" >&6; }
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12157 $as_echo "no" >&6; }
12160 if test "x$ac_ct_RANLIB" = x; then
12163 case $cross_compiling:$ac_tool_warned in
12165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12166 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12167 ac_tool_warned=yes ;;
12169 RANLIB=$ac_ct_RANLIB
12172 RANLIB="$ac_cv_prog_RANLIB"
12175 if test -n "$ac_tool_prefix"; then
12176 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12177 set dummy ${ac_tool_prefix}strip; ac_word=$2
12178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12179 $as_echo_n "checking for $ac_word... " >&6; }
12180 if ${ac_cv_prog_STRIP+:} false; then :
12181 $as_echo_n "(cached) " >&6
12183 if test -n "$STRIP"; then
12184 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12187 for as_dir in $PATH
12190 test -z "$as_dir" && as_dir=.
12191 for ac_exec_ext in '' $ac_executable_extensions; do
12192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12193 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12203 STRIP=$ac_cv_prog_STRIP
12204 if test -n "$STRIP"; then
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12206 $as_echo "$STRIP" >&6; }
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12209 $as_echo "no" >&6; }
12214 if test -z "$ac_cv_prog_STRIP"; then
12216 # Extract the first word of "strip", so it can be a program name with args.
12217 set dummy strip; ac_word=$2
12218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12219 $as_echo_n "checking for $ac_word... " >&6; }
12220 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12221 $as_echo_n "(cached) " >&6
12223 if test -n "$ac_ct_STRIP"; then
12224 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12227 for as_dir in $PATH
12230 test -z "$as_dir" && as_dir=.
12231 for ac_exec_ext in '' $ac_executable_extensions; do
12232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12233 ac_cv_prog_ac_ct_STRIP="strip"
12234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12243 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12244 if test -n "$ac_ct_STRIP"; then
12245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12246 $as_echo "$ac_ct_STRIP" >&6; }
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12249 $as_echo "no" >&6; }
12252 if test "x$ac_ct_STRIP" = x; then
12255 case $cross_compiling:$ac_tool_warned in
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12258 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12259 ac_tool_warned=yes ;;
12264 STRIP="$ac_cv_prog_STRIP"
12267 # Extract the first word of "makeinfo", so it can be a program name with args.
12268 set dummy makeinfo; ac_word=$2
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12270 $as_echo_n "checking for $ac_word... " >&6; }
12271 if ${ac_cv_prog_MAKEINFO+:} false; then :
12272 $as_echo_n "(cached) " >&6
12274 if test -n "$MAKEINFO"; then
12275 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
12277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12278 for as_dir in $PATH
12281 test -z "$as_dir" && as_dir=.
12282 for ac_exec_ext in '' $ac_executable_extensions; do
12283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12284 ac_cv_prog_MAKEINFO="makeinfo"
12285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12294 MAKEINFO=$ac_cv_prog_MAKEINFO
12295 if test -n "$MAKEINFO"; then
12296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
12297 $as_echo "$MAKEINFO" >&6; }
12299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12300 $as_echo "no" >&6; }
12304 if test "_$MAKEINFO" = "_"; then
12305 MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
12307 case "$MAKEINFO" in
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
12310 *** Makeinfo is missing. Info documentation will not be built." >&5
12311 $as_echo "$as_me: WARNING:
12312 *** Makeinfo is missing. Info documentation will not be built." >&2;}
12320 # See if we need a separate native compiler.
12321 if test $cross_compiling = no; then
12325 for ac_prog in gcc cc
12327 # Extract the first word of "$ac_prog", so it can be a program name with args.
12328 set dummy $ac_prog; ac_word=$2
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12330 $as_echo_n "checking for $ac_word... " >&6; }
12331 if ${ac_cv_prog_BUILD_CC+:} false; then :
12332 $as_echo_n "(cached) " >&6
12334 if test -n "$BUILD_CC"; then
12335 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
12337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12338 for as_dir in $PATH
12341 test -z "$as_dir" && as_dir=.
12342 for ac_exec_ext in '' $ac_executable_extensions; do
12343 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12344 ac_cv_prog_BUILD_CC="$ac_prog"
12345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12354 BUILD_CC=$ac_cv_prog_BUILD_CC
12355 if test -n "$BUILD_CC"; then
12356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
12357 $as_echo "$BUILD_CC" >&6; }
12359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12360 $as_echo "no" >&6; }
12364 test -n "$BUILD_CC" && break
12368 for ac_header in dirent.h errno.h execinfo.h getopt.h malloc.h mntent.h paths.h semaphore.h setjmp.h signal.h stdarg.h stdint.h stdlib.h termios.h termio.h unistd.h utime.h attr/xattr.h linux/falloc.h linux/fd.h linux/major.h linux/loop.h net/if_dl.h netinet/in.h sys/acl.h sys/disklabel.h sys/disk.h sys/file.h sys/ioctl.h sys/key.h sys/mkdev.h sys/mman.h sys/mount.h sys/prctl.h sys/resource.h sys/select.h sys/socket.h sys/sockio.h sys/stat.h sys/syscall.h sys/sysctl.h sys/sysmacros.h sys/time.h sys/types.h sys/un.h sys/wait.h
12370 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12371 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12372 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12373 cat >>confdefs.h <<_ACEOF
12374 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12381 for ac_header in net/if.h
12383 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
12384 #if HAVE_SYS_TYPES_H
12385 #include <sys/types.h>
12387 #if HAVE_SYS_SOCKET
12388 #include <sys/socket.h>
12392 if test "x$ac_cv_header_net_if_h" = xyes; then :
12393 cat >>confdefs.h <<_ACEOF
12394 #define HAVE_NET_IF_H 1
12401 for ac_func in vprintf
12403 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
12404 if test "x$ac_cv_func_vprintf" = xyes; then :
12405 cat >>confdefs.h <<_ACEOF
12406 #define HAVE_VPRINTF 1
12409 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
12410 if test "x$ac_cv_func__doprnt" = xyes; then :
12412 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
12420 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
12422 if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
12424 $as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
12428 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
12429 if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
12431 cat >>confdefs.h <<_ACEOF
12432 #define HAVE_STRUCT_STAT_ST_ATIM 1
12438 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
12440 if test "x$ac_cv_type_ssize_t" = xyes; then :
12442 $as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
12446 ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
12448 if test "x$ac_cv_have_decl_llseek" = xyes; then :
12450 $as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
12454 ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
12455 #define _LARGEFILE64_SOURCE
12456 #include <unistd.h>
12458 if test "x$ac_cv_have_decl_lseek64" = xyes; then :
12460 $as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
12464 # The cast to long int works around a bug in the HP C Compiler
12465 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12466 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12467 # This bug is HP SR number 8606223364.
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
12469 $as_echo_n "checking size of short... " >&6; }
12470 if ${ac_cv_sizeof_short+:} false; then :
12471 $as_echo_n "(cached) " >&6
12473 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
12476 if test "$ac_cv_type_short" = yes; then
12477 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12478 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12479 as_fn_error 77 "cannot compute sizeof (short)
12480 See \`config.log' for more details" "$LINENO" 5; }
12482 ac_cv_sizeof_short=0
12487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
12488 $as_echo "$ac_cv_sizeof_short" >&6; }
12492 cat >>confdefs.h <<_ACEOF
12493 #define SIZEOF_SHORT $ac_cv_sizeof_short
12497 # The cast to long int works around a bug in the HP C Compiler
12498 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12499 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12500 # This bug is HP SR number 8606223364.
12501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12502 $as_echo_n "checking size of int... " >&6; }
12503 if ${ac_cv_sizeof_int+:} false; then :
12504 $as_echo_n "(cached) " >&6
12506 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
12509 if test "$ac_cv_type_int" = yes; then
12510 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12511 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12512 as_fn_error 77 "cannot compute sizeof (int)
12513 See \`config.log' for more details" "$LINENO" 5; }
12520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12521 $as_echo "$ac_cv_sizeof_int" >&6; }
12525 cat >>confdefs.h <<_ACEOF
12526 #define SIZEOF_INT $ac_cv_sizeof_int
12530 # The cast to long int works around a bug in the HP C Compiler
12531 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12532 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12533 # This bug is HP SR number 8606223364.
12534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12535 $as_echo_n "checking size of long... " >&6; }
12536 if ${ac_cv_sizeof_long+:} false; then :
12537 $as_echo_n "(cached) " >&6
12539 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
12542 if test "$ac_cv_type_long" = yes; then
12543 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12544 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12545 as_fn_error 77 "cannot compute sizeof (long)
12546 See \`config.log' for more details" "$LINENO" 5; }
12548 ac_cv_sizeof_long=0
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12554 $as_echo "$ac_cv_sizeof_long" >&6; }
12558 cat >>confdefs.h <<_ACEOF
12559 #define SIZEOF_LONG $ac_cv_sizeof_long
12563 # The cast to long int works around a bug in the HP C Compiler
12564 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12565 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12566 # This bug is HP SR number 8606223364.
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12568 $as_echo_n "checking size of long long... " >&6; }
12569 if ${ac_cv_sizeof_long_long+:} false; then :
12570 $as_echo_n "(cached) " >&6
12572 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
12575 if test "$ac_cv_type_long_long" = yes; then
12576 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12577 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12578 as_fn_error 77 "cannot compute sizeof (long long)
12579 See \`config.log' for more details" "$LINENO" 5; }
12581 ac_cv_sizeof_long_long=0
12586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12587 $as_echo "$ac_cv_sizeof_long_long" >&6; }
12591 cat >>confdefs.h <<_ACEOF
12592 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12596 # The cast to long int works around a bug in the HP C Compiler
12597 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12598 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12599 # This bug is HP SR number 8606223364.
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
12601 $as_echo_n "checking size of off_t... " >&6; }
12602 if ${ac_cv_sizeof_off_t+:} false; then :
12603 $as_echo_n "(cached) " >&6
12605 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
12608 if test "$ac_cv_type_off_t" = yes; then
12609 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12610 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12611 as_fn_error 77 "cannot compute sizeof (off_t)
12612 See \`config.log' for more details" "$LINENO" 5; }
12614 ac_cv_sizeof_off_t=0
12619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
12620 $as_echo "$ac_cv_sizeof_off_t" >&6; }
12624 cat >>confdefs.h <<_ACEOF
12625 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
12629 # The cast to long int works around a bug in the HP C Compiler
12630 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12631 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12632 # This bug is HP SR number 8606223364.
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
12634 $as_echo_n "checking size of time_t... " >&6; }
12635 if ${ac_cv_sizeof_time_t+:} false; then :
12636 $as_echo_n "(cached) " >&6
12638 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then :
12641 if test "$ac_cv_type_time_t" = yes; then
12642 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12643 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12644 as_fn_error 77 "cannot compute sizeof (time_t)
12645 See \`config.log' for more details" "$LINENO" 5; }
12647 ac_cv_sizeof_time_t=0
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
12653 $as_echo "$ac_cv_sizeof_time_t" >&6; }
12657 cat >>confdefs.h <<_ACEOF
12658 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
12662 SIZEOF_SHORT=$ac_cv_sizeof_short
12663 SIZEOF_INT=$ac_cv_sizeof_int
12664 SIZEOF_LONG=$ac_cv_sizeof_long
12665 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
12666 SIZEOF_OFF_T=$ac_cv_sizeof_off_t
12667 SIZEOF_TIME_T=$ac_cv_sizeof_time_t
12674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12675 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12676 if ${ac_cv_c_bigendian+:} false; then :
12677 $as_echo_n "(cached) " >&6
12679 ac_cv_c_bigendian=unknown
12680 # See if we're dealing with a universal compiler.
12681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12682 /* end confdefs.h. */
12683 #ifndef __APPLE_CC__
12684 not a universal capable compiler
12689 if ac_fn_c_try_compile "$LINENO"; then :
12691 # Check for potential -arch flags. It is not universal unless
12692 # there are at least two -arch flags with different values.
12695 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12696 if test -n "$ac_prev"; then
12698 i?86 | x86_64 | ppc | ppc64)
12699 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12702 ac_cv_c_bigendian=universal
12708 elif test "x$ac_word" = "x-arch"; then
12713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12714 if test $ac_cv_c_bigendian = unknown; then
12715 # See if sys/param.h defines the BYTE_ORDER macro.
12716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12717 /* end confdefs.h. */
12718 #include <sys/types.h>
12719 #include <sys/param.h>
12724 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12725 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12727 bogus endian macros
12734 if ac_fn_c_try_compile "$LINENO"; then :
12735 # It does; now see whether it defined to BIG_ENDIAN or not.
12736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12737 /* end confdefs.h. */
12738 #include <sys/types.h>
12739 #include <sys/param.h>
12744 #if BYTE_ORDER != BIG_ENDIAN
12752 if ac_fn_c_try_compile "$LINENO"; then :
12753 ac_cv_c_bigendian=yes
12755 ac_cv_c_bigendian=no
12757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12761 if test $ac_cv_c_bigendian = unknown; then
12762 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12764 /* end confdefs.h. */
12765 #include <limits.h>
12770 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12771 bogus endian macros
12778 if ac_fn_c_try_compile "$LINENO"; then :
12779 # It does; now see whether it defined to _BIG_ENDIAN or not.
12780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12781 /* end confdefs.h. */
12782 #include <limits.h>
12787 #ifndef _BIG_ENDIAN
12795 if ac_fn_c_try_compile "$LINENO"; then :
12796 ac_cv_c_bigendian=yes
12798 ac_cv_c_bigendian=no
12800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12804 if test $ac_cv_c_bigendian = unknown; then
12805 # Compile a test program.
12806 if test "$cross_compiling" = yes; then :
12807 # Try to guess by grepping values from an object file.
12808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12809 /* end confdefs.h. */
12810 short int ascii_mm[] =
12811 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12812 short int ascii_ii[] =
12813 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12814 int use_ascii (int i) {
12815 return ascii_mm[i] + ascii_ii[i];
12817 short int ebcdic_ii[] =
12818 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12819 short int ebcdic_mm[] =
12820 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12821 int use_ebcdic (int i) {
12822 return ebcdic_mm[i] + ebcdic_ii[i];
12829 return use_ascii (foo) == use_ebcdic (foo);
12834 if ac_fn_c_try_compile "$LINENO"; then :
12835 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12836 ac_cv_c_bigendian=yes
12838 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12839 if test "$ac_cv_c_bigendian" = unknown; then
12840 ac_cv_c_bigendian=no
12842 # finding both strings is unlikely to happen, but who knows?
12843 ac_cv_c_bigendian=unknown
12847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12850 /* end confdefs.h. */
12851 $ac_includes_default
12856 /* Are we little or big endian? From Harbison&Steele. */
12860 char c[sizeof (long int)];
12863 return u.c[sizeof (long int) - 1] == 1;
12869 if ac_fn_c_try_run "$LINENO"; then :
12870 ac_cv_c_bigendian=no
12872 ac_cv_c_bigendian=yes
12874 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12875 conftest.$ac_objext conftest.beam conftest.$ac_ext
12880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12881 $as_echo "$ac_cv_c_bigendian" >&6; }
12882 case $ac_cv_c_bigendian in #(
12884 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12890 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12894 as_fn_error $? "unknown endianness
12895 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12898 if test $cross_compiling = no; then
12899 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12901 CROSS_COMPILE="1" BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12903 ASM_TYPES_HEADER=./asm_types.h
12905 echo "/* These defines are needed for the public ext2fs.h header file */" \
12907 if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
12908 uniq tmp_config.$$ >> public_config.h
12910 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
12912 if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
12913 uniq tmp_config.$$ >> public_config.h
12915 echo "#undef WORDS_BIGENDIAN" >> public_config.h
12917 rm -f tmp_config.$$
12918 PUBLIC_CONFIG_HEADER=./public_config.h
12920 for ac_header in inttypes.h
12922 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
12923 if test "x$ac_cv_header_inttypes_h" = xyes; then :
12924 cat >>confdefs.h <<_ACEOF
12925 #define HAVE_INTTYPES_H 1
12932 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
12933 if test "x$ac_cv_type_intptr_t" = xyes; then :
12935 cat >>confdefs.h <<_ACEOF
12936 #define HAVE_INTPTR_T 1
12942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5
12943 $as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
12944 if ${e2fsprogs_cv_struct_st_flags+:} false; then :
12945 $as_echo_n "(cached) " >&6
12947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12948 /* end confdefs.h. */
12949 #include <sys/stat.h>
12953 struct stat stat; stat.st_flags = 0;
12958 if ac_fn_c_try_compile "$LINENO"; then :
12959 e2fsprogs_cv_struct_st_flags=yes
12961 e2fsprogs_cv_struct_st_flags=no
12963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
12967 $as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
12968 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
12969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
12970 $as_echo_n "checking whether st_flags field is useful... " >&6; }
12971 if ${e2fsprogs_cv_struct_st_flags_immut+:} false; then :
12972 $as_echo_n "(cached) " >&6
12974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12975 /* end confdefs.h. */
12976 #include <sys/stat.h>
12980 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
12985 if ac_fn_c_try_compile "$LINENO"; then :
12986 e2fsprogs_cv_struct_st_flags_immut=yes
12988 e2fsprogs_cv_struct_st_flags_immut=no
12990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
12994 $as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
12995 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
12997 $as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
13001 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
13002 #include <sys/socket.h>
13004 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
13006 cat >>confdefs.h <<_ACEOF
13007 #define HAVE_SA_LEN 1
13012 if test -n "$BLKID_CMT"; then
13013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5
13014 $as_echo_n "checking for library containing blkid_probe_all... " >&6; }
13015 if ${ac_cv_search_blkid_probe_all+:} false; then :
13016 $as_echo_n "(cached) " >&6
13018 ac_func_search_save_LIBS=$LIBS
13019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13020 /* end confdefs.h. */
13022 /* Override any GCC internal prototype to avoid an error.
13023 Use char because int might match the return type of a GCC
13024 builtin and then its argument prototype would still apply. */
13028 char blkid_probe_all ();
13032 return blkid_probe_all ();
13037 for ac_lib in '' blkid; do
13038 if test -z "$ac_lib"; then
13039 ac_res="none required"
13042 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13044 if ac_fn_c_try_link "$LINENO"; then :
13045 ac_cv_search_blkid_probe_all=$ac_res
13047 rm -f core conftest.err conftest.$ac_objext \
13049 if ${ac_cv_search_blkid_probe_all+:} false; then :
13053 if ${ac_cv_search_blkid_probe_all+:} false; then :
13056 ac_cv_search_blkid_probe_all=no
13058 rm conftest.$ac_ext
13059 LIBS=$ac_func_search_save_LIBS
13061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5
13062 $as_echo "$ac_cv_search_blkid_probe_all" >&6; }
13063 ac_res=$ac_cv_search_blkid_probe_all
13064 if test "$ac_res" != no; then :
13065 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13070 if test -n "$DLOPEN_LIB" ; then
13071 ac_cv_func_dlopen=yes
13073 for ac_func in __secure_getenv add_key backtrace blkid_probe_get_topology blkid_probe_enable_partitions chflags dlopen fadvise64 fallocate fallocate64 fchown fdatasync fstat64 ftruncate64 futimes getcwd getdtablesize getmntinfo getpwuid_r getrlimit getrusage jrand48 keyctl llistxattr llseek lseek64 mallinfo mbstowcs memalign mempcpy mmap msync nanosleep open64 pathconf posix_fadvise posix_fadvise64 posix_memalign prctl pread pwrite pread64 pwrite64 secure_getenv setmntent setresgid setresuid snprintf srandom stpcpy strcasecmp strdup strnlen strptime strtoull sync_file_range sysconf usleep utime utimes valloc
13075 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13076 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13077 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13078 cat >>confdefs.h <<_ACEOF
13079 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
13087 $as_echo_n "checking for socket in -lsocket... " >&6; }
13088 if ${ac_cv_lib_socket_socket+:} false; then :
13089 $as_echo_n "(cached) " >&6
13091 ac_check_lib_save_LIBS=$LIBS
13092 LIBS="-lsocket $LIBS"
13093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13094 /* end confdefs.h. */
13096 /* Override any GCC internal prototype to avoid an error.
13097 Use char because int might match the return type of a GCC
13098 builtin and then its argument prototype would still apply. */
13111 if ac_fn_c_try_link "$LINENO"; then :
13112 ac_cv_lib_socket_socket=yes
13114 ac_cv_lib_socket_socket=no
13116 rm -f core conftest.err conftest.$ac_objext \
13117 conftest$ac_exeext conftest.$ac_ext
13118 LIBS=$ac_check_lib_save_LIBS
13120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
13121 $as_echo "$ac_cv_lib_socket_socket" >&6; }
13122 if test "x$ac_cv_lib_socket_socket" = xyes; then :
13123 SOCKET_LIB=-lsocket
13127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_file in -lmagic" >&5
13128 $as_echo_n "checking for magic_file in -lmagic... " >&6; }
13129 if ${ac_cv_lib_magic_magic_file+:} false; then :
13130 $as_echo_n "(cached) " >&6
13132 ac_check_lib_save_LIBS=$LIBS
13133 LIBS="-lmagic $LIBS"
13134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13135 /* end confdefs.h. */
13137 /* Override any GCC internal prototype to avoid an error.
13138 Use char because int might match the return type of a GCC
13139 builtin and then its argument prototype would still apply. */
13143 char magic_file ();
13147 return magic_file ();
13152 if ac_fn_c_try_link "$LINENO"; then :
13153 ac_cv_lib_magic_magic_file=yes
13155 ac_cv_lib_magic_magic_file=no
13157 rm -f core conftest.err conftest.$ac_objext \
13158 conftest$ac_exeext conftest.$ac_ext
13159 LIBS=$ac_check_lib_save_LIBS
13161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_file" >&5
13162 $as_echo "$ac_cv_lib_magic_magic_file" >&6; }
13163 if test "x$ac_cv_lib_magic_magic_file" = xyes; then :
13165 for ac_header in magic.h
13167 ac_fn_c_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default"
13168 if test "x$ac_cv_header_magic_h" = xyes; then :
13169 cat >>confdefs.h <<_ACEOF
13170 #define HAVE_MAGIC_H 1
13179 if test "$ac_cv_func_dlopen" = yes ; then
13180 MAGIC_LIB=$DLOPEN_LIB
13183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
13184 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
13185 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
13186 $as_echo_n "(cached) " >&6
13188 ac_check_lib_save_LIBS=$LIBS
13190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13191 /* end confdefs.h. */
13193 /* Override any GCC internal prototype to avoid an error.
13194 Use char because int might match the return type of a GCC
13195 builtin and then its argument prototype would still apply. */
13199 char clock_gettime ();
13203 return clock_gettime ();
13208 if ac_fn_c_try_link "$LINENO"; then :
13209 ac_cv_lib_rt_clock_gettime=yes
13211 ac_cv_lib_rt_clock_gettime=no
13213 rm -f core conftest.err conftest.$ac_objext \
13214 conftest$ac_exeext conftest.$ac_ext
13215 LIBS=$ac_check_lib_save_LIBS
13217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
13218 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
13219 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
13220 CLOCK_GETTIME_LIB=-lrt
13226 # Check whether --enable-fuse2fs was given.
13227 if test "${enable_fuse2fs+set}" = set; then :
13228 enableval=$enable_fuse2fs; if test "$enableval" = "no"
13231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling fuse2fs" >&5
13232 $as_echo "Disabling fuse2fs" >&6; }
13234 for ac_header in pthread.h fuse.h
13236 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13237 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
13238 #define FUSE_USE_VERSION 29
13240 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13241 cat >>confdefs.h <<_ACEOF
13242 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13246 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13247 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13248 as_fn_error $? "Cannot find fuse2fs headers.
13249 See \`config.log' for more details" "$LINENO" 5; }
13255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13256 /* end confdefs.h. */
13257 #define FUSE_USE_VERSION 29
13259 #include <linux/fs.h>
13260 #include <linux/falloc.h>
13261 #include <linux/xattr.h>
13272 if ac_fn_c_try_cpp "$LINENO"; then :
13275 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13276 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13277 as_fn_error $? "Cannot find fuse2fs Linux headers.
13278 See \`config.log' for more details" "$LINENO" 5; }
13280 rm -f conftest.err conftest.i conftest.$ac_ext
13282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
13283 $as_echo_n "checking for fuse_main in -losxfuse... " >&6; }
13284 if ${ac_cv_lib_osxfuse_fuse_main+:} false; then :
13285 $as_echo_n "(cached) " >&6
13287 ac_check_lib_save_LIBS=$LIBS
13288 LIBS="-losxfuse $LIBS"
13289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13290 /* end confdefs.h. */
13292 /* Override any GCC internal prototype to avoid an error.
13293 Use char because int might match the return type of a GCC
13294 builtin and then its argument prototype would still apply. */
13302 return fuse_main ();
13307 if ac_fn_c_try_link "$LINENO"; then :
13308 ac_cv_lib_osxfuse_fuse_main=yes
13310 ac_cv_lib_osxfuse_fuse_main=no
13312 rm -f core conftest.err conftest.$ac_objext \
13313 conftest$ac_exeext conftest.$ac_ext
13314 LIBS=$ac_check_lib_save_LIBS
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
13317 $as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; }
13318 if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then :
13321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
13322 $as_echo_n "checking for fuse_main in -lfuse... " >&6; }
13323 if ${ac_cv_lib_fuse_fuse_main+:} false; then :
13324 $as_echo_n "(cached) " >&6
13326 ac_check_lib_save_LIBS=$LIBS
13327 LIBS="-lfuse $LIBS"
13328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13329 /* end confdefs.h. */
13331 /* Override any GCC internal prototype to avoid an error.
13332 Use char because int might match the return type of a GCC
13333 builtin and then its argument prototype would still apply. */
13341 return fuse_main ();
13346 if ac_fn_c_try_link "$LINENO"; then :
13347 ac_cv_lib_fuse_fuse_main=yes
13349 ac_cv_lib_fuse_fuse_main=no
13351 rm -f core conftest.err conftest.$ac_objext \
13352 conftest$ac_exeext conftest.$ac_ext
13353 LIBS=$ac_check_lib_save_LIBS
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
13356 $as_echo "$ac_cv_lib_fuse_fuse_main" >&6; }
13357 if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then :
13360 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13361 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13362 as_fn_error $? "Cannot find fuse library.
13363 See \`config.log' for more details" "$LINENO" 5; }
13368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs" >&5
13369 $as_echo "Enabling fuse2fs" >&6; }
13373 for ac_header in pthread.h fuse.h
13375 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13376 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
13377 #define FUSE_USE_VERSION 29
13379 # include <linux/fs.h>
13380 # include <linux/falloc.h>
13381 # include <linux/xattr.h>
13384 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13385 cat >>confdefs.h <<_ACEOF
13386 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13395 if test -z "$FUSE_CMT"
13397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
13398 $as_echo_n "checking for fuse_main in -losxfuse... " >&6; }
13399 if ${ac_cv_lib_osxfuse_fuse_main+:} false; then :
13400 $as_echo_n "(cached) " >&6
13402 ac_check_lib_save_LIBS=$LIBS
13403 LIBS="-losxfuse $LIBS"
13404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13405 /* end confdefs.h. */
13407 /* Override any GCC internal prototype to avoid an error.
13408 Use char because int might match the return type of a GCC
13409 builtin and then its argument prototype would still apply. */
13417 return fuse_main ();
13422 if ac_fn_c_try_link "$LINENO"; then :
13423 ac_cv_lib_osxfuse_fuse_main=yes
13425 ac_cv_lib_osxfuse_fuse_main=no
13427 rm -f core conftest.err conftest.$ac_objext \
13428 conftest$ac_exeext conftest.$ac_ext
13429 LIBS=$ac_check_lib_save_LIBS
13431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
13432 $as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; }
13433 if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then :
13436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
13437 $as_echo_n "checking for fuse_main in -lfuse... " >&6; }
13438 if ${ac_cv_lib_fuse_fuse_main+:} false; then :
13439 $as_echo_n "(cached) " >&6
13441 ac_check_lib_save_LIBS=$LIBS
13442 LIBS="-lfuse $LIBS"
13443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13444 /* end confdefs.h. */
13446 /* Override any GCC internal prototype to avoid an error.
13447 Use char because int might match the return type of a GCC
13448 builtin and then its argument prototype would still apply. */
13456 return fuse_main ();
13461 if ac_fn_c_try_link "$LINENO"; then :
13462 ac_cv_lib_fuse_fuse_main=yes
13464 ac_cv_lib_fuse_fuse_main=no
13466 rm -f core conftest.err conftest.$ac_objext \
13467 conftest$ac_exeext conftest.$ac_ext
13468 LIBS=$ac_check_lib_save_LIBS
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
13471 $as_echo "$ac_cv_lib_fuse_fuse_main" >&6; }
13472 if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then :
13481 if test -z "$FUSE_CMT"
13483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs by default." >&5
13484 $as_echo "Enabling fuse2fs by default." >&6; }
13491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
13492 $as_echo_n "checking for optreset... " >&6; }
13493 if ${ac_cv_have_optreset+:} false; then :
13494 $as_echo_n "(cached) " >&6
13496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13497 /* end confdefs.h. */
13498 #include <unistd.h>
13501 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13502 $EGREP "optreset" >/dev/null 2>&1; then :
13503 ac_cv_have_optreset=yes
13505 ac_cv_have_optreset=no
13510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
13511 $as_echo "$ac_cv_have_optreset" >&6; }
13512 if test $ac_cv_have_optreset = yes; then
13514 $as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
13519 ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
13520 if test "x$ac_cv_func_sem_init" = xyes; then :
13523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
13524 $as_echo_n "checking for sem_init in -lpthread... " >&6; }
13525 if ${ac_cv_lib_pthread_sem_init+:} false; then :
13526 $as_echo_n "(cached) " >&6
13528 ac_check_lib_save_LIBS=$LIBS
13529 LIBS="-lpthread $LIBS"
13530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13531 /* end confdefs.h. */
13533 /* Override any GCC internal prototype to avoid an error.
13534 Use char because int might match the return type of a GCC
13535 builtin and then its argument prototype would still apply. */
13543 return sem_init ();
13548 if ac_fn_c_try_link "$LINENO"; then :
13549 ac_cv_lib_pthread_sem_init=yes
13551 ac_cv_lib_pthread_sem_init=no
13553 rm -f core conftest.err conftest.$ac_objext \
13554 conftest$ac_exeext conftest.$ac_ext
13555 LIBS=$ac_check_lib_save_LIBS
13557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
13558 $as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
13559 if test "x$ac_cv_lib_pthread_sem_init" = xyes; then :
13560 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
13562 SEM_INIT_LIB=-lpthread
13564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
13565 $as_echo_n "checking for sem_init in -lrt... " >&6; }
13566 if ${ac_cv_lib_rt_sem_init+:} false; then :
13567 $as_echo_n "(cached) " >&6
13569 ac_check_lib_save_LIBS=$LIBS
13571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13572 /* end confdefs.h. */
13574 /* Override any GCC internal prototype to avoid an error.
13575 Use char because int might match the return type of a GCC
13576 builtin and then its argument prototype would still apply. */
13584 return sem_init ();
13589 if ac_fn_c_try_link "$LINENO"; then :
13590 ac_cv_lib_rt_sem_init=yes
13592 ac_cv_lib_rt_sem_init=no
13594 rm -f core conftest.err conftest.$ac_objext \
13595 conftest$ac_exeext conftest.$ac_ext
13596 LIBS=$ac_check_lib_save_LIBS
13598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
13599 $as_echo "$ac_cv_lib_rt_sem_init" >&6; }
13600 if test "x$ac_cv_lib_rt_sem_init" = xyes; then :
13601 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
13605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
13606 $as_echo_n "checking for sem_init in -lposix4... " >&6; }
13607 if ${ac_cv_lib_posix4_sem_init+:} false; then :
13608 $as_echo_n "(cached) " >&6
13610 ac_check_lib_save_LIBS=$LIBS
13611 LIBS="-lposix4 $LIBS"
13612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13613 /* end confdefs.h. */
13615 /* Override any GCC internal prototype to avoid an error.
13616 Use char because int might match the return type of a GCC
13617 builtin and then its argument prototype would still apply. */
13625 return sem_init ();
13630 if ac_fn_c_try_link "$LINENO"; then :
13631 ac_cv_lib_posix4_sem_init=yes
13633 ac_cv_lib_posix4_sem_init=no
13635 rm -f core conftest.err conftest.$ac_objext \
13636 conftest$ac_exeext conftest.$ac_ext
13637 LIBS=$ac_check_lib_save_LIBS
13639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
13640 $as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
13641 if test "x$ac_cv_lib_posix4_sem_init" = xyes; then :
13642 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
13644 SEM_INIT_LIB=-lposix4
13653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
13654 $as_echo_n "checking for unified diff option... " >&6; }
13655 if diff -u $0 $0 > /dev/null 2>&1 ; then
13660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
13661 $as_echo "$UNI_DIFF_OPTS" >&6; }
13666 $as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
13686 linux* | gnu* | k*bsd*-gnu)
13687 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
13689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5
13690 $as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
13695 linux* | gnu* | k*bsd*-gnu)
13696 if test "$prefix" = NONE ; then
13698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5
13699 $as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
13700 if test "$mandir" = '${prefix}/man' ; then
13701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
13702 $as_echo "...and mandir defaults to /usr/share/man" >&6; }
13703 mandir=/usr/share/man
13708 if test "$root_prefix" = NONE ; then
13709 if test "$prefix" = NONE ; then
13710 root_prefix="$ac_default_prefix"
13712 root_prefix="$prefix"
13714 root_bindir=$bindir
13715 root_sbindir=$sbindir
13716 root_libdir=$libdir
13717 root_sysconfdir=$sysconfdir
13719 root_bindir='${root_prefix}/bin'
13720 root_sbindir='${root_prefix}/sbin'
13721 root_libdir='${root_prefix}/lib'
13722 root_sysconfdir='${root_prefix}/etc'
13724 if test "$bindir" != '${exec_prefix}/bin'; then
13725 root_bindir=$bindir
13726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
13727 $as_echo "Setting root_bindir to $root_bindir" >&6; }
13729 if test "$sbindir" != '${exec_prefix}/sbin'; then
13730 root_sbindir=$sbindir
13731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
13732 $as_echo "Setting root_sbindir to $root_sbindir" >&6; }
13734 if test "$libdir" != '${exec_prefix}/lib'; then
13735 root_libdir=$libdir
13736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
13737 $as_echo "Setting root_libdir to $root_libdir" >&6; }
13739 if test "$sysconfdir" != '${prefix}/etc'; then
13740 root_sysconfdir=$sysconfdir
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
13742 $as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
13750 # Check whether --with-multiarch was given.
13751 if test "${with_multiarch+set}" = set; then :
13752 withval=$with_multiarch; if test "$withval" = "lib64"; then
13756 libdir=$libdir/$withval
13757 root_libdir=$root_libdir/$withval
13761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5
13762 $as_echo_n "checking whether we can link with -static... " >&6; }
13763 if ${ac_cv_e2fsprogs_use_static+:} false; then :
13764 $as_echo_n "(cached) " >&6
13766 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS_STATIC -static"
13767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13768 /* end confdefs.h. */
13778 if ac_fn_c_try_link "$LINENO"; then :
13779 ac_cv_e2fsprogs_use_static=yes
13781 ac_cv_e2fsprogs_use_static=no
13783 rm -f core conftest.err conftest.$ac_objext \
13784 conftest$ac_exeext conftest.$ac_ext
13785 LDFLAGS=$SAVE_LDFLAGS
13790 ac_cv_e2fsprogs_use_static=no
13793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
13794 $as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
13795 if test $ac_cv_e2fsprogs_use_static = yes; then
13796 LDFLAGS_STATIC="$LDFLAGS_STATIC -static"
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
13802 $as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
13804 $as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
13808 SS_DIR=`cd ${srcdir}/lib/ss; pwd`
13809 ET_DIR=`cd ${srcdir}/lib/et; pwd`
13812 if test "$cross_compiling" = yes ; then
13815 DO_TEST_SUITE=check
13818 INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
13819 if test -n "$CPPFLAGS" ; then
13820 INCLUDES="$INCLUDES $CPPFLAGS"
13822 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
13823 INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
13825 if test -n "$WITH_DIET_LIBC" ; then
13826 INCLUDES="$INCLUDES -D_REENTRANT"
13831 if test -n "$ac_aux_dir"; then
13832 case "$ac_aux_dir" in
13833 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
13834 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
13837 if test -z "$MKINSTALLDIRS"; then
13838 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
13842 if test $cross_compiling = no; then
13843 BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H"
13844 BUILD_LDFLAGS="$LDFLAGS"
13848 CFLAGS_SHLIB=${CFLAGS_SHLIB:-$CFLAGS}
13849 CFLAGS_STLIB=${CFLAGS_STLIB:-$CFLAGS}
13850 LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
13854 test -d lib || mkdir lib
13855 test -d include || mkdir include
13856 test -d include/linux || mkdir include/linux
13857 test -d include/asm || mkdir include/asm
13858 if test -z "$UUID_CMT" ; then
13859 uuid_out_list="lib/uuid/Makefile lib/uuid/uuid.pc \
13860 lib/uuid/uuid_types.h"
13862 if test -z "$BLKID_CMT" ; then
13863 blkid_out_list="lib/blkid/Makefile lib/blkid/blkid.pc \
13864 lib/blkid/blkid_types.h"
13866 for i in MCONFIG Makefile e2fsprogs.spec \
13867 util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
13868 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
13869 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
13870 $uuid_out_list $blkid_out_list lib/support/Makefile \
13871 lib/ss/ss.pc lib/et/com_err.pc lib/e2p/e2p.pc lib/ext2fs/ext2fs.pc \
13872 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
13873 debugfs/Makefile tests/Makefile tests/progs/Makefile \
13874 resize/Makefile doc/Makefile intl/Makefile \
13875 intl/libgnuintl.h po/Makefile.in ; do
13876 if test -d `dirname ${srcdir}/$i` ; then
13877 outlist="$outlist $i"
13880 ac_config_files="$ac_config_files $outlist"
13882 cat >confcache <<\_ACEOF
13883 # This file is a shell script that caches the results of configure
13884 # tests run on this system so they can be shared between configure
13885 # scripts and configure runs, see configure's option --config-cache.
13886 # It is not useful on other systems. If it contains results you don't
13887 # want to keep, you may remove or edit it.
13889 # config.status only pays attention to the cache file if you give it
13890 # the --recheck option to rerun configure.
13892 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13893 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13894 # following values.
13898 # The following way of writing the cache mishandles newlines in values,
13899 # but we know of no workaround that is simple, portable, and efficient.
13900 # So, we kill variables containing newlines.
13901 # Ultrix sh set writes to stderr and can't be redirected directly,
13902 # and sets the high bit in the cache file unless we assign to the vars.
13904 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13905 eval ac_val=\$$ac_var
13909 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13910 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13913 _ | IFS | as_nl) ;; #(
13914 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13915 *) { eval $ac_var=; unset $ac_var;} ;;
13921 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13922 *${as_nl}ac_space=\ *)
13923 # `set' does not quote correctly, so add quotes: double-quote
13924 # substitution turns \\\\ into \\, and sed turns \\ into \.
13927 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13930 # `set' quotes correctly as required by POSIX, so do not add quotes.
13931 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13940 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13942 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13944 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13945 if test -w "$cache_file"; then
13946 if test "x$cache_file" != "x/dev/null"; then
13947 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13948 $as_echo "$as_me: updating cache $cache_file" >&6;}
13949 if test ! -f "$cache_file" || test -h "$cache_file"; then
13950 cat confcache >"$cache_file"
13952 case $cache_file in #(
13954 mv -f confcache "$cache_file"$$ &&
13955 mv -f "$cache_file"$$ "$cache_file" ;; #(
13957 mv -f confcache "$cache_file" ;;
13962 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13963 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13968 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13969 # Let make expand exec_prefix.
13970 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13972 DEFS=-DHAVE_CONFIG_H
13977 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13978 # 1. Remove the extension, and $U if already installed.
13979 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13980 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13981 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13982 # will be set to the directory where LIBOBJS objects are built.
13983 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13984 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13986 LIBOBJS=$ac_libobjs
13988 LTLIBOBJS=$ac_ltlibobjs
13993 : "${CONFIG_STATUS=./config.status}"
13995 ac_clean_files_save=$ac_clean_files
13996 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13997 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13998 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14000 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14002 # Generated by $as_me.
14003 # Run this file to recreate the current configuration.
14004 # Compiler output produced by configure, useful for debugging
14005 # configure, is in config.log if it exists.
14008 ac_cs_recheck=false
14011 SHELL=\${CONFIG_SHELL-$SHELL}
14014 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14015 ## -------------------- ##
14016 ## M4sh Initialization. ##
14017 ## -------------------- ##
14019 # Be more Bourne compatible
14020 DUALCASE=1; export DUALCASE # for MKS sh
14021 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14024 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14025 # is contrary to our usage. Disable this feature.
14026 alias -g '${1+"$@"}'='"$@"'
14027 setopt NO_GLOB_SUBST
14029 case `(set -o) 2>/dev/null` in #(
14041 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14042 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14043 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14044 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14045 # Prefer a ksh shell builtin over an external printf program on Solaris,
14046 # but without wasting forks for bash or zsh.
14047 if test -z "$BASH_VERSION$ZSH_VERSION" \
14048 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14049 as_echo='print -r --'
14050 as_echo_n='print -rn --'
14051 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14052 as_echo='printf %s\n'
14053 as_echo_n='printf %s'
14055 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14056 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14057 as_echo_n='/usr/ucb/echo -n'
14059 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14060 as_echo_n_body='eval
14064 expr "X$arg" : "X\\(.*\\)$as_nl";
14065 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14067 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14069 export as_echo_n_body
14070 as_echo_n='sh -c $as_echo_n_body as_echo'
14072 export as_echo_body
14073 as_echo='sh -c $as_echo_body as_echo'
14076 # The user is always right.
14077 if test "${PATH_SEPARATOR+set}" != set; then
14079 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14080 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14087 # We need space, tab and new line, in precisely that order. Quoting is
14088 # there to prevent editors from complaining about space-tab.
14089 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14090 # splitting by setting IFS to empty value.)
14093 # Find who we are. Look in the path if we contain no directory separator.
14096 *[\\/]* ) as_myself=$0 ;;
14097 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14098 for as_dir in $PATH
14101 test -z "$as_dir" && as_dir=.
14102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14108 # We did not find ourselves, most probably we were run as `sh COMMAND'
14109 # in which case we are not to be found in the path.
14110 if test "x$as_myself" = x; then
14113 if test ! -f "$as_myself"; then
14114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14118 # Unset variables that we do not need and which cause bugs (e.g. in
14119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14120 # suppresses any "Segmentation fault" message there. '((' could
14121 # trigger a bug in pdksh 5.2.14.
14122 for as_var in BASH_ENV ENV MAIL MAILPATH
14123 do eval test x\${$as_var+set} = xset \
14124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14140 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14141 # ----------------------------------------
14142 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14143 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14144 # script with STATUS, using 1 if that was 0.
14147 as_status=$1; test $as_status -eq 0 && as_status=1
14149 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14150 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14152 $as_echo "$as_me: error: $2" >&2
14153 as_fn_exit $as_status
14157 # as_fn_set_status STATUS
14158 # -----------------------
14159 # Set $? to STATUS, without forking.
14160 as_fn_set_status ()
14163 } # as_fn_set_status
14165 # as_fn_exit STATUS
14166 # -----------------
14167 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14171 as_fn_set_status $1
14177 # Portably unset VAR.
14180 { eval $1=; unset $1;}
14182 as_unset=as_fn_unset
14183 # as_fn_append VAR VALUE
14184 # ----------------------
14185 # Append the text in VALUE to the end of the definition contained in VAR. Take
14186 # advantage of any shell optimizations that allow amortized linear growth over
14187 # repeated appends, instead of the typical quadratic growth present in naive
14189 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14190 eval 'as_fn_append ()
14201 # as_fn_arith ARG...
14202 # ------------------
14203 # Perform arithmetic evaluation on the ARGs, and store the result in the
14204 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14205 # must be portable across $(()) and expr.
14206 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14207 eval 'as_fn_arith ()
14214 as_val=`expr "$@" || test $? -eq 1`
14219 if expr a : '\(a\)' >/dev/null 2>&1 &&
14220 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14226 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14227 as_basename=basename
14232 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14238 as_me=`$as_basename -- "$0" ||
14239 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14240 X"$0" : 'X\(//\)$' \| \
14241 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14243 sed '/^.*\/\([^/][^/]*\)\/*$/{
14257 # Avoid depending upon Character Ranges.
14258 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14259 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14260 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14261 as_cr_digits='0123456789'
14262 as_cr_alnum=$as_cr_Letters$as_cr_digits
14264 ECHO_C= ECHO_N= ECHO_T=
14265 case `echo -n x` in #(((((
14267 case `echo 'xy\c'` in
14268 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14270 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14277 rm -f conf$$ conf$$.exe conf$$.file
14278 if test -d conf$$.dir; then
14279 rm -f conf$$.dir/conf$$.file
14282 mkdir conf$$.dir 2>/dev/null
14284 if (echo >conf$$.file) 2>/dev/null; then
14285 if ln -s conf$$.file conf$$ 2>/dev/null; then
14287 # ... but there are two gotchas:
14288 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14289 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14290 # In both cases, we have to default to `cp -pR'.
14291 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14293 elif ln conf$$.file conf$$ 2>/dev/null; then
14301 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14302 rmdir conf$$.dir 2>/dev/null
14307 # Create "$as_dir" as a directory, including parents if necessary.
14312 -*) as_dir=./$as_dir;;
14314 test -d "$as_dir" || eval $as_mkdir_p || {
14318 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14319 *) as_qdir=$as_dir;;
14321 as_dirs="'$as_qdir' $as_dirs"
14322 as_dir=`$as_dirname -- "$as_dir" ||
14323 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14324 X"$as_dir" : 'X\(//\)[^/]' \| \
14325 X"$as_dir" : 'X\(//\)$' \| \
14326 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14327 $as_echo X"$as_dir" |
14328 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14332 /^X\(\/\/\)[^/].*/{
14345 test -d "$as_dir" && break
14347 test -z "$as_dirs" || eval "mkdir $as_dirs"
14348 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14352 if mkdir -p . 2>/dev/null; then
14353 as_mkdir_p='mkdir -p "$as_dir"'
14355 test -d ./-p && rmdir ./-p
14360 # as_fn_executable_p FILE
14361 # -----------------------
14362 # Test if FILE is an executable regular file.
14363 as_fn_executable_p ()
14365 test -f "$1" && test -x "$1"
14366 } # as_fn_executable_p
14367 as_test_x='test -x'
14368 as_executable_p=as_fn_executable_p
14370 # Sed expression to map a string onto a valid CPP name.
14371 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14373 # Sed expression to map a string onto a valid variable name.
14374 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14378 ## ----------------------------------- ##
14379 ## Main body of $CONFIG_STATUS script. ##
14380 ## ----------------------------------- ##
14382 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14384 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14385 # Save the log message, to keep $0 and so on meaningful, and to
14386 # report actual input values of CONFIG_FILES etc. instead of their
14387 # values after options handling.
14389 This file was extended by $as_me, which was
14390 generated by GNU Autoconf 2.69. Invocation command line was
14392 CONFIG_FILES = $CONFIG_FILES
14393 CONFIG_HEADERS = $CONFIG_HEADERS
14394 CONFIG_LINKS = $CONFIG_LINKS
14395 CONFIG_COMMANDS = $CONFIG_COMMANDS
14398 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14403 case $ac_config_files in *"
14404 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14407 case $ac_config_headers in *"
14408 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14412 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14413 # Files that config.status was made for.
14414 config_files="$ac_config_files"
14415 config_headers="$ac_config_headers"
14416 config_commands="$ac_config_commands"
14420 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14422 \`$as_me' instantiates files and other configuration actions
14423 from templates according to the current configuration. Unless the files
14424 and actions are specified as TAGs, all are instantiated by default.
14426 Usage: $0 [OPTION]... [TAG]...
14428 -h, --help print this help, then exit
14429 -V, --version print version number and configuration settings, then exit
14430 --config print configuration, then exit
14431 -q, --quiet, --silent
14432 do not print progress messages
14433 -d, --debug don't remove temporary files
14434 --recheck update $as_me by reconfiguring in the same conditions
14435 --file=FILE[:TEMPLATE]
14436 instantiate the configuration file FILE
14437 --header=FILE[:TEMPLATE]
14438 instantiate the configuration header FILE
14440 Configuration files:
14443 Configuration headers:
14446 Configuration commands:
14449 Report bugs to the package provider."
14452 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14453 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14456 configured by $0, generated by GNU Autoconf 2.69,
14457 with options \\"\$ac_cs_config\\"
14459 Copyright (C) 2012 Free Software Foundation, Inc.
14460 This config.status script is free software; the Free Software Foundation
14461 gives unlimited permission to copy, distribute and modify it."
14468 test -n "\$AWK" || AWK=awk
14471 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14472 # The default lists apply if the user does not specify any file.
14478 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14479 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14483 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14495 # Handling of the options.
14496 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14498 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14499 $as_echo "$ac_cs_version"; exit ;;
14500 --config | --confi | --conf | --con | --co | --c )
14501 $as_echo "$ac_cs_config"; exit ;;
14502 --debug | --debu | --deb | --de | --d | -d )
14504 --file | --fil | --fi | --f )
14507 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14508 '') as_fn_error $? "missing file argument" ;;
14510 as_fn_append CONFIG_FILES " '$ac_optarg'"
14511 ac_need_defaults=false;;
14512 --header | --heade | --head | --hea )
14515 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14517 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14518 ac_need_defaults=false;;
14520 # Conflict between --help and --header
14521 as_fn_error $? "ambiguous option: \`$1'
14522 Try \`$0 --help' for more information.";;
14523 --help | --hel | -h )
14524 $as_echo "$ac_cs_usage"; exit ;;
14525 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14526 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14529 # This is an error.
14530 -*) as_fn_error $? "unrecognized option: \`$1'
14531 Try \`$0 --help' for more information." ;;
14533 *) as_fn_append ac_config_targets " $1"
14534 ac_need_defaults=false ;;
14540 ac_configure_extra_args=
14542 if $ac_cs_silent; then
14544 ac_configure_extra_args="$ac_configure_extra_args --silent"
14548 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14549 if \$ac_cs_recheck; then
14550 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14552 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14553 CONFIG_SHELL='$SHELL'
14554 export CONFIG_SHELL
14559 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14563 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14564 ## Running $as_me. ##
14570 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14574 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
14575 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
14576 # from automake < 1.5.
14577 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
14578 # Capture the value of LINGUAS because we need it to compute CATALOGS.
14579 LINGUAS="${LINGUAS-%UNSET%}"
14584 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14586 # Handling of arguments.
14587 for ac_config_target in $ac_config_targets
14589 case $ac_config_target in
14590 "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
14591 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
14592 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
14594 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14599 # If the user did not use the arguments to specify the items to instantiate,
14600 # then the envvar interface is used. Set only those that are not.
14601 # We use the long form for the default assignment because of an extremely
14602 # bizarre bug on SunOS 4.1.3.
14603 if $ac_need_defaults; then
14604 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14605 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14606 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14609 # Have a temporary directory for convenience. Make it in the build tree
14610 # simply because there is no reason against having it here, and in addition,
14611 # creating and moving files from /tmp can sometimes cause problems.
14612 # Hook for its removal unless debugging.
14613 # Note that there is a small window in which the directory will not be cleaned:
14614 # after its creation but before its name has been assigned to `$tmp'.
14618 trap 'exit_status=$?
14619 : "${ac_tmp:=$tmp}"
14620 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14622 trap 'as_fn_exit 1' 1 2 13 15
14624 # Create a (secure) tmp directory for tmp files.
14627 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14631 tmp=./conf$$-$RANDOM
14632 (umask 077 && mkdir "$tmp")
14633 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14636 # Set up the scripts for CONFIG_FILES section.
14637 # No need to generate them if there are no CONFIG_FILES.
14638 # This happens for instance with `./config.status config.h'.
14639 if test -n "$CONFIG_FILES"; then
14641 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
14642 ac_cs_awk_getline=:
14643 ac_cs_awk_pipe_init=
14644 ac_cs_awk_read_file='
14645 while ((getline aline < (F[key])) > 0)
14648 ac_cs_awk_pipe_fini=
14650 ac_cs_awk_getline=false
14651 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
14652 ac_cs_awk_read_file='
14654 print "cat " F[key] " &&"
14655 '$ac_cs_awk_pipe_init
14656 # The final `:' finishes the AND list.
14657 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
14659 ac_cr=`echo X | tr X '\015'`
14660 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14661 # But we know of no other shell where ac_cr would be empty at this
14662 # point, so we can use a bashism as a fallback.
14663 if test "x$ac_cr" = x; then
14664 eval ac_cr=\$\'\\r\'
14666 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14667 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14670 ac_cs_awk_cr=$ac_cr
14673 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14676 # Create commands to substitute file output variables.
14678 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
14679 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
14680 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
14683 } >conf$$files.sh &&
14684 . ./conf$$files.sh ||
14685 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14686 rm -f conf$$files.sh
14689 echo "cat >conf$$subs.awk <<_ACEOF" &&
14690 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14692 } >conf$$subs.sh ||
14693 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14694 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14696 for ac_last_try in false false false false false :; do
14697 . ./conf$$subs.sh ||
14698 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14700 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14701 if test $ac_delim_n = $ac_delim_num; then
14703 elif $ac_last_try; then
14704 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14706 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14709 rm -f conf$$subs.sh
14711 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14712 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14716 s/^/S["/; s/!.*/"]=/
14726 s/\(.\{148\}\)..*/\1/
14728 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14733 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14740 s/\(.\{148\}\)..*/\1/
14742 s/["\\]/\\&/g; s/^/"/; s/$/"/
14746 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14751 ' <conf$$subs.awk | sed '
14756 ' >>$CONFIG_STATUS || ac_write_fail=1
14757 rm -f conf$$subs.awk
14758 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14760 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14761 for (key in S) S_is_set[key] = 1
14763 \$ac_cs_awk_pipe_init
14767 nfields = split(line, field, "@")
14769 len = length(field[1])
14770 for (i = 2; i < nfields; i++) {
14772 keylen = length(key)
14773 if (S_is_set[key]) {
14775 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14776 len += length(value) + length(field[++i])
14781 if (nfields == 3 && !substed) {
14783 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
14784 \$ac_cs_awk_read_file
14790 \$ac_cs_awk_pipe_fini
14793 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14794 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14795 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14798 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14799 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14802 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14803 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14804 # trailing colons and then remove the whole line if VPATH becomes empty
14805 # (actually we leave an empty line to preserve line numbers).
14806 if test "x$srcdir" = x.; then
14807 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14825 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14826 fi # test -n "$CONFIG_FILES"
14828 # Set up the scripts for CONFIG_HEADERS section.
14829 # No need to generate them if there are no CONFIG_HEADERS.
14830 # This happens for instance with `./config.status Makefile'.
14831 if test -n "$CONFIG_HEADERS"; then
14832 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14836 # Transform confdefs.h into an awk script `defines.awk', embedded as
14837 # here-document in config.status, that substitutes the proper values into
14838 # config.h.in to produce config.h.
14840 # Create a delimiter string that does not exist in confdefs.h, to ease
14841 # handling of long lines.
14843 for ac_last_try in false false :; do
14844 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14845 if test -z "$ac_tt"; then
14847 elif $ac_last_try; then
14848 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14850 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14854 # For the awk script, D is an array of macro values keyed by name,
14855 # likewise P contains macro parameters if any. Preserve backslash
14856 # newline sequences.
14858 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14860 s/.\{148\}/&'"$ac_delim"'/g
14863 s/^[ ]*#[ ]*define[ ][ ]*/ /
14870 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14872 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14876 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14877 D["\1"]=" \3\\\\\\n"\\/p
14879 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14884 s/.\{148\}/&'"$ac_delim"'/g
14889 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14892 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14894 ' <confdefs.h | sed '
14895 s/'"$ac_delim"'/"\\\
14896 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14898 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14899 for (key in D) D_is_set[key] = 1
14902 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14904 split(line, arg, " ")
14905 if (arg[1] == "#") {
14909 defundef = substr(arg[1], 2)
14912 split(mac1, mac2, "(") #)
14914 prefix = substr(line, 1, index(line, defundef) - 1)
14915 if (D_is_set[macro]) {
14916 # Preserve the white space surrounding the "#".
14917 print prefix "define", macro P[macro] D[macro]
14920 # Replace #undef with comments. This is necessary, for example,
14921 # in the case of _POSIX_SOURCE, which is predefined and required
14922 # on some systems where configure will not decide to define it.
14923 if (defundef == "undef") {
14924 print "/*", prefix defundef, macro, "*/"
14932 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14933 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14934 fi # test -n "$CONFIG_HEADERS"
14937 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14942 :[FHLC]) ac_mode=$ac_tag; continue;;
14944 case $ac_mode$ac_tag in
14946 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14947 :[FH]-) ac_tag=-:-;;
14948 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14965 -) ac_f="$ac_tmp/stdin";;
14966 *) # Look for the file first in the build tree, then in the source tree
14967 # (if the path is not absolute). The absolute path cannot be DOS-style,
14968 # because $ac_f cannot contain `:'.
14972 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14974 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14976 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14977 as_fn_append ac_file_inputs " '$ac_f'"
14980 # Let's still pretend it is `configure' which instantiates (i.e., don't
14981 # use $as_me), people would be surprised to read:
14982 # /* config.h. Generated by config.status. */
14983 configure_input='Generated from '`
14984 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14986 if test x"$ac_file" != x-; then
14987 configure_input="$ac_file. $configure_input"
14988 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14989 $as_echo "$as_me: creating $ac_file" >&6;}
14991 # Neutralize special characters interpreted by sed in replacement strings.
14992 case $configure_input in #(
14993 *\&* | *\|* | *\\* )
14994 ac_sed_conf_input=`$as_echo "$configure_input" |
14995 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14996 *) ac_sed_conf_input=$configure_input;;
15000 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15001 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15006 ac_dir=`$as_dirname -- "$ac_file" ||
15007 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15008 X"$ac_file" : 'X\(//\)[^/]' \| \
15009 X"$ac_file" : 'X\(//\)$' \| \
15010 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15011 $as_echo X"$ac_file" |
15012 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15016 /^X\(\/\/\)[^/].*/{
15029 as_dir="$ac_dir"; as_fn_mkdir_p
15033 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15035 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15036 # A ".." for each directory in $ac_dir_suffix.
15037 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15038 case $ac_top_builddir_sub in
15039 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15040 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15043 ac_abs_top_builddir=$ac_pwd
15044 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15045 # for backward compatibility:
15046 ac_top_builddir=$ac_top_build_prefix
15049 .) # We are building in place.
15051 ac_top_srcdir=$ac_top_builddir_sub
15052 ac_abs_top_srcdir=$ac_pwd ;;
15053 [\\/]* | ?:[\\/]* ) # Absolute name.
15054 ac_srcdir=$srcdir$ac_dir_suffix;
15055 ac_top_srcdir=$srcdir
15056 ac_abs_top_srcdir=$srcdir ;;
15057 *) # Relative name.
15058 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15059 ac_top_srcdir=$ac_top_build_prefix$srcdir
15060 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15062 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15072 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15073 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15075 ac_MKDIR_P=$MKDIR_P
15077 [\\/$]* | ?:[\\/]* ) ;;
15078 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15082 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15083 # If the template does not know about datarootdir, expand it.
15084 # FIXME: This hack should be removed a few years after 2.60.
15085 ac_datarootdir_hack=; ac_datarootdir_seen=
15096 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15097 *datarootdir*) ac_datarootdir_seen=yes;;
15098 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15100 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15102 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15103 ac_datarootdir_hack='
15104 s&@datadir@&$datadir&g
15105 s&@docdir@&$docdir&g
15106 s&@infodir@&$infodir&g
15107 s&@localedir@&$localedir&g
15108 s&@mandir@&$mandir&g
15109 s&\\\${datarootdir}&$datarootdir&g' ;;
15113 # Neutralize VPATH when `$srcdir' = `.'.
15114 # Shell code in configure.ac might set extrasub.
15115 # FIXME: do we really want to maintain this feature?
15116 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15117 ac_sed_extra="$ac_vpsub
15120 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15122 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15123 s|@configure_input@|$ac_sed_conf_input|;t t
15124 s&@top_builddir@&$ac_top_builddir_sub&;t t
15125 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15126 s&@srcdir@&$ac_srcdir&;t t
15127 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15128 s&@top_srcdir@&$ac_top_srcdir&;t t
15129 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15130 s&@builddir@&$ac_builddir&;t t
15131 s&@abs_builddir@&$ac_abs_builddir&;t t
15132 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15133 s&@INSTALL@&$ac_INSTALL&;t t
15134 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15135 $ac_datarootdir_hack
15137 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15138 if $ac_cs_awk_getline; then
15139 $AWK -f "$ac_tmp/subs.awk"
15141 $AWK -f "$ac_tmp/subs.awk" | $SHELL
15143 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15145 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15146 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15147 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15148 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15150 which seems to be undefined. Please make sure it is defined" >&5
15151 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15152 which seems to be undefined. Please make sure it is defined" >&2;}
15154 rm -f "$ac_tmp/stdin"
15156 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15157 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15159 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15165 if test x"$ac_file" != x-; then
15167 $as_echo "/* $configure_input */" \
15168 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15169 } >"$ac_tmp/config.h" \
15170 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15171 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15172 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15173 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15176 mv "$ac_tmp/config.h" "$ac_file" \
15177 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15180 $as_echo "/* $configure_input */" \
15181 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15182 || as_fn_error $? "could not create -" "$LINENO" 5
15186 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15187 $as_echo "$as_me: executing $ac_file commands" >&6;}
15192 case $ac_file$ac_mode in
15193 "po-directories":C)
15194 for ac_file in $CONFIG_FILES; do
15195 # Support "outfile[:infile[:infile...]]"
15197 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15199 # PO directories have a Makefile.in generated from Makefile.in.in.
15200 case "$ac_file" in */Makefile.in)
15201 # Adjust a relative srcdir.
15202 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
15203 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
15204 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
15205 # In autoconf-2.13 it is called $ac_given_srcdir.
15206 # In autoconf-2.50 it is called $srcdir.
15207 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
15208 case "$ac_given_srcdir" in
15209 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
15210 /*) top_srcdir="$ac_given_srcdir" ;;
15211 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
15213 # Treat a directory as a PO directory if and only if it has a
15214 # POTFILES.in file. This allows packages to have multiple PO
15215 # directories under different names or in different locations.
15216 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15217 rm -f "$ac_dir/POTFILES"
15218 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
15219 gt_tab=`printf '\t'`
15220 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"
15221 POMAKEFILEDEPS="POTFILES.in"
15222 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
15223 # on $ac_dir but don't depend on user-specified configuration
15225 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15226 # The LINGUAS file contains the set of available languages.
15227 if test -n "$OBSOLETE_ALL_LINGUAS"; then
15228 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
15230 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15231 # Hide the ALL_LINGUAS assignment from automake < 1.5.
15232 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
15233 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
15235 # The set of available languages was given in configure.in.
15236 # Hide the ALL_LINGUAS assignment from automake < 1.5.
15237 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
15240 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
15241 # Compute UPDATEPOFILES
15242 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
15243 # Compute DUMMYPOFILES
15244 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
15246 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
15247 case "$ac_given_srcdir" in
15249 *) srcdirpre='$(srcdir)/' ;;
15255 for lang in $ALL_LINGUAS; do
15256 POFILES="$POFILES $srcdirpre$lang.po"
15257 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
15258 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
15259 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
15261 # CATALOGS depends on both $ac_dir and the user's LINGUAS
15262 # environment variable.
15264 if test -n "$ALL_LINGUAS"; then
15265 for presentlang in $ALL_LINGUAS; do
15267 if test "%UNSET%" != "$LINGUAS"; then
15268 desiredlanguages="$LINGUAS"
15270 desiredlanguages="$ALL_LINGUAS"
15272 for desiredlang in $desiredlanguages; do
15273 # Use the presentlang catalog if desiredlang is
15274 # a. equal to presentlang, or
15275 # b. a variant of presentlang (because in this case,
15276 # presentlang can be used as a fallback for messages
15277 # which are not translated in the desiredlang catalog).
15278 case "$desiredlang" in
15279 "$presentlang"*) useit=yes;;
15282 if test $useit = yes; then
15283 INST_LINGUAS="$INST_LINGUAS $presentlang"
15288 if test -n "$INST_LINGUAS"; then
15289 for lang in $INST_LINGUAS; do
15290 CATALOGS="$CATALOGS $lang.gmo"
15293 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
15294 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"
15295 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
15296 if test -f "$f"; then
15298 *.orig | *.bak | *~) ;;
15299 *) cat "$f" >> "$ac_dir/Makefile" ;;
15314 ac_clean_files=$ac_clean_files_save
15316 test $ac_write_fail = 0 ||
15317 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15320 # configure is writing to config.log, and then calls config.status.
15321 # config.status does its own redirection, appending to config.log.
15322 # Unfortunately, on DOS this fails, as config.log is still kept open
15323 # by configure, so config.status won't be able to write to it; its
15324 # output is simply discarded. So we exec the FD to /dev/null,
15325 # effectively closing config.log, so it can be properly (re)opened and
15326 # appended to by config.status. When coming back to configure, we
15327 # need to make the FD available again.
15328 if test "$no_create" != yes; then
15330 ac_config_status_args=
15331 test "$silent" = yes &&
15332 ac_config_status_args="$ac_config_status_args --quiet"
15334 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15336 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15337 # would make configure fail if this is the last instruction.
15338 $ac_cs_success || as_fn_exit 1
15340 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15342 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15345 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi