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
678 INTL_LIBTOOL_SUFFIX_PREFIX
685 BUILD_INCLUDED_LIBINTL
695 INTL_DEFAULT_VERBOSITY
714 XGETTEXT_EXTRA_OPTIONS
722 GETTEXT_MACRO_VERSION
830 program_transform_name
841 ac_subst_files='MCONFIG
847 PUBLIC_CONFIG_HEADER'
849 enable_option_checking
855 enable_maintainer_mode
856 enable_symlink_install
857 enable_relative_symlinks
858 enable_symlink_relative_symlinks
860 enable_verbose_makecmds
877 enable_e2initrd_helper
883 enable_bmap_stats_ops
890 with_included_gettext
895 ac_precious_vars='build_alias
909 # Initialize some variables set by options.
911 ac_init_version=false
912 ac_unrecognized_opts=
914 # The variables have the same names as the options, with
915 # dashes changed to underlines.
923 program_transform_name=s,x,x,
931 # Installation directory options.
932 # These are left unexpanded so users can "make install exec_prefix=/foo"
933 # and all the variables that are supposed to be based on exec_prefix
934 # by default will actually change.
935 # Use braces instead of parens because sh, perl, etc. also accept them.
936 # (The list follows the same order as the GNU Coding Standards.)
937 bindir='${exec_prefix}/bin'
938 sbindir='${exec_prefix}/sbin'
939 libexecdir='${exec_prefix}/libexec'
940 datarootdir='${prefix}/share'
941 datadir='${datarootdir}'
942 sysconfdir='${prefix}/etc'
943 sharedstatedir='${prefix}/com'
944 localstatedir='${prefix}/var'
945 runstatedir='${localstatedir}/run'
946 includedir='${prefix}/include'
947 oldincludedir='/usr/include'
948 docdir='${datarootdir}/doc/${PACKAGE}'
949 infodir='${datarootdir}/info'
954 libdir='${exec_prefix}/lib'
955 localedir='${datarootdir}/locale'
956 mandir='${datarootdir}/man'
962 # If the previous option needs an argument, assign it.
963 if test -n "$ac_prev"; then
964 eval $ac_prev=\$ac_option
970 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
975 # Accept the important Cygnus configure options, so we can diagnose typos.
977 case $ac_dashdash$ac_option in
981 -bindir | --bindir | --bindi | --bind | --bin | --bi)
983 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
986 -build | --build | --buil | --bui | --bu)
987 ac_prev=build_alias ;;
988 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
989 build_alias=$ac_optarg ;;
991 -cache-file | --cache-file | --cache-fil | --cache-fi \
992 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
993 ac_prev=cache_file ;;
994 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
995 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
996 cache_file=$ac_optarg ;;
999 cache_file=config.cache ;;
1001 -datadir | --datadir | --datadi | --datad)
1003 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1004 datadir=$ac_optarg ;;
1006 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1007 | --dataroo | --dataro | --datar)
1008 ac_prev=datarootdir ;;
1009 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1010 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1011 datarootdir=$ac_optarg ;;
1013 -disable-* | --disable-*)
1014 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1015 # Reject names that are not valid shell variable names.
1016 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1017 as_fn_error $? "invalid feature name: $ac_useropt"
1018 ac_useropt_orig=$ac_useropt
1019 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1020 case $ac_user_opts in
1022 "enable_$ac_useropt"
1024 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1025 ac_unrecognized_sep=', ';;
1027 eval enable_$ac_useropt=no ;;
1029 -docdir | --docdir | --docdi | --doc | --do)
1031 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1032 docdir=$ac_optarg ;;
1034 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1036 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1037 dvidir=$ac_optarg ;;
1039 -enable-* | --enable-*)
1040 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1041 # Reject names that are not valid shell variable names.
1042 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1043 as_fn_error $? "invalid feature name: $ac_useropt"
1044 ac_useropt_orig=$ac_useropt
1045 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1046 case $ac_user_opts in
1048 "enable_$ac_useropt"
1050 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1051 ac_unrecognized_sep=', ';;
1053 eval enable_$ac_useropt=\$ac_optarg ;;
1055 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1056 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1057 | --exec | --exe | --ex)
1058 ac_prev=exec_prefix ;;
1059 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1060 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1061 | --exec=* | --exe=* | --ex=*)
1062 exec_prefix=$ac_optarg ;;
1064 -gas | --gas | --ga | --g)
1065 # Obsolete; use --with-gas.
1068 -help | --help | --hel | --he | -h)
1069 ac_init_help=long ;;
1070 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1071 ac_init_help=recursive ;;
1072 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1073 ac_init_help=short ;;
1075 -host | --host | --hos | --ho)
1076 ac_prev=host_alias ;;
1077 -host=* | --host=* | --hos=* | --ho=*)
1078 host_alias=$ac_optarg ;;
1080 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1082 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1084 htmldir=$ac_optarg ;;
1086 -includedir | --includedir | --includedi | --included | --include \
1087 | --includ | --inclu | --incl | --inc)
1088 ac_prev=includedir ;;
1089 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1090 | --includ=* | --inclu=* | --incl=* | --inc=*)
1091 includedir=$ac_optarg ;;
1093 -infodir | --infodir | --infodi | --infod | --info | --inf)
1095 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1096 infodir=$ac_optarg ;;
1098 -libdir | --libdir | --libdi | --libd)
1100 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1101 libdir=$ac_optarg ;;
1103 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1104 | --libexe | --libex | --libe)
1105 ac_prev=libexecdir ;;
1106 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1107 | --libexe=* | --libex=* | --libe=*)
1108 libexecdir=$ac_optarg ;;
1110 -localedir | --localedir | --localedi | --localed | --locale)
1111 ac_prev=localedir ;;
1112 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1113 localedir=$ac_optarg ;;
1115 -localstatedir | --localstatedir | --localstatedi | --localstated \
1116 | --localstate | --localstat | --localsta | --localst | --locals)
1117 ac_prev=localstatedir ;;
1118 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1119 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1120 localstatedir=$ac_optarg ;;
1122 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1124 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1125 mandir=$ac_optarg ;;
1127 -nfp | --nfp | --nf)
1128 # Obsolete; use --without-fp.
1131 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1132 | --no-cr | --no-c | -n)
1135 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1136 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1139 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1140 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1141 | --oldin | --oldi | --old | --ol | --o)
1142 ac_prev=oldincludedir ;;
1143 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1144 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1145 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1146 oldincludedir=$ac_optarg ;;
1148 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1150 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1151 prefix=$ac_optarg ;;
1153 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1154 | --program-pre | --program-pr | --program-p)
1155 ac_prev=program_prefix ;;
1156 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1157 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1158 program_prefix=$ac_optarg ;;
1160 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1161 | --program-suf | --program-su | --program-s)
1162 ac_prev=program_suffix ;;
1163 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1164 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1165 program_suffix=$ac_optarg ;;
1167 -program-transform-name | --program-transform-name \
1168 | --program-transform-nam | --program-transform-na \
1169 | --program-transform-n | --program-transform- \
1170 | --program-transform | --program-transfor \
1171 | --program-transfo | --program-transf \
1172 | --program-trans | --program-tran \
1173 | --progr-tra | --program-tr | --program-t)
1174 ac_prev=program_transform_name ;;
1175 -program-transform-name=* | --program-transform-name=* \
1176 | --program-transform-nam=* | --program-transform-na=* \
1177 | --program-transform-n=* | --program-transform-=* \
1178 | --program-transform=* | --program-transfor=* \
1179 | --program-transfo=* | --program-transf=* \
1180 | --program-trans=* | --program-tran=* \
1181 | --progr-tra=* | --program-tr=* | --program-t=*)
1182 program_transform_name=$ac_optarg ;;
1184 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1186 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1187 pdfdir=$ac_optarg ;;
1189 -psdir | --psdir | --psdi | --psd | --ps)
1191 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1194 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1195 | -silent | --silent | --silen | --sile | --sil)
1198 -runstatedir | --runstatedir | --runstatedi | --runstated \
1199 | --runstate | --runstat | --runsta | --runst | --runs \
1200 | --run | --ru | --r)
1201 ac_prev=runstatedir ;;
1202 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1203 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1204 | --run=* | --ru=* | --r=*)
1205 runstatedir=$ac_optarg ;;
1207 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1209 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1211 sbindir=$ac_optarg ;;
1213 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1214 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1215 | --sharedst | --shareds | --shared | --share | --shar \
1217 ac_prev=sharedstatedir ;;
1218 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1219 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1220 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1222 sharedstatedir=$ac_optarg ;;
1224 -site | --site | --sit)
1226 -site=* | --site=* | --sit=*)
1229 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1231 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1232 srcdir=$ac_optarg ;;
1234 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1235 | --syscon | --sysco | --sysc | --sys | --sy)
1236 ac_prev=sysconfdir ;;
1237 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1238 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1239 sysconfdir=$ac_optarg ;;
1241 -target | --target | --targe | --targ | --tar | --ta | --t)
1242 ac_prev=target_alias ;;
1243 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1244 target_alias=$ac_optarg ;;
1246 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1249 -version | --version | --versio | --versi | --vers | -V)
1250 ac_init_version=: ;;
1253 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1254 # Reject names that are not valid shell variable names.
1255 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1256 as_fn_error $? "invalid package name: $ac_useropt"
1257 ac_useropt_orig=$ac_useropt
1258 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1259 case $ac_user_opts in
1263 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1264 ac_unrecognized_sep=', ';;
1266 eval with_$ac_useropt=\$ac_optarg ;;
1268 -without-* | --without-*)
1269 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1270 # Reject names that are not valid shell variable names.
1271 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1272 as_fn_error $? "invalid package name: $ac_useropt"
1273 ac_useropt_orig=$ac_useropt
1274 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1275 case $ac_user_opts in
1279 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1280 ac_unrecognized_sep=', ';;
1282 eval with_$ac_useropt=no ;;
1285 # Obsolete; use --with-x.
1288 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1289 | --x-incl | --x-inc | --x-in | --x-i)
1290 ac_prev=x_includes ;;
1291 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1292 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1293 x_includes=$ac_optarg ;;
1295 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1296 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1297 ac_prev=x_libraries ;;
1298 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1299 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1300 x_libraries=$ac_optarg ;;
1302 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1303 Try \`$0 --help' for more information"
1307 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1308 # Reject names that are not valid shell variable names.
1309 case $ac_envvar in #(
1310 '' | [0-9]* | *[!_$as_cr_alnum]* )
1311 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1313 eval $ac_envvar=\$ac_optarg
1314 export $ac_envvar ;;
1317 # FIXME: should be removed in autoconf 3.0.
1318 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1319 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1320 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1321 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1327 if test -n "$ac_prev"; then
1328 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1329 as_fn_error $? "missing argument to $ac_option"
1332 if test -n "$ac_unrecognized_opts"; then
1333 case $enable_option_checking in
1335 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1336 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1340 # Check all directory arguments for consistency.
1341 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1342 datadir sysconfdir sharedstatedir localstatedir includedir \
1343 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1344 libdir localedir mandir runstatedir
1346 eval ac_val=\$$ac_var
1347 # Remove trailing slashes.
1350 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1351 eval $ac_var=\$ac_val;;
1353 # Be sure to have absolute directory names.
1355 [\\/$]* | ?:[\\/]* ) continue;;
1356 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1358 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1361 # There might be people who depend on the old broken behavior: `$host'
1362 # used to hold the argument of --host etc.
1363 # FIXME: To remove some day.
1366 target=$target_alias
1368 # FIXME: To remove some day.
1369 if test "x$host_alias" != x; then
1370 if test "x$build_alias" = x; then
1371 cross_compiling=maybe
1372 elif test "x$build_alias" != "x$host_alias"; then
1378 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1380 test "$silent" = yes && exec 6>/dev/null
1383 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1384 ac_ls_di=`ls -di .` &&
1385 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1386 as_fn_error $? "working directory cannot be determined"
1387 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1388 as_fn_error $? "pwd does not report name of working directory"
1391 # Find the source files, if location was not specified.
1392 if test -z "$srcdir"; then
1393 ac_srcdir_defaulted=yes
1394 # Try the directory containing this script, then the parent directory.
1395 ac_confdir=`$as_dirname -- "$as_myself" ||
1396 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1397 X"$as_myself" : 'X\(//\)[^/]' \| \
1398 X"$as_myself" : 'X\(//\)$' \| \
1399 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1400 $as_echo X"$as_myself" |
1401 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1419 if test ! -r "$srcdir/$ac_unique_file"; then
1423 ac_srcdir_defaulted=no
1425 if test ! -r "$srcdir/$ac_unique_file"; then
1426 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1427 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1429 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1431 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1433 # When building in place, set srcdir=.
1434 if test "$ac_abs_confdir" = "$ac_pwd"; then
1437 # Remove unnecessary trailing slashes from srcdir.
1438 # Double slashes in file names in object file debugging info
1439 # mess up M-x gdb in Emacs.
1441 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1443 for ac_var in $ac_precious_vars; do
1444 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1445 eval ac_env_${ac_var}_value=\$${ac_var}
1446 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1447 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1451 # Report the --help message.
1453 if test "$ac_init_help" = "long"; then
1454 # Omit some internal or obsolete options to make the list less imposing.
1455 # This message is too long to be a string in the A/UX 3.1 sh.
1457 \`configure' configures this package to adapt to many kinds of systems.
1459 Usage: $0 [OPTION]... [VAR=VALUE]...
1461 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1462 VAR=VALUE. See below for descriptions of some of the useful variables.
1464 Defaults for the options are specified in brackets.
1467 -h, --help display this help and exit
1468 --help=short display options specific to this package
1469 --help=recursive display the short help of all the included packages
1470 -V, --version display version information and exit
1471 -q, --quiet, --silent do not print \`checking ...' messages
1472 --cache-file=FILE cache test results in FILE [disabled]
1473 -C, --config-cache alias for \`--cache-file=config.cache'
1474 -n, --no-create do not create output files
1475 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1477 Installation directories:
1478 --prefix=PREFIX install architecture-independent files in PREFIX
1479 [$ac_default_prefix]
1480 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1483 By default, \`make install' will install all the files in
1484 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1485 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1486 for instance \`--prefix=\$HOME'.
1488 For better control, use the options below.
1490 Fine tuning of the installation directories:
1491 --bindir=DIR user executables [EPREFIX/bin]
1492 --sbindir=DIR system admin executables [EPREFIX/sbin]
1493 --libexecdir=DIR program executables [EPREFIX/libexec]
1494 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1495 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1496 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1497 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1498 --libdir=DIR object code libraries [EPREFIX/lib]
1499 --includedir=DIR C header files [PREFIX/include]
1500 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1501 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1502 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1503 --infodir=DIR info documentation [DATAROOTDIR/info]
1504 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1505 --mandir=DIR man documentation [DATAROOTDIR/man]
1506 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1507 --htmldir=DIR html documentation [DOCDIR]
1508 --dvidir=DIR dvi documentation [DOCDIR]
1509 --pdfdir=DIR pdf documentation [DOCDIR]
1510 --psdir=DIR ps documentation [DOCDIR]
1516 --build=BUILD configure for building on BUILD [guessed]
1517 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1521 if test -n "$ac_init_help"; then
1526 --disable-option-checking ignore unrecognized --enable/--with options
1527 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1528 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1529 --enable-maintainer-mode enable makefile rules useful for maintainers
1530 --enable-symlink-install use symlinks when installing instead of hard links
1531 --enable-relative-symlinks use relative symlinks when installing
1533 --enable-symlink-build use symlinks while building instead of hard links
1534 --enable-verbose-makecmds enable verbose make command output
1535 --enable-elf-shlibs select ELF shared libraries
1536 --enable-bsd-shlibs select BSD shared libraries
1537 --enable-profile build profiling libraries
1538 --enable-gcov build for coverage testing using gcov
1539 --enable-hardening build for coverage testing using gcov
1540 --enable-jbd-debug enable journal debugging
1541 --enable-blkid-debug enable blkid debugging
1542 --disable-testio-debug disable the use of the test I/O manager for debugging
1543 --enable-libuuid build and use private uuid library
1544 --enable-libblkid build and use private blkid library
1545 --disable-backtrace disable use backtrace
1546 --disable-debugfs disable support of debugfs program
1547 --disable-imager disable support of e2image program
1548 --disable-resizer disable support of e2resize program
1549 --disable-defrag disable support of e4defrag program
1550 --enable-fsck build fsck wrapper program
1551 --enable-e2initrd-helper build e2initrd-helper program
1552 --disable-tls disable use of thread local support
1553 --disable-uuidd disable building the uuid daemon
1554 --disable-mmp disable support mmp, Multi Mount Protection
1555 --disable-tdb disable tdb support
1556 --disable-bmap-stats disable collection of bitmap stats.
1557 --enable-bmap-stats-ops enable collection of additional bitmap stats
1558 --disable-nls do not use Native Language Support
1559 --enable-threads={posix|solaris|pth|windows}
1560 specify multithreading API
1561 --disable-threads build without multithread safety
1562 --disable-rpath do not hardcode runtime library paths
1563 --disable-fuse2fs do not build fuse2fs
1566 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1567 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1568 --with-diet-libc use diet libc
1569 --with-cc no longer supported, use CC= instead
1570 --with-ccopts no longer supported, use CFLAGS= instead
1571 --with-ldopts no longer supported, use LDFLAGS= instead
1572 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1573 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1574 --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
1575 --without-libpth-prefix don't search for libpth in includedir and libdir
1576 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1577 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1578 --with-included-gettext use the GNU gettext library included here
1579 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1580 --without-libintl-prefix don't search for libintl in includedir and libdir
1581 --with-multiarch=ARCH specify the multiarch triplet
1583 Some influential environment variables:
1584 CC C compiler command
1585 CFLAGS C compiler flags
1586 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1587 nonstandard directory <lib dir>
1588 LIBS libraries to pass to the linker, e.g. -l<library>
1589 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1590 you have headers in a nonstandard directory <include dir>
1592 PKG_CONFIG path to pkg-config utility
1594 directories to add to pkg-config's search path
1596 path overriding pkg-config's built-in search path
1598 Use these variables to override the choices made by `configure' or to help
1599 it to find libraries and programs with nonstandard names/locations.
1601 Report bugs to the package provider.
1606 if test "$ac_init_help" = "recursive"; then
1607 # If there are subdirs, report their specific --help.
1608 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1609 test -d "$ac_dir" ||
1610 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1615 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1617 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1618 # A ".." for each directory in $ac_dir_suffix.
1619 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1620 case $ac_top_builddir_sub in
1621 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1622 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1625 ac_abs_top_builddir=$ac_pwd
1626 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1627 # for backward compatibility:
1628 ac_top_builddir=$ac_top_build_prefix
1631 .) # We are building in place.
1633 ac_top_srcdir=$ac_top_builddir_sub
1634 ac_abs_top_srcdir=$ac_pwd ;;
1635 [\\/]* | ?:[\\/]* ) # Absolute name.
1636 ac_srcdir=$srcdir$ac_dir_suffix;
1637 ac_top_srcdir=$srcdir
1638 ac_abs_top_srcdir=$srcdir ;;
1640 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1641 ac_top_srcdir=$ac_top_build_prefix$srcdir
1642 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1644 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1646 cd "$ac_dir" || { ac_status=$?; continue; }
1647 # Check for guested configure.
1648 if test -f "$ac_srcdir/configure.gnu"; then
1650 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1651 elif test -f "$ac_srcdir/configure"; then
1653 $SHELL "$ac_srcdir/configure" --help=recursive
1655 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1657 cd "$ac_pwd" || { ac_status=$?; break; }
1661 test -n "$ac_init_help" && exit $ac_status
1662 if $ac_init_version; then
1665 generated by GNU Autoconf 2.69
1667 Copyright (C) 2012 Free Software Foundation, Inc.
1668 This configure script is free software; the Free Software Foundation
1669 gives unlimited permission to copy, distribute and modify it.
1674 ## ------------------------ ##
1675 ## Autoconf initialization. ##
1676 ## ------------------------ ##
1678 # ac_fn_c_try_compile LINENO
1679 # --------------------------
1680 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1681 ac_fn_c_try_compile ()
1683 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1684 rm -f conftest.$ac_objext
1685 if { { ac_try="$ac_compile"
1687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1688 *) ac_try_echo=$ac_try;;
1690 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1691 $as_echo "$ac_try_echo"; } >&5
1692 (eval "$ac_compile") 2>conftest.err
1694 if test -s conftest.err; then
1695 grep -v '^ *+' conftest.err >conftest.er1
1696 cat conftest.er1 >&5
1697 mv -f conftest.er1 conftest.err
1699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1700 test $ac_status = 0; } && {
1701 test -z "$ac_c_werror_flag" ||
1702 test ! -s conftest.err
1703 } && test -s conftest.$ac_objext; then :
1706 $as_echo "$as_me: failed program was:" >&5
1707 sed 's/^/| /' conftest.$ac_ext >&5
1711 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1712 as_fn_set_status $ac_retval
1714 } # ac_fn_c_try_compile
1716 # ac_fn_c_try_link LINENO
1717 # -----------------------
1718 # Try to link conftest.$ac_ext, and return whether this succeeded.
1721 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1722 rm -f conftest.$ac_objext conftest$ac_exeext
1723 if { { ac_try="$ac_link"
1725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1726 *) ac_try_echo=$ac_try;;
1728 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1729 $as_echo "$ac_try_echo"; } >&5
1730 (eval "$ac_link") 2>conftest.err
1732 if test -s conftest.err; then
1733 grep -v '^ *+' conftest.err >conftest.er1
1734 cat conftest.er1 >&5
1735 mv -f conftest.er1 conftest.err
1737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1738 test $ac_status = 0; } && {
1739 test -z "$ac_c_werror_flag" ||
1740 test ! -s conftest.err
1741 } && test -s conftest$ac_exeext && {
1742 test "$cross_compiling" = yes ||
1743 test -x conftest$ac_exeext
1747 $as_echo "$as_me: failed program was:" >&5
1748 sed 's/^/| /' conftest.$ac_ext >&5
1752 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1753 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1754 # interfere with the next link command; also delete a directory that is
1755 # left behind by Apple's compiler. We do this before executing the actions.
1756 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1757 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1758 as_fn_set_status $ac_retval
1760 } # ac_fn_c_try_link
1762 # ac_fn_c_try_cpp LINENO
1763 # ----------------------
1764 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1767 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768 if { { ac_try="$ac_cpp conftest.$ac_ext"
1770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1771 *) ac_try_echo=$ac_try;;
1773 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1774 $as_echo "$ac_try_echo"; } >&5
1775 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1777 if test -s conftest.err; then
1778 grep -v '^ *+' conftest.err >conftest.er1
1779 cat conftest.er1 >&5
1780 mv -f conftest.er1 conftest.err
1782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1783 test $ac_status = 0; } > conftest.i && {
1784 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1785 test ! -s conftest.err
1789 $as_echo "$as_me: failed program was:" >&5
1790 sed 's/^/| /' conftest.$ac_ext >&5
1794 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1795 as_fn_set_status $ac_retval
1799 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1800 # -------------------------------------------------------
1801 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1802 # the include files in INCLUDES and setting the cache variable VAR
1804 ac_fn_c_check_header_mongrel ()
1806 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1807 if eval \${$3+:} false; then :
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1809 $as_echo_n "checking for $2... " >&6; }
1810 if eval \${$3+:} false; then :
1811 $as_echo_n "(cached) " >&6
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1815 $as_echo "$ac_res" >&6; }
1817 # Is the header compilable?
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1819 $as_echo_n "checking $2 usability... " >&6; }
1820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1821 /* end confdefs.h. */
1825 if ac_fn_c_try_compile "$LINENO"; then :
1826 ac_header_compiler=yes
1828 ac_header_compiler=no
1830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1832 $as_echo "$ac_header_compiler" >&6; }
1834 # Is the header present?
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1836 $as_echo_n "checking $2 presence... " >&6; }
1837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1838 /* end confdefs.h. */
1841 if ac_fn_c_try_cpp "$LINENO"; then :
1842 ac_header_preproc=yes
1844 ac_header_preproc=no
1846 rm -f conftest.err conftest.i conftest.$ac_ext
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1848 $as_echo "$ac_header_preproc" >&6; }
1850 # So? What about this header?
1851 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1854 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1856 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1860 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1862 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1864 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1866 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1868 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1872 $as_echo_n "checking for $2... " >&6; }
1873 if eval \${$3+:} false; then :
1874 $as_echo_n "(cached) " >&6
1876 eval "$3=\$ac_header_compiler"
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1880 $as_echo "$ac_res" >&6; }
1882 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1884 } # ac_fn_c_check_header_mongrel
1886 # ac_fn_c_try_run LINENO
1887 # ----------------------
1888 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1889 # that executables *can* be run.
1892 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1893 if { { ac_try="$ac_link"
1895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1896 *) ac_try_echo=$ac_try;;
1898 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1899 $as_echo "$ac_try_echo"; } >&5
1900 (eval "$ac_link") 2>&5
1902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1903 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1904 { { case "(($ac_try" in
1905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1906 *) ac_try_echo=$ac_try;;
1908 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1909 $as_echo "$ac_try_echo"; } >&5
1910 (eval "$ac_try") 2>&5
1912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1913 test $ac_status = 0; }; }; then :
1916 $as_echo "$as_me: program exited with status $ac_status" >&5
1917 $as_echo "$as_me: failed program was:" >&5
1918 sed 's/^/| /' conftest.$ac_ext >&5
1920 ac_retval=$ac_status
1922 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1923 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1924 as_fn_set_status $ac_retval
1928 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1929 # -------------------------------------------------------
1930 # Tests whether HEADER exists and can be compiled using the include files in
1931 # INCLUDES, setting the cache variable VAR accordingly.
1932 ac_fn_c_check_header_compile ()
1934 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1936 $as_echo_n "checking for $2... " >&6; }
1937 if eval \${$3+:} false; then :
1938 $as_echo_n "(cached) " >&6
1940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1941 /* end confdefs.h. */
1945 if ac_fn_c_try_compile "$LINENO"; then :
1950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1954 $as_echo "$ac_res" >&6; }
1955 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1957 } # ac_fn_c_check_header_compile
1959 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1960 # -------------------------------------------
1961 # Tests whether TYPE exists after having included INCLUDES, setting cache
1962 # variable VAR accordingly.
1963 ac_fn_c_check_type ()
1965 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1967 $as_echo_n "checking for $2... " >&6; }
1968 if eval \${$3+:} false; then :
1969 $as_echo_n "(cached) " >&6
1972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1973 /* end confdefs.h. */
1984 if ac_fn_c_try_compile "$LINENO"; then :
1985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1986 /* end confdefs.h. */
1997 if ac_fn_c_try_compile "$LINENO"; then :
2002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2008 $as_echo "$ac_res" >&6; }
2009 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2011 } # ac_fn_c_check_type
2013 # ac_fn_c_check_func LINENO FUNC VAR
2014 # ----------------------------------
2015 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2016 ac_fn_c_check_func ()
2018 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2020 $as_echo_n "checking for $2... " >&6; }
2021 if eval \${$3+:} false; then :
2022 $as_echo_n "(cached) " >&6
2024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2025 /* end confdefs.h. */
2026 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2027 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2028 #define $2 innocuous_$2
2030 /* System header to define __stub macros and hopefully few prototypes,
2031 which can conflict with char $2 (); below.
2032 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2033 <limits.h> exists even on freestanding compilers. */
2036 # include <limits.h>
2038 # include <assert.h>
2043 /* Override any GCC internal prototype to avoid an error.
2044 Use char because int might match the return type of a GCC
2045 builtin and then its argument prototype would still apply. */
2050 /* The GNU C library defines this for functions which it implements
2051 to always fail with ENOSYS. Some functions are actually named
2052 something starting with __ and the normal name is an alias. */
2053 #if defined __stub_$2 || defined __stub___$2
2065 if ac_fn_c_try_link "$LINENO"; then :
2070 rm -f core conftest.err conftest.$ac_objext \
2071 conftest$ac_exeext conftest.$ac_ext
2074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2075 $as_echo "$ac_res" >&6; }
2076 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2078 } # ac_fn_c_check_func
2080 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2081 # ---------------------------------------------
2082 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2084 ac_fn_c_check_decl ()
2086 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2087 as_decl_name=`echo $2|sed 's/ *(.*//'`
2088 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2090 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2091 if eval \${$3+:} false; then :
2092 $as_echo_n "(cached) " >&6
2094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2095 /* end confdefs.h. */
2100 #ifndef $as_decl_name
2102 (void) $as_decl_use;
2104 (void) $as_decl_name;
2112 if ac_fn_c_try_compile "$LINENO"; then :
2117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2121 $as_echo "$ac_res" >&6; }
2122 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2124 } # ac_fn_c_check_decl
2126 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2127 # --------------------------------------------
2128 # Tries to find the compile-time value of EXPR in a program that includes
2129 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2131 ac_fn_c_compute_int ()
2133 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2134 if test "$cross_compiling" = yes; then
2135 # Depending upon the size, compute the lo and hi bounds.
2136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2137 /* end confdefs.h. */
2142 static int test_array [1 - 2 * !(($2) >= 0)];
2144 return test_array [0];
2150 if ac_fn_c_try_compile "$LINENO"; then :
2153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2154 /* end confdefs.h. */
2159 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2161 return test_array [0];
2167 if ac_fn_c_try_compile "$LINENO"; then :
2168 ac_hi=$ac_mid; break
2170 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2171 if test $ac_lo -le $ac_mid; then
2175 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2181 /* end confdefs.h. */
2186 static int test_array [1 - 2 * !(($2) < 0)];
2188 return test_array [0];
2194 if ac_fn_c_try_compile "$LINENO"; then :
2197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2198 /* end confdefs.h. */
2203 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2205 return test_array [0];
2211 if ac_fn_c_try_compile "$LINENO"; then :
2212 ac_lo=$ac_mid; break
2214 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2215 if test $ac_mid -le $ac_hi; then
2219 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2229 # Binary search between lo and hi bounds.
2230 while test "x$ac_lo" != "x$ac_hi"; do
2231 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2233 /* end confdefs.h. */
2238 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2240 return test_array [0];
2246 if ac_fn_c_try_compile "$LINENO"; then :
2249 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2254 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2259 /* end confdefs.h. */
2261 static long int longval () { return $2; }
2262 static unsigned long int ulongval () { return $2; }
2269 FILE *f = fopen ("conftest.val", "w");
2274 long int i = longval ();
2277 fprintf (f, "%ld", i);
2281 unsigned long int i = ulongval ();
2284 fprintf (f, "%lu", i);
2286 /* Do not output a trailing newline, as this causes \r\n confusion
2287 on some platforms. */
2288 return ferror (f) || fclose (f) != 0;
2294 if ac_fn_c_try_run "$LINENO"; then :
2295 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2299 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2300 conftest.$ac_objext conftest.beam conftest.$ac_ext
2304 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2305 as_fn_set_status $ac_retval
2307 } # ac_fn_c_compute_int
2309 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2310 # ----------------------------------------------------
2311 # Tries to find if the field MEMBER exists in type AGGR, after including
2312 # INCLUDES, setting cache variable VAR accordingly.
2313 ac_fn_c_check_member ()
2315 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2317 $as_echo_n "checking for $2.$3... " >&6; }
2318 if eval \${$4+:} false; then :
2319 $as_echo_n "(cached) " >&6
2321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2322 /* end confdefs.h. */
2334 if ac_fn_c_try_compile "$LINENO"; then :
2337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2338 /* end confdefs.h. */
2344 if (sizeof ac_aggr.$3)
2350 if ac_fn_c_try_compile "$LINENO"; then :
2355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2361 $as_echo "$ac_res" >&6; }
2362 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2364 } # ac_fn_c_check_member
2365 cat >config.log <<_ACEOF
2366 This file contains any messages produced by compilers while
2367 running configure, to aid debugging if configure makes a mistake.
2369 It was created by $as_me, which was
2370 generated by GNU Autoconf 2.69. Invocation command line was
2382 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2383 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2384 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2385 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2386 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2388 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2389 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2391 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2392 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2393 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2394 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2395 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2396 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2397 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2405 test -z "$as_dir" && as_dir=.
2406 $as_echo "PATH: $as_dir"
2422 # Keep a trace of the command line.
2423 # Strip out --no-create and --no-recursion so they do not pile up.
2424 # Strip out --silent because we don't want to record it for future runs.
2425 # Also quote any args containing shell meta-characters.
2426 # Make two passes to allow for proper duplicate-argument suppression.
2430 ac_must_keep_next=false
2436 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2437 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2438 | -silent | --silent | --silen | --sile | --sil)
2441 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2444 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2446 as_fn_append ac_configure_args1 " '$ac_arg'"
2447 if test $ac_must_keep_next = true; then
2448 ac_must_keep_next=false # Got value, back to normal.
2451 *=* | --config-cache | -C | -disable-* | --disable-* \
2452 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2453 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2454 | -with-* | --with-* | -without-* | --without-* | --x)
2455 case "$ac_configure_args0 " in
2456 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2459 -* ) ac_must_keep_next=true ;;
2462 as_fn_append ac_configure_args " '$ac_arg'"
2467 { ac_configure_args0=; unset ac_configure_args0;}
2468 { ac_configure_args1=; unset ac_configure_args1;}
2470 # When interrupted or exit'd, cleanup temporary files, and complete
2471 # config.log. We remove comments because anyway the quotes in there
2472 # would cause problems or look ugly.
2473 # WARNING: Use '\'' to represent an apostrophe within the trap.
2474 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2475 trap 'exit_status=$?
2476 # Save into config.log some information that might help in debugging.
2480 $as_echo "## ---------------- ##
2481 ## Cache variables. ##
2482 ## ---------------- ##"
2484 # The following way of writing the cache mishandles newlines in values,
2486 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2487 eval ac_val=\$$ac_var
2491 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2492 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2495 _ | IFS | as_nl) ;; #(
2496 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2497 *) { eval $ac_var=; unset $ac_var;} ;;
2502 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2503 *${as_nl}ac_space=\ *)
2505 "s/'\''/'\''\\\\'\'''\''/g;
2506 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2509 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2516 $as_echo "## ----------------- ##
2517 ## Output variables. ##
2518 ## ----------------- ##"
2520 for ac_var in $ac_subst_vars
2522 eval ac_val=\$$ac_var
2524 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2526 $as_echo "$ac_var='\''$ac_val'\''"
2530 if test -n "$ac_subst_files"; then
2531 $as_echo "## ------------------- ##
2532 ## File substitutions. ##
2533 ## ------------------- ##"
2535 for ac_var in $ac_subst_files
2537 eval ac_val=\$$ac_var
2539 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2541 $as_echo "$ac_var='\''$ac_val'\''"
2546 if test -s confdefs.h; then
2547 $as_echo "## ----------- ##
2554 test "$ac_signal" != 0 &&
2555 $as_echo "$as_me: caught signal $ac_signal"
2556 $as_echo "$as_me: exit $exit_status"
2558 rm -f core *.core core.conftest.* &&
2559 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2562 for ac_signal in 1 2 13 15; do
2563 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2567 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2568 rm -f -r conftest* confdefs.h
2570 $as_echo "/* confdefs.h */" > confdefs.h
2572 # Predefined preprocessor variables.
2574 cat >>confdefs.h <<_ACEOF
2575 #define PACKAGE_NAME "$PACKAGE_NAME"
2578 cat >>confdefs.h <<_ACEOF
2579 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2582 cat >>confdefs.h <<_ACEOF
2583 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2586 cat >>confdefs.h <<_ACEOF
2587 #define PACKAGE_STRING "$PACKAGE_STRING"
2590 cat >>confdefs.h <<_ACEOF
2591 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2594 cat >>confdefs.h <<_ACEOF
2595 #define PACKAGE_URL "$PACKAGE_URL"
2599 # Let the site file select an alternate cache file if it wants to.
2600 # Prefer an explicitly selected file to automatically selected ones.
2603 if test -n "$CONFIG_SITE"; then
2604 # We do not want a PATH search for config.site.
2605 case $CONFIG_SITE in #((
2606 -*) ac_site_file1=./$CONFIG_SITE;;
2607 */*) ac_site_file1=$CONFIG_SITE;;
2608 *) ac_site_file1=./$CONFIG_SITE;;
2610 elif test "x$prefix" != xNONE; then
2611 ac_site_file1=$prefix/share/config.site
2612 ac_site_file2=$prefix/etc/config.site
2614 ac_site_file1=$ac_default_prefix/share/config.site
2615 ac_site_file2=$ac_default_prefix/etc/config.site
2617 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2619 test "x$ac_site_file" = xNONE && continue
2620 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2622 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2623 sed 's/^/| /' "$ac_site_file" >&5
2625 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2626 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2627 as_fn_error $? "failed to load site script $ac_site_file
2628 See \`config.log' for more details" "$LINENO" 5; }
2632 if test -r "$cache_file"; then
2633 # Some versions of bash will fail to source /dev/null (special files
2634 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2635 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2637 $as_echo "$as_me: loading cache $cache_file" >&6;}
2639 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2640 *) . "./$cache_file";;
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2645 $as_echo "$as_me: creating cache $cache_file" >&6;}
2649 gt_needs="$gt_needs "
2650 as_fn_append ac_header_list " stdlib.h"
2651 as_fn_append ac_header_list " unistd.h"
2652 as_fn_append ac_header_list " sys/param.h"
2653 as_fn_append ac_func_list " symlink"
2654 # Check that the precious variables saved in the cache have kept the same
2656 ac_cache_corrupted=false
2657 for ac_var in $ac_precious_vars; do
2658 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2659 eval ac_new_set=\$ac_env_${ac_var}_set
2660 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2661 eval ac_new_val=\$ac_env_${ac_var}_value
2662 case $ac_old_set,$ac_new_set in
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2665 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2666 ac_cache_corrupted=: ;;
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2669 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2670 ac_cache_corrupted=: ;;
2673 if test "x$ac_old_val" != "x$ac_new_val"; then
2674 # differences in whitespace do not lead to failure.
2675 ac_old_val_w=`echo x $ac_old_val`
2676 ac_new_val_w=`echo x $ac_new_val`
2677 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2679 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2680 ac_cache_corrupted=:
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2683 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2684 eval $ac_var=\$ac_old_val
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2687 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2689 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2692 # Pass precious variables to config.status.
2693 if test "$ac_new_set" = set; then
2695 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2696 *) ac_arg=$ac_var=$ac_new_val ;;
2698 case " $ac_configure_args " in
2699 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2700 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2704 if $ac_cache_corrupted; then
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2706 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2708 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2709 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2711 ## -------------------- ##
2712 ## Main body of script. ##
2713 ## -------------------- ##
2716 ac_cpp='$CPP $CPPFLAGS'
2717 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2718 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2719 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2724 for ac_dir in config "$srcdir"/config; do
2725 if test -f "$ac_dir/install-sh"; then
2727 ac_install_sh="$ac_aux_dir/install-sh -c"
2729 elif test -f "$ac_dir/install.sh"; then
2731 ac_install_sh="$ac_aux_dir/install.sh -c"
2733 elif test -f "$ac_dir/shtool"; then
2735 ac_install_sh="$ac_aux_dir/shtool install -c"
2739 if test -z "$ac_aux_dir"; then
2740 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2743 # These three variables are undocumented and unsupported,
2744 # and are intended to be withdrawn in a future Autoconf release.
2745 # They can cause serious problems if a builder's source tree is in a directory
2746 # whose full name contains unusual characters.
2747 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2748 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2749 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2752 ac_config_headers="$ac_config_headers lib/config.h"
2758 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
2759 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2760 DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2762 E2FSPROGS_DAY=$(echo $DATE | awk -F- '{print $1}' | sed -e '/^[1-9]$/s/^/0/')
2763 MONTH=`echo $DATE | awk -F- '{print $2}'`
2764 YEAR=`echo $DATE | awk -F- '{print $3}'`
2766 if expr $YEAR ">" 1900 > /dev/null ; then
2767 E2FSPROGS_YEAR=$YEAR
2768 elif expr $YEAR ">" 90 >/dev/null ; then
2769 E2FSPROGS_YEAR=19$YEAR
2771 E2FSPROGS_YEAR=20$YEAR
2775 Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2776 Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2777 Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2778 Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2779 May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2780 Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2781 Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2782 Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2783 Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2784 Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2785 Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2786 Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
2787 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
2788 $as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
2791 base_ver=`echo $E2FSPROGS_VERSION | \
2792 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
2794 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2796 case $E2FSPROGS_VERSION in
2798 E2FSPROGS_PKGVER="$base_ver~WIP.$date_spec"
2801 E2FSPROGS_PKGVER="$base_ver"
2805 unset DATE MONTH YEAR base_ver pre_vers date_spec
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
2807 $as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
2809 $as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
2817 # Check whether --with-diet-libc was given.
2818 if test "${with_diet_libc+set}" = set; then :
2819 withval=$with_diet_libc; CC="diet cc -nostdinc"
2825 LIBS="$LIBS -lcompat"
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
2828 $as_echo "CC=$CC" >&6; }
2830 # Make sure we can run config.sub.
2831 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2832 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2835 $as_echo_n "checking build system type... " >&6; }
2836 if ${ac_cv_build+:} false; then :
2837 $as_echo_n "(cached) " >&6
2839 ac_build_alias=$build_alias
2840 test "x$ac_build_alias" = x &&
2841 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2842 test "x$ac_build_alias" = x &&
2843 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2844 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2845 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2849 $as_echo "$ac_cv_build" >&6; }
2850 case $ac_cv_build in
2852 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2855 ac_save_IFS=$IFS; IFS='-'
2861 # Remember, the first character of IFS is used to create $*,
2862 # except with old shells:
2865 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2869 $as_echo_n "checking host system type... " >&6; }
2870 if ${ac_cv_host+:} false; then :
2871 $as_echo_n "(cached) " >&6
2873 if test "x$host_alias" = x; then
2874 ac_cv_host=$ac_cv_build
2876 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2877 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2882 $as_echo "$ac_cv_host" >&6; }
2885 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2888 ac_save_IFS=$IFS; IFS='-'
2894 # Remember, the first character of IFS is used to create $*,
2895 # except with old shells:
2898 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2903 ac_cpp='$CPP $CPPFLAGS'
2904 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2905 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2906 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2907 if test -n "$ac_tool_prefix"; then
2908 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2909 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2911 $as_echo_n "checking for $ac_word... " >&6; }
2912 if ${ac_cv_prog_CC+:} false; then :
2913 $as_echo_n "(cached) " >&6
2915 if test -n "$CC"; then
2916 ac_cv_prog_CC="$CC" # Let the user override the test.
2918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2922 test -z "$as_dir" && as_dir=.
2923 for ac_exec_ext in '' $ac_executable_extensions; do
2924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2925 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2936 if test -n "$CC"; then
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2938 $as_echo "$CC" >&6; }
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2941 $as_echo "no" >&6; }
2946 if test -z "$ac_cv_prog_CC"; then
2948 # Extract the first word of "gcc", so it can be a program name with args.
2949 set dummy gcc; ac_word=$2
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2951 $as_echo_n "checking for $ac_word... " >&6; }
2952 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2953 $as_echo_n "(cached) " >&6
2955 if test -n "$ac_ct_CC"; then
2956 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2962 test -z "$as_dir" && as_dir=.
2963 for ac_exec_ext in '' $ac_executable_extensions; do
2964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2965 ac_cv_prog_ac_ct_CC="gcc"
2966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2975 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2976 if test -n "$ac_ct_CC"; then
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2978 $as_echo "$ac_ct_CC" >&6; }
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2981 $as_echo "no" >&6; }
2984 if test "x$ac_ct_CC" = x; then
2987 case $cross_compiling:$ac_tool_warned in
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2990 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2991 ac_tool_warned=yes ;;
2999 if test -z "$CC"; then
3000 if test -n "$ac_tool_prefix"; then
3001 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3002 set dummy ${ac_tool_prefix}cc; ac_word=$2
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3004 $as_echo_n "checking for $ac_word... " >&6; }
3005 if ${ac_cv_prog_CC+:} false; then :
3006 $as_echo_n "(cached) " >&6
3008 if test -n "$CC"; then
3009 ac_cv_prog_CC="$CC" # Let the user override the test.
3011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3015 test -z "$as_dir" && as_dir=.
3016 for ac_exec_ext in '' $ac_executable_extensions; do
3017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3018 ac_cv_prog_CC="${ac_tool_prefix}cc"
3019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3029 if test -n "$CC"; then
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3031 $as_echo "$CC" >&6; }
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3034 $as_echo "no" >&6; }
3040 if test -z "$CC"; then
3041 # Extract the first word of "cc", so it can be a program name with args.
3042 set dummy cc; ac_word=$2
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3044 $as_echo_n "checking for $ac_word... " >&6; }
3045 if ${ac_cv_prog_CC+:} false; then :
3046 $as_echo_n "(cached) " >&6
3048 if test -n "$CC"; then
3049 ac_cv_prog_CC="$CC" # Let the user override the test.
3052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3056 test -z "$as_dir" && as_dir=.
3057 for ac_exec_ext in '' $ac_executable_extensions; do
3058 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3059 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3060 ac_prog_rejected=yes
3064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3071 if test $ac_prog_rejected = yes; then
3072 # We found a bogon in the path, so make sure we never use it.
3073 set dummy $ac_cv_prog_CC
3075 if test $# != 0; then
3076 # We chose a different compiler from the bogus one.
3077 # However, it has the same basename, so the bogon will be chosen
3078 # first if we set CC to just the basename; use the full file name.
3080 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3086 if test -n "$CC"; then
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3088 $as_echo "$CC" >&6; }
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3091 $as_echo "no" >&6; }
3096 if test -z "$CC"; then
3097 if test -n "$ac_tool_prefix"; then
3098 for ac_prog in cl.exe
3100 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3101 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3103 $as_echo_n "checking for $ac_word... " >&6; }
3104 if ${ac_cv_prog_CC+:} false; then :
3105 $as_echo_n "(cached) " >&6
3107 if test -n "$CC"; then
3108 ac_cv_prog_CC="$CC" # Let the user override the test.
3110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3114 test -z "$as_dir" && as_dir=.
3115 for ac_exec_ext in '' $ac_executable_extensions; do
3116 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3117 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3128 if test -n "$CC"; then
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3130 $as_echo "$CC" >&6; }
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3133 $as_echo "no" >&6; }
3137 test -n "$CC" && break
3140 if test -z "$CC"; then
3142 for ac_prog in cl.exe
3144 # Extract the first word of "$ac_prog", so it can be a program name with args.
3145 set dummy $ac_prog; ac_word=$2
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3147 $as_echo_n "checking for $ac_word... " >&6; }
3148 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3149 $as_echo_n "(cached) " >&6
3151 if test -n "$ac_ct_CC"; then
3152 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3158 test -z "$as_dir" && as_dir=.
3159 for ac_exec_ext in '' $ac_executable_extensions; do
3160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3161 ac_cv_prog_ac_ct_CC="$ac_prog"
3162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3171 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3172 if test -n "$ac_ct_CC"; then
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3174 $as_echo "$ac_ct_CC" >&6; }
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3177 $as_echo "no" >&6; }
3181 test -n "$ac_ct_CC" && break
3184 if test "x$ac_ct_CC" = x; then
3187 case $cross_compiling:$ac_tool_warned in
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3190 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3191 ac_tool_warned=yes ;;
3200 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3201 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3202 as_fn_error $? "no acceptable C compiler found in \$PATH
3203 See \`config.log' for more details" "$LINENO" 5; }
3205 # Provide some information about the compiler.
3206 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3209 for ac_option in --version -v -V -qversion; do
3210 { { ac_try="$ac_compiler $ac_option >&5"
3212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3213 *) ac_try_echo=$ac_try;;
3215 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3216 $as_echo "$ac_try_echo"; } >&5
3217 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3219 if test -s conftest.err; then
3221 ... rest of stderr output deleted ...
3222 10q' conftest.err >conftest.er1
3223 cat conftest.er1 >&5
3225 rm -f conftest.er1 conftest.err
3226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3227 test $ac_status = 0; }
3230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3231 /* end confdefs.h. */
3241 ac_clean_files_save=$ac_clean_files
3242 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3243 # Try to create an executable without -o first, disregard a.out.
3244 # It will help us diagnose broken compilers, and finding out an intuition
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3247 $as_echo_n "checking whether the C compiler works... " >&6; }
3248 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3250 # The possible output files:
3251 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3254 for ac_file in $ac_files
3257 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3258 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3263 if { { ac_try="$ac_link_default"
3265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3266 *) ac_try_echo=$ac_try;;
3268 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3269 $as_echo "$ac_try_echo"; } >&5
3270 (eval "$ac_link_default") 2>&5
3272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3273 test $ac_status = 0; }; then :
3274 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3275 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3276 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3277 # so that the user can short-circuit this test for compilers unknown to
3279 for ac_file in $ac_files ''
3281 test -f "$ac_file" || continue
3283 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3286 # We found the default executable, but exeext='' is most
3290 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3292 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3294 # We set ac_cv_exeext here because the later test for it is not
3295 # safe: cross compilers may not add the suffix if given an `-o'
3296 # argument, so we may need to know it at that point already.
3297 # Even if this section looks crufty: it has the advantage of
3304 test "$ac_cv_exeext" = no && ac_cv_exeext=
3309 if test -z "$ac_file"; then :
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3311 $as_echo "no" >&6; }
3312 $as_echo "$as_me: failed program was:" >&5
3313 sed 's/^/| /' conftest.$ac_ext >&5
3315 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3316 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3317 as_fn_error 77 "C compiler cannot create executables
3318 See \`config.log' for more details" "$LINENO" 5; }
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3321 $as_echo "yes" >&6; }
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3324 $as_echo_n "checking for C compiler default output file name... " >&6; }
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3326 $as_echo "$ac_file" >&6; }
3327 ac_exeext=$ac_cv_exeext
3329 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3330 ac_clean_files=$ac_clean_files_save
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3332 $as_echo_n "checking for suffix of executables... " >&6; }
3333 if { { ac_try="$ac_link"
3335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3336 *) ac_try_echo=$ac_try;;
3338 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3339 $as_echo "$ac_try_echo"; } >&5
3340 (eval "$ac_link") 2>&5
3342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3343 test $ac_status = 0; }; then :
3344 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3345 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3346 # work properly (i.e., refer to `conftest.exe'), while it won't with
3348 for ac_file in conftest.exe conftest conftest.*; do
3349 test -f "$ac_file" || continue
3351 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3352 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3358 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3359 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3360 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3361 See \`config.log' for more details" "$LINENO" 5; }
3363 rm -f conftest conftest$ac_cv_exeext
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3365 $as_echo "$ac_cv_exeext" >&6; }
3367 rm -f conftest.$ac_ext
3368 EXEEXT=$ac_cv_exeext
3370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3371 /* end confdefs.h. */
3376 FILE *f = fopen ("conftest.out", "w");
3377 return ferror (f) || fclose (f) != 0;
3383 ac_clean_files="$ac_clean_files conftest.out"
3384 # Check that the compiler produces executables we can run. If not, either
3385 # the compiler is broken, or we cross compile.
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3387 $as_echo_n "checking whether we are cross compiling... " >&6; }
3388 if test "$cross_compiling" != yes; then
3389 { { ac_try="$ac_link"
3391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3392 *) ac_try_echo=$ac_try;;
3394 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3395 $as_echo "$ac_try_echo"; } >&5
3396 (eval "$ac_link") 2>&5
3398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3399 test $ac_status = 0; }
3400 if { ac_try='./conftest$ac_cv_exeext'
3401 { { case "(($ac_try" in
3402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3403 *) ac_try_echo=$ac_try;;
3405 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3406 $as_echo "$ac_try_echo"; } >&5
3407 (eval "$ac_try") 2>&5
3409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3410 test $ac_status = 0; }; }; then
3413 if test "$cross_compiling" = maybe; then
3416 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3417 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3418 as_fn_error $? "cannot run C compiled programs.
3419 If you meant to cross compile, use \`--host'.
3420 See \`config.log' for more details" "$LINENO" 5; }
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3425 $as_echo "$cross_compiling" >&6; }
3427 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3428 ac_clean_files=$ac_clean_files_save
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3430 $as_echo_n "checking for suffix of object files... " >&6; }
3431 if ${ac_cv_objext+:} false; then :
3432 $as_echo_n "(cached) " >&6
3434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3435 /* end confdefs.h. */
3445 rm -f conftest.o conftest.obj
3446 if { { ac_try="$ac_compile"
3448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3449 *) ac_try_echo=$ac_try;;
3451 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3452 $as_echo "$ac_try_echo"; } >&5
3453 (eval "$ac_compile") 2>&5
3455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3456 test $ac_status = 0; }; then :
3457 for ac_file in conftest.o conftest.obj conftest.*; do
3458 test -f "$ac_file" || continue;
3460 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3461 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3466 $as_echo "$as_me: failed program was:" >&5
3467 sed 's/^/| /' conftest.$ac_ext >&5
3469 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3470 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3471 as_fn_error $? "cannot compute suffix of object files: cannot compile
3472 See \`config.log' for more details" "$LINENO" 5; }
3474 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3477 $as_echo "$ac_cv_objext" >&6; }
3478 OBJEXT=$ac_cv_objext
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3481 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3482 if ${ac_cv_c_compiler_gnu+:} false; then :
3483 $as_echo_n "(cached) " >&6
3485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3486 /* end confdefs.h. */
3499 if ac_fn_c_try_compile "$LINENO"; then :
3504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3505 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3509 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3510 if test $ac_compiler_gnu = yes; then
3515 ac_test_CFLAGS=${CFLAGS+set}
3516 ac_save_CFLAGS=$CFLAGS
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3518 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3519 if ${ac_cv_prog_cc_g+:} false; then :
3520 $as_echo_n "(cached) " >&6
3522 ac_save_c_werror_flag=$ac_c_werror_flag
3523 ac_c_werror_flag=yes
3526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3527 /* end confdefs.h. */
3537 if ac_fn_c_try_compile "$LINENO"; then :
3541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3542 /* end confdefs.h. */
3552 if ac_fn_c_try_compile "$LINENO"; then :
3555 ac_c_werror_flag=$ac_save_c_werror_flag
3557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3558 /* end confdefs.h. */
3568 if ac_fn_c_try_compile "$LINENO"; then :
3571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3576 ac_c_werror_flag=$ac_save_c_werror_flag
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3579 $as_echo "$ac_cv_prog_cc_g" >&6; }
3580 if test "$ac_test_CFLAGS" = set; then
3581 CFLAGS=$ac_save_CFLAGS
3582 elif test $ac_cv_prog_cc_g = yes; then
3583 if test "$GCC" = yes; then
3589 if test "$GCC" = yes; then
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3596 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3597 if ${ac_cv_prog_cc_c89+:} false; then :
3598 $as_echo_n "(cached) " >&6
3600 ac_cv_prog_cc_c89=no
3602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3603 /* end confdefs.h. */
3607 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3608 struct buf { int x; };
3609 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3610 static char *e (p, i)
3616 static char *f (char * (*g) (char **, int), char **p, ...)
3621 s = g (p, va_arg (v,int));
3626 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3627 function prototypes and stuff, but not '\xHH' hex character constants.
3628 These don't provoke an error unfortunately, instead are silently treated
3629 as 'x'. The following induces an error, until -std is added to get
3630 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3631 array size at least. It's necessary to write '\x00'==0 to get something
3632 that's true only with -std. */
3633 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3635 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3636 inside strings and character constants. */
3638 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3640 int test (int i, double x);
3641 struct s1 {int (*f) (int a);};
3642 struct s2 {int (*f) (double a);};
3643 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3649 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3654 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3655 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3657 CC="$ac_save_CC $ac_arg"
3658 if ac_fn_c_try_compile "$LINENO"; then :
3659 ac_cv_prog_cc_c89=$ac_arg
3661 rm -f core conftest.err conftest.$ac_objext
3662 test "x$ac_cv_prog_cc_c89" != "xno" && break
3664 rm -f conftest.$ac_ext
3669 case "x$ac_cv_prog_cc_c89" in
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3672 $as_echo "none needed" >&6; } ;;
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3675 $as_echo "unsupported" >&6; } ;;
3677 CC="$CC $ac_cv_prog_cc_c89"
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3679 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3681 if test "x$ac_cv_prog_cc_c89" != xno; then :
3686 ac_cpp='$CPP $CPPFLAGS'
3687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3693 $as_echo_n "checking for dlopen in -ldl... " >&6; }
3694 if ${ac_cv_lib_dl_dlopen+:} false; then :
3695 $as_echo_n "(cached) " >&6
3697 ac_check_lib_save_LIBS=$LIBS
3699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3700 /* end confdefs.h. */
3702 /* Override any GCC internal prototype to avoid an error.
3703 Use char because int might match the return type of a GCC
3704 builtin and then its argument prototype would still apply. */
3717 if ac_fn_c_try_link "$LINENO"; then :
3718 ac_cv_lib_dl_dlopen=yes
3720 ac_cv_lib_dl_dlopen=no
3722 rm -f core conftest.err conftest.$ac_objext \
3723 conftest$ac_exeext conftest.$ac_ext
3724 LIBS=$ac_check_lib_save_LIBS
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3727 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
3728 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
3734 # Check whether --with-cc was given.
3735 if test "${with_cc+set}" = set; then :
3736 withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5
3740 # Check whether --with-ccopts was given.
3741 if test "${with_ccopts+set}" = set; then :
3742 withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
3746 # Check whether --with-ldopts was given.
3747 if test "${with_ldopts+set}" = set; then :
3748 withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
3752 ac_cpp='$CPP $CPPFLAGS'
3753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3755 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3756 if test -n "$ac_tool_prefix"; then
3757 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3758 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3760 $as_echo_n "checking for $ac_word... " >&6; }
3761 if ${ac_cv_prog_CC+:} false; then :
3762 $as_echo_n "(cached) " >&6
3764 if test -n "$CC"; then
3765 ac_cv_prog_CC="$CC" # Let the user override the test.
3767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3771 test -z "$as_dir" && as_dir=.
3772 for ac_exec_ext in '' $ac_executable_extensions; do
3773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3774 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3785 if test -n "$CC"; then
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3787 $as_echo "$CC" >&6; }
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3790 $as_echo "no" >&6; }
3795 if test -z "$ac_cv_prog_CC"; then
3797 # Extract the first word of "gcc", so it can be a program name with args.
3798 set dummy gcc; ac_word=$2
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3800 $as_echo_n "checking for $ac_word... " >&6; }
3801 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3802 $as_echo_n "(cached) " >&6
3804 if test -n "$ac_ct_CC"; then
3805 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3811 test -z "$as_dir" && as_dir=.
3812 for ac_exec_ext in '' $ac_executable_extensions; do
3813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3814 ac_cv_prog_ac_ct_CC="gcc"
3815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3824 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3825 if test -n "$ac_ct_CC"; then
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3827 $as_echo "$ac_ct_CC" >&6; }
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3830 $as_echo "no" >&6; }
3833 if test "x$ac_ct_CC" = x; then
3836 case $cross_compiling:$ac_tool_warned in
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3839 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3840 ac_tool_warned=yes ;;
3848 if test -z "$CC"; then
3849 if test -n "$ac_tool_prefix"; then
3850 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3851 set dummy ${ac_tool_prefix}cc; ac_word=$2
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3853 $as_echo_n "checking for $ac_word... " >&6; }
3854 if ${ac_cv_prog_CC+:} false; then :
3855 $as_echo_n "(cached) " >&6
3857 if test -n "$CC"; then
3858 ac_cv_prog_CC="$CC" # Let the user override the test.
3860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3864 test -z "$as_dir" && as_dir=.
3865 for ac_exec_ext in '' $ac_executable_extensions; do
3866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3867 ac_cv_prog_CC="${ac_tool_prefix}cc"
3868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3878 if test -n "$CC"; then
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3880 $as_echo "$CC" >&6; }
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3883 $as_echo "no" >&6; }
3889 if test -z "$CC"; then
3890 # Extract the first word of "cc", so it can be a program name with args.
3891 set dummy cc; ac_word=$2
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3893 $as_echo_n "checking for $ac_word... " >&6; }
3894 if ${ac_cv_prog_CC+:} false; then :
3895 $as_echo_n "(cached) " >&6
3897 if test -n "$CC"; then
3898 ac_cv_prog_CC="$CC" # Let the user override the test.
3901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3905 test -z "$as_dir" && as_dir=.
3906 for ac_exec_ext in '' $ac_executable_extensions; do
3907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3908 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3909 ac_prog_rejected=yes
3913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3920 if test $ac_prog_rejected = yes; then
3921 # We found a bogon in the path, so make sure we never use it.
3922 set dummy $ac_cv_prog_CC
3924 if test $# != 0; then
3925 # We chose a different compiler from the bogus one.
3926 # However, it has the same basename, so the bogon will be chosen
3927 # first if we set CC to just the basename; use the full file name.
3929 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3935 if test -n "$CC"; then
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3937 $as_echo "$CC" >&6; }
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3940 $as_echo "no" >&6; }
3945 if test -z "$CC"; then
3946 if test -n "$ac_tool_prefix"; then
3947 for ac_prog in cl.exe
3949 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3950 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3952 $as_echo_n "checking for $ac_word... " >&6; }
3953 if ${ac_cv_prog_CC+:} false; then :
3954 $as_echo_n "(cached) " >&6
3956 if test -n "$CC"; then
3957 ac_cv_prog_CC="$CC" # Let the user override the test.
3959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3963 test -z "$as_dir" && as_dir=.
3964 for ac_exec_ext in '' $ac_executable_extensions; do
3965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3966 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3977 if test -n "$CC"; then
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3979 $as_echo "$CC" >&6; }
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3982 $as_echo "no" >&6; }
3986 test -n "$CC" && break
3989 if test -z "$CC"; then
3991 for ac_prog in cl.exe
3993 # Extract the first word of "$ac_prog", so it can be a program name with args.
3994 set dummy $ac_prog; ac_word=$2
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3996 $as_echo_n "checking for $ac_word... " >&6; }
3997 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3998 $as_echo_n "(cached) " >&6
4000 if test -n "$ac_ct_CC"; then
4001 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4007 test -z "$as_dir" && as_dir=.
4008 for ac_exec_ext in '' $ac_executable_extensions; do
4009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4010 ac_cv_prog_ac_ct_CC="$ac_prog"
4011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4020 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4021 if test -n "$ac_ct_CC"; then
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4023 $as_echo "$ac_ct_CC" >&6; }
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4026 $as_echo "no" >&6; }
4030 test -n "$ac_ct_CC" && break
4033 if test "x$ac_ct_CC" = x; then
4036 case $cross_compiling:$ac_tool_warned in
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4039 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4040 ac_tool_warned=yes ;;
4049 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4050 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4051 as_fn_error $? "no acceptable C compiler found in \$PATH
4052 See \`config.log' for more details" "$LINENO" 5; }
4054 # Provide some information about the compiler.
4055 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4058 for ac_option in --version -v -V -qversion; do
4059 { { ac_try="$ac_compiler $ac_option >&5"
4061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4062 *) ac_try_echo=$ac_try;;
4064 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4065 $as_echo "$ac_try_echo"; } >&5
4066 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4068 if test -s conftest.err; then
4070 ... rest of stderr output deleted ...
4071 10q' conftest.err >conftest.er1
4072 cat conftest.er1 >&5
4074 rm -f conftest.er1 conftest.err
4075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4076 test $ac_status = 0; }
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4080 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4081 if ${ac_cv_c_compiler_gnu+:} false; then :
4082 $as_echo_n "(cached) " >&6
4084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4085 /* end confdefs.h. */
4098 if ac_fn_c_try_compile "$LINENO"; then :
4103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4104 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4108 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4109 if test $ac_compiler_gnu = yes; then
4114 ac_test_CFLAGS=${CFLAGS+set}
4115 ac_save_CFLAGS=$CFLAGS
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4117 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4118 if ${ac_cv_prog_cc_g+:} false; then :
4119 $as_echo_n "(cached) " >&6
4121 ac_save_c_werror_flag=$ac_c_werror_flag
4122 ac_c_werror_flag=yes
4125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4126 /* end confdefs.h. */
4136 if ac_fn_c_try_compile "$LINENO"; then :
4140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4141 /* end confdefs.h. */
4151 if ac_fn_c_try_compile "$LINENO"; then :
4154 ac_c_werror_flag=$ac_save_c_werror_flag
4156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4157 /* end confdefs.h. */
4167 if ac_fn_c_try_compile "$LINENO"; then :
4170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4175 ac_c_werror_flag=$ac_save_c_werror_flag
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4178 $as_echo "$ac_cv_prog_cc_g" >&6; }
4179 if test "$ac_test_CFLAGS" = set; then
4180 CFLAGS=$ac_save_CFLAGS
4181 elif test $ac_cv_prog_cc_g = yes; then
4182 if test "$GCC" = yes; then
4188 if test "$GCC" = yes; then
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4195 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4196 if ${ac_cv_prog_cc_c89+:} false; then :
4197 $as_echo_n "(cached) " >&6
4199 ac_cv_prog_cc_c89=no
4201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4202 /* end confdefs.h. */
4206 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4207 struct buf { int x; };
4208 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4209 static char *e (p, i)
4215 static char *f (char * (*g) (char **, int), char **p, ...)
4220 s = g (p, va_arg (v,int));
4225 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4226 function prototypes and stuff, but not '\xHH' hex character constants.
4227 These don't provoke an error unfortunately, instead are silently treated
4228 as 'x'. The following induces an error, until -std is added to get
4229 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4230 array size at least. It's necessary to write '\x00'==0 to get something
4231 that's true only with -std. */
4232 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4234 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4235 inside strings and character constants. */
4237 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4239 int test (int i, double x);
4240 struct s1 {int (*f) (int a);};
4241 struct s2 {int (*f) (double a);};
4242 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4248 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4253 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4254 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4256 CC="$ac_save_CC $ac_arg"
4257 if ac_fn_c_try_compile "$LINENO"; then :
4258 ac_cv_prog_cc_c89=$ac_arg
4260 rm -f core conftest.err conftest.$ac_objext
4261 test "x$ac_cv_prog_cc_c89" != "xno" && break
4263 rm -f conftest.$ac_ext
4268 case "x$ac_cv_prog_cc_c89" in
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4271 $as_echo "none needed" >&6; } ;;
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4274 $as_echo "unsupported" >&6; } ;;
4276 CC="$CC $ac_cv_prog_cc_c89"
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4278 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4280 if test "x$ac_cv_prog_cc_c89" != xno; then :
4285 ac_cpp='$CPP $CPPFLAGS'
4286 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4287 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4290 if test "$GCC" = yes; then
4291 RDYNAMIC="-rdynamic"
4295 ac_cpp='$CPP $CPPFLAGS'
4296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4300 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4301 # On Suns, sometimes $CPP names a directory.
4302 if test -n "$CPP" && test -d "$CPP"; then
4305 if test -z "$CPP"; then
4306 if ${ac_cv_prog_CPP+:} false; then :
4307 $as_echo_n "(cached) " >&6
4309 # Double quotes because CPP needs to be expanded
4310 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4313 for ac_c_preproc_warn_flag in '' yes
4315 # Use a header file that comes with gcc, so configuring glibc
4316 # with a fresh cross-compiler works.
4317 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4318 # <limits.h> exists even on freestanding compilers.
4319 # On the NeXT, cc -E runs the code through the compiler's parser,
4320 # not just through cpp. "Syntax error" is here to catch this case.
4321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4322 /* end confdefs.h. */
4324 # include <limits.h>
4326 # include <assert.h>
4330 if ac_fn_c_try_cpp "$LINENO"; then :
4333 # Broken: fails on valid input.
4336 rm -f conftest.err conftest.i conftest.$ac_ext
4338 # OK, works on sane cases. Now check whether nonexistent headers
4339 # can be detected and how.
4340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4341 /* end confdefs.h. */
4342 #include <ac_nonexistent.h>
4344 if ac_fn_c_try_cpp "$LINENO"; then :
4345 # Broken: success on invalid input.
4348 # Passes both tests.
4352 rm -f conftest.err conftest.i conftest.$ac_ext
4355 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4356 rm -f conftest.i conftest.err conftest.$ac_ext
4357 if $ac_preproc_ok; then :
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4370 $as_echo "$CPP" >&6; }
4372 for ac_c_preproc_warn_flag in '' yes
4374 # Use a header file that comes with gcc, so configuring glibc
4375 # with a fresh cross-compiler works.
4376 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4377 # <limits.h> exists even on freestanding compilers.
4378 # On the NeXT, cc -E runs the code through the compiler's parser,
4379 # not just through cpp. "Syntax error" is here to catch this case.
4380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4381 /* end confdefs.h. */
4383 # include <limits.h>
4385 # include <assert.h>
4389 if ac_fn_c_try_cpp "$LINENO"; then :
4392 # Broken: fails on valid input.
4395 rm -f conftest.err conftest.i conftest.$ac_ext
4397 # OK, works on sane cases. Now check whether nonexistent headers
4398 # can be detected and how.
4399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4400 /* end confdefs.h. */
4401 #include <ac_nonexistent.h>
4403 if ac_fn_c_try_cpp "$LINENO"; then :
4404 # Broken: success on invalid input.
4407 # Passes both tests.
4411 rm -f conftest.err conftest.i conftest.$ac_ext
4414 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4415 rm -f conftest.i conftest.err conftest.$ac_ext
4416 if $ac_preproc_ok; then :
4419 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4420 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4421 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4422 See \`config.log' for more details" "$LINENO" 5; }
4426 ac_cpp='$CPP $CPPFLAGS'
4427 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4428 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4429 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
4432 $as_echo_n "checking for additional special compiler flags... " >&6; }
4433 if test "$GCC" = yes
4436 alpha) addcflags="-mieee" ;;
4439 if test "x$addcflags" != x
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
4442 $as_echo "$addcflags" >&6; }
4443 CFLAGS="$addcflags $CFLAGS"
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
4446 $as_echo "(none)" >&6; }
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4450 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4451 if ${ac_cv_path_GREP+:} false; then :
4452 $as_echo_n "(cached) " >&6
4454 if test -z "$GREP"; then
4455 ac_path_GREP_found=false
4456 # Loop through the user's path and test for each of PROGNAME-LIST
4457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4458 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4461 test -z "$as_dir" && as_dir=.
4462 for ac_prog in grep ggrep; do
4463 for ac_exec_ext in '' $ac_executable_extensions; do
4464 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4465 as_fn_executable_p "$ac_path_GREP" || continue
4466 # Check for GNU ac_path_GREP and select it if it is found.
4467 # Check for GNU $ac_path_GREP
4468 case `"$ac_path_GREP" --version 2>&1` in
4470 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4473 $as_echo_n 0123456789 >"conftest.in"
4476 cat "conftest.in" "conftest.in" >"conftest.tmp"
4477 mv "conftest.tmp" "conftest.in"
4478 cp "conftest.in" "conftest.nl"
4479 $as_echo 'GREP' >> "conftest.nl"
4480 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4481 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4482 as_fn_arith $ac_count + 1 && ac_count=$as_val
4483 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4484 # Best one so far, save it but keep looking for a better one
4485 ac_cv_path_GREP="$ac_path_GREP"
4486 ac_path_GREP_max=$ac_count
4488 # 10*(2^10) chars as input seems more than enough
4489 test $ac_count -gt 10 && break
4491 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4494 $ac_path_GREP_found && break 3
4499 if test -z "$ac_cv_path_GREP"; then
4500 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4503 ac_cv_path_GREP=$GREP
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4508 $as_echo "$ac_cv_path_GREP" >&6; }
4509 GREP="$ac_cv_path_GREP"
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4513 $as_echo_n "checking for egrep... " >&6; }
4514 if ${ac_cv_path_EGREP+:} false; then :
4515 $as_echo_n "(cached) " >&6
4517 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4518 then ac_cv_path_EGREP="$GREP -E"
4520 if test -z "$EGREP"; then
4521 ac_path_EGREP_found=false
4522 # Loop through the user's path and test for each of PROGNAME-LIST
4523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4524 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4527 test -z "$as_dir" && as_dir=.
4528 for ac_prog in egrep; do
4529 for ac_exec_ext in '' $ac_executable_extensions; do
4530 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4531 as_fn_executable_p "$ac_path_EGREP" || continue
4532 # Check for GNU ac_path_EGREP and select it if it is found.
4533 # Check for GNU $ac_path_EGREP
4534 case `"$ac_path_EGREP" --version 2>&1` in
4536 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4539 $as_echo_n 0123456789 >"conftest.in"
4542 cat "conftest.in" "conftest.in" >"conftest.tmp"
4543 mv "conftest.tmp" "conftest.in"
4544 cp "conftest.in" "conftest.nl"
4545 $as_echo 'EGREP' >> "conftest.nl"
4546 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4547 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4548 as_fn_arith $ac_count + 1 && ac_count=$as_val
4549 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4550 # Best one so far, save it but keep looking for a better one
4551 ac_cv_path_EGREP="$ac_path_EGREP"
4552 ac_path_EGREP_max=$ac_count
4554 # 10*(2^10) chars as input seems more than enough
4555 test $ac_count -gt 10 && break
4557 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4560 $ac_path_EGREP_found && break 3
4565 if test -z "$ac_cv_path_EGREP"; then
4566 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4569 ac_cv_path_EGREP=$EGREP
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4575 $as_echo "$ac_cv_path_EGREP" >&6; }
4576 EGREP="$ac_cv_path_EGREP"
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4580 $as_echo_n "checking for ANSI C header files... " >&6; }
4581 if ${ac_cv_header_stdc+:} false; then :
4582 $as_echo_n "(cached) " >&6
4584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4585 /* end confdefs.h. */
4599 if ac_fn_c_try_compile "$LINENO"; then :
4600 ac_cv_header_stdc=yes
4602 ac_cv_header_stdc=no
4604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4606 if test $ac_cv_header_stdc = yes; then
4607 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4609 /* end confdefs.h. */
4613 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4614 $EGREP "memchr" >/dev/null 2>&1; then :
4617 ac_cv_header_stdc=no
4623 if test $ac_cv_header_stdc = yes; then
4624 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4626 /* end confdefs.h. */
4630 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4631 $EGREP "free" >/dev/null 2>&1; then :
4634 ac_cv_header_stdc=no
4640 if test $ac_cv_header_stdc = yes; then
4641 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4642 if test "$cross_compiling" = yes; then :
4645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4646 /* end confdefs.h. */
4649 #if ((' ' & 0x0FF) == 0x020)
4650 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4651 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4653 # define ISLOWER(c) \
4654 (('a' <= (c) && (c) <= 'i') \
4655 || ('j' <= (c) && (c) <= 'r') \
4656 || ('s' <= (c) && (c) <= 'z'))
4657 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4660 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4665 for (i = 0; i < 256; i++)
4666 if (XOR (islower (i), ISLOWER (i))
4667 || toupper (i) != TOUPPER (i))
4672 if ac_fn_c_try_run "$LINENO"; then :
4675 ac_cv_header_stdc=no
4677 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4678 conftest.$ac_objext conftest.beam conftest.$ac_ext
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4684 $as_echo "$ac_cv_header_stdc" >&6; }
4685 if test $ac_cv_header_stdc = yes; then
4687 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4691 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4692 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4693 inttypes.h stdint.h unistd.h
4695 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4696 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4698 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4699 cat >>confdefs.h <<_ACEOF
4700 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4709 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4710 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4717 if test "$MINIX" = yes; then
4719 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4722 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4725 $as_echo "#define _MINIX 1" >>confdefs.h
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4731 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4732 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4733 $as_echo_n "(cached) " >&6
4735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4736 /* end confdefs.h. */
4738 # define __EXTENSIONS__ 1
4739 $ac_includes_default
4748 if ac_fn_c_try_compile "$LINENO"; then :
4749 ac_cv_safe_to_define___extensions__=yes
4751 ac_cv_safe_to_define___extensions__=no
4753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4756 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4757 test $ac_cv_safe_to_define___extensions__ = yes &&
4758 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4760 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4762 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4764 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4766 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4773 # Check whether --with-root-prefix was given.
4774 if test "${with_root_prefix+set}" = set; then :
4775 withval=$with_root_prefix; root_prefix=$withval
4779 # Check whether --enable-maintainer-mode was given.
4780 if test "${enable_maintainer_mode+set}" = set; then :
4781 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
4785 $as_echo "Disabling maintainer mode" >&6; }
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
4789 $as_echo "Enabling maintainer mode" >&6; }
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
4795 $as_echo "Disabling maintainer mode by default" >&6; }
4800 # Check whether --enable-symlink-install was given.
4801 if test "${enable_symlink_install+set}" = set; then :
4802 enableval=$enable_symlink_install; if test "$enableval" = "no"
4804 LINK_INSTALL_FLAGS=-f
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4806 $as_echo "Disabling symlinks for install" >&6; }
4808 LINK_INSTALL_FLAGS=-sf
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4810 $as_echo "Enabling symlinks for install" >&6; }
4814 LINK_INSTALL_FLAGS=-f
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
4816 $as_echo "Disabling symlinks for install by default" >&6; }
4821 relative_symlink_defined=
4822 # Check whether --enable-relative-symlinks was given.
4823 if test "${enable_relative_symlinks+set}" = set; then :
4824 enableval=$enable_relative_symlinks; if test "$enableval" = "no"
4827 relative_symlink_defined=yes
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4829 $as_echo "Disabling relative symlinks for install" >&6; }
4831 SYMLINK_RELATIVE=--relative
4832 relative_symlink_defined=yes
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4834 $as_echo "Enabling relative symlinks for install" >&6; }
4838 # Check whether --enable-symlink-relative-symlinks was given.
4839 if test "${enable_symlink_relative_symlinks+set}" = set; then :
4840 enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
4842 SYMLINK_RELATIVE=yes
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4844 $as_echo "Disabling relative symlinks for install" >&6; }
4846 SYMLINK_RELATIVE=--relative
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4848 $as_echo "Enabling relative symlinks for install" >&6; }
4852 if test -z "$relative_symlink_defined"
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
4856 $as_echo "Disabling relative symlinks for install by default" >&6; }
4862 # Check whether --enable-symlink-build was given.
4863 if test "${enable_symlink_build+set}" = set; then :
4864 enableval=$enable_symlink_build; if test "$enableval" = "no"
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4868 $as_echo "Disabling symlinks for build" >&6; }
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4872 $as_echo "Enabling symlinks for build" >&6; }
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
4878 $as_echo "Disabling symlinks for build by default" >&6; }
4883 # Check whether --enable-verbose-makecmds was given.
4884 if test "${enable_verbose_makecmds+set}" = set; then :
4885 enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4888 $as_echo "Disabling verbose make commands" >&6; }
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
4894 $as_echo "Enabling verbose make commands" >&6; }
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4902 $as_echo "Disabling verbose make commands" >&6; }
4912 E2_PKG_CONFIG_STATIC=--static
4915 # Check whether --enable-elf-shlibs was given.
4916 if test "${enable_elf_shlibs+set}" = set; then :
4917 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
4920 MAKEFILE_ELF=/dev/null
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
4922 $as_echo "Disabling ELF shared libraries" >&6; }
4924 E2_PKG_CONFIG_STATIC=
4926 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
4929 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4935 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
4937 $as_echo "Enabling ELF shared libraries" >&6; }
4941 MAKEFILE_ELF=/dev/null
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
4944 $as_echo "Disabling ELF shared libraries by default" >&6; }
4950 # Check whether --enable-bsd-shlibs was given.
4951 if test "${enable_bsd_shlibs+set}" = set; then :
4952 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
4955 MAKEFILE_BSDLIB=/dev/null
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
4957 $as_echo "Disabling BSD shared libraries" >&6; }
4959 E2_PKG_CONFIG_STATIC=
4961 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
4965 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
4970 $as_echo "Enabling BSD shared libraries" >&6; }
4974 MAKEFILE_BSDLIB=/dev/null
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
4977 $as_echo "Disabling BSD shared libraries by default" >&6; }
4983 # Check whether --enable-profile was given.
4984 if test "${enable_profile+set}" = set; then :
4985 enableval=$enable_profile; if test "$enableval" = "no"
4988 MAKEFILE_PROFILE=/dev/null
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
4990 $as_echo "Disabling profiling libraries" >&6; }
4993 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
4994 PROFILED_LIB_EXT=_p.a
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
4996 $as_echo "Building profiling libraries" >&6; }
5001 MAKEFILE_PROFILE=/dev/null
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
5003 $as_echo "Disabling profiling libraries by default" >&6; }
5009 # Check whether --enable-gcov was given.
5010 if test "${enable_gcov+set}" = set; then :
5011 enableval=$enable_gcov; if test "$enableval" = "yes"
5013 CFLAGS="-g -fprofile-arcs -ftest-coverage"
5014 LDFLAGS="-fprofile-arcs -ftest-coverage"
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling gcov support" >&5
5016 $as_echo "Enabling gcov support" >&6; }
5021 CFLAGS_SHLIB="${CFLAGS_SHLIB:-$CFLAGS}"
5022 CFLAGS_STLIB="${CFLAGS_STLIB:-$CFLAGS}"
5023 LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
5024 LDFLAGS_STATIC=${LDFLAGS_STATIC:-$LDFLAGS}
5025 # Check whether --enable-hardening was given.
5026 if test "${enable_hardening+set}" = set; then :
5027 enableval=$enable_hardening; if test "$enableval" = "yes"
5029 HARDEN_CFLAGS="-D_FORTIFY_SOURCE=2 -fstack-protector-strong"
5030 HARDEN_LDFLAGS="-Wl,-z,relro -Wl,-z,now"
5031 CFLAGS="$CFLAGS $HARDEN_CFLAGS -fPIE"
5032 CFLAGS_SHLIB="$CFLAGS_SHLIB $HARDEN_CFLAGS"
5033 CFLAGS_STLIB="$CFLAGS_STLIB $HARDEN_CFLAGS -fPIE"
5034 LDFLAGS="$LDFLAGS $HARDEN_LDFLAGS -fPIE -pie"
5035 LDFLAGS_STATIC="$LDFLAGS_STATIC $HARDEN_LDFLAGS"
5036 LDFLAGS_SHLIB="$LDFLAGS_SHLIB $HARDEN_LDFLAGS"
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling hardening support" >&5
5038 $as_echo "Enabling hardening support" >&6; }
5048 # Check whether --enable-jbd-debug was given.
5049 if test "${enable_jbd_debug+set}" = set; then :
5050 enableval=$enable_jbd_debug; if test "$enableval" = "no"
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
5053 $as_echo "Disabling journal debugging" >&6; }
5056 $as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
5059 $as_echo "Enabling journal debugging" >&6; }
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
5064 $as_echo "Disabling journal debugging by default" >&6; }
5068 # Check whether --enable-blkid-debug was given.
5069 if test "${enable_blkid_debug+set}" = set; then :
5070 enableval=$enable_blkid_debug; if test "$enableval" = "no"
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
5073 $as_echo "Disabling blkid debugging" >&6; }
5076 $as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
5079 $as_echo "Enabling blkid debugging" >&6; }
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
5084 $as_echo "Disabling blkid debugging by default" >&6; }
5088 # Check whether --enable-testio-debug was given.
5089 if test "${enable_testio_debug+set}" = set; then :
5090 enableval=$enable_testio_debug;
5091 if test "$enableval" = "no"
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
5094 $as_echo "Disabling testio debugging" >&6; }
5098 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
5101 $as_echo "Enabling testio debugging" >&6; }
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
5106 $as_echo "Enabling testio debugging by default" >&6; }
5107 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
5121 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5122 if test -n "$ac_tool_prefix"; then
5123 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5124 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5126 $as_echo_n "checking for $ac_word... " >&6; }
5127 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5128 $as_echo_n "(cached) " >&6
5132 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5139 test -z "$as_dir" && as_dir=.
5140 for ac_exec_ext in '' $ac_executable_extensions; do
5141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5142 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5153 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5154 if test -n "$PKG_CONFIG"; then
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5156 $as_echo "$PKG_CONFIG" >&6; }
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5159 $as_echo "no" >&6; }
5164 if test -z "$ac_cv_path_PKG_CONFIG"; then
5165 ac_pt_PKG_CONFIG=$PKG_CONFIG
5166 # Extract the first word of "pkg-config", so it can be a program name with args.
5167 set dummy pkg-config; ac_word=$2
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5169 $as_echo_n "checking for $ac_word... " >&6; }
5170 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5171 $as_echo_n "(cached) " >&6
5173 case $ac_pt_PKG_CONFIG in
5175 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5182 test -z "$as_dir" && as_dir=.
5183 for ac_exec_ext in '' $ac_executable_extensions; do
5184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5185 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5196 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5197 if test -n "$ac_pt_PKG_CONFIG"; then
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5199 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5202 $as_echo "no" >&6; }
5205 if test "x$ac_pt_PKG_CONFIG" = x; then
5208 case $cross_compiling:$ac_tool_warned in
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5211 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5212 ac_tool_warned=yes ;;
5214 PKG_CONFIG=$ac_pt_PKG_CONFIG
5217 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5221 if test -n "$PKG_CONFIG"; then
5222 _pkg_min_version=0.9.0
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5224 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5225 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5227 $as_echo "yes" >&6; }
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5230 $as_echo "no" >&6; }
5239 DEPPROFILED_LIBUUID=
5241 # Check whether --enable-libuuid was given.
5242 if test "${enable_libuuid+set}" = set; then :
5243 enableval=$enable_libuuid; if test "$enableval" = "no"
5245 if test -z "$PKG_CONFIG"; then
5246 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
5250 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
5251 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
5252 $as_echo_n "(cached) " >&6
5254 ac_check_lib_save_LIBS=$LIBS
5256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5257 /* end confdefs.h. */
5259 /* Override any GCC internal prototype to avoid an error.
5260 Use char because int might match the return type of a GCC
5261 builtin and then its argument prototype would still apply. */
5265 char uuid_generate ();
5269 return uuid_generate ();
5274 if ac_fn_c_try_link "$LINENO"; then :
5275 ac_cv_lib_uuid_uuid_generate=yes
5277 ac_cv_lib_uuid_uuid_generate=no
5279 rm -f core conftest.err conftest.$ac_objext \
5280 conftest$ac_exeext conftest.$ac_ext
5281 LIBS=$ac_check_lib_save_LIBS
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
5284 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
5285 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
5286 LIBUUID=`$PKG_CONFIG --libs uuid`;
5287 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5289 as_fn_error $? "external uuid library not found" "$LINENO" 5
5292 PROFILED_LIBUUID=$LIBUUID
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
5295 $as_echo "Disabling private uuid library" >&6; }
5297 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5299 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5300 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5301 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5302 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
5304 $as_echo "Enabling private uuid library" >&6; }
5308 if test -n "$PKG_CONFIG"; then
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
5310 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
5311 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
5312 $as_echo_n "(cached) " >&6
5314 ac_check_lib_save_LIBS=$LIBS
5316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5317 /* end confdefs.h. */
5319 /* Override any GCC internal prototype to avoid an error.
5320 Use char because int might match the return type of a GCC
5321 builtin and then its argument prototype would still apply. */
5325 char uuid_generate ();
5329 return uuid_generate ();
5334 if ac_fn_c_try_link "$LINENO"; then :
5335 ac_cv_lib_uuid_uuid_generate=yes
5337 ac_cv_lib_uuid_uuid_generate=no
5339 rm -f core conftest.err conftest.$ac_objext \
5340 conftest$ac_exeext conftest.$ac_ext
5341 LIBS=$ac_check_lib_save_LIBS
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
5344 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
5345 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
5346 LIBUUID=`$PKG_CONFIG --libs uuid`;
5347 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5351 if test -n "$LIBUUID"; then
5352 PROFILED_LIBUUID=$LIBUUID
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system uuid by default" >&5
5355 $as_echo "Using system uuid by default" >&6; }
5357 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5359 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5360 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5361 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5362 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
5364 $as_echo "Enabling private uuid library by default" >&6; }
5383 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5384 if test -n "$ac_tool_prefix"; then
5385 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5386 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5388 $as_echo_n "checking for $ac_word... " >&6; }
5389 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5390 $as_echo_n "(cached) " >&6
5394 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5401 test -z "$as_dir" && as_dir=.
5402 for ac_exec_ext in '' $ac_executable_extensions; do
5403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5404 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5415 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5416 if test -n "$PKG_CONFIG"; then
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5418 $as_echo "$PKG_CONFIG" >&6; }
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5421 $as_echo "no" >&6; }
5426 if test -z "$ac_cv_path_PKG_CONFIG"; then
5427 ac_pt_PKG_CONFIG=$PKG_CONFIG
5428 # Extract the first word of "pkg-config", so it can be a program name with args.
5429 set dummy pkg-config; ac_word=$2
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5431 $as_echo_n "checking for $ac_word... " >&6; }
5432 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5433 $as_echo_n "(cached) " >&6
5435 case $ac_pt_PKG_CONFIG in
5437 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5444 test -z "$as_dir" && as_dir=.
5445 for ac_exec_ext in '' $ac_executable_extensions; do
5446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5447 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5458 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5459 if test -n "$ac_pt_PKG_CONFIG"; then
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5461 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5464 $as_echo "no" >&6; }
5467 if test "x$ac_pt_PKG_CONFIG" = x; then
5470 case $cross_compiling:$ac_tool_warned in
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5473 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5474 ac_tool_warned=yes ;;
5476 PKG_CONFIG=$ac_pt_PKG_CONFIG
5479 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5483 if test -n "$PKG_CONFIG"; then
5484 _pkg_min_version=0.9.0
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5486 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5487 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5489 $as_echo "yes" >&6; }
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5492 $as_echo "no" >&6; }
5501 DEPPROFILED_LIBBLKID=
5504 # Check whether --enable-libblkid was given.
5505 if test "${enable_libblkid+set}" = set; then :
5506 enableval=$enable_libblkid; if test "$enableval" = "no"
5508 if test -z "$PKG_CONFIG"; then
5509 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5513 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5514 if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
5515 $as_echo_n "(cached) " >&6
5517 ac_check_lib_save_LIBS=$LIBS
5518 LIBS="-lblkid -luuid $LIBS"
5519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5520 /* end confdefs.h. */
5522 /* Override any GCC internal prototype to avoid an error.
5523 Use char because int might match the return type of a GCC
5524 builtin and then its argument prototype would still apply. */
5528 char blkid_get_cache ();
5532 return blkid_get_cache ();
5537 if ac_fn_c_try_link "$LINENO"; then :
5538 ac_cv_lib_blkid_blkid_get_cache=yes
5540 ac_cv_lib_blkid_blkid_get_cache=no
5542 rm -f core conftest.err conftest.$ac_objext \
5543 conftest$ac_exeext conftest.$ac_ext
5544 LIBS=$ac_check_lib_save_LIBS
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5547 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5548 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
5549 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5550 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5552 as_fn_error $? "external blkid library not found" "$LINENO" 5
5556 PROFILED_LIBBLKID=$LIBBLKID
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
5558 $as_echo "Disabling private blkid library" >&6; }
5560 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5561 DEPLIBBLKID=$LIBBLKID
5562 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5563 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5564 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5565 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5566 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
5569 $as_echo "Enabling private blkid library" >&6; }
5573 if test -n "$PKG_CONFIG"; then
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5575 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5576 if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
5577 $as_echo_n "(cached) " >&6
5579 ac_check_lib_save_LIBS=$LIBS
5580 LIBS="-lblkid $LIBS"
5581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5582 /* end confdefs.h. */
5584 /* Override any GCC internal prototype to avoid an error.
5585 Use char because int might match the return type of a GCC
5586 builtin and then its argument prototype would still apply. */
5590 char blkid_get_cache ();
5594 return blkid_get_cache ();
5599 if ac_fn_c_try_link "$LINENO"; then :
5600 ac_cv_lib_blkid_blkid_get_cache=yes
5602 ac_cv_lib_blkid_blkid_get_cache=no
5604 rm -f core conftest.err conftest.$ac_objext \
5605 conftest$ac_exeext conftest.$ac_ext
5606 LIBS=$ac_check_lib_save_LIBS
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5609 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5610 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
5611 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5612 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5616 if test -n "$LIBBLKID"; then
5618 PROFILED_LIBBLKID=$LIBBLKID
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system blkid library by default" >&5
5620 $as_echo "Using system blkid library by default" >&6; }
5622 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5623 DEPLIBBLKID=$LIBBLKID
5624 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5625 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5626 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5627 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5628 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
5631 $as_echo "Enabling private blkid library by default" >&6; }
5644 # Check whether --enable-backtrace was given.
5645 if test "${enable_backtrace+set}" = set; then :
5646 enableval=$enable_backtrace; if test "$enableval" = "no"
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5
5649 $as_echo "Disabling use of backtrace" >&6; }
5650 $as_echo "#define DISABLE_BACKTRACE 1" >>confdefs.h
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5
5654 $as_echo "Enabling use of backtrace" >&6; }
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5
5659 $as_echo "Enabling use of backtrace by default" >&6; }
5663 # Check whether --enable-debugfs was given.
5664 if test "${enable_debugfs+set}" = set; then :
5665 enableval=$enable_debugfs; if test "$enableval" = "no"
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
5668 $as_echo "Disabling debugfs support" >&6; }
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
5673 $as_echo "Enabling debugfs support" >&6; }
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
5678 $as_echo "Enabling debugfs support by default" >&6; }
5684 # Check whether --enable-imager was given.
5685 if test "${enable_imager+set}" = set; then :
5686 enableval=$enable_imager; if test "$enableval" = "no"
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
5689 $as_echo "Disabling e2image support" >&6; }
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
5694 $as_echo "Enabling e2image support" >&6; }
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
5699 $as_echo "Enabling e2image support by default" >&6; }
5705 # Check whether --enable-resizer was given.
5706 if test "${enable_resizer+set}" = set; then :
5707 enableval=$enable_resizer; if test "$enableval" = "no"
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
5710 $as_echo "Disabling e2resize support" >&6; }
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
5715 $as_echo "Enabling e2resize support" >&6; }
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
5720 $as_echo "Enabling e2resize support by default" >&6; }
5726 # Check whether --enable-defrag was given.
5727 if test "${enable_defrag+set}" = set; then :
5728 enableval=$enable_defrag; if test "$enableval" = "no"
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5731 $as_echo "Disabling e4defrag support" >&6; }
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5736 $as_echo "Enabling e4defrag support" >&6; }
5740 if test -z "$WITH_DIET_LIBC"
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
5743 $as_echo "Enabling e4defrag support by default" >&6; }
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support by default" >&5
5747 $as_echo "Disabling e4defrag support by default" >&6; }
5754 # Check whether --enable-fsck was given.
5755 if test "${enable_fsck+set}" = set; then :
5756 enableval=$enable_fsck; if test "$enableval" = "no"
5758 FSCK_PROG='' FSCK_MAN=''
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
5760 $as_echo "Not building fsck wrapper" >&6; }
5762 FSCK_PROG=fsck FSCK_MAN=fsck.8
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
5764 $as_echo "Building fsck wrapper" >&6; }
5770 FSCK_PROG='' FSCK_MAN=''
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
5772 $as_echo "Not building fsck wrapper by default" >&6; }
5775 FSCK_PROG=fsck FSCK_MAN=fsck.8
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
5777 $as_echo "Building fsck wrapper by default" >&6; }
5784 # Check whether --enable-e2initrd-helper was given.
5785 if test "${enable_e2initrd_helper+set}" = set; then :
5786 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
5788 E2INITRD_PROG='' E2INITRD_MAN=''
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
5790 $as_echo "Not building e2initrd helper" >&6; }
5792 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
5794 $as_echo "Building e2initrd helper" >&6; }
5798 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
5800 $as_echo "Building e2initrd helper by default" >&6; }
5806 # Check whether --enable-tls was given.
5807 if test "${enable_tls+set}" = set; then :
5808 enableval=$enable_tls; if test "$enableval" = "no"
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
5812 $as_echo "Disabling thread local support" >&6; }
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
5816 $as_echo "Enabling thread local support" >&6; }
5820 if test -n "$WITH_DIET_LIBC"
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5
5824 $as_echo "Diet libc does not support thread local support" >&6; }
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
5828 $as_echo "Try using thread local support by default" >&6; }
5833 if test "$try_tls" = "yes"
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
5837 $as_echo_n "checking for thread local storage (TLS) class... " >&6; }
5838 if ${ac_cv_tls+:} false; then :
5839 $as_echo_n "(cached) " >&6
5842 ax_tls_keywords="__thread __declspec(thread) none"
5843 for ax_tls_keyword in $ax_tls_keywords; do
5844 case $ax_tls_keyword in
5845 none) ac_cv_tls=none ; break ;;
5847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5848 /* end confdefs.h. */
5852 static $ax_tls_keyword int bar;
5863 if ac_fn_c_try_compile "$LINENO"; then :
5864 ac_cv_tls=$ax_tls_keyword ; break
5869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5876 if test "$ac_cv_tls" != "none"; then
5878 cat >>confdefs.h <<_ACEOF
5879 #define TLS $ac_cv_tls
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
5884 $as_echo "$ac_cv_tls" >&6; }
5888 # Check whether --enable-uuidd was given.
5889 if test "${enable_uuidd+set}" = set; then :
5890 enableval=$enable_uuidd; if test "$enableval" = "no"
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
5893 $as_echo "Not building uuidd" >&6; }
5896 $as_echo "#define USE_UUIDD 1" >>confdefs.h
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
5900 $as_echo "Building uuidd" >&6; }
5904 $as_echo "#define USE_UUIDD 1" >>confdefs.h
5906 if test -z "$UUID_CMT"
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
5910 $as_echo "Building uuidd by default" >&6; }
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling uuidd by default" >&5
5914 $as_echo "Disabling uuidd by default" >&6; }
5921 # Check whether --enable-mmp was given.
5922 if test "${enable_mmp+set}" = set; then :
5923 enableval=$enable_mmp; if test "$enableval" = "no"
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling mmp support" >&5
5926 $as_echo "Disabling mmp support" >&6; }
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support" >&5
5929 $as_echo "Enabling mmp support" >&6; }
5930 $as_echo "#define CONFIG_MMP 1" >>confdefs.h
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
5936 $as_echo "Enabling mmp support by default" >&6; }
5937 $as_echo "#define CONFIG_MMP 1" >>confdefs.h
5943 # Check whether --enable-tdb was given.
5944 if test "${enable_tdb+set}" = set; then :
5945 enableval=$enable_tdb; if test "$enableval" = "no"
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling tdb support" >&5
5948 $as_echo "Disabling tdb support" >&6; }
5950 TDB_MAN_COMMENT='.\"'
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling tdb support" >&5
5953 $as_echo "Enabling tdb support" >&6; }
5954 $as_echo "#define CONFIG_TDB 1" >>confdefs.h
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
5962 $as_echo "Enabling mmp support by default" >&6; }
5963 $as_echo "#define CONFIG_TDB 1" >>confdefs.h
5973 # Check whether --enable-bmap-stats was given.
5974 if test "${enable_bmap_stats+set}" = set; then :
5975 enableval=$enable_bmap_stats; if test "$enableval" = "no"
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling bitmap statistics support" >&5
5978 $as_echo "Disabling bitmap statistics support" >&6; }
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support" >&5
5981 $as_echo "Enabling bitmap statistics support" >&6; }
5982 $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support by default" >&5
5988 $as_echo "Enabling bitmap statistics support by default" >&6; }
5989 $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
5995 # Check whether --enable-bmap-stats-ops was given.
5996 if test "${enable_bmap_stats_ops+set}" = set; then :
5997 enableval=$enable_bmap_stats_ops; if test "$enableval" = "no"
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics" >&5
6000 $as_echo "Disabling additional bitmap statistics" >&6; }
6002 if test "x${enable_bmap_stats}" = "xno"; then :
6003 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6004 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6005 as_fn_error $? "Error --enable-bmap-stats-ops requires bmap-stats
6006 See \`config.log' for more details" "$LINENO" 5; }
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling additional bitmap statistics" >&5
6010 $as_echo "Enabling additional bitmap statistics" >&6; }
6011 $as_echo "#define ENABLE_BMAP_STATS_OPS 1" >>confdefs.h
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics by default" >&5
6017 $as_echo "Disabling additional bitmap statistics by default" >&6; }
6021 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
6023 GETTEXT_PACKAGE=e2fsprogs
6025 VERSION="$E2FSPROGS_VERSION"
6028 cat >>confdefs.h <<_ACEOF
6029 #define PACKAGE "$PACKAGE"
6033 cat >>confdefs.h <<_ACEOF
6034 #define VERSION "$VERSION"
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6042 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6044 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6045 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6046 $as_echo_n "(cached) " >&6
6048 cat >conftest.make <<\_ACEOF
6051 @echo '@@@%%%=$(MAKE)=@@@%%%'
6053 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6054 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6056 eval ac_cv_prog_make_${ac_make}_set=yes;;
6058 eval ac_cv_prog_make_${ac_make}_set=no;;
6062 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6064 $as_echo "yes" >&6; }
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6068 $as_echo "no" >&6; }
6069 SET_MAKE="MAKE=${MAKE-make}"
6072 # Find a good install program. We prefer a C program (faster),
6073 # so one script is as good as another. But avoid the broken or
6074 # incompatible versions:
6075 # SysV /etc/install, /usr/sbin/install
6076 # SunOS /usr/etc/install
6077 # IRIX /sbin/install
6079 # AmigaOS /C/install, which installs bootblocks on floppy discs
6080 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6081 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6082 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6083 # OS/2's system install, which has a completely different semantic
6084 # ./install, which can be erroneously created by make from ./install.sh.
6085 # Reject install programs that cannot install multiple files.
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
6087 $as_echo_n "checking for a BSD-compatible install... " >&6; }
6088 if test -z "$INSTALL"; then
6089 if ${ac_cv_path_install+:} false; then :
6090 $as_echo_n "(cached) " >&6
6092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6096 test -z "$as_dir" && as_dir=.
6097 # Account for people who put trailing slashes in PATH elements.
6098 case $as_dir/ in #((
6099 ./ | .// | /[cC]/* | \
6100 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6101 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
6104 # OSF1 and SCO ODT 3.0 have their own names for install.
6105 # Don't use installbsd from OSF since it installs stuff as root
6107 for ac_prog in ginstall scoinst install; do
6108 for ac_exec_ext in '' $ac_executable_extensions; do
6109 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6110 if test $ac_prog = install &&
6111 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6112 # AIX install. It has an incompatible calling convention.
6114 elif test $ac_prog = install &&
6115 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6116 # program-specific install script used by HP pwplus--don't use.
6119 rm -rf conftest.one conftest.two conftest.dir
6120 echo one > conftest.one
6121 echo two > conftest.two
6123 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6124 test -s conftest.one && test -s conftest.two &&
6125 test -s conftest.dir/conftest.one &&
6126 test -s conftest.dir/conftest.two
6128 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6141 rm -rf conftest.one conftest.two conftest.dir
6144 if test "${ac_cv_path_install+set}" = set; then
6145 INSTALL=$ac_cv_path_install
6147 # As a last resort, use the slow shell script. Don't cache a
6148 # value for INSTALL within a source directory, because that will
6149 # break other packages using the cache if that directory is
6150 # removed, or if the value is a relative name.
6151 INSTALL=$ac_install_sh
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
6155 $as_echo "$INSTALL" >&6; }
6157 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6158 # It thinks the first close brace ends the variable substitution.
6159 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6161 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6163 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
6166 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6167 if test -z "$MKDIR_P"; then
6168 if ${ac_cv_path_mkdir+:} false; then :
6169 $as_echo_n "(cached) " >&6
6171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6172 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6175 test -z "$as_dir" && as_dir=.
6176 for ac_prog in mkdir gmkdir; do
6177 for ac_exec_ext in '' $ac_executable_extensions; do
6178 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
6179 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6180 'mkdir (GNU coreutils) '* | \
6181 'mkdir (coreutils) '* | \
6182 'mkdir (fileutils) '4.1*)
6183 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6193 test -d ./--version && rmdir ./--version
6194 if test "${ac_cv_path_mkdir+set}" = set; then
6195 MKDIR_P="$ac_cv_path_mkdir -p"
6197 # As a last resort, use the slow shell script. Don't cache a
6198 # value for MKDIR_P within a source directory, because that will
6199 # break other packages using the cache if that directory is
6200 # removed, or if the value is a relative name.
6201 MKDIR_P="$ac_install_sh -d"
6204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
6205 $as_echo "$MKDIR_P" >&6; }
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6208 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6209 if ${ac_cv_path_SED+:} false; then :
6210 $as_echo_n "(cached) " >&6
6212 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6213 for ac_i in 1 2 3 4 5 6 7; do
6214 ac_script="$ac_script$as_nl$ac_script"
6216 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6217 { ac_script=; unset ac_script;}
6218 if test -z "$SED"; then
6219 ac_path_SED_found=false
6220 # Loop through the user's path and test for each of PROGNAME-LIST
6221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6225 test -z "$as_dir" && as_dir=.
6226 for ac_prog in sed gsed; do
6227 for ac_exec_ext in '' $ac_executable_extensions; do
6228 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6229 as_fn_executable_p "$ac_path_SED" || continue
6230 # Check for GNU ac_path_SED and select it if it is found.
6231 # Check for GNU $ac_path_SED
6232 case `"$ac_path_SED" --version 2>&1` in
6234 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6237 $as_echo_n 0123456789 >"conftest.in"
6240 cat "conftest.in" "conftest.in" >"conftest.tmp"
6241 mv "conftest.tmp" "conftest.in"
6242 cp "conftest.in" "conftest.nl"
6243 $as_echo '' >> "conftest.nl"
6244 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6245 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6246 as_fn_arith $ac_count + 1 && ac_count=$as_val
6247 if test $ac_count -gt ${ac_path_SED_max-0}; then
6248 # Best one so far, save it but keep looking for a better one
6249 ac_cv_path_SED="$ac_path_SED"
6250 ac_path_SED_max=$ac_count
6252 # 10*(2^10) chars as input seems more than enough
6253 test $ac_count -gt 10 && break
6255 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6258 $ac_path_SED_found && break 3
6263 if test -z "$ac_cv_path_SED"; then
6264 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6272 $as_echo "$ac_cv_path_SED" >&6; }
6273 SED="$ac_cv_path_SED"
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6278 $as_echo_n "checking whether NLS is requested... " >&6; }
6279 # Check whether --enable-nls was given.
6280 if test "${enable_nls+set}" = set; then :
6281 enableval=$enable_nls; USE_NLS=$enableval
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6287 $as_echo "$USE_NLS" >&6; }
6292 GETTEXT_MACRO_VERSION=0.18
6297 # Prepare PATH_SEPARATOR.
6298 # The user is always right.
6299 if test "${PATH_SEPARATOR+set}" != set; then
6300 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6301 # contains only /bin. Note that ksh looks also at the FPATH variable,
6302 # so we have to set that as well for the test.
6304 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6305 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6306 || PATH_SEPARATOR=';'
6310 # Find out how to test for executable files. Don't use a zero-byte file,
6311 # as systems may use methods other than mode bits to determine executability.
6312 cat >conf$$.file <<_ASEOF
6316 chmod +x conf$$.file
6317 if test -x conf$$.file >/dev/null 2>&1; then
6318 ac_executable_p="test -x"
6320 ac_executable_p="test -f"
6324 # Extract the first word of "msgfmt", so it can be a program name with args.
6325 set dummy msgfmt; ac_word=$2
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6327 $as_echo_n "checking for $ac_word... " >&6; }
6328 if ${ac_cv_path_MSGFMT+:} false; then :
6329 $as_echo_n "(cached) " >&6
6333 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6336 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6337 for ac_dir in $PATH; do
6339 test -z "$ac_dir" && ac_dir=.
6340 for ac_exec_ext in '' $ac_executable_extensions; do
6341 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6342 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6343 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
6344 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6345 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
6352 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
6356 MSGFMT="$ac_cv_path_MSGFMT"
6357 if test "$MSGFMT" != ":"; then
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
6359 $as_echo "$MSGFMT" >&6; }
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6362 $as_echo "no" >&6; }
6365 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6366 set dummy gmsgfmt; ac_word=$2
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6368 $as_echo_n "checking for $ac_word... " >&6; }
6369 if ${ac_cv_path_GMSGFMT+:} false; then :
6370 $as_echo_n "(cached) " >&6
6374 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6381 test -z "$as_dir" && as_dir=.
6382 for ac_exec_ext in '' $ac_executable_extensions; do
6383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6384 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
6385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6392 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6396 GMSGFMT=$ac_cv_path_GMSGFMT
6397 if test -n "$GMSGFMT"; then
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
6399 $as_echo "$GMSGFMT" >&6; }
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6402 $as_echo "no" >&6; }
6407 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6408 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
6409 *) MSGFMT_015=$MSGFMT ;;
6412 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6413 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
6414 *) GMSGFMT_015=$GMSGFMT ;;
6419 # Prepare PATH_SEPARATOR.
6420 # The user is always right.
6421 if test "${PATH_SEPARATOR+set}" != set; then
6422 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6423 # contains only /bin. Note that ksh looks also at the FPATH variable,
6424 # so we have to set that as well for the test.
6426 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6427 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6428 || PATH_SEPARATOR=';'
6432 # Find out how to test for executable files. Don't use a zero-byte file,
6433 # as systems may use methods other than mode bits to determine executability.
6434 cat >conf$$.file <<_ASEOF
6438 chmod +x conf$$.file
6439 if test -x conf$$.file >/dev/null 2>&1; then
6440 ac_executable_p="test -x"
6442 ac_executable_p="test -f"
6446 # Extract the first word of "xgettext", so it can be a program name with args.
6447 set dummy xgettext; ac_word=$2
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6449 $as_echo_n "checking for $ac_word... " >&6; }
6450 if ${ac_cv_path_XGETTEXT+:} false; then :
6451 $as_echo_n "(cached) " >&6
6455 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6458 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6459 for ac_dir in $PATH; do
6461 test -z "$ac_dir" && ac_dir=.
6462 for ac_exec_ext in '' $ac_executable_extensions; do
6463 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6464 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6465 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
6466 (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
6467 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6474 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6478 XGETTEXT="$ac_cv_path_XGETTEXT"
6479 if test "$XGETTEXT" != ":"; then
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
6481 $as_echo "$XGETTEXT" >&6; }
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6484 $as_echo "no" >&6; }
6489 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6490 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
6491 *) XGETTEXT_015=$XGETTEXT ;;
6496 # Prepare PATH_SEPARATOR.
6497 # The user is always right.
6498 if test "${PATH_SEPARATOR+set}" != set; then
6499 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6500 # contains only /bin. Note that ksh looks also at the FPATH variable,
6501 # so we have to set that as well for the test.
6503 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6504 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6505 || PATH_SEPARATOR=';'
6509 # Find out how to test for executable files. Don't use a zero-byte file,
6510 # as systems may use methods other than mode bits to determine executability.
6511 cat >conf$$.file <<_ASEOF
6515 chmod +x conf$$.file
6516 if test -x conf$$.file >/dev/null 2>&1; then
6517 ac_executable_p="test -x"
6519 ac_executable_p="test -f"
6523 # Extract the first word of "msgmerge", so it can be a program name with args.
6524 set dummy msgmerge; ac_word=$2
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6526 $as_echo_n "checking for $ac_word... " >&6; }
6527 if ${ac_cv_path_MSGMERGE+:} false; then :
6528 $as_echo_n "(cached) " >&6
6532 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6535 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6536 for ac_dir in $PATH; do
6538 test -z "$ac_dir" && ac_dir=.
6539 for ac_exec_ext in '' $ac_executable_extensions; do
6540 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6541 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6542 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
6543 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6550 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6554 MSGMERGE="$ac_cv_path_MSGMERGE"
6555 if test "$MSGMERGE" != ":"; then
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
6557 $as_echo "$MSGMERGE" >&6; }
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6560 $as_echo "no" >&6; }
6564 test -n "$localedir" || localedir='${datadir}/locale'
6567 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
6570 ac_config_commands="$ac_config_commands po-directories"
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
6575 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
6576 if ${ac_cv_gnu_library_2+:} false; then :
6577 $as_echo_n "(cached) " >&6
6579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6580 /* end confdefs.h. */
6582 #include <features.h>
6583 #ifdef __GNU_LIBRARY__
6584 #if (__GLIBC__ >= 2) && !defined __UCLIBC__
6590 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6591 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
6592 ac_cv_gnu_library_2=yes
6594 ac_cv_gnu_library_2=no
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
6602 $as_echo "$ac_cv_gnu_library_2" >&6; }
6604 GLIBC2="$ac_cv_gnu_library_2"
6607 if test -n "$ac_tool_prefix"; then
6608 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6609 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6611 $as_echo_n "checking for $ac_word... " >&6; }
6612 if ${ac_cv_prog_RANLIB+:} false; then :
6613 $as_echo_n "(cached) " >&6
6615 if test -n "$RANLIB"; then
6616 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6622 test -z "$as_dir" && as_dir=.
6623 for ac_exec_ext in '' $ac_executable_extensions; do
6624 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6625 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6635 RANLIB=$ac_cv_prog_RANLIB
6636 if test -n "$RANLIB"; then
6637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6638 $as_echo "$RANLIB" >&6; }
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6641 $as_echo "no" >&6; }
6646 if test -z "$ac_cv_prog_RANLIB"; then
6647 ac_ct_RANLIB=$RANLIB
6648 # Extract the first word of "ranlib", so it can be a program name with args.
6649 set dummy ranlib; ac_word=$2
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6651 $as_echo_n "checking for $ac_word... " >&6; }
6652 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6653 $as_echo_n "(cached) " >&6
6655 if test -n "$ac_ct_RANLIB"; then
6656 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6662 test -z "$as_dir" && as_dir=.
6663 for ac_exec_ext in '' $ac_executable_extensions; do
6664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6665 ac_cv_prog_ac_ct_RANLIB="ranlib"
6666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6675 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6676 if test -n "$ac_ct_RANLIB"; then
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6678 $as_echo "$ac_ct_RANLIB" >&6; }
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6681 $as_echo "no" >&6; }
6684 if test "x$ac_ct_RANLIB" = x; then
6687 case $cross_compiling:$ac_tool_warned in
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6690 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6691 ac_tool_warned=yes ;;
6693 RANLIB=$ac_ct_RANLIB
6696 RANLIB="$ac_cv_prog_RANLIB"
6703 if test -n "$GCC"; then
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
6705 $as_echo_n "checking whether the -Werror option is usable... " >&6; }
6706 if ${gl_cv_cc_vis_werror+:} false; then :
6707 $as_echo_n "(cached) " >&6
6710 gl_save_CFLAGS="$CFLAGS"
6711 CFLAGS="$CFLAGS -Werror"
6712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6713 /* end confdefs.h. */
6723 if ac_fn_c_try_compile "$LINENO"; then :
6724 gl_cv_cc_vis_werror=yes
6726 gl_cv_cc_vis_werror=no
6728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6729 CFLAGS="$gl_save_CFLAGS"
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
6733 $as_echo "$gl_cv_cc_vis_werror" >&6; }
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
6735 $as_echo_n "checking for simple visibility declarations... " >&6; }
6736 if ${gl_cv_cc_visibility+:} false; then :
6737 $as_echo_n "(cached) " >&6
6740 gl_save_CFLAGS="$CFLAGS"
6741 CFLAGS="$CFLAGS -fvisibility=hidden"
6742 if test $gl_cv_cc_vis_werror = yes; then
6743 CFLAGS="$CFLAGS -Werror"
6745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6746 /* end confdefs.h. */
6747 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
6748 extern __attribute__((__visibility__("default"))) int exportedvar;
6749 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
6750 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
6751 void dummyfunc (void) {}
6761 if ac_fn_c_try_compile "$LINENO"; then :
6762 gl_cv_cc_visibility=yes
6764 gl_cv_cc_visibility=no
6766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6767 CFLAGS="$gl_save_CFLAGS"
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
6771 $as_echo "$gl_cv_cc_visibility" >&6; }
6772 if test $gl_cv_cc_visibility = yes; then
6773 CFLAG_VISIBILITY="-fvisibility=hidden"
6780 cat >>confdefs.h <<_ACEOF
6781 #define HAVE_VISIBILITY $HAVE_VISIBILITY
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6786 $as_echo_n "checking for inline... " >&6; }
6787 if ${ac_cv_c_inline+:} false; then :
6788 $as_echo_n "(cached) " >&6
6791 for ac_kw in inline __inline__ __inline; do
6792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6793 /* end confdefs.h. */
6796 static $ac_kw foo_t static_foo () {return 0; }
6797 $ac_kw foo_t foo () {return 0; }
6801 if ac_fn_c_try_compile "$LINENO"; then :
6802 ac_cv_c_inline=$ac_kw
6804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6805 test "$ac_cv_c_inline" != no && break
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6810 $as_echo "$ac_cv_c_inline" >&6; }
6812 case $ac_cv_c_inline in
6815 case $ac_cv_c_inline in
6817 *) ac_val=$ac_cv_c_inline;;
6819 cat >>confdefs.h <<_ACEOF
6821 #define inline $ac_val
6827 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6828 if test "x$ac_cv_type_size_t" = xyes; then :
6832 cat >>confdefs.h <<_ACEOF
6833 #define size_t unsigned int
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
6840 $as_echo_n "checking for stdint.h... " >&6; }
6841 if ${gl_cv_header_stdint_h+:} false; then :
6842 $as_echo_n "(cached) " >&6
6844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6845 /* end confdefs.h. */
6846 #include <sys/types.h>
6851 uintmax_t i = (uintmax_t) -1; return !i;
6856 if ac_fn_c_try_compile "$LINENO"; then :
6857 gl_cv_header_stdint_h=yes
6859 gl_cv_header_stdint_h=no
6861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
6864 $as_echo "$gl_cv_header_stdint_h" >&6; }
6865 if test $gl_cv_header_stdint_h = yes; then
6867 cat >>confdefs.h <<_ACEOF
6868 #define HAVE_STDINT_H_WITH_UINTMAX 1
6873 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6874 # for constant arguments. Useless!
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6876 $as_echo_n "checking for working alloca.h... " >&6; }
6877 if ${ac_cv_working_alloca_h+:} false; then :
6878 $as_echo_n "(cached) " >&6
6880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6881 /* end confdefs.h. */
6886 char *p = (char *) alloca (2 * sizeof (int));
6892 if ac_fn_c_try_link "$LINENO"; then :
6893 ac_cv_working_alloca_h=yes
6895 ac_cv_working_alloca_h=no
6897 rm -f core conftest.err conftest.$ac_objext \
6898 conftest$ac_exeext conftest.$ac_ext
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6901 $as_echo "$ac_cv_working_alloca_h" >&6; }
6902 if test $ac_cv_working_alloca_h = yes; then
6904 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6909 $as_echo_n "checking for alloca... " >&6; }
6910 if ${ac_cv_func_alloca_works+:} false; then :
6911 $as_echo_n "(cached) " >&6
6913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6914 /* end confdefs.h. */
6916 # define alloca __builtin_alloca
6919 # include <malloc.h>
6920 # define alloca _alloca
6922 # ifdef HAVE_ALLOCA_H
6923 # include <alloca.h>
6928 # ifndef alloca /* predefined by HP cc +Olibcalls */
6929 void *alloca (size_t);
6939 char *p = (char *) alloca (1);
6945 if ac_fn_c_try_link "$LINENO"; then :
6946 ac_cv_func_alloca_works=yes
6948 ac_cv_func_alloca_works=no
6950 rm -f core conftest.err conftest.$ac_objext \
6951 conftest$ac_exeext conftest.$ac_ext
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6954 $as_echo "$ac_cv_func_alloca_works" >&6; }
6956 if test $ac_cv_func_alloca_works = yes; then
6958 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6961 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6962 # that cause trouble. Some versions do not even contain alloca or
6963 # contain a buggy version. If you still want to use their alloca,
6964 # use ar to extract alloca.o from them instead of compiling alloca.c.
6966 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6968 $as_echo "#define C_ALLOCA 1" >>confdefs.h
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6972 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6973 if ${ac_cv_os_cray+:} false; then :
6974 $as_echo_n "(cached) " >&6
6976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6977 /* end confdefs.h. */
6978 #if defined CRAY && ! defined CRAY2
6985 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6986 $EGREP "webecray" >/dev/null 2>&1; then :
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6995 $as_echo "$ac_cv_os_cray" >&6; }
6996 if test $ac_cv_os_cray = yes; then
6997 for ac_func in _getb67 GETB67 getb67; do
6998 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6999 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7000 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7002 cat >>confdefs.h <<_ACEOF
7003 #define CRAY_STACKSEG_END $ac_func
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
7013 $as_echo_n "checking stack direction for C alloca... " >&6; }
7014 if ${ac_cv_c_stack_direction+:} false; then :
7015 $as_echo_n "(cached) " >&6
7017 if test "$cross_compiling" = yes; then :
7018 ac_cv_c_stack_direction=0
7020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7021 /* end confdefs.h. */
7022 $ac_includes_default
7024 find_stack_direction (int *addr, int depth)
7029 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7030 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7035 main (int argc, char **argv)
7037 return find_stack_direction (0, argc + !argv + 20) < 0;
7040 if ac_fn_c_try_run "$LINENO"; then :
7041 ac_cv_c_stack_direction=1
7043 ac_cv_c_stack_direction=-1
7045 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7046 conftest.$ac_objext conftest.beam conftest.$ac_ext
7050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7051 $as_echo "$ac_cv_c_stack_direction" >&6; }
7052 cat >>confdefs.h <<_ACEOF
7053 #define STACK_DIRECTION $ac_cv_c_stack_direction
7062 for ac_header in $ac_header_list
7064 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7065 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7067 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7068 cat >>confdefs.h <<_ACEOF
7069 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7083 for ac_func in getpagesize
7085 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7086 if test "x$ac_cv_func_getpagesize" = xyes; then :
7087 cat >>confdefs.h <<_ACEOF
7088 #define HAVE_GETPAGESIZE 1
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7095 $as_echo_n "checking for working mmap... " >&6; }
7096 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
7097 $as_echo_n "(cached) " >&6
7099 if test "$cross_compiling" = yes; then :
7100 ac_cv_func_mmap_fixed_mapped=no
7102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7103 /* end confdefs.h. */
7104 $ac_includes_default
7105 /* malloc might have been renamed as rpl_malloc. */
7108 /* Thanks to Mike Haertel and Jim Avera for this test.
7109 Here is a matrix of mmap possibilities:
7110 mmap private not fixed
7111 mmap private fixed at somewhere currently unmapped
7112 mmap private fixed at somewhere already mapped
7113 mmap shared not fixed
7114 mmap shared fixed at somewhere currently unmapped
7115 mmap shared fixed at somewhere already mapped
7116 For private mappings, we should verify that changes cannot be read()
7117 back from the file, nor mmap's back from the file at a different
7118 address. (There have been systems where private was not correctly
7119 implemented like the infamous i386 svr4.0, and systems where the
7120 VM page cache was not coherent with the file system buffer cache
7121 like early versions of FreeBSD and possibly contemporary NetBSD.)
7122 For shared mappings, we should conversely verify that changes get
7123 propagated back to all the places they're supposed to be.
7125 Grep wants private fixed already mapped.
7126 The main things grep needs to know about mmap are:
7127 * does it exist and is it safe to write into the mmap'd area
7128 * how to use it (BSD variants) */
7131 #include <sys/mman.h>
7133 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7137 /* This mess was copied from the GNU getpagesize.h. */
7138 #ifndef HAVE_GETPAGESIZE
7139 # ifdef _SC_PAGESIZE
7140 # define getpagesize() sysconf(_SC_PAGESIZE)
7141 # else /* no _SC_PAGESIZE */
7142 # ifdef HAVE_SYS_PARAM_H
7143 # include <sys/param.h>
7144 # ifdef EXEC_PAGESIZE
7145 # define getpagesize() EXEC_PAGESIZE
7146 # else /* no EXEC_PAGESIZE */
7148 # define getpagesize() NBPG * CLSIZE
7151 # endif /* no CLSIZE */
7152 # else /* no NBPG */
7154 # define getpagesize() NBPC
7155 # else /* no NBPC */
7157 # define getpagesize() PAGESIZE
7158 # endif /* PAGESIZE */
7159 # endif /* no NBPC */
7160 # endif /* no NBPG */
7161 # endif /* no EXEC_PAGESIZE */
7162 # else /* no HAVE_SYS_PARAM_H */
7163 # define getpagesize() 8192 /* punt totally */
7164 # endif /* no HAVE_SYS_PARAM_H */
7165 # endif /* no _SC_PAGESIZE */
7167 #endif /* no HAVE_GETPAGESIZE */
7172 char *data, *data2, *data3;
7177 pagesize = getpagesize ();
7179 /* First, make a file with some known garbage in it. */
7180 data = (char *) malloc (pagesize);
7183 for (i = 0; i < pagesize; ++i)
7184 *(data + i) = rand ();
7186 fd = creat ("conftest.mmap", 0600);
7189 if (write (fd, data, pagesize) != pagesize)
7193 /* Next, check that the tail of a page is zero-filled. File must have
7194 non-zero length, otherwise we risk SIGBUS for entire page. */
7195 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7199 if (write (fd2, cdata2, 1) != 1)
7201 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7202 if (data2 == MAP_FAILED)
7204 for (i = 0; i < pagesize; ++i)
7208 if (munmap (data2, pagesize))
7211 /* Next, try to mmap the file at a fixed address which already has
7212 something else allocated at it. If we can, also make sure that
7213 we see the same garbage. */
7214 fd = open ("conftest.mmap", O_RDWR);
7217 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7218 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7220 for (i = 0; i < pagesize; ++i)
7221 if (*(data + i) != *(data2 + i))
7224 /* Finally, make sure that changes to the mapped area do not
7225 percolate back to the file as seen by read(). (This is a bug on
7226 some variants of i386 svr4.0.) */
7227 for (i = 0; i < pagesize; ++i)
7228 *(data2 + i) = *(data2 + i) + 1;
7229 data3 = (char *) malloc (pagesize);
7232 if (read (fd, data3, pagesize) != pagesize)
7234 for (i = 0; i < pagesize; ++i)
7235 if (*(data + i) != *(data3 + i))
7241 if ac_fn_c_try_run "$LINENO"; then :
7242 ac_cv_func_mmap_fixed_mapped=yes
7244 ac_cv_func_mmap_fixed_mapped=no
7246 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7247 conftest.$ac_objext conftest.beam conftest.$ac_ext
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7252 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7253 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7255 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7258 rm -f conftest.mmap conftest.txt
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
7263 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
7264 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
7265 $as_echo_n "(cached) " >&6
7268 gt_cv_int_divbyzero_sigfpe=
7270 macos* | darwin[6-9]* | darwin[1-9][0-9]*)
7271 # On Mac OS X 10.2 or newer, just assume the same as when cross-
7272 # compiling. If we were to perform the real test, 1 Crash Report
7273 # dialog window would pop up.
7275 i[34567]86 | x86_64)
7276 gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
7280 if test -z "$gt_cv_int_divbyzero_sigfpe"; then
7281 if test "$cross_compiling" = yes; then :
7283 # Guess based on the CPU.
7285 alpha* | i[34567]86 | x86_64 | m68k | s390*)
7286 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7288 gt_cv_int_divbyzero_sigfpe="guessing no";;
7292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7293 /* end confdefs.h. */
7299 sigfpe_handler (int sig)
7301 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
7302 exit (sig != SIGFPE);
7312 signal (SIGFPE, sigfpe_handler);
7313 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
7314 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7315 signal (SIGTRAP, sigfpe_handler);
7317 /* Linux/SPARC yields signal SIGILL. */
7318 #if defined (__sparc__) && defined (__linux__)
7319 signal (SIGILL, sigfpe_handler);
7328 if ac_fn_c_try_run "$LINENO"; then :
7329 gt_cv_int_divbyzero_sigfpe=yes
7331 gt_cv_int_divbyzero_sigfpe=no
7333 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7334 conftest.$ac_objext conftest.beam conftest.$ac_ext
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
7341 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
7342 case "$gt_cv_int_divbyzero_sigfpe" in
7347 cat >>confdefs.h <<_ACEOF
7348 #define INTDIV0_RAISES_SIGFPE $value
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7354 $as_echo_n "checking for inttypes.h... " >&6; }
7355 if ${gl_cv_header_inttypes_h+:} false; then :
7356 $as_echo_n "(cached) " >&6
7358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7359 /* end confdefs.h. */
7361 #include <sys/types.h>
7362 #include <inttypes.h>
7367 uintmax_t i = (uintmax_t) -1; return !i;
7372 if ac_fn_c_try_compile "$LINENO"; then :
7373 gl_cv_header_inttypes_h=yes
7375 gl_cv_header_inttypes_h=no
7377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
7380 $as_echo "$gl_cv_header_inttypes_h" >&6; }
7381 if test $gl_cv_header_inttypes_h = yes; then
7383 cat >>confdefs.h <<_ACEOF
7384 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
7391 $as_echo_n "checking for unsigned long long int... " >&6; }
7392 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
7393 $as_echo_n "(cached) " >&6
7395 ac_cv_type_unsigned_long_long_int=yes
7396 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
7397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7398 /* end confdefs.h. */
7400 /* For now, do not test the preprocessor; as of 2007 there are too many
7401 implementations with broken preprocessors. Perhaps this can
7402 be revisited in 2012. In the meantime, code should not expect
7403 #if to work with literals wider than 32 bits. */
7404 /* Test literals. */
7405 long long int ll = 9223372036854775807ll;
7406 long long int nll = -9223372036854775807LL;
7407 unsigned long long int ull = 18446744073709551615ULL;
7408 /* Test constant expressions. */
7409 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
7411 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
7417 /* Test availability of runtime routines for shift and division. */
7418 long long int llmax = 9223372036854775807ll;
7419 unsigned long long int ullmax = 18446744073709551615ull;
7420 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
7421 | (llmax / ll) | (llmax % ll)
7422 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
7423 | (ullmax / ull) | (ullmax % ull));
7429 if ac_fn_c_try_link "$LINENO"; then :
7432 ac_cv_type_unsigned_long_long_int=no
7434 rm -f core conftest.err conftest.$ac_objext \
7435 conftest$ac_exeext conftest.$ac_ext
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
7439 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
7440 if test $ac_cv_type_unsigned_long_long_int = yes; then
7442 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
7449 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
7451 test $ac_cv_type_unsigned_long_long_int = yes \
7452 && ac_type='unsigned long long' \
7453 || ac_type='unsigned long'
7455 cat >>confdefs.h <<_ACEOF
7456 #define uintmax_t $ac_type
7461 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
7466 for ac_header in inttypes.h
7468 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
7469 if test "x$ac_cv_header_inttypes_h" = xyes; then :
7470 cat >>confdefs.h <<_ACEOF
7471 #define HAVE_INTTYPES_H 1
7478 if test $ac_cv_header_inttypes_h = yes; then
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
7480 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7481 if ${gt_cv_inttypes_pri_broken+:} false; then :
7482 $as_echo_n "(cached) " >&6
7485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7486 /* end confdefs.h. */
7488 #include <inttypes.h>
7501 if ac_fn_c_try_compile "$LINENO"; then :
7502 gt_cv_inttypes_pri_broken=no
7504 gt_cv_inttypes_pri_broken=yes
7506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
7510 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7512 if test "$gt_cv_inttypes_pri_broken" = yes; then
7514 cat >>confdefs.h <<_ACEOF
7515 #define PRI_MACROS_BROKEN 1
7529 # Check whether --enable-threads was given.
7530 if test "${enable_threads+set}" = set; then :
7531 enableval=$enable_threads; gl_use_threads=$enableval
7533 if test -n "$gl_use_threads_default"; then
7534 gl_use_threads="$gl_use_threads_default"
7537 osf*) gl_use_threads=no ;;
7540 1.[0-5].*) gl_use_threads=no ;;
7541 *) gl_use_threads=yes ;;
7544 *) gl_use_threads=yes ;;
7550 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7551 # For using <pthread.h>:
7554 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
7555 # groks <pthread.h>. cc also understands the flag -pthread, but
7556 # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
7557 # 2. putting a flag into CPPFLAGS that has an effect on the linker
7558 # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
7559 # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
7560 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
7563 # Some systems optimize for single-threaded programs by default, and
7564 # need special flags to disable these optimizations. For example, the
7565 # definition of 'errno' in <errno.h>.
7567 aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
7568 solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
7576 if test "X$prefix" = "XNONE"; then
7577 acl_final_prefix="$ac_default_prefix"
7579 acl_final_prefix="$prefix"
7581 if test "X$exec_prefix" = "XNONE"; then
7582 acl_final_exec_prefix='${prefix}'
7584 acl_final_exec_prefix="$exec_prefix"
7586 acl_save_prefix="$prefix"
7587 prefix="$acl_final_prefix"
7588 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7589 prefix="$acl_save_prefix"
7593 # Check whether --with-gnu-ld was given.
7594 if test "${with_gnu_ld+set}" = set; then :
7595 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7600 # Prepare PATH_SEPARATOR.
7601 # The user is always right.
7602 if test "${PATH_SEPARATOR+set}" != set; then
7603 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7604 # contains only /bin. Note that ksh looks also at the FPATH variable,
7605 # so we have to set that as well for the test.
7607 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7608 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7609 || PATH_SEPARATOR=';'
7614 if test "$GCC" = yes; then
7615 # Check if gcc -print-prog-name=ld gives a path.
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7617 $as_echo_n "checking for ld used by $CC... " >&6; }
7620 # gcc leaves a trailing carriage return which upsets mingw
7621 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7623 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7626 # Accept absolute paths.
7628 re_direlt='/[^/][^/]*/\.\./'
7629 # Canonicalize the pathname of ld
7630 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
7631 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
7632 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7634 test -z "$LD" && LD="$ac_prog"
7637 # If it fails, then pretend we aren't using GCC.
7641 # If it is relative, then search for the first ld in PATH.
7645 elif test "$with_gnu_ld" = yes; then
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7647 $as_echo_n "checking for GNU ld... " >&6; }
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7650 $as_echo_n "checking for non-GNU ld... " >&6; }
7652 if ${acl_cv_path_LD+:} false; then :
7653 $as_echo_n "(cached) " >&6
7655 if test -z "$LD"; then
7656 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7657 for ac_dir in $PATH; do
7659 test -z "$ac_dir" && ac_dir=.
7660 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7661 acl_cv_path_LD="$ac_dir/$ac_prog"
7662 # Check to see if the program is GNU ld. I'd rather use --version,
7663 # but apparently some variants of GNU ld only accept -v.
7664 # Break only if it was the GNU/non-GNU ld that we prefer.
7665 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
7666 *GNU* | *'with BFD'*)
7667 test "$with_gnu_ld" != no && break
7670 test "$with_gnu_ld" != yes && break
7677 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7681 LD="$acl_cv_path_LD"
7682 if test -n "$LD"; then
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7684 $as_echo "$LD" >&6; }
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7687 $as_echo "no" >&6; }
7689 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7691 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7692 if ${acl_cv_prog_gnu_ld+:} false; then :
7693 $as_echo_n "(cached) " >&6
7695 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7696 case `$LD -v 2>&1 </dev/null` in
7697 *GNU* | *'with BFD'*)
7698 acl_cv_prog_gnu_ld=yes
7701 acl_cv_prog_gnu_ld=no
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7706 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7707 with_gnu_ld=$acl_cv_prog_gnu_ld
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7713 $as_echo_n "checking for shared library run path origin... " >&6; }
7714 if ${acl_cv_rpath+:} false; then :
7715 $as_echo_n "(cached) " >&6
7718 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7719 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7726 $as_echo "$acl_cv_rpath" >&6; }
7728 acl_libext="$acl_cv_libext"
7729 acl_shlibext="$acl_cv_shlibext"
7730 acl_libname_spec="$acl_cv_libname_spec"
7731 acl_library_names_spec="$acl_cv_library_names_spec"
7732 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7733 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7734 acl_hardcode_direct="$acl_cv_hardcode_direct"
7735 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
7736 # Check whether --enable-rpath was given.
7737 if test "${enable_rpath+set}" = set; then :
7738 enableval=$enable_rpath; :
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
7751 $as_echo_n "checking for 64-bit host... " >&6; }
7752 if ${gl_cv_solaris_64bit+:} false; then :
7753 $as_echo_n "(cached) " >&6
7755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7756 /* end confdefs.h. */
7763 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7764 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
7765 gl_cv_solaris_64bit=yes
7767 gl_cv_solaris_64bit=no
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
7774 $as_echo "$gl_cv_solaris_64bit" >&6; }
7775 if test $gl_cv_solaris_64bit = yes; then
7776 acl_libdirstem=lib/64
7778 sparc*) acl_libdirstem2=lib/sparcv9 ;;
7779 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
7784 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
7785 if test -n "$searchpath"; then
7786 acl_save_IFS="${IFS= }"; IFS=":"
7787 for searchdir in $searchpath; do
7788 if test -d "$searchdir"; then
7789 case "$searchdir" in
7790 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
7792 # Better ignore directories of this form. They are misleading.
7794 *) searchdir=`cd "$searchdir" && pwd`
7795 case "$searchdir" in
7796 */lib64 ) acl_libdirstem=lib64 ;;
7805 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
7814 if test "$gl_use_threads" != no; then
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
7816 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
7817 if ${gl_cv_have_weak+:} false; then :
7818 $as_echo_n "(cached) " >&6
7821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7822 /* end confdefs.h. */
7823 extern void xyzzy ();
7833 if ac_fn_c_try_link "$LINENO"; then :
7834 gl_cv_have_weak=maybe
7836 rm -f core conftest.err conftest.$ac_objext \
7837 conftest$ac_exeext conftest.$ac_ext
7838 if test $gl_cv_have_weak = maybe; then
7839 if test "$cross_compiling" = yes; then :
7840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7841 /* end confdefs.h. */
7843 Extensible Linking Format
7847 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7848 $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
7849 gl_cv_have_weak="guessing yes"
7851 gl_cv_have_weak="guessing no"
7857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7858 /* end confdefs.h. */
7864 return (fputs == NULL);
7867 if ac_fn_c_try_run "$LINENO"; then :
7872 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7873 conftest.$ac_objext conftest.beam conftest.$ac_ext
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
7880 $as_echo "$gl_cv_have_weak" >&6; }
7881 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7882 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
7883 # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
7884 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
7885 if test "x$ac_cv_header_pthread_h" = xyes; then :
7886 gl_have_pthread_h=yes
7888 gl_have_pthread_h=no
7892 if test "$gl_have_pthread_h" = yes; then
7893 # Other possible tests:
7894 # -lpthreads (FSU threads, PCthreads)
7897 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
7898 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
7899 # the second one only in libpthread, and lock.c needs it.
7900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7901 /* end confdefs.h. */
7902 #include <pthread.h>
7906 pthread_mutex_lock((pthread_mutex_t*)0);
7907 pthread_mutexattr_init((pthread_mutexattr_t*)0);
7912 if ac_fn_c_try_link "$LINENO"; then :
7915 rm -f core conftest.err conftest.$ac_objext \
7916 conftest$ac_exeext conftest.$ac_ext
7917 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
7918 # since it is defined as a macro on OSF/1.)
7919 if test -n "$gl_have_pthread"; then
7920 # The program links fine without libpthread. But it may actually
7921 # need to link with libpthread in order to create multiple threads.
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
7923 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
7924 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
7925 $as_echo_n "(cached) " >&6
7927 ac_check_lib_save_LIBS=$LIBS
7928 LIBS="-lpthread $LIBS"
7929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7930 /* end confdefs.h. */
7932 /* Override any GCC internal prototype to avoid an error.
7933 Use char because int might match the return type of a GCC
7934 builtin and then its argument prototype would still apply. */
7938 char pthread_kill ();
7942 return pthread_kill ();
7947 if ac_fn_c_try_link "$LINENO"; then :
7948 ac_cv_lib_pthread_pthread_kill=yes
7950 ac_cv_lib_pthread_pthread_kill=no
7952 rm -f core conftest.err conftest.$ac_objext \
7953 conftest$ac_exeext conftest.$ac_ext
7954 LIBS=$ac_check_lib_save_LIBS
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
7957 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
7958 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
7959 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
7960 # On Solaris and HP-UX, most pthread functions exist also in libc.
7961 # Therefore pthread_in_use() needs to actually try to create a
7962 # thread: pthread_create from libc will fail, whereas
7963 # pthread_create will actually create a thread.
7967 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
7974 # Some library is needed. Try libpthread and libc_r.
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
7976 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
7977 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
7978 $as_echo_n "(cached) " >&6
7980 ac_check_lib_save_LIBS=$LIBS
7981 LIBS="-lpthread $LIBS"
7982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7983 /* end confdefs.h. */
7985 /* Override any GCC internal prototype to avoid an error.
7986 Use char because int might match the return type of a GCC
7987 builtin and then its argument prototype would still apply. */
7991 char pthread_kill ();
7995 return pthread_kill ();
8000 if ac_fn_c_try_link "$LINENO"; then :
8001 ac_cv_lib_pthread_pthread_kill=yes
8003 ac_cv_lib_pthread_pthread_kill=no
8005 rm -f core conftest.err conftest.$ac_objext \
8006 conftest$ac_exeext conftest.$ac_ext
8007 LIBS=$ac_check_lib_save_LIBS
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
8010 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
8011 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
8013 LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
8014 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
8017 if test -z "$gl_have_pthread"; then
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
8020 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
8021 if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
8022 $as_echo_n "(cached) " >&6
8024 ac_check_lib_save_LIBS=$LIBS
8026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8027 /* end confdefs.h. */
8029 /* Override any GCC internal prototype to avoid an error.
8030 Use char because int might match the return type of a GCC
8031 builtin and then its argument prototype would still apply. */
8035 char pthread_kill ();
8039 return pthread_kill ();
8044 if ac_fn_c_try_link "$LINENO"; then :
8045 ac_cv_lib_c_r_pthread_kill=yes
8047 ac_cv_lib_c_r_pthread_kill=no
8049 rm -f core conftest.err conftest.$ac_objext \
8050 conftest$ac_exeext conftest.$ac_ext
8051 LIBS=$ac_check_lib_save_LIBS
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
8054 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
8055 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
8057 LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
8058 LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
8063 if test -n "$gl_have_pthread"; then
8064 gl_threads_api=posix
8066 $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
8068 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8069 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8071 $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
8080 if test -z "$gl_have_pthread"; then
8081 if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
8082 gl_have_solaristhread=
8083 gl_save_LIBS="$LIBS"
8084 LIBS="$LIBS -lthread"
8085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8086 /* end confdefs.h. */
8099 if ac_fn_c_try_link "$LINENO"; then :
8100 gl_have_solaristhread=yes
8102 rm -f core conftest.err conftest.$ac_objext \
8103 conftest$ac_exeext conftest.$ac_ext
8104 LIBS="$gl_save_LIBS"
8105 if test -n "$gl_have_solaristhread"; then
8106 gl_threads_api=solaris
8108 LTLIBTHREAD=-lthread
8109 LIBMULTITHREAD="$LIBTHREAD"
8110 LTLIBMULTITHREAD="$LTLIBTHREAD"
8112 $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
8114 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8116 $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
8124 if test "$gl_use_threads" = pth; then
8125 gl_save_CPPFLAGS="$CPPFLAGS"
8131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
8132 $as_echo_n "checking how to link with libpth... " >&6; }
8133 if ${ac_cv_libpth_libs+:} false; then :
8134 $as_echo_n "(cached) " >&6
8146 acl_save_prefix="$prefix"
8147 prefix="$acl_final_prefix"
8148 acl_save_exec_prefix="$exec_prefix"
8149 exec_prefix="$acl_final_exec_prefix"
8151 eval additional_includedir=\"$includedir\"
8152 eval additional_libdir=\"$libdir\"
8154 exec_prefix="$acl_save_exec_prefix"
8155 prefix="$acl_save_prefix"
8158 # Check whether --with-libpth-prefix was given.
8159 if test "${with_libpth_prefix+set}" = set; then :
8160 withval=$with_libpth_prefix;
8161 if test "X$withval" = "Xno"; then
8164 if test "X$withval" = "X"; then
8166 acl_save_prefix="$prefix"
8167 prefix="$acl_final_prefix"
8168 acl_save_exec_prefix="$exec_prefix"
8169 exec_prefix="$acl_final_exec_prefix"
8171 eval additional_includedir=\"$includedir\"
8172 eval additional_libdir=\"$libdir\"
8174 exec_prefix="$acl_save_exec_prefix"
8175 prefix="$acl_save_prefix"
8178 additional_includedir="$withval/include"
8179 additional_libdir="$withval/$acl_libdirstem"
8180 if test "$acl_libdirstem2" != "$acl_libdirstem" \
8181 && ! test -d "$withval/$acl_libdirstem"; then
8182 additional_libdir="$withval/$acl_libdirstem2"
8196 names_already_handled=
8197 names_next_round='pth '
8198 while test -n "$names_next_round"; do
8199 names_this_round="$names_next_round"
8201 for name in $names_this_round; do
8203 for n in $names_already_handled; do
8204 if test "$n" = "$name"; then
8209 if test -z "$already_handled"; then
8210 names_already_handled="$names_already_handled $name"
8211 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8212 eval value=\"\$HAVE_LIB$uppername\"
8213 if test -n "$value"; then
8214 if test "$value" = yes; then
8215 eval value=\"\$LIB$uppername\"
8216 test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
8217 eval value=\"\$LTLIB$uppername\"
8218 test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
8227 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8228 if test -n "$acl_shlibext"; then
8229 shrext=".$acl_shlibext" # typically: shrext=.so
8233 if test $use_additional = yes; then
8234 dir="$additional_libdir"
8235 if test -n "$acl_shlibext"; then
8236 if test -f "$dir/$libname$shrext"; then
8238 found_so="$dir/$libname$shrext"
8240 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8241 ver=`(cd "$dir" && \
8242 for f in "$libname$shrext".*; do echo "$f"; done \
8243 | sed -e "s,^$libname$shrext\\\\.,," \
8244 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8245 | sed 1q ) 2>/dev/null`
8246 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8248 found_so="$dir/$libname$shrext.$ver"
8251 eval library_names=\"$acl_library_names_spec\"
8252 for f in $library_names; do
8253 if test -f "$dir/$f"; then
8262 if test "X$found_dir" = "X"; then
8263 if test -f "$dir/$libname.$acl_libext"; then
8265 found_a="$dir/$libname.$acl_libext"
8268 if test "X$found_dir" != "X"; then
8269 if test -f "$dir/$libname.la"; then
8270 found_la="$dir/$libname.la"
8274 if test "X$found_dir" = "X"; then
8275 for x in $LDFLAGS $LTLIBPTH; do
8277 acl_save_prefix="$prefix"
8278 prefix="$acl_final_prefix"
8279 acl_save_exec_prefix="$exec_prefix"
8280 exec_prefix="$acl_final_exec_prefix"
8282 exec_prefix="$acl_save_exec_prefix"
8283 prefix="$acl_save_prefix"
8287 dir=`echo "X$x" | sed -e 's/^X-L//'`
8288 if test -n "$acl_shlibext"; then
8289 if test -f "$dir/$libname$shrext"; then
8291 found_so="$dir/$libname$shrext"
8293 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8294 ver=`(cd "$dir" && \
8295 for f in "$libname$shrext".*; do echo "$f"; done \
8296 | sed -e "s,^$libname$shrext\\\\.,," \
8297 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8298 | sed 1q ) 2>/dev/null`
8299 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8301 found_so="$dir/$libname$shrext.$ver"
8304 eval library_names=\"$acl_library_names_spec\"
8305 for f in $library_names; do
8306 if test -f "$dir/$f"; then
8315 if test "X$found_dir" = "X"; then
8316 if test -f "$dir/$libname.$acl_libext"; then
8318 found_a="$dir/$libname.$acl_libext"
8321 if test "X$found_dir" != "X"; then
8322 if test -f "$dir/$libname.la"; then
8323 found_la="$dir/$libname.la"
8328 if test "X$found_dir" != "X"; then
8333 if test "X$found_dir" != "X"; then
8334 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
8335 if test "X$found_so" != "X"; then
8336 if test "$enable_rpath" = no \
8337 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8338 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
8339 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8342 for x in $ltrpathdirs; do
8343 if test "X$x" = "X$found_dir"; then
8348 if test -z "$haveit"; then
8349 ltrpathdirs="$ltrpathdirs $found_dir"
8351 if test "$acl_hardcode_direct" = yes; then
8352 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8354 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8355 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8357 for x in $rpathdirs; do
8358 if test "X$x" = "X$found_dir"; then
8363 if test -z "$haveit"; then
8364 rpathdirs="$rpathdirs $found_dir"
8368 for x in $LDFLAGS $LIBPTH; do
8370 acl_save_prefix="$prefix"
8371 prefix="$acl_final_prefix"
8372 acl_save_exec_prefix="$exec_prefix"
8373 exec_prefix="$acl_final_exec_prefix"
8375 exec_prefix="$acl_save_exec_prefix"
8376 prefix="$acl_save_prefix"
8378 if test "X$x" = "X-L$found_dir"; then
8383 if test -z "$haveit"; then
8384 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
8386 if test "$acl_hardcode_minus_L" != no; then
8387 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8389 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8395 if test "X$found_a" != "X"; then
8396 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
8398 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
8401 additional_includedir=
8402 case "$found_dir" in
8403 */$acl_libdirstem | */$acl_libdirstem/)
8404 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8405 if test "$name" = 'pth'; then
8406 LIBPTH_PREFIX="$basedir"
8408 additional_includedir="$basedir/include"
8410 */$acl_libdirstem2 | */$acl_libdirstem2/)
8411 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
8412 if test "$name" = 'pth'; then
8413 LIBPTH_PREFIX="$basedir"
8415 additional_includedir="$basedir/include"
8418 if test "X$additional_includedir" != "X"; then
8419 if test "X$additional_includedir" != "X/usr/include"; then
8421 if test "X$additional_includedir" = "X/usr/local/include"; then
8422 if test -n "$GCC"; then
8424 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8428 if test -z "$haveit"; then
8429 for x in $CPPFLAGS $INCPTH; do
8431 acl_save_prefix="$prefix"
8432 prefix="$acl_final_prefix"
8433 acl_save_exec_prefix="$exec_prefix"
8434 exec_prefix="$acl_final_exec_prefix"
8436 exec_prefix="$acl_save_exec_prefix"
8437 prefix="$acl_save_prefix"
8439 if test "X$x" = "X-I$additional_includedir"; then
8444 if test -z "$haveit"; then
8445 if test -d "$additional_includedir"; then
8446 INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
8452 if test -n "$found_la"; then
8453 save_libdir="$libdir"
8455 */* | *\\*) . "$found_la" ;;
8456 *) . "./$found_la" ;;
8458 libdir="$save_libdir"
8459 for dep in $dependency_libs; do
8462 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8463 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
8464 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
8466 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
8467 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
8468 if test -n "$GCC"; then
8470 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8474 if test -z "$haveit"; then
8476 for x in $LDFLAGS $LIBPTH; do
8478 acl_save_prefix="$prefix"
8479 prefix="$acl_final_prefix"
8480 acl_save_exec_prefix="$exec_prefix"
8481 exec_prefix="$acl_final_exec_prefix"
8483 exec_prefix="$acl_save_exec_prefix"
8484 prefix="$acl_save_prefix"
8486 if test "X$x" = "X-L$additional_libdir"; then
8491 if test -z "$haveit"; then
8492 if test -d "$additional_libdir"; then
8493 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
8497 for x in $LDFLAGS $LTLIBPTH; do
8499 acl_save_prefix="$prefix"
8500 prefix="$acl_final_prefix"
8501 acl_save_exec_prefix="$exec_prefix"
8502 exec_prefix="$acl_final_exec_prefix"
8504 exec_prefix="$acl_save_exec_prefix"
8505 prefix="$acl_save_prefix"
8507 if test "X$x" = "X-L$additional_libdir"; then
8512 if test -z "$haveit"; then
8513 if test -d "$additional_libdir"; then
8514 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
8521 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8522 if test "$enable_rpath" != no; then
8524 for x in $rpathdirs; do
8525 if test "X$x" = "X$dir"; then
8530 if test -z "$haveit"; then
8531 rpathdirs="$rpathdirs $dir"
8534 for x in $ltrpathdirs; do
8535 if test "X$x" = "X$dir"; then
8540 if test -z "$haveit"; then
8541 ltrpathdirs="$ltrpathdirs $dir"
8546 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8549 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8552 LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
8553 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
8559 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8560 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
8566 if test "X$rpathdirs" != "X"; then
8567 if test -n "$acl_hardcode_libdir_separator"; then
8569 for found_dir in $rpathdirs; do
8570 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
8572 acl_save_libdir="$libdir"
8574 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8575 libdir="$acl_save_libdir"
8576 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
8578 for found_dir in $rpathdirs; do
8579 acl_save_libdir="$libdir"
8581 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8582 libdir="$acl_save_libdir"
8583 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
8587 if test "X$ltrpathdirs" != "X"; then
8588 for found_dir in $ltrpathdirs; do
8589 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
8598 ac_cv_libpth_libs="$LIBPTH"
8599 ac_cv_libpth_ltlibs="$LTLIBPTH"
8600 ac_cv_libpth_cppflags="$INCPTH"
8601 ac_cv_libpth_prefix="$LIBPTH_PREFIX"
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
8605 $as_echo "$ac_cv_libpth_libs" >&6; }
8606 LIBPTH="$ac_cv_libpth_libs"
8607 LTLIBPTH="$ac_cv_libpth_ltlibs"
8608 INCPTH="$ac_cv_libpth_cppflags"
8609 LIBPTH_PREFIX="$ac_cv_libpth_prefix"
8611 for element in $INCPTH; do
8613 for x in $CPPFLAGS; do
8615 acl_save_prefix="$prefix"
8616 prefix="$acl_final_prefix"
8617 acl_save_exec_prefix="$exec_prefix"
8618 exec_prefix="$acl_final_exec_prefix"
8620 exec_prefix="$acl_save_exec_prefix"
8621 prefix="$acl_save_prefix"
8623 if test "X$x" = "X$element"; then
8628 if test -z "$haveit"; then
8629 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8641 gl_save_LIBS="$LIBS"
8642 LIBS="$LIBS $LIBPTH"
8643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8644 /* end confdefs.h. */
8654 if ac_fn_c_try_link "$LINENO"; then :
8657 rm -f core conftest.err conftest.$ac_objext \
8658 conftest$ac_exeext conftest.$ac_ext
8659 LIBS="$gl_save_LIBS"
8660 if test -n "$gl_have_pth"; then
8663 LTLIBTHREAD="$LTLIBPTH"
8664 LIBMULTITHREAD="$LIBTHREAD"
8665 LTLIBMULTITHREAD="$LTLIBTHREAD"
8667 $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
8669 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8670 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8672 $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
8679 CPPFLAGS="$gl_save_CPPFLAGS"
8682 if test -z "$gl_have_pthread"; then
8683 case "$gl_use_threads" in
8684 yes | windows | win32) # The 'win32' is for backward compatibility.
8685 if { case "$host_os" in
8690 gl_threads_api=windows
8692 $as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h
8699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
8700 $as_echo_n "checking for multithread API to use... " >&6; }
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
8702 $as_echo "$gl_threads_api" >&6; }
8714 if test "$gl_threads_api" = posix; then
8715 # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
8716 # pthread_rwlock_* functions.
8717 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
8719 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
8721 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
8725 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
8726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8727 /* end confdefs.h. */
8729 #include <pthread.h>
8734 #if __FreeBSD__ == 4
8735 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
8736 #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
8737 && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
8738 error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
8740 int x = (int)PTHREAD_MUTEX_RECURSIVE;
8748 if ac_fn_c_try_compile "$LINENO"; then :
8750 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
8753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8770 acl_save_prefix="$prefix"
8771 prefix="$acl_final_prefix"
8772 acl_save_exec_prefix="$exec_prefix"
8773 exec_prefix="$acl_final_exec_prefix"
8775 eval additional_includedir=\"$includedir\"
8776 eval additional_libdir=\"$libdir\"
8778 exec_prefix="$acl_save_exec_prefix"
8779 prefix="$acl_save_prefix"
8782 # Check whether --with-libiconv-prefix was given.
8783 if test "${with_libiconv_prefix+set}" = set; then :
8784 withval=$with_libiconv_prefix;
8785 if test "X$withval" = "Xno"; then
8788 if test "X$withval" = "X"; then
8790 acl_save_prefix="$prefix"
8791 prefix="$acl_final_prefix"
8792 acl_save_exec_prefix="$exec_prefix"
8793 exec_prefix="$acl_final_exec_prefix"
8795 eval additional_includedir=\"$includedir\"
8796 eval additional_libdir=\"$libdir\"
8798 exec_prefix="$acl_save_exec_prefix"
8799 prefix="$acl_save_prefix"
8802 additional_includedir="$withval/include"
8803 additional_libdir="$withval/$acl_libdirstem"
8804 if test "$acl_libdirstem2" != "$acl_libdirstem" \
8805 && ! test -d "$withval/$acl_libdirstem"; then
8806 additional_libdir="$withval/$acl_libdirstem2"
8820 names_already_handled=
8821 names_next_round='iconv '
8822 while test -n "$names_next_round"; do
8823 names_this_round="$names_next_round"
8825 for name in $names_this_round; do
8827 for n in $names_already_handled; do
8828 if test "$n" = "$name"; then
8833 if test -z "$already_handled"; then
8834 names_already_handled="$names_already_handled $name"
8835 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8836 eval value=\"\$HAVE_LIB$uppername\"
8837 if test -n "$value"; then
8838 if test "$value" = yes; then
8839 eval value=\"\$LIB$uppername\"
8840 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8841 eval value=\"\$LTLIB$uppername\"
8842 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8851 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8852 if test -n "$acl_shlibext"; then
8853 shrext=".$acl_shlibext" # typically: shrext=.so
8857 if test $use_additional = yes; then
8858 dir="$additional_libdir"
8859 if test -n "$acl_shlibext"; then
8860 if test -f "$dir/$libname$shrext"; then
8862 found_so="$dir/$libname$shrext"
8864 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8865 ver=`(cd "$dir" && \
8866 for f in "$libname$shrext".*; do echo "$f"; done \
8867 | sed -e "s,^$libname$shrext\\\\.,," \
8868 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8869 | sed 1q ) 2>/dev/null`
8870 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8872 found_so="$dir/$libname$shrext.$ver"
8875 eval library_names=\"$acl_library_names_spec\"
8876 for f in $library_names; do
8877 if test -f "$dir/$f"; then
8886 if test "X$found_dir" = "X"; then
8887 if test -f "$dir/$libname.$acl_libext"; then
8889 found_a="$dir/$libname.$acl_libext"
8892 if test "X$found_dir" != "X"; then
8893 if test -f "$dir/$libname.la"; then
8894 found_la="$dir/$libname.la"
8898 if test "X$found_dir" = "X"; then
8899 for x in $LDFLAGS $LTLIBICONV; do
8901 acl_save_prefix="$prefix"
8902 prefix="$acl_final_prefix"
8903 acl_save_exec_prefix="$exec_prefix"
8904 exec_prefix="$acl_final_exec_prefix"
8906 exec_prefix="$acl_save_exec_prefix"
8907 prefix="$acl_save_prefix"
8911 dir=`echo "X$x" | sed -e 's/^X-L//'`
8912 if test -n "$acl_shlibext"; then
8913 if test -f "$dir/$libname$shrext"; then
8915 found_so="$dir/$libname$shrext"
8917 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8918 ver=`(cd "$dir" && \
8919 for f in "$libname$shrext".*; do echo "$f"; done \
8920 | sed -e "s,^$libname$shrext\\\\.,," \
8921 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8922 | sed 1q ) 2>/dev/null`
8923 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8925 found_so="$dir/$libname$shrext.$ver"
8928 eval library_names=\"$acl_library_names_spec\"
8929 for f in $library_names; do
8930 if test -f "$dir/$f"; then
8939 if test "X$found_dir" = "X"; then
8940 if test -f "$dir/$libname.$acl_libext"; then
8942 found_a="$dir/$libname.$acl_libext"
8945 if test "X$found_dir" != "X"; then
8946 if test -f "$dir/$libname.la"; then
8947 found_la="$dir/$libname.la"
8952 if test "X$found_dir" != "X"; then
8957 if test "X$found_dir" != "X"; then
8958 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8959 if test "X$found_so" != "X"; then
8960 if test "$enable_rpath" = no \
8961 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8962 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
8963 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8966 for x in $ltrpathdirs; do
8967 if test "X$x" = "X$found_dir"; then
8972 if test -z "$haveit"; then
8973 ltrpathdirs="$ltrpathdirs $found_dir"
8975 if test "$acl_hardcode_direct" = yes; then
8976 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8978 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8979 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8981 for x in $rpathdirs; do
8982 if test "X$x" = "X$found_dir"; then
8987 if test -z "$haveit"; then
8988 rpathdirs="$rpathdirs $found_dir"
8992 for x in $LDFLAGS $LIBICONV; do
8994 acl_save_prefix="$prefix"
8995 prefix="$acl_final_prefix"
8996 acl_save_exec_prefix="$exec_prefix"
8997 exec_prefix="$acl_final_exec_prefix"
8999 exec_prefix="$acl_save_exec_prefix"
9000 prefix="$acl_save_prefix"
9002 if test "X$x" = "X-L$found_dir"; then
9007 if test -z "$haveit"; then
9008 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9010 if test "$acl_hardcode_minus_L" != no; then
9011 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9013 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9019 if test "X$found_a" != "X"; then
9020 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9022 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9025 additional_includedir=
9026 case "$found_dir" in
9027 */$acl_libdirstem | */$acl_libdirstem/)
9028 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9029 if test "$name" = 'iconv'; then
9030 LIBICONV_PREFIX="$basedir"
9032 additional_includedir="$basedir/include"
9034 */$acl_libdirstem2 | */$acl_libdirstem2/)
9035 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
9036 if test "$name" = 'iconv'; then
9037 LIBICONV_PREFIX="$basedir"
9039 additional_includedir="$basedir/include"
9042 if test "X$additional_includedir" != "X"; then
9043 if test "X$additional_includedir" != "X/usr/include"; then
9045 if test "X$additional_includedir" = "X/usr/local/include"; then
9046 if test -n "$GCC"; then
9048 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9052 if test -z "$haveit"; then
9053 for x in $CPPFLAGS $INCICONV; do
9055 acl_save_prefix="$prefix"
9056 prefix="$acl_final_prefix"
9057 acl_save_exec_prefix="$exec_prefix"
9058 exec_prefix="$acl_final_exec_prefix"
9060 exec_prefix="$acl_save_exec_prefix"
9061 prefix="$acl_save_prefix"
9063 if test "X$x" = "X-I$additional_includedir"; then
9068 if test -z "$haveit"; then
9069 if test -d "$additional_includedir"; then
9070 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9076 if test -n "$found_la"; then
9077 save_libdir="$libdir"
9079 */* | *\\*) . "$found_la" ;;
9080 *) . "./$found_la" ;;
9082 libdir="$save_libdir"
9083 for dep in $dependency_libs; do
9086 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9087 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
9088 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
9090 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
9091 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
9092 if test -n "$GCC"; then
9094 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9098 if test -z "$haveit"; then
9100 for x in $LDFLAGS $LIBICONV; do
9102 acl_save_prefix="$prefix"
9103 prefix="$acl_final_prefix"
9104 acl_save_exec_prefix="$exec_prefix"
9105 exec_prefix="$acl_final_exec_prefix"
9107 exec_prefix="$acl_save_exec_prefix"
9108 prefix="$acl_save_prefix"
9110 if test "X$x" = "X-L$additional_libdir"; then
9115 if test -z "$haveit"; then
9116 if test -d "$additional_libdir"; then
9117 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9121 for x in $LDFLAGS $LTLIBICONV; do
9123 acl_save_prefix="$prefix"
9124 prefix="$acl_final_prefix"
9125 acl_save_exec_prefix="$exec_prefix"
9126 exec_prefix="$acl_final_exec_prefix"
9128 exec_prefix="$acl_save_exec_prefix"
9129 prefix="$acl_save_prefix"
9131 if test "X$x" = "X-L$additional_libdir"; then
9136 if test -z "$haveit"; then
9137 if test -d "$additional_libdir"; then
9138 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9145 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9146 if test "$enable_rpath" != no; then
9148 for x in $rpathdirs; do
9149 if test "X$x" = "X$dir"; then
9154 if test -z "$haveit"; then
9155 rpathdirs="$rpathdirs $dir"
9158 for x in $ltrpathdirs; do
9159 if test "X$x" = "X$dir"; then
9164 if test -z "$haveit"; then
9165 ltrpathdirs="$ltrpathdirs $dir"
9170 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9173 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9176 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9177 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9183 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9184 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9190 if test "X$rpathdirs" != "X"; then
9191 if test -n "$acl_hardcode_libdir_separator"; then
9193 for found_dir in $rpathdirs; do
9194 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
9196 acl_save_libdir="$libdir"
9198 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9199 libdir="$acl_save_libdir"
9200 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9202 for found_dir in $rpathdirs; do
9203 acl_save_libdir="$libdir"
9205 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9206 libdir="$acl_save_libdir"
9207 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9211 if test "X$ltrpathdirs" != "X"; then
9212 for found_dir in $ltrpathdirs; do
9213 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9228 am_save_CPPFLAGS="$CPPFLAGS"
9230 for element in $INCICONV; do
9232 for x in $CPPFLAGS; do
9234 acl_save_prefix="$prefix"
9235 prefix="$acl_final_prefix"
9236 acl_save_exec_prefix="$exec_prefix"
9237 exec_prefix="$acl_final_exec_prefix"
9239 exec_prefix="$acl_save_exec_prefix"
9240 prefix="$acl_save_prefix"
9242 if test "X$x" = "X$element"; then
9247 if test -z "$haveit"; then
9248 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9254 $as_echo_n "checking for iconv... " >&6; }
9255 if ${am_cv_func_iconv+:} false; then :
9256 $as_echo_n "(cached) " >&6
9259 am_cv_func_iconv="no, consider installing GNU libiconv"
9261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9262 /* end confdefs.h. */
9270 iconv_t cd = iconv_open("","");
9271 iconv(cd,NULL,NULL,NULL,NULL);
9277 if ac_fn_c_try_link "$LINENO"; then :
9278 am_cv_func_iconv=yes
9280 rm -f core conftest.err conftest.$ac_objext \
9281 conftest$ac_exeext conftest.$ac_ext
9282 if test "$am_cv_func_iconv" != yes; then
9283 am_save_LIBS="$LIBS"
9284 LIBS="$LIBS $LIBICONV"
9285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9286 /* end confdefs.h. */
9294 iconv_t cd = iconv_open("","");
9295 iconv(cd,NULL,NULL,NULL,NULL);
9301 if ac_fn_c_try_link "$LINENO"; then :
9303 am_cv_func_iconv=yes
9305 rm -f core conftest.err conftest.$ac_objext \
9306 conftest$ac_exeext conftest.$ac_ext
9307 LIBS="$am_save_LIBS"
9311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9312 $as_echo "$am_cv_func_iconv" >&6; }
9313 if test "$am_cv_func_iconv" = yes; then
9314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
9315 $as_echo_n "checking for working iconv... " >&6; }
9316 if ${am_cv_func_iconv_works+:} false; then :
9317 $as_echo_n "(cached) " >&6
9320 am_save_LIBS="$LIBS"
9321 if test $am_cv_lib_iconv = yes; then
9322 LIBS="$LIBS $LIBICONV"
9324 if test "$cross_compiling" = yes; then :
9327 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
9328 *) am_cv_func_iconv_works="guessing yes" ;;
9332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9333 /* end confdefs.h. */
9340 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
9343 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
9344 if (cd_utf8_to_88591 != (iconv_t)(-1))
9346 static const char input[] = "\342\202\254"; /* EURO SIGN */
9348 const char *inptr = input;
9349 size_t inbytesleft = strlen (input);
9351 size_t outbytesleft = sizeof (buf);
9352 size_t res = iconv (cd_utf8_to_88591,
9353 (char **) &inptr, &inbytesleft,
9354 &outptr, &outbytesleft);
9357 iconv_close (cd_utf8_to_88591);
9360 /* Test against Solaris 10 bug: Failures are not distinguishable from
9361 successful returns. */
9363 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
9364 if (cd_ascii_to_88591 != (iconv_t)(-1))
9366 static const char input[] = "\263";
9368 const char *inptr = input;
9369 size_t inbytesleft = strlen (input);
9371 size_t outbytesleft = sizeof (buf);
9372 size_t res = iconv (cd_ascii_to_88591,
9373 (char **) &inptr, &inbytesleft,
9374 &outptr, &outbytesleft);
9377 iconv_close (cd_ascii_to_88591);
9380 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
9382 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
9383 if (cd_88591_to_utf8 != (iconv_t)(-1))
9385 static const char input[] = "\304";
9386 static char buf[2] = { (char)0xDE, (char)0xAD };
9387 const char *inptr = input;
9388 size_t inbytesleft = 1;
9390 size_t outbytesleft = 1;
9391 size_t res = iconv (cd_88591_to_utf8,
9392 (char **) &inptr, &inbytesleft,
9393 &outptr, &outbytesleft);
9394 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
9396 iconv_close (cd_88591_to_utf8);
9399 #if 0 /* This bug could be worked around by the caller. */
9400 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
9402 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
9403 if (cd_88591_to_utf8 != (iconv_t)(-1))
9405 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
9407 const char *inptr = input;
9408 size_t inbytesleft = strlen (input);
9410 size_t outbytesleft = sizeof (buf);
9411 size_t res = iconv (cd_88591_to_utf8,
9412 (char **) &inptr, &inbytesleft,
9413 &outptr, &outbytesleft);
9416 iconv_close (cd_88591_to_utf8);
9420 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
9422 if (/* Try standardized names. */
9423 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
9424 /* Try IRIX, OSF/1 names. */
9425 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
9426 /* Try AIX names. */
9427 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
9428 /* Try HP-UX names. */
9429 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
9434 if ac_fn_c_try_run "$LINENO"; then :
9435 am_cv_func_iconv_works=yes
9437 am_cv_func_iconv_works=no
9439 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9440 conftest.$ac_objext conftest.beam conftest.$ac_ext
9443 LIBS="$am_save_LIBS"
9446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
9447 $as_echo "$am_cv_func_iconv_works" >&6; }
9448 case "$am_cv_func_iconv_works" in
9449 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
9450 *) am_func_iconv=yes ;;
9453 am_func_iconv=no am_cv_lib_iconv=no
9455 if test "$am_func_iconv" = yes; then
9457 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9460 if test "$am_cv_lib_iconv" = yes; then
9461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9462 $as_echo_n "checking how to link with libiconv... " >&6; }
9463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9464 $as_echo "$LIBICONV" >&6; }
9466 CPPFLAGS="$am_save_CPPFLAGS"
9473 if test "$am_cv_func_iconv" = yes; then
9474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9475 $as_echo_n "checking for iconv declaration... " >&6; }
9476 if ${am_cv_proto_iconv+:} false; then :
9477 $as_echo_n "(cached) " >&6
9480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9481 /* end confdefs.h. */
9489 #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
9490 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9503 if ac_fn_c_try_compile "$LINENO"; then :
9504 am_cv_proto_iconv_arg1=""
9506 am_cv_proto_iconv_arg1="const"
9508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9509 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);"
9512 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9513 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
9514 $am_cv_proto_iconv" >&5
9516 $am_cv_proto_iconv" >&6; }
9518 cat >>confdefs.h <<_ACEOF
9519 #define ICONV_CONST $am_cv_proto_iconv_arg1
9528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9529 /* end confdefs.h. */
9530 int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
9539 if ac_fn_c_try_link "$LINENO"; then :
9541 $as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
9544 rm -f core conftest.err conftest.$ac_objext \
9545 conftest$ac_exeext conftest.$ac_ext
9547 for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
9549 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9550 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9551 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9552 cat >>confdefs.h <<_ACEOF
9553 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9560 for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
9561 stpcpy strcasecmp strdup strtoul tsearch uselocale argz_count \
9562 argz_stringify argz_next __fsetlocking
9564 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9565 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9566 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9567 cat >>confdefs.h <<_ACEOF
9568 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9575 ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "#include <stdio.h>
9577 if test "x$ac_cv_have_decl_feof_unlocked" = xyes; then :
9583 cat >>confdefs.h <<_ACEOF
9584 #define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
9586 ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "#include <stdio.h>
9588 if test "x$ac_cv_have_decl_fgets_unlocked" = xyes; then :
9594 cat >>confdefs.h <<_ACEOF
9595 #define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
9601 for ac_prog in bison
9603 # Extract the first word of "$ac_prog", so it can be a program name with args.
9604 set dummy $ac_prog; ac_word=$2
9605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9606 $as_echo_n "checking for $ac_word... " >&6; }
9607 if ${ac_cv_prog_INTLBISON+:} false; then :
9608 $as_echo_n "(cached) " >&6
9610 if test -n "$INTLBISON"; then
9611 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
9613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9617 test -z "$as_dir" && as_dir=.
9618 for ac_exec_ext in '' $ac_executable_extensions; do
9619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9620 ac_cv_prog_INTLBISON="$ac_prog"
9621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9630 INTLBISON=$ac_cv_prog_INTLBISON
9631 if test -n "$INTLBISON"; then
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
9633 $as_echo "$INTLBISON" >&6; }
9635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9636 $as_echo "no" >&6; }
9640 test -n "$INTLBISON" && break
9643 if test -z "$INTLBISON"; then
9646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
9647 $as_echo_n "checking version of bison... " >&6; }
9648 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
9649 case $ac_prog_version in
9650 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
9651 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
9652 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
9653 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
9655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
9656 $as_echo "$ac_prog_version" >&6; }
9658 if test $ac_verc_fail = yes; then
9664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
9665 $as_echo_n "checking for long long int... " >&6; }
9666 if ${ac_cv_type_long_long_int+:} false; then :
9667 $as_echo_n "(cached) " >&6
9669 ac_cv_type_long_long_int=yes
9670 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
9671 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
9672 if test $ac_cv_type_long_long_int = yes; then
9673 if test "$cross_compiling" = yes; then :
9676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9677 /* end confdefs.h. */
9681 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
9682 # define LLONG_MAX (HALF - 1 + HALF)
9687 long long int n = 1;
9691 long long int m = n << i;
9694 if (LLONG_MAX / 2 < m)
9702 if ac_fn_c_try_run "$LINENO"; then :
9705 ac_cv_type_long_long_int=no
9707 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9708 conftest.$ac_objext conftest.beam conftest.$ac_ext
9714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
9715 $as_echo "$ac_cv_type_long_long_int" >&6; }
9716 if test $ac_cv_type_long_long_int = yes; then
9718 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
9723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
9724 $as_echo_n "checking for wchar_t... " >&6; }
9725 if ${gt_cv_c_wchar_t+:} false; then :
9726 $as_echo_n "(cached) " >&6
9728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9729 /* end confdefs.h. */
9731 wchar_t foo = (wchar_t)'\0';
9740 if ac_fn_c_try_compile "$LINENO"; then :
9745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
9748 $as_echo "$gt_cv_c_wchar_t" >&6; }
9749 if test $gt_cv_c_wchar_t = yes; then
9751 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
9756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
9757 $as_echo_n "checking for wint_t... " >&6; }
9758 if ${gt_cv_c_wint_t+:} false; then :
9759 $as_echo_n "(cached) " >&6
9761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9762 /* end confdefs.h. */
9764 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9766 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
9767 before <wchar.h>. */
9772 wint_t foo = (wchar_t)'\0';
9781 if ac_fn_c_try_compile "$LINENO"; then :
9786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
9789 $as_echo "$gt_cv_c_wint_t" >&6; }
9790 if test $gt_cv_c_wint_t = yes; then
9792 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
9799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
9800 $as_echo_n "checking for intmax_t... " >&6; }
9801 if ${gt_cv_c_intmax_t+:} false; then :
9802 $as_echo_n "(cached) " >&6
9804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9805 /* end confdefs.h. */
9809 #if HAVE_STDINT_H_WITH_UINTMAX
9812 #if HAVE_INTTYPES_H_WITH_UINTMAX
9813 #include <inttypes.h>
9825 if ac_fn_c_try_compile "$LINENO"; then :
9826 gt_cv_c_intmax_t=yes
9830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
9833 $as_echo "$gt_cv_c_intmax_t" >&6; }
9834 if test $gt_cv_c_intmax_t = yes; then
9836 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
9842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
9843 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
9844 if ${gt_cv_func_printf_posix+:} false; then :
9845 $as_echo_n "(cached) " >&6
9848 if test "$cross_compiling" = yes; then :
9850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9851 /* end confdefs.h. */
9853 #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
9858 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9859 $EGREP "notposix" >/dev/null 2>&1; then :
9860 gt_cv_func_printf_posix="guessing no"
9862 gt_cv_func_printf_posix="guessing yes"
9868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9869 /* end confdefs.h. */
9873 /* The string "%2$d %1$d", with dollar characters protected from the shell's
9874 dollar expansion (possibly an autoconf bug). */
9875 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
9876 static char buf[100];
9879 sprintf (buf, format, 33, 55);
9880 return (strcmp (buf, "55 33") != 0);
9883 if ac_fn_c_try_run "$LINENO"; then :
9884 gt_cv_func_printf_posix=yes
9886 gt_cv_func_printf_posix=no
9888 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9889 conftest.$ac_objext conftest.beam conftest.$ac_ext
9894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
9895 $as_echo "$gt_cv_func_printf_posix" >&6; }
9896 case $gt_cv_func_printf_posix in
9899 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
9905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
9906 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
9907 if ${ac_cv_gnu_library_2_1+:} false; then :
9908 $as_echo_n "(cached) " >&6
9910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9911 /* end confdefs.h. */
9913 #include <features.h>
9914 #ifdef __GNU_LIBRARY__
9915 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9924 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9925 $EGREP "Lucky" >/dev/null 2>&1; then :
9926 ac_cv_gnu_library_2_1=yes
9928 ac_cv_gnu_library_2_1=no
9935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
9936 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
9938 GLIBC21="$ac_cv_gnu_library_2_1"
9942 for ac_header in stdint.h
9944 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
9945 if test "x$ac_cv_header_stdint_h" = xyes; then :
9946 cat >>confdefs.h <<_ACEOF
9947 #define HAVE_STDINT_H 1
9954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
9955 $as_echo_n "checking for SIZE_MAX... " >&6; }
9956 if ${gl_cv_size_max+:} false; then :
9957 $as_echo_n "(cached) " >&6
9961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9962 /* end confdefs.h. */
9973 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9974 $EGREP "Found it" >/dev/null 2>&1; then :
9979 if test -z "$gl_cv_size_max"; then
9980 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
9981 #include <limits.h>"; then :
9984 size_t_bits_minus_1=
9987 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
9993 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
9994 if test $fits_in_uint = 1; then
9995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9996 /* end confdefs.h. */
9999 extern unsigned long foo;
10009 if ac_fn_c_try_compile "$LINENO"; then :
10012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10014 if test $fits_in_uint = 1; then
10015 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
10017 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
10020 gl_cv_size_max='((size_t)~(size_t)0)'
10025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
10026 $as_echo "$gl_cv_size_max" >&6; }
10027 if test "$gl_cv_size_max" != yes; then
10029 cat >>confdefs.h <<_ACEOF
10030 #define SIZE_MAX $gl_cv_size_max
10038 for ac_header in stdint.h
10040 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
10041 if test "x$ac_cv_header_stdint_h" = xyes; then :
10042 cat >>confdefs.h <<_ACEOF
10043 #define HAVE_STDINT_H 1
10054 for ac_func in $ac_func_list
10056 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10057 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10058 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10059 cat >>confdefs.h <<_ACEOF
10060 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
10074 $as_echo_n "checking for working fcntl.h... " >&6; }
10075 if ${gl_cv_header_working_fcntl_h+:} false; then :
10076 $as_echo_n "(cached) " >&6
10078 if test "$cross_compiling" = yes; then :
10079 gl_cv_header_working_fcntl_h=cross-compiling
10081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10082 /* end confdefs.h. */
10083 #include <sys/types.h>
10084 #include <sys/stat.h>
10086 # include <unistd.h>
10087 #else /* on Windows with MSVC */
10089 # include <stdlib.h>
10090 # defined sleep(n) _sleep ((n) * 1000)
10094 #define O_NOATIME 0
10097 #define O_NOFOLLOW 0
10099 static int const constants[] =
10101 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
10102 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
10109 int result = !constants;
10112 static char const sym[] = "conftest.sym";
10113 if (symlink ("/dev/null", sym) != 0)
10117 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
10124 if (unlink (sym) != 0 || symlink (".", sym) != 0)
10128 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
10139 static char const file[] = "confdefs.h";
10140 int fd = open (file, O_RDONLY | O_NOATIME);
10146 if (fstat (fd, &st0) != 0)
10152 if (read (fd, &c, 1) != 1)
10156 if (close (fd) != 0)
10161 if (stat (file, &st1) != 0)
10164 if (st0.st_atime != st1.st_atime)
10176 if ac_fn_c_try_run "$LINENO"; then :
10177 gl_cv_header_working_fcntl_h=yes
10180 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
10181 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
10182 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
10183 *) gl_cv_header_working_fcntl_h='no';;
10186 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10187 conftest.$ac_objext conftest.beam conftest.$ac_ext
10191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
10192 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
10194 case $gl_cv_header_working_fcntl_h in #(
10195 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
10199 cat >>confdefs.h <<_ACEOF
10200 #define HAVE_WORKING_O_NOATIME $ac_val
10204 case $gl_cv_header_working_fcntl_h in #(
10205 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
10209 cat >>confdefs.h <<_ACEOF
10210 #define HAVE_WORKING_O_NOFOLLOW $ac_val
10215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10216 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10217 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
10218 $as_echo_n "(cached) " >&6
10220 gt_save_LIBS="$LIBS"
10221 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10223 /* end confdefs.h. */
10224 #include <CoreFoundation/CFPreferences.h>
10228 CFPreferencesCopyAppValue(NULL, NULL)
10233 if ac_fn_c_try_link "$LINENO"; then :
10234 gt_cv_func_CFPreferencesCopyAppValue=yes
10236 gt_cv_func_CFPreferencesCopyAppValue=no
10238 rm -f core conftest.err conftest.$ac_objext \
10239 conftest$ac_exeext conftest.$ac_ext
10240 LIBS="$gt_save_LIBS"
10242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10243 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10244 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10246 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10250 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10251 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10252 $as_echo_n "(cached) " >&6
10254 gt_save_LIBS="$LIBS"
10255 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10257 /* end confdefs.h. */
10258 #include <CoreFoundation/CFLocale.h>
10262 CFLocaleCopyCurrent();
10267 if ac_fn_c_try_link "$LINENO"; then :
10268 gt_cv_func_CFLocaleCopyCurrent=yes
10270 gt_cv_func_CFLocaleCopyCurrent=no
10272 rm -f core conftest.err conftest.$ac_objext \
10273 conftest$ac_exeext conftest.$ac_ext
10274 LIBS="$gt_save_LIBS"
10276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10277 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10278 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10280 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10284 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10285 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10297 case "$enable_silent_rules" in
10298 yes) INTL_DEFAULT_VERBOSITY=0;;
10299 no) INTL_DEFAULT_VERBOSITY=1;;
10300 *) INTL_DEFAULT_VERBOSITY=1;;
10304 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
10305 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
10309 $as_echo "#define ptrdiff_t long" >>confdefs.h
10314 for ac_header in features.h stddef.h stdlib.h string.h
10316 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10317 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10318 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10319 cat >>confdefs.h <<_ACEOF
10320 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10327 for ac_func in asprintf fwprintf newlocale putenv setenv setlocale \
10328 snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
10330 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10331 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10332 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10333 cat >>confdefs.h <<_ACEOF
10334 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10341 ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
10343 if test "x$ac_cv_have_decl__snprintf" = xyes; then :
10349 cat >>confdefs.h <<_ACEOF
10350 #define HAVE_DECL__SNPRINTF $ac_have_decl
10352 ac_fn_c_check_decl "$LINENO" "_snwprintf" "ac_cv_have_decl__snwprintf" "#include <stdio.h>
10354 if test "x$ac_cv_have_decl__snwprintf" = xyes; then :
10360 cat >>confdefs.h <<_ACEOF
10361 #define HAVE_DECL__SNWPRINTF $ac_have_decl
10365 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "#include <stdio.h>
10367 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
10373 cat >>confdefs.h <<_ACEOF
10374 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
10378 case $gt_cv_func_printf_posix in
10379 *yes) HAVE_POSIX_PRINTF=1 ;;
10380 *) HAVE_POSIX_PRINTF=0 ;;
10383 if test "$ac_cv_func_asprintf" = yes; then
10389 if test "$ac_cv_func_snprintf" = yes; then
10395 if test "$ac_cv_func_newlocale" = yes; then
10401 if test "$ac_cv_func_wprintf" = yes; then
10409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10410 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10411 if ${am_cv_langinfo_codeset+:} false; then :
10412 $as_echo_n "(cached) " >&6
10414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10415 /* end confdefs.h. */
10416 #include <langinfo.h>
10420 char* cs = nl_langinfo(CODESET); return !cs;
10425 if ac_fn_c_try_link "$LINENO"; then :
10426 am_cv_langinfo_codeset=yes
10428 am_cv_langinfo_codeset=no
10430 rm -f core conftest.err conftest.$ac_objext \
10431 conftest$ac_exeext conftest.$ac_ext
10434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10435 $as_echo "$am_cv_langinfo_codeset" >&6; }
10436 if test $am_cv_langinfo_codeset = yes; then
10438 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10444 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10445 if ${gt_cv_val_LC_MESSAGES+:} false; then :
10446 $as_echo_n "(cached) " >&6
10448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10449 /* end confdefs.h. */
10450 #include <locale.h>
10459 if ac_fn_c_try_link "$LINENO"; then :
10460 gt_cv_val_LC_MESSAGES=yes
10462 gt_cv_val_LC_MESSAGES=no
10464 rm -f core conftest.err conftest.$ac_objext \
10465 conftest$ac_exeext conftest.$ac_ext
10467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
10468 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
10469 if test $gt_cv_val_LC_MESSAGES = yes; then
10471 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10476 if test "$enable_shared" = yes; then
10478 mingw* | cygwin*) is_woe32dll=yes ;;
10479 *) is_woe32dll=no ;;
10484 WOE32DLL=$is_woe32dll
10488 mingw* | cygwin*) is_woe32=yes ;;
10493 if test $WOE32 = yes; then
10494 if test -n "$ac_tool_prefix"; then
10495 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
10496 set dummy ${ac_tool_prefix}windres; ac_word=$2
10497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10498 $as_echo_n "checking for $ac_word... " >&6; }
10499 if ${ac_cv_prog_WINDRES+:} false; then :
10500 $as_echo_n "(cached) " >&6
10502 if test -n "$WINDRES"; then
10503 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
10505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10506 for as_dir in $PATH
10509 test -z "$as_dir" && as_dir=.
10510 for ac_exec_ext in '' $ac_executable_extensions; do
10511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10512 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
10513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10522 WINDRES=$ac_cv_prog_WINDRES
10523 if test -n "$WINDRES"; then
10524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
10525 $as_echo "$WINDRES" >&6; }
10527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10528 $as_echo "no" >&6; }
10533 if test -z "$ac_cv_prog_WINDRES"; then
10534 ac_ct_WINDRES=$WINDRES
10535 # Extract the first word of "windres", so it can be a program name with args.
10536 set dummy windres; ac_word=$2
10537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10538 $as_echo_n "checking for $ac_word... " >&6; }
10539 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
10540 $as_echo_n "(cached) " >&6
10542 if test -n "$ac_ct_WINDRES"; then
10543 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
10545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10546 for as_dir in $PATH
10549 test -z "$as_dir" && as_dir=.
10550 for ac_exec_ext in '' $ac_executable_extensions; do
10551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10552 ac_cv_prog_ac_ct_WINDRES="windres"
10553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10562 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
10563 if test -n "$ac_ct_WINDRES"; then
10564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
10565 $as_echo "$ac_ct_WINDRES" >&6; }
10567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10568 $as_echo "no" >&6; }
10571 if test "x$ac_ct_WINDRES" = x; then
10574 case $cross_compiling:$ac_tool_warned in
10576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10577 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10578 ac_tool_warned=yes ;;
10580 WINDRES=$ac_ct_WINDRES
10583 WINDRES="$ac_cv_prog_WINDRES"
10589 hpux*) LTLIBC="" ;;
10619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10620 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10621 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
10622 $as_echo_n "(cached) " >&6
10624 gt_save_LIBS="$LIBS"
10625 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10627 /* end confdefs.h. */
10628 #include <CoreFoundation/CFPreferences.h>
10632 CFPreferencesCopyAppValue(NULL, NULL)
10637 if ac_fn_c_try_link "$LINENO"; then :
10638 gt_cv_func_CFPreferencesCopyAppValue=yes
10640 gt_cv_func_CFPreferencesCopyAppValue=no
10642 rm -f core conftest.err conftest.$ac_objext \
10643 conftest$ac_exeext conftest.$ac_ext
10644 LIBS="$gt_save_LIBS"
10646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10647 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10648 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10650 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10654 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10655 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10656 $as_echo_n "(cached) " >&6
10658 gt_save_LIBS="$LIBS"
10659 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10661 /* end confdefs.h. */
10662 #include <CoreFoundation/CFLocale.h>
10666 CFLocaleCopyCurrent();
10671 if ac_fn_c_try_link "$LINENO"; then :
10672 gt_cv_func_CFLocaleCopyCurrent=yes
10674 gt_cv_func_CFLocaleCopyCurrent=no
10676 rm -f core conftest.err conftest.$ac_objext \
10677 conftest$ac_exeext conftest.$ac_ext
10678 LIBS="$gt_save_LIBS"
10680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10681 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10682 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10684 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10688 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10689 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10697 BUILD_INCLUDED_LIBINTL=no
10698 USE_INCLUDED_LIBINTL=no
10704 case " $gt_needs " in
10705 *" need-formatstring-macros "*) gt_api_version=3 ;;
10706 *" need-ngettext "*) gt_api_version=2 ;;
10707 *) gt_api_version=1 ;;
10709 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
10710 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
10712 if test "$USE_NLS" = "yes"; then
10713 gt_use_preinstalled_gnugettext=no
10715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
10716 $as_echo_n "checking whether included gettext is requested... " >&6; }
10718 # Check whether --with-included-gettext was given.
10719 if test "${with_included_gettext+set}" = set; then :
10720 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
10722 nls_cv_force_use_gnu_gettext=no
10725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
10726 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
10728 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10729 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
10732 if test $gt_api_version -ge 3; then
10733 gt_revision_test_code='
10734 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
10735 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
10737 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
10740 gt_revision_test_code=
10742 if test $gt_api_version -ge 2; then
10743 gt_expression_test_code=' + * ngettext ("", "", 0)'
10745 gt_expression_test_code=
10748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
10749 $as_echo_n "checking for GNU gettext in libc... " >&6; }
10750 if eval \${$gt_func_gnugettext_libc+:} false; then :
10751 $as_echo_n "(cached) " >&6
10753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10754 /* end confdefs.h. */
10756 #include <libintl.h>
10757 $gt_revision_test_code
10758 extern int _nl_msg_cat_cntr;
10759 extern int *_nl_domain_bindings;
10765 bindtextdomain ("", "");
10766 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
10772 if ac_fn_c_try_link "$LINENO"; then :
10773 eval "$gt_func_gnugettext_libc=yes"
10775 eval "$gt_func_gnugettext_libc=no"
10777 rm -f core conftest.err conftest.$ac_objext \
10778 conftest$ac_exeext conftest.$ac_ext
10780 eval ac_res=\$$gt_func_gnugettext_libc
10781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10782 $as_echo "$ac_res" >&6; }
10784 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
10795 acl_save_prefix="$prefix"
10796 prefix="$acl_final_prefix"
10797 acl_save_exec_prefix="$exec_prefix"
10798 exec_prefix="$acl_final_exec_prefix"
10800 eval additional_includedir=\"$includedir\"
10801 eval additional_libdir=\"$libdir\"
10803 exec_prefix="$acl_save_exec_prefix"
10804 prefix="$acl_save_prefix"
10807 # Check whether --with-libintl-prefix was given.
10808 if test "${with_libintl_prefix+set}" = set; then :
10809 withval=$with_libintl_prefix;
10810 if test "X$withval" = "Xno"; then
10813 if test "X$withval" = "X"; then
10815 acl_save_prefix="$prefix"
10816 prefix="$acl_final_prefix"
10817 acl_save_exec_prefix="$exec_prefix"
10818 exec_prefix="$acl_final_exec_prefix"
10820 eval additional_includedir=\"$includedir\"
10821 eval additional_libdir=\"$libdir\"
10823 exec_prefix="$acl_save_exec_prefix"
10824 prefix="$acl_save_prefix"
10827 additional_includedir="$withval/include"
10828 additional_libdir="$withval/$acl_libdirstem"
10829 if test "$acl_libdirstem2" != "$acl_libdirstem" \
10830 && ! test -d "$withval/$acl_libdirstem"; then
10831 additional_libdir="$withval/$acl_libdirstem2"
10845 names_already_handled=
10846 names_next_round='intl '
10847 while test -n "$names_next_round"; do
10848 names_this_round="$names_next_round"
10850 for name in $names_this_round; do
10852 for n in $names_already_handled; do
10853 if test "$n" = "$name"; then
10854 already_handled=yes
10858 if test -z "$already_handled"; then
10859 names_already_handled="$names_already_handled $name"
10860 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
10861 eval value=\"\$HAVE_LIB$uppername\"
10862 if test -n "$value"; then
10863 if test "$value" = yes; then
10864 eval value=\"\$LIB$uppername\"
10865 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10866 eval value=\"\$LTLIB$uppername\"
10867 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10876 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
10877 if test -n "$acl_shlibext"; then
10878 shrext=".$acl_shlibext" # typically: shrext=.so
10882 if test $use_additional = yes; then
10883 dir="$additional_libdir"
10884 if test -n "$acl_shlibext"; then
10885 if test -f "$dir/$libname$shrext"; then
10887 found_so="$dir/$libname$shrext"
10889 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10890 ver=`(cd "$dir" && \
10891 for f in "$libname$shrext".*; do echo "$f"; done \
10892 | sed -e "s,^$libname$shrext\\\\.,," \
10893 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10894 | sed 1q ) 2>/dev/null`
10895 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10897 found_so="$dir/$libname$shrext.$ver"
10900 eval library_names=\"$acl_library_names_spec\"
10901 for f in $library_names; do
10902 if test -f "$dir/$f"; then
10911 if test "X$found_dir" = "X"; then
10912 if test -f "$dir/$libname.$acl_libext"; then
10914 found_a="$dir/$libname.$acl_libext"
10917 if test "X$found_dir" != "X"; then
10918 if test -f "$dir/$libname.la"; then
10919 found_la="$dir/$libname.la"
10923 if test "X$found_dir" = "X"; then
10924 for x in $LDFLAGS $LTLIBINTL; do
10926 acl_save_prefix="$prefix"
10927 prefix="$acl_final_prefix"
10928 acl_save_exec_prefix="$exec_prefix"
10929 exec_prefix="$acl_final_exec_prefix"
10931 exec_prefix="$acl_save_exec_prefix"
10932 prefix="$acl_save_prefix"
10936 dir=`echo "X$x" | sed -e 's/^X-L//'`
10937 if test -n "$acl_shlibext"; then
10938 if test -f "$dir/$libname$shrext"; then
10940 found_so="$dir/$libname$shrext"
10942 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10943 ver=`(cd "$dir" && \
10944 for f in "$libname$shrext".*; do echo "$f"; done \
10945 | sed -e "s,^$libname$shrext\\\\.,," \
10946 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10947 | sed 1q ) 2>/dev/null`
10948 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10950 found_so="$dir/$libname$shrext.$ver"
10953 eval library_names=\"$acl_library_names_spec\"
10954 for f in $library_names; do
10955 if test -f "$dir/$f"; then
10964 if test "X$found_dir" = "X"; then
10965 if test -f "$dir/$libname.$acl_libext"; then
10967 found_a="$dir/$libname.$acl_libext"
10970 if test "X$found_dir" != "X"; then
10971 if test -f "$dir/$libname.la"; then
10972 found_la="$dir/$libname.la"
10977 if test "X$found_dir" != "X"; then
10982 if test "X$found_dir" != "X"; then
10983 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
10984 if test "X$found_so" != "X"; then
10985 if test "$enable_rpath" = no \
10986 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
10987 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
10988 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10991 for x in $ltrpathdirs; do
10992 if test "X$x" = "X$found_dir"; then
10997 if test -z "$haveit"; then
10998 ltrpathdirs="$ltrpathdirs $found_dir"
11000 if test "$acl_hardcode_direct" = yes; then
11001 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11003 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
11004 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11006 for x in $rpathdirs; do
11007 if test "X$x" = "X$found_dir"; then
11012 if test -z "$haveit"; then
11013 rpathdirs="$rpathdirs $found_dir"
11017 for x in $LDFLAGS $LIBINTL; do
11019 acl_save_prefix="$prefix"
11020 prefix="$acl_final_prefix"
11021 acl_save_exec_prefix="$exec_prefix"
11022 exec_prefix="$acl_final_exec_prefix"
11024 exec_prefix="$acl_save_exec_prefix"
11025 prefix="$acl_save_prefix"
11027 if test "X$x" = "X-L$found_dir"; then
11032 if test -z "$haveit"; then
11033 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
11035 if test "$acl_hardcode_minus_L" != no; then
11036 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11038 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11044 if test "X$found_a" != "X"; then
11045 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
11047 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
11050 additional_includedir=
11051 case "$found_dir" in
11052 */$acl_libdirstem | */$acl_libdirstem/)
11053 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
11054 if test "$name" = 'intl'; then
11055 LIBINTL_PREFIX="$basedir"
11057 additional_includedir="$basedir/include"
11059 */$acl_libdirstem2 | */$acl_libdirstem2/)
11060 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
11061 if test "$name" = 'intl'; then
11062 LIBINTL_PREFIX="$basedir"
11064 additional_includedir="$basedir/include"
11067 if test "X$additional_includedir" != "X"; then
11068 if test "X$additional_includedir" != "X/usr/include"; then
11070 if test "X$additional_includedir" = "X/usr/local/include"; then
11071 if test -n "$GCC"; then
11073 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11077 if test -z "$haveit"; then
11078 for x in $CPPFLAGS $INCINTL; do
11080 acl_save_prefix="$prefix"
11081 prefix="$acl_final_prefix"
11082 acl_save_exec_prefix="$exec_prefix"
11083 exec_prefix="$acl_final_exec_prefix"
11085 exec_prefix="$acl_save_exec_prefix"
11086 prefix="$acl_save_prefix"
11088 if test "X$x" = "X-I$additional_includedir"; then
11093 if test -z "$haveit"; then
11094 if test -d "$additional_includedir"; then
11095 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
11101 if test -n "$found_la"; then
11102 save_libdir="$libdir"
11103 case "$found_la" in
11104 */* | *\\*) . "$found_la" ;;
11105 *) . "./$found_la" ;;
11107 libdir="$save_libdir"
11108 for dep in $dependency_libs; do
11111 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11112 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
11113 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
11115 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
11116 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
11117 if test -n "$GCC"; then
11119 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11123 if test -z "$haveit"; then
11125 for x in $LDFLAGS $LIBINTL; do
11127 acl_save_prefix="$prefix"
11128 prefix="$acl_final_prefix"
11129 acl_save_exec_prefix="$exec_prefix"
11130 exec_prefix="$acl_final_exec_prefix"
11132 exec_prefix="$acl_save_exec_prefix"
11133 prefix="$acl_save_prefix"
11135 if test "X$x" = "X-L$additional_libdir"; then
11140 if test -z "$haveit"; then
11141 if test -d "$additional_libdir"; then
11142 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
11146 for x in $LDFLAGS $LTLIBINTL; do
11148 acl_save_prefix="$prefix"
11149 prefix="$acl_final_prefix"
11150 acl_save_exec_prefix="$exec_prefix"
11151 exec_prefix="$acl_final_exec_prefix"
11153 exec_prefix="$acl_save_exec_prefix"
11154 prefix="$acl_save_prefix"
11156 if test "X$x" = "X-L$additional_libdir"; then
11161 if test -z "$haveit"; then
11162 if test -d "$additional_libdir"; then
11163 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
11170 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11171 if test "$enable_rpath" != no; then
11173 for x in $rpathdirs; do
11174 if test "X$x" = "X$dir"; then
11179 if test -z "$haveit"; then
11180 rpathdirs="$rpathdirs $dir"
11183 for x in $ltrpathdirs; do
11184 if test "X$x" = "X$dir"; then
11189 if test -z "$haveit"; then
11190 ltrpathdirs="$ltrpathdirs $dir"
11195 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11198 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11201 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
11202 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
11208 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11209 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
11215 if test "X$rpathdirs" != "X"; then
11216 if test -n "$acl_hardcode_libdir_separator"; then
11218 for found_dir in $rpathdirs; do
11219 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
11221 acl_save_libdir="$libdir"
11223 eval flag=\"$acl_hardcode_libdir_flag_spec\"
11224 libdir="$acl_save_libdir"
11225 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11227 for found_dir in $rpathdirs; do
11228 acl_save_libdir="$libdir"
11229 libdir="$found_dir"
11230 eval flag=\"$acl_hardcode_libdir_flag_spec\"
11231 libdir="$acl_save_libdir"
11232 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11236 if test "X$ltrpathdirs" != "X"; then
11237 for found_dir in $ltrpathdirs; do
11238 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
11248 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
11249 if eval \${$gt_func_gnugettext_libintl+:} false; then :
11250 $as_echo_n "(cached) " >&6
11252 gt_save_CPPFLAGS="$CPPFLAGS"
11253 CPPFLAGS="$CPPFLAGS $INCINTL"
11254 gt_save_LIBS="$LIBS"
11255 LIBS="$LIBS $LIBINTL"
11256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11257 /* end confdefs.h. */
11259 #include <libintl.h>
11260 $gt_revision_test_code
11261 extern int _nl_msg_cat_cntr;
11266 const char *_nl_expand_alias (const char *);
11272 bindtextdomain ("", "");
11273 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11279 if ac_fn_c_try_link "$LINENO"; then :
11280 eval "$gt_func_gnugettext_libintl=yes"
11282 eval "$gt_func_gnugettext_libintl=no"
11284 rm -f core conftest.err conftest.$ac_objext \
11285 conftest$ac_exeext conftest.$ac_ext
11286 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
11287 LIBS="$LIBS $LIBICONV"
11288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11289 /* end confdefs.h. */
11291 #include <libintl.h>
11292 $gt_revision_test_code
11293 extern int _nl_msg_cat_cntr;
11298 const char *_nl_expand_alias (const char *);
11304 bindtextdomain ("", "");
11305 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11311 if ac_fn_c_try_link "$LINENO"; then :
11312 LIBINTL="$LIBINTL $LIBICONV"
11313 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
11314 eval "$gt_func_gnugettext_libintl=yes"
11317 rm -f core conftest.err conftest.$ac_objext \
11318 conftest$ac_exeext conftest.$ac_ext
11320 CPPFLAGS="$gt_save_CPPFLAGS"
11321 LIBS="$gt_save_LIBS"
11323 eval ac_res=\$$gt_func_gnugettext_libintl
11324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11325 $as_echo "$ac_res" >&6; }
11328 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
11329 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
11330 && test "$PACKAGE" != gettext-runtime \
11331 && test "$PACKAGE" != gettext-tools; }; then
11332 gt_use_preinstalled_gnugettext=yes
11340 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
11341 nls_cv_use_gnu_gettext=yes
11345 if test "$nls_cv_use_gnu_gettext" = "yes"; then
11346 BUILD_INCLUDED_LIBINTL=yes
11347 USE_INCLUDED_LIBINTL=yes
11348 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
11349 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
11350 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
11354 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11355 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11360 if test -n "$INTL_MACOSX_LIBS"; then
11361 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11362 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11363 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
11364 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
11368 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11369 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11371 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
11379 $as_echo_n "checking whether to use NLS... " >&6; }
11380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
11381 $as_echo "$USE_NLS" >&6; }
11382 if test "$USE_NLS" = "yes"; then
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
11384 $as_echo_n "checking where the gettext function comes from... " >&6; }
11385 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11386 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
11387 gt_source="external libintl"
11392 gt_source="included intl directory"
11394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
11395 $as_echo "$gt_source" >&6; }
11398 if test "$USE_NLS" = "yes"; then
11400 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11401 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
11402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
11403 $as_echo_n "checking how to link with libintl... " >&6; }
11404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
11405 $as_echo "$LIBINTL" >&6; }
11407 for element in $INCINTL; do
11409 for x in $CPPFLAGS; do
11411 acl_save_prefix="$prefix"
11412 prefix="$acl_final_prefix"
11413 acl_save_exec_prefix="$exec_prefix"
11414 exec_prefix="$acl_final_exec_prefix"
11416 exec_prefix="$acl_save_exec_prefix"
11417 prefix="$acl_save_prefix"
11419 if test "X$x" = "X$element"; then
11424 if test -z "$haveit"; then
11425 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11432 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
11435 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
11443 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
11444 BUILD_INCLUDED_LIBINTL=yes
11451 nls_cv_header_intl=
11452 nls_cv_header_libgt=
11464 if test "$USE_INCLUDED_LIBINTL" = yes; then
11465 INTLOBJS="\$(GETTOBJS)"
11469 INTL_LIBTOOL_SUFFIX_PREFIX=
11473 INTLLIBS="$LIBINTL"
11481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11482 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11484 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11485 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
11486 $as_echo_n "(cached) " >&6
11488 cat >conftest.make <<\_ACEOF
11491 @echo '@@@%%%=$(MAKE)=@@@%%%'
11493 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
11494 case `${MAKE-make} -f conftest.make 2>/dev/null` in
11495 *@@@%%%=?*=@@@%%%*)
11496 eval ac_cv_prog_make_${ac_make}_set=yes;;
11498 eval ac_cv_prog_make_${ac_make}_set=no;;
11500 rm -f conftest.make
11502 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11504 $as_echo "yes" >&6; }
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11508 $as_echo "no" >&6; }
11509 SET_MAKE="MAKE=${MAKE-make}"
11512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
11513 $as_echo_n "checking for GNU make... " >&6; }
11514 if ${_cv_gnu_make_command+:} false; then :
11515 $as_echo_n "(cached) " >&6
11517 _cv_gnu_make_command='' ;
11518 if test -n "$FORCE_NATIVE_MAKE" ; then
11521 MAKES="make gmake gnumake"
11523 for a in "$MAKE" $MAKES ; do
11524 if test -z "$a" ; then continue ; fi ;
11525 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
11526 _cv_gnu_make_command=$a ;
11532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
11533 $as_echo "$_cv_gnu_make_command" >&6; } ;
11534 if test "x$_cv_gnu_make_command" != "x" ; then
11540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
11541 $as_echo "\"Not found\"" >&6; };
11546 # Extract the first word of "ln", so it can be a program name with args.
11547 set dummy ln; ac_word=$2
11548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11549 $as_echo_n "checking for $ac_word... " >&6; }
11550 if ${ac_cv_path_LN+:} false; then :
11551 $as_echo_n "(cached) " >&6
11555 ac_cv_path_LN="$LN" # Let the user override the test with a path.
11558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11559 for as_dir in $PATH
11562 test -z "$as_dir" && as_dir=.
11563 for ac_exec_ext in '' $ac_executable_extensions; do
11564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11565 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
11566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11573 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
11578 if test -n "$LN"; then
11579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
11580 $as_echo "$LN" >&6; }
11582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11583 $as_echo "no" >&6; }
11587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11588 $as_echo_n "checking whether ln -s works... " >&6; }
11590 if test "$LN_S" = "ln -s"; then
11591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11592 $as_echo "yes" >&6; }
11594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11595 $as_echo "no, using $LN_S" >&6; }
11598 # Extract the first word of "mv", so it can be a program name with args.
11599 set dummy mv; ac_word=$2
11600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11601 $as_echo_n "checking for $ac_word... " >&6; }
11602 if ${ac_cv_path_MV+:} false; then :
11603 $as_echo_n "(cached) " >&6
11607 ac_cv_path_MV="$MV" # Let the user override the test with a path.
11610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11611 for as_dir in $PATH
11614 test -z "$as_dir" && as_dir=.
11615 for ac_exec_ext in '' $ac_executable_extensions; do
11616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11617 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
11618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11625 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
11630 if test -n "$MV"; then
11631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
11632 $as_echo "$MV" >&6; }
11634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11635 $as_echo "no" >&6; }
11639 # Extract the first word of "cp", so it can be a program name with args.
11640 set dummy cp; ac_word=$2
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11642 $as_echo_n "checking for $ac_word... " >&6; }
11643 if ${ac_cv_path_CP+:} false; then :
11644 $as_echo_n "(cached) " >&6
11648 ac_cv_path_CP="$CP" # Let the user override the test with a path.
11651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11652 for as_dir in $PATH
11655 test -z "$as_dir" && as_dir=.
11656 for ac_exec_ext in '' $ac_executable_extensions; do
11657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11658 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
11659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11666 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
11671 if test -n "$CP"; then
11672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
11673 $as_echo "$CP" >&6; }
11675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11676 $as_echo "no" >&6; }
11680 # Extract the first word of "rm", so it can be a program name with args.
11681 set dummy rm; ac_word=$2
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11683 $as_echo_n "checking for $ac_word... " >&6; }
11684 if ${ac_cv_path_RM+:} false; then :
11685 $as_echo_n "(cached) " >&6
11689 ac_cv_path_RM="$RM" # Let the user override the test with a path.
11692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11693 for as_dir in $PATH
11696 test -z "$as_dir" && as_dir=.
11697 for ac_exec_ext in '' $ac_executable_extensions; do
11698 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11699 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
11700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11707 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11712 if test -n "$RM"; then
11713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
11714 $as_echo "$RM" >&6; }
11716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11717 $as_echo "no" >&6; }
11721 # Extract the first word of "chmod", so it can be a program name with args.
11722 set dummy chmod; ac_word=$2
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11724 $as_echo_n "checking for $ac_word... " >&6; }
11725 if ${ac_cv_path_CHMOD+:} false; then :
11726 $as_echo_n "(cached) " >&6
11730 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11734 for as_dir in $PATH
11737 test -z "$as_dir" && as_dir=.
11738 for ac_exec_ext in '' $ac_executable_extensions; do
11739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11740 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
11741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11748 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11752 CHMOD=$ac_cv_path_CHMOD
11753 if test -n "$CHMOD"; then
11754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
11755 $as_echo "$CHMOD" >&6; }
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11758 $as_echo "no" >&6; }
11762 for ac_prog in gawk mawk nawk awk
11764 # Extract the first word of "$ac_prog", so it can be a program name with args.
11765 set dummy $ac_prog; ac_word=$2
11766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11767 $as_echo_n "checking for $ac_word... " >&6; }
11768 if ${ac_cv_prog_AWK+:} false; then :
11769 $as_echo_n "(cached) " >&6
11771 if test -n "$AWK"; then
11772 ac_cv_prog_AWK="$AWK" # Let the user override the test.
11774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11775 for as_dir in $PATH
11778 test -z "$as_dir" && as_dir=.
11779 for ac_exec_ext in '' $ac_executable_extensions; do
11780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11781 ac_cv_prog_AWK="$ac_prog"
11782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11791 AWK=$ac_cv_prog_AWK
11792 if test -n "$AWK"; then
11793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11794 $as_echo "$AWK" >&6; }
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11797 $as_echo "no" >&6; }
11801 test -n "$AWK" && break
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11805 $as_echo_n "checking for egrep... " >&6; }
11806 if ${ac_cv_path_EGREP+:} false; then :
11807 $as_echo_n "(cached) " >&6
11809 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11810 then ac_cv_path_EGREP="$GREP -E"
11812 if test -z "$EGREP"; then
11813 ac_path_EGREP_found=false
11814 # Loop through the user's path and test for each of PROGNAME-LIST
11815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11816 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11819 test -z "$as_dir" && as_dir=.
11820 for ac_prog in egrep; do
11821 for ac_exec_ext in '' $ac_executable_extensions; do
11822 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11823 as_fn_executable_p "$ac_path_EGREP" || continue
11824 # Check for GNU ac_path_EGREP and select it if it is found.
11825 # Check for GNU $ac_path_EGREP
11826 case `"$ac_path_EGREP" --version 2>&1` in
11828 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11831 $as_echo_n 0123456789 >"conftest.in"
11834 cat "conftest.in" "conftest.in" >"conftest.tmp"
11835 mv "conftest.tmp" "conftest.in"
11836 cp "conftest.in" "conftest.nl"
11837 $as_echo 'EGREP' >> "conftest.nl"
11838 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11839 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11840 as_fn_arith $ac_count + 1 && ac_count=$as_val
11841 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11842 # Best one so far, save it but keep looking for a better one
11843 ac_cv_path_EGREP="$ac_path_EGREP"
11844 ac_path_EGREP_max=$ac_count
11846 # 10*(2^10) chars as input seems more than enough
11847 test $ac_count -gt 10 && break
11849 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11852 $ac_path_EGREP_found && break 3
11857 if test -z "$ac_cv_path_EGREP"; then
11858 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11861 ac_cv_path_EGREP=$EGREP
11866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11867 $as_echo "$ac_cv_path_EGREP" >&6; }
11868 EGREP="$ac_cv_path_EGREP"
11871 # Extract the first word of "sed", so it can be a program name with args.
11872 set dummy sed; ac_word=$2
11873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11874 $as_echo_n "checking for $ac_word... " >&6; }
11875 if ${ac_cv_path_SED+:} false; then :
11876 $as_echo_n "(cached) " >&6
11880 ac_cv_path_SED="$SED" # Let the user override the test with a path.
11883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11884 for as_dir in $PATH
11887 test -z "$as_dir" && as_dir=.
11888 for ac_exec_ext in '' $ac_executable_extensions; do
11889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11890 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
11891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11898 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11902 SED=$ac_cv_path_SED
11903 if test -n "$SED"; then
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
11905 $as_echo "$SED" >&6; }
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11908 $as_echo "no" >&6; }
11912 # Extract the first word of "perl", so it can be a program name with args.
11913 set dummy perl; ac_word=$2
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11915 $as_echo_n "checking for $ac_word... " >&6; }
11916 if ${ac_cv_path_PERL+:} false; then :
11917 $as_echo_n "(cached) " >&6
11921 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11925 for as_dir in $PATH
11928 test -z "$as_dir" && as_dir=.
11929 for ac_exec_ext in '' $ac_executable_extensions; do
11930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11931 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
11932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11939 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
11943 PERL=$ac_cv_path_PERL
11944 if test -n "$PERL"; then
11945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
11946 $as_echo "$PERL" >&6; }
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11949 $as_echo "no" >&6; }
11953 # Extract the first word of "ldconfig", so it can be a program name with args.
11954 set dummy ldconfig; ac_word=$2
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11956 $as_echo_n "checking for $ac_word... " >&6; }
11957 if ${ac_cv_path_LDCONFIG+:} false; then :
11958 $as_echo_n "(cached) " >&6
11962 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
11965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11966 for as_dir in $PATH
11969 test -z "$as_dir" && as_dir=.
11970 for ac_exec_ext in '' $ac_executable_extensions; do
11971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11972 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
11973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11980 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
11984 LDCONFIG=$ac_cv_path_LDCONFIG
11985 if test -n "$LDCONFIG"; then
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
11987 $as_echo "$LDCONFIG" >&6; }
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11990 $as_echo "no" >&6; }
11994 if test -n "$ac_tool_prefix"; then
11995 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11996 set dummy ${ac_tool_prefix}ar; ac_word=$2
11997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11998 $as_echo_n "checking for $ac_word... " >&6; }
11999 if ${ac_cv_prog_AR+:} false; then :
12000 $as_echo_n "(cached) " >&6
12002 if test -n "$AR"; then
12003 ac_cv_prog_AR="$AR" # Let the user override the test.
12005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12006 for as_dir in $PATH
12009 test -z "$as_dir" && as_dir=.
12010 for ac_exec_ext in '' $ac_executable_extensions; do
12011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12012 ac_cv_prog_AR="${ac_tool_prefix}ar"
12013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12023 if test -n "$AR"; then
12024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12025 $as_echo "$AR" >&6; }
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12028 $as_echo "no" >&6; }
12033 if test -z "$ac_cv_prog_AR"; then
12035 # Extract the first word of "ar", so it can be a program name with args.
12036 set dummy ar; ac_word=$2
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12038 $as_echo_n "checking for $ac_word... " >&6; }
12039 if ${ac_cv_prog_ac_ct_AR+:} false; then :
12040 $as_echo_n "(cached) " >&6
12042 if test -n "$ac_ct_AR"; then
12043 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12046 for as_dir in $PATH
12049 test -z "$as_dir" && as_dir=.
12050 for ac_exec_ext in '' $ac_executable_extensions; do
12051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12052 ac_cv_prog_ac_ct_AR="ar"
12053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12062 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12063 if test -n "$ac_ct_AR"; then
12064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12065 $as_echo "$ac_ct_AR" >&6; }
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12068 $as_echo "no" >&6; }
12071 if test "x$ac_ct_AR" = x; then
12074 case $cross_compiling:$ac_tool_warned in
12076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12077 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12078 ac_tool_warned=yes ;;
12083 AR="$ac_cv_prog_AR"
12086 if test -n "$ac_tool_prefix"; then
12087 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12088 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12090 $as_echo_n "checking for $ac_word... " >&6; }
12091 if ${ac_cv_prog_RANLIB+:} false; then :
12092 $as_echo_n "(cached) " >&6
12094 if test -n "$RANLIB"; then
12095 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12098 for as_dir in $PATH
12101 test -z "$as_dir" && as_dir=.
12102 for ac_exec_ext in '' $ac_executable_extensions; do
12103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12104 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12114 RANLIB=$ac_cv_prog_RANLIB
12115 if test -n "$RANLIB"; then
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12117 $as_echo "$RANLIB" >&6; }
12119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12120 $as_echo "no" >&6; }
12125 if test -z "$ac_cv_prog_RANLIB"; then
12126 ac_ct_RANLIB=$RANLIB
12127 # Extract the first word of "ranlib", so it can be a program name with args.
12128 set dummy ranlib; ac_word=$2
12129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12130 $as_echo_n "checking for $ac_word... " >&6; }
12131 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12132 $as_echo_n "(cached) " >&6
12134 if test -n "$ac_ct_RANLIB"; then
12135 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12138 for as_dir in $PATH
12141 test -z "$as_dir" && as_dir=.
12142 for ac_exec_ext in '' $ac_executable_extensions; do
12143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12144 ac_cv_prog_ac_ct_RANLIB="ranlib"
12145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12154 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12155 if test -n "$ac_ct_RANLIB"; then
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12157 $as_echo "$ac_ct_RANLIB" >&6; }
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12160 $as_echo "no" >&6; }
12163 if test "x$ac_ct_RANLIB" = x; then
12166 case $cross_compiling:$ac_tool_warned in
12168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12169 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12170 ac_tool_warned=yes ;;
12172 RANLIB=$ac_ct_RANLIB
12175 RANLIB="$ac_cv_prog_RANLIB"
12178 if test -n "$ac_tool_prefix"; then
12179 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12180 set dummy ${ac_tool_prefix}strip; ac_word=$2
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12182 $as_echo_n "checking for $ac_word... " >&6; }
12183 if ${ac_cv_prog_STRIP+:} false; then :
12184 $as_echo_n "(cached) " >&6
12186 if test -n "$STRIP"; then
12187 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12190 for as_dir in $PATH
12193 test -z "$as_dir" && as_dir=.
12194 for ac_exec_ext in '' $ac_executable_extensions; do
12195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12196 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12206 STRIP=$ac_cv_prog_STRIP
12207 if test -n "$STRIP"; then
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12209 $as_echo "$STRIP" >&6; }
12211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12212 $as_echo "no" >&6; }
12217 if test -z "$ac_cv_prog_STRIP"; then
12219 # Extract the first word of "strip", so it can be a program name with args.
12220 set dummy strip; ac_word=$2
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12222 $as_echo_n "checking for $ac_word... " >&6; }
12223 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12224 $as_echo_n "(cached) " >&6
12226 if test -n "$ac_ct_STRIP"; then
12227 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12230 for as_dir in $PATH
12233 test -z "$as_dir" && as_dir=.
12234 for ac_exec_ext in '' $ac_executable_extensions; do
12235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12236 ac_cv_prog_ac_ct_STRIP="strip"
12237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12246 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12247 if test -n "$ac_ct_STRIP"; then
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12249 $as_echo "$ac_ct_STRIP" >&6; }
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12252 $as_echo "no" >&6; }
12255 if test "x$ac_ct_STRIP" = x; then
12258 case $cross_compiling:$ac_tool_warned in
12260 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12261 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12262 ac_tool_warned=yes ;;
12267 STRIP="$ac_cv_prog_STRIP"
12270 # Extract the first word of "makeinfo", so it can be a program name with args.
12271 set dummy makeinfo; ac_word=$2
12272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12273 $as_echo_n "checking for $ac_word... " >&6; }
12274 if ${ac_cv_prog_MAKEINFO+:} false; then :
12275 $as_echo_n "(cached) " >&6
12277 if test -n "$MAKEINFO"; then
12278 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
12280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12281 for as_dir in $PATH
12284 test -z "$as_dir" && as_dir=.
12285 for ac_exec_ext in '' $ac_executable_extensions; do
12286 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12287 ac_cv_prog_MAKEINFO="makeinfo"
12288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12297 MAKEINFO=$ac_cv_prog_MAKEINFO
12298 if test -n "$MAKEINFO"; then
12299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
12300 $as_echo "$MAKEINFO" >&6; }
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12303 $as_echo "no" >&6; }
12307 if test "_$MAKEINFO" = "_"; then
12308 MAKEINFO="echo Makeinfo is missing. Info documentation will not be built."
12310 case "$MAKEINFO" in
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
12313 *** Makeinfo is missing. Info documentation will not be built." >&5
12314 $as_echo "$as_me: WARNING:
12315 *** Makeinfo is missing. Info documentation will not be built." >&2;}
12323 # See if we need a separate native compiler.
12324 if test $cross_compiling = no; then
12328 for ac_prog in gcc cc
12330 # Extract the first word of "$ac_prog", so it can be a program name with args.
12331 set dummy $ac_prog; ac_word=$2
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12333 $as_echo_n "checking for $ac_word... " >&6; }
12334 if ${ac_cv_prog_BUILD_CC+:} false; then :
12335 $as_echo_n "(cached) " >&6
12337 if test -n "$BUILD_CC"; then
12338 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
12340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12341 for as_dir in $PATH
12344 test -z "$as_dir" && as_dir=.
12345 for ac_exec_ext in '' $ac_executable_extensions; do
12346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12347 ac_cv_prog_BUILD_CC="$ac_prog"
12348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12357 BUILD_CC=$ac_cv_prog_BUILD_CC
12358 if test -n "$BUILD_CC"; then
12359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
12360 $as_echo "$BUILD_CC" >&6; }
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12363 $as_echo "no" >&6; }
12367 test -n "$BUILD_CC" && break
12371 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
12373 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12374 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12375 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12376 cat >>confdefs.h <<_ACEOF
12377 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12384 for ac_header in net/if.h
12386 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
12387 #if HAVE_SYS_TYPES_H
12388 #include <sys/types.h>
12390 #if HAVE_SYS_SOCKET
12391 #include <sys/socket.h>
12395 if test "x$ac_cv_header_net_if_h" = xyes; then :
12396 cat >>confdefs.h <<_ACEOF
12397 #define HAVE_NET_IF_H 1
12404 for ac_func in vprintf
12406 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
12407 if test "x$ac_cv_func_vprintf" = xyes; then :
12408 cat >>confdefs.h <<_ACEOF
12409 #define HAVE_VPRINTF 1
12412 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
12413 if test "x$ac_cv_func__doprnt" = xyes; then :
12415 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
12423 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
12425 if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
12427 $as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
12431 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
12432 if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
12434 cat >>confdefs.h <<_ACEOF
12435 #define HAVE_STRUCT_STAT_ST_ATIM 1
12441 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
12443 if test "x$ac_cv_type_ssize_t" = xyes; then :
12445 $as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
12449 ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
12451 if test "x$ac_cv_have_decl_llseek" = xyes; then :
12453 $as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
12457 ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
12458 #define _LARGEFILE64_SOURCE
12459 #include <unistd.h>
12461 if test "x$ac_cv_have_decl_lseek64" = xyes; then :
12463 $as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
12467 # The cast to long int works around a bug in the HP C Compiler
12468 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12469 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12470 # This bug is HP SR number 8606223364.
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
12472 $as_echo_n "checking size of short... " >&6; }
12473 if ${ac_cv_sizeof_short+:} false; then :
12474 $as_echo_n "(cached) " >&6
12476 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
12479 if test "$ac_cv_type_short" = yes; then
12480 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12481 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12482 as_fn_error 77 "cannot compute sizeof (short)
12483 See \`config.log' for more details" "$LINENO" 5; }
12485 ac_cv_sizeof_short=0
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
12491 $as_echo "$ac_cv_sizeof_short" >&6; }
12495 cat >>confdefs.h <<_ACEOF
12496 #define SIZEOF_SHORT $ac_cv_sizeof_short
12500 # The cast to long int works around a bug in the HP C Compiler
12501 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12502 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12503 # This bug is HP SR number 8606223364.
12504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12505 $as_echo_n "checking size of int... " >&6; }
12506 if ${ac_cv_sizeof_int+:} false; then :
12507 $as_echo_n "(cached) " >&6
12509 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
12512 if test "$ac_cv_type_int" = yes; then
12513 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12514 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12515 as_fn_error 77 "cannot compute sizeof (int)
12516 See \`config.log' for more details" "$LINENO" 5; }
12523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12524 $as_echo "$ac_cv_sizeof_int" >&6; }
12528 cat >>confdefs.h <<_ACEOF
12529 #define SIZEOF_INT $ac_cv_sizeof_int
12533 # The cast to long int works around a bug in the HP C Compiler
12534 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12535 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12536 # This bug is HP SR number 8606223364.
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12538 $as_echo_n "checking size of long... " >&6; }
12539 if ${ac_cv_sizeof_long+:} false; then :
12540 $as_echo_n "(cached) " >&6
12542 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
12545 if test "$ac_cv_type_long" = yes; then
12546 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12547 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12548 as_fn_error 77 "cannot compute sizeof (long)
12549 See \`config.log' for more details" "$LINENO" 5; }
12551 ac_cv_sizeof_long=0
12556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12557 $as_echo "$ac_cv_sizeof_long" >&6; }
12561 cat >>confdefs.h <<_ACEOF
12562 #define SIZEOF_LONG $ac_cv_sizeof_long
12566 # The cast to long int works around a bug in the HP C Compiler
12567 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12568 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12569 # This bug is HP SR number 8606223364.
12570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12571 $as_echo_n "checking size of long long... " >&6; }
12572 if ${ac_cv_sizeof_long_long+:} false; then :
12573 $as_echo_n "(cached) " >&6
12575 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
12578 if test "$ac_cv_type_long_long" = yes; then
12579 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12580 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12581 as_fn_error 77 "cannot compute sizeof (long long)
12582 See \`config.log' for more details" "$LINENO" 5; }
12584 ac_cv_sizeof_long_long=0
12589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12590 $as_echo "$ac_cv_sizeof_long_long" >&6; }
12594 cat >>confdefs.h <<_ACEOF
12595 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12599 # The cast to long int works around a bug in the HP C Compiler
12600 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12601 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12602 # This bug is HP SR number 8606223364.
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
12604 $as_echo_n "checking size of off_t... " >&6; }
12605 if ${ac_cv_sizeof_off_t+:} false; then :
12606 $as_echo_n "(cached) " >&6
12608 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
12611 if test "$ac_cv_type_off_t" = yes; then
12612 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12613 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12614 as_fn_error 77 "cannot compute sizeof (off_t)
12615 See \`config.log' for more details" "$LINENO" 5; }
12617 ac_cv_sizeof_off_t=0
12622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
12623 $as_echo "$ac_cv_sizeof_off_t" >&6; }
12627 cat >>confdefs.h <<_ACEOF
12628 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
12632 # The cast to long int works around a bug in the HP C Compiler
12633 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12634 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12635 # This bug is HP SR number 8606223364.
12636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
12637 $as_echo_n "checking size of time_t... " >&6; }
12638 if ${ac_cv_sizeof_time_t+:} false; then :
12639 $as_echo_n "(cached) " >&6
12641 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then :
12644 if test "$ac_cv_type_time_t" = yes; then
12645 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12646 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12647 as_fn_error 77 "cannot compute sizeof (time_t)
12648 See \`config.log' for more details" "$LINENO" 5; }
12650 ac_cv_sizeof_time_t=0
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
12656 $as_echo "$ac_cv_sizeof_time_t" >&6; }
12660 cat >>confdefs.h <<_ACEOF
12661 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
12665 SIZEOF_SHORT=$ac_cv_sizeof_short
12666 SIZEOF_INT=$ac_cv_sizeof_int
12667 SIZEOF_LONG=$ac_cv_sizeof_long
12668 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
12669 SIZEOF_OFF_T=$ac_cv_sizeof_off_t
12670 SIZEOF_TIME_T=$ac_cv_sizeof_time_t
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12678 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12679 if ${ac_cv_c_bigendian+:} false; then :
12680 $as_echo_n "(cached) " >&6
12682 ac_cv_c_bigendian=unknown
12683 # See if we're dealing with a universal compiler.
12684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12685 /* end confdefs.h. */
12686 #ifndef __APPLE_CC__
12687 not a universal capable compiler
12692 if ac_fn_c_try_compile "$LINENO"; then :
12694 # Check for potential -arch flags. It is not universal unless
12695 # there are at least two -arch flags with different values.
12698 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12699 if test -n "$ac_prev"; then
12701 i?86 | x86_64 | ppc | ppc64)
12702 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12705 ac_cv_c_bigendian=universal
12711 elif test "x$ac_word" = "x-arch"; then
12716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12717 if test $ac_cv_c_bigendian = unknown; then
12718 # See if sys/param.h defines the BYTE_ORDER macro.
12719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12720 /* end confdefs.h. */
12721 #include <sys/types.h>
12722 #include <sys/param.h>
12727 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12728 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12730 bogus endian macros
12737 if ac_fn_c_try_compile "$LINENO"; then :
12738 # It does; now see whether it defined to BIG_ENDIAN or not.
12739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12740 /* end confdefs.h. */
12741 #include <sys/types.h>
12742 #include <sys/param.h>
12747 #if BYTE_ORDER != BIG_ENDIAN
12755 if ac_fn_c_try_compile "$LINENO"; then :
12756 ac_cv_c_bigendian=yes
12758 ac_cv_c_bigendian=no
12760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12764 if test $ac_cv_c_bigendian = unknown; then
12765 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12767 /* end confdefs.h. */
12768 #include <limits.h>
12773 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12774 bogus endian macros
12781 if ac_fn_c_try_compile "$LINENO"; then :
12782 # It does; now see whether it defined to _BIG_ENDIAN or not.
12783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12784 /* end confdefs.h. */
12785 #include <limits.h>
12790 #ifndef _BIG_ENDIAN
12798 if ac_fn_c_try_compile "$LINENO"; then :
12799 ac_cv_c_bigendian=yes
12801 ac_cv_c_bigendian=no
12803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12807 if test $ac_cv_c_bigendian = unknown; then
12808 # Compile a test program.
12809 if test "$cross_compiling" = yes; then :
12810 # Try to guess by grepping values from an object file.
12811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12812 /* end confdefs.h. */
12813 short int ascii_mm[] =
12814 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12815 short int ascii_ii[] =
12816 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12817 int use_ascii (int i) {
12818 return ascii_mm[i] + ascii_ii[i];
12820 short int ebcdic_ii[] =
12821 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12822 short int ebcdic_mm[] =
12823 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12824 int use_ebcdic (int i) {
12825 return ebcdic_mm[i] + ebcdic_ii[i];
12832 return use_ascii (foo) == use_ebcdic (foo);
12837 if ac_fn_c_try_compile "$LINENO"; then :
12838 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12839 ac_cv_c_bigendian=yes
12841 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12842 if test "$ac_cv_c_bigendian" = unknown; then
12843 ac_cv_c_bigendian=no
12845 # finding both strings is unlikely to happen, but who knows?
12846 ac_cv_c_bigendian=unknown
12850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12853 /* end confdefs.h. */
12854 $ac_includes_default
12859 /* Are we little or big endian? From Harbison&Steele. */
12863 char c[sizeof (long int)];
12866 return u.c[sizeof (long int) - 1] == 1;
12872 if ac_fn_c_try_run "$LINENO"; then :
12873 ac_cv_c_bigendian=no
12875 ac_cv_c_bigendian=yes
12877 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12878 conftest.$ac_objext conftest.beam conftest.$ac_ext
12883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12884 $as_echo "$ac_cv_c_bigendian" >&6; }
12885 case $ac_cv_c_bigendian in #(
12887 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12893 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12897 as_fn_error $? "unknown endianness
12898 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12901 if test $cross_compiling = no; then
12902 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12904 CROSS_COMPILE="1" BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12906 ASM_TYPES_HEADER=./asm_types.h
12908 echo "/* These defines are needed for the public ext2fs.h header file */" \
12910 if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
12911 uniq tmp_config.$$ >> public_config.h
12913 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
12915 if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
12916 uniq tmp_config.$$ >> public_config.h
12918 echo "#undef WORDS_BIGENDIAN" >> public_config.h
12920 rm -f tmp_config.$$
12921 PUBLIC_CONFIG_HEADER=./public_config.h
12923 for ac_header in inttypes.h
12925 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
12926 if test "x$ac_cv_header_inttypes_h" = xyes; then :
12927 cat >>confdefs.h <<_ACEOF
12928 #define HAVE_INTTYPES_H 1
12935 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
12936 if test "x$ac_cv_type_intptr_t" = xyes; then :
12938 cat >>confdefs.h <<_ACEOF
12939 #define HAVE_INTPTR_T 1
12945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5
12946 $as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
12947 if ${e2fsprogs_cv_struct_st_flags+:} false; then :
12948 $as_echo_n "(cached) " >&6
12950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12951 /* end confdefs.h. */
12952 #include <sys/stat.h>
12956 struct stat stat; stat.st_flags = 0;
12961 if ac_fn_c_try_compile "$LINENO"; then :
12962 e2fsprogs_cv_struct_st_flags=yes
12964 e2fsprogs_cv_struct_st_flags=no
12966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
12970 $as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
12971 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
12972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
12973 $as_echo_n "checking whether st_flags field is useful... " >&6; }
12974 if ${e2fsprogs_cv_struct_st_flags_immut+:} false; then :
12975 $as_echo_n "(cached) " >&6
12977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12978 /* end confdefs.h. */
12979 #include <sys/stat.h>
12983 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
12988 if ac_fn_c_try_compile "$LINENO"; then :
12989 e2fsprogs_cv_struct_st_flags_immut=yes
12991 e2fsprogs_cv_struct_st_flags_immut=no
12993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
12997 $as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
12998 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
13000 $as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
13004 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
13005 #include <sys/socket.h>
13007 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
13009 cat >>confdefs.h <<_ACEOF
13010 #define HAVE_SA_LEN 1
13015 if test -n "$BLKID_CMT"; then
13016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5
13017 $as_echo_n "checking for library containing blkid_probe_all... " >&6; }
13018 if ${ac_cv_search_blkid_probe_all+:} false; then :
13019 $as_echo_n "(cached) " >&6
13021 ac_func_search_save_LIBS=$LIBS
13022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13023 /* end confdefs.h. */
13025 /* Override any GCC internal prototype to avoid an error.
13026 Use char because int might match the return type of a GCC
13027 builtin and then its argument prototype would still apply. */
13031 char blkid_probe_all ();
13035 return blkid_probe_all ();
13040 for ac_lib in '' blkid; do
13041 if test -z "$ac_lib"; then
13042 ac_res="none required"
13045 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13047 if ac_fn_c_try_link "$LINENO"; then :
13048 ac_cv_search_blkid_probe_all=$ac_res
13050 rm -f core conftest.err conftest.$ac_objext \
13052 if ${ac_cv_search_blkid_probe_all+:} false; then :
13056 if ${ac_cv_search_blkid_probe_all+:} false; then :
13059 ac_cv_search_blkid_probe_all=no
13061 rm conftest.$ac_ext
13062 LIBS=$ac_func_search_save_LIBS
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5
13065 $as_echo "$ac_cv_search_blkid_probe_all" >&6; }
13066 ac_res=$ac_cv_search_blkid_probe_all
13067 if test "$ac_res" != no; then :
13068 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13073 if test -n "$DLOPEN_LIB" ; then
13074 ac_cv_func_dlopen=yes
13076 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
13078 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13079 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13080 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13081 cat >>confdefs.h <<_ACEOF
13082 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
13090 $as_echo_n "checking for socket in -lsocket... " >&6; }
13091 if ${ac_cv_lib_socket_socket+:} false; then :
13092 $as_echo_n "(cached) " >&6
13094 ac_check_lib_save_LIBS=$LIBS
13095 LIBS="-lsocket $LIBS"
13096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13097 /* end confdefs.h. */
13099 /* Override any GCC internal prototype to avoid an error.
13100 Use char because int might match the return type of a GCC
13101 builtin and then its argument prototype would still apply. */
13114 if ac_fn_c_try_link "$LINENO"; then :
13115 ac_cv_lib_socket_socket=yes
13117 ac_cv_lib_socket_socket=no
13119 rm -f core conftest.err conftest.$ac_objext \
13120 conftest$ac_exeext conftest.$ac_ext
13121 LIBS=$ac_check_lib_save_LIBS
13123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
13124 $as_echo "$ac_cv_lib_socket_socket" >&6; }
13125 if test "x$ac_cv_lib_socket_socket" = xyes; then :
13126 SOCKET_LIB=-lsocket
13130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_file in -lmagic" >&5
13131 $as_echo_n "checking for magic_file in -lmagic... " >&6; }
13132 if ${ac_cv_lib_magic_magic_file+:} false; then :
13133 $as_echo_n "(cached) " >&6
13135 ac_check_lib_save_LIBS=$LIBS
13136 LIBS="-lmagic $LIBS"
13137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13138 /* end confdefs.h. */
13140 /* Override any GCC internal prototype to avoid an error.
13141 Use char because int might match the return type of a GCC
13142 builtin and then its argument prototype would still apply. */
13146 char magic_file ();
13150 return magic_file ();
13155 if ac_fn_c_try_link "$LINENO"; then :
13156 ac_cv_lib_magic_magic_file=yes
13158 ac_cv_lib_magic_magic_file=no
13160 rm -f core conftest.err conftest.$ac_objext \
13161 conftest$ac_exeext conftest.$ac_ext
13162 LIBS=$ac_check_lib_save_LIBS
13164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_file" >&5
13165 $as_echo "$ac_cv_lib_magic_magic_file" >&6; }
13166 if test "x$ac_cv_lib_magic_magic_file" = xyes; then :
13168 for ac_header in magic.h
13170 ac_fn_c_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default"
13171 if test "x$ac_cv_header_magic_h" = xyes; then :
13172 cat >>confdefs.h <<_ACEOF
13173 #define HAVE_MAGIC_H 1
13182 if test "$ac_cv_func_dlopen" = yes ; then
13183 MAGIC_LIB=$DLOPEN_LIB
13186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
13187 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
13188 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
13189 $as_echo_n "(cached) " >&6
13191 ac_check_lib_save_LIBS=$LIBS
13193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13194 /* end confdefs.h. */
13196 /* Override any GCC internal prototype to avoid an error.
13197 Use char because int might match the return type of a GCC
13198 builtin and then its argument prototype would still apply. */
13202 char clock_gettime ();
13206 return clock_gettime ();
13211 if ac_fn_c_try_link "$LINENO"; then :
13212 ac_cv_lib_rt_clock_gettime=yes
13214 ac_cv_lib_rt_clock_gettime=no
13216 rm -f core conftest.err conftest.$ac_objext \
13217 conftest$ac_exeext conftest.$ac_ext
13218 LIBS=$ac_check_lib_save_LIBS
13220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
13221 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
13222 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
13223 CLOCK_GETTIME_LIB=-lrt
13229 # Check whether --enable-fuse2fs was given.
13230 if test "${enable_fuse2fs+set}" = set; then :
13231 enableval=$enable_fuse2fs; if test "$enableval" = "no"
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling fuse2fs" >&5
13235 $as_echo "Disabling fuse2fs" >&6; }
13237 for ac_header in pthread.h fuse.h
13239 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13240 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
13241 #define FUSE_USE_VERSION 29
13243 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13244 cat >>confdefs.h <<_ACEOF
13245 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13249 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13250 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13251 as_fn_error $? "Cannot find fuse2fs headers.
13252 See \`config.log' for more details" "$LINENO" 5; }
13258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13259 /* end confdefs.h. */
13260 #define FUSE_USE_VERSION 29
13262 #include <linux/fs.h>
13263 #include <linux/falloc.h>
13264 #include <linux/xattr.h>
13275 if ac_fn_c_try_cpp "$LINENO"; then :
13278 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13279 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13280 as_fn_error $? "Cannot find fuse2fs Linux headers.
13281 See \`config.log' for more details" "$LINENO" 5; }
13283 rm -f conftest.err conftest.i conftest.$ac_ext
13285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
13286 $as_echo_n "checking for fuse_main in -losxfuse... " >&6; }
13287 if ${ac_cv_lib_osxfuse_fuse_main+:} false; then :
13288 $as_echo_n "(cached) " >&6
13290 ac_check_lib_save_LIBS=$LIBS
13291 LIBS="-losxfuse $LIBS"
13292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13293 /* end confdefs.h. */
13295 /* Override any GCC internal prototype to avoid an error.
13296 Use char because int might match the return type of a GCC
13297 builtin and then its argument prototype would still apply. */
13305 return fuse_main ();
13310 if ac_fn_c_try_link "$LINENO"; then :
13311 ac_cv_lib_osxfuse_fuse_main=yes
13313 ac_cv_lib_osxfuse_fuse_main=no
13315 rm -f core conftest.err conftest.$ac_objext \
13316 conftest$ac_exeext conftest.$ac_ext
13317 LIBS=$ac_check_lib_save_LIBS
13319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
13320 $as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; }
13321 if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then :
13324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
13325 $as_echo_n "checking for fuse_main in -lfuse... " >&6; }
13326 if ${ac_cv_lib_fuse_fuse_main+:} false; then :
13327 $as_echo_n "(cached) " >&6
13329 ac_check_lib_save_LIBS=$LIBS
13330 LIBS="-lfuse $LIBS"
13331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13332 /* end confdefs.h. */
13334 /* Override any GCC internal prototype to avoid an error.
13335 Use char because int might match the return type of a GCC
13336 builtin and then its argument prototype would still apply. */
13344 return fuse_main ();
13349 if ac_fn_c_try_link "$LINENO"; then :
13350 ac_cv_lib_fuse_fuse_main=yes
13352 ac_cv_lib_fuse_fuse_main=no
13354 rm -f core conftest.err conftest.$ac_objext \
13355 conftest$ac_exeext conftest.$ac_ext
13356 LIBS=$ac_check_lib_save_LIBS
13358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
13359 $as_echo "$ac_cv_lib_fuse_fuse_main" >&6; }
13360 if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then :
13363 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13364 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13365 as_fn_error $? "Cannot find fuse library.
13366 See \`config.log' for more details" "$LINENO" 5; }
13371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs" >&5
13372 $as_echo "Enabling fuse2fs" >&6; }
13376 for ac_header in pthread.h fuse.h
13378 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13379 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
13380 #define FUSE_USE_VERSION 29
13382 # include <linux/fs.h>
13383 # include <linux/falloc.h>
13384 # include <linux/xattr.h>
13387 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13388 cat >>confdefs.h <<_ACEOF
13389 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13398 if test -z "$FUSE_CMT"
13400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
13401 $as_echo_n "checking for fuse_main in -losxfuse... " >&6; }
13402 if ${ac_cv_lib_osxfuse_fuse_main+:} false; then :
13403 $as_echo_n "(cached) " >&6
13405 ac_check_lib_save_LIBS=$LIBS
13406 LIBS="-losxfuse $LIBS"
13407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13408 /* end confdefs.h. */
13410 /* Override any GCC internal prototype to avoid an error.
13411 Use char because int might match the return type of a GCC
13412 builtin and then its argument prototype would still apply. */
13420 return fuse_main ();
13425 if ac_fn_c_try_link "$LINENO"; then :
13426 ac_cv_lib_osxfuse_fuse_main=yes
13428 ac_cv_lib_osxfuse_fuse_main=no
13430 rm -f core conftest.err conftest.$ac_objext \
13431 conftest$ac_exeext conftest.$ac_ext
13432 LIBS=$ac_check_lib_save_LIBS
13434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
13435 $as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; }
13436 if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then :
13439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
13440 $as_echo_n "checking for fuse_main in -lfuse... " >&6; }
13441 if ${ac_cv_lib_fuse_fuse_main+:} false; then :
13442 $as_echo_n "(cached) " >&6
13444 ac_check_lib_save_LIBS=$LIBS
13445 LIBS="-lfuse $LIBS"
13446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13447 /* end confdefs.h. */
13449 /* Override any GCC internal prototype to avoid an error.
13450 Use char because int might match the return type of a GCC
13451 builtin and then its argument prototype would still apply. */
13459 return fuse_main ();
13464 if ac_fn_c_try_link "$LINENO"; then :
13465 ac_cv_lib_fuse_fuse_main=yes
13467 ac_cv_lib_fuse_fuse_main=no
13469 rm -f core conftest.err conftest.$ac_objext \
13470 conftest$ac_exeext conftest.$ac_ext
13471 LIBS=$ac_check_lib_save_LIBS
13473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
13474 $as_echo "$ac_cv_lib_fuse_fuse_main" >&6; }
13475 if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then :
13484 if test -z "$FUSE_CMT"
13486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs by default." >&5
13487 $as_echo "Enabling fuse2fs by default." >&6; }
13494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
13495 $as_echo_n "checking for optreset... " >&6; }
13496 if ${ac_cv_have_optreset+:} false; then :
13497 $as_echo_n "(cached) " >&6
13499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13500 /* end confdefs.h. */
13501 #include <unistd.h>
13504 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13505 $EGREP "optreset" >/dev/null 2>&1; then :
13506 ac_cv_have_optreset=yes
13508 ac_cv_have_optreset=no
13513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
13514 $as_echo "$ac_cv_have_optreset" >&6; }
13515 if test $ac_cv_have_optreset = yes; then
13517 $as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
13522 ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
13523 if test "x$ac_cv_func_sem_init" = xyes; then :
13526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
13527 $as_echo_n "checking for sem_init in -lpthread... " >&6; }
13528 if ${ac_cv_lib_pthread_sem_init+:} false; then :
13529 $as_echo_n "(cached) " >&6
13531 ac_check_lib_save_LIBS=$LIBS
13532 LIBS="-lpthread $LIBS"
13533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13534 /* end confdefs.h. */
13536 /* Override any GCC internal prototype to avoid an error.
13537 Use char because int might match the return type of a GCC
13538 builtin and then its argument prototype would still apply. */
13546 return sem_init ();
13551 if ac_fn_c_try_link "$LINENO"; then :
13552 ac_cv_lib_pthread_sem_init=yes
13554 ac_cv_lib_pthread_sem_init=no
13556 rm -f core conftest.err conftest.$ac_objext \
13557 conftest$ac_exeext conftest.$ac_ext
13558 LIBS=$ac_check_lib_save_LIBS
13560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
13561 $as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
13562 if test "x$ac_cv_lib_pthread_sem_init" = xyes; then :
13563 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
13565 SEM_INIT_LIB=-lpthread
13567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
13568 $as_echo_n "checking for sem_init in -lrt... " >&6; }
13569 if ${ac_cv_lib_rt_sem_init+:} false; then :
13570 $as_echo_n "(cached) " >&6
13572 ac_check_lib_save_LIBS=$LIBS
13574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13575 /* end confdefs.h. */
13577 /* Override any GCC internal prototype to avoid an error.
13578 Use char because int might match the return type of a GCC
13579 builtin and then its argument prototype would still apply. */
13587 return sem_init ();
13592 if ac_fn_c_try_link "$LINENO"; then :
13593 ac_cv_lib_rt_sem_init=yes
13595 ac_cv_lib_rt_sem_init=no
13597 rm -f core conftest.err conftest.$ac_objext \
13598 conftest$ac_exeext conftest.$ac_ext
13599 LIBS=$ac_check_lib_save_LIBS
13601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
13602 $as_echo "$ac_cv_lib_rt_sem_init" >&6; }
13603 if test "x$ac_cv_lib_rt_sem_init" = xyes; then :
13604 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
13608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
13609 $as_echo_n "checking for sem_init in -lposix4... " >&6; }
13610 if ${ac_cv_lib_posix4_sem_init+:} false; then :
13611 $as_echo_n "(cached) " >&6
13613 ac_check_lib_save_LIBS=$LIBS
13614 LIBS="-lposix4 $LIBS"
13615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13616 /* end confdefs.h. */
13618 /* Override any GCC internal prototype to avoid an error.
13619 Use char because int might match the return type of a GCC
13620 builtin and then its argument prototype would still apply. */
13628 return sem_init ();
13633 if ac_fn_c_try_link "$LINENO"; then :
13634 ac_cv_lib_posix4_sem_init=yes
13636 ac_cv_lib_posix4_sem_init=no
13638 rm -f core conftest.err conftest.$ac_objext \
13639 conftest$ac_exeext conftest.$ac_ext
13640 LIBS=$ac_check_lib_save_LIBS
13642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
13643 $as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
13644 if test "x$ac_cv_lib_posix4_sem_init" = xyes; then :
13645 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
13647 SEM_INIT_LIB=-lposix4
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
13657 $as_echo_n "checking for unified diff option... " >&6; }
13658 if diff -u $0 $0 > /dev/null 2>&1 ; then
13663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
13664 $as_echo "$UNI_DIFF_OPTS" >&6; }
13669 $as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
13689 linux* | gnu* | k*bsd*-gnu)
13690 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
13692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5
13693 $as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
13698 linux* | gnu* | k*bsd*-gnu)
13699 if test "$prefix" = NONE ; then
13701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5
13702 $as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
13703 if test "$mandir" = '${prefix}/man' ; then
13704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
13705 $as_echo "...and mandir defaults to /usr/share/man" >&6; }
13706 mandir=/usr/share/man
13711 if test "$root_prefix" = NONE ; then
13712 if test "$prefix" = NONE ; then
13713 root_prefix="$ac_default_prefix"
13715 root_prefix="$prefix"
13717 root_bindir=$bindir
13718 root_sbindir=$sbindir
13719 root_libdir=$libdir
13720 root_sysconfdir=$sysconfdir
13722 root_bindir='${root_prefix}/bin'
13723 root_sbindir='${root_prefix}/sbin'
13724 root_libdir='${root_prefix}/lib'
13725 root_sysconfdir='${root_prefix}/etc'
13727 if test "$bindir" != '${exec_prefix}/bin'; then
13728 root_bindir=$bindir
13729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
13730 $as_echo "Setting root_bindir to $root_bindir" >&6; }
13732 if test "$sbindir" != '${exec_prefix}/sbin'; then
13733 root_sbindir=$sbindir
13734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
13735 $as_echo "Setting root_sbindir to $root_sbindir" >&6; }
13737 if test "$libdir" != '${exec_prefix}/lib'; then
13738 root_libdir=$libdir
13739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
13740 $as_echo "Setting root_libdir to $root_libdir" >&6; }
13742 if test "$sysconfdir" != '${prefix}/etc'; then
13743 root_sysconfdir=$sysconfdir
13744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
13745 $as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
13753 # Check whether --with-multiarch was given.
13754 if test "${with_multiarch+set}" = set; then :
13755 withval=$with_multiarch; if test "$withval" = "lib64"; then
13759 libdir=$libdir/$withval
13760 root_libdir=$root_libdir/$withval
13764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5
13765 $as_echo_n "checking whether we can link with -static... " >&6; }
13766 if ${ac_cv_e2fsprogs_use_static+:} false; then :
13767 $as_echo_n "(cached) " >&6
13769 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS_STATIC -static"
13770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13771 /* end confdefs.h. */
13781 if ac_fn_c_try_link "$LINENO"; then :
13782 ac_cv_e2fsprogs_use_static=yes
13784 ac_cv_e2fsprogs_use_static=no
13786 rm -f core conftest.err conftest.$ac_objext \
13787 conftest$ac_exeext conftest.$ac_ext
13788 LDFLAGS=$SAVE_LDFLAGS
13793 ac_cv_e2fsprogs_use_static=no
13796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
13797 $as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
13798 if test $ac_cv_e2fsprogs_use_static = yes; then
13799 LDFLAGS_STATIC="$LDFLAGS_STATIC -static"
13804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
13805 $as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
13807 $as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
13811 if test "$cross_compiling" = yes ; then
13814 DO_TEST_SUITE=check
13817 INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
13818 if test -n "$CPPFLAGS" ; then
13819 INCLUDES="$INCLUDES $CPPFLAGS"
13821 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
13822 INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
13824 if test -n "$WITH_DIET_LIBC" ; then
13825 INCLUDES="$INCLUDES -D_REENTRANT"
13830 if test -n "$ac_aux_dir"; then
13831 case "$ac_aux_dir" in
13832 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
13833 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
13836 if test -z "$MKINSTALLDIRS"; then
13837 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
13841 if test $cross_compiling = no; then
13842 BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H"
13843 BUILD_LDFLAGS="$LDFLAGS"
13847 CFLAGS_SHLIB=${CFLAGS_SHLIB:-$CFLAGS}
13848 CFLAGS_STLIB=${CFLAGS_STLIB:-$CFLAGS}
13849 LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
13853 test -d lib || mkdir lib
13854 test -d include || mkdir include
13855 test -d include/linux || mkdir include/linux
13856 test -d include/asm || mkdir include/asm
13857 if test -z "$UUID_CMT" ; then
13858 uuid_out_list="lib/uuid/Makefile lib/uuid/uuid.pc \
13859 lib/uuid/uuid_types.h"
13861 if test -z "$BLKID_CMT" ; then
13862 blkid_out_list="lib/blkid/Makefile lib/blkid/blkid.pc \
13863 lib/blkid/blkid_types.h"
13865 for i in MCONFIG Makefile e2fsprogs.spec \
13866 util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
13867 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
13868 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
13869 $uuid_out_list $blkid_out_list lib/support/Makefile \
13870 lib/ss/ss.pc lib/et/com_err.pc lib/e2p/e2p.pc lib/ext2fs/ext2fs.pc \
13871 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
13872 debugfs/Makefile tests/Makefile tests/progs/Makefile \
13873 resize/Makefile doc/Makefile intl/Makefile \
13874 intl/libgnuintl.h po/Makefile.in ; do
13875 if test -d `dirname ${srcdir}/$i` ; then
13876 outlist="$outlist $i"
13879 ac_config_files="$ac_config_files $outlist"
13881 cat >confcache <<\_ACEOF
13882 # This file is a shell script that caches the results of configure
13883 # tests run on this system so they can be shared between configure
13884 # scripts and configure runs, see configure's option --config-cache.
13885 # It is not useful on other systems. If it contains results you don't
13886 # want to keep, you may remove or edit it.
13888 # config.status only pays attention to the cache file if you give it
13889 # the --recheck option to rerun configure.
13891 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13892 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13893 # following values.
13897 # The following way of writing the cache mishandles newlines in values,
13898 # but we know of no workaround that is simple, portable, and efficient.
13899 # So, we kill variables containing newlines.
13900 # Ultrix sh set writes to stderr and can't be redirected directly,
13901 # and sets the high bit in the cache file unless we assign to the vars.
13903 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13904 eval ac_val=\$$ac_var
13908 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13909 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13912 _ | IFS | as_nl) ;; #(
13913 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13914 *) { eval $ac_var=; unset $ac_var;} ;;
13920 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13921 *${as_nl}ac_space=\ *)
13922 # `set' does not quote correctly, so add quotes: double-quote
13923 # substitution turns \\\\ into \\, and sed turns \\ into \.
13926 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13929 # `set' quotes correctly as required by POSIX, so do not add quotes.
13930 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13939 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13941 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13943 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13944 if test -w "$cache_file"; then
13945 if test "x$cache_file" != "x/dev/null"; then
13946 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13947 $as_echo "$as_me: updating cache $cache_file" >&6;}
13948 if test ! -f "$cache_file" || test -h "$cache_file"; then
13949 cat confcache >"$cache_file"
13951 case $cache_file in #(
13953 mv -f confcache "$cache_file"$$ &&
13954 mv -f "$cache_file"$$ "$cache_file" ;; #(
13956 mv -f confcache "$cache_file" ;;
13961 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13962 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13967 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13968 # Let make expand exec_prefix.
13969 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13971 DEFS=-DHAVE_CONFIG_H
13976 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13977 # 1. Remove the extension, and $U if already installed.
13978 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13979 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13980 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13981 # will be set to the directory where LIBOBJS objects are built.
13982 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13983 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13985 LIBOBJS=$ac_libobjs
13987 LTLIBOBJS=$ac_ltlibobjs
13992 : "${CONFIG_STATUS=./config.status}"
13994 ac_clean_files_save=$ac_clean_files
13995 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13996 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13997 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13999 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14001 # Generated by $as_me.
14002 # Run this file to recreate the current configuration.
14003 # Compiler output produced by configure, useful for debugging
14004 # configure, is in config.log if it exists.
14007 ac_cs_recheck=false
14010 SHELL=\${CONFIG_SHELL-$SHELL}
14013 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14014 ## -------------------- ##
14015 ## M4sh Initialization. ##
14016 ## -------------------- ##
14018 # Be more Bourne compatible
14019 DUALCASE=1; export DUALCASE # for MKS sh
14020 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14023 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14024 # is contrary to our usage. Disable this feature.
14025 alias -g '${1+"$@"}'='"$@"'
14026 setopt NO_GLOB_SUBST
14028 case `(set -o) 2>/dev/null` in #(
14040 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14041 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14042 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14043 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14044 # Prefer a ksh shell builtin over an external printf program on Solaris,
14045 # but without wasting forks for bash or zsh.
14046 if test -z "$BASH_VERSION$ZSH_VERSION" \
14047 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14048 as_echo='print -r --'
14049 as_echo_n='print -rn --'
14050 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14051 as_echo='printf %s\n'
14052 as_echo_n='printf %s'
14054 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14055 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14056 as_echo_n='/usr/ucb/echo -n'
14058 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14059 as_echo_n_body='eval
14063 expr "X$arg" : "X\\(.*\\)$as_nl";
14064 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14066 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14068 export as_echo_n_body
14069 as_echo_n='sh -c $as_echo_n_body as_echo'
14071 export as_echo_body
14072 as_echo='sh -c $as_echo_body as_echo'
14075 # The user is always right.
14076 if test "${PATH_SEPARATOR+set}" != set; then
14078 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14079 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14086 # We need space, tab and new line, in precisely that order. Quoting is
14087 # there to prevent editors from complaining about space-tab.
14088 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14089 # splitting by setting IFS to empty value.)
14092 # Find who we are. Look in the path if we contain no directory separator.
14095 *[\\/]* ) as_myself=$0 ;;
14096 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14097 for as_dir in $PATH
14100 test -z "$as_dir" && as_dir=.
14101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14107 # We did not find ourselves, most probably we were run as `sh COMMAND'
14108 # in which case we are not to be found in the path.
14109 if test "x$as_myself" = x; then
14112 if test ! -f "$as_myself"; then
14113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14117 # Unset variables that we do not need and which cause bugs (e.g. in
14118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14119 # suppresses any "Segmentation fault" message there. '((' could
14120 # trigger a bug in pdksh 5.2.14.
14121 for as_var in BASH_ENV ENV MAIL MAILPATH
14122 do eval test x\${$as_var+set} = xset \
14123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14139 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14140 # ----------------------------------------
14141 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14142 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14143 # script with STATUS, using 1 if that was 0.
14146 as_status=$1; test $as_status -eq 0 && as_status=1
14148 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14149 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14151 $as_echo "$as_me: error: $2" >&2
14152 as_fn_exit $as_status
14156 # as_fn_set_status STATUS
14157 # -----------------------
14158 # Set $? to STATUS, without forking.
14159 as_fn_set_status ()
14162 } # as_fn_set_status
14164 # as_fn_exit STATUS
14165 # -----------------
14166 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14170 as_fn_set_status $1
14176 # Portably unset VAR.
14179 { eval $1=; unset $1;}
14181 as_unset=as_fn_unset
14182 # as_fn_append VAR VALUE
14183 # ----------------------
14184 # Append the text in VALUE to the end of the definition contained in VAR. Take
14185 # advantage of any shell optimizations that allow amortized linear growth over
14186 # repeated appends, instead of the typical quadratic growth present in naive
14188 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14189 eval 'as_fn_append ()
14200 # as_fn_arith ARG...
14201 # ------------------
14202 # Perform arithmetic evaluation on the ARGs, and store the result in the
14203 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14204 # must be portable across $(()) and expr.
14205 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14206 eval 'as_fn_arith ()
14213 as_val=`expr "$@" || test $? -eq 1`
14218 if expr a : '\(a\)' >/dev/null 2>&1 &&
14219 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14225 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14226 as_basename=basename
14231 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14237 as_me=`$as_basename -- "$0" ||
14238 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14239 X"$0" : 'X\(//\)$' \| \
14240 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14242 sed '/^.*\/\([^/][^/]*\)\/*$/{
14256 # Avoid depending upon Character Ranges.
14257 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14258 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14259 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14260 as_cr_digits='0123456789'
14261 as_cr_alnum=$as_cr_Letters$as_cr_digits
14263 ECHO_C= ECHO_N= ECHO_T=
14264 case `echo -n x` in #(((((
14266 case `echo 'xy\c'` in
14267 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14269 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14276 rm -f conf$$ conf$$.exe conf$$.file
14277 if test -d conf$$.dir; then
14278 rm -f conf$$.dir/conf$$.file
14281 mkdir conf$$.dir 2>/dev/null
14283 if (echo >conf$$.file) 2>/dev/null; then
14284 if ln -s conf$$.file conf$$ 2>/dev/null; then
14286 # ... but there are two gotchas:
14287 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14288 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14289 # In both cases, we have to default to `cp -pR'.
14290 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14292 elif ln conf$$.file conf$$ 2>/dev/null; then
14300 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14301 rmdir conf$$.dir 2>/dev/null
14306 # Create "$as_dir" as a directory, including parents if necessary.
14311 -*) as_dir=./$as_dir;;
14313 test -d "$as_dir" || eval $as_mkdir_p || {
14317 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14318 *) as_qdir=$as_dir;;
14320 as_dirs="'$as_qdir' $as_dirs"
14321 as_dir=`$as_dirname -- "$as_dir" ||
14322 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14323 X"$as_dir" : 'X\(//\)[^/]' \| \
14324 X"$as_dir" : 'X\(//\)$' \| \
14325 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14326 $as_echo X"$as_dir" |
14327 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14331 /^X\(\/\/\)[^/].*/{
14344 test -d "$as_dir" && break
14346 test -z "$as_dirs" || eval "mkdir $as_dirs"
14347 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14351 if mkdir -p . 2>/dev/null; then
14352 as_mkdir_p='mkdir -p "$as_dir"'
14354 test -d ./-p && rmdir ./-p
14359 # as_fn_executable_p FILE
14360 # -----------------------
14361 # Test if FILE is an executable regular file.
14362 as_fn_executable_p ()
14364 test -f "$1" && test -x "$1"
14365 } # as_fn_executable_p
14366 as_test_x='test -x'
14367 as_executable_p=as_fn_executable_p
14369 # Sed expression to map a string onto a valid CPP name.
14370 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14372 # Sed expression to map a string onto a valid variable name.
14373 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14377 ## ----------------------------------- ##
14378 ## Main body of $CONFIG_STATUS script. ##
14379 ## ----------------------------------- ##
14381 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14383 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14384 # Save the log message, to keep $0 and so on meaningful, and to
14385 # report actual input values of CONFIG_FILES etc. instead of their
14386 # values after options handling.
14388 This file was extended by $as_me, which was
14389 generated by GNU Autoconf 2.69. Invocation command line was
14391 CONFIG_FILES = $CONFIG_FILES
14392 CONFIG_HEADERS = $CONFIG_HEADERS
14393 CONFIG_LINKS = $CONFIG_LINKS
14394 CONFIG_COMMANDS = $CONFIG_COMMANDS
14397 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14402 case $ac_config_files in *"
14403 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14406 case $ac_config_headers in *"
14407 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14411 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14412 # Files that config.status was made for.
14413 config_files="$ac_config_files"
14414 config_headers="$ac_config_headers"
14415 config_commands="$ac_config_commands"
14419 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14421 \`$as_me' instantiates files and other configuration actions
14422 from templates according to the current configuration. Unless the files
14423 and actions are specified as TAGs, all are instantiated by default.
14425 Usage: $0 [OPTION]... [TAG]...
14427 -h, --help print this help, then exit
14428 -V, --version print version number and configuration settings, then exit
14429 --config print configuration, then exit
14430 -q, --quiet, --silent
14431 do not print progress messages
14432 -d, --debug don't remove temporary files
14433 --recheck update $as_me by reconfiguring in the same conditions
14434 --file=FILE[:TEMPLATE]
14435 instantiate the configuration file FILE
14436 --header=FILE[:TEMPLATE]
14437 instantiate the configuration header FILE
14439 Configuration files:
14442 Configuration headers:
14445 Configuration commands:
14448 Report bugs to the package provider."
14451 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14452 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14455 configured by $0, generated by GNU Autoconf 2.69,
14456 with options \\"\$ac_cs_config\\"
14458 Copyright (C) 2012 Free Software Foundation, Inc.
14459 This config.status script is free software; the Free Software Foundation
14460 gives unlimited permission to copy, distribute and modify it."
14467 test -n "\$AWK" || AWK=awk
14470 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14471 # The default lists apply if the user does not specify any file.
14477 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14478 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14482 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14494 # Handling of the options.
14495 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14497 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14498 $as_echo "$ac_cs_version"; exit ;;
14499 --config | --confi | --conf | --con | --co | --c )
14500 $as_echo "$ac_cs_config"; exit ;;
14501 --debug | --debu | --deb | --de | --d | -d )
14503 --file | --fil | --fi | --f )
14506 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14507 '') as_fn_error $? "missing file argument" ;;
14509 as_fn_append CONFIG_FILES " '$ac_optarg'"
14510 ac_need_defaults=false;;
14511 --header | --heade | --head | --hea )
14514 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14516 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14517 ac_need_defaults=false;;
14519 # Conflict between --help and --header
14520 as_fn_error $? "ambiguous option: \`$1'
14521 Try \`$0 --help' for more information.";;
14522 --help | --hel | -h )
14523 $as_echo "$ac_cs_usage"; exit ;;
14524 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14525 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14528 # This is an error.
14529 -*) as_fn_error $? "unrecognized option: \`$1'
14530 Try \`$0 --help' for more information." ;;
14532 *) as_fn_append ac_config_targets " $1"
14533 ac_need_defaults=false ;;
14539 ac_configure_extra_args=
14541 if $ac_cs_silent; then
14543 ac_configure_extra_args="$ac_configure_extra_args --silent"
14547 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14548 if \$ac_cs_recheck; then
14549 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14551 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14552 CONFIG_SHELL='$SHELL'
14553 export CONFIG_SHELL
14558 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14562 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14563 ## Running $as_me. ##
14569 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14573 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
14574 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
14575 # from automake < 1.5.
14576 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
14577 # Capture the value of LINGUAS because we need it to compute CATALOGS.
14578 LINGUAS="${LINGUAS-%UNSET%}"
14583 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14585 # Handling of arguments.
14586 for ac_config_target in $ac_config_targets
14588 case $ac_config_target in
14589 "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
14590 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
14591 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
14593 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14598 # If the user did not use the arguments to specify the items to instantiate,
14599 # then the envvar interface is used. Set only those that are not.
14600 # We use the long form for the default assignment because of an extremely
14601 # bizarre bug on SunOS 4.1.3.
14602 if $ac_need_defaults; then
14603 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14604 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14605 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14608 # Have a temporary directory for convenience. Make it in the build tree
14609 # simply because there is no reason against having it here, and in addition,
14610 # creating and moving files from /tmp can sometimes cause problems.
14611 # Hook for its removal unless debugging.
14612 # Note that there is a small window in which the directory will not be cleaned:
14613 # after its creation but before its name has been assigned to `$tmp'.
14617 trap 'exit_status=$?
14618 : "${ac_tmp:=$tmp}"
14619 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14621 trap 'as_fn_exit 1' 1 2 13 15
14623 # Create a (secure) tmp directory for tmp files.
14626 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14630 tmp=./conf$$-$RANDOM
14631 (umask 077 && mkdir "$tmp")
14632 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14635 # Set up the scripts for CONFIG_FILES section.
14636 # No need to generate them if there are no CONFIG_FILES.
14637 # This happens for instance with `./config.status config.h'.
14638 if test -n "$CONFIG_FILES"; then
14640 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
14641 ac_cs_awk_getline=:
14642 ac_cs_awk_pipe_init=
14643 ac_cs_awk_read_file='
14644 while ((getline aline < (F[key])) > 0)
14647 ac_cs_awk_pipe_fini=
14649 ac_cs_awk_getline=false
14650 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
14651 ac_cs_awk_read_file='
14653 print "cat " F[key] " &&"
14654 '$ac_cs_awk_pipe_init
14655 # The final `:' finishes the AND list.
14656 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
14658 ac_cr=`echo X | tr X '\015'`
14659 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14660 # But we know of no other shell where ac_cr would be empty at this
14661 # point, so we can use a bashism as a fallback.
14662 if test "x$ac_cr" = x; then
14663 eval ac_cr=\$\'\\r\'
14665 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14666 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14669 ac_cs_awk_cr=$ac_cr
14672 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14675 # Create commands to substitute file output variables.
14677 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
14678 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
14679 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
14682 } >conf$$files.sh &&
14683 . ./conf$$files.sh ||
14684 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14685 rm -f conf$$files.sh
14688 echo "cat >conf$$subs.awk <<_ACEOF" &&
14689 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14691 } >conf$$subs.sh ||
14692 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14693 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14695 for ac_last_try in false false false false false :; do
14696 . ./conf$$subs.sh ||
14697 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14699 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14700 if test $ac_delim_n = $ac_delim_num; then
14702 elif $ac_last_try; then
14703 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14705 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14708 rm -f conf$$subs.sh
14710 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14711 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14715 s/^/S["/; s/!.*/"]=/
14725 s/\(.\{148\}\)..*/\1/
14727 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14732 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14739 s/\(.\{148\}\)..*/\1/
14741 s/["\\]/\\&/g; s/^/"/; s/$/"/
14745 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14750 ' <conf$$subs.awk | sed '
14755 ' >>$CONFIG_STATUS || ac_write_fail=1
14756 rm -f conf$$subs.awk
14757 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14759 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14760 for (key in S) S_is_set[key] = 1
14762 \$ac_cs_awk_pipe_init
14766 nfields = split(line, field, "@")
14768 len = length(field[1])
14769 for (i = 2; i < nfields; i++) {
14771 keylen = length(key)
14772 if (S_is_set[key]) {
14774 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14775 len += length(value) + length(field[++i])
14780 if (nfields == 3 && !substed) {
14782 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
14783 \$ac_cs_awk_read_file
14789 \$ac_cs_awk_pipe_fini
14792 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14793 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14794 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14797 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14798 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14801 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14802 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14803 # trailing colons and then remove the whole line if VPATH becomes empty
14804 # (actually we leave an empty line to preserve line numbers).
14805 if test "x$srcdir" = x.; then
14806 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14824 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14825 fi # test -n "$CONFIG_FILES"
14827 # Set up the scripts for CONFIG_HEADERS section.
14828 # No need to generate them if there are no CONFIG_HEADERS.
14829 # This happens for instance with `./config.status Makefile'.
14830 if test -n "$CONFIG_HEADERS"; then
14831 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14835 # Transform confdefs.h into an awk script `defines.awk', embedded as
14836 # here-document in config.status, that substitutes the proper values into
14837 # config.h.in to produce config.h.
14839 # Create a delimiter string that does not exist in confdefs.h, to ease
14840 # handling of long lines.
14842 for ac_last_try in false false :; do
14843 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14844 if test -z "$ac_tt"; then
14846 elif $ac_last_try; then
14847 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14849 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14853 # For the awk script, D is an array of macro values keyed by name,
14854 # likewise P contains macro parameters if any. Preserve backslash
14855 # newline sequences.
14857 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14859 s/.\{148\}/&'"$ac_delim"'/g
14862 s/^[ ]*#[ ]*define[ ][ ]*/ /
14869 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14871 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14875 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14876 D["\1"]=" \3\\\\\\n"\\/p
14878 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14883 s/.\{148\}/&'"$ac_delim"'/g
14888 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14891 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14893 ' <confdefs.h | sed '
14894 s/'"$ac_delim"'/"\\\
14895 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14897 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14898 for (key in D) D_is_set[key] = 1
14901 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14903 split(line, arg, " ")
14904 if (arg[1] == "#") {
14908 defundef = substr(arg[1], 2)
14911 split(mac1, mac2, "(") #)
14913 prefix = substr(line, 1, index(line, defundef) - 1)
14914 if (D_is_set[macro]) {
14915 # Preserve the white space surrounding the "#".
14916 print prefix "define", macro P[macro] D[macro]
14919 # Replace #undef with comments. This is necessary, for example,
14920 # in the case of _POSIX_SOURCE, which is predefined and required
14921 # on some systems where configure will not decide to define it.
14922 if (defundef == "undef") {
14923 print "/*", prefix defundef, macro, "*/"
14931 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14932 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14933 fi # test -n "$CONFIG_HEADERS"
14936 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14941 :[FHLC]) ac_mode=$ac_tag; continue;;
14943 case $ac_mode$ac_tag in
14945 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14946 :[FH]-) ac_tag=-:-;;
14947 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14964 -) ac_f="$ac_tmp/stdin";;
14965 *) # Look for the file first in the build tree, then in the source tree
14966 # (if the path is not absolute). The absolute path cannot be DOS-style,
14967 # because $ac_f cannot contain `:'.
14971 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14973 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14975 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14976 as_fn_append ac_file_inputs " '$ac_f'"
14979 # Let's still pretend it is `configure' which instantiates (i.e., don't
14980 # use $as_me), people would be surprised to read:
14981 # /* config.h. Generated by config.status. */
14982 configure_input='Generated from '`
14983 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14985 if test x"$ac_file" != x-; then
14986 configure_input="$ac_file. $configure_input"
14987 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14988 $as_echo "$as_me: creating $ac_file" >&6;}
14990 # Neutralize special characters interpreted by sed in replacement strings.
14991 case $configure_input in #(
14992 *\&* | *\|* | *\\* )
14993 ac_sed_conf_input=`$as_echo "$configure_input" |
14994 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14995 *) ac_sed_conf_input=$configure_input;;
14999 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15000 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15005 ac_dir=`$as_dirname -- "$ac_file" ||
15006 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15007 X"$ac_file" : 'X\(//\)[^/]' \| \
15008 X"$ac_file" : 'X\(//\)$' \| \
15009 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15010 $as_echo X"$ac_file" |
15011 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15015 /^X\(\/\/\)[^/].*/{
15028 as_dir="$ac_dir"; as_fn_mkdir_p
15032 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15034 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15035 # A ".." for each directory in $ac_dir_suffix.
15036 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15037 case $ac_top_builddir_sub in
15038 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15039 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15042 ac_abs_top_builddir=$ac_pwd
15043 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15044 # for backward compatibility:
15045 ac_top_builddir=$ac_top_build_prefix
15048 .) # We are building in place.
15050 ac_top_srcdir=$ac_top_builddir_sub
15051 ac_abs_top_srcdir=$ac_pwd ;;
15052 [\\/]* | ?:[\\/]* ) # Absolute name.
15053 ac_srcdir=$srcdir$ac_dir_suffix;
15054 ac_top_srcdir=$srcdir
15055 ac_abs_top_srcdir=$srcdir ;;
15056 *) # Relative name.
15057 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15058 ac_top_srcdir=$ac_top_build_prefix$srcdir
15059 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15061 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15071 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15072 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15074 ac_MKDIR_P=$MKDIR_P
15076 [\\/$]* | ?:[\\/]* ) ;;
15077 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15081 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15082 # If the template does not know about datarootdir, expand it.
15083 # FIXME: This hack should be removed a few years after 2.60.
15084 ac_datarootdir_hack=; ac_datarootdir_seen=
15095 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15096 *datarootdir*) ac_datarootdir_seen=yes;;
15097 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15099 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15101 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15102 ac_datarootdir_hack='
15103 s&@datadir@&$datadir&g
15104 s&@docdir@&$docdir&g
15105 s&@infodir@&$infodir&g
15106 s&@localedir@&$localedir&g
15107 s&@mandir@&$mandir&g
15108 s&\\\${datarootdir}&$datarootdir&g' ;;
15112 # Neutralize VPATH when `$srcdir' = `.'.
15113 # Shell code in configure.ac might set extrasub.
15114 # FIXME: do we really want to maintain this feature?
15115 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15116 ac_sed_extra="$ac_vpsub
15119 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15121 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15122 s|@configure_input@|$ac_sed_conf_input|;t t
15123 s&@top_builddir@&$ac_top_builddir_sub&;t t
15124 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15125 s&@srcdir@&$ac_srcdir&;t t
15126 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15127 s&@top_srcdir@&$ac_top_srcdir&;t t
15128 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15129 s&@builddir@&$ac_builddir&;t t
15130 s&@abs_builddir@&$ac_abs_builddir&;t t
15131 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15132 s&@INSTALL@&$ac_INSTALL&;t t
15133 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15134 $ac_datarootdir_hack
15136 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15137 if $ac_cs_awk_getline; then
15138 $AWK -f "$ac_tmp/subs.awk"
15140 $AWK -f "$ac_tmp/subs.awk" | $SHELL
15142 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15144 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15145 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15146 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15147 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15149 which seems to be undefined. Please make sure it is defined" >&5
15150 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15151 which seems to be undefined. Please make sure it is defined" >&2;}
15153 rm -f "$ac_tmp/stdin"
15155 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15156 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15158 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15164 if test x"$ac_file" != x-; then
15166 $as_echo "/* $configure_input */" \
15167 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15168 } >"$ac_tmp/config.h" \
15169 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15170 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15171 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15172 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15175 mv "$ac_tmp/config.h" "$ac_file" \
15176 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15179 $as_echo "/* $configure_input */" \
15180 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15181 || as_fn_error $? "could not create -" "$LINENO" 5
15185 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15186 $as_echo "$as_me: executing $ac_file commands" >&6;}
15191 case $ac_file$ac_mode in
15192 "po-directories":C)
15193 for ac_file in $CONFIG_FILES; do
15194 # Support "outfile[:infile[:infile...]]"
15196 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15198 # PO directories have a Makefile.in generated from Makefile.in.in.
15199 case "$ac_file" in */Makefile.in)
15200 # Adjust a relative srcdir.
15201 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
15202 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
15203 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
15204 # In autoconf-2.13 it is called $ac_given_srcdir.
15205 # In autoconf-2.50 it is called $srcdir.
15206 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
15207 case "$ac_given_srcdir" in
15208 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
15209 /*) top_srcdir="$ac_given_srcdir" ;;
15210 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
15212 # Treat a directory as a PO directory if and only if it has a
15213 # POTFILES.in file. This allows packages to have multiple PO
15214 # directories under different names or in different locations.
15215 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15216 rm -f "$ac_dir/POTFILES"
15217 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
15218 gt_tab=`printf '\t'`
15219 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"
15220 POMAKEFILEDEPS="POTFILES.in"
15221 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
15222 # on $ac_dir but don't depend on user-specified configuration
15224 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15225 # The LINGUAS file contains the set of available languages.
15226 if test -n "$OBSOLETE_ALL_LINGUAS"; then
15227 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
15229 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15230 # Hide the ALL_LINGUAS assignment from automake < 1.5.
15231 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
15232 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
15234 # The set of available languages was given in configure.in.
15235 # Hide the ALL_LINGUAS assignment from automake < 1.5.
15236 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
15239 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
15240 # Compute UPDATEPOFILES
15241 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
15242 # Compute DUMMYPOFILES
15243 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
15245 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
15246 case "$ac_given_srcdir" in
15248 *) srcdirpre='$(srcdir)/' ;;
15254 for lang in $ALL_LINGUAS; do
15255 POFILES="$POFILES $srcdirpre$lang.po"
15256 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
15257 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
15258 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
15260 # CATALOGS depends on both $ac_dir and the user's LINGUAS
15261 # environment variable.
15263 if test -n "$ALL_LINGUAS"; then
15264 for presentlang in $ALL_LINGUAS; do
15266 if test "%UNSET%" != "$LINGUAS"; then
15267 desiredlanguages="$LINGUAS"
15269 desiredlanguages="$ALL_LINGUAS"
15271 for desiredlang in $desiredlanguages; do
15272 # Use the presentlang catalog if desiredlang is
15273 # a. equal to presentlang, or
15274 # b. a variant of presentlang (because in this case,
15275 # presentlang can be used as a fallback for messages
15276 # which are not translated in the desiredlang catalog).
15277 case "$desiredlang" in
15278 "$presentlang"*) useit=yes;;
15281 if test $useit = yes; then
15282 INST_LINGUAS="$INST_LINGUAS $presentlang"
15287 if test -n "$INST_LINGUAS"; then
15288 for lang in $INST_LINGUAS; do
15289 CATALOGS="$CATALOGS $lang.gmo"
15292 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
15293 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"
15294 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
15295 if test -f "$f"; then
15297 *.orig | *.bak | *~) ;;
15298 *) cat "$f" >> "$ac_dir/Makefile" ;;
15313 ac_clean_files=$ac_clean_files_save
15315 test $ac_write_fail = 0 ||
15316 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15319 # configure is writing to config.log, and then calls config.status.
15320 # config.status does its own redirection, appending to config.log.
15321 # Unfortunately, on DOS this fails, as config.log is still kept open
15322 # by configure, so config.status won't be able to write to it; its
15323 # output is simply discarded. So we exec the FD to /dev/null,
15324 # effectively closing config.log, so it can be properly (re)opened and
15325 # appended to by config.status. When coming back to configure, we
15326 # need to make the FD available again.
15327 if test "$no_create" != yes; then
15329 ac_config_status_args=
15330 test "$silent" = yes &&
15331 ac_config_status_args="$ac_config_status_args --quiet"
15333 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15335 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15336 # would make configure fail if this is the last instruction.
15337 $ac_cs_success || as_fn_exit 1
15339 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15340 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15341 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15344 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi